]> git.saurik.com Git - wxWidgets.git/blame - configure
compilation fixes for wxUSE_TREEBOOK=0
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
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
dee1a63f
MB
892 --enable-compat24 enable wxWidgets 2.4 compatibility
893 --disable-compat26 disable wxWidgets 2.6 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
dee1a63f 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
2eef8513
VZ
1740
1741 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
a848cd7e
SC
1742 ;;
1743 *-*-linux* )
1744 USE_LINUX=1
1745 cat >>confdefs.h <<\_ACEOF
1746#define __LINUX__ 1
1747_ACEOF
1748
1749 TMP=`uname -m`
1750 if test "x$TMP" = "xalpha"; then
1751 USE_ALPHA=1
1752 cat >>confdefs.h <<\_ACEOF
1753#define __ALPHA__ 1
1754_ACEOF
1755
1756 fi
1757 DEFAULT_DEFAULT_wxUSE_GTK=1
1758 ;;
1759 *-*-gnu* | *-*-k*bsd*-gnu )
1760 USE_GNU=1
1761 TMP=`uname -m`
1762 if test "x$TMP" = "xalpha"; then
1763 USE_ALPHA=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __ALPHA__ 1
1766_ACEOF
1767
1768 fi
1769 DEFAULT_DEFAULT_wxUSE_GTK=1
1770 ;;
1771 *-*-irix5* | *-*-irix6* )
1772 USE_SGI=1
1773 USE_SVR4=1
1774 cat >>confdefs.h <<\_ACEOF
1775#define __SGI__ 1
1776_ACEOF
1777
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SVR4__ 1
1780_ACEOF
1781
1782 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1783 ;;
1784 *-*-solaris2* )
1785 USE_SUN=1
1786 USE_SOLARIS=1
1787 USE_SVR4=1
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SUN__ 1
1790_ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SOLARIS__ 1
1794_ACEOF
1795
1796 cat >>confdefs.h <<\_ACEOF
1797#define __SVR4__ 1
1798_ACEOF
1799
1800 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1801 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1802 ;;
1803 *-*-sunos4* )
1804 USE_SUN=1
1805 USE_SUNOS=1
1806 USE_BSD=1
1807 cat >>confdefs.h <<\_ACEOF
1808#define __SUN__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __SUNOS__ 1
1813_ACEOF
1814
1815 cat >>confdefs.h <<\_ACEOF
1816#define __BSD__ 1
1817_ACEOF
1818
1819 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820 ;;
1821 *-*-freebsd*)
1822 USE_BSD=1
1823 USE_FREEBSD=1
1824 cat >>confdefs.h <<\_ACEOF
1825#define __FREEBSD__ 1
1826_ACEOF
1827
1828 cat >>confdefs.h <<\_ACEOF
1829#define __BSD__ 1
1830_ACEOF
1831
1832 DEFAULT_DEFAULT_wxUSE_GTK=1
1833 ;;
1834 *-*-openbsd*)
1835 USE_BSD=1
1836 USE_OPENBSD=1
1837 cat >>confdefs.h <<\_ACEOF
1838#define __OPENBSD__ 1
1839_ACEOF
1840
1841 cat >>confdefs.h <<\_ACEOF
1842#define __BSD__ 1
1843_ACEOF
1844
1845 DEFAULT_DEFAULT_wxUSE_GTK=1
1846 ;;
1847 *-*-netbsd*)
1848 USE_BSD=1
1849 USE_NETBSD=1
1850 cat >>confdefs.h <<\_ACEOF
1851#define __NETBSD__ 1
1852_ACEOF
1853
1854 cat >>confdefs.h <<\_ACEOF
1855#define __BSD__ 1
1856_ACEOF
1857
1858 DEFAULT_DEFAULT_wxUSE_GTK=1
1859 ;;
1860 *-*-osf* )
1861 USE_ALPHA=1
1862 USE_OSF=1
1863 cat >>confdefs.h <<\_ACEOF
1864#define __ALPHA__ 1
1865_ACEOF
1866
1867 cat >>confdefs.h <<\_ACEOF
1868#define __OSF__ 1
1869_ACEOF
1870
1871 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1872 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1873 ;;
1874 *-*-dgux5* )
1875 USE_ALPHA=1
1876 USE_SVR4=1
1877 cat >>confdefs.h <<\_ACEOF
1878#define __ALPHA__ 1
1879_ACEOF
1880
1881 cat >>confdefs.h <<\_ACEOF
1882#define __SVR4__ 1
1883_ACEOF
1884
1885 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1886 ;;
1887 *-*-sysv5* )
1888 USE_SYSV=1
1889 USE_SVR4=1
1890 cat >>confdefs.h <<\_ACEOF
1891#define __SYSV__ 1
1892_ACEOF
1893
1894 cat >>confdefs.h <<\_ACEOF
1895#define __SVR4__ 1
1896_ACEOF
1897
1898 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1899 ;;
1900 *-*-aix* )
1901 USE_AIX=1
1902 USE_SYSV=1
1903 USE_SVR4=1
1904 SO_SUFFIX=a
1905 cat >>confdefs.h <<\_ACEOF
1906#define __AIX__ 1
1907_ACEOF
1908
1909 cat >>confdefs.h <<\_ACEOF
1910#define __SYSV__ 1
1911_ACEOF
1912
1913 cat >>confdefs.h <<\_ACEOF
1914#define __SVR4__ 1
1915_ACEOF
1916
1917 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1918 ;;
1919
1920 *-*-*UnixWare*)
1921 USE_SYSV=1
1922 USE_SVR4=1
1923 USE_UNIXWARE=1
1924 cat >>confdefs.h <<\_ACEOF
1925#define __UNIXWARE__ 1
1926_ACEOF
1927
1928 ;;
1929
1930 *-*-cygwin* | *-*-mingw32* )
1931 SO_SUFFIX=dll
1932 PROGRAM_EXT=".exe"
a848cd7e 1933 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1934 DEFAULT_STD_FLAG=no
a848cd7e
SC
1935 ;;
1936
1937 *-pc-msdosdjgpp )
1938 USE_UNIX=0
1939 USE_DOS=1
1940 cat >>confdefs.h <<\_ACEOF
1941#define __DOS__ 1
1942_ACEOF
1943
1944 PROGRAM_EXT=".exe"
1945 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1946 ;;
1947
1948 *-pc-os2_emx | *-pc-os2-emx )
1949 cat >>confdefs.h <<\_ACEOF
1950#define __EMX__ 1
1951_ACEOF
1952
1953 USE_OS2=1
1954 cat >>confdefs.h <<\_ACEOF
1955#define __OS2__ 1
1956_ACEOF
1957
1958 PROGRAM_EXT=".exe"
1959 DEFAULT_DEFAULT_wxUSE_PM=1
1960 CXX=gcc
1961 LDFLAGS="$LDFLAGS -Zcrtdll"
1962 ac_executable_extensions=".exe"
1963 export ac_executable_extensions
1964 ac_save_IFS="$IFS"
1965 IFS='\\'
1966 ac_TEMP_PATH=
1967 for ac_dir in $PATH; do
1968 IFS=$ac_save_IFS
1969 if test -z "$ac_TEMP_PATH"; then
1970 ac_TEMP_PATH="$ac_dir"
1971 else
1972 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1973 fi
1974 done
1975 export PATH="$ac_TEMP_PATH"
1976 unset ac_TEMP_PATH
a03b8b04 1977 DEFAULT_STD_FLAG=no
a848cd7e
SC
1978 ;;
1979
cfda0ea8 1980 *-*-darwin* )
a848cd7e
SC
1981 USE_BSD=1
1982 USE_DARWIN=1
1983 SO_SUFFIX=dylib
1984 cat >>confdefs.h <<\_ACEOF
1985#define __BSD__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define __DARWIN__ 1
a848cd7e
SC
1990_ACEOF
1991
1992 cat >>confdefs.h <<\_ACEOF
1993#define TARGET_CARBON 1
1994_ACEOF
1995
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1997 DEFAULT_STD_FLAG=no
a848cd7e 1998 ;;
1e9e8aba
DE
1999 powerpc-apple-macos* )
2000 USE_UNIX=0
2001 ac_cv_c_bigendian=yes
2002 SO_SUFFIX=shlib
2003 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2004 DEFAULT_STD_FLAG=no
1e9e8aba 2005 ;;
a848cd7e
SC
2006
2007 *-*-beos* )
2008 USE_BEOS=1
2009 cat >>confdefs.h <<\_ACEOF
2010#define __BEOS__ 1
2011_ACEOF
2012
2013 ;;
2014
2015 *)
2016 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2017echo "$as_me: error: unknown system type ${host}." >&2;}
2018 { (exit 1); exit 1; }; }
2019esac
2020
2021
2022
2023
2024 wx_arg_cache_file="configarg.cache"
2025 echo "loading argument cache $wx_arg_cache_file"
2026 rm -f ${wx_arg_cache_file}.tmp
2027 touch ${wx_arg_cache_file}.tmp
2028 touch ${wx_arg_cache_file}
2029
2030
2031DEBUG_CONFIGURE=0
2032if test $DEBUG_CONFIGURE = 1; then
2033 DEFAULT_wxUSE_UNIVERSAL=no
2034 DEFAULT_wxUSE_STL=no
2035
2036 DEFAULT_wxUSE_NANOX=no
2037
2038 DEFAULT_wxUSE_THREADS=yes
2039
2040 DEFAULT_wxUSE_SHARED=yes
2041 DEFAULT_wxUSE_OPTIMISE=no
2042 DEFAULT_wxUSE_PROFILE=no
2043 DEFAULT_wxUSE_NO_DEPS=no
2044 DEFAULT_wxUSE_NO_RTTI=no
2045 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2046 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2047 DEFAULT_wxUSE_PERMISSIVE=no
2048 DEFAULT_wxUSE_DEBUG_FLAG=yes
2049 DEFAULT_wxUSE_DEBUG_INFO=yes
2050 DEFAULT_wxUSE_DEBUG_GDB=yes
2051 DEFAULT_wxUSE_MEM_TRACING=no
2052 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2053 DEFAULT_wxUSE_DMALLOC=no
2054 DEFAULT_wxUSE_APPLE_IEEE=no
2055
2056 DEFAULT_wxUSE_EXCEPTIONS=no
2057 DEFAULT_wxUSE_LOG=yes
2058 DEFAULT_wxUSE_LOGWINDOW=no
2059 DEFAULT_wxUSE_LOGGUI=no
2060 DEFAULT_wxUSE_LOGDIALOG=no
2061
2062 DEFAULT_wxUSE_GUI=yes
2063 DEFAULT_wxUSE_CONTROLS=no
2064
2065 DEFAULT_wxUSE_REGEX=no
2066 DEFAULT_wxUSE_XML=no
2067 DEFAULT_wxUSE_EXPAT=no
2068 DEFAULT_wxUSE_ZLIB=no
2069 DEFAULT_wxUSE_LIBPNG=no
2070 DEFAULT_wxUSE_LIBJPEG=no
2071 DEFAULT_wxUSE_LIBTIFF=no
2072 DEFAULT_wxUSE_LIBXPM=no
2073 DEFAULT_wxUSE_LIBMSPACK=no
2074 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2075 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2076 DEFAULT_wxUSE_ODBC=no
2077 DEFAULT_wxUSE_OPENGL=no
2078
2079 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2080 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2081 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2082 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2083 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2084 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2085 DEFAULT_wxUSE_CMDLINE_PARSER=no
2086 DEFAULT_wxUSE_DATETIME=no
2087 DEFAULT_wxUSE_TIMER=no
2088 DEFAULT_wxUSE_STOPWATCH=no
2089 DEFAULT_wxUSE_FILE=no
2090 DEFAULT_wxUSE_FFILE=no
07158944 2091 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2092 DEFAULT_wxUSE_TEXTBUFFER=no
2093 DEFAULT_wxUSE_TEXTFILE=no
2094 DEFAULT_wxUSE_SOUND=no
3b57de8b 2095 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2096 DEFAULT_wxUSE_INTL=no
2097 DEFAULT_wxUSE_CONFIG=no
2098 DEFAULT_wxUSE_FONTMAP=no
2099 DEFAULT_wxUSE_STREAMS=no
2100 DEFAULT_wxUSE_SOCKETS=no
2101 DEFAULT_wxUSE_OLE=no
2102 DEFAULT_wxUSE_DATAOBJ=no
2103 DEFAULT_wxUSE_DIALUP_MANAGER=no
2104 DEFAULT_wxUSE_JOYSTICK=no
2105 DEFAULT_wxUSE_DYNLIB_CLASS=no
2106 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2107 DEFAULT_wxUSE_LONGLONG=no
2108 DEFAULT_wxUSE_GEOMETRY=no
2109
2110 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2111 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2112 DEFAULT_wxUSE_POSTSCRIPT=no
2113
2114 DEFAULT_wxUSE_CLIPBOARD=no
2115 DEFAULT_wxUSE_TOOLTIPS=no
2116 DEFAULT_wxUSE_DRAG_AND_DROP=no
2117 DEFAULT_wxUSE_DRAGIMAGE=no
2118 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2119 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2120
8a7b1113 2121 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2122 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2123 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2124 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2125
2126 DEFAULT_wxUSE_RESOURCES=no
2127 DEFAULT_wxUSE_CONSTRAINTS=no
2128 DEFAULT_wxUSE_IPC=no
2129 DEFAULT_wxUSE_HELP=no
2130 DEFAULT_wxUSE_MS_HTML_HELP=no
2131 DEFAULT_wxUSE_WXHTML_HELP=no
2132 DEFAULT_wxUSE_TREELAYOUT=no
2133 DEFAULT_wxUSE_METAFILE=no
2134 DEFAULT_wxUSE_MIMETYPE=no
2135 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2136 DEFAULT_wxUSE_PROTOCOL=no
2137 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2138 DEFAULT_wxUSE_PROTOCOL_FTP=no
2139 DEFAULT_wxUSE_PROTOCOL_FILE=no
2140 DEFAULT_wxUSE_URL=no
2141
2142 DEFAULT_wxUSE_COMMONDLGS=no
2143 DEFAULT_wxUSE_CHOICEDLG=no
2144 DEFAULT_wxUSE_COLOURDLG=no
2145 DEFAULT_wxUSE_DIRDLG=no
2146 DEFAULT_wxUSE_FILEDLG=no
2147 DEFAULT_wxUSE_FINDREPLDLG=no
2148 DEFAULT_wxUSE_FONTDLG=no
2149 DEFAULT_wxUSE_MSGDLG=no
2150 DEFAULT_wxUSE_NUMBERDLG=no
2151 DEFAULT_wxUSE_TEXTDLG=no
2152 DEFAULT_wxUSE_SPLASH=no
2153 DEFAULT_wxUSE_STARTUP_TIPS=no
2154 DEFAULT_wxUSE_PROGRESSDLG=no
2155 DEFAULT_wxUSE_WIZARDDLG=no
2156
2157 DEFAULT_wxUSE_MENUS=no
2158 DEFAULT_wxUSE_MINIFRAME=no
2159 DEFAULT_wxUSE_HTML=no
9a8f0513 2160 DEFAULT_wxUSE_XRC=no
646b6ec1 2161 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2162 DEFAULT_wxUSE_FILESYSTEM=no
2163 DEFAULT_wxUSE_FS_INET=no
2164 DEFAULT_wxUSE_FS_ZIP=no
2165 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2166 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2167 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2168 DEFAULT_wxUSE_VALIDATORS=no
2169
2170 DEFAULT_wxUSE_ACCEL=no
2171 DEFAULT_wxUSE_BUTTON=no
2172 DEFAULT_wxUSE_BMPBUTTON=no
2173 DEFAULT_wxUSE_CALCTRL=no
2174 DEFAULT_wxUSE_CARET=no
2175 DEFAULT_wxUSE_CHECKBOX=no
2176 DEFAULT_wxUSE_CHECKLST=no
2177 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2178 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2179 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2180 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2181 DEFAULT_wxUSE_DISPLAY=no
2182 DEFAULT_wxUSE_GAUGE=no
2183 DEFAULT_wxUSE_GRID=no
2184 DEFAULT_wxUSE_IMAGLIST=no
2185 DEFAULT_wxUSE_LISTBOOK=no
2186 DEFAULT_wxUSE_LISTBOX=no
2187 DEFAULT_wxUSE_LISTCTRL=no
2188 DEFAULT_wxUSE_NOTEBOOK=no
2189 DEFAULT_wxUSE_RADIOBOX=no
2190 DEFAULT_wxUSE_RADIOBTN=no
2191 DEFAULT_wxUSE_SASH=no
2192 DEFAULT_wxUSE_SCROLLBAR=no
2193 DEFAULT_wxUSE_SLIDER=no
2194 DEFAULT_wxUSE_SPINBTN=no
2195 DEFAULT_wxUSE_SPINCTRL=no
2196 DEFAULT_wxUSE_SPLITTER=no
2197 DEFAULT_wxUSE_STATBMP=no
2198 DEFAULT_wxUSE_STATBOX=no
2199 DEFAULT_wxUSE_STATLINE=no
2200 DEFAULT_wxUSE_STATTEXT=no
2201 DEFAULT_wxUSE_STATUSBAR=yes
2202 DEFAULT_wxUSE_TABDIALOG=no
2203 DEFAULT_wxUSE_TEXTCTRL=no
2204 DEFAULT_wxUSE_TOGGLEBTN=no
2205 DEFAULT_wxUSE_TOOLBAR=no
2206 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2207 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2208 DEFAULT_wxUSE_TREECTRL=no
2209 DEFAULT_wxUSE_POPUPWIN=no
2210 DEFAULT_wxUSE_TIPWINDOW=no
2211
2212 DEFAULT_wxUSE_UNICODE=no
2213 DEFAULT_wxUSE_UNICODE_MSLU=no
2214 DEFAULT_wxUSE_WCSRTOMBS=no
2215
2216 DEFAULT_wxUSE_PALETTE=no
2217 DEFAULT_wxUSE_IMAGE=no
2218 DEFAULT_wxUSE_GIF=no
2219 DEFAULT_wxUSE_PCX=no
2220 DEFAULT_wxUSE_PNM=no
2221 DEFAULT_wxUSE_IFF=no
2222 DEFAULT_wxUSE_XPM=no
2223 DEFAULT_wxUSE_ICO_CUR=no
2224 DEFAULT_wxUSE_ACCESSIBILITY=no
2225
2226 DEFAULT_wxUSE_MONOLITHIC=no
2227 DEFAULT_wxUSE_PLUGINS=no
2228 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2229else
2230 DEFAULT_wxUSE_UNIVERSAL=no
2231 DEFAULT_wxUSE_STL=no
2232
2233 DEFAULT_wxUSE_NANOX=no
2234
2235 DEFAULT_wxUSE_THREADS=yes
2236
2237 DEFAULT_wxUSE_SHARED=yes
2238 DEFAULT_wxUSE_OPTIMISE=yes
2239 DEFAULT_wxUSE_PROFILE=no
2240 DEFAULT_wxUSE_NO_DEPS=no
2241 DEFAULT_wxUSE_NO_RTTI=no
2242 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2243 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2244 DEFAULT_wxUSE_PERMISSIVE=no
2245 DEFAULT_wxUSE_DEBUG_FLAG=no
2246 DEFAULT_wxUSE_DEBUG_INFO=no
2247 DEFAULT_wxUSE_DEBUG_GDB=no
2248 DEFAULT_wxUSE_MEM_TRACING=no
2249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2250 DEFAULT_wxUSE_DMALLOC=no
2251 DEFAULT_wxUSE_APPLE_IEEE=yes
2252
2253 DEFAULT_wxUSE_EXCEPTIONS=yes
2254 DEFAULT_wxUSE_LOG=yes
2255 DEFAULT_wxUSE_LOGWINDOW=yes
2256 DEFAULT_wxUSE_LOGGUI=yes
2257 DEFAULT_wxUSE_LOGDIALOG=yes
2258
2259 DEFAULT_wxUSE_GUI=yes
2260
2261 DEFAULT_wxUSE_REGEX=yes
2262 DEFAULT_wxUSE_XML=yes
2263 DEFAULT_wxUSE_EXPAT=yes
2264 DEFAULT_wxUSE_ZLIB=yes
2265 DEFAULT_wxUSE_LIBPNG=yes
2266 DEFAULT_wxUSE_LIBJPEG=yes
2267 DEFAULT_wxUSE_LIBTIFF=yes
2268 DEFAULT_wxUSE_LIBXPM=yes
2269 DEFAULT_wxUSE_LIBMSPACK=yes
2270 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2271 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2272 DEFAULT_wxUSE_ODBC=no
52cb607e 2273 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2274
2275 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2276 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2277 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2278 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2279 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2280 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2281 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2282 DEFAULT_wxUSE_DATETIME=yes
2283 DEFAULT_wxUSE_TIMER=yes
2284 DEFAULT_wxUSE_STOPWATCH=yes
2285 DEFAULT_wxUSE_FILE=yes
2286 DEFAULT_wxUSE_FFILE=yes
07158944 2287 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2288 DEFAULT_wxUSE_TEXTBUFFER=yes
2289 DEFAULT_wxUSE_TEXTFILE=yes
2290 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2291 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2292 DEFAULT_wxUSE_INTL=yes
2293 DEFAULT_wxUSE_CONFIG=yes
2294 DEFAULT_wxUSE_FONTMAP=yes
2295 DEFAULT_wxUSE_STREAMS=yes
2296 DEFAULT_wxUSE_SOCKETS=yes
2297 DEFAULT_wxUSE_OLE=yes
2298 DEFAULT_wxUSE_DATAOBJ=yes
2299 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2300 DEFAULT_wxUSE_JOYSTICK=yes
2301 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2302 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2303 DEFAULT_wxUSE_LONGLONG=yes
2304 DEFAULT_wxUSE_GEOMETRY=yes
2305
2306 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2307 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2308 DEFAULT_wxUSE_POSTSCRIPT=yes
2309
2310 DEFAULT_wxUSE_CLIPBOARD=yes
2311 DEFAULT_wxUSE_TOOLTIPS=yes
2312 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2313 DEFAULT_wxUSE_DRAGIMAGE=yes
2314 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2315 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2316
8a7b1113 2317 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2318 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2319 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2320 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2321
2322 DEFAULT_wxUSE_RESOURCES=no
2323 DEFAULT_wxUSE_CONSTRAINTS=yes
2324 DEFAULT_wxUSE_IPC=yes
2325 DEFAULT_wxUSE_HELP=yes
2326 DEFAULT_wxUSE_MS_HTML_HELP=yes
2327 DEFAULT_wxUSE_WXHTML_HELP=yes
2328 DEFAULT_wxUSE_TREELAYOUT=yes
2329 DEFAULT_wxUSE_METAFILE=yes
2330 DEFAULT_wxUSE_MIMETYPE=yes
2331 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2332 DEFAULT_wxUSE_PROTOCOL=yes
2333 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2334 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2335 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2336 DEFAULT_wxUSE_URL=yes
2337
2338 DEFAULT_wxUSE_COMMONDLGS=yes
2339 DEFAULT_wxUSE_CHOICEDLG=yes
2340 DEFAULT_wxUSE_COLOURDLG=yes
2341 DEFAULT_wxUSE_DIRDLG=yes
2342 DEFAULT_wxUSE_FILEDLG=yes
2343 DEFAULT_wxUSE_FINDREPLDLG=yes
2344 DEFAULT_wxUSE_FONTDLG=yes
2345 DEFAULT_wxUSE_MSGDLG=yes
2346 DEFAULT_wxUSE_NUMBERDLG=yes
2347 DEFAULT_wxUSE_TEXTDLG=yes
2348 DEFAULT_wxUSE_SPLASH=yes
2349 DEFAULT_wxUSE_STARTUP_TIPS=yes
2350 DEFAULT_wxUSE_PROGRESSDLG=yes
2351 DEFAULT_wxUSE_WIZARDDLG=yes
2352
2353 DEFAULT_wxUSE_MENUS=yes
2354 DEFAULT_wxUSE_MINIFRAME=yes
2355 DEFAULT_wxUSE_HTML=yes
9a8f0513 2356 DEFAULT_wxUSE_XRC=yes
646b6ec1 2357 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2358 DEFAULT_wxUSE_FILESYSTEM=yes
2359 DEFAULT_wxUSE_FS_INET=yes
2360 DEFAULT_wxUSE_FS_ZIP=yes
2361 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2362 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2363 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2364 DEFAULT_wxUSE_VALIDATORS=yes
2365
2366 DEFAULT_wxUSE_ACCEL=yes
2367 DEFAULT_wxUSE_BUTTON=yes
2368 DEFAULT_wxUSE_BMPBUTTON=yes
2369 DEFAULT_wxUSE_CALCTRL=yes
2370 DEFAULT_wxUSE_CARET=yes
2371 DEFAULT_wxUSE_CHECKBOX=yes
2372 DEFAULT_wxUSE_CHECKLST=yes
2373 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2374 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2375 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2376 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2377 DEFAULT_wxUSE_DISPLAY=yes
2378 DEFAULT_wxUSE_GAUGE=yes
2379 DEFAULT_wxUSE_GRID=yes
2380 DEFAULT_wxUSE_IMAGLIST=yes
2381 DEFAULT_wxUSE_LISTBOOK=yes
2382 DEFAULT_wxUSE_LISTBOX=yes
2383 DEFAULT_wxUSE_LISTCTRL=yes
2384 DEFAULT_wxUSE_NOTEBOOK=yes
2385 DEFAULT_wxUSE_RADIOBOX=yes
2386 DEFAULT_wxUSE_RADIOBTN=yes
2387 DEFAULT_wxUSE_SASH=yes
2388 DEFAULT_wxUSE_SCROLLBAR=yes
2389 DEFAULT_wxUSE_SLIDER=yes
2390 DEFAULT_wxUSE_SPINBTN=yes
2391 DEFAULT_wxUSE_SPINCTRL=yes
2392 DEFAULT_wxUSE_SPLITTER=yes
2393 DEFAULT_wxUSE_STATBMP=yes
2394 DEFAULT_wxUSE_STATBOX=yes
2395 DEFAULT_wxUSE_STATLINE=yes
2396 DEFAULT_wxUSE_STATTEXT=yes
2397 DEFAULT_wxUSE_STATUSBAR=yes
2398 DEFAULT_wxUSE_TABDIALOG=no
2399 DEFAULT_wxUSE_TEXTCTRL=yes
2400 DEFAULT_wxUSE_TOGGLEBTN=yes
2401 DEFAULT_wxUSE_TOOLBAR=yes
2402 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2403 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2404 DEFAULT_wxUSE_TREECTRL=yes
2405 DEFAULT_wxUSE_POPUPWIN=yes
2406 DEFAULT_wxUSE_TIPWINDOW=yes
2407
78de529b 2408 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2409 DEFAULT_wxUSE_UNICODE_MSLU=yes
2410 DEFAULT_wxUSE_WCSRTOMBS=no
2411
2412 DEFAULT_wxUSE_PALETTE=yes
2413 DEFAULT_wxUSE_IMAGE=yes
2414 DEFAULT_wxUSE_GIF=yes
2415 DEFAULT_wxUSE_PCX=yes
2416 DEFAULT_wxUSE_IFF=no
2417 DEFAULT_wxUSE_PNM=yes
2418 DEFAULT_wxUSE_XPM=yes
2419 DEFAULT_wxUSE_ICO_CUR=yes
2420 DEFAULT_wxUSE_ACCESSIBILITY=no
2421
2422 DEFAULT_wxUSE_MONOLITHIC=no
2423 DEFAULT_wxUSE_PLUGINS=no
2424 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2425
f34ca037 2426 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2427fi
2428
2429
2430
f34ca037 2431
a848cd7e
SC
2432for toolkit in `echo $ALL_TOOLKITS`; do
2433 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2434 if test "x$LINE" != "x" ; then
2435 has_toolkit_in_cache=1
2436 eval "DEFAULT_$LINE"
2437 eval "CACHE_$toolkit=1"
f34ca037
MW
2438
2439 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2440 if test "x$LINE" != "x" ; then
2441 eval "DEFAULT_$LINE"
2442 fi
a848cd7e
SC
2443 fi
2444done
2445
2446
2447
2448 enablestring=
2449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2450echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2451 no_cache=0
2452 # Check whether --enable-gui or --disable-gui was given.
2453if test "${enable_gui+set}" = set; then
2454 enableval="$enable_gui"
2455
2456 if test "$enableval" = yes; then
2457 ac_cv_use_gui='wxUSE_GUI=yes'
2458 else
2459 ac_cv_use_gui='wxUSE_GUI=no'
2460 fi
2461
2462else
2463
2464 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2465 if test "x$LINE" != x ; then
2466 eval "DEFAULT_$LINE"
2467 else
2468 no_cache=1
2469 fi
2470
2471 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2472
2473fi;
2474
2475 eval "$ac_cv_use_gui"
2476 if test "$no_cache" != 1; then
2477 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2478 fi
2479
2480 if test "$wxUSE_GUI" = yes; then
2481 echo "$as_me:$LINENO: result: yes" >&5
2482echo "${ECHO_T}yes" >&6
2483 else
2484 echo "$as_me:$LINENO: result: no" >&5
2485echo "${ECHO_T}no" >&6
2486 fi
2487
2488
2489 enablestring=
2490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2491echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2492 no_cache=0
2493 # Check whether --enable-monolithic or --disable-monolithic was given.
2494if test "${enable_monolithic+set}" = set; then
2495 enableval="$enable_monolithic"
2496
2497 if test "$enableval" = yes; then
2498 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2499 else
2500 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2501 fi
2502
2503else
2504
2505 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
2512 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2513
2514fi;
2515
2516 eval "$ac_cv_use_monolithic"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_MONOLITHIC" = yes; then
2522 echo "$as_me:$LINENO: result: yes" >&5
2523echo "${ECHO_T}yes" >&6
2524 else
2525 echo "$as_me:$LINENO: result: no" >&5
2526echo "${ECHO_T}no" >&6
2527 fi
2528
2529
2530 enablestring=
2531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2532echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2533 no_cache=0
2534 # Check whether --enable-plugins or --disable-plugins was given.
2535if test "${enable_plugins+set}" = set; then
2536 enableval="$enable_plugins"
2537
2538 if test "$enableval" = yes; then
2539 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2540 else
2541 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2542 fi
2543
2544else
2545
2546 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2554
2555fi;
2556
2557 eval "$ac_cv_use_plugins"
2558 if test "$no_cache" != 1; then
2559 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2560 fi
2561
2562 if test "$wxUSE_PLUGINS" = yes; then
2563 echo "$as_me:$LINENO: result: yes" >&5
2564echo "${ECHO_T}yes" >&6
2565 else
2566 echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6
2568 fi
2569
2570
1c14217d
VZ
2571 withstring=without
2572 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2573echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2574 no_cache=0
2575
2576# Check whether --with-subdirs or --without-subdirs was given.
2577if test "${with_subdirs+set}" = set; then
2578 withval="$with_subdirs"
2579
2580 if test "$withval" = yes; then
2581 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2582 else
2583 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2596
2597fi;
2598
2599 eval "$ac_cv_use_subdirs"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxWITH_SUBDIRS" = yes; then
2605 echo "$as_me:$LINENO: result: yes" >&5
2606echo "${ECHO_T}yes" >&6
2607 else
2608 echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6
2610 fi
2611
2612
a848cd7e
SC
2613if test "$wxUSE_GUI" = "yes"; then
2614
2615
2616 enablestring=
2617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2618echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2619 no_cache=0
2620 # Check whether --enable-universal or --disable-universal was given.
2621if test "${enable_universal+set}" = set; then
2622 enableval="$enable_universal"
2623
2624 if test "$enableval" = yes; then
2625 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2626 else
2627 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2628 fi
2629
2630else
2631
2632 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2633 if test "x$LINE" != x ; then
2634 eval "DEFAULT_$LINE"
2635 else
2636 no_cache=1
2637 fi
2638
2639 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2640
2641fi;
2642
2643 eval "$ac_cv_use_universal"
2644 if test "$no_cache" != 1; then
2645 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2646 fi
2647
2648 if test "$wxUSE_UNIVERSAL" = yes; then
2649 echo "$as_me:$LINENO: result: yes" >&5
2650echo "${ECHO_T}yes" >&6
2651 else
2652 echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6
2654 fi
2655
2656
2657# Check whether --with-gtk or --without-gtk was given.
2658if test "${with_gtk+set}" = set; then
2659 withval="$with_gtk"
2660 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2661fi;
2662
2663# Check whether --with-motif or --without-motif was given.
2664if test "${with_motif+set}" = set; then
2665 withval="$with_motif"
2666 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2667fi;
2668
2669# Check whether --with-mac or --without-mac was given.
2670if test "${with_mac+set}" = set; then
2671 withval="$with_mac"
c228d3a4 2672 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2673fi;
2674
2675# Check whether --with-cocoa or --without-cocoa was given.
2676if test "${with_cocoa+set}" = set; then
2677 withval="$with_cocoa"
c228d3a4 2678 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2679fi;
2680
2681# Check whether --with-wine or --without-wine was given.
2682if test "${with_wine+set}" = set; then
2683 withval="$with_wine"
2684 wxUSE_WINE="$withval" CACHE_WINE=1
2685fi;
2686
2687# Check whether --with-msw or --without-msw was given.
2688if test "${with_msw+set}" = set; then
2689 withval="$with_msw"
2690 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2691fi;
2692
2693# Check whether --with-pm or --without-pm was given.
2694if test "${with_pm+set}" = set; then
2695 withval="$with_pm"
2696 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2697fi;
2698
2699# Check whether --with-mgl or --without-mgl was given.
2700if test "${with_mgl+set}" = set; then
2701 withval="$with_mgl"
2702 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2703fi;
2704
2705# Check whether --with-microwin or --without-microwin was given.
2706if test "${with_microwin+set}" = set; then
2707 withval="$with_microwin"
2708 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2709fi;
2710
2711# Check whether --with-x11 or --without-x11 was given.
2712if test "${with_x11+set}" = set; then
2713 withval="$with_x11"
2714 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2715fi;
2716
2717 enablestring=
2718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2719echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2720 no_cache=0
2721 # Check whether --enable-nanox or --disable-nanox was given.
2722if test "${enable_nanox+set}" = set; then
2723 enableval="$enable_nanox"
2724
2725 if test "$enableval" = yes; then
2726 ac_cv_use_nanox='wxUSE_NANOX=yes'
2727 else
2728 ac_cv_use_nanox='wxUSE_NANOX=no'
2729 fi
2730
2731else
2732
2733 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2741
2742fi;
2743
2744 eval "$ac_cv_use_nanox"
2745 if test "$no_cache" != 1; then
2746 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2747 fi
2748
2749 if test "$wxUSE_NANOX" = yes; then
2750 echo "$as_me:$LINENO: result: yes" >&5
2751echo "${ECHO_T}yes" >&6
2752 else
2753 echo "$as_me:$LINENO: result: no" >&5
2754echo "${ECHO_T}no" >&6
2755 fi
2756
2757
f34ca037
MW
2758# Check whether --enable-gtk2 or --disable-gtk2 was given.
2759if test "${enable_gtk2+set}" = set; then
2760 enableval="$enable_gtk2"
2761 wxUSE_GTK2="$enableval"
2762fi;
a848cd7e 2763
a848cd7e
SC
2764 enablestring=
2765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2766echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2767 no_cache=0
2768 # Check whether --enable-gpe or --disable-gpe was given.
2769if test "${enable_gpe+set}" = set; then
2770 enableval="$enable_gpe"
2771
2772 if test "$enableval" = yes; then
2773 ac_cv_use_gpe='wxUSE_GPE=yes'
2774 else
2775 ac_cv_use_gpe='wxUSE_GPE=no'
2776 fi
2777
2778else
2779
2780 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2781 if test "x$LINE" != x ; then
2782 eval "DEFAULT_$LINE"
2783 else
2784 no_cache=1
2785 fi
2786
2787 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2788
2789fi;
2790
2791 eval "$ac_cv_use_gpe"
2792 if test "$no_cache" != 1; then
2793 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2794 fi
2795
2796 if test "$wxUSE_GPE" = yes; then
2797 echo "$as_me:$LINENO: result: yes" >&5
2798echo "${ECHO_T}yes" >&6
2799 else
2800 echo "$as_me:$LINENO: result: no" >&5
2801echo "${ECHO_T}no" >&6
2802 fi
2803
2804
2805
2806 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2807echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2808 no_cache=0
2809
2810# Check whether --with-libpng or --without-libpng was given.
2811if test "${with_libpng+set}" = set; then
2812 withval="$with_libpng"
2813
2814 if test "$withval" = yes; then
2815 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2816 elif test "$withval" = no; then
2817 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2818 elif test "$withval" = sys; then
2819 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2820 elif test "$withval" = builtin; then
2821 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2822 else
2823 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2824echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2825 { (exit 1); exit 1; }; }
2826 fi
2827
2828else
2829
2830 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2831 if test "x$LINE" != x ; then
2832 eval "DEFAULT_$LINE"
2833 else
2834 no_cache=1
2835 fi
2836
2837 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2838
2839fi;
2840
2841 eval "$ac_cv_use_libpng"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_LIBPNG" = yes; then
2847 echo "$as_me:$LINENO: result: yes" >&5
2848echo "${ECHO_T}yes" >&6
2849 elif test "$wxUSE_LIBPNG" = no; then
2850 echo "$as_me:$LINENO: result: no" >&5
2851echo "${ECHO_T}no" >&6
2852 elif test "$wxUSE_LIBPNG" = sys; then
2853 echo "$as_me:$LINENO: result: system version" >&5
2854echo "${ECHO_T}system version" >&6
2855 elif test "$wxUSE_LIBPNG" = builtin; then
2856 echo "$as_me:$LINENO: result: builtin version" >&5
2857echo "${ECHO_T}builtin version" >&6
2858 else
2859 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2860echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2861 { (exit 1); exit 1; }; }
2862 fi
2863
2864
2865 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2866echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2867 no_cache=0
2868
2869# Check whether --with-libjpeg or --without-libjpeg was given.
2870if test "${with_libjpeg+set}" = set; then
2871 withval="$with_libjpeg"
2872
2873 if test "$withval" = yes; then
2874 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2875 elif test "$withval" = no; then
2876 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2877 elif test "$withval" = sys; then
2878 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2879 elif test "$withval" = builtin; then
2880 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2881 else
2882 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2883echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2884 { (exit 1); exit 1; }; }
2885 fi
2886
2887else
2888
2889 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2890 if test "x$LINE" != x ; then
2891 eval "DEFAULT_$LINE"
2892 else
2893 no_cache=1
2894 fi
2895
2896 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2897
2898fi;
2899
2900 eval "$ac_cv_use_libjpeg"
2901 if test "$no_cache" != 1; then
2902 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2903 fi
2904
2905 if test "$wxUSE_LIBJPEG" = yes; then
2906 echo "$as_me:$LINENO: result: yes" >&5
2907echo "${ECHO_T}yes" >&6
2908 elif test "$wxUSE_LIBJPEG" = no; then
2909 echo "$as_me:$LINENO: result: no" >&5
2910echo "${ECHO_T}no" >&6
2911 elif test "$wxUSE_LIBJPEG" = sys; then
2912 echo "$as_me:$LINENO: result: system version" >&5
2913echo "${ECHO_T}system version" >&6
2914 elif test "$wxUSE_LIBJPEG" = builtin; then
2915 echo "$as_me:$LINENO: result: builtin version" >&5
2916echo "${ECHO_T}builtin version" >&6
2917 else
2918 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2919echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2920 { (exit 1); exit 1; }; }
2921 fi
2922
2923
2924 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2925echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2926 no_cache=0
2927
2928# Check whether --with-libtiff or --without-libtiff was given.
2929if test "${with_libtiff+set}" = set; then
2930 withval="$with_libtiff"
2931
2932 if test "$withval" = yes; then
2933 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2934 elif test "$withval" = no; then
2935 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2936 elif test "$withval" = sys; then
2937 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2938 elif test "$withval" = builtin; then
2939 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2940 else
2941 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2942echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2943 { (exit 1); exit 1; }; }
2944 fi
2945
2946else
2947
2948 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2949 if test "x$LINE" != x ; then
2950 eval "DEFAULT_$LINE"
2951 else
2952 no_cache=1
2953 fi
2954
2955 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2956
2957fi;
2958
2959 eval "$ac_cv_use_libtiff"
2960 if test "$no_cache" != 1; then
2961 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2962 fi
2963
2964 if test "$wxUSE_LIBTIFF" = yes; then
2965 echo "$as_me:$LINENO: result: yes" >&5
2966echo "${ECHO_T}yes" >&6
2967 elif test "$wxUSE_LIBTIFF" = no; then
2968 echo "$as_me:$LINENO: result: no" >&5
2969echo "${ECHO_T}no" >&6
2970 elif test "$wxUSE_LIBTIFF" = sys; then
2971 echo "$as_me:$LINENO: result: system version" >&5
2972echo "${ECHO_T}system version" >&6
2973 elif test "$wxUSE_LIBTIFF" = builtin; then
2974 echo "$as_me:$LINENO: result: builtin version" >&5
2975echo "${ECHO_T}builtin version" >&6
2976 else
2977 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2978echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2979 { (exit 1); exit 1; }; }
2980 fi
2981
2982
2983 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2984echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2985 no_cache=0
2986
2987# Check whether --with-libxpm or --without-libxpm was given.
2988if test "${with_libxpm+set}" = set; then
2989 withval="$with_libxpm"
2990
2991 if test "$withval" = yes; then
2992 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2993 elif test "$withval" = no; then
2994 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2995 elif test "$withval" = sys; then
2996 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2997 elif test "$withval" = builtin; then
2998 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2999 else
3000 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3001echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3002 { (exit 1); exit 1; }; }
3003 fi
3004
3005else
3006
3007 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3008 if test "x$LINE" != x ; then
3009 eval "DEFAULT_$LINE"
3010 else
3011 no_cache=1
3012 fi
3013
3014 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3015
3016fi;
3017
3018 eval "$ac_cv_use_libxpm"
3019 if test "$no_cache" != 1; then
3020 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3021 fi
3022
3023 if test "$wxUSE_LIBXPM" = yes; then
3024 echo "$as_me:$LINENO: result: yes" >&5
3025echo "${ECHO_T}yes" >&6
3026 elif test "$wxUSE_LIBXPM" = no; then
3027 echo "$as_me:$LINENO: result: no" >&5
3028echo "${ECHO_T}no" >&6
3029 elif test "$wxUSE_LIBXPM" = sys; then
3030 echo "$as_me:$LINENO: result: system version" >&5
3031echo "${ECHO_T}system version" >&6
3032 elif test "$wxUSE_LIBXPM" = builtin; then
3033 echo "$as_me:$LINENO: result: builtin version" >&5
3034echo "${ECHO_T}builtin version" >&6
3035 else
3036 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3037echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3038 { (exit 1); exit 1; }; }
3039 fi
3040
3041
1c14217d
VZ
3042 withstring=
3043 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3044echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3045 no_cache=0
3046
3047# Check whether --with-libmspack or --without-libmspack was given.
3048if test "${with_libmspack+set}" = set; then
3049 withval="$with_libmspack"
3050
3051 if test "$withval" = yes; then
3052 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3053 else
3054 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3055 fi
3056
3057else
3058
3059 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3067
3068fi;
3069
3070 eval "$ac_cv_use_libmspack"
3071 if test "$no_cache" != 1; then
3072 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3073 fi
3074
3075 if test "$wxUSE_LIBMSPACK" = yes; then
3076 echo "$as_me:$LINENO: result: yes" >&5
3077echo "${ECHO_T}yes" >&6
3078 else
3079 echo "$as_me:$LINENO: result: no" >&5
3080echo "${ECHO_T}no" >&6
3081 fi
3082
3083
1c14217d
VZ
3084 withstring=
3085 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3086echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3087 no_cache=0
3088
3089# Check whether --with-sdl or --without-sdl was given.
3090if test "${with_sdl+set}" = set; then
3091 withval="$with_sdl"
3092
3093 if test "$withval" = yes; then
3094 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3095 else
3096 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3097 fi
3098
3099else
3100
3101 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3109
3110fi;
3111
3112 eval "$ac_cv_use_sdl"
3113 if test "$no_cache" != 1; then
3114 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3115 fi
3116
3117 if test "$wxUSE_LIBSDL" = yes; then
3118 echo "$as_me:$LINENO: result: yes" >&5
3119echo "${ECHO_T}yes" >&6
3120 else
3121 echo "$as_me:$LINENO: result: no" >&5
3122echo "${ECHO_T}no" >&6
3123 fi
3124
3125
1c14217d
VZ
3126 withstring=
3127 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3128echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3129 no_cache=0
3130
3131# Check whether --with-gnomeprint or --without-gnomeprint was given.
3132if test "${with_gnomeprint+set}" = set; then
3133 withval="$with_gnomeprint"
3134
3135 if test "$withval" = yes; then
3136 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3137 else
3138 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3139 fi
3140
3141else
3142
3143 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3144 if test "x$LINE" != x ; then
3145 eval "DEFAULT_$LINE"
3146 else
3147 no_cache=1
3148 fi
3149
3150 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3151
3152fi;
3153
3154 eval "$ac_cv_use_gnomeprint"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3160 echo "$as_me:$LINENO: result: yes" >&5
3161echo "${ECHO_T}yes" >&6
3162 else
3163 echo "$as_me:$LINENO: result: no" >&5
3164echo "${ECHO_T}no" >&6
3165 fi
3166
3167
1c14217d
VZ
3168 withstring=
3169 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3170echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3171 no_cache=0
3172
3173# Check whether --with-opengl or --without-opengl was given.
3174if test "${with_opengl+set}" = set; then
3175 withval="$with_opengl"
3176
3177 if test "$withval" = yes; then
3178 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3179 else
3180 ac_cv_use_opengl='wxUSE_OPENGL=no'
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3193
3194fi;
3195
3196 eval "$ac_cv_use_opengl"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_OPENGL" = yes; then
3202 echo "$as_me:$LINENO: result: yes" >&5
3203echo "${ECHO_T}yes" >&6
3204 else
3205 echo "$as_me:$LINENO: result: no" >&5
3206echo "${ECHO_T}no" >&6
3207 fi
3208
3209
3210fi
3211
3212
1c14217d
VZ
3213 withstring=
3214 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3215echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3216 no_cache=0
3217
3218# Check whether --with-dmalloc or --without-dmalloc was given.
3219if test "${with_dmalloc+set}" = set; then
3220 withval="$with_dmalloc"
3221
3222 if test "$withval" = yes; then
3223 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3224 else
3225 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3226 fi
3227
3228else
3229
3230 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3238
3239fi;
3240
3241 eval "$ac_cv_use_dmalloc"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_DMALLOC" = yes; then
3247 echo "$as_me:$LINENO: result: yes" >&5
3248echo "${ECHO_T}yes" >&6
3249 else
3250 echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6
3252 fi
3253
3254
3255 echo "$as_me:$LINENO: checking for --with-regex" >&5
3256echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3257 no_cache=0
3258
3259# Check whether --with-regex or --without-regex was given.
3260if test "${with_regex+set}" = set; then
3261 withval="$with_regex"
3262
3263 if test "$withval" = yes; then
3264 ac_cv_use_regex='wxUSE_REGEX=yes'
3265 elif test "$withval" = no; then
3266 ac_cv_use_regex='wxUSE_REGEX=no'
3267 elif test "$withval" = sys; then
3268 ac_cv_use_regex='wxUSE_REGEX=sys'
3269 elif test "$withval" = builtin; then
3270 ac_cv_use_regex='wxUSE_REGEX=builtin'
3271 else
3272 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3273echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3274 { (exit 1); exit 1; }; }
3275 fi
3276
3277else
3278
3279 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3280 if test "x$LINE" != x ; then
3281 eval "DEFAULT_$LINE"
3282 else
3283 no_cache=1
3284 fi
3285
3286 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3287
3288fi;
3289
3290 eval "$ac_cv_use_regex"
3291 if test "$no_cache" != 1; then
3292 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3293 fi
3294
3295 if test "$wxUSE_REGEX" = yes; then
3296 echo "$as_me:$LINENO: result: yes" >&5
3297echo "${ECHO_T}yes" >&6
3298 elif test "$wxUSE_REGEX" = no; then
3299 echo "$as_me:$LINENO: result: no" >&5
3300echo "${ECHO_T}no" >&6
3301 elif test "$wxUSE_REGEX" = sys; then
3302 echo "$as_me:$LINENO: result: system version" >&5
3303echo "${ECHO_T}system version" >&6
3304 elif test "$wxUSE_REGEX" = builtin; then
3305 echo "$as_me:$LINENO: result: builtin version" >&5
3306echo "${ECHO_T}builtin version" >&6
3307 else
3308 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3309echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3310 { (exit 1); exit 1; }; }
3311 fi
3312
3313
3314 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3315echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3316 no_cache=0
3317
3318# Check whether --with-zlib or --without-zlib was given.
3319if test "${with_zlib+set}" = set; then
3320 withval="$with_zlib"
3321
3322 if test "$withval" = yes; then
3323 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3324 elif test "$withval" = no; then
3325 ac_cv_use_zlib='wxUSE_ZLIB=no'
3326 elif test "$withval" = sys; then
3327 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3328 elif test "$withval" = builtin; then
3329 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3330 else
3331 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3332echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3333 { (exit 1); exit 1; }; }
3334 fi
3335
3336else
3337
3338 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3339 if test "x$LINE" != x ; then
3340 eval "DEFAULT_$LINE"
3341 else
3342 no_cache=1
3343 fi
3344
3345 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3346
3347fi;
3348
3349 eval "$ac_cv_use_zlib"
3350 if test "$no_cache" != 1; then
3351 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3352 fi
3353
3354 if test "$wxUSE_ZLIB" = yes; then
3355 echo "$as_me:$LINENO: result: yes" >&5
3356echo "${ECHO_T}yes" >&6
3357 elif test "$wxUSE_ZLIB" = no; then
3358 echo "$as_me:$LINENO: result: no" >&5
3359echo "${ECHO_T}no" >&6
3360 elif test "$wxUSE_ZLIB" = sys; then
3361 echo "$as_me:$LINENO: result: system version" >&5
3362echo "${ECHO_T}system version" >&6
3363 elif test "$wxUSE_ZLIB" = builtin; then
3364 echo "$as_me:$LINENO: result: builtin version" >&5
3365echo "${ECHO_T}builtin version" >&6
3366 else
3367 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3368echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3369 { (exit 1); exit 1; }; }
3370 fi
3371
3372
3373 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3374echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3375 no_cache=0
3376
3377# Check whether --with-odbc or --without-odbc was given.
3378if test "${with_odbc+set}" = set; then
3379 withval="$with_odbc"
3380
3381 if test "$withval" = yes; then
3382 ac_cv_use_odbc='wxUSE_ODBC=yes'
3383 elif test "$withval" = no; then
3384 ac_cv_use_odbc='wxUSE_ODBC=no'
3385 elif test "$withval" = sys; then
3386 ac_cv_use_odbc='wxUSE_ODBC=sys'
3387 elif test "$withval" = builtin; then
3388 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3389 else
3390 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3391echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3392 { (exit 1); exit 1; }; }
3393 fi
3394
3395else
3396
3397 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3398 if test "x$LINE" != x ; then
3399 eval "DEFAULT_$LINE"
3400 else
3401 no_cache=1
3402 fi
3403
3404 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3405
3406fi;
3407
3408 eval "$ac_cv_use_odbc"
3409 if test "$no_cache" != 1; then
3410 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3411 fi
3412
3413 if test "$wxUSE_ODBC" = yes; then
3414 echo "$as_me:$LINENO: result: yes" >&5
3415echo "${ECHO_T}yes" >&6
3416 elif test "$wxUSE_ODBC" = no; then
3417 echo "$as_me:$LINENO: result: no" >&5
3418echo "${ECHO_T}no" >&6
3419 elif test "$wxUSE_ODBC" = sys; then
3420 echo "$as_me:$LINENO: result: system version" >&5
3421echo "${ECHO_T}system version" >&6
3422 elif test "$wxUSE_ODBC" = builtin; then
3423 echo "$as_me:$LINENO: result: builtin version" >&5
3424echo "${ECHO_T}builtin version" >&6
3425 else
3426 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3427echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3428 { (exit 1); exit 1; }; }
3429 fi
3430
3431
3432 echo "$as_me:$LINENO: checking for --with-expat" >&5
3433echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3434 no_cache=0
3435
3436# Check whether --with-expat or --without-expat was given.
3437if test "${with_expat+set}" = set; then
3438 withval="$with_expat"
3439
3440 if test "$withval" = yes; then
3441 ac_cv_use_expat='wxUSE_EXPAT=yes'
3442 elif test "$withval" = no; then
3443 ac_cv_use_expat='wxUSE_EXPAT=no'
3444 elif test "$withval" = sys; then
3445 ac_cv_use_expat='wxUSE_EXPAT=sys'
3446 elif test "$withval" = builtin; then
3447 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3448 else
3449 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3450echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3451 { (exit 1); exit 1; }; }
3452 fi
3453
3454else
3455
3456 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3464
3465fi;
3466
3467 eval "$ac_cv_use_expat"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_EXPAT" = yes; then
3473 echo "$as_me:$LINENO: result: yes" >&5
3474echo "${ECHO_T}yes" >&6
3475 elif test "$wxUSE_EXPAT" = no; then
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478 elif test "$wxUSE_EXPAT" = sys; then
3479 echo "$as_me:$LINENO: result: system version" >&5
3480echo "${ECHO_T}system version" >&6
3481 elif test "$wxUSE_EXPAT" = builtin; then
3482 echo "$as_me:$LINENO: result: builtin version" >&5
3483echo "${ECHO_T}builtin version" >&6
3484 else
3485 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3486echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3487 { (exit 1); exit 1; }; }
3488 fi
3489
3490
3491
3492
3493 enablestring=
3494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3495echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3496 no_cache=0
3497 # Check whether --enable-shared or --disable-shared was given.
3498if test "${enable_shared+set}" = set; then
3499 enableval="$enable_shared"
3500
3501 if test "$enableval" = yes; then
3502 ac_cv_use_shared='wxUSE_SHARED=yes'
3503 else
3504 ac_cv_use_shared='wxUSE_SHARED=no'
3505 fi
3506
3507else
3508
3509 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3510 if test "x$LINE" != x ; then
3511 eval "DEFAULT_$LINE"
3512 else
3513 no_cache=1
3514 fi
3515
3516 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3517
3518fi;
3519
3520 eval "$ac_cv_use_shared"
3521 if test "$no_cache" != 1; then
3522 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3523 fi
3524
3525 if test "$wxUSE_SHARED" = yes; then
3526 echo "$as_me:$LINENO: result: yes" >&5
3527echo "${ECHO_T}yes" >&6
3528 else
3529 echo "$as_me:$LINENO: result: no" >&5
3530echo "${ECHO_T}no" >&6
3531 fi
3532
3533
3534 enablestring=
3535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3536echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3537 no_cache=0
3538 # Check whether --enable-optimise or --disable-optimise was given.
3539if test "${enable_optimise+set}" = set; then
3540 enableval="$enable_optimise"
3541
3542 if test "$enableval" = yes; then
3543 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3544 else
3545 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3546 fi
3547
3548else
3549
3550 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3551 if test "x$LINE" != x ; then
3552 eval "DEFAULT_$LINE"
3553 else
3554 no_cache=1
3555 fi
3556
3557 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3558
3559fi;
3560
3561 eval "$ac_cv_use_optimise"
3562 if test "$no_cache" != 1; then
3563 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3564 fi
3565
3566 if test "$wxUSE_OPTIMISE" = yes; then
3567 echo "$as_me:$LINENO: result: yes" >&5
3568echo "${ECHO_T}yes" >&6
3569 else
3570 echo "$as_me:$LINENO: result: no" >&5
3571echo "${ECHO_T}no" >&6
3572 fi
3573
3574
3575 enablestring=
3576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3577echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3578 no_cache=0
3579 # Check whether --enable-debug or --disable-debug was given.
3580if test "${enable_debug+set}" = set; then
3581 enableval="$enable_debug"
3582
3583 if test "$enableval" = yes; then
3584 ac_cv_use_debug='wxUSE_DEBUG=yes'
3585 else
3586 ac_cv_use_debug='wxUSE_DEBUG=no'
3587 fi
3588
3589else
3590
3591 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3592 if test "x$LINE" != x ; then
3593 eval "DEFAULT_$LINE"
3594 else
3595 no_cache=1
3596 fi
3597
3598 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3599
3600fi;
3601
3602 eval "$ac_cv_use_debug"
3603 if test "$no_cache" != 1; then
3604 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3605 fi
3606
3607 if test "$wxUSE_DEBUG" = yes; then
3608 echo "$as_me:$LINENO: result: yes" >&5
3609echo "${ECHO_T}yes" >&6
3610 else
3611 echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6
3613 fi
3614
3615
3616 enablestring=
3617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3618echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3619 no_cache=0
3620 # Check whether --enable-stl or --disable-stl was given.
3621if test "${enable_stl+set}" = set; then
3622 enableval="$enable_stl"
3623
3624 if test "$enableval" = yes; then
3625 ac_cv_use_stl='wxUSE_STL=yes'
3626 else
3627 ac_cv_use_stl='wxUSE_STL=no'
3628 fi
3629
3630else
3631
3632 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3633 if test "x$LINE" != x ; then
3634 eval "DEFAULT_$LINE"
3635 else
3636 no_cache=1
3637 fi
3638
3639 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3640
3641fi;
3642
3643 eval "$ac_cv_use_stl"
3644 if test "$no_cache" != 1; then
3645 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3646 fi
3647
3648 if test "$wxUSE_STL" = yes; then
3649 echo "$as_me:$LINENO: result: yes" >&5
3650echo "${ECHO_T}yes" >&6
3651 else
3652 echo "$as_me:$LINENO: result: no" >&5
3653echo "${ECHO_T}no" >&6
3654 fi
3655
3656if test "$USE_OS2" = "1"; then
69120ee4 3657 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3658
3659 enablestring=
3660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3661echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3662 no_cache=0
3663 # Check whether --enable-omf or --disable-omf was given.
3664if test "${enable_omf+set}" = set; then
3665 enableval="$enable_omf"
3666
3667 if test "$enableval" = yes; then
3668 ac_cv_use_omf='wxUSE_OMF=yes'
3669 else
3670 ac_cv_use_omf='wxUSE_OMF=no'
3671 fi
3672
3673else
3674
3675 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3676 if test "x$LINE" != x ; then
3677 eval "DEFAULT_$LINE"
3678 else
3679 no_cache=1
3680 fi
3681
3682 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3683
3684fi;
3685
3686 eval "$ac_cv_use_omf"
3687 if test "$no_cache" != 1; then
3688 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3689 fi
3690
3691 if test "$wxUSE_OMF" = yes; then
3692 echo "$as_me:$LINENO: result: yes" >&5
3693echo "${ECHO_T}yes" >&6
3694 else
3695 echo "$as_me:$LINENO: result: no" >&5
3696echo "${ECHO_T}no" >&6
3697 fi
3698
3699fi
3700
3701if test "$wxUSE_DEBUG" = "yes"; then
3702 DEFAULT_wxUSE_DEBUG_FLAG=yes
3703 DEFAULT_wxUSE_DEBUG_INFO=yes
3704 BUILD=debug
3705elif test "$wxUSE_DEBUG" = "no"; then
3706 DEFAULT_wxUSE_DEBUG_FLAG=no
3707 DEFAULT_wxUSE_DEBUG_INFO=no
3708 BUILD=release
3709fi
3710
3711
3712 enablestring=
3713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3714echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3715 no_cache=0
3716 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3717if test "${enable_debug_flag+set}" = set; then
3718 enableval="$enable_debug_flag"
3719
3720 if test "$enableval" = yes; then
3721 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3722 else
3723 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3724 fi
3725
3726else
3727
3728 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3729 if test "x$LINE" != x ; then
3730 eval "DEFAULT_$LINE"
3731 else
3732 no_cache=1
3733 fi
3734
3735 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3736
3737fi;
3738
3739 eval "$ac_cv_use_debug_flag"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_DEBUG_FLAG" = yes; then
3745 echo "$as_me:$LINENO: result: yes" >&5
3746echo "${ECHO_T}yes" >&6
3747 else
3748 echo "$as_me:$LINENO: result: no" >&5
3749echo "${ECHO_T}no" >&6
3750 fi
3751
3752
3753 enablestring=
3754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3755echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3756 no_cache=0
3757 # Check whether --enable-debug_info or --disable-debug_info was given.
3758if test "${enable_debug_info+set}" = set; then
3759 enableval="$enable_debug_info"
3760
3761 if test "$enableval" = yes; then
3762 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3763 else
3764 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3765 fi
3766
3767else
3768
3769 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3770 if test "x$LINE" != x ; then
3771 eval "DEFAULT_$LINE"
3772 else
3773 no_cache=1
3774 fi
3775
3776 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3777
3778fi;
3779
3780 eval "$ac_cv_use_debug_info"
3781 if test "$no_cache" != 1; then
3782 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3783 fi
3784
3785 if test "$wxUSE_DEBUG_INFO" = yes; then
3786 echo "$as_me:$LINENO: result: yes" >&5
3787echo "${ECHO_T}yes" >&6
3788 else
3789 echo "$as_me:$LINENO: result: no" >&5
3790echo "${ECHO_T}no" >&6
3791 fi
3792
3793
3794 enablestring=
3795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3796echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3797 no_cache=0
3798 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3799if test "${enable_debug_gdb+set}" = set; then
3800 enableval="$enable_debug_gdb"
3801
3802 if test "$enableval" = yes; then
3803 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3804 else
3805 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3806 fi
3807
3808else
3809
3810 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3818
3819fi;
3820
3821 eval "$ac_cv_use_debug_gdb"
3822 if test "$no_cache" != 1; then
3823 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3824 fi
3825
3826 if test "$wxUSE_DEBUG_GDB" = yes; then
3827 echo "$as_me:$LINENO: result: yes" >&5
3828echo "${ECHO_T}yes" >&6
3829 else
3830 echo "$as_me:$LINENO: result: no" >&5
3831echo "${ECHO_T}no" >&6
3832 fi
3833
3834
3835 enablestring=
3836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3837echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3838 no_cache=0
3839 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3840if test "${enable_debug_cntxt+set}" = set; then
3841 enableval="$enable_debug_cntxt"
3842
3843 if test "$enableval" = yes; then
3844 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3845 else
3846 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3847 fi
3848
3849else
3850
3851 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3852 if test "x$LINE" != x ; then
3853 eval "DEFAULT_$LINE"
3854 else
3855 no_cache=1
3856 fi
3857
3858 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3859
3860fi;
3861
3862 eval "$ac_cv_use_debug_cntxt"
3863 if test "$no_cache" != 1; then
3864 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3865 fi
3866
3867 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3868 echo "$as_me:$LINENO: result: yes" >&5
3869echo "${ECHO_T}yes" >&6
3870 else
3871 echo "$as_me:$LINENO: result: no" >&5
3872echo "${ECHO_T}no" >&6
3873 fi
3874
3875
3876 enablestring=
3877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3878echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3879 no_cache=0
3880 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3881if test "${enable_mem_tracing+set}" = set; then
3882 enableval="$enable_mem_tracing"
3883
3884 if test "$enableval" = yes; then
3885 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3886 else
3887 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3888 fi
3889
3890else
3891
3892 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3893 if test "x$LINE" != x ; then
3894 eval "DEFAULT_$LINE"
3895 else
3896 no_cache=1
3897 fi
3898
3899 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3900
3901fi;
3902
3903 eval "$ac_cv_use_mem_tracing"
3904 if test "$no_cache" != 1; then
3905 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3906 fi
3907
3908 if test "$wxUSE_MEM_TRACING" = yes; then
3909 echo "$as_me:$LINENO: result: yes" >&5
3910echo "${ECHO_T}yes" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
3914 fi
3915
3916
3917 enablestring=
3918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3919echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3920 no_cache=0
3921 # Check whether --enable-profile or --disable-profile was given.
3922if test "${enable_profile+set}" = set; then
3923 enableval="$enable_profile"
3924
3925 if test "$enableval" = yes; then
3926 ac_cv_use_profile='wxUSE_PROFILE=yes'
3927 else
3928 ac_cv_use_profile='wxUSE_PROFILE=no'
3929 fi
3930
3931else
3932
3933 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3934 if test "x$LINE" != x ; then
3935 eval "DEFAULT_$LINE"
3936 else
3937 no_cache=1
3938 fi
3939
3940 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3941
3942fi;
3943
3944 eval "$ac_cv_use_profile"
3945 if test "$no_cache" != 1; then
3946 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3947 fi
3948
3949 if test "$wxUSE_PROFILE" = yes; then
3950 echo "$as_me:$LINENO: result: yes" >&5
3951echo "${ECHO_T}yes" >&6
3952 else
3953 echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
3955 fi
3956
3957
3958 enablestring=
3959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3960echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3961 no_cache=0
3962 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3963if test "${enable_no_rtti+set}" = set; then
3964 enableval="$enable_no_rtti"
3965
3966 if test "$enableval" = yes; then
3967 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3968 else
3969 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3970 fi
3971
3972else
3973
3974 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3975 if test "x$LINE" != x ; then
3976 eval "DEFAULT_$LINE"
3977 else
3978 no_cache=1
3979 fi
3980
3981 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3982
3983fi;
3984
3985 eval "$ac_cv_use_no_rtti"
3986 if test "$no_cache" != 1; then
3987 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3988 fi
3989
3990 if test "$wxUSE_NO_RTTI" = yes; then
3991 echo "$as_me:$LINENO: result: yes" >&5
3992echo "${ECHO_T}yes" >&6
3993 else
3994 echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
3996 fi
3997
3998
3999 enablestring=
4000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4001echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4002 no_cache=0
4003 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4004if test "${enable_no_exceptions+set}" = set; then
4005 enableval="$enable_no_exceptions"
4006
4007 if test "$enableval" = yes; then
4008 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4009 else
4010 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4011 fi
4012
4013else
4014
4015 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4016 if test "x$LINE" != x ; then
4017 eval "DEFAULT_$LINE"
4018 else
4019 no_cache=1
4020 fi
4021
4022 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4023
4024fi;
4025
4026 eval "$ac_cv_use_no_exceptions"
4027 if test "$no_cache" != 1; then
4028 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4029 fi
4030
4031 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4032 echo "$as_me:$LINENO: result: yes" >&5
4033echo "${ECHO_T}yes" >&6
4034 else
4035 echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6
4037 fi
4038
4039
4040 enablestring=
4041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4042echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4043 no_cache=0
4044 # Check whether --enable-permissive or --disable-permissive was given.
4045if test "${enable_permissive+set}" = set; then
4046 enableval="$enable_permissive"
4047
4048 if test "$enableval" = yes; then
4049 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4050 else
4051 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4052 fi
4053
4054else
4055
4056 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4057 if test "x$LINE" != x ; then
4058 eval "DEFAULT_$LINE"
4059 else
4060 no_cache=1
4061 fi
4062
4063 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4064
4065fi;
4066
4067 eval "$ac_cv_use_permissive"
4068 if test "$no_cache" != 1; then
4069 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4070 fi
4071
4072 if test "$wxUSE_PERMISSIVE" = yes; then
4073 echo "$as_me:$LINENO: result: yes" >&5
4074echo "${ECHO_T}yes" >&6
4075 else
4076 echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6
4078 fi
4079
4080
4081 enablestring=
4082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4083echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4084 no_cache=0
4085 # Check whether --enable-no_deps or --disable-no_deps was given.
4086if test "${enable_no_deps+set}" = set; then
4087 enableval="$enable_no_deps"
4088
4089 if test "$enableval" = yes; then
4090 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4091 else
4092 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4093 fi
4094
4095else
4096
4097 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
4104 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4105
4106fi;
4107
4108 eval "$ac_cv_use_no_deps"
4109 if test "$no_cache" != 1; then
4110 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4111 fi
4112
4113 if test "$wxUSE_NO_DEPS" = yes; then
4114 echo "$as_me:$LINENO: result: yes" >&5
4115echo "${ECHO_T}yes" >&6
4116 else
4117 echo "$as_me:$LINENO: result: no" >&5
4118echo "${ECHO_T}no" >&6
4119 fi
4120
4121
4122
dee1a63f
MB
4123 enablestring=enable
4124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4125echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4126 no_cache=0
dee1a63f
MB
4127 # Check whether --enable-compat24 or --disable-compat24 was given.
4128if test "${enable_compat24+set}" = set; then
4129 enableval="$enable_compat24"
a848cd7e
SC
4130
4131 if test "$enableval" = yes; then
dee1a63f 4132 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4133 else
dee1a63f 4134 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4135 fi
4136
4137else
4138
dee1a63f 4139 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4140 if test "x$LINE" != x ; then
4141 eval "DEFAULT_$LINE"
4142 else
4143 no_cache=1
4144 fi
4145
dee1a63f 4146 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4147
4148fi;
4149
dee1a63f 4150 eval "$ac_cv_use_compat24"
a848cd7e 4151 if test "$no_cache" != 1; then
dee1a63f 4152 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4153 fi
4154
dee1a63f 4155 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4156 echo "$as_me:$LINENO: result: yes" >&5
4157echo "${ECHO_T}yes" >&6
4158 else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161 fi
4162
4163
4164 enablestring=disable
dee1a63f
MB
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4167 no_cache=0
dee1a63f
MB
4168 # Check whether --enable-compat26 or --disable-compat26 was given.
4169if test "${enable_compat26+set}" = set; then
4170 enableval="$enable_compat26"
a848cd7e
SC
4171
4172 if test "$enableval" = yes; then
dee1a63f 4173 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4174 else
dee1a63f 4175 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4176 fi
4177
4178else
4179
dee1a63f 4180 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
dee1a63f 4187 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4188
4189fi;
4190
dee1a63f 4191 eval "$ac_cv_use_compat26"
a848cd7e 4192 if test "$no_cache" != 1; then
dee1a63f 4193 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4194 fi
4195
dee1a63f 4196 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
4199 else
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202 fi
4203
4204
ffa0583f
RL
4205
4206 enablestring=
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4209 no_cache=0
4210 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4211if test "${enable_rpath+set}" = set; then
4212 enableval="$enable_rpath"
ffa0583f
RL
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_rpath='wxUSE_RPATH=yes'
4216 else
4217 ac_cv_use_rpath='wxUSE_RPATH=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4230
a848cd7e
SC
4231fi;
4232
ffa0583f
RL
4233 eval "$ac_cv_use_rpath"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_RPATH" = yes; then
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241 else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244 fi
4245
a848cd7e
SC
4246
4247
4248
4249
4250 enablestring=
4251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4252echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4253 no_cache=0
4254 # Check whether --enable-intl or --disable-intl was given.
4255if test "${enable_intl+set}" = set; then
4256 enableval="$enable_intl"
4257
4258 if test "$enableval" = yes; then
4259 ac_cv_use_intl='wxUSE_INTL=yes'
4260 else
4261 ac_cv_use_intl='wxUSE_INTL=no'
4262 fi
4263
4264else
4265
4266 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4274
4275fi;
4276
4277 eval "$ac_cv_use_intl"
4278 if test "$no_cache" != 1; then
4279 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4280 fi
4281
4282 if test "$wxUSE_INTL" = yes; then
4283 echo "$as_me:$LINENO: result: yes" >&5
4284echo "${ECHO_T}yes" >&6
4285 else
4286 echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
4288 fi
4289
4290
4291 enablestring=
4292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4293echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4294 no_cache=0
4295 # Check whether --enable-config or --disable-config was given.
4296if test "${enable_config+set}" = set; then
4297 enableval="$enable_config"
4298
4299 if test "$enableval" = yes; then
4300 ac_cv_use_config='wxUSE_CONFIG=yes'
4301 else
4302 ac_cv_use_config='wxUSE_CONFIG=no'
4303 fi
4304
4305else
4306
4307 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4308 if test "x$LINE" != x ; then
4309 eval "DEFAULT_$LINE"
4310 else
4311 no_cache=1
4312 fi
4313
4314 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4315
4316fi;
4317
4318 eval "$ac_cv_use_config"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_CONFIG" = yes; then
4324 echo "$as_me:$LINENO: result: yes" >&5
4325echo "${ECHO_T}yes" >&6
4326 else
4327 echo "$as_me:$LINENO: result: no" >&5
4328echo "${ECHO_T}no" >&6
4329 fi
4330
4331
4332
4333 enablestring=
4334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4335echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4336 no_cache=0
4337 # Check whether --enable-protocols or --disable-protocols was given.
4338if test "${enable_protocols+set}" = set; then
4339 enableval="$enable_protocols"
4340
4341 if test "$enableval" = yes; then
4342 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4343 else
4344 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4345 fi
4346
4347else
4348
4349 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4350 if test "x$LINE" != x ; then
4351 eval "DEFAULT_$LINE"
4352 else
4353 no_cache=1
4354 fi
4355
4356 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4357
4358fi;
4359
4360 eval "$ac_cv_use_protocols"
4361 if test "$no_cache" != 1; then
4362 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4363 fi
4364
4365 if test "$wxUSE_PROTOCOL" = yes; then
4366 echo "$as_me:$LINENO: result: yes" >&5
4367echo "${ECHO_T}yes" >&6
4368 else
4369 echo "$as_me:$LINENO: result: no" >&5
4370echo "${ECHO_T}no" >&6
4371 fi
4372
4373
4374 enablestring=
4375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4376echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4377 no_cache=0
4378 # Check whether --enable-ftp or --disable-ftp was given.
4379if test "${enable_ftp+set}" = set; then
4380 enableval="$enable_ftp"
4381
4382 if test "$enableval" = yes; then
4383 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4384 else
4385 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4386 fi
4387
4388else
4389
4390 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4391 if test "x$LINE" != x ; then
4392 eval "DEFAULT_$LINE"
4393 else
4394 no_cache=1
4395 fi
4396
4397 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4398
4399fi;
4400
4401 eval "$ac_cv_use_ftp"
4402 if test "$no_cache" != 1; then
4403 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4404 fi
4405
4406 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4407 echo "$as_me:$LINENO: result: yes" >&5
4408echo "${ECHO_T}yes" >&6
4409 else
4410 echo "$as_me:$LINENO: result: no" >&5
4411echo "${ECHO_T}no" >&6
4412 fi
4413
4414
4415 enablestring=
4416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4417echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4418 no_cache=0
4419 # Check whether --enable-http or --disable-http was given.
4420if test "${enable_http+set}" = set; then
4421 enableval="$enable_http"
4422
4423 if test "$enableval" = yes; then
4424 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4425 else
4426 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4427 fi
4428
4429else
4430
4431 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4432 if test "x$LINE" != x ; then
4433 eval "DEFAULT_$LINE"
4434 else
4435 no_cache=1
4436 fi
4437
4438 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4439
4440fi;
4441
4442 eval "$ac_cv_use_http"
4443 if test "$no_cache" != 1; then
4444 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4445 fi
4446
4447 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4448 echo "$as_me:$LINENO: result: yes" >&5
4449echo "${ECHO_T}yes" >&6
4450 else
4451 echo "$as_me:$LINENO: result: no" >&5
4452echo "${ECHO_T}no" >&6
4453 fi
4454
4455
4456 enablestring=
4457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4458echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4459 no_cache=0
4460 # Check whether --enable-fileproto or --disable-fileproto was given.
4461if test "${enable_fileproto+set}" = set; then
4462 enableval="$enable_fileproto"
4463
4464 if test "$enableval" = yes; then
4465 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4466 else
4467 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4468 fi
4469
4470else
4471
4472 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4480
4481fi;
4482
4483 eval "$ac_cv_use_fileproto"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4489 echo "$as_me:$LINENO: result: yes" >&5
4490echo "${ECHO_T}yes" >&6
4491 else
4492 echo "$as_me:$LINENO: result: no" >&5
4493echo "${ECHO_T}no" >&6
4494 fi
4495
4496
4497 enablestring=
4498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4499echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4500 no_cache=0
4501 # Check whether --enable-sockets or --disable-sockets was given.
4502if test "${enable_sockets+set}" = set; then
4503 enableval="$enable_sockets"
4504
4505 if test "$enableval" = yes; then
4506 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4507 else
4508 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4509 fi
4510
4511else
4512
4513 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4514 if test "x$LINE" != x ; then
4515 eval "DEFAULT_$LINE"
4516 else
4517 no_cache=1
4518 fi
4519
4520 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4521
4522fi;
4523
4524 eval "$ac_cv_use_sockets"
4525 if test "$no_cache" != 1; then
4526 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4527 fi
4528
4529 if test "$wxUSE_SOCKETS" = yes; then
4530 echo "$as_me:$LINENO: result: yes" >&5
4531echo "${ECHO_T}yes" >&6
4532 else
4533 echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6
4535 fi
4536
4537
4538 enablestring=
4539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4540echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4541 no_cache=0
4542 # Check whether --enable-ole or --disable-ole was given.
4543if test "${enable_ole+set}" = set; then
4544 enableval="$enable_ole"
4545
4546 if test "$enableval" = yes; then
4547 ac_cv_use_ole='wxUSE_OLE=yes'
4548 else
4549 ac_cv_use_ole='wxUSE_OLE=no'
4550 fi
4551
4552else
4553
4554 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4555 if test "x$LINE" != x ; then
4556 eval "DEFAULT_$LINE"
4557 else
4558 no_cache=1
4559 fi
4560
4561 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4562
4563fi;
4564
4565 eval "$ac_cv_use_ole"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_OLE" = yes; then
4571 echo "$as_me:$LINENO: result: yes" >&5
4572echo "${ECHO_T}yes" >&6
4573 else
4574 echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6
4576 fi
4577
4578
4579 enablestring=
4580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4581echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4582 no_cache=0
4583 # Check whether --enable-dataobj or --disable-dataobj was given.
4584if test "${enable_dataobj+set}" = set; then
4585 enableval="$enable_dataobj"
4586
4587 if test "$enableval" = yes; then
4588 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4589 else
4590 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4591 fi
4592
4593else
4594
4595 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4596 if test "x$LINE" != x ; then
4597 eval "DEFAULT_$LINE"
4598 else
4599 no_cache=1
4600 fi
4601
4602 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4603
4604fi;
4605
4606 eval "$ac_cv_use_dataobj"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_DATAOBJ" = yes; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613echo "${ECHO_T}yes" >&6
4614 else
4615 echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6
4617 fi
4618
4619
4620
4621 enablestring=
4622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4623echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4624 no_cache=0
4625 # Check whether --enable-ipc or --disable-ipc was given.
4626if test "${enable_ipc+set}" = set; then
4627 enableval="$enable_ipc"
4628
4629 if test "$enableval" = yes; then
4630 ac_cv_use_ipc='wxUSE_IPC=yes'
4631 else
4632 ac_cv_use_ipc='wxUSE_IPC=no'
4633 fi
4634
4635else
4636
4637 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4638 if test "x$LINE" != x ; then
4639 eval "DEFAULT_$LINE"
4640 else
4641 no_cache=1
4642 fi
4643
4644 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4645
4646fi;
4647
4648 eval "$ac_cv_use_ipc"
4649 if test "$no_cache" != 1; then
4650 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4651 fi
4652
4653 if test "$wxUSE_IPC" = yes; then
4654 echo "$as_me:$LINENO: result: yes" >&5
4655echo "${ECHO_T}yes" >&6
4656 else
4657 echo "$as_me:$LINENO: result: no" >&5
4658echo "${ECHO_T}no" >&6
4659 fi
4660
4661
4662
4663 enablestring=
4664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4665echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4666 no_cache=0
4667 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4668if test "${enable_apple_ieee+set}" = set; then
4669 enableval="$enable_apple_ieee"
4670
4671 if test "$enableval" = yes; then
4672 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4673 else
4674 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4675 fi
4676
4677else
4678
4679 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4680 if test "x$LINE" != x ; then
4681 eval "DEFAULT_$LINE"
4682 else
4683 no_cache=1
4684 fi
4685
4686 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4687
4688fi;
4689
4690 eval "$ac_cv_use_apple_ieee"
4691 if test "$no_cache" != 1; then
4692 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4693 fi
4694
4695 if test "$wxUSE_APPLE_IEEE" = yes; then
4696 echo "$as_me:$LINENO: result: yes" >&5
4697echo "${ECHO_T}yes" >&6
4698 else
4699 echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6
4701 fi
4702
4703
81f90336
MW
4704 enablestring=
4705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4706echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4707 no_cache=0
4708 # Check whether --enable-arcstream or --disable-arcstream was given.
4709if test "${enable_arcstream+set}" = set; then
4710 enableval="$enable_arcstream"
4711
4712 if test "$enableval" = yes; then
9e8e867f 4713 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4714 else
9e8e867f 4715 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4716 fi
4717
4718else
4719
9e8e867f 4720 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4721 if test "x$LINE" != x ; then
4722 eval "DEFAULT_$LINE"
4723 else
4724 no_cache=1
4725 fi
4726
9e8e867f 4727 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4728
4729fi;
4730
4731 eval "$ac_cv_use_arcstream"
4732 if test "$no_cache" != 1; then
4733 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4734 fi
4735
9e8e867f 4736 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4737 echo "$as_me:$LINENO: result: yes" >&5
4738echo "${ECHO_T}yes" >&6
4739 else
4740 echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6
4742 fi
4743
4744
a848cd7e 4745 enablestring=
36b6448c
VZ
4746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4747echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4748 no_cache=0
36b6448c
VZ
4749 # Check whether --enable-backtrace or --disable-backtrace was given.
4750if test "${enable_backtrace+set}" = set; then
4751 enableval="$enable_backtrace"
a848cd7e
SC
4752
4753 if test "$enableval" = yes; then
36b6448c 4754 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4755 else
36b6448c 4756 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4757 fi
4758
4759else
4760
36b6448c 4761 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4762 if test "x$LINE" != x ; then
4763 eval "DEFAULT_$LINE"
4764 else
4765 no_cache=1
4766 fi
4767
36b6448c 4768 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4769
4770fi;
4771
36b6448c 4772 eval "$ac_cv_use_backtrace"
a848cd7e 4773 if test "$no_cache" != 1; then
36b6448c 4774 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4775 fi
4776
36b6448c 4777 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4778 echo "$as_me:$LINENO: result: yes" >&5
4779echo "${ECHO_T}yes" >&6
4780 else
4781 echo "$as_me:$LINENO: result: no" >&5
4782echo "${ECHO_T}no" >&6
4783 fi
4784
4785
eaff0f0d 4786 enablestring=
36b6448c
VZ
4787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4788echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4789 no_cache=0
36b6448c
VZ
4790 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4791if test "${enable_catch_segvs+set}" = set; then
4792 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4793
4794 if test "$enableval" = yes; then
36b6448c 4795 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4796 else
36b6448c 4797 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4798 fi
4799
4800else
4801
36b6448c 4802 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4803 if test "x$LINE" != x ; then
4804 eval "DEFAULT_$LINE"
4805 else
4806 no_cache=1
4807 fi
4808
36b6448c 4809 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4810
4811fi;
4812
36b6448c 4813 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4814 if test "$no_cache" != 1; then
36b6448c 4815 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4816 fi
4817
36b6448c 4818 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4819 echo "$as_me:$LINENO: result: yes" >&5
4820echo "${ECHO_T}yes" >&6
4821 else
4822 echo "$as_me:$LINENO: result: no" >&5
4823echo "${ECHO_T}no" >&6
4824 fi
4825
4826
a848cd7e
SC
4827 enablestring=
4828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4829echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4830 no_cache=0
4831 # Check whether --enable-cmdline or --disable-cmdline was given.
4832if test "${enable_cmdline+set}" = set; then
4833 enableval="$enable_cmdline"
4834
4835 if test "$enableval" = yes; then
4836 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4837 else
4838 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4839 fi
4840
4841else
4842
4843 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4844 if test "x$LINE" != x ; then
4845 eval "DEFAULT_$LINE"
4846 else
4847 no_cache=1
4848 fi
4849
4850 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4851
4852fi;
4853
4854 eval "$ac_cv_use_cmdline"
4855 if test "$no_cache" != 1; then
4856 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4857 fi
4858
4859 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4860 echo "$as_me:$LINENO: result: yes" >&5
4861echo "${ECHO_T}yes" >&6
4862 else
4863 echo "$as_me:$LINENO: result: no" >&5
4864echo "${ECHO_T}no" >&6
4865 fi
4866
4867
4868 enablestring=
4869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4870echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4871 no_cache=0
4872 # Check whether --enable-datetime or --disable-datetime was given.
4873if test "${enable_datetime+set}" = set; then
4874 enableval="$enable_datetime"
4875
4876 if test "$enableval" = yes; then
4877 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4878 else
4879 ac_cv_use_datetime='wxUSE_DATETIME=no'
4880 fi
4881
4882else
4883
4884 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4885 if test "x$LINE" != x ; then
4886 eval "DEFAULT_$LINE"
4887 else
4888 no_cache=1
4889 fi
4890
4891 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4892
4893fi;
4894
4895 eval "$ac_cv_use_datetime"
4896 if test "$no_cache" != 1; then
4897 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4898 fi
4899
4900 if test "$wxUSE_DATETIME" = yes; then
4901 echo "$as_me:$LINENO: result: yes" >&5
4902echo "${ECHO_T}yes" >&6
4903 else
4904 echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6
4906 fi
4907
4908
36b6448c
VZ
4909 enablestring=
4910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4911echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4912 no_cache=0
4913 # Check whether --enable-debugreport or --disable-debugreport was given.
4914if test "${enable_debugreport+set}" = set; then
4915 enableval="$enable_debugreport"
4916
4917 if test "$enableval" = yes; then
4918 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4919 else
4920 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4921 fi
4922
4923else
4924
4925 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4926 if test "x$LINE" != x ; then
4927 eval "DEFAULT_$LINE"
4928 else
4929 no_cache=1
4930 fi
4931
4932 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4933
4934fi;
4935
4936 eval "$ac_cv_use_debugreport"
4937 if test "$no_cache" != 1; then
4938 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4939 fi
4940
4941 if test "$wxUSE_DEBUGREPORT" = yes; then
4942 echo "$as_me:$LINENO: result: yes" >&5
4943echo "${ECHO_T}yes" >&6
4944 else
4945 echo "$as_me:$LINENO: result: no" >&5
4946echo "${ECHO_T}no" >&6
4947 fi
4948
4949
a848cd7e
SC
4950 enablestring=
4951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4952echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4953 no_cache=0
4954 # Check whether --enable-dialupman or --disable-dialupman was given.
4955if test "${enable_dialupman+set}" = set; then
4956 enableval="$enable_dialupman"
4957
4958 if test "$enableval" = yes; then
4959 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4960 else
4961 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4962 fi
4963
4964else
4965
4966 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4967 if test "x$LINE" != x ; then
4968 eval "DEFAULT_$LINE"
4969 else
4970 no_cache=1
4971 fi
4972
4973 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4974
4975fi;
4976
4977 eval "$ac_cv_use_dialupman"
4978 if test "$no_cache" != 1; then
4979 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4980 fi
4981
4982 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4983 echo "$as_me:$LINENO: result: yes" >&5
4984echo "${ECHO_T}yes" >&6
4985 else
4986 echo "$as_me:$LINENO: result: no" >&5
4987echo "${ECHO_T}no" >&6
4988 fi
4989
4990
4991 enablestring=
4992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4993echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4994 no_cache=0
4995 # Check whether --enable-dynlib or --disable-dynlib was given.
4996if test "${enable_dynlib+set}" = set; then
4997 enableval="$enable_dynlib"
4998
4999 if test "$enableval" = yes; then
5000 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5001 else
5002 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5003 fi
5004
5005else
5006
5007 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5008 if test "x$LINE" != x ; then
5009 eval "DEFAULT_$LINE"
5010 else
5011 no_cache=1
5012 fi
5013
5014 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5015
5016fi;
5017
5018 eval "$ac_cv_use_dynlib"
5019 if test "$no_cache" != 1; then
5020 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5021 fi
5022
5023 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5024 echo "$as_me:$LINENO: result: yes" >&5
5025echo "${ECHO_T}yes" >&6
5026 else
5027 echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029 fi
5030
5031
5032 enablestring=
5033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5034echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5035 no_cache=0
5036 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5037if test "${enable_dynamicloader+set}" = set; then
5038 enableval="$enable_dynamicloader"
5039
5040 if test "$enableval" = yes; then
5041 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5042 else
5043 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5044 fi
5045
5046else
5047
5048 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5049 if test "x$LINE" != x ; then
5050 eval "DEFAULT_$LINE"
5051 else
5052 no_cache=1
5053 fi
5054
5055 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5056
5057fi;
5058
5059 eval "$ac_cv_use_dynamicloader"
5060 if test "$no_cache" != 1; then
5061 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5062 fi
5063
5064 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5065 echo "$as_me:$LINENO: result: yes" >&5
5066echo "${ECHO_T}yes" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069echo "${ECHO_T}no" >&6
5070 fi
5071
5072
5073 enablestring=
5074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5075echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5076 no_cache=0
5077 # Check whether --enable-exceptions or --disable-exceptions was given.
5078if test "${enable_exceptions+set}" = set; then
5079 enableval="$enable_exceptions"
5080
5081 if test "$enableval" = yes; then
5082 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5083 else
5084 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5085 fi
5086
5087else
5088
5089 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5090 if test "x$LINE" != x ; then
5091 eval "DEFAULT_$LINE"
5092 else
5093 no_cache=1
5094 fi
5095
5096 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5097
5098fi;
5099
5100 eval "$ac_cv_use_exceptions"
5101 if test "$no_cache" != 1; then
5102 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5103 fi
5104
5105 if test "$wxUSE_EXCEPTIONS" = yes; then
5106 echo "$as_me:$LINENO: result: yes" >&5
5107echo "${ECHO_T}yes" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110echo "${ECHO_T}no" >&6
5111 fi
5112
5113
5114 enablestring=
5115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5116echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5117 no_cache=0
5118 # Check whether --enable-ffile or --disable-ffile was given.
5119if test "${enable_ffile+set}" = set; then
5120 enableval="$enable_ffile"
5121
5122 if test "$enableval" = yes; then
5123 ac_cv_use_ffile='wxUSE_FFILE=yes'
5124 else
5125 ac_cv_use_ffile='wxUSE_FFILE=no'
5126 fi
5127
5128else
5129
5130 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5131 if test "x$LINE" != x ; then
5132 eval "DEFAULT_$LINE"
5133 else
5134 no_cache=1
5135 fi
5136
5137 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5138
5139fi;
5140
5141 eval "$ac_cv_use_ffile"
5142 if test "$no_cache" != 1; then
5143 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5144 fi
5145
5146 if test "$wxUSE_FFILE" = yes; then
5147 echo "$as_me:$LINENO: result: yes" >&5
5148echo "${ECHO_T}yes" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151echo "${ECHO_T}no" >&6
5152 fi
5153
5154
5155 enablestring=
5156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5157echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5158 no_cache=0
5159 # Check whether --enable-file or --disable-file was given.
5160if test "${enable_file+set}" = set; then
5161 enableval="$enable_file"
5162
5163 if test "$enableval" = yes; then
5164 ac_cv_use_file='wxUSE_FILE=yes'
5165 else
5166 ac_cv_use_file='wxUSE_FILE=no'
5167 fi
5168
5169else
5170
5171 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5172 if test "x$LINE" != x ; then
5173 eval "DEFAULT_$LINE"
5174 else
5175 no_cache=1
5176 fi
5177
5178 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5179
5180fi;
5181
5182 eval "$ac_cv_use_file"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_FILE" = yes; then
5188 echo "$as_me:$LINENO: result: yes" >&5
5189echo "${ECHO_T}yes" >&6
5190 else
5191 echo "$as_me:$LINENO: result: no" >&5
5192echo "${ECHO_T}no" >&6
5193 fi
5194
5195
5196 enablestring=
5197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5198echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5199 no_cache=0
5200 # Check whether --enable-filesystem or --disable-filesystem was given.
5201if test "${enable_filesystem+set}" = set; then
5202 enableval="$enable_filesystem"
5203
5204 if test "$enableval" = yes; then
5205 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5206 else
5207 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5208 fi
5209
5210else
5211
5212 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5213 if test "x$LINE" != x ; then
5214 eval "DEFAULT_$LINE"
5215 else
5216 no_cache=1
5217 fi
5218
5219 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5220
5221fi;
5222
5223 eval "$ac_cv_use_filesystem"
5224 if test "$no_cache" != 1; then
5225 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5226 fi
5227
5228 if test "$wxUSE_FILESYSTEM" = yes; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230echo "${ECHO_T}yes" >&6
5231 else
5232 echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6
5234 fi
5235
5236
5237 enablestring=
5238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5239echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5240 no_cache=0
5241 # Check whether --enable-fontmap or --disable-fontmap was given.
5242if test "${enable_fontmap+set}" = set; then
5243 enableval="$enable_fontmap"
5244
5245 if test "$enableval" = yes; then
5246 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5247 else
5248 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5249 fi
5250
5251else
5252
5253 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5261
5262fi;
5263
5264 eval "$ac_cv_use_fontmap"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_FONTMAP" = yes; then
5270 echo "$as_me:$LINENO: result: yes" >&5
5271echo "${ECHO_T}yes" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
5275 fi
5276
5277
5278 enablestring=
5279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5280echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5281 no_cache=0
5282 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5283if test "${enable_fs_inet+set}" = set; then
5284 enableval="$enable_fs_inet"
5285
5286 if test "$enableval" = yes; then
5287 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5288 else
5289 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5290 fi
5291
5292else
5293
5294 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5295 if test "x$LINE" != x ; then
5296 eval "DEFAULT_$LINE"
5297 else
5298 no_cache=1
5299 fi
5300
5301 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5302
5303fi;
5304
5305 eval "$ac_cv_use_fs_inet"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_FS_INET" = yes; then
5311 echo "$as_me:$LINENO: result: yes" >&5
5312echo "${ECHO_T}yes" >&6
5313 else
5314 echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316 fi
5317
5318
5319 enablestring=
5320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5321echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5322 no_cache=0
5323 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5324if test "${enable_fs_zip+set}" = set; then
5325 enableval="$enable_fs_zip"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5329 else
5330 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5331 fi
5332
5333else
5334
5335 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5343
5344fi;
5345
5346 eval "$ac_cv_use_fs_zip"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_FS_ZIP" = yes; then
5352 echo "$as_me:$LINENO: result: yes" >&5
5353echo "${ECHO_T}yes" >&6
5354 else
5355 echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6
5357 fi
5358
5359
5360 enablestring=
5361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5362echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5363 no_cache=0
5364 # Check whether --enable-geometry or --disable-geometry was given.
5365if test "${enable_geometry+set}" = set; then
5366 enableval="$enable_geometry"
5367
5368 if test "$enableval" = yes; then
5369 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5370 else
5371 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5372 fi
5373
5374else
5375
5376 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5377 if test "x$LINE" != x ; then
5378 eval "DEFAULT_$LINE"
5379 else
5380 no_cache=1
5381 fi
5382
5383 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5384
5385fi;
5386
5387 eval "$ac_cv_use_geometry"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_GEOMETRY" = yes; then
5393 echo "$as_me:$LINENO: result: yes" >&5
5394echo "${ECHO_T}yes" >&6
5395 else
5396 echo "$as_me:$LINENO: result: no" >&5
5397echo "${ECHO_T}no" >&6
5398 fi
5399
5400
5401 enablestring=
5402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5403echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5404 no_cache=0
5405 # Check whether --enable-log or --disable-log was given.
5406if test "${enable_log+set}" = set; then
5407 enableval="$enable_log"
5408
5409 if test "$enableval" = yes; then
5410 ac_cv_use_log='wxUSE_LOG=yes'
5411 else
5412 ac_cv_use_log='wxUSE_LOG=no'
5413 fi
5414
5415else
5416
5417 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5425
5426fi;
5427
5428 eval "$ac_cv_use_log"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_LOG" = yes; then
5434 echo "$as_me:$LINENO: result: yes" >&5
5435echo "${ECHO_T}yes" >&6
5436 else
5437 echo "$as_me:$LINENO: result: no" >&5
5438echo "${ECHO_T}no" >&6
5439 fi
5440
5441
5442 enablestring=
5443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5444echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5445 no_cache=0
5446 # Check whether --enable-longlong or --disable-longlong was given.
5447if test "${enable_longlong+set}" = set; then
5448 enableval="$enable_longlong"
5449
5450 if test "$enableval" = yes; then
5451 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5452 else
5453 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5454 fi
5455
5456else
5457
5458 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5459 if test "x$LINE" != x ; then
5460 eval "DEFAULT_$LINE"
5461 else
5462 no_cache=1
5463 fi
5464
5465 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5466
5467fi;
5468
5469 eval "$ac_cv_use_longlong"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_LONGLONG" = yes; then
5475 echo "$as_me:$LINENO: result: yes" >&5
5476echo "${ECHO_T}yes" >&6
5477 else
5478 echo "$as_me:$LINENO: result: no" >&5
5479echo "${ECHO_T}no" >&6
5480 fi
5481
5482
5483 enablestring=
5484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5485echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5486 no_cache=0
5487 # Check whether --enable-mimetype or --disable-mimetype was given.
5488if test "${enable_mimetype+set}" = set; then
5489 enableval="$enable_mimetype"
5490
5491 if test "$enableval" = yes; then
5492 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5493 else
5494 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5495 fi
5496
5497else
5498
5499 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5500 if test "x$LINE" != x ; then
5501 eval "DEFAULT_$LINE"
5502 else
5503 no_cache=1
5504 fi
5505
5506 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5507
5508fi;
5509
5510 eval "$ac_cv_use_mimetype"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_MIMETYPE" = yes; then
5516 echo "$as_me:$LINENO: result: yes" >&5
5517echo "${ECHO_T}yes" >&6
5518 else
5519 echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6
5521 fi
5522
5523
5524 enablestring=
5525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5526echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5527 no_cache=0
5528 # Check whether --enable-mslu or --disable-mslu was given.
5529if test "${enable_mslu+set}" = set; then
5530 enableval="$enable_mslu"
5531
5532 if test "$enableval" = yes; then
5533 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5534 else
5535 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5536 fi
5537
5538else
5539
5540 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5548
5549fi;
5550
5551 eval "$ac_cv_use_mslu"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_UNICODE_MSLU" = yes; then
5557 echo "$as_me:$LINENO: result: yes" >&5
5558echo "${ECHO_T}yes" >&6
5559 else
5560 echo "$as_me:$LINENO: result: no" >&5
5561echo "${ECHO_T}no" >&6
5562 fi
5563
5564
5565 enablestring=
5566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5567echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5568 no_cache=0
5569 # Check whether --enable-snglinst or --disable-snglinst was given.
5570if test "${enable_snglinst+set}" = set; then
5571 enableval="$enable_snglinst"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5575 else
5576 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5577 fi
5578
5579else
5580
5581 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5589
5590fi;
5591
5592 eval "$ac_cv_use_snglinst"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5598 echo "$as_me:$LINENO: result: yes" >&5
5599echo "${ECHO_T}yes" >&6
5600 else
5601 echo "$as_me:$LINENO: result: no" >&5
5602echo "${ECHO_T}no" >&6
5603 fi
5604
5605
5606 enablestring=
07158944
VZ
5607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5608echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5609 no_cache=0
07158944
VZ
5610 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5611if test "${enable_std_iostreams+set}" = set; then
5612 enableval="$enable_std_iostreams"
a848cd7e
SC
5613
5614 if test "$enableval" = yes; then
07158944 5615 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5616 else
07158944 5617 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5618 fi
5619
5620else
5621
07158944 5622 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
07158944 5629 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5630
5631fi;
5632
07158944 5633 eval "$ac_cv_use_std_iostreams"
a848cd7e 5634 if test "$no_cache" != 1; then
07158944 5635 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5636 fi
5637
07158944 5638 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5639 echo "$as_me:$LINENO: result: yes" >&5
5640echo "${ECHO_T}yes" >&6
5641 else
5642 echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644 fi
5645
5646
59746b65
MW
5647 enablestring=
5648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5649echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5650 no_cache=0
5651 # Check whether --enable-std_string or --disable-std_string was given.
5652if test "${enable_std_string+set}" = set; then
5653 enableval="$enable_std_string"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5657 else
5658 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5659 fi
5660
5661else
5662
5663 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5671
5672fi;
5673
5674 eval "$ac_cv_use_std_string"
5675 if test "$no_cache" != 1; then
5676 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5677 fi
5678
5679 if test "$wxUSE_STD_STRING" = yes; then
5680 echo "$as_me:$LINENO: result: yes" >&5
5681echo "${ECHO_T}yes" >&6
5682 else
5683 echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685 fi
5686
5687
a848cd7e 5688 enablestring=
07158944
VZ
5689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5690echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5691 no_cache=0
07158944
VZ
5692 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5693if test "${enable_stdpaths+set}" = set; then
5694 enableval="$enable_stdpaths"
a848cd7e
SC
5695
5696 if test "$enableval" = yes; then
07158944 5697 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5698 else
07158944 5699 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5700 fi
5701
5702else
5703
07158944 5704 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5705 if test "x$LINE" != x ; then
5706 eval "DEFAULT_$LINE"
5707 else
5708 no_cache=1
5709 fi
5710
07158944 5711 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5712
5713fi;
5714
07158944 5715 eval "$ac_cv_use_stdpaths"
a848cd7e 5716 if test "$no_cache" != 1; then
07158944 5717 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5718 fi
5719
07158944 5720 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5721 echo "$as_me:$LINENO: result: yes" >&5
5722echo "${ECHO_T}yes" >&6
5723 else
5724 echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
5726 fi
5727
5728
5729 enablestring=
5730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5731echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5732 no_cache=0
5733 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5734if test "${enable_stopwatch+set}" = set; then
5735 enableval="$enable_stopwatch"
5736
5737 if test "$enableval" = yes; then
5738 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5739 else
5740 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5741 fi
5742
5743else
5744
5745 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5746 if test "x$LINE" != x ; then
5747 eval "DEFAULT_$LINE"
5748 else
5749 no_cache=1
5750 fi
5751
5752 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5753
5754fi;
5755
5756 eval "$ac_cv_use_stopwatch"
5757 if test "$no_cache" != 1; then
5758 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5759 fi
5760
5761 if test "$wxUSE_STOPWATCH" = yes; then
5762 echo "$as_me:$LINENO: result: yes" >&5
5763echo "${ECHO_T}yes" >&6
5764 else
5765 echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6
5767 fi
5768
5769
07158944
VZ
5770 enablestring=
5771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5772echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5773 no_cache=0
5774 # Check whether --enable-streams or --disable-streams was given.
5775if test "${enable_streams+set}" = set; then
5776 enableval="$enable_streams"
5777
5778 if test "$enableval" = yes; then
5779 ac_cv_use_streams='wxUSE_STREAMS=yes'
5780 else
5781 ac_cv_use_streams='wxUSE_STREAMS=no'
5782 fi
5783
5784else
5785
5786 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5794
5795fi;
5796
5797 eval "$ac_cv_use_streams"
5798 if test "$no_cache" != 1; then
5799 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5800 fi
5801
5802 if test "$wxUSE_STREAMS" = yes; then
5803 echo "$as_me:$LINENO: result: yes" >&5
5804echo "${ECHO_T}yes" >&6
5805 else
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808 fi
5809
5810
a848cd7e
SC
5811 enablestring=
5812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5813echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5814 no_cache=0
5815 # Check whether --enable-system_options or --disable-system_options was given.
5816if test "${enable_system_options+set}" = set; then
5817 enableval="$enable_system_options"
5818
5819 if test "$enableval" = yes; then
5820 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5821 else
5822 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5823 fi
5824
5825else
5826
5827 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5835
5836fi;
5837
5838 eval "$ac_cv_use_system_options"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5844 echo "$as_me:$LINENO: result: yes" >&5
5845echo "${ECHO_T}yes" >&6
5846 else
5847 echo "$as_me:$LINENO: result: no" >&5
5848echo "${ECHO_T}no" >&6
5849 fi
5850
5851
5852 enablestring=
5853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5854echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5855 no_cache=0
5856 # Check whether --enable-textbuf or --disable-textbuf was given.
5857if test "${enable_textbuf+set}" = set; then
5858 enableval="$enable_textbuf"
5859
5860 if test "$enableval" = yes; then
5861 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5862 else
5863 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5864 fi
5865
5866else
5867
5868 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5869 if test "x$LINE" != x ; then
5870 eval "DEFAULT_$LINE"
5871 else
5872 no_cache=1
5873 fi
5874
5875 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5876
5877fi;
5878
5879 eval "$ac_cv_use_textbuf"
5880 if test "$no_cache" != 1; then
5881 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5882 fi
5883
5884 if test "$wxUSE_TEXTBUFFER" = yes; then
5885 echo "$as_me:$LINENO: result: yes" >&5
5886echo "${ECHO_T}yes" >&6
5887 else
5888 echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
5890 fi
5891
5892
5893 enablestring=
5894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5895echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5896 no_cache=0
5897 # Check whether --enable-textfile or --disable-textfile was given.
5898if test "${enable_textfile+set}" = set; then
5899 enableval="$enable_textfile"
5900
5901 if test "$enableval" = yes; then
5902 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5903 else
5904 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5905 fi
5906
5907else
5908
5909 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5910 if test "x$LINE" != x ; then
5911 eval "DEFAULT_$LINE"
5912 else
5913 no_cache=1
5914 fi
5915
5916 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5917
5918fi;
5919
5920 eval "$ac_cv_use_textfile"
5921 if test "$no_cache" != 1; then
5922 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5923 fi
5924
5925 if test "$wxUSE_TEXTFILE" = yes; then
5926 echo "$as_me:$LINENO: result: yes" >&5
5927echo "${ECHO_T}yes" >&6
5928 else
5929 echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6
5931 fi
5932
5933
5934 enablestring=
5935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5936echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5937 no_cache=0
5938 # Check whether --enable-timer or --disable-timer was given.
5939if test "${enable_timer+set}" = set; then
5940 enableval="$enable_timer"
5941
5942 if test "$enableval" = yes; then
5943 ac_cv_use_timer='wxUSE_TIMER=yes'
5944 else
5945 ac_cv_use_timer='wxUSE_TIMER=no'
5946 fi
5947
5948else
5949
5950 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5951 if test "x$LINE" != x ; then
5952 eval "DEFAULT_$LINE"
5953 else
5954 no_cache=1
5955 fi
5956
5957 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5958
5959fi;
5960
5961 eval "$ac_cv_use_timer"
5962 if test "$no_cache" != 1; then
5963 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5964 fi
5965
5966 if test "$wxUSE_TIMER" = yes; then
5967 echo "$as_me:$LINENO: result: yes" >&5
5968echo "${ECHO_T}yes" >&6
5969 else
5970 echo "$as_me:$LINENO: result: no" >&5
5971echo "${ECHO_T}no" >&6
5972 fi
5973
5974
5975 enablestring=
5976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5977echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5978 no_cache=0
5979 # Check whether --enable-unicode or --disable-unicode was given.
5980if test "${enable_unicode+set}" = set; then
5981 enableval="$enable_unicode"
5982
5983 if test "$enableval" = yes; then
5984 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5985 else
5986 ac_cv_use_unicode='wxUSE_UNICODE=no'
5987 fi
5988
5989else
5990
5991 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5992 if test "x$LINE" != x ; then
5993 eval "DEFAULT_$LINE"
5994 else
5995 no_cache=1
5996 fi
5997
5998 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5999
6000fi;
6001
6002 eval "$ac_cv_use_unicode"
6003 if test "$no_cache" != 1; then
6004 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6005 fi
6006
6007 if test "$wxUSE_UNICODE" = yes; then
6008 echo "$as_me:$LINENO: result: yes" >&5
6009echo "${ECHO_T}yes" >&6
6010 else
6011 echo "$as_me:$LINENO: result: no" >&5
6012echo "${ECHO_T}no" >&6
6013 fi
6014
6015
6016 enablestring=
6017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6018echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6019 no_cache=0
6020 # Check whether --enable-sound or --disable-sound was given.
6021if test "${enable_sound+set}" = set; then
6022 enableval="$enable_sound"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_sound='wxUSE_SOUND=yes'
6026 else
6027 ac_cv_use_sound='wxUSE_SOUND=no'
6028 fi
6029
6030else
6031
6032 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6040
6041fi;
6042
6043 eval "$ac_cv_use_sound"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_SOUND" = yes; then
6049 echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054 fi
6055
6056
3b57de8b
RL
6057 enablestring=
6058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6059echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6060 no_cache=0
6061 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6062if test "${enable_mediactrl+set}" = set; then
6063 enableval="$enable_mediactrl"
6064
6065 if test "$enableval" = yes; then
6066 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6067 else
6068 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6069 fi
6070
6071else
6072
6073 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6074 if test "x$LINE" != x ; then
6075 eval "DEFAULT_$LINE"
6076 else
6077 no_cache=1
6078 fi
6079
6080 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6081
6082fi;
6083
6084 eval "$ac_cv_use_mediactrl"
6085 if test "$no_cache" != 1; then
6086 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6087 fi
6088
6089 if test "$wxUSE_MEDIACTRL" = yes; then
6090 echo "$as_me:$LINENO: result: yes" >&5
6091echo "${ECHO_T}yes" >&6
6092 else
6093 echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6
6095 fi
6096
6097
a848cd7e
SC
6098 enablestring=
6099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6100echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6101 no_cache=0
6102 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6103if test "${enable_wxprintfv+set}" = set; then
6104 enableval="$enable_wxprintfv"
6105
6106 if test "$enableval" = yes; then
6107 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6108 else
6109 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6110 fi
6111
6112else
6113
6114 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6115 if test "x$LINE" != x ; then
6116 eval "DEFAULT_$LINE"
6117 else
6118 no_cache=1
6119 fi
6120
6121 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6122
6123fi;
6124
6125 eval "$ac_cv_use_wxprintfv"
6126 if test "$no_cache" != 1; then
6127 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6128 fi
6129
6130 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6131 echo "$as_me:$LINENO: result: yes" >&5
6132echo "${ECHO_T}yes" >&6
6133 else
6134 echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6
6136 fi
6137
6138
6139 enablestring=
6140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6141echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6142 no_cache=0
6143 # Check whether --enable-zipstream or --disable-zipstream was given.
6144if test "${enable_zipstream+set}" = set; then
6145 enableval="$enable_zipstream"
6146
6147 if test "$enableval" = yes; then
6148 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6149 else
6150 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6151 fi
6152
6153else
6154
6155 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6163
6164fi;
6165
6166 eval "$ac_cv_use_zipstream"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_ZIPSTREAM" = yes; then
6172 echo "$as_me:$LINENO: result: yes" >&5
6173echo "${ECHO_T}yes" >&6
6174 else
6175 echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6
6177 fi
6178
6179
a848cd7e
SC
6180
6181 enablestring=
6182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6183echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6184 no_cache=0
6185 # Check whether --enable-url or --disable-url was given.
6186if test "${enable_url+set}" = set; then
6187 enableval="$enable_url"
6188
6189 if test "$enableval" = yes; then
6190 ac_cv_use_url='wxUSE_URL=yes'
6191 else
6192 ac_cv_use_url='wxUSE_URL=no'
6193 fi
6194
6195else
6196
6197 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6198 if test "x$LINE" != x ; then
6199 eval "DEFAULT_$LINE"
6200 else
6201 no_cache=1
6202 fi
6203
6204 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6205
6206fi;
6207
6208 eval "$ac_cv_use_url"
6209 if test "$no_cache" != 1; then
6210 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6211 fi
6212
6213 if test "$wxUSE_URL" = yes; then
6214 echo "$as_me:$LINENO: result: yes" >&5
6215echo "${ECHO_T}yes" >&6
6216 else
6217 echo "$as_me:$LINENO: result: no" >&5
6218echo "${ECHO_T}no" >&6
6219 fi
6220
6221
6222 enablestring=
6223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6224echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6225 no_cache=0
6226 # Check whether --enable-protocol or --disable-protocol was given.
6227if test "${enable_protocol+set}" = set; then
6228 enableval="$enable_protocol"
6229
6230 if test "$enableval" = yes; then
6231 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6232 else
6233 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6234 fi
6235
6236else
6237
6238 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6239 if test "x$LINE" != x ; then
6240 eval "DEFAULT_$LINE"
6241 else
6242 no_cache=1
6243 fi
6244
6245 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6246
6247fi;
6248
6249 eval "$ac_cv_use_protocol"
6250 if test "$no_cache" != 1; then
6251 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6252 fi
6253
6254 if test "$wxUSE_PROTOCOL" = yes; then
6255 echo "$as_me:$LINENO: result: yes" >&5
6256echo "${ECHO_T}yes" >&6
6257 else
6258 echo "$as_me:$LINENO: result: no" >&5
6259echo "${ECHO_T}no" >&6
6260 fi
6261
6262
6263 enablestring=
6264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6265echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6266 no_cache=0
6267 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6268if test "${enable_protocol_http+set}" = set; then
6269 enableval="$enable_protocol_http"
6270
6271 if test "$enableval" = yes; then
6272 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6273 else
6274 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6275 fi
6276
6277else
6278
6279 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6280 if test "x$LINE" != x ; then
6281 eval "DEFAULT_$LINE"
6282 else
6283 no_cache=1
6284 fi
6285
6286 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6287
6288fi;
6289
6290 eval "$ac_cv_use_protocol_http"
6291 if test "$no_cache" != 1; then
6292 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6293 fi
6294
6295 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6296 echo "$as_me:$LINENO: result: yes" >&5
6297echo "${ECHO_T}yes" >&6
6298 else
6299 echo "$as_me:$LINENO: result: no" >&5
6300echo "${ECHO_T}no" >&6
6301 fi
6302
6303
6304 enablestring=
6305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6306echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6307 no_cache=0
6308 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6309if test "${enable_protocol_ftp+set}" = set; then
6310 enableval="$enable_protocol_ftp"
6311
6312 if test "$enableval" = yes; then
6313 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6314 else
6315 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6316 fi
6317
6318else
6319
6320 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6321 if test "x$LINE" != x ; then
6322 eval "DEFAULT_$LINE"
6323 else
6324 no_cache=1
6325 fi
6326
6327 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6328
6329fi;
6330
6331 eval "$ac_cv_use_protocol_ftp"
6332 if test "$no_cache" != 1; then
6333 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6334 fi
6335
6336 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6337 echo "$as_me:$LINENO: result: yes" >&5
6338echo "${ECHO_T}yes" >&6
6339 else
6340 echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6
6342 fi
6343
6344
6345 enablestring=
6346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6347echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6348 no_cache=0
6349 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6350if test "${enable_protocol_file+set}" = set; then
6351 enableval="$enable_protocol_file"
6352
6353 if test "$enableval" = yes; then
6354 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6355 else
6356 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6357 fi
6358
6359else
6360
6361 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6362 if test "x$LINE" != x ; then
6363 eval "DEFAULT_$LINE"
6364 else
6365 no_cache=1
6366 fi
6367
6368 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6369
6370fi;
6371
6372 eval "$ac_cv_use_protocol_file"
6373 if test "$no_cache" != 1; then
6374 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6375 fi
6376
6377 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6378 echo "$as_me:$LINENO: result: yes" >&5
6379echo "${ECHO_T}yes" >&6
6380 else
6381 echo "$as_me:$LINENO: result: no" >&5
6382echo "${ECHO_T}no" >&6
6383 fi
6384
6385
6386
6387
6388
6389 enablestring=
6390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6391echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6392 no_cache=0
6393 # Check whether --enable-threads or --disable-threads was given.
6394if test "${enable_threads+set}" = set; then
6395 enableval="$enable_threads"
6396
6397 if test "$enableval" = yes; then
6398 ac_cv_use_threads='wxUSE_THREADS=yes'
6399 else
6400 ac_cv_use_threads='wxUSE_THREADS=no'
6401 fi
6402
6403else
6404
6405 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
6412 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6413
6414fi;
6415
6416 eval "$ac_cv_use_threads"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6419 fi
6420
6421 if test "$wxUSE_THREADS" = yes; then
6422 echo "$as_me:$LINENO: result: yes" >&5
6423echo "${ECHO_T}yes" >&6
6424 else
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
6427 fi
6428
6429
6430if test "$wxUSE_GUI" = "yes"; then
6431
6432
6433
6434 enablestring=
6435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6436echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6437 no_cache=0
6438 # Check whether --enable-docview or --disable-docview was given.
6439if test "${enable_docview+set}" = set; then
6440 enableval="$enable_docview"
6441
6442 if test "$enableval" = yes; then
6443 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6444 else
6445 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6446 fi
6447
6448else
6449
6450 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6451 if test "x$LINE" != x ; then
6452 eval "DEFAULT_$LINE"
6453 else
6454 no_cache=1
6455 fi
6456
6457 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6458
6459fi;
6460
6461 eval "$ac_cv_use_docview"
6462 if test "$no_cache" != 1; then
6463 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6464 fi
6465
6466 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6467 echo "$as_me:$LINENO: result: yes" >&5
6468echo "${ECHO_T}yes" >&6
6469 else
6470 echo "$as_me:$LINENO: result: no" >&5
6471echo "${ECHO_T}no" >&6
6472 fi
6473
6474
6475 enablestring=
6476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6477echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6478 no_cache=0
6479 # Check whether --enable-help or --disable-help was given.
6480if test "${enable_help+set}" = set; then
6481 enableval="$enable_help"
6482
6483 if test "$enableval" = yes; then
6484 ac_cv_use_help='wxUSE_HELP=yes'
6485 else
6486 ac_cv_use_help='wxUSE_HELP=no'
6487 fi
6488
6489else
6490
6491 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6492 if test "x$LINE" != x ; then
6493 eval "DEFAULT_$LINE"
6494 else
6495 no_cache=1
6496 fi
6497
6498 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6499
6500fi;
6501
6502 eval "$ac_cv_use_help"
6503 if test "$no_cache" != 1; then
6504 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6505 fi
6506
6507 if test "$wxUSE_HELP" = yes; then
6508 echo "$as_me:$LINENO: result: yes" >&5
6509echo "${ECHO_T}yes" >&6
6510 else
6511 echo "$as_me:$LINENO: result: no" >&5
6512echo "${ECHO_T}no" >&6
6513 fi
6514
6515
6516 enablestring=
6517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6518echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6519 no_cache=0
6520 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6521if test "${enable_mshtmlhelp+set}" = set; then
6522 enableval="$enable_mshtmlhelp"
6523
6524 if test "$enableval" = yes; then
6525 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6526 else
6527 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6528 fi
6529
6530else
6531
6532 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6533 if test "x$LINE" != x ; then
6534 eval "DEFAULT_$LINE"
6535 else
6536 no_cache=1
6537 fi
6538
6539 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6540
6541fi;
6542
6543 eval "$ac_cv_use_mshtmlhelp"
6544 if test "$no_cache" != 1; then
6545 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6546 fi
6547
6548 if test "$wxUSE_MS_HTML_HELP" = yes; then
6549 echo "$as_me:$LINENO: result: yes" >&5
6550echo "${ECHO_T}yes" >&6
6551 else
6552 echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6
6554 fi
6555
6556
6557 enablestring=
6558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6559echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6560 no_cache=0
6561 # Check whether --enable-html or --disable-html was given.
6562if test "${enable_html+set}" = set; then
6563 enableval="$enable_html"
6564
6565 if test "$enableval" = yes; then
6566 ac_cv_use_html='wxUSE_HTML=yes'
6567 else
6568 ac_cv_use_html='wxUSE_HTML=no'
6569 fi
6570
6571else
6572
6573 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6574 if test "x$LINE" != x ; then
6575 eval "DEFAULT_$LINE"
6576 else
6577 no_cache=1
6578 fi
6579
6580 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6581
6582fi;
6583
6584 eval "$ac_cv_use_html"
6585 if test "$no_cache" != 1; then
6586 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6587 fi
6588
6589 if test "$wxUSE_HTML" = yes; then
6590 echo "$as_me:$LINENO: result: yes" >&5
6591echo "${ECHO_T}yes" >&6
6592 else
6593 echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6
6595 fi
6596
6597
6598 enablestring=
6599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6600echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6601 no_cache=0
6602 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6603if test "${enable_htmlhelp+set}" = set; then
6604 enableval="$enable_htmlhelp"
6605
6606 if test "$enableval" = yes; then
6607 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6608 else
6609 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6610 fi
6611
6612else
6613
6614 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6615 if test "x$LINE" != x ; then
6616 eval "DEFAULT_$LINE"
6617 else
6618 no_cache=1
6619 fi
6620
6621 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6622
6623fi;
6624
6625 eval "$ac_cv_use_htmlhelp"
6626 if test "$no_cache" != 1; then
6627 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6628 fi
6629
6630 if test "$wxUSE_WXHTML_HELP" = yes; then
6631 echo "$as_me:$LINENO: result: yes" >&5
6632echo "${ECHO_T}yes" >&6
6633 else
6634 echo "$as_me:$LINENO: result: no" >&5
6635echo "${ECHO_T}no" >&6
6636 fi
6637
6638
9a8f0513
VS
6639 enablestring=
6640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6641echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6642 no_cache=0
6643 # Check whether --enable-xrc or --disable-xrc was given.
6644if test "${enable_xrc+set}" = set; then
6645 enableval="$enable_xrc"
6646
6647 if test "$enableval" = yes; then
6648 ac_cv_use_xrc='wxUSE_XRC=yes'
6649 else
6650 ac_cv_use_xrc='wxUSE_XRC=no'
6651 fi
6652
6653else
6654
6655 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6656 if test "x$LINE" != x ; then
6657 eval "DEFAULT_$LINE"
6658 else
6659 no_cache=1
6660 fi
6661
6662 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6663
6664fi;
6665
6666 eval "$ac_cv_use_xrc"
6667 if test "$no_cache" != 1; then
6668 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6669 fi
6670
6671 if test "$wxUSE_XRC" = yes; then
6672 echo "$as_me:$LINENO: result: yes" >&5
6673echo "${ECHO_T}yes" >&6
6674 else
6675 echo "$as_me:$LINENO: result: no" >&5
6676echo "${ECHO_T}no" >&6
6677 fi
6678
6679
a848cd7e
SC
6680 enablestring=
6681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6682echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6683 no_cache=0
6684 # Check whether --enable-constraints or --disable-constraints was given.
6685if test "${enable_constraints+set}" = set; then
6686 enableval="$enable_constraints"
6687
6688 if test "$enableval" = yes; then
6689 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6690 else
6691 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6692 fi
6693
6694else
6695
6696 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6697 if test "x$LINE" != x ; then
6698 eval "DEFAULT_$LINE"
6699 else
6700 no_cache=1
6701 fi
6702
6703 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6704
6705fi;
6706
6707 eval "$ac_cv_use_constraints"
6708 if test "$no_cache" != 1; then
6709 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6710 fi
6711
6712 if test "$wxUSE_CONSTRAINTS" = yes; then
6713 echo "$as_me:$LINENO: result: yes" >&5
6714echo "${ECHO_T}yes" >&6
6715 else
6716 echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6
6718 fi
6719
6720
6721 enablestring=
6722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6723echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6724 no_cache=0
6725 # Check whether --enable-printarch or --disable-printarch was given.
6726if test "${enable_printarch+set}" = set; then
6727 enableval="$enable_printarch"
6728
6729 if test "$enableval" = yes; then
6730 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6731 else
6732 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6733 fi
6734
6735else
6736
6737 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6738 if test "x$LINE" != x ; then
6739 eval "DEFAULT_$LINE"
6740 else
6741 no_cache=1
6742 fi
6743
6744 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6745
6746fi;
6747
6748 eval "$ac_cv_use_printarch"
6749 if test "$no_cache" != 1; then
6750 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6751 fi
6752
6753 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6754 echo "$as_me:$LINENO: result: yes" >&5
6755echo "${ECHO_T}yes" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759 fi
6760
6761
6762 enablestring=
6763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6764echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6765 no_cache=0
6766 # Check whether --enable-mdi or --disable-mdi was given.
6767if test "${enable_mdi+set}" = set; then
6768 enableval="$enable_mdi"
6769
6770 if test "$enableval" = yes; then
8a7b1113 6771 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6772 else
8a7b1113 6773 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6774 fi
6775
6776else
6777
8a7b1113 6778 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6779 if test "x$LINE" != x ; then
6780 eval "DEFAULT_$LINE"
6781 else
6782 no_cache=1
6783 fi
6784
8a7b1113 6785 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6786
6787fi;
6788
6789 eval "$ac_cv_use_mdi"
6790 if test "$no_cache" != 1; then
6791 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6792 fi
6793
8a7b1113
VZ
6794 if test "$wxUSE_MDI" = yes; then
6795 echo "$as_me:$LINENO: result: yes" >&5
6796echo "${ECHO_T}yes" >&6
6797 else
6798 echo "$as_me:$LINENO: result: no" >&5
6799echo "${ECHO_T}no" >&6
6800 fi
6801
6802
6803 enablestring=
6804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6805echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6806 no_cache=0
6807 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6808if test "${enable_mdidoc+set}" = set; then
6809 enableval="$enable_mdidoc"
6810
6811 if test "$enableval" = yes; then
6812 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6813 else
6814 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6815 fi
6816
6817else
6818
6819 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6820 if test "x$LINE" != x ; then
6821 eval "DEFAULT_$LINE"
6822 else
6823 no_cache=1
6824 fi
6825
6826 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6827
6828fi;
6829
6830 eval "$ac_cv_use_mdidoc"
6831 if test "$no_cache" != 1; then
6832 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6833 fi
6834
a848cd7e
SC
6835 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6836 echo "$as_me:$LINENO: result: yes" >&5
6837echo "${ECHO_T}yes" >&6
6838 else
6839 echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6
6841 fi
6842
6843
6844 enablestring=
6845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6846echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6847 no_cache=0
6848 # Check whether --enable-loggui or --disable-loggui was given.
6849if test "${enable_loggui+set}" = set; then
6850 enableval="$enable_loggui"
6851
6852 if test "$enableval" = yes; then
6853 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6854 else
6855 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6856 fi
6857
6858else
6859
6860 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6868
6869fi;
6870
6871 eval "$ac_cv_use_loggui"
6872 if test "$no_cache" != 1; then
6873 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6874 fi
6875
6876 if test "$wxUSE_LOGGUI" = yes; then
6877 echo "$as_me:$LINENO: result: yes" >&5
6878echo "${ECHO_T}yes" >&6
6879 else
6880 echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6
6882 fi
6883
6884
6885 enablestring=
6886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6887echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6888 no_cache=0
6889 # Check whether --enable-logwin or --disable-logwin was given.
6890if test "${enable_logwin+set}" = set; then
6891 enableval="$enable_logwin"
6892
6893 if test "$enableval" = yes; then
6894 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6895 else
6896 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6897 fi
6898
6899else
6900
6901 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6902 if test "x$LINE" != x ; then
6903 eval "DEFAULT_$LINE"
6904 else
6905 no_cache=1
6906 fi
6907
6908 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6909
6910fi;
6911
6912 eval "$ac_cv_use_logwin"
6913 if test "$no_cache" != 1; then
6914 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6915 fi
6916
6917 if test "$wxUSE_LOGWINDOW" = yes; then
6918 echo "$as_me:$LINENO: result: yes" >&5
6919echo "${ECHO_T}yes" >&6
6920 else
6921 echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6
6923 fi
6924
6925
6926 enablestring=
6927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6928echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6929 no_cache=0
6930 # Check whether --enable-logdialog or --disable-logdialog was given.
6931if test "${enable_logdialog+set}" = set; then
6932 enableval="$enable_logdialog"
6933
6934 if test "$enableval" = yes; then
6935 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6936 else
6937 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6938 fi
6939
6940else
6941
6942 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6950
6951fi;
6952
6953 eval "$ac_cv_use_logdialog"
6954 if test "$no_cache" != 1; then
6955 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6956 fi
6957
6958 if test "$wxUSE_LOGDIALOG" = yes; then
6959 echo "$as_me:$LINENO: result: yes" >&5
6960echo "${ECHO_T}yes" >&6
6961 else
6962 echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6
6964 fi
6965
6966
646b6ec1
VS
6967 enablestring=
6968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6969echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6970 no_cache=0
6971 # Check whether --enable-webkit or --disable-webkit was given.
6972if test "${enable_webkit+set}" = set; then
6973 enableval="$enable_webkit"
6974
6975 if test "$enableval" = yes; then
6976 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6977 else
6978 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6979 fi
6980
6981else
6982
6983 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6984 if test "x$LINE" != x ; then
6985 eval "DEFAULT_$LINE"
6986 else
6987 no_cache=1
6988 fi
6989
6990 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6991
6992fi;
6993
6994 eval "$ac_cv_use_webkit"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_WEBKIT" = yes; then
7000 echo "$as_me:$LINENO: result: yes" >&5
7001echo "${ECHO_T}yes" >&6
7002 else
7003 echo "$as_me:$LINENO: result: no" >&5
7004echo "${ECHO_T}no" >&6
7005 fi
7006
7007
a848cd7e
SC
7008
7009 enablestring=
7010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7011echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7012 no_cache=0
7013 # Check whether --enable-postscript or --disable-postscript was given.
7014if test "${enable_postscript+set}" = set; then
7015 enableval="$enable_postscript"
7016
7017 if test "$enableval" = yes; then
7018 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7019 else
7020 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7021 fi
7022
7023else
7024
7025 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7033
7034fi;
7035
7036 eval "$ac_cv_use_postscript"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_POSTSCRIPT" = yes; then
7042 echo "$as_me:$LINENO: result: yes" >&5
7043echo "${ECHO_T}yes" >&6
7044 else
7045 echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6
7047 fi
7048
7049
7050
7051
7052
7053 enablestring=
7054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7055echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7056 no_cache=0
7057 # Check whether --enable-prologio or --disable-prologio was given.
7058if test "${enable_prologio+set}" = set; then
7059 enableval="$enable_prologio"
7060
7061 if test "$enableval" = yes; then
7062 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7063 else
7064 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7065 fi
7066
7067else
7068
7069 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7070 if test "x$LINE" != x ; then
7071 eval "DEFAULT_$LINE"
7072 else
7073 no_cache=1
7074 fi
7075
7076 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7077
7078fi;
7079
7080 eval "$ac_cv_use_prologio"
7081 if test "$no_cache" != 1; then
7082 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7083 fi
7084
7085 if test "$wxUSE_PROLOGIO" = yes; then
7086 echo "$as_me:$LINENO: result: yes" >&5
7087echo "${ECHO_T}yes" >&6
7088 else
7089 echo "$as_me:$LINENO: result: no" >&5
7090echo "${ECHO_T}no" >&6
7091 fi
7092
7093
7094 enablestring=
7095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7096echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7097 no_cache=0
7098 # Check whether --enable-resources or --disable-resources was given.
7099if test "${enable_resources+set}" = set; then
7100 enableval="$enable_resources"
7101
7102 if test "$enableval" = yes; then
7103 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7104 else
7105 ac_cv_use_resources='wxUSE_RESOURCES=no'
7106 fi
7107
7108else
7109
7110 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7111 if test "x$LINE" != x ; then
7112 eval "DEFAULT_$LINE"
7113 else
7114 no_cache=1
7115 fi
7116
7117 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7118
7119fi;
7120
7121 eval "$ac_cv_use_resources"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_RESOURCES" = yes; then
7127 echo "$as_me:$LINENO: result: yes" >&5
7128echo "${ECHO_T}yes" >&6
7129 else
7130 echo "$as_me:$LINENO: result: no" >&5
7131echo "${ECHO_T}no" >&6
7132 fi
7133
7134
7135
7136
7137 enablestring=
7138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7139echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7140 no_cache=0
7141 # Check whether --enable-clipboard or --disable-clipboard was given.
7142if test "${enable_clipboard+set}" = set; then
7143 enableval="$enable_clipboard"
7144
7145 if test "$enableval" = yes; then
7146 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7147 else
7148 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7149 fi
7150
7151else
7152
7153 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7154 if test "x$LINE" != x ; then
7155 eval "DEFAULT_$LINE"
7156 else
7157 no_cache=1
7158 fi
7159
7160 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7161
7162fi;
7163
7164 eval "$ac_cv_use_clipboard"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_CLIPBOARD" = yes; then
7170 echo "$as_me:$LINENO: result: yes" >&5
7171echo "${ECHO_T}yes" >&6
7172 else
7173 echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6
7175 fi
7176
7177
7178 enablestring=
7179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7180echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7181 no_cache=0
7182 # Check whether --enable-dnd or --disable-dnd was given.
7183if test "${enable_dnd+set}" = set; then
7184 enableval="$enable_dnd"
7185
7186 if test "$enableval" = yes; then
7187 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7188 else
7189 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7190 fi
7191
7192else
7193
7194 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7195 if test "x$LINE" != x ; then
7196 eval "DEFAULT_$LINE"
7197 else
7198 no_cache=1
7199 fi
7200
7201 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7202
7203fi;
7204
7205 eval "$ac_cv_use_dnd"
7206 if test "$no_cache" != 1; then
7207 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7208 fi
7209
7210 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7211 echo "$as_me:$LINENO: result: yes" >&5
7212echo "${ECHO_T}yes" >&6
7213 else
7214 echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
7216 fi
7217
7218
7219 enablestring=
7220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7221echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7222 no_cache=0
7223 # Check whether --enable-metafile or --disable-metafile was given.
7224if test "${enable_metafile+set}" = set; then
7225 enableval="$enable_metafile"
7226
7227 if test "$enableval" = yes; then
7228 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7229 else
7230 ac_cv_use_metafile='wxUSE_METAFILE=no'
7231 fi
7232
7233else
7234
7235 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7236 if test "x$LINE" != x ; then
7237 eval "DEFAULT_$LINE"
7238 else
7239 no_cache=1
7240 fi
7241
7242 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7243
7244fi;
7245
7246 eval "$ac_cv_use_metafile"
7247 if test "$no_cache" != 1; then
7248 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7249 fi
7250
7251 if test "$wxUSE_METAFILE" = yes; then
7252 echo "$as_me:$LINENO: result: yes" >&5
7253echo "${ECHO_T}yes" >&6
7254 else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257 fi
7258
7259
7260
7261
7262
7263 enablestring=
7264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7265echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7266 no_cache=0
7267 # Check whether --enable-controls or --disable-controls was given.
7268if test "${enable_controls+set}" = set; then
7269 enableval="$enable_controls"
7270
7271 if test "$enableval" = yes; then
7272 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7273 else
7274 ac_cv_use_controls='wxUSE_CONTROLS=no'
7275 fi
7276
7277else
7278
7279 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7280 if test "x$LINE" != x ; then
7281 eval "DEFAULT_$LINE"
7282 else
7283 no_cache=1
7284 fi
7285
7286 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7287
7288fi;
7289
7290 eval "$ac_cv_use_controls"
7291 if test "$no_cache" != 1; then
7292 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7293 fi
7294
7295 if test "$wxUSE_CONTROLS" = yes; then
7296 echo "$as_me:$LINENO: result: yes" >&5
7297echo "${ECHO_T}yes" >&6
7298 else
7299 echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6
7301 fi
7302
7303
7304if test "$wxUSE_CONTROLS" = "yes"; then
7305 DEFAULT_wxUSE_ACCEL=yes
7306 DEFAULT_wxUSE_BMPBUTTON=yes
7307 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7308 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7309 DEFAULT_wxUSE_CARET=yes
7310 DEFAULT_wxUSE_COMBOBOX=yes
7311 DEFAULT_wxUSE_CHECKBOX=yes
7312 DEFAULT_wxUSE_CHECKLISTBOX=yes
7313 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7314 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7315 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7316 DEFAULT_wxUSE_GAUGE=yes
7317 DEFAULT_wxUSE_GRID=yes
7318 DEFAULT_wxUSE_IMAGLIST=yes
7319 DEFAULT_wxUSE_LISTBOOK=yes
7320 DEFAULT_wxUSE_LISTBOX=yes
7321 DEFAULT_wxUSE_LISTCTRL=yes
7322 DEFAULT_wxUSE_NOTEBOOK=yes
7323 DEFAULT_wxUSE_RADIOBOX=yes
7324 DEFAULT_wxUSE_RADIOBTN=yes
7325 DEFAULT_wxUSE_SASH=yes
7326 DEFAULT_wxUSE_SCROLLBAR=yes
7327 DEFAULT_wxUSE_SLIDER=yes
7328 DEFAULT_wxUSE_SPINBTN=yes
7329 DEFAULT_wxUSE_SPINCTRL=yes
7330 DEFAULT_wxUSE_SPLITTER=yes
7331 DEFAULT_wxUSE_STATBMP=yes
7332 DEFAULT_wxUSE_STATBOX=yes
7333 DEFAULT_wxUSE_STATLINE=yes
7334 DEFAULT_wxUSE_STATUSBAR=yes
7335 DEFAULT_wxUSE_TAB_DIALOG=yes
7336 DEFAULT_wxUSE_TOGGLEBTN=yes
7337 DEFAULT_wxUSE_TOOLBAR=yes
7338 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7339 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7340 DEFAULT_wxUSE_TOOLTIPS=yes
7341 DEFAULT_wxUSE_TREECTRL=yes
7342 DEFAULT_wxUSE_POPUPWIN=yes
7343 DEFAULT_wxUSE_TIPWINDOW=yes
7344elif test "$wxUSE_CONTROLS" = "no"; then
7345 DEFAULT_wxUSE_ACCEL=no
7346 DEFAULT_wxUSE_BMPBUTTON=no
7347 DEFAULT_wxUSE_BUTTON=no
7348 DEFAULT_wxUSE_CALCTRL=no
7349 DEFAULT_wxUSE_CARET=no
7350 DEFAULT_wxUSE_COMBOBOX=no
7351 DEFAULT_wxUSE_CHECKBOX=no
7352 DEFAULT_wxUSE_CHECKLISTBOX=no
7353 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7354 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7355 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7356 DEFAULT_wxUSE_GAUGE=no
7357 DEFAULT_wxUSE_GRID=no
7358 DEFAULT_wxUSE_IMAGLIST=no
7359 DEFAULT_wxUSE_LISTBOOK=no
7360 DEFAULT_wxUSE_LISTBOX=no
7361 DEFAULT_wxUSE_LISTCTRL=no
7362 DEFAULT_wxUSE_NOTEBOOK=no
7363 DEFAULT_wxUSE_RADIOBOX=no
7364 DEFAULT_wxUSE_RADIOBTN=no
7365 DEFAULT_wxUSE_SASH=no
7366 DEFAULT_wxUSE_SCROLLBAR=no
7367 DEFAULT_wxUSE_SLIDER=no
7368 DEFAULT_wxUSE_SPINBTN=no
7369 DEFAULT_wxUSE_SPINCTRL=no
7370 DEFAULT_wxUSE_SPLITTER=no
7371 DEFAULT_wxUSE_STATBMP=no
7372 DEFAULT_wxUSE_STATBOX=no
7373 DEFAULT_wxUSE_STATLINE=no
7374 DEFAULT_wxUSE_STATUSBAR=no
7375 DEFAULT_wxUSE_TAB_DIALOG=no
7376 DEFAULT_wxUSE_TOGGLEBTN=no
7377 DEFAULT_wxUSE_TOOLBAR=no
7378 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7379 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7380 DEFAULT_wxUSE_TOOLTIPS=no
7381 DEFAULT_wxUSE_TREECTRL=no
7382 DEFAULT_wxUSE_POPUPWIN=no
7383 DEFAULT_wxUSE_TIPWINDOW=no
7384fi
7385
a848cd7e
SC
7386
7387 enablestring=
7388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7389echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7390 no_cache=0
7391 # Check whether --enable-accel or --disable-accel was given.
7392if test "${enable_accel+set}" = set; then
7393 enableval="$enable_accel"
7394
7395 if test "$enableval" = yes; then
7396 ac_cv_use_accel='wxUSE_ACCEL=yes'
7397 else
7398 ac_cv_use_accel='wxUSE_ACCEL=no'
7399 fi
7400
7401else
7402
7403 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7404 if test "x$LINE" != x ; then
7405 eval "DEFAULT_$LINE"
7406 else
7407 no_cache=1
7408 fi
7409
7410 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7411
7412fi;
7413
7414 eval "$ac_cv_use_accel"
7415 if test "$no_cache" != 1; then
7416 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7417 fi
7418
7419 if test "$wxUSE_ACCEL" = yes; then
7420 echo "$as_me:$LINENO: result: yes" >&5
7421echo "${ECHO_T}yes" >&6
7422 else
7423 echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6
7425 fi
7426
7427
7428 enablestring=
7429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7430echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7431 no_cache=0
7432 # Check whether --enable-button or --disable-button was given.
7433if test "${enable_button+set}" = set; then
7434 enableval="$enable_button"
7435
7436 if test "$enableval" = yes; then
7437 ac_cv_use_button='wxUSE_BUTTON=yes'
7438 else
7439 ac_cv_use_button='wxUSE_BUTTON=no'
7440 fi
7441
7442else
7443
7444 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7445 if test "x$LINE" != x ; then
7446 eval "DEFAULT_$LINE"
7447 else
7448 no_cache=1
7449 fi
7450
7451 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7452
7453fi;
7454
7455 eval "$ac_cv_use_button"
7456 if test "$no_cache" != 1; then
7457 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7458 fi
7459
7460 if test "$wxUSE_BUTTON" = yes; then
7461 echo "$as_me:$LINENO: result: yes" >&5
7462echo "${ECHO_T}yes" >&6
7463 else
7464 echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6
7466 fi
7467
7468
7469 enablestring=
7470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7471echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7472 no_cache=0
7473 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7474if test "${enable_bmpbutton+set}" = set; then
7475 enableval="$enable_bmpbutton"
7476
7477 if test "$enableval" = yes; then
7478 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7479 else
7480 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7481 fi
7482
7483else
7484
7485 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7486 if test "x$LINE" != x ; then
7487 eval "DEFAULT_$LINE"
7488 else
7489 no_cache=1
7490 fi
7491
7492 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7493
7494fi;
7495
7496 eval "$ac_cv_use_bmpbutton"
7497 if test "$no_cache" != 1; then
7498 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7499 fi
7500
7501 if test "$wxUSE_BMPBUTTON" = yes; then
7502 echo "$as_me:$LINENO: result: yes" >&5
7503echo "${ECHO_T}yes" >&6
7504 else
7505 echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6
7507 fi
7508
7509
7510 enablestring=
7511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7512echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7513 no_cache=0
7514 # Check whether --enable-calendar or --disable-calendar was given.
7515if test "${enable_calendar+set}" = set; then
7516 enableval="$enable_calendar"
7517
7518 if test "$enableval" = yes; then
7519 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7520 else
7521 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7522 fi
7523
7524else
7525
7526 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7527 if test "x$LINE" != x ; then
7528 eval "DEFAULT_$LINE"
7529 else
7530 no_cache=1
7531 fi
7532
7533 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7534
7535fi;
7536
7537 eval "$ac_cv_use_calendar"
7538 if test "$no_cache" != 1; then
7539 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7540 fi
7541
7542 if test "$wxUSE_CALCTRL" = yes; then
7543 echo "$as_me:$LINENO: result: yes" >&5
7544echo "${ECHO_T}yes" >&6
7545 else
7546 echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6
7548 fi
7549
7550
7551 enablestring=
7552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7553echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7554 no_cache=0
7555 # Check whether --enable-caret or --disable-caret was given.
7556if test "${enable_caret+set}" = set; then
7557 enableval="$enable_caret"
7558
7559 if test "$enableval" = yes; then
7560 ac_cv_use_caret='wxUSE_CARET=yes'
7561 else
7562 ac_cv_use_caret='wxUSE_CARET=no'
7563 fi
7564
7565else
7566
7567 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7568 if test "x$LINE" != x ; then
7569 eval "DEFAULT_$LINE"
7570 else
7571 no_cache=1
7572 fi
7573
7574 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7575
7576fi;
7577
7578 eval "$ac_cv_use_caret"
7579 if test "$no_cache" != 1; then
7580 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7581 fi
7582
7583 if test "$wxUSE_CARET" = yes; then
7584 echo "$as_me:$LINENO: result: yes" >&5
7585echo "${ECHO_T}yes" >&6
7586 else
7587 echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6
7589 fi
7590
7591
7592 enablestring=
7593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7594echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7595 no_cache=0
7596 # Check whether --enable-checkbox or --disable-checkbox was given.
7597if test "${enable_checkbox+set}" = set; then
7598 enableval="$enable_checkbox"
7599
7600 if test "$enableval" = yes; then
7601 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7602 else
7603 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7604 fi
7605
7606else
7607
7608 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7616
7617fi;
7618
7619 eval "$ac_cv_use_checkbox"
7620 if test "$no_cache" != 1; then
7621 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7622 fi
7623
7624 if test "$wxUSE_CHECKBOX" = yes; then
7625 echo "$as_me:$LINENO: result: yes" >&5
7626echo "${ECHO_T}yes" >&6
7627 else
7628 echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6
7630 fi
7631
7632
7633 enablestring=
7634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7635echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7636 no_cache=0
7637 # Check whether --enable-checklst or --disable-checklst was given.
7638if test "${enable_checklst+set}" = set; then
7639 enableval="$enable_checklst"
7640
7641 if test "$enableval" = yes; then
7642 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7643 else
7644 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7645 fi
7646
7647else
7648
7649 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7650 if test "x$LINE" != x ; then
7651 eval "DEFAULT_$LINE"
7652 else
7653 no_cache=1
7654 fi
7655
7656 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7657
7658fi;
7659
7660 eval "$ac_cv_use_checklst"
7661 if test "$no_cache" != 1; then
7662 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7663 fi
7664
7665 if test "$wxUSE_CHECKLST" = yes; then
7666 echo "$as_me:$LINENO: result: yes" >&5
7667echo "${ECHO_T}yes" >&6
7668 else
7669 echo "$as_me:$LINENO: result: no" >&5
7670echo "${ECHO_T}no" >&6
7671 fi
7672
7673
7674 enablestring=
7675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7676echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7677 no_cache=0
7678 # Check whether --enable-choice or --disable-choice was given.
7679if test "${enable_choice+set}" = set; then
7680 enableval="$enable_choice"
7681
7682 if test "$enableval" = yes; then
7683 ac_cv_use_choice='wxUSE_CHOICE=yes'
7684 else
7685 ac_cv_use_choice='wxUSE_CHOICE=no'
7686 fi
7687
7688else
7689
7690 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7691 if test "x$LINE" != x ; then
7692 eval "DEFAULT_$LINE"
7693 else
7694 no_cache=1
7695 fi
7696
7697 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7698
7699fi;
7700
7701 eval "$ac_cv_use_choice"
7702 if test "$no_cache" != 1; then
7703 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7704 fi
7705
7706 if test "$wxUSE_CHOICE" = yes; then
7707 echo "$as_me:$LINENO: result: yes" >&5
7708echo "${ECHO_T}yes" >&6
7709 else
7710 echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
7712 fi
7713
7714
92bbdbcd
WS
7715 enablestring=
7716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7717echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7718 no_cache=0
7719 # Check whether --enable-choicebook or --disable-choicebook was given.
7720if test "${enable_choicebook+set}" = set; then
7721 enableval="$enable_choicebook"
7722
7723 if test "$enableval" = yes; then
7724 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7725 else
7726 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7727 fi
7728
7729else
7730
7731 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7732 if test "x$LINE" != x ; then
7733 eval "DEFAULT_$LINE"
7734 else
7735 no_cache=1
7736 fi
7737
7738 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7739
7740fi;
7741
7742 eval "$ac_cv_use_choicebook"
7743 if test "$no_cache" != 1; then
7744 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7745 fi
7746
7747 if test "$wxUSE_CHOICEBOOK" = yes; then
7748 echo "$as_me:$LINENO: result: yes" >&5
7749echo "${ECHO_T}yes" >&6
7750 else
7751 echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6
7753 fi
7754
7755
a848cd7e
SC
7756 enablestring=
7757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7758echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7759 no_cache=0
7760 # Check whether --enable-combobox or --disable-combobox was given.
7761if test "${enable_combobox+set}" = set; then
7762 enableval="$enable_combobox"
7763
7764 if test "$enableval" = yes; then
7765 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7766 else
7767 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7768 fi
7769
7770else
7771
7772 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7773 if test "x$LINE" != x ; then
7774 eval "DEFAULT_$LINE"
7775 else
7776 no_cache=1
7777 fi
7778
7779 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7780
7781fi;
7782
7783 eval "$ac_cv_use_combobox"
7784 if test "$no_cache" != 1; then
7785 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7786 fi
7787
7788 if test "$wxUSE_COMBOBOX" = yes; then
7789 echo "$as_me:$LINENO: result: yes" >&5
7790echo "${ECHO_T}yes" >&6
7791 else
7792 echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6
7794 fi
7795
7796
da98e9be
VZ
7797 enablestring=
7798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7799echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7800 no_cache=0
7801 # Check whether --enable-datepick or --disable-datepick was given.
7802if test "${enable_datepick+set}" = set; then
7803 enableval="$enable_datepick"
7804
7805 if test "$enableval" = yes; then
7806 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7807 else
7808 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7809 fi
7810
7811else
7812
7813 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7814 if test "x$LINE" != x ; then
7815 eval "DEFAULT_$LINE"
7816 else
7817 no_cache=1
7818 fi
7819
7820 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7821
7822fi;
7823
7824 eval "$ac_cv_use_datepick"
7825 if test "$no_cache" != 1; then
7826 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7827 fi
7828
7829 if test "$wxUSE_DATEPICKCTRL" = yes; then
7830 echo "$as_me:$LINENO: result: yes" >&5
7831echo "${ECHO_T}yes" >&6
7832 else
7833 echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6
7835 fi
7836
7837
a848cd7e
SC
7838 enablestring=
7839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7840echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7841 no_cache=0
7842 # Check whether --enable-display or --disable-display was given.
7843if test "${enable_display+set}" = set; then
7844 enableval="$enable_display"
7845
7846 if test "$enableval" = yes; then
7847 ac_cv_use_display='wxUSE_DISPLAY=yes'
7848 else
7849 ac_cv_use_display='wxUSE_DISPLAY=no'
7850 fi
7851
7852else
7853
7854 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7855 if test "x$LINE" != x ; then
7856 eval "DEFAULT_$LINE"
7857 else
7858 no_cache=1
7859 fi
7860
7861 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7862
7863fi;
7864
7865 eval "$ac_cv_use_display"
7866 if test "$no_cache" != 1; then
7867 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7868 fi
7869
7870 if test "$wxUSE_DISPLAY" = yes; then
7871 echo "$as_me:$LINENO: result: yes" >&5
7872echo "${ECHO_T}yes" >&6
7873 else
7874 echo "$as_me:$LINENO: result: no" >&5
7875echo "${ECHO_T}no" >&6
7876 fi
7877
7878
7879 enablestring=
7880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7881echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7882 no_cache=0
7883 # Check whether --enable-gauge or --disable-gauge was given.
7884if test "${enable_gauge+set}" = set; then
7885 enableval="$enable_gauge"
7886
7887 if test "$enableval" = yes; then
7888 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7889 else
7890 ac_cv_use_gauge='wxUSE_GAUGE=no'
7891 fi
7892
7893else
7894
7895 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7896 if test "x$LINE" != x ; then
7897 eval "DEFAULT_$LINE"
7898 else
7899 no_cache=1
7900 fi
7901
7902 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7903
7904fi;
7905
7906 eval "$ac_cv_use_gauge"
7907 if test "$no_cache" != 1; then
7908 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7909 fi
7910
7911 if test "$wxUSE_GAUGE" = yes; then
7912 echo "$as_me:$LINENO: result: yes" >&5
7913echo "${ECHO_T}yes" >&6
7914 else
7915 echo "$as_me:$LINENO: result: no" >&5
7916echo "${ECHO_T}no" >&6
7917 fi
7918
7919
7920 enablestring=
7921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7922echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7923 no_cache=0
7924 # Check whether --enable-grid or --disable-grid was given.
7925if test "${enable_grid+set}" = set; then
7926 enableval="$enable_grid"
7927
7928 if test "$enableval" = yes; then
7929 ac_cv_use_grid='wxUSE_GRID=yes'
7930 else
7931 ac_cv_use_grid='wxUSE_GRID=no'
7932 fi
7933
7934else
7935
7936 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7937 if test "x$LINE" != x ; then
7938 eval "DEFAULT_$LINE"
7939 else
7940 no_cache=1
7941 fi
7942
7943 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7944
7945fi;
7946
7947 eval "$ac_cv_use_grid"
7948 if test "$no_cache" != 1; then
7949 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7950 fi
7951
7952 if test "$wxUSE_GRID" = yes; then
7953 echo "$as_me:$LINENO: result: yes" >&5
7954echo "${ECHO_T}yes" >&6
7955 else
7956 echo "$as_me:$LINENO: result: no" >&5
7957echo "${ECHO_T}no" >&6
7958 fi
7959
7960
7961 enablestring=
7962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7963echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7964 no_cache=0
7965 # Check whether --enable-imaglist or --disable-imaglist was given.
7966if test "${enable_imaglist+set}" = set; then
7967 enableval="$enable_imaglist"
7968
7969 if test "$enableval" = yes; then
7970 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7971 else
7972 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7973 fi
7974
7975else
7976
7977 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7978 if test "x$LINE" != x ; then
7979 eval "DEFAULT_$LINE"
7980 else
7981 no_cache=1
7982 fi
7983
7984 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7985
7986fi;
7987
7988 eval "$ac_cv_use_imaglist"
7989 if test "$no_cache" != 1; then
7990 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7991 fi
7992
7993 if test "$wxUSE_IMAGLIST" = yes; then
7994 echo "$as_me:$LINENO: result: yes" >&5
7995echo "${ECHO_T}yes" >&6
7996 else
7997 echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6
7999 fi
8000
8001
8002 enablestring=
8003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8004echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8005 no_cache=0
8006 # Check whether --enable-listbook or --disable-listbook was given.
8007if test "${enable_listbook+set}" = set; then
8008 enableval="$enable_listbook"
8009
8010 if test "$enableval" = yes; then
8011 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8012 else
8013 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8014 fi
8015
8016else
8017
8018 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8019 if test "x$LINE" != x ; then
8020 eval "DEFAULT_$LINE"
8021 else
8022 no_cache=1
8023 fi
8024
8025 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8026
8027fi;
8028
8029 eval "$ac_cv_use_listbook"
8030 if test "$no_cache" != 1; then
8031 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8032 fi
8033
8034 if test "$wxUSE_LISTBOOK" = yes; then
8035 echo "$as_me:$LINENO: result: yes" >&5
8036echo "${ECHO_T}yes" >&6
8037 else
8038 echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
8040 fi
8041
8042
8043 enablestring=
8044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8045echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8046 no_cache=0
8047 # Check whether --enable-listbox or --disable-listbox was given.
8048if test "${enable_listbox+set}" = set; then
8049 enableval="$enable_listbox"
8050
8051 if test "$enableval" = yes; then
8052 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8053 else
8054 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8055 fi
8056
8057else
8058
8059 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8060 if test "x$LINE" != x ; then
8061 eval "DEFAULT_$LINE"
8062 else
8063 no_cache=1
8064 fi
8065
8066 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8067
8068fi;
8069
8070 eval "$ac_cv_use_listbox"
8071 if test "$no_cache" != 1; then
8072 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8073 fi
8074
8075 if test "$wxUSE_LISTBOX" = yes; then
8076 echo "$as_me:$LINENO: result: yes" >&5
8077echo "${ECHO_T}yes" >&6
8078 else
8079 echo "$as_me:$LINENO: result: no" >&5
8080echo "${ECHO_T}no" >&6
8081 fi
8082
8083
8084 enablestring=
8085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8086echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8087 no_cache=0
8088 # Check whether --enable-listctrl or --disable-listctrl was given.
8089if test "${enable_listctrl+set}" = set; then
8090 enableval="$enable_listctrl"
8091
8092 if test "$enableval" = yes; then
8093 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8094 else
8095 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8096 fi
8097
8098else
8099
8100 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8101 if test "x$LINE" != x ; then
8102 eval "DEFAULT_$LINE"
8103 else
8104 no_cache=1
8105 fi
8106
8107 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8108
8109fi;
8110
8111 eval "$ac_cv_use_listctrl"
8112 if test "$no_cache" != 1; then
8113 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8114 fi
8115
8116 if test "$wxUSE_LISTCTRL" = yes; then
8117 echo "$as_me:$LINENO: result: yes" >&5
8118echo "${ECHO_T}yes" >&6
8119 else
8120 echo "$as_me:$LINENO: result: no" >&5
8121echo "${ECHO_T}no" >&6
8122 fi
8123
8124
8125 enablestring=
8126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8127echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8128 no_cache=0
8129 # Check whether --enable-notebook or --disable-notebook was given.
8130if test "${enable_notebook+set}" = set; then
8131 enableval="$enable_notebook"
8132
8133 if test "$enableval" = yes; then
8134 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8135 else
8136 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8137 fi
8138
8139else
8140
8141 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8142 if test "x$LINE" != x ; then
8143 eval "DEFAULT_$LINE"
8144 else
8145 no_cache=1
8146 fi
8147
8148 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8149
8150fi;
8151
8152 eval "$ac_cv_use_notebook"
8153 if test "$no_cache" != 1; then
8154 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8155 fi
8156
8157 if test "$wxUSE_NOTEBOOK" = yes; then
8158 echo "$as_me:$LINENO: result: yes" >&5
8159echo "${ECHO_T}yes" >&6
8160 else
8161 echo "$as_me:$LINENO: result: no" >&5
8162echo "${ECHO_T}no" >&6
8163 fi
8164
8165
8166 enablestring=
8167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8168echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8169 no_cache=0
8170 # Check whether --enable-radiobox or --disable-radiobox was given.
8171if test "${enable_radiobox+set}" = set; then
8172 enableval="$enable_radiobox"
8173
8174 if test "$enableval" = yes; then
8175 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8176 else
8177 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8178 fi
8179
8180else
8181
8182 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8183 if test "x$LINE" != x ; then
8184 eval "DEFAULT_$LINE"
8185 else
8186 no_cache=1
8187 fi
8188
8189 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8190
8191fi;
8192
8193 eval "$ac_cv_use_radiobox"
8194 if test "$no_cache" != 1; then
8195 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8196 fi
8197
8198 if test "$wxUSE_RADIOBOX" = yes; then
8199 echo "$as_me:$LINENO: result: yes" >&5
8200echo "${ECHO_T}yes" >&6
8201 else
8202 echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6
8204 fi
8205
8206
8207 enablestring=
8208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8209echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8210 no_cache=0
8211 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8212if test "${enable_radiobtn+set}" = set; then
8213 enableval="$enable_radiobtn"
8214
8215 if test "$enableval" = yes; then
8216 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8217 else
8218 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8219 fi
8220
8221else
8222
8223 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8224 if test "x$LINE" != x ; then
8225 eval "DEFAULT_$LINE"
8226 else
8227 no_cache=1
8228 fi
8229
8230 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8231
8232fi;
8233
8234 eval "$ac_cv_use_radiobtn"
8235 if test "$no_cache" != 1; then
8236 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8237 fi
8238
8239 if test "$wxUSE_RADIOBTN" = yes; then
8240 echo "$as_me:$LINENO: result: yes" >&5
8241echo "${ECHO_T}yes" >&6
8242 else
8243 echo "$as_me:$LINENO: result: no" >&5
8244echo "${ECHO_T}no" >&6
8245 fi
8246
8247
8248 enablestring=
8249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8250echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8251 no_cache=0
8252 # Check whether --enable-sash or --disable-sash was given.
8253if test "${enable_sash+set}" = set; then
8254 enableval="$enable_sash"
8255
8256 if test "$enableval" = yes; then
8257 ac_cv_use_sash='wxUSE_SASH=yes'
8258 else
8259 ac_cv_use_sash='wxUSE_SASH=no'
8260 fi
8261
8262else
8263
8264 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8265 if test "x$LINE" != x ; then
8266 eval "DEFAULT_$LINE"
8267 else
8268 no_cache=1
8269 fi
8270
8271 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8272
8273fi;
8274
8275 eval "$ac_cv_use_sash"
8276 if test "$no_cache" != 1; then
8277 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8278 fi
8279
8280 if test "$wxUSE_SASH" = yes; then
8281 echo "$as_me:$LINENO: result: yes" >&5
8282echo "${ECHO_T}yes" >&6
8283 else
8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6
8286 fi
8287
8288
8289 enablestring=
8290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8291echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8292 no_cache=0
8293 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8294if test "${enable_scrollbar+set}" = set; then
8295 enableval="$enable_scrollbar"
8296
8297 if test "$enableval" = yes; then
8298 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8299 else
8300 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8301 fi
8302
8303else
8304
8305 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8306 if test "x$LINE" != x ; then
8307 eval "DEFAULT_$LINE"
8308 else
8309 no_cache=1
8310 fi
8311
8312 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8313
8314fi;
8315
8316 eval "$ac_cv_use_scrollbar"
8317 if test "$no_cache" != 1; then
8318 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8319 fi
8320
8321 if test "$wxUSE_SCROLLBAR" = yes; then
8322 echo "$as_me:$LINENO: result: yes" >&5
8323echo "${ECHO_T}yes" >&6
8324 else
8325 echo "$as_me:$LINENO: result: no" >&5
8326echo "${ECHO_T}no" >&6
8327 fi
8328
8329
8330 enablestring=
8331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8332echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8333 no_cache=0
8334 # Check whether --enable-slider or --disable-slider was given.
8335if test "${enable_slider+set}" = set; then
8336 enableval="$enable_slider"
8337
8338 if test "$enableval" = yes; then
8339 ac_cv_use_slider='wxUSE_SLIDER=yes'
8340 else
8341 ac_cv_use_slider='wxUSE_SLIDER=no'
8342 fi
8343
8344else
8345
8346 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8347 if test "x$LINE" != x ; then
8348 eval "DEFAULT_$LINE"
8349 else
8350 no_cache=1
8351 fi
8352
8353 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8354
8355fi;
8356
8357 eval "$ac_cv_use_slider"
8358 if test "$no_cache" != 1; then
8359 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8360 fi
8361
8362 if test "$wxUSE_SLIDER" = yes; then
8363 echo "$as_me:$LINENO: result: yes" >&5
8364echo "${ECHO_T}yes" >&6
8365 else
8366 echo "$as_me:$LINENO: result: no" >&5
8367echo "${ECHO_T}no" >&6
8368 fi
8369
8370
8371 enablestring=
8372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8373echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8374 no_cache=0
8375 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8376if test "${enable_spinbtn+set}" = set; then
8377 enableval="$enable_spinbtn"
8378
8379 if test "$enableval" = yes; then
8380 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8381 else
8382 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8383 fi
8384
8385else
8386
8387 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8388 if test "x$LINE" != x ; then
8389 eval "DEFAULT_$LINE"
8390 else
8391 no_cache=1
8392 fi
8393
8394 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8395
8396fi;
8397
8398 eval "$ac_cv_use_spinbtn"
8399 if test "$no_cache" != 1; then
8400 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8401 fi
8402
8403 if test "$wxUSE_SPINBTN" = yes; then
8404 echo "$as_me:$LINENO: result: yes" >&5
8405echo "${ECHO_T}yes" >&6
8406 else
8407 echo "$as_me:$LINENO: result: no" >&5
8408echo "${ECHO_T}no" >&6
8409 fi
8410
8411
8412 enablestring=
8413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8414echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8415 no_cache=0
8416 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8417if test "${enable_spinctrl+set}" = set; then
8418 enableval="$enable_spinctrl"
8419
8420 if test "$enableval" = yes; then
8421 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8422 else
8423 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8424 fi
8425
8426else
8427
8428 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8429 if test "x$LINE" != x ; then
8430 eval "DEFAULT_$LINE"
8431 else
8432 no_cache=1
8433 fi
8434
8435 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8436
8437fi;
8438
8439 eval "$ac_cv_use_spinctrl"
8440 if test "$no_cache" != 1; then
8441 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8442 fi
8443
8444 if test "$wxUSE_SPINCTRL" = yes; then
8445 echo "$as_me:$LINENO: result: yes" >&5
8446echo "${ECHO_T}yes" >&6
8447 else
8448 echo "$as_me:$LINENO: result: no" >&5
8449echo "${ECHO_T}no" >&6
8450 fi
8451
8452
8453 enablestring=
8454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8455echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8456 no_cache=0
8457 # Check whether --enable-splitter or --disable-splitter was given.
8458if test "${enable_splitter+set}" = set; then
8459 enableval="$enable_splitter"
8460
8461 if test "$enableval" = yes; then
8462 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8463 else
8464 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8465 fi
8466
8467else
8468
8469 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8470 if test "x$LINE" != x ; then
8471 eval "DEFAULT_$LINE"
8472 else
8473 no_cache=1
8474 fi
8475
8476 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8477
8478fi;
8479
8480 eval "$ac_cv_use_splitter"
8481 if test "$no_cache" != 1; then
8482 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8483 fi
8484
8485 if test "$wxUSE_SPLITTER" = yes; then
8486 echo "$as_me:$LINENO: result: yes" >&5
8487echo "${ECHO_T}yes" >&6
8488 else
8489 echo "$as_me:$LINENO: result: no" >&5
8490echo "${ECHO_T}no" >&6
8491 fi
8492
8493
8494 enablestring=
8495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8496echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8497 no_cache=0
8498 # Check whether --enable-statbmp or --disable-statbmp was given.
8499if test "${enable_statbmp+set}" = set; then
8500 enableval="$enable_statbmp"
8501
8502 if test "$enableval" = yes; then
8503 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8504 else
8505 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8506 fi
8507
8508else
8509
8510 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8518
8519fi;
8520
8521 eval "$ac_cv_use_statbmp"
8522 if test "$no_cache" != 1; then
8523 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8524 fi
8525
8526 if test "$wxUSE_STATBMP" = yes; then
8527 echo "$as_me:$LINENO: result: yes" >&5
8528echo "${ECHO_T}yes" >&6
8529 else
8530 echo "$as_me:$LINENO: result: no" >&5
8531echo "${ECHO_T}no" >&6
8532 fi
8533
8534
8535 enablestring=
8536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8537echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8538 no_cache=0
8539 # Check whether --enable-statbox or --disable-statbox was given.
8540if test "${enable_statbox+set}" = set; then
8541 enableval="$enable_statbox"
8542
8543 if test "$enableval" = yes; then
8544 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8545 else
8546 ac_cv_use_statbox='wxUSE_STATBOX=no'
8547 fi
8548
8549else
8550
8551 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8552 if test "x$LINE" != x ; then
8553 eval "DEFAULT_$LINE"
8554 else
8555 no_cache=1
8556 fi
8557
8558 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8559
8560fi;
8561
8562 eval "$ac_cv_use_statbox"
8563 if test "$no_cache" != 1; then
8564 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8565 fi
8566
8567 if test "$wxUSE_STATBOX" = yes; then
8568 echo "$as_me:$LINENO: result: yes" >&5
8569echo "${ECHO_T}yes" >&6
8570 else
8571 echo "$as_me:$LINENO: result: no" >&5
8572echo "${ECHO_T}no" >&6
8573 fi
8574
8575
8576 enablestring=
8577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8578echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8579 no_cache=0
8580 # Check whether --enable-statline or --disable-statline was given.
8581if test "${enable_statline+set}" = set; then
8582 enableval="$enable_statline"
8583
8584 if test "$enableval" = yes; then
8585 ac_cv_use_statline='wxUSE_STATLINE=yes'
8586 else
8587 ac_cv_use_statline='wxUSE_STATLINE=no'
8588 fi
8589
8590else
8591
8592 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8593 if test "x$LINE" != x ; then
8594 eval "DEFAULT_$LINE"
8595 else
8596 no_cache=1
8597 fi
8598
8599 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8600
8601fi;
8602
8603 eval "$ac_cv_use_statline"
8604 if test "$no_cache" != 1; then
8605 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8606 fi
8607
8608 if test "$wxUSE_STATLINE" = yes; then
8609 echo "$as_me:$LINENO: result: yes" >&5
8610echo "${ECHO_T}yes" >&6
8611 else
8612 echo "$as_me:$LINENO: result: no" >&5
8613echo "${ECHO_T}no" >&6
8614 fi
8615
8616
8617 enablestring=
8618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8619echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8620 no_cache=0
8621 # Check whether --enable-stattext or --disable-stattext was given.
8622if test "${enable_stattext+set}" = set; then
8623 enableval="$enable_stattext"
8624
8625 if test "$enableval" = yes; then
8626 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8627 else
8628 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8629 fi
8630
8631else
8632
8633 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8634 if test "x$LINE" != x ; then
8635 eval "DEFAULT_$LINE"
8636 else
8637 no_cache=1
8638 fi
8639
8640 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8641
8642fi;
8643
8644 eval "$ac_cv_use_stattext"
8645 if test "$no_cache" != 1; then
8646 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8647 fi
8648
8649 if test "$wxUSE_STATTEXT" = yes; then
8650 echo "$as_me:$LINENO: result: yes" >&5
8651echo "${ECHO_T}yes" >&6
8652 else
8653 echo "$as_me:$LINENO: result: no" >&5
8654echo "${ECHO_T}no" >&6
8655 fi
8656
8657
8658 enablestring=
8659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8660echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8661 no_cache=0
8662 # Check whether --enable-statusbar or --disable-statusbar was given.
8663if test "${enable_statusbar+set}" = set; then
8664 enableval="$enable_statusbar"
8665
8666 if test "$enableval" = yes; then
8667 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8668 else
8669 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8670 fi
8671
8672else
8673
8674 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8675 if test "x$LINE" != x ; then
8676 eval "DEFAULT_$LINE"
8677 else
8678 no_cache=1
8679 fi
8680
8681 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8682
8683fi;
8684
8685 eval "$ac_cv_use_statusbar"
8686 if test "$no_cache" != 1; then
8687 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8688 fi
8689
8690 if test "$wxUSE_STATUSBAR" = yes; then
8691 echo "$as_me:$LINENO: result: yes" >&5
8692echo "${ECHO_T}yes" >&6
8693 else
8694 echo "$as_me:$LINENO: result: no" >&5
8695echo "${ECHO_T}no" >&6
8696 fi
8697
8698
8699 enablestring=
8700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8701echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8702 no_cache=0
8703 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8704if test "${enable_tabdialog+set}" = set; then
8705 enableval="$enable_tabdialog"
8706
8707 if test "$enableval" = yes; then
8708 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8709 else
8710 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8711 fi
8712
8713else
8714
8715 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8716 if test "x$LINE" != x ; then
8717 eval "DEFAULT_$LINE"
8718 else
8719 no_cache=1
8720 fi
8721
8722 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8723
8724fi;
8725
8726 eval "$ac_cv_use_tabdialog"
8727 if test "$no_cache" != 1; then
8728 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8729 fi
8730
8731 if test "$wxUSE_TABDIALOG" = yes; then
8732 echo "$as_me:$LINENO: result: yes" >&5
8733echo "${ECHO_T}yes" >&6
8734 else
8735 echo "$as_me:$LINENO: result: no" >&5
8736echo "${ECHO_T}no" >&6
8737 fi
8738
8739
8740 enablestring=
8741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8742echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8743 no_cache=0
8744 # Check whether --enable-textctrl or --disable-textctrl was given.
8745if test "${enable_textctrl+set}" = set; then
8746 enableval="$enable_textctrl"
8747
8748 if test "$enableval" = yes; then
8749 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8750 else
8751 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8752 fi
8753
8754else
8755
8756 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8757 if test "x$LINE" != x ; then
8758 eval "DEFAULT_$LINE"
8759 else
8760 no_cache=1
8761 fi
8762
8763 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8764
8765fi;
8766
8767 eval "$ac_cv_use_textctrl"
8768 if test "$no_cache" != 1; then
8769 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8770 fi
8771
8772 if test "$wxUSE_TEXTCTRL" = yes; then
8773 echo "$as_me:$LINENO: result: yes" >&5
8774echo "${ECHO_T}yes" >&6
8775 else
8776 echo "$as_me:$LINENO: result: no" >&5
8777echo "${ECHO_T}no" >&6
8778 fi
8779
8780
8781 enablestring=
8782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8783echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8784 no_cache=0
8785 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8786if test "${enable_togglebtn+set}" = set; then
8787 enableval="$enable_togglebtn"
8788
8789 if test "$enableval" = yes; then
8790 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8791 else
8792 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8793 fi
8794
8795else
8796
8797 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8798 if test "x$LINE" != x ; then
8799 eval "DEFAULT_$LINE"
8800 else
8801 no_cache=1
8802 fi
8803
8804 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8805
8806fi;
8807
8808 eval "$ac_cv_use_togglebtn"
8809 if test "$no_cache" != 1; then
8810 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8811 fi
8812
8813 if test "$wxUSE_TOGGLEBTN" = yes; then
8814 echo "$as_me:$LINENO: result: yes" >&5
8815echo "${ECHO_T}yes" >&6
8816 else
8817 echo "$as_me:$LINENO: result: no" >&5
8818echo "${ECHO_T}no" >&6
8819 fi
8820
8821
8822 enablestring=
8823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8824echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8825 no_cache=0
8826 # Check whether --enable-toolbar or --disable-toolbar was given.
8827if test "${enable_toolbar+set}" = set; then
8828 enableval="$enable_toolbar"
8829
8830 if test "$enableval" = yes; then
8831 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8832 else
8833 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8834 fi
8835
8836else
8837
8838 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8839 if test "x$LINE" != x ; then
8840 eval "DEFAULT_$LINE"
8841 else
8842 no_cache=1
8843 fi
8844
8845 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8846
8847fi;
8848
8849 eval "$ac_cv_use_toolbar"
8850 if test "$no_cache" != 1; then
8851 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8852 fi
8853
8854 if test "$wxUSE_TOOLBAR" = yes; then
8855 echo "$as_me:$LINENO: result: yes" >&5
8856echo "${ECHO_T}yes" >&6
8857 else
8858 echo "$as_me:$LINENO: result: no" >&5
8859echo "${ECHO_T}no" >&6
8860 fi
8861
8862
8863 enablestring=
8864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8865echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8866 no_cache=0
8867 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8868if test "${enable_tbarnative+set}" = set; then
8869 enableval="$enable_tbarnative"
8870
8871 if test "$enableval" = yes; then
8872 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8873 else
8874 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8875 fi
8876
8877else
8878
8879 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8880 if test "x$LINE" != x ; then
8881 eval "DEFAULT_$LINE"
8882 else
8883 no_cache=1
8884 fi
8885
8886 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8887
8888fi;
8889
8890 eval "$ac_cv_use_tbarnative"
8891 if test "$no_cache" != 1; then
8892 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8893 fi
8894
8895 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8896 echo "$as_me:$LINENO: result: yes" >&5
8897echo "${ECHO_T}yes" >&6
8898 else
8899 echo "$as_me:$LINENO: result: no" >&5
8900echo "${ECHO_T}no" >&6
8901 fi
8902
8903
8904 enablestring=
8905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8906echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8907 no_cache=0
8908 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8909if test "${enable_tbarsmpl+set}" = set; then
8910 enableval="$enable_tbarsmpl"
8911
8912 if test "$enableval" = yes; then
8913 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8914 else
8915 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8916 fi
8917
8918else
8919
8920 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8921 if test "x$LINE" != x ; then
8922 eval "DEFAULT_$LINE"
8923 else
8924 no_cache=1
8925 fi
8926
8927 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8928
8929fi;
8930
8931 eval "$ac_cv_use_tbarsmpl"
8932 if test "$no_cache" != 1; then
8933 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8934 fi
8935
8936 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8937 echo "$as_me:$LINENO: result: yes" >&5
8938echo "${ECHO_T}yes" >&6
8939 else
8940 echo "$as_me:$LINENO: result: no" >&5
8941echo "${ECHO_T}no" >&6
8942 fi
8943
8944
8945 enablestring=
8946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8947echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8948 no_cache=0
8949 # Check whether --enable-treectrl or --disable-treectrl was given.
8950if test "${enable_treectrl+set}" = set; then
8951 enableval="$enable_treectrl"
8952
8953 if test "$enableval" = yes; then
8954 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8955 else
8956 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8957 fi
8958
8959else
8960
8961 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8962 if test "x$LINE" != x ; then
8963 eval "DEFAULT_$LINE"
8964 else
8965 no_cache=1
8966 fi
8967
8968 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8969
8970fi;
8971
8972 eval "$ac_cv_use_treectrl"
8973 if test "$no_cache" != 1; then
8974 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8975 fi
8976
8977 if test "$wxUSE_TREECTRL" = yes; then
8978 echo "$as_me:$LINENO: result: yes" >&5
8979echo "${ECHO_T}yes" >&6
8980 else
8981 echo "$as_me:$LINENO: result: no" >&5
8982echo "${ECHO_T}no" >&6
8983 fi
8984
8985
8986 enablestring=
8987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8988echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8989 no_cache=0
8990 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8991if test "${enable_tipwindow+set}" = set; then
8992 enableval="$enable_tipwindow"
8993
8994 if test "$enableval" = yes; then
8995 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8996 else
8997 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8998 fi
8999
9000else
9001
9002 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9003 if test "x$LINE" != x ; then
9004 eval "DEFAULT_$LINE"
9005 else
9006 no_cache=1
9007 fi
9008
9009 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9010
9011fi;
9012
9013 eval "$ac_cv_use_tipwindow"
9014 if test "$no_cache" != 1; then
9015 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9016 fi
9017
9018 if test "$wxUSE_TIPWINDOW" = yes; then
9019 echo "$as_me:$LINENO: result: yes" >&5
9020echo "${ECHO_T}yes" >&6
9021 else
9022 echo "$as_me:$LINENO: result: no" >&5
9023echo "${ECHO_T}no" >&6
9024 fi
9025
9026
9027 enablestring=
9028 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9029echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9030 no_cache=0
9031 # Check whether --enable-popupwin or --disable-popupwin was given.
9032if test "${enable_popupwin+set}" = set; then
9033 enableval="$enable_popupwin"
9034
9035 if test "$enableval" = yes; then
9036 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9037 else
9038 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9039 fi
9040
9041else
9042
9043 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9044 if test "x$LINE" != x ; then
9045 eval "DEFAULT_$LINE"
9046 else
9047 no_cache=1
9048 fi
9049
9050 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9051
9052fi;
9053
9054 eval "$ac_cv_use_popupwin"
9055 if test "$no_cache" != 1; then
9056 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9057 fi
9058
9059 if test "$wxUSE_POPUPWIN" = yes; then
9060 echo "$as_me:$LINENO: result: yes" >&5
9061echo "${ECHO_T}yes" >&6
9062 else
9063 echo "$as_me:$LINENO: result: no" >&5
9064echo "${ECHO_T}no" >&6
9065 fi
9066
9067
9068
9069
9070 enablestring=
9071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9072echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9073 no_cache=0
9074 # Check whether --enable-commondlg or --disable-commondlg was given.
9075if test "${enable_commondlg+set}" = set; then
9076 enableval="$enable_commondlg"
9077
9078 if test "$enableval" = yes; then
9079 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9080 else
9081 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9082 fi
9083
9084else
9085
9086 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9087 if test "x$LINE" != x ; then
9088 eval "DEFAULT_$LINE"
9089 else
9090 no_cache=1
9091 fi
9092
9093 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9094
9095fi;
9096
9097 eval "$ac_cv_use_commondlg"
9098 if test "$no_cache" != 1; then
9099 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9100 fi
9101
9102 if test "$wxUSE_COMMONDLGS" = yes; then
9103 echo "$as_me:$LINENO: result: yes" >&5
9104echo "${ECHO_T}yes" >&6
9105 else
9106 echo "$as_me:$LINENO: result: no" >&5
9107echo "${ECHO_T}no" >&6
9108 fi
9109
9110
9111 enablestring=
9112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9113echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9114 no_cache=0
9115 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9116if test "${enable_choicedlg+set}" = set; then
9117 enableval="$enable_choicedlg"
9118
9119 if test "$enableval" = yes; then
9120 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9121 else
9122 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9123 fi
9124
9125else
9126
9127 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9128 if test "x$LINE" != x ; then
9129 eval "DEFAULT_$LINE"
9130 else
9131 no_cache=1
9132 fi
9133
9134 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9135
9136fi;
9137
9138 eval "$ac_cv_use_choicedlg"
9139 if test "$no_cache" != 1; then
9140 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9141 fi
9142
9143 if test "$wxUSE_CHOICEDLG" = yes; then
9144 echo "$as_me:$LINENO: result: yes" >&5
9145echo "${ECHO_T}yes" >&6
9146 else
9147 echo "$as_me:$LINENO: result: no" >&5
9148echo "${ECHO_T}no" >&6
9149 fi
9150
9151
9152 enablestring=
9153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9154echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9155 no_cache=0
9156 # Check whether --enable-coldlg or --disable-coldlg was given.
9157if test "${enable_coldlg+set}" = set; then
9158 enableval="$enable_coldlg"
9159
9160 if test "$enableval" = yes; then
9161 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9162 else
9163 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9164 fi
9165
9166else
9167
9168 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9169 if test "x$LINE" != x ; then
9170 eval "DEFAULT_$LINE"
9171 else
9172 no_cache=1
9173 fi
9174
9175 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9176
9177fi;
9178
9179 eval "$ac_cv_use_coldlg"
9180 if test "$no_cache" != 1; then
9181 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9182 fi
9183
9184 if test "$wxUSE_COLOURDLG" = yes; then
9185 echo "$as_me:$LINENO: result: yes" >&5
9186echo "${ECHO_T}yes" >&6
9187 else
9188 echo "$as_me:$LINENO: result: no" >&5
9189echo "${ECHO_T}no" >&6
9190 fi
9191
9192
9193 enablestring=
9194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9195echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9196 no_cache=0
9197 # Check whether --enable-filedlg or --disable-filedlg was given.
9198if test "${enable_filedlg+set}" = set; then
9199 enableval="$enable_filedlg"
9200
9201 if test "$enableval" = yes; then
9202 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9203 else
9204 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9205 fi
9206
9207else
9208
9209 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9210 if test "x$LINE" != x ; then
9211 eval "DEFAULT_$LINE"
9212 else
9213 no_cache=1
9214 fi
9215
9216 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9217
9218fi;
9219
9220 eval "$ac_cv_use_filedlg"
9221 if test "$no_cache" != 1; then
9222 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9223 fi
9224
9225 if test "$wxUSE_FILEDLG" = yes; then
9226 echo "$as_me:$LINENO: result: yes" >&5
9227echo "${ECHO_T}yes" >&6
9228 else
9229 echo "$as_me:$LINENO: result: no" >&5
9230echo "${ECHO_T}no" >&6
9231 fi
9232
9233
9234 enablestring=
9235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9236echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9237 no_cache=0
9238 # Check whether --enable-finddlg or --disable-finddlg was given.
9239if test "${enable_finddlg+set}" = set; then
9240 enableval="$enable_finddlg"
9241
9242 if test "$enableval" = yes; then
9243 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9244 else
9245 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9246 fi
9247
9248else
9249
9250 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9251 if test "x$LINE" != x ; then
9252 eval "DEFAULT_$LINE"
9253 else
9254 no_cache=1
9255 fi
9256
9257 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9258
9259fi;
9260
9261 eval "$ac_cv_use_finddlg"
9262 if test "$no_cache" != 1; then
9263 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9264 fi
9265
9266 if test "$wxUSE_FINDREPLDLG" = yes; then
9267 echo "$as_me:$LINENO: result: yes" >&5
9268echo "${ECHO_T}yes" >&6
9269 else
9270 echo "$as_me:$LINENO: result: no" >&5
9271echo "${ECHO_T}no" >&6
9272 fi
9273
9274
9275 enablestring=
9276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9277echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9278 no_cache=0
9279 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9280if test "${enable_fontdlg+set}" = set; then
9281 enableval="$enable_fontdlg"
9282
9283 if test "$enableval" = yes; then
9284 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9285 else
9286 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9287 fi
9288
9289else
9290
9291 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9292 if test "x$LINE" != x ; then
9293 eval "DEFAULT_$LINE"
9294 else
9295 no_cache=1
9296 fi
9297
9298 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9299
9300fi;
9301
9302 eval "$ac_cv_use_fontdlg"
9303 if test "$no_cache" != 1; then
9304 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9305 fi
9306
9307 if test "$wxUSE_FONTDLG" = yes; then
9308 echo "$as_me:$LINENO: result: yes" >&5
9309echo "${ECHO_T}yes" >&6
9310 else
9311 echo "$as_me:$LINENO: result: no" >&5
9312echo "${ECHO_T}no" >&6
9313 fi
9314
9315
9316 enablestring=
9317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9318echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9319 no_cache=0
9320 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9321if test "${enable_dirdlg+set}" = set; then
9322 enableval="$enable_dirdlg"
9323
9324 if test "$enableval" = yes; then
9325 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9326 else
9327 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9328 fi
9329
9330else
9331
9332 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9333 if test "x$LINE" != x ; then
9334 eval "DEFAULT_$LINE"
9335 else
9336 no_cache=1
9337 fi
9338
9339 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9340
9341fi;
9342
9343 eval "$ac_cv_use_dirdlg"
9344 if test "$no_cache" != 1; then
9345 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9346 fi
9347
9348 if test "$wxUSE_DIRDLG" = yes; then
9349 echo "$as_me:$LINENO: result: yes" >&5
9350echo "${ECHO_T}yes" >&6
9351 else
9352 echo "$as_me:$LINENO: result: no" >&5
9353echo "${ECHO_T}no" >&6
9354 fi
9355
9356
9357 enablestring=
9358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9359echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9360 no_cache=0
9361 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9362if test "${enable_msgdlg+set}" = set; then
9363 enableval="$enable_msgdlg"
9364
9365 if test "$enableval" = yes; then
9366 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9367 else
9368 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9369 fi
9370
9371else
9372
9373 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9374 if test "x$LINE" != x ; then
9375 eval "DEFAULT_$LINE"
9376 else
9377 no_cache=1
9378 fi
9379
9380 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9381
9382fi;
9383
9384 eval "$ac_cv_use_msgdlg"
9385 if test "$no_cache" != 1; then
9386 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9387 fi
9388
9389 if test "$wxUSE_MSGDLG" = yes; then
9390 echo "$as_me:$LINENO: result: yes" >&5
9391echo "${ECHO_T}yes" >&6
9392 else
9393 echo "$as_me:$LINENO: result: no" >&5
9394echo "${ECHO_T}no" >&6
9395 fi
9396
9397
9398 enablestring=
9399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9400echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9401 no_cache=0
9402 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9403if test "${enable_numberdlg+set}" = set; then
9404 enableval="$enable_numberdlg"
9405
9406 if test "$enableval" = yes; then
9407 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9408 else
9409 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9410 fi
9411
9412else
9413
9414 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9415 if test "x$LINE" != x ; then
9416 eval "DEFAULT_$LINE"
9417 else
9418 no_cache=1
9419 fi
9420
9421 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9422
9423fi;
9424
9425 eval "$ac_cv_use_numberdlg"
9426 if test "$no_cache" != 1; then
9427 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9428 fi
9429
9430 if test "$wxUSE_NUMBERDLG" = yes; then
9431 echo "$as_me:$LINENO: result: yes" >&5
9432echo "${ECHO_T}yes" >&6
9433 else
9434 echo "$as_me:$LINENO: result: no" >&5
9435echo "${ECHO_T}no" >&6
9436 fi
9437
9438
9439 enablestring=
9440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9441echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9442 no_cache=0
9443 # Check whether --enable-splash or --disable-splash was given.
9444if test "${enable_splash+set}" = set; then
9445 enableval="$enable_splash"
9446
9447 if test "$enableval" = yes; then
9448 ac_cv_use_splash='wxUSE_SPLASH=yes'
9449 else
9450 ac_cv_use_splash='wxUSE_SPLASH=no'
9451 fi
9452
9453else
9454
9455 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9456 if test "x$LINE" != x ; then
9457 eval "DEFAULT_$LINE"
9458 else
9459 no_cache=1
9460 fi
9461
9462 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9463
9464fi;
9465
9466 eval "$ac_cv_use_splash"
9467 if test "$no_cache" != 1; then
9468 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9469 fi
9470
9471 if test "$wxUSE_SPLASH" = yes; then
9472 echo "$as_me:$LINENO: result: yes" >&5
9473echo "${ECHO_T}yes" >&6
9474 else
9475 echo "$as_me:$LINENO: result: no" >&5
9476echo "${ECHO_T}no" >&6
9477 fi
9478
9479
9480 enablestring=
9481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9482echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9483 no_cache=0
9484 # Check whether --enable-textdlg or --disable-textdlg was given.
9485if test "${enable_textdlg+set}" = set; then
9486 enableval="$enable_textdlg"
9487
9488 if test "$enableval" = yes; then
9489 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9490 else
9491 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9492 fi
9493
9494else
9495
9496 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9497 if test "x$LINE" != x ; then
9498 eval "DEFAULT_$LINE"
9499 else
9500 no_cache=1
9501 fi
9502
9503 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9504
9505fi;
9506
9507 eval "$ac_cv_use_textdlg"
9508 if test "$no_cache" != 1; then
9509 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9510 fi
9511
9512 if test "$wxUSE_TEXTDLG" = yes; then
9513 echo "$as_me:$LINENO: result: yes" >&5
9514echo "${ECHO_T}yes" >&6
9515 else
9516 echo "$as_me:$LINENO: result: no" >&5
9517echo "${ECHO_T}no" >&6
9518 fi
9519
9520
9521 enablestring=
9522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9523echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9524 no_cache=0
9525 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9526if test "${enable_tipdlg+set}" = set; then
9527 enableval="$enable_tipdlg"
9528
9529 if test "$enableval" = yes; then
9530 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9531 else
9532 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9533 fi
9534
9535else
9536
9537 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9538 if test "x$LINE" != x ; then
9539 eval "DEFAULT_$LINE"
9540 else
9541 no_cache=1
9542 fi
9543
9544 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9545
9546fi;
9547
9548 eval "$ac_cv_use_tipdlg"
9549 if test "$no_cache" != 1; then
9550 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9551 fi
9552
9553 if test "$wxUSE_STARTUP_TIPS" = yes; then
9554 echo "$as_me:$LINENO: result: yes" >&5
9555echo "${ECHO_T}yes" >&6
9556 else
9557 echo "$as_me:$LINENO: result: no" >&5
9558echo "${ECHO_T}no" >&6
9559 fi
9560
9561
9562 enablestring=
9563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9564echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9565 no_cache=0
9566 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9567if test "${enable_progressdlg+set}" = set; then
9568 enableval="$enable_progressdlg"
9569
9570 if test "$enableval" = yes; then
9571 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9572 else
9573 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9574 fi
9575
9576else
9577
9578 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9579 if test "x$LINE" != x ; then
9580 eval "DEFAULT_$LINE"
9581 else
9582 no_cache=1
9583 fi
9584
9585 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9586
9587fi;
9588
9589 eval "$ac_cv_use_progressdlg"
9590 if test "$no_cache" != 1; then
9591 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9592 fi
9593
9594 if test "$wxUSE_PROGRESSDLG" = yes; then
9595 echo "$as_me:$LINENO: result: yes" >&5
9596echo "${ECHO_T}yes" >&6
9597 else
9598 echo "$as_me:$LINENO: result: no" >&5
9599echo "${ECHO_T}no" >&6
9600 fi
9601
9602
9603 enablestring=
9604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9605echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9606 no_cache=0
9607 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9608if test "${enable_wizarddlg+set}" = set; then
9609 enableval="$enable_wizarddlg"
9610
9611 if test "$enableval" = yes; then
9612 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9613 else
9614 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9615 fi
9616
9617else
9618
9619 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9620 if test "x$LINE" != x ; then
9621 eval "DEFAULT_$LINE"
9622 else
9623 no_cache=1
9624 fi
9625
9626 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9627
9628fi;
9629
9630 eval "$ac_cv_use_wizarddlg"
9631 if test "$no_cache" != 1; then
9632 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9633 fi
9634
9635 if test "$wxUSE_WIZARDDLG" = yes; then
9636 echo "$as_me:$LINENO: result: yes" >&5
9637echo "${ECHO_T}yes" >&6
9638 else
9639 echo "$as_me:$LINENO: result: no" >&5
9640echo "${ECHO_T}no" >&6
9641 fi
9642
9643
9644
9645
9646 enablestring=
9647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9648echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9649 no_cache=0
9650 # Check whether --enable-menus or --disable-menus was given.
9651if test "${enable_menus+set}" = set; then
9652 enableval="$enable_menus"
9653
9654 if test "$enableval" = yes; then
9655 ac_cv_use_menus='wxUSE_MENUS=yes'
9656 else
9657 ac_cv_use_menus='wxUSE_MENUS=no'
9658 fi
9659
9660else
9661
9662 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9663 if test "x$LINE" != x ; then
9664 eval "DEFAULT_$LINE"
9665 else
9666 no_cache=1
9667 fi
9668
9669 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9670
9671fi;
9672
9673 eval "$ac_cv_use_menus"
9674 if test "$no_cache" != 1; then
9675 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9676 fi
9677
9678 if test "$wxUSE_MENUS" = yes; then
9679 echo "$as_me:$LINENO: result: yes" >&5
9680echo "${ECHO_T}yes" >&6
9681 else
9682 echo "$as_me:$LINENO: result: no" >&5
9683echo "${ECHO_T}no" >&6
9684 fi
9685
9686
9687 enablestring=
9688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9689echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9690 no_cache=0
9691 # Check whether --enable-miniframe or --disable-miniframe was given.
9692if test "${enable_miniframe+set}" = set; then
9693 enableval="$enable_miniframe"
9694
9695 if test "$enableval" = yes; then
9696 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9697 else
9698 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9699 fi
9700
9701else
9702
9703 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9704 if test "x$LINE" != x ; then
9705 eval "DEFAULT_$LINE"
9706 else
9707 no_cache=1
9708 fi
9709
9710 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9711
9712fi;
9713
9714 eval "$ac_cv_use_miniframe"
9715 if test "$no_cache" != 1; then
9716 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9717 fi
9718
9719 if test "$wxUSE_MINIFRAME" = yes; then
9720 echo "$as_me:$LINENO: result: yes" >&5
9721echo "${ECHO_T}yes" >&6
9722 else
9723 echo "$as_me:$LINENO: result: no" >&5
9724echo "${ECHO_T}no" >&6
9725 fi
9726
9727
9728 enablestring=
9729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9730echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9731 no_cache=0
9732 # Check whether --enable-tooltips or --disable-tooltips was given.
9733if test "${enable_tooltips+set}" = set; then
9734 enableval="$enable_tooltips"
9735
9736 if test "$enableval" = yes; then
9737 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9738 else
9739 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9740 fi
9741
9742else
9743
9744 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9745 if test "x$LINE" != x ; then
9746 eval "DEFAULT_$LINE"
9747 else
9748 no_cache=1
9749 fi
9750
9751 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9752
9753fi;
9754
9755 eval "$ac_cv_use_tooltips"
9756 if test "$no_cache" != 1; then
9757 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9758 fi
9759
9760 if test "$wxUSE_TOOLTIPS" = yes; then
9761 echo "$as_me:$LINENO: result: yes" >&5
9762echo "${ECHO_T}yes" >&6
9763 else
9764 echo "$as_me:$LINENO: result: no" >&5
9765echo "${ECHO_T}no" >&6
9766 fi
9767
9768
9769 enablestring=
9770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9771echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9772 no_cache=0
9773 # Check whether --enable-splines or --disable-splines was given.
9774if test "${enable_splines+set}" = set; then
9775 enableval="$enable_splines"
9776
9777 if test "$enableval" = yes; then
9778 ac_cv_use_splines='wxUSE_SPLINES=yes'
9779 else
9780 ac_cv_use_splines='wxUSE_SPLINES=no'
9781 fi
9782
9783else
9784
9785 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9786 if test "x$LINE" != x ; then
9787 eval "DEFAULT_$LINE"
9788 else
9789 no_cache=1
9790 fi
9791
9792 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9793
9794fi;
9795
9796 eval "$ac_cv_use_splines"
9797 if test "$no_cache" != 1; then
9798 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9799 fi
9800
9801 if test "$wxUSE_SPLINES" = yes; then
9802 echo "$as_me:$LINENO: result: yes" >&5
9803echo "${ECHO_T}yes" >&6
9804 else
9805 echo "$as_me:$LINENO: result: no" >&5
9806echo "${ECHO_T}no" >&6
9807 fi
9808
9809
fbe2ca43
SN
9810 enablestring=
9811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9812echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9813 no_cache=0
9814 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9815if test "${enable_mousewheel+set}" = set; then
9816 enableval="$enable_mousewheel"
9817
9818 if test "$enableval" = yes; then
9819 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9820 else
9821 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9822 fi
9823
9824else
9825
9826 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9827 if test "x$LINE" != x ; then
9828 eval "DEFAULT_$LINE"
9829 else
9830 no_cache=1
9831 fi
9832
9833 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9834
9835fi;
9836
9837 eval "$ac_cv_use_mousewheel"
9838 if test "$no_cache" != 1; then
9839 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9840 fi
9841
9842 if test "$wxUSE_MOUSEWHEEL" = yes; then
9843 echo "$as_me:$LINENO: result: yes" >&5
9844echo "${ECHO_T}yes" >&6
9845 else
9846 echo "$as_me:$LINENO: result: no" >&5
9847echo "${ECHO_T}no" >&6
9848 fi
9849
9850
a848cd7e
SC
9851 enablestring=
9852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9853echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9854 no_cache=0
9855 # Check whether --enable-validators or --disable-validators was given.
9856if test "${enable_validators+set}" = set; then
9857 enableval="$enable_validators"
9858
9859 if test "$enableval" = yes; then
9860 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9861 else
9862 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9863 fi
9864
9865else
9866
9867 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9868 if test "x$LINE" != x ; then
9869 eval "DEFAULT_$LINE"
9870 else
9871 no_cache=1
9872 fi
9873
9874 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9875
9876fi;
9877
9878 eval "$ac_cv_use_validators"
9879 if test "$no_cache" != 1; then
9880 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9881 fi
9882
9883 if test "$wxUSE_VALIDATORS" = yes; then
9884 echo "$as_me:$LINENO: result: yes" >&5
9885echo "${ECHO_T}yes" >&6
9886 else
9887 echo "$as_me:$LINENO: result: no" >&5
9888echo "${ECHO_T}no" >&6
9889 fi
9890
9891
9892 enablestring=
9893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9894echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9895 no_cache=0
9896 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9897if test "${enable_busyinfo+set}" = set; then
9898 enableval="$enable_busyinfo"
9899
9900 if test "$enableval" = yes; then
9901 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9902 else
9903 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9904 fi
9905
9906else
9907
9908 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9909 if test "x$LINE" != x ; then
9910 eval "DEFAULT_$LINE"
9911 else
9912 no_cache=1
9913 fi
9914
9915 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9916
9917fi;
9918
9919 eval "$ac_cv_use_busyinfo"
9920 if test "$no_cache" != 1; then
9921 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9922 fi
9923
9924 if test "$wxUSE_BUSYINFO" = yes; then
9925 echo "$as_me:$LINENO: result: yes" >&5
9926echo "${ECHO_T}yes" >&6
9927 else
9928 echo "$as_me:$LINENO: result: no" >&5
9929echo "${ECHO_T}no" >&6
9930 fi
9931
9932
9933 enablestring=
9934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9935echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9936 no_cache=0
9937 # Check whether --enable-joystick or --disable-joystick was given.
9938if test "${enable_joystick+set}" = set; then
9939 enableval="$enable_joystick"
9940
9941 if test "$enableval" = yes; then
9942 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9943 else
9944 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9945 fi
9946
9947else
9948
9949 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9950 if test "x$LINE" != x ; then
9951 eval "DEFAULT_$LINE"
9952 else
9953 no_cache=1
9954 fi
9955
9956 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9957
9958fi;
9959
9960 eval "$ac_cv_use_joystick"
9961 if test "$no_cache" != 1; then
9962 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9963 fi
9964
9965 if test "$wxUSE_JOYSTICK" = yes; then
9966 echo "$as_me:$LINENO: result: yes" >&5
9967echo "${ECHO_T}yes" >&6
9968 else
9969 echo "$as_me:$LINENO: result: no" >&5
9970echo "${ECHO_T}no" >&6
9971 fi
9972
9973
9974 enablestring=
9975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9976echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9977 no_cache=0
9978 # Check whether --enable-metafile or --disable-metafile was given.
9979if test "${enable_metafile+set}" = set; then
9980 enableval="$enable_metafile"
9981
9982 if test "$enableval" = yes; then
9983 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9984 else
9985 ac_cv_use_metafile='wxUSE_METAFILE=no'
9986 fi
9987
9988else
9989
9990 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9991 if test "x$LINE" != x ; then
9992 eval "DEFAULT_$LINE"
9993 else
9994 no_cache=1
9995 fi
9996
9997 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9998
9999fi;
10000
10001 eval "$ac_cv_use_metafile"
10002 if test "$no_cache" != 1; then
10003 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10004 fi
10005
10006 if test "$wxUSE_METAFILE" = yes; then
10007 echo "$as_me:$LINENO: result: yes" >&5
10008echo "${ECHO_T}yes" >&6
10009 else
10010 echo "$as_me:$LINENO: result: no" >&5
10011echo "${ECHO_T}no" >&6
10012 fi
10013
10014
10015 enablestring=
10016 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10017echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10018 no_cache=0
10019 # Check whether --enable-dragimage or --disable-dragimage was given.
10020if test "${enable_dragimage+set}" = set; then
10021 enableval="$enable_dragimage"
10022
10023 if test "$enableval" = yes; then
10024 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10025 else
10026 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10027 fi
10028
10029else
10030
10031 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10032 if test "x$LINE" != x ; then
10033 eval "DEFAULT_$LINE"
10034 else
10035 no_cache=1
10036 fi
10037
10038 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10039
10040fi;
10041
10042 eval "$ac_cv_use_dragimage"
10043 if test "$no_cache" != 1; then
10044 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10045 fi
10046
10047 if test "$wxUSE_DRAGIMAGE" = yes; then
10048 echo "$as_me:$LINENO: result: yes" >&5
10049echo "${ECHO_T}yes" >&6
10050 else
10051 echo "$as_me:$LINENO: result: no" >&5
10052echo "${ECHO_T}no" >&6
10053 fi
10054
10055
10056 enablestring=
10057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10058echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10059 no_cache=0
10060 # Check whether --enable-accessibility or --disable-accessibility was given.
10061if test "${enable_accessibility+set}" = set; then
10062 enableval="$enable_accessibility"
10063
10064 if test "$enableval" = yes; then
10065 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10066 else
10067 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10068 fi
10069
10070else
10071
10072 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10073 if test "x$LINE" != x ; then
10074 eval "DEFAULT_$LINE"
10075 else
10076 no_cache=1
10077 fi
10078
10079 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10080
10081fi;
10082
10083 eval "$ac_cv_use_accessibility"
10084 if test "$no_cache" != 1; then
10085 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10086 fi
10087
10088 if test "$wxUSE_ACCESSIBILITY" = yes; then
10089 echo "$as_me:$LINENO: result: yes" >&5
10090echo "${ECHO_T}yes" >&6
10091 else
10092 echo "$as_me:$LINENO: result: no" >&5
10093echo "${ECHO_T}no" >&6
10094 fi
10095
10096
38b4a946
VZ
10097if test "$wxUSE_MSW" = "1"; then
10098
10099 enablestring=
10100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10101echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10102 no_cache=0
10103 # Check whether --enable-dccache or --disable-dccache was given.
10104if test "${enable_dccache+set}" = set; then
10105 enableval="$enable_dccache"
10106
10107 if test "$enableval" = yes; then
10108 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10109 else
10110 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10111 fi
10112
10113else
10114
10115 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10116 if test "x$LINE" != x ; then
10117 eval "DEFAULT_$LINE"
10118 else
10119 no_cache=1
10120 fi
10121
10122 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10123
10124fi;
10125
10126 eval "$ac_cv_use_dccache"
10127 if test "$no_cache" != 1; then
10128 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10129 fi
10130
10131 if test "$wxUSE_DC_CACHEING" = yes; then
10132 echo "$as_me:$LINENO: result: yes" >&5
10133echo "${ECHO_T}yes" >&6
10134 else
10135 echo "$as_me:$LINENO: result: no" >&5
10136echo "${ECHO_T}no" >&6
10137 fi
10138
10139fi
10140
a848cd7e
SC
10141
10142
10143 enablestring=
10144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10145echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10146 no_cache=0
10147 # Check whether --enable-palette or --disable-palette was given.
10148if test "${enable_palette+set}" = set; then
10149 enableval="$enable_palette"
10150
10151 if test "$enableval" = yes; then
10152 ac_cv_use_palette='wxUSE_PALETTE=yes'
10153 else
10154 ac_cv_use_palette='wxUSE_PALETTE=no'
10155 fi
10156
10157else
10158
10159 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10160 if test "x$LINE" != x ; then
10161 eval "DEFAULT_$LINE"
10162 else
10163 no_cache=1
10164 fi
10165
10166 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10167
10168fi;
10169
10170 eval "$ac_cv_use_palette"
10171 if test "$no_cache" != 1; then
10172 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10173 fi
10174
10175 if test "$wxUSE_PALETTE" = yes; then
10176 echo "$as_me:$LINENO: result: yes" >&5
10177echo "${ECHO_T}yes" >&6
10178 else
10179 echo "$as_me:$LINENO: result: no" >&5
10180echo "${ECHO_T}no" >&6
10181 fi
10182
10183
10184 enablestring=
10185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10186echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10187 no_cache=0
10188 # Check whether --enable-image or --disable-image was given.
10189if test "${enable_image+set}" = set; then
10190 enableval="$enable_image"
10191
10192 if test "$enableval" = yes; then
10193 ac_cv_use_image='wxUSE_IMAGE=yes'
10194 else
10195 ac_cv_use_image='wxUSE_IMAGE=no'
10196 fi
10197
10198else
10199
10200 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10201 if test "x$LINE" != x ; then
10202 eval "DEFAULT_$LINE"
10203 else
10204 no_cache=1
10205 fi
10206
10207 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10208
10209fi;
10210
10211 eval "$ac_cv_use_image"
10212 if test "$no_cache" != 1; then
10213 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10214 fi
10215
10216 if test "$wxUSE_IMAGE" = yes; then
10217 echo "$as_me:$LINENO: result: yes" >&5
10218echo "${ECHO_T}yes" >&6
10219 else
10220 echo "$as_me:$LINENO: result: no" >&5
10221echo "${ECHO_T}no" >&6
10222 fi
10223
10224
10225 enablestring=
10226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10227echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10228 no_cache=0
10229 # Check whether --enable-gif or --disable-gif was given.
10230if test "${enable_gif+set}" = set; then
10231 enableval="$enable_gif"
10232
10233 if test "$enableval" = yes; then
10234 ac_cv_use_gif='wxUSE_GIF=yes'
10235 else
10236 ac_cv_use_gif='wxUSE_GIF=no'
10237 fi
10238
10239else
10240
10241 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10242 if test "x$LINE" != x ; then
10243 eval "DEFAULT_$LINE"
10244 else
10245 no_cache=1
10246 fi
10247
10248 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10249
10250fi;
10251
10252 eval "$ac_cv_use_gif"
10253 if test "$no_cache" != 1; then
10254 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10255 fi
10256
10257 if test "$wxUSE_GIF" = yes; then
10258 echo "$as_me:$LINENO: result: yes" >&5
10259echo "${ECHO_T}yes" >&6
10260 else
10261 echo "$as_me:$LINENO: result: no" >&5
10262echo "${ECHO_T}no" >&6
10263 fi
10264
10265
10266 enablestring=
10267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10268echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10269 no_cache=0
10270 # Check whether --enable-pcx or --disable-pcx was given.
10271if test "${enable_pcx+set}" = set; then
10272 enableval="$enable_pcx"
10273
10274 if test "$enableval" = yes; then
10275 ac_cv_use_pcx='wxUSE_PCX=yes'
10276 else
10277 ac_cv_use_pcx='wxUSE_PCX=no'
10278 fi
10279
10280else
10281
10282 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10283 if test "x$LINE" != x ; then
10284 eval "DEFAULT_$LINE"
10285 else
10286 no_cache=1
10287 fi
10288
10289 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10290
10291fi;
10292
10293 eval "$ac_cv_use_pcx"
10294 if test "$no_cache" != 1; then
10295 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10296 fi
10297
10298 if test "$wxUSE_PCX" = yes; then
10299 echo "$as_me:$LINENO: result: yes" >&5
10300echo "${ECHO_T}yes" >&6
10301 else
10302 echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
10304 fi
10305
10306
10307 enablestring=
10308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10309echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10310 no_cache=0
10311 # Check whether --enable-iff or --disable-iff was given.
10312if test "${enable_iff+set}" = set; then
10313 enableval="$enable_iff"
10314
10315 if test "$enableval" = yes; then
10316 ac_cv_use_iff='wxUSE_IFF=yes'
10317 else
10318 ac_cv_use_iff='wxUSE_IFF=no'
10319 fi
10320
10321else
10322
10323 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10324 if test "x$LINE" != x ; then
10325 eval "DEFAULT_$LINE"
10326 else
10327 no_cache=1
10328 fi
10329
10330 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10331
10332fi;
10333
10334 eval "$ac_cv_use_iff"
10335 if test "$no_cache" != 1; then
10336 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10337 fi
10338
10339 if test "$wxUSE_IFF" = yes; then
10340 echo "$as_me:$LINENO: result: yes" >&5
10341echo "${ECHO_T}yes" >&6
10342 else
10343 echo "$as_me:$LINENO: result: no" >&5
10344echo "${ECHO_T}no" >&6
10345 fi
10346
10347
10348 enablestring=
10349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10350echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10351 no_cache=0
10352 # Check whether --enable-pnm or --disable-pnm was given.
10353if test "${enable_pnm+set}" = set; then
10354 enableval="$enable_pnm"
10355
10356 if test "$enableval" = yes; then
10357 ac_cv_use_pnm='wxUSE_PNM=yes'
10358 else
10359 ac_cv_use_pnm='wxUSE_PNM=no'
10360 fi
10361
10362else
10363
10364 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10365 if test "x$LINE" != x ; then
10366 eval "DEFAULT_$LINE"
10367 else
10368 no_cache=1
10369 fi
10370
10371 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10372
10373fi;
10374
10375 eval "$ac_cv_use_pnm"
10376 if test "$no_cache" != 1; then
10377 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10378 fi
10379
10380 if test "$wxUSE_PNM" = yes; then
10381 echo "$as_me:$LINENO: result: yes" >&5
10382echo "${ECHO_T}yes" >&6
10383 else
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
10386 fi
10387
10388
10389 enablestring=
10390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10391echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10392 no_cache=0
10393 # Check whether --enable-xpm or --disable-xpm was given.
10394if test "${enable_xpm+set}" = set; then
10395 enableval="$enable_xpm"
10396
10397 if test "$enableval" = yes; then
10398 ac_cv_use_xpm='wxUSE_XPM=yes'
10399 else
10400 ac_cv_use_xpm='wxUSE_XPM=no'
10401 fi
10402
10403else
10404
10405 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10406 if test "x$LINE" != x ; then
10407 eval "DEFAULT_$LINE"
10408 else
10409 no_cache=1
10410 fi
10411
10412 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10413
10414fi;
10415
10416 eval "$ac_cv_use_xpm"
10417 if test "$no_cache" != 1; then
10418 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10419 fi
10420
10421 if test "$wxUSE_XPM" = yes; then
10422 echo "$as_me:$LINENO: result: yes" >&5
10423echo "${ECHO_T}yes" >&6
10424 else
10425 echo "$as_me:$LINENO: result: no" >&5
10426echo "${ECHO_T}no" >&6
10427 fi
10428
10429
10430 enablestring=
10431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10432echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10433 no_cache=0
10434 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10435if test "${enable_ico_cur+set}" = set; then
10436 enableval="$enable_ico_cur"
10437
10438 if test "$enableval" = yes; then
10439 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10440 else
10441 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10442 fi
10443
10444else
10445
10446 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10447 if test "x$LINE" != x ; then
10448 eval "DEFAULT_$LINE"
10449 else
10450 no_cache=1
10451 fi
10452
10453 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10454
10455fi;
10456
10457 eval "$ac_cv_use_ico_cur"
10458 if test "$no_cache" != 1; then
10459 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10460 fi
10461
10462 if test "$wxUSE_ICO_CUR" = yes; then
10463 echo "$as_me:$LINENO: result: yes" >&5
10464echo "${ECHO_T}yes" >&6
10465 else
10466 echo "$as_me:$LINENO: result: no" >&5
10467echo "${ECHO_T}no" >&6
10468 fi
10469
10470
10471fi
10472
10473
10474
ceec2216
RL
10475# Check whether --with-flavour or --without-flavour was given.
10476if test "${with_flavour+set}" = set; then
10477 withval="$with_flavour"
10478 WX_FLAVOUR="$withval"
10479fi;
10480
10481
10482
a848cd7e
SC
10483 enablestring=
10484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10485echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10486 no_cache=0
10487 # Check whether --enable-official_build or --disable-official_build was given.
10488if test "${enable_official_build+set}" = set; then
10489 enableval="$enable_official_build"
10490
10491 if test "$enableval" = yes; then
10492 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10493 else
10494 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10495 fi
10496
10497else
10498
10499 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10500 if test "x$LINE" != x ; then
10501 eval "DEFAULT_$LINE"
10502 else
10503 no_cache=1
10504 fi
10505
10506 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10507
10508fi;
10509
10510 eval "$ac_cv_use_official_build"
10511 if test "$no_cache" != 1; then
10512 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10513 fi
10514
10515 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10516 echo "$as_me:$LINENO: result: yes" >&5
10517echo "${ECHO_T}yes" >&6
10518 else
10519 echo "$as_me:$LINENO: result: no" >&5
10520echo "${ECHO_T}no" >&6
10521 fi
10522
10523# Check whether --enable-vendor or --disable-vendor was given.
10524if test "${enable_vendor+set}" = set; then
10525 enableval="$enable_vendor"
10526 VENDOR="$enableval"
10527fi;
10528if test "x$VENDOR" = "x"; then
10529 VENDOR="custom"
10530fi
10531
a848cd7e
SC
10532
10533
10534
10535 echo "saving argument cache $wx_arg_cache_file"
10536 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10537
10538
10539
10540echo "$as_me:$LINENO: checking for toolkit" >&5
10541echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10542
10543# In Wine, we need to default to MSW, not GTK or MOTIF
10544if test "$wxUSE_WINE" = "yes"; then
10545 DEFAULT_DEFAULT_wxUSE_GTK=0
10546 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10547 DEFAULT_DEFAULT_wxUSE_MSW=1
10548 wxUSE_SHARED=no
10549fi
10550
f597b41c 10551
a848cd7e
SC
10552if test "$wxUSE_GUI" = "yes"; then
10553
10554 if test "$USE_BEOS" = 1; then
10555 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10556echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10557 { (exit 1); exit 1; }; }
10558 fi
10559
10560 if test "$TOOLKIT_GIVEN" = 1; then
10561 for toolkit in `echo $ALL_TOOLKITS`; do
10562 var=wxUSE_$toolkit
10563 eval "value=\$${var}"
f34ca037
MW
10564 if test "x$value" = "xno"; then
10565 eval "$var=0"
10566 elif test "x$value" != "x"; then
10567 eval "$var=1"
10568 fi
10569
10570 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10571 eval "wx${toolkit}_VERSION=$value"
10572 fi
a848cd7e
SC
10573 done
10574 else
10575 for toolkit in `echo $ALL_TOOLKITS`; do
10576 if test "$has_toolkit_in_cache" != 1; then
10577 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10578 else
10579 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10580
10581 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10582 if test "x$version" != "x"; then
10583 eval "wx${toolkit}_VERSION=$version"
10584 fi
a848cd7e
SC
10585 fi
10586 eval "wxUSE_$toolkit=\$${var}"
10587 done
10588 fi
10589
10590 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10591 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10592 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10593
10594 case "${host}" in
10595 *-pc-os2_emx | *-pc-os2-emx )
10596 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10597 esac
10598
10599 case "$NUM_TOOLKITS" in
10600 1)
10601 ;;
10602 0)
10603 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10604echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10605 { (exit 1); exit 1; }; }
10606 ;;
10607 *)
10608 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10609echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10610 { (exit 1); exit 1; }; }
10611 esac
10612
f34ca037
MW
10613 # to be removed when --disable-gtk2 isn't needed
10614 if test "x$wxUSE_GTK2" = "xyes"; then
10615 wxGTK_VERSION=2
10616 elif test "x$wxUSE_GTK2" = "xno"; then
10617 wxGTK_VERSION=1
10618 fi
10619
a848cd7e
SC
10620 for toolkit in `echo $ALL_TOOLKITS`; do
10621 var=wxUSE_$toolkit
10622 eval "value=\$${var}"
10623 if test "x$value" != x; then
10624 cache_var=CACHE_$toolkit
10625 eval "cache=\$${cache_var}"
10626 if test "$cache" = 1; then
10627 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10628 eval "version=\$wx${toolkit}_VERSION"
10629 if test "x$version" != "x"; then
10630 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10631 fi
a848cd7e
SC
10632 fi
10633 if test "$value" = 1; then
10634 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10635 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10636echo "${ECHO_T}$toolkit_echo" >&6
10637 fi
10638 fi
10639 done
10640else
10641 if test "x$host_alias" != "x"; then
10642 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10643echo "${ECHO_T}base ($host_alias hosted) only" >&6
10644 else
10645 echo "$as_me:$LINENO: result: base only" >&5
10646echo "${ECHO_T}base only" >&6
10647 fi
10648fi
10649
10650wants_win32=0
10651doesnt_want_win32=0
10652case "${host}" in
10653 *-*-cygwin*)
10654 if test "$wxUSE_MSW" = 1 ; then
10655 wants_win32=1
7275146d 10656 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10657 else
10658 doesnt_want_win32=1
10659 fi
10660 ;;
10661 *-*-mingw*)
10662 wants_win32=1
10663 ;;
10664esac
10665
10666if test "$wxUSE_WINE" = "yes"; then
10667 wants_win32=1
10668 CC=winegcc
10669 CXX=wineg++
a848cd7e
SC
10670 LDFLAGS_GUI="-mwindows"
10671fi
10672
10673if test "$wants_win32" = 1 ; then
10674 USE_UNIX=0
10675 USE_WIN32=1
10676 cat >>confdefs.h <<\_ACEOF
10677#define __WIN32__ 1
10678_ACEOF
10679
10680 cat >>confdefs.h <<\_ACEOF
10681#define __WIN95__ 1
10682_ACEOF
10683
10684 cat >>confdefs.h <<\_ACEOF
10685#define __WINDOWS__ 1
10686_ACEOF
10687
10688 cat >>confdefs.h <<\_ACEOF
10689#define __GNUWIN32__ 1
10690_ACEOF
10691
10692 cat >>confdefs.h <<\_ACEOF
10693#define STRICT 1
10694_ACEOF
10695
10696 cat >>confdefs.h <<\_ACEOF
10697#define WINVER 0x0400
10698_ACEOF
10699
10700fi
10701if test "$doesnt_want_win32" = 1 ; then
10702 USE_UNIX=1
10703 USE_WIN32=0
10704fi
10705
10706if test "$USE_UNIX" = 1 ; then
10707 wxUSE_UNIX=yes
10708 cat >>confdefs.h <<\_ACEOF
10709#define __UNIX__ 1
10710_ACEOF
10711
10712fi
10713
10714
10715cat >confcache <<\_ACEOF
10716# This file is a shell script that caches the results of configure
10717# tests run on this system so they can be shared between configure
10718# scripts and configure runs, see configure's option --config-cache.
10719# It is not useful on other systems. If it contains results you don't
10720# want to keep, you may remove or edit it.
10721#
10722# config.status only pays attention to the cache file if you give it
10723# the --recheck option to rerun configure.
10724#
10725# `ac_cv_env_foo' variables (set or unset) will be overridden when
10726# loading this file, other *unset* `ac_cv_foo' will be assigned the
10727# following values.
10728
10729_ACEOF
10730
10731# The following way of writing the cache mishandles newlines in values,
10732# but we know of no workaround that is simple, portable, and efficient.
10733# So, don't put newlines in cache variables' values.
10734# Ultrix sh set writes to stderr and can't be redirected directly,
10735# and sets the high bit in the cache file unless we assign to the vars.
10736{
10737 (set) 2>&1 |
10738 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10739 *ac_space=\ *)
10740 # `set' does not quote correctly, so add quotes (double-quote
10741 # substitution turns \\\\ into \\, and sed turns \\ into \).
10742 sed -n \
ac1cb8d3
VS
10743 "s/'/'\\\\''/g;
10744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10745 ;;
10746 *)
10747 # `set' quotes correctly as required by POSIX, so do not add quotes.
10748 sed -n \
ac1cb8d3 10749 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10750 ;;
10751 esac;
10752} |
10753 sed '
10754 t clear
10755 : clear
10756 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10757 t end
10758 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10759 : end' >>confcache
10760if diff $cache_file confcache >/dev/null 2>&1; then :; else
10761 if test -w $cache_file; then
10762 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10763 cat confcache >$cache_file
10764 else
10765 echo "not updating unwritable cache $cache_file"
10766 fi
10767fi
10768rm -f confcache
10769
a848cd7e 10770CFLAGS=${CFLAGS:=}
6dcfc289
DE
10771
10772
3006edc0 10773
6dcfc289 10774 ac_ext=c
a848cd7e
SC
10775ac_cpp='$CPP $CPPFLAGS'
10776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10778ac_compiler_gnu=$ac_cv_c_compiler_gnu
10779if test -n "$ac_tool_prefix"; then
10780 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10781set dummy ${ac_tool_prefix}gcc; ac_word=$2
10782echo "$as_me:$LINENO: checking for $ac_word" >&5
10783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10784if test "${ac_cv_prog_CC+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786else
10787 if test -n "$CC"; then
10788 ac_cv_prog_CC="$CC" # Let the user override the test.
10789else
10790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791for as_dir in $PATH
10792do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10799 break 2
10800 fi
10801done
10802done
10803
10804fi
10805fi
10806CC=$ac_cv_prog_CC
10807if test -n "$CC"; then
10808 echo "$as_me:$LINENO: result: $CC" >&5
10809echo "${ECHO_T}$CC" >&6
10810else
10811 echo "$as_me:$LINENO: result: no" >&5
10812echo "${ECHO_T}no" >&6
10813fi
10814
10815fi
10816if test -z "$ac_cv_prog_CC"; then
10817 ac_ct_CC=$CC
10818 # Extract the first word of "gcc", so it can be a program name with args.
10819set dummy gcc; ac_word=$2
10820echo "$as_me:$LINENO: checking for $ac_word" >&5
10821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824else
10825 if test -n "$ac_ct_CC"; then
10826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10827else
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_prog_ac_ct_CC="gcc"
10836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839done
10840done
10841
10842fi
10843fi
10844ac_ct_CC=$ac_cv_prog_ac_ct_CC
10845if test -n "$ac_ct_CC"; then
10846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10847echo "${ECHO_T}$ac_ct_CC" >&6
10848else
10849 echo "$as_me:$LINENO: result: no" >&5
10850echo "${ECHO_T}no" >&6
10851fi
10852
10853 CC=$ac_ct_CC
10854else
10855 CC="$ac_cv_prog_CC"
10856fi
10857
10858if test -z "$CC"; then
10859 if test -n "$ac_tool_prefix"; then
10860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10861set dummy ${ac_tool_prefix}cc; ac_word=$2
10862echo "$as_me:$LINENO: checking for $ac_word" >&5
10863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10864if test "${ac_cv_prog_CC+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866else
10867 if test -n "$CC"; then
10868 ac_cv_prog_CC="$CC" # Let the user override the test.
10869else
10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10877 ac_cv_prog_CC="${ac_tool_prefix}cc"
10878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10880 fi
10881done
10882done
10883
10884fi
10885fi
10886CC=$ac_cv_prog_CC
10887if test -n "$CC"; then
10888 echo "$as_me:$LINENO: result: $CC" >&5
10889echo "${ECHO_T}$CC" >&6
10890else
10891 echo "$as_me:$LINENO: result: no" >&5
10892echo "${ECHO_T}no" >&6
10893fi
10894
10895fi
10896if test -z "$ac_cv_prog_CC"; then
10897 ac_ct_CC=$CC
10898 # Extract the first word of "cc", so it can be a program name with args.
10899set dummy cc; ac_word=$2
10900echo "$as_me:$LINENO: checking for $ac_word" >&5
10901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10902if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904else
10905 if test -n "$ac_ct_CC"; then
10906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10907else
10908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909for as_dir in $PATH
10910do
10911 IFS=$as_save_IFS
10912 test -z "$as_dir" && as_dir=.
10913 for ac_exec_ext in '' $ac_executable_extensions; do
10914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10915 ac_cv_prog_ac_ct_CC="cc"
10916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 break 2
10918 fi
10919done
10920done
10921
10922fi
10923fi
10924ac_ct_CC=$ac_cv_prog_ac_ct_CC
10925if test -n "$ac_ct_CC"; then
10926 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10927echo "${ECHO_T}$ac_ct_CC" >&6
10928else
10929 echo "$as_me:$LINENO: result: no" >&5
10930echo "${ECHO_T}no" >&6
10931fi
10932
10933 CC=$ac_ct_CC
10934else
10935 CC="$ac_cv_prog_CC"
10936fi
10937
10938fi
10939if test -z "$CC"; then
10940 # Extract the first word of "cc", so it can be a program name with args.
10941set dummy cc; ac_word=$2
10942echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944if test "${ac_cv_prog_CC+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946else
10947 if test -n "$CC"; then
10948 ac_cv_prog_CC="$CC" # Let the user override the test.
10949else
10950 ac_prog_rejected=no
10951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952for as_dir in $PATH
10953do
10954 IFS=$as_save_IFS
10955 test -z "$as_dir" && as_dir=.
10956 for ac_exec_ext in '' $ac_executable_extensions; do
10957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10959 ac_prog_rejected=yes
10960 continue
10961 fi
10962 ac_cv_prog_CC="cc"
10963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 break 2
10965 fi
10966done
10967done
10968
10969if test $ac_prog_rejected = yes; then
10970 # We found a bogon in the path, so make sure we never use it.
10971 set dummy $ac_cv_prog_CC
10972 shift
10973 if test $# != 0; then
10974 # We chose a different compiler from the bogus one.
10975 # However, it has the same basename, so the bogon will be chosen
10976 # first if we set CC to just the basename; use the full file name.
10977 shift
10978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10979 fi
10980fi
10981fi
10982fi
10983CC=$ac_cv_prog_CC
10984if test -n "$CC"; then
10985 echo "$as_me:$LINENO: result: $CC" >&5
10986echo "${ECHO_T}$CC" >&6
10987else
10988 echo "$as_me:$LINENO: result: no" >&5
10989echo "${ECHO_T}no" >&6
10990fi
10991
10992fi
10993if test -z "$CC"; then
10994 if test -n "$ac_tool_prefix"; then
10995 for ac_prog in cl
10996 do
10997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10999echo "$as_me:$LINENO: checking for $ac_word" >&5
11000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11001if test "${ac_cv_prog_CC+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003else
11004 if test -n "$CC"; then
11005 ac_cv_prog_CC="$CC" # Let the user override the test.
11006else
11007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008for as_dir in $PATH
11009do
11010 IFS=$as_save_IFS
11011 test -z "$as_dir" && as_dir=.
11012 for ac_exec_ext in '' $ac_executable_extensions; do
11013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 break 2
11017 fi
11018done
11019done
11020
11021fi
11022fi
11023CC=$ac_cv_prog_CC
11024if test -n "$CC"; then
11025 echo "$as_me:$LINENO: result: $CC" >&5
11026echo "${ECHO_T}$CC" >&6
11027else
11028 echo "$as_me:$LINENO: result: no" >&5
11029echo "${ECHO_T}no" >&6
11030fi
11031
11032 test -n "$CC" && break
11033 done
11034fi
11035if test -z "$CC"; then
11036 ac_ct_CC=$CC
11037 for ac_prog in cl
11038do
11039 # Extract the first word of "$ac_prog", so it can be a program name with args.
11040set dummy $ac_prog; ac_word=$2
11041echo "$as_me:$LINENO: checking for $ac_word" >&5
11042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11043if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045else
11046 if test -n "$ac_ct_CC"; then
11047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11048else
11049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11050for as_dir in $PATH
11051do
11052 IFS=$as_save_IFS
11053 test -z "$as_dir" && as_dir=.
11054 for ac_exec_ext in '' $ac_executable_extensions; do
11055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11056 ac_cv_prog_ac_ct_CC="$ac_prog"
11057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11058 break 2
11059 fi
11060done
11061done
11062
11063fi
11064fi
11065ac_ct_CC=$ac_cv_prog_ac_ct_CC
11066if test -n "$ac_ct_CC"; then
11067 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11068echo "${ECHO_T}$ac_ct_CC" >&6
11069else
11070 echo "$as_me:$LINENO: result: no" >&5
11071echo "${ECHO_T}no" >&6
11072fi
11073
11074 test -n "$ac_ct_CC" && break
11075done
11076
11077 CC=$ac_ct_CC
11078fi
11079
11080fi
11081
11082
11083test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11084See \`config.log' for more details." >&5
11085echo "$as_me: error: no acceptable C compiler found in \$PATH
11086See \`config.log' for more details." >&2;}
11087 { (exit 1); exit 1; }; }
11088
11089# Provide some information about the compiler.
11090echo "$as_me:$LINENO:" \
11091 "checking for C compiler version" >&5
11092ac_compiler=`set X $ac_compile; echo $2`
11093{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11094 (eval $ac_compiler --version </dev/null >&5) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }
11098{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11099 (eval $ac_compiler -v </dev/null >&5) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }
11103{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11104 (eval $ac_compiler -V </dev/null >&5) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }
11108
11109cat >conftest.$ac_ext <<_ACEOF
11110/* confdefs.h. */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h. */
11115
11116int
11117main ()
11118{
11119
11120 ;
11121 return 0;
11122}
11123_ACEOF
11124ac_clean_files_save=$ac_clean_files
11125ac_clean_files="$ac_clean_files a.out a.exe b.out"
11126# Try to create an executable without -o first, disregard a.out.
11127# It will help us diagnose broken compilers, and finding out an intuition
11128# of exeext.
ac1cb8d3
VS
11129echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11130echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11131ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11132if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11133 (eval $ac_link_default) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; then
11137 # Find the output, starting from the most likely. This scheme is
11138# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11139# resort.
11140
11141# Be careful to initialize this variable, since it used to be cached.
11142# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11143ac_cv_exeext=
11144# b.out is created by i960 compilers.
11145for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11146do
11147 test -f "$ac_file" || continue
11148 case $ac_file in
11149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11150 ;;
a848cd7e 11151 conftest.$ac_ext )
ac1cb8d3
VS
11152 # This is the source file.
11153 ;;
a848cd7e 11154 [ab].out )
ac1cb8d3
VS
11155 # We found the default executable, but exeext='' is most
11156 # certainly right.
11157 break;;
a848cd7e 11158 *.* )
ac1cb8d3
VS
11159 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11160 # FIXME: I believe we export ac_cv_exeext for Libtool,
11161 # but it would be cool to find out if it's true. Does anybody
11162 # maintain Libtool? --akim.
11163 export ac_cv_exeext
11164 break;;
a848cd7e 11165 * )
ac1cb8d3 11166 break;;
a848cd7e
SC
11167 esac
11168done
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11174See \`config.log' for more details." >&5
11175echo "$as_me: error: C compiler cannot create executables
11176See \`config.log' for more details." >&2;}
11177 { (exit 77); exit 77; }; }
11178fi
11179
11180ac_exeext=$ac_cv_exeext
11181echo "$as_me:$LINENO: result: $ac_file" >&5
11182echo "${ECHO_T}$ac_file" >&6
11183
11184# Check the compiler produces executables we can run. If not, either
11185# the compiler is broken, or we cross compile.
11186echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11187echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11188# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11189# If not cross compiling, check that we can run a simple program.
11190if test "$cross_compiling" != yes; then
11191 if { ac_try='./$ac_file'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 cross_compiling=no
11198 else
11199 if test "$cross_compiling" = maybe; then
11200 cross_compiling=yes
11201 else
11202 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11203If you meant to cross compile, use \`--host'.
11204See \`config.log' for more details." >&5
11205echo "$as_me: error: cannot run C compiled programs.
11206If you meant to cross compile, use \`--host'.
11207See \`config.log' for more details." >&2;}
11208 { (exit 1); exit 1; }; }
11209 fi
11210 fi
11211fi
11212echo "$as_me:$LINENO: result: yes" >&5
11213echo "${ECHO_T}yes" >&6
11214
11215rm -f a.out a.exe conftest$ac_cv_exeext b.out
11216ac_clean_files=$ac_clean_files_save
11217# Check the compiler produces executables we can run. If not, either
11218# the compiler is broken, or we cross compile.
11219echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11220echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11221echo "$as_me:$LINENO: result: $cross_compiling" >&5
11222echo "${ECHO_T}$cross_compiling" >&6
11223
11224echo "$as_me:$LINENO: checking for suffix of executables" >&5
11225echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11227 (eval $ac_link) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; then
11231 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11232# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11233# work properly (i.e., refer to `conftest.exe'), while it won't with
11234# `rm'.
11235for ac_file in conftest.exe conftest conftest.*; do
11236 test -f "$ac_file" || continue
11237 case $ac_file in
11238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11240 export ac_cv_exeext
11241 break;;
a848cd7e
SC
11242 * ) break;;
11243 esac
11244done
11245else
11246 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11247See \`config.log' for more details." >&5
11248echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11249See \`config.log' for more details." >&2;}
11250 { (exit 1); exit 1; }; }
11251fi
11252
11253rm -f conftest$ac_cv_exeext
11254echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11255echo "${ECHO_T}$ac_cv_exeext" >&6
11256
11257rm -f conftest.$ac_ext
11258EXEEXT=$ac_cv_exeext
11259ac_exeext=$EXEEXT
11260echo "$as_me:$LINENO: checking for suffix of object files" >&5
11261echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11262if test "${ac_cv_objext+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11264else
11265 cat >conftest.$ac_ext <<_ACEOF
11266/* confdefs.h. */
11267_ACEOF
11268cat confdefs.h >>conftest.$ac_ext
11269cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h. */
11271
11272int
11273main ()
11274{
11275
11276 ;
11277 return 0;
11278}
11279_ACEOF
11280rm -f conftest.o conftest.obj
11281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11282 (eval $ac_compile) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; then
11286 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11287 case $ac_file in
11288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11290 break;;
11291 esac
11292done
11293else
11294 echo "$as_me: failed program was:" >&5
11295sed 's/^/| /' conftest.$ac_ext >&5
11296
11297{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11298See \`config.log' for more details." >&5
11299echo "$as_me: error: cannot compute suffix of object files: cannot compile
11300See \`config.log' for more details." >&2;}
11301 { (exit 1); exit 1; }; }
11302fi
11303
11304rm -f conftest.$ac_cv_objext conftest.$ac_ext
11305fi
11306echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11307echo "${ECHO_T}$ac_cv_objext" >&6
11308OBJEXT=$ac_cv_objext
11309ac_objext=$OBJEXT
11310echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11311echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11312if test "${ac_cv_c_compiler_gnu+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
11315 cat >conftest.$ac_ext <<_ACEOF
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
11321
11322int
11323main ()
11324{
11325#ifndef __GNUC__
11326 choke me
11327#endif
11328
11329 ;
11330 return 0;
11331}
11332_ACEOF
11333rm -f conftest.$ac_objext
11334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11335 (eval $ac_compile) 2>conftest.er1
a848cd7e 11336 ac_status=$?
ac1cb8d3
VS
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
a848cd7e
SC
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
dee1a63f
MB
11342 { ac_try='test -z "$ac_c_werror_flag"
11343 || test ! -s conftest.err'
ac1cb8d3
VS
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_compiler_gnu=yes
11356else
11357 echo "$as_me: failed program was:" >&5
11358sed 's/^/| /' conftest.$ac_ext >&5
11359
11360ac_compiler_gnu=no
11361fi
ac1cb8d3 11362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11363ac_cv_c_compiler_gnu=$ac_compiler_gnu
11364
11365fi
11366echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11367echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11368GCC=`test $ac_compiler_gnu = yes && echo yes`
11369ac_test_CFLAGS=${CFLAGS+set}
11370ac_save_CFLAGS=$CFLAGS
1c14217d 11371CFLAGS="-g"
a848cd7e
SC
11372echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11373echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11374if test "${ac_cv_prog_cc_g+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376else
11377 cat >conftest.$ac_ext <<_ACEOF
11378/* confdefs.h. */
11379_ACEOF
11380cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h. */
11383
11384int
11385main ()
11386{
11387
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392rm -f conftest.$ac_objext
11393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11394 (eval $ac_compile) 2>conftest.er1
a848cd7e 11395 ac_status=$?
ac1cb8d3
VS
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
a848cd7e
SC
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
dee1a63f
MB
11401 { ac_try='test -z "$ac_c_werror_flag"
11402 || test ! -s conftest.err'
ac1cb8d3
VS
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
11414 ac_cv_prog_cc_g=yes
11415else
11416 echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
11418
11419ac_cv_prog_cc_g=no
11420fi
ac1cb8d3 11421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11422fi
11423echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11424echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11425if test "$ac_test_CFLAGS" = set; then
11426 CFLAGS=$ac_save_CFLAGS
11427elif test $ac_cv_prog_cc_g = yes; then
11428 if test "$GCC" = yes; then
11429 CFLAGS="-g -O2"
11430 else
11431 CFLAGS="-g"
11432 fi
11433else
11434 if test "$GCC" = yes; then
11435 CFLAGS="-O2"
11436 else
11437 CFLAGS=
11438 fi
11439fi
11440echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11441echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11442if test "${ac_cv_prog_cc_stdc+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444else
11445 ac_cv_prog_cc_stdc=no
11446ac_save_CC=$CC
11447cat >conftest.$ac_ext <<_ACEOF
11448/* confdefs.h. */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h. */
11453#include <stdarg.h>
11454#include <stdio.h>
11455#include <sys/types.h>
11456#include <sys/stat.h>
11457/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11458struct buf { int x; };
11459FILE * (*rcsopen) (struct buf *, struct stat *, int);
11460static char *e (p, i)
11461 char **p;
11462 int i;
11463{
11464 return p[i];
11465}
11466static char *f (char * (*g) (char **, int), char **p, ...)
11467{
11468 char *s;
11469 va_list v;
11470 va_start (v,p);
11471 s = g (p, va_arg (v,int));
11472 va_end (v);
11473 return s;
11474}
ac1cb8d3
VS
11475
11476/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11477 function prototypes and stuff, but not '\xHH' hex character constants.
11478 These don't provoke an error unfortunately, instead are silently treated
11479 as 'x'. The following induces an error, until -std1 is added to get
11480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11481 array size at least. It's necessary to write '\x00'==0 to get something
11482 that's true only with -std1. */
11483int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11484
a848cd7e
SC
11485int test (int i, double x);
11486struct s1 {int (*f) (int a);};
11487struct s2 {int (*f) (double a);};
11488int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11489int argc;
11490char **argv;
11491int
11492main ()
11493{
11494return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11495 ;
11496 return 0;
11497}
11498_ACEOF
11499# Don't try gcc -ansi; that turns off useful extensions and
11500# breaks some systems' header files.
11501# AIX -qlanglvl=ansi
11502# Ultrix and OSF/1 -std1
11503# HP-UX 10.20 and later -Ae
11504# HP-UX older versions -Aa -D_HPUX_SOURCE
11505# SVR4 -Xc -D__EXTENSIONS__
11506for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11507do
11508 CC="$ac_save_CC $ac_arg"
11509 rm -f conftest.$ac_objext
11510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11511 (eval $ac_compile) 2>conftest.er1
a848cd7e 11512 ac_status=$?
ac1cb8d3
VS
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
a848cd7e
SC
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
dee1a63f
MB
11518 { ac_try='test -z "$ac_c_werror_flag"
11519 || test ! -s conftest.err'
ac1cb8d3
VS
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 ac_cv_prog_cc_stdc=$ac_arg
11532break
11533else
11534 echo "$as_me: failed program was:" >&5
11535sed 's/^/| /' conftest.$ac_ext >&5
11536
11537fi
ac1cb8d3 11538rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11539done
11540rm -f conftest.$ac_ext conftest.$ac_objext
11541CC=$ac_save_CC
11542
11543fi
11544
11545case "x$ac_cv_prog_cc_stdc" in
11546 x|xno)
11547 echo "$as_me:$LINENO: result: none needed" >&5
11548echo "${ECHO_T}none needed" >&6 ;;
11549 *)
11550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11551echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11552 CC="$CC $ac_cv_prog_cc_stdc" ;;
11553esac
11554
11555# Some people use a C++ compiler to compile C. Since we use `exit',
11556# in C++ we need to declare it. In case someone uses the same compiler
11557# for both compiling C and C++ we need to have the C++ compiler decide
11558# the declaration of exit, since it's the most demanding environment.
11559cat >conftest.$ac_ext <<_ACEOF
11560#ifndef __cplusplus
11561 choke me
11562#endif
11563_ACEOF
11564rm -f conftest.$ac_objext
11565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11566 (eval $ac_compile) 2>conftest.er1
a848cd7e 11567 ac_status=$?
ac1cb8d3
VS
11568 grep -v '^ *+' conftest.er1 >conftest.err
11569 rm -f conftest.er1
11570 cat conftest.err >&5
a848cd7e
SC
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } &&
dee1a63f
MB
11573 { ac_try='test -z "$ac_c_werror_flag"
11574 || test ! -s conftest.err'
ac1cb8d3
VS
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 for ac_declaration in \
ac1cb8d3 11587 '' \
a848cd7e
SC
11588 'extern "C" void std::exit (int) throw (); using std::exit;' \
11589 'extern "C" void std::exit (int); using std::exit;' \
11590 'extern "C" void exit (int) throw ();' \
11591 'extern "C" void exit (int);' \
11592 'void exit (int);'
11593do
11594 cat >conftest.$ac_ext <<_ACEOF
11595/* confdefs.h. */
11596_ACEOF
11597cat confdefs.h >>conftest.$ac_ext
11598cat >>conftest.$ac_ext <<_ACEOF
11599/* end confdefs.h. */
de59c161 11600$ac_declaration
ac1cb8d3 11601#include <stdlib.h>
a848cd7e
SC
11602int
11603main ()
11604{
11605exit (42);
11606 ;
11607 return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext
11611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11612 (eval $ac_compile) 2>conftest.er1
a848cd7e 11613 ac_status=$?
ac1cb8d3
VS
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
a848cd7e
SC
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
dee1a63f
MB
11619 { ac_try='test -z "$ac_c_werror_flag"
11620 || test ! -s conftest.err'
ac1cb8d3
VS
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; } &&
11626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 :
11633else
11634 echo "$as_me: failed program was:" >&5
11635sed 's/^/| /' conftest.$ac_ext >&5
11636
11637continue
11638fi
ac1cb8d3 11639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11640 cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h. */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h. */
11646$ac_declaration
11647int
11648main ()
11649{
11650exit (42);
11651 ;
11652 return 0;
11653}
11654_ACEOF
11655rm -f conftest.$ac_objext
11656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11657 (eval $ac_compile) 2>conftest.er1
a848cd7e 11658 ac_status=$?
ac1cb8d3
VS
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
a848cd7e
SC
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
dee1a63f
MB
11664 { ac_try='test -z "$ac_c_werror_flag"
11665 || test ! -s conftest.err'
ac1cb8d3
VS
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 break
11678else
11679 echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
11681
11682fi
ac1cb8d3 11683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11684done
11685rm -f conftest*
11686if test -n "$ac_declaration"; then
11687 echo '#ifdef __cplusplus' >>confdefs.h
11688 echo $ac_declaration >>confdefs.h
11689 echo '#endif' >>confdefs.h
11690fi
11691
11692else
11693 echo "$as_me: failed program was:" >&5
11694sed 's/^/| /' conftest.$ac_ext >&5
11695
11696fi
ac1cb8d3 11697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11698ac_ext=c
11699ac_cpp='$CPP $CPPFLAGS'
11700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11702ac_compiler_gnu=$ac_cv_c_compiler_gnu
11703
ab0ad5f1
VZ
11704
11705
11706 ac_ext=c
11707ac_cpp='$CPP $CPPFLAGS'
11708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11710ac_compiler_gnu=$ac_cv_c_compiler_gnu
11711
11712 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11713echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11714if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
11717 cat >conftest.$ac_ext <<_ACEOF
11718/* confdefs.h. */
11719_ACEOF
11720cat confdefs.h >>conftest.$ac_ext
11721cat >>conftest.$ac_ext <<_ACEOF
11722/* end confdefs.h. */
11723
11724int
11725main ()
11726{
11727
11728 #ifndef __INTEL_COMPILER
11729 choke me
11730 #endif
11731
11732 ;
11733 return 0;
11734}
11735_ACEOF
11736rm -f conftest.$ac_objext
11737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11738 (eval $ac_compile) 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
dee1a63f
MB
11745 { ac_try='test -z "$ac_c_werror_flag"
11746 || test ! -s conftest.err'
ab0ad5f1
VZ
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; } &&
11752 { ac_try='test -s conftest.$ac_objext'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11759else
11760 echo "$as_me: failed program was:" >&5
11761sed 's/^/| /' conftest.$ac_ext >&5
11762
11763bakefile_cv_c_compiler___INTEL_COMPILER=no
11764
11765fi
11766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11767
11768
11769fi
11770echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11771echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11772 ac_ext=c
11773ac_cpp='$CPP $CPPFLAGS'
11774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11776ac_compiler_gnu=$ac_cv_c_compiler_gnu
11777
11778 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11779 :; INTELCC=yes
11780 else
11781 :;
11782 fi
11783
11784
11785 if test "x$GCC" != "xyes"; then
3006edc0
VZ
11786 if test "xCC" = "xC"; then
11787 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 11788echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
dee1a63f 11789if test "${wx_cv_c_exto+set}" = set; then
480ccd21
DE
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 cat >conftest.$ac_ext <<_ACEOF
11793/* confdefs.h. */
11794_ACEOF
11795cat confdefs.h >>conftest.$ac_ext
11796cat >>conftest.$ac_ext <<_ACEOF
11797/* end confdefs.h. */
11798
11799int
11800main ()
11801{
11802
11803 ;
11804 return 0;
11805}
11806_ACEOF
11807rm -f conftest.$ac_objext conftest.$ac_ext.o
11808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; then
11813 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11814 case $ac_file in
11815 conftest.$ac_ext.o)
dee1a63f 11816 wx_cv_c_exto="-ext o"
480ccd21
DE
11817 ;;
11818 *)
11819 ;;
11820 esac
11821done
11822else
11823 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11824See \`config.log' for more details." >&5
11825echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11826See \`config.log' for more details." >&2;}
11827 { (exit 1); exit 1; }; }
11828
11829fi
11830
11831rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11832
11833fi
dee1a63f
MB
11834echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11835echo "${ECHO_T}$wx_cv_c_exto" >&6
11836if test "x$wx_cv_c_exto" '!=' "x"; then
480ccd21 11837 if test "c" = "c"; then
dee1a63f 11838 CFLAGS="$wx_cv_c_exto $CFLAGS"
480ccd21
DE
11839 fi
11840 if test "c" = "cxx"; then
dee1a63f 11841 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
480ccd21
DE
11842 fi
11843fi
11844
dee1a63f 11845 if test "x$wx_cv_c_exto" '!=' "x"; then
3006edc0
VZ
11846 unset ac_cv_prog_cc_g
11847 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11848ac_save_CFLAGS=$CFLAGS
1c14217d 11849CFLAGS="-g"
480ccd21
DE
11850echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11851echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11852if test "${ac_cv_prog_cc_g+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854else
11855 cat >conftest.$ac_ext <<_ACEOF
11856/* confdefs.h. */
11857_ACEOF
11858cat confdefs.h >>conftest.$ac_ext
11859cat >>conftest.$ac_ext <<_ACEOF
11860/* end confdefs.h. */
11861
11862int
11863main ()
11864{
11865
11866 ;
11867 return 0;
11868}
11869_ACEOF
11870rm -f conftest.$ac_objext
11871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11872 (eval $ac_compile) 2>conftest.er1
11873 ac_status=$?
11874 grep -v '^ *+' conftest.er1 >conftest.err
11875 rm -f conftest.er1
11876 cat conftest.err >&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } &&
dee1a63f
MB
11879 { ac_try='test -z "$ac_c_werror_flag"
11880 || test ! -s conftest.err'
480ccd21
DE
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; } &&
11886 { ac_try='test -s conftest.$ac_objext'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 ac_cv_prog_cc_g=yes
11893else
11894 echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897ac_cv_prog_cc_g=no
11898fi
11899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11900fi
11901echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11902echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11903if test "$ac_test_CFLAGS" = set; then
11904 CFLAGS=$ac_save_CFLAGS
11905elif test $ac_cv_prog_cc_g = yes; then
11906 if test "$GCC" = yes; then
11907 CFLAGS="-g -O2"
11908 else
11909 CFLAGS="-g"
11910 fi
11911else
11912 if test "$GCC" = yes; then
11913 CFLAGS="-O2"
11914 else
11915 CFLAGS=
11916 fi
11917fi
3006edc0 11918 fi
ab0ad5f1 11919 fi
3006edc0
VZ
11920
11921 case `uname -s` in
11922 AIX*)
11923 ac_ext=c
11924ac_cpp='$CPP $CPPFLAGS'
11925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11927ac_compiler_gnu=$ac_cv_c_compiler_gnu
11928
11929echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11930echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
dee1a63f 11931if test "${wx_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933else
11934 cat >conftest.$ac_ext <<_ACEOF
11935/* confdefs.h. */
11936_ACEOF
11937cat confdefs.h >>conftest.$ac_ext
11938cat >>conftest.$ac_ext <<_ACEOF
11939/* end confdefs.h. */
11940
11941int
11942main ()
11943{
11944#ifndef __xlC__
11945 choke me
11946#endif
11947
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952rm -f conftest.$ac_objext
11953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11954 (eval $ac_compile) 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
dee1a63f
MB
11961 { ac_try='test -z "$ac_c_werror_flag"
11962 || test ! -s conftest.err'
3006edc0
VZ
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest.$ac_objext'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
dee1a63f 11974 wx_compiler_xlc=yes
3006edc0
VZ
11975else
11976 echo "$as_me: failed program was:" >&5
11977sed 's/^/| /' conftest.$ac_ext >&5
11978
dee1a63f 11979wx_compiler_xlc=no
3006edc0
VZ
11980fi
11981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dee1a63f 11982 wx_cv_c_compiler_xlc=$wx_compiler_xlc
3006edc0
VZ
11983
11984fi
dee1a63f
MB
11985echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11986echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
3006edc0 11987
dee1a63f 11988XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
11989ac_ext=c
11990ac_cpp='$CPP $CPPFLAGS'
11991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993ac_compiler_gnu=$ac_cv_c_compiler_gnu
11994
11995
11996 ;;
11997
11998 Darwin)
11999 ac_ext=c
95986553
DE
12000ac_cpp='$CPP $CPPFLAGS'
12001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12003ac_compiler_gnu=$ac_cv_c_compiler_gnu
12004
12005echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12006echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12007if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009else
12010 cat >conftest.$ac_ext <<_ACEOF
12011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h. */
12016
12017int
12018main ()
12019{
12020#ifndef __MWERKS__
12021 choke me
12022#endif
12023
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext
12029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
dee1a63f
MB
12037 { ac_try='test -z "$ac_c_werror_flag"
12038 || test ! -s conftest.err'
95986553
DE
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 bakefile_compiler_mwerks=yes
12051else
12052 echo "$as_me: failed program was:" >&5
12053sed 's/^/| /' conftest.$ac_ext >&5
12054
12055bakefile_compiler_mwerks=no
12056fi
12057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12058 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12059
12060fi
12061echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12062echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12063
0e6fa1d9 12064MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12065ac_ext=c
12066ac_cpp='$CPP $CPPFLAGS'
12067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12069ac_compiler_gnu=$ac_cv_c_compiler_gnu
12070
12071
3006edc0 12072 ac_ext=c
9273ffba
DE
12073ac_cpp='$CPP $CPPFLAGS'
12074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12076ac_compiler_gnu=$ac_cv_c_compiler_gnu
12077
12078echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12079echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
dee1a63f 12080if test "${wx_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082else
12083 cat >conftest.$ac_ext <<_ACEOF
12084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
12089
12090int
12091main ()
12092{
12093#ifndef __xlC__
12094 choke me
12095#endif
12096
12097 ;
12098 return 0;
12099}
12100_ACEOF
12101rm -f conftest.$ac_objext
12102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103 (eval $ac_compile) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
dee1a63f
MB
12110 { ac_try='test -z "$ac_c_werror_flag"
12111 || test ! -s conftest.err'
9273ffba
DE
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try='test -s conftest.$ac_objext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
dee1a63f 12123 wx_compiler_xlc=yes
9273ffba
DE
12124else
12125 echo "$as_me: failed program was:" >&5
12126sed 's/^/| /' conftest.$ac_ext >&5
12127
dee1a63f 12128wx_compiler_xlc=no
9273ffba
DE
12129fi
12130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dee1a63f 12131 wx_cv_c_compiler_xlc=$wx_compiler_xlc
9273ffba
DE
12132
12133fi
dee1a63f
MB
12134echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
12135echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
9273ffba 12136
dee1a63f 12137XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12138ac_ext=c
12139ac_cpp='$CPP $CPPFLAGS'
12140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12142ac_compiler_gnu=$ac_cv_c_compiler_gnu
12143
12144
3006edc0
VZ
12145 ;;
12146
12147 IRIX*)
a848cd7e 12148
6dcfc289 12149
0ad5d837
VZ
12150 ac_ext=c
12151ac_cpp='$CPP $CPPFLAGS'
12152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154ac_compiler_gnu=$ac_cv_c_compiler_gnu
12155
12156 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12157echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12158if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12160else
12161 cat >conftest.$ac_ext <<_ACEOF
12162/* confdefs.h. */
12163_ACEOF
12164cat confdefs.h >>conftest.$ac_ext
12165cat >>conftest.$ac_ext <<_ACEOF
12166/* end confdefs.h. */
12167
12168int
12169main ()
12170{
12171
12172 #ifndef _SGI_COMPILER_VERSION
12173 choke me
12174 #endif
12175
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
dee1a63f
MB
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
0ad5d837
VZ
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
12207bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12208
12209fi
12210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12211
12212
12213fi
12214echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12215echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12216 ac_ext=c
12217ac_cpp='$CPP $CPPFLAGS'
12218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12220ac_compiler_gnu=$ac_cv_c_compiler_gnu
12221
12222 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12223 :; SGICC=yes
12224 else
12225 :;
12226 fi
12227
12228
3006edc0
VZ
12229 ;;
12230
dee1a63f 12231 SunOS)
3006edc0
VZ
12232
12233
12234 ac_ext=c
12235ac_cpp='$CPP $CPPFLAGS'
12236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12238ac_compiler_gnu=$ac_cv_c_compiler_gnu
12239
dee1a63f
MB
12240 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12241echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12242if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
3006edc0
VZ
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244else
12245 cat >conftest.$ac_ext <<_ACEOF
12246/* confdefs.h. */
12247_ACEOF
12248cat confdefs.h >>conftest.$ac_ext
12249cat >>conftest.$ac_ext <<_ACEOF
12250/* end confdefs.h. */
12251
12252int
12253main ()
12254{
12255
dee1a63f 12256 #ifndef __SUNPRO_C
3006edc0
VZ
12257 choke me
12258 #endif
12259
12260 ;
12261 return 0;
12262}
12263_ACEOF
12264rm -f conftest.$ac_objext
12265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12266 (eval $ac_compile) 2>conftest.er1
12267 ac_status=$?
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
dee1a63f
MB
12273 { ac_try='test -z "$ac_c_werror_flag"
12274 || test ! -s conftest.err'
3006edc0
VZ
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; } &&
12280 { ac_try='test -s conftest.$ac_objext'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; }; then
dee1a63f 12286 bakefile_cv_c_compiler___SUNPRO_C=yes
3006edc0
VZ
12287else
12288 echo "$as_me: failed program was:" >&5
12289sed 's/^/| /' conftest.$ac_ext >&5
12290
dee1a63f 12291bakefile_cv_c_compiler___SUNPRO_C=no
3006edc0
VZ
12292
12293fi
12294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12295
12296
12297fi
dee1a63f
MB
12298echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12299echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
3006edc0
VZ
12300 ac_ext=c
12301ac_cpp='$CPP $CPPFLAGS'
12302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12304ac_compiler_gnu=$ac_cv_c_compiler_gnu
12305
dee1a63f
MB
12306 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12307 :; SUNCC=yes
a1aa0349
VZ
12308 else
12309 :;
12310 fi
12311
12312
12313 ;;
12314
dee1a63f 12315 HP-UX*)
a1aa0349
VZ
12316
12317
12318 ac_ext=c
12319ac_cpp='$CPP $CPPFLAGS'
12320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12322ac_compiler_gnu=$ac_cv_c_compiler_gnu
12323
dee1a63f
MB
12324 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12325echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12326if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
a1aa0349
VZ
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328else
12329 cat >conftest.$ac_ext <<_ACEOF
12330/* confdefs.h. */
12331_ACEOF
12332cat confdefs.h >>conftest.$ac_ext
12333cat >>conftest.$ac_ext <<_ACEOF
12334/* end confdefs.h. */
12335
12336int
12337main ()
12338{
12339
dee1a63f 12340 #ifndef __HP_cc
a1aa0349
VZ
12341 choke me
12342 #endif
12343
12344 ;
12345 return 0;
12346}
12347_ACEOF
12348rm -f conftest.$ac_objext
12349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350 (eval $ac_compile) 2>conftest.er1
12351 ac_status=$?
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
dee1a63f
MB
12357 { ac_try='test -z "$ac_c_werror_flag"
12358 || test ! -s conftest.err'
a1aa0349
VZ
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
dee1a63f 12370 bakefile_cv_c_compiler___HP_cc=yes
a1aa0349
VZ
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
dee1a63f 12375bakefile_cv_c_compiler___HP_cc=no
a1aa0349
VZ
12376
12377fi
12378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12379
12380
12381fi
dee1a63f
MB
12382echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12383echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
a1aa0349
VZ
12384 ac_ext=c
12385ac_cpp='$CPP $CPPFLAGS'
12386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388ac_compiler_gnu=$ac_cv_c_compiler_gnu
12389
dee1a63f
MB
12390 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12391 :; HPCC=yes
3006edc0
VZ
12392 else
12393 :;
12394 fi
12395
12396
12397 ;;
12398 esac
ab0ad5f1 12399 fi
a9e5b1f0
MW
12400
12401
3006edc0 12402
a848cd7e
SC
12403ac_ext=c
12404ac_cpp='$CPP $CPPFLAGS'
12405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12407ac_compiler_gnu=$ac_cv_c_compiler_gnu
12408echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12409echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12410# On Suns, sometimes $CPP names a directory.
12411if test -n "$CPP" && test -d "$CPP"; then
12412 CPP=
12413fi
12414if test -z "$CPP"; then
12415 if test "${ac_cv_prog_CPP+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417else
12418 # Double quotes because CPP needs to be expanded
12419 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12420 do
12421 ac_preproc_ok=false
12422for ac_c_preproc_warn_flag in '' yes
12423do
12424 # Use a header file that comes with gcc, so configuring glibc
12425 # with a fresh cross-compiler works.
12426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427 # <limits.h> exists even on freestanding compilers.
12428 # On the NeXT, cc -E runs the code through the compiler's parser,
12429 # not just through cpp. "Syntax error" is here to catch this case.
12430 cat >conftest.$ac_ext <<_ACEOF
12431/* confdefs.h. */
12432_ACEOF
12433cat confdefs.h >>conftest.$ac_ext
12434cat >>conftest.$ac_ext <<_ACEOF
12435/* end confdefs.h. */
12436#ifdef __STDC__
12437# include <limits.h>
12438#else
12439# include <assert.h>
12440#endif
ac1cb8d3 12441 Syntax error
a848cd7e
SC
12442_ACEOF
12443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } >/dev/null; then
12451 if test -s conftest.err; then
12452 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12454 else
12455 ac_cpp_err=
12456 fi
12457else
12458 ac_cpp_err=yes
12459fi
12460if test -z "$ac_cpp_err"; then
12461 :
12462else
12463 echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 # Broken: fails on valid input.
12467continue
12468fi
12469rm -f conftest.err conftest.$ac_ext
12470
12471 # OK, works on sane cases. Now check whether non-existent headers
12472 # can be detected and how.
12473 cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h. */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h. */
12479#include <ac_nonexistent.h>
12480_ACEOF
12481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12483 ac_status=$?
12484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } >/dev/null; then
12489 if test -s conftest.err; then
12490 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12492 else
12493 ac_cpp_err=
12494 fi
12495else
12496 ac_cpp_err=yes
12497fi
12498if test -z "$ac_cpp_err"; then
12499 # Broken: success on invalid input.
12500continue
12501else
12502 echo "$as_me: failed program was:" >&5
12503sed 's/^/| /' conftest.$ac_ext >&5
12504
12505 # Passes both tests.
12506ac_preproc_ok=:
12507break
12508fi
12509rm -f conftest.err conftest.$ac_ext
12510
12511done
12512# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12513rm -f conftest.err conftest.$ac_ext
12514if $ac_preproc_ok; then
12515 break
12516fi
12517
12518 done
12519 ac_cv_prog_CPP=$CPP
12520
12521fi
12522 CPP=$ac_cv_prog_CPP
12523else
12524 ac_cv_prog_CPP=$CPP
12525fi
12526echo "$as_me:$LINENO: result: $CPP" >&5
12527echo "${ECHO_T}$CPP" >&6
12528ac_preproc_ok=false
12529for ac_c_preproc_warn_flag in '' yes
12530do
12531 # Use a header file that comes with gcc, so configuring glibc
12532 # with a fresh cross-compiler works.
12533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12534 # <limits.h> exists even on freestanding compilers.
12535 # On the NeXT, cc -E runs the code through the compiler's parser,
12536 # not just through cpp. "Syntax error" is here to catch this case.
12537 cat >conftest.$ac_ext <<_ACEOF
12538/* confdefs.h. */
12539_ACEOF
12540cat confdefs.h >>conftest.$ac_ext
12541cat >>conftest.$ac_ext <<_ACEOF
12542/* end confdefs.h. */
12543#ifdef __STDC__
12544# include <limits.h>
12545#else
12546# include <assert.h>
12547#endif
ac1cb8d3 12548 Syntax error
a848cd7e
SC
12549_ACEOF
12550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } >/dev/null; then
12558 if test -s conftest.err; then
12559 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12561 else
12562 ac_cpp_err=
12563 fi
12564else
12565 ac_cpp_err=yes
12566fi
12567if test -z "$ac_cpp_err"; then
12568 :
12569else
12570 echo "$as_me: failed program was:" >&5
12571sed 's/^/| /' conftest.$ac_ext >&5
12572
12573 # Broken: fails on valid input.
12574continue
12575fi
12576rm -f conftest.err conftest.$ac_ext
12577
12578 # OK, works on sane cases. Now check whether non-existent headers
12579 # can be detected and how.
12580 cat >conftest.$ac_ext <<_ACEOF
12581/* confdefs.h. */
12582_ACEOF
12583cat confdefs.h >>conftest.$ac_ext
12584cat >>conftest.$ac_ext <<_ACEOF
12585/* end confdefs.h. */
12586#include <ac_nonexistent.h>
12587_ACEOF
12588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } >/dev/null; then
12596 if test -s conftest.err; then
12597 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12599 else
12600 ac_cpp_err=
12601 fi
12602else
12603 ac_cpp_err=yes
12604fi
12605if test -z "$ac_cpp_err"; then
12606 # Broken: success on invalid input.
12607continue
12608else
12609 echo "$as_me: failed program was:" >&5
12610sed 's/^/| /' conftest.$ac_ext >&5
12611
12612 # Passes both tests.
12613ac_preproc_ok=:
12614break
12615fi
12616rm -f conftest.err conftest.$ac_ext
12617
12618done
12619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12620rm -f conftest.err conftest.$ac_ext
12621if $ac_preproc_ok; then
12622 :
12623else
12624 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12625See \`config.log' for more details." >&5
12626echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12627See \`config.log' for more details." >&2;}
12628 { (exit 1); exit 1; }; }
12629fi
12630
12631ac_ext=c
12632ac_cpp='$CPP $CPPFLAGS'
12633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12635ac_compiler_gnu=$ac_cv_c_compiler_gnu
12636
12637
12638echo "$as_me:$LINENO: checking for egrep" >&5
12639echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12640if test "${ac_cv_prog_egrep+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12644 then ac_cv_prog_egrep='grep -E'
12645 else ac_cv_prog_egrep='egrep'
12646 fi
12647fi
12648echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12649echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12650 EGREP=$ac_cv_prog_egrep
12651
12652
12653if test $ac_cv_c_compiler_gnu = yes; then
12654 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12655echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12656if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658else
12659 ac_pattern="Autoconf.*'x'"
12660 cat >conftest.$ac_ext <<_ACEOF
12661/* confdefs.h. */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h. */
12666#include <sgtty.h>
12667Autoconf TIOCGETP
12668_ACEOF
12669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12670 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12671 ac_cv_prog_gcc_traditional=yes
12672else
12673 ac_cv_prog_gcc_traditional=no
12674fi
12675rm -f conftest*
12676
12677
12678 if test $ac_cv_prog_gcc_traditional = no; then
12679 cat >conftest.$ac_ext <<_ACEOF
12680/* confdefs.h. */
12681_ACEOF
12682cat confdefs.h >>conftest.$ac_ext
12683cat >>conftest.$ac_ext <<_ACEOF
12684/* end confdefs.h. */
12685#include <termio.h>
12686Autoconf TCGETA
12687_ACEOF
12688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12689 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12690 ac_cv_prog_gcc_traditional=yes
12691fi
12692rm -f conftest*
12693
12694 fi
12695fi
12696echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12697echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12698 if test $ac_cv_prog_gcc_traditional = yes; then
12699 CC="$CC -traditional"
12700 fi
12701fi
12702
12703
12704
12705
12706ac_ext=cc
12707ac_cpp='$CXXCPP $CPPFLAGS'
12708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12711
12712
12713CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12714
12715
3006edc0 12716
6dcfc289 12717 ac_ext=cc
a848cd7e
SC
12718ac_cpp='$CXXCPP $CPPFLAGS'
12719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12722if test -n "$ac_tool_prefix"; then
12723 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12724 do
12725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12726set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12727echo "$as_me:$LINENO: checking for $ac_word" >&5
12728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12729if test "${ac_cv_prog_CXX+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
12732 if test -n "$CXX"; then
12733 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12734else
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12742 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746done
12747done
12748
12749fi
12750fi
12751CXX=$ac_cv_prog_CXX
12752if test -n "$CXX"; then
12753 echo "$as_me:$LINENO: result: $CXX" >&5
12754echo "${ECHO_T}$CXX" >&6
12755else
12756 echo "$as_me:$LINENO: result: no" >&5
12757echo "${ECHO_T}no" >&6
12758fi
12759
12760 test -n "$CXX" && break
12761 done
12762fi
12763if test -z "$CXX"; then
12764 ac_ct_CXX=$CXX
12765 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12766do
12767 # Extract the first word of "$ac_prog", so it can be a program name with args.
12768set dummy $ac_prog; ac_word=$2
12769echo "$as_me:$LINENO: checking for $ac_word" >&5
12770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12771if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773else
12774 if test -n "$ac_ct_CXX"; then
12775 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12776else
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12784 ac_cv_prog_ac_ct_CXX="$ac_prog"
12785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12787 fi
12788done
12789done
12790
12791fi
12792fi
12793ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12794if test -n "$ac_ct_CXX"; then
12795 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12796echo "${ECHO_T}$ac_ct_CXX" >&6
12797else
12798 echo "$as_me:$LINENO: result: no" >&5
12799echo "${ECHO_T}no" >&6
12800fi
12801
12802 test -n "$ac_ct_CXX" && break
12803done
12804test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12805
12806 CXX=$ac_ct_CXX
12807fi
12808
12809
12810# Provide some information about the compiler.
12811echo "$as_me:$LINENO:" \
12812 "checking for C++ compiler version" >&5
12813ac_compiler=`set X $ac_compile; echo $2`
12814{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12815 (eval $ac_compiler --version </dev/null >&5) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }
12819{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12820 (eval $ac_compiler -v </dev/null >&5) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }
12824{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12825 (eval $ac_compiler -V </dev/null >&5) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }
12829
12830echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12831echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12832if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834else
12835 cat >conftest.$ac_ext <<_ACEOF
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
12841
12842int
12843main ()
12844{
12845#ifndef __GNUC__
12846 choke me
12847#endif
12848
12849 ;
12850 return 0;
12851}
12852_ACEOF
12853rm -f conftest.$ac_objext
12854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12855 (eval $ac_compile) 2>conftest.er1
a848cd7e 12856 ac_status=$?
ac1cb8d3
VS
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
a848cd7e
SC
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
dee1a63f
MB
12862 { ac_try='test -z "$ac_cxx_werror_flag"
12863 || test ! -s conftest.err'
ac1cb8d3
VS
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_compiler_gnu=yes
12876else
12877 echo "$as_me: failed program was:" >&5
12878sed 's/^/| /' conftest.$ac_ext >&5
12879
12880ac_compiler_gnu=no
12881fi
ac1cb8d3 12882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12883ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12884
12885fi
12886echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12887echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12888GXX=`test $ac_compiler_gnu = yes && echo yes`
12889ac_test_CXXFLAGS=${CXXFLAGS+set}
12890ac_save_CXXFLAGS=$CXXFLAGS
12891CXXFLAGS="-g"
12892echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12893echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12894if test "${ac_cv_prog_cxx_g+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896else
12897 cat >conftest.$ac_ext <<_ACEOF
12898/* confdefs.h. */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h. */
12903
12904int
12905main ()
12906{
12907
12908 ;
12909 return 0;
12910}
12911_ACEOF
12912rm -f conftest.$ac_objext
12913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12914 (eval $ac_compile) 2>conftest.er1
a848cd7e 12915 ac_status=$?
ac1cb8d3
VS
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
a848cd7e
SC
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
dee1a63f
MB
12921 { ac_try='test -z "$ac_cxx_werror_flag"
12922 || test ! -s conftest.err'
ac1cb8d3
VS
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_prog_cxx_g=yes
12935else
12936 echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939ac_cv_prog_cxx_g=no
12940fi
ac1cb8d3 12941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12942fi
12943echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12944echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12945if test "$ac_test_CXXFLAGS" = set; then
12946 CXXFLAGS=$ac_save_CXXFLAGS
12947elif test $ac_cv_prog_cxx_g = yes; then
12948 if test "$GXX" = yes; then
1c14217d 12949 CXXFLAGS="-g -O2"
a848cd7e 12950 else
1c14217d 12951 CXXFLAGS="-g"
a848cd7e
SC
12952 fi
12953else
12954 if test "$GXX" = yes; then
12955 CXXFLAGS="-O2"
12956 else
12957 CXXFLAGS=
12958 fi
12959fi
12960for ac_declaration in \
ac1cb8d3 12961 '' \
a848cd7e
SC
12962 'extern "C" void std::exit (int) throw (); using std::exit;' \
12963 'extern "C" void std::exit (int); using std::exit;' \
12964 'extern "C" void exit (int) throw ();' \
12965 'extern "C" void exit (int);' \
12966 'void exit (int);'
12967do
12968 cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h. */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
12973/* end confdefs.h. */
de59c161 12974$ac_declaration
ac1cb8d3 12975#include <stdlib.h>
a848cd7e
SC
12976int
12977main ()
12978{
12979exit (42);
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext
12985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12986 (eval $ac_compile) 2>conftest.er1
a848cd7e 12987 ac_status=$?
ac1cb8d3
VS
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
a848cd7e
SC
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
dee1a63f
MB
12993 { ac_try='test -z "$ac_cxx_werror_flag"
12994 || test ! -s conftest.err'
ac1cb8d3
VS
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; } &&
13000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 :
13007else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
13011continue
13012fi
ac1cb8d3 13013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13014 cat >conftest.$ac_ext <<_ACEOF
13015/* confdefs.h. */
13016_ACEOF
13017cat confdefs.h >>conftest.$ac_ext
13018cat >>conftest.$ac_ext <<_ACEOF
13019/* end confdefs.h. */
13020$ac_declaration
13021int
13022main ()
13023{
13024exit (42);
13025 ;
13026 return 0;
13027}
13028_ACEOF
13029rm -f conftest.$ac_objext
13030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13031 (eval $ac_compile) 2>conftest.er1
a848cd7e 13032 ac_status=$?
ac1cb8d3
VS
13033 grep -v '^ *+' conftest.er1 >conftest.err
13034 rm -f conftest.er1
13035 cat conftest.err >&5
a848cd7e
SC
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
dee1a63f
MB
13038 { ac_try='test -z "$ac_cxx_werror_flag"
13039 || test ! -s conftest.err'
ac1cb8d3
VS
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; } &&
13045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 break
13052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056fi
ac1cb8d3 13057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13058done
13059rm -f conftest*
13060if test -n "$ac_declaration"; then
13061 echo '#ifdef __cplusplus' >>confdefs.h
13062 echo $ac_declaration >>confdefs.h
13063 echo '#endif' >>confdefs.h
13064fi
13065
13066ac_ext=cc
13067ac_cpp='$CXXCPP $CPPFLAGS'
13068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13071
ab0ad5f1
VZ
13072
13073
13074 ac_ext=cc
13075ac_cpp='$CXXCPP $CPPFLAGS'
13076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13079
13080 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13081echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13082if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13084else
13085 cat >conftest.$ac_ext <<_ACEOF
13086/* confdefs.h. */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
13090/* end confdefs.h. */
13091
13092int
13093main ()
13094{
13095
13096 #ifndef __INTEL_COMPILER
13097 choke me
13098 #endif
13099
13100 ;
13101 return 0;
13102}
13103_ACEOF
13104rm -f conftest.$ac_objext
13105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13106 (eval $ac_compile) 2>conftest.er1
13107 ac_status=$?
13108 grep -v '^ *+' conftest.er1 >conftest.err
13109 rm -f conftest.er1
13110 cat conftest.err >&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
dee1a63f
MB
13113 { ac_try='test -z "$ac_cxx_werror_flag"
13114 || test ! -s conftest.err'
ab0ad5f1
VZ
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; } &&
13120 { ac_try='test -s conftest.$ac_objext'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13127else
13128 echo "$as_me: failed program was:" >&5
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
13131bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13132
13133fi
13134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13135
13136
13137fi
13138echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13139echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13140 ac_ext=cc
13141ac_cpp='$CXXCPP $CPPFLAGS'
13142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13145
13146 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13147 :; INTELCXX=yes
13148 else
13149 :;
13150 fi
13151
13152
3006edc0
VZ
13153 if test "x$GCXX" != "xyes"; then
13154 if test "xCXX" = "xC"; then
13155 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13156echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
dee1a63f 13157if test "${wx_cv_cxx_exto+set}" = set; then
480ccd21
DE
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13159else
13160 cat >conftest.$ac_ext <<_ACEOF
13161/* confdefs.h. */
13162_ACEOF
13163cat confdefs.h >>conftest.$ac_ext
13164cat >>conftest.$ac_ext <<_ACEOF
13165/* end confdefs.h. */
13166
13167int
13168main ()
13169{
13170
13171 ;
13172 return 0;
13173}
13174_ACEOF
13175rm -f conftest.$ac_objext conftest.$ac_ext.o
13176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13177 (eval $ac_compile) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; then
13181 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13182 case $ac_file in
13183 conftest.$ac_ext.o)
dee1a63f 13184 wx_cv_cxx_exto="-ext o"
480ccd21
DE
13185 ;;
13186 *)
13187 ;;
13188 esac
13189done
13190else
13191 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13192See \`config.log' for more details." >&5
13193echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13194See \`config.log' for more details." >&2;}
13195 { (exit 1); exit 1; }; }
13196
13197fi
13198
13199rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13200
13201fi
dee1a63f
MB
13202echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
13203echo "${ECHO_T}$wx_cv_cxx_exto" >&6
13204if test "x$wx_cv_cxx_exto" '!=' "x"; then
480ccd21 13205 if test "cxx" = "c"; then
dee1a63f 13206 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
480ccd21
DE
13207 fi
13208 if test "cxx" = "cxx"; then
dee1a63f 13209 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13210 fi
13211fi
13212
dee1a63f 13213 if test "x$wx_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13214 unset ac_cv_prog_cc_g
13215 ac_test_CFLAGS=${CFLAGS+set}
13216ac_save_CFLAGS=$CFLAGS
13217CFLAGS="-g"
13218echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13219echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13220if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222else
13223 cat >conftest.$ac_ext <<_ACEOF
13224/* confdefs.h. */
13225_ACEOF
13226cat confdefs.h >>conftest.$ac_ext
13227cat >>conftest.$ac_ext <<_ACEOF
13228/* end confdefs.h. */
13229
13230int
13231main ()
13232{
13233
13234 ;
13235 return 0;
13236}
13237_ACEOF
13238rm -f conftest.$ac_objext
13239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
dee1a63f
MB
13247 { ac_try='test -z "$ac_cxx_werror_flag"
13248 || test ! -s conftest.err'
480ccd21
DE
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest.$ac_objext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
3006edc0 13260 ac_cv_prog_cc_g=yes
480ccd21
DE
13261else
13262 echo "$as_me: failed program was:" >&5
13263sed 's/^/| /' conftest.$ac_ext >&5
13264
3006edc0 13265ac_cv_prog_cc_g=no
480ccd21
DE
13266fi
13267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268fi
3006edc0
VZ
13269echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13270echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13271if test "$ac_test_CFLAGS" = set; then
13272 CFLAGS=$ac_save_CFLAGS
13273elif test $ac_cv_prog_cc_g = yes; then
13274 if test "$GCC" = yes; then
13275 CFLAGS="-g -O2"
480ccd21 13276 else
3006edc0 13277 CFLAGS="-g"
480ccd21
DE
13278 fi
13279else
3006edc0
VZ
13280 if test "$GCC" = yes; then
13281 CFLAGS="-O2"
480ccd21 13282 else
3006edc0 13283 CFLAGS=
480ccd21
DE
13284 fi
13285fi
3006edc0 13286 fi
ab0ad5f1 13287 fi
3006edc0
VZ
13288
13289 case `uname -s` in
13290 AIX*)
13291 ac_ext=cc
13292ac_cpp='$CXXCPP $CPPFLAGS'
13293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13296
13297echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13298echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
dee1a63f 13299if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301else
13302 cat >conftest.$ac_ext <<_ACEOF
13303/* confdefs.h. */
13304_ACEOF
13305cat confdefs.h >>conftest.$ac_ext
13306cat >>conftest.$ac_ext <<_ACEOF
13307/* end confdefs.h. */
13308
13309int
13310main ()
13311{
13312#ifndef __xlC__
13313 choke me
13314#endif
13315
13316 ;
13317 return 0;
13318}
13319_ACEOF
13320rm -f conftest.$ac_objext
13321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13322 (eval $ac_compile) 2>conftest.er1
13323 ac_status=$?
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
dee1a63f
MB
13329 { ac_try='test -z "$ac_cxx_werror_flag"
13330 || test ! -s conftest.err'
3006edc0
VZ
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest.$ac_objext'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
dee1a63f 13342 wx_compiler_xlc=yes
3006edc0
VZ
13343else
13344 echo "$as_me: failed program was:" >&5
13345sed 's/^/| /' conftest.$ac_ext >&5
13346
dee1a63f 13347wx_compiler_xlc=no
3006edc0
VZ
13348fi
13349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dee1a63f 13350 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
3006edc0
VZ
13351
13352fi
dee1a63f
MB
13353echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
13354echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
3006edc0 13355
dee1a63f 13356XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13357ac_ext=cc
13358ac_cpp='$CXXCPP $CPPFLAGS'
13359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13362
13363
13364 ;;
13365
13366 Darwin)
13367 ac_ext=cc
95986553
DE
13368ac_cpp='$CXXCPP $CPPFLAGS'
13369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13372
13373echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13374echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13375if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13377else
13378 cat >conftest.$ac_ext <<_ACEOF
13379/* confdefs.h. */
13380_ACEOF
13381cat confdefs.h >>conftest.$ac_ext
13382cat >>conftest.$ac_ext <<_ACEOF
13383/* end confdefs.h. */
13384
13385int
13386main ()
13387{
13388#ifndef __MWERKS__
13389 choke me
13390#endif
13391
13392 ;
13393 return 0;
13394}
13395_ACEOF
13396rm -f conftest.$ac_objext
13397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>conftest.er1
13399 ac_status=$?
13400 grep -v '^ *+' conftest.er1 >conftest.err
13401 rm -f conftest.er1
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
dee1a63f
MB
13405 { ac_try='test -z "$ac_cxx_werror_flag"
13406 || test ! -s conftest.err'
95986553
DE
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest.$ac_objext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 bakefile_compiler_mwerks=yes
13419else
13420 echo "$as_me: failed program was:" >&5
13421sed 's/^/| /' conftest.$ac_ext >&5
13422
13423bakefile_compiler_mwerks=no
13424fi
13425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13426 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13427
13428fi
13429echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13430echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13431
0e6fa1d9 13432MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13433ac_ext=cc
13434ac_cpp='$CXXCPP $CPPFLAGS'
13435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13438
13439
3006edc0 13440 ac_ext=cc
9273ffba
DE
13441ac_cpp='$CXXCPP $CPPFLAGS'
13442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13445
13446echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13447echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
dee1a63f 13448if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450else
13451 cat >conftest.$ac_ext <<_ACEOF
13452/* confdefs.h. */
13453_ACEOF
13454cat confdefs.h >>conftest.$ac_ext
13455cat >>conftest.$ac_ext <<_ACEOF
13456/* end confdefs.h. */
13457
13458int
13459main ()
13460{
13461#ifndef __xlC__
13462 choke me
13463#endif
13464
13465 ;
13466 return 0;
13467}
13468_ACEOF
13469rm -f conftest.$ac_objext
13470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13471 (eval $ac_compile) 2>conftest.er1
13472 ac_status=$?
13473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
dee1a63f
MB
13478 { ac_try='test -z "$ac_cxx_werror_flag"
13479 || test ! -s conftest.err'
9273ffba
DE
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest.$ac_objext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
dee1a63f 13491 wx_compiler_xlc=yes
9273ffba
DE
13492else
13493 echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
13495
dee1a63f 13496wx_compiler_xlc=no
9273ffba
DE
13497fi
13498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dee1a63f 13499 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
9273ffba
DE
13500
13501fi
dee1a63f
MB
13502echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
13503echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
9273ffba 13504
dee1a63f 13505XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13506ac_ext=cc
13507ac_cpp='$CXXCPP $CPPFLAGS'
13508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13511
13512
3006edc0
VZ
13513 ;;
13514
13515 IRIX*)
95986553 13516
6dcfc289 13517
0ad5d837
VZ
13518 ac_ext=cc
13519ac_cpp='$CXXCPP $CPPFLAGS'
13520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13523
13524 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13525echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13526if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528else
13529 cat >conftest.$ac_ext <<_ACEOF
13530/* confdefs.h. */
13531_ACEOF
13532cat confdefs.h >>conftest.$ac_ext
13533cat >>conftest.$ac_ext <<_ACEOF
13534/* end confdefs.h. */
13535
13536int
13537main ()
13538{
13539
13540 #ifndef _SGI_COMPILER_VERSION
13541 choke me
13542 #endif
13543
13544 ;
13545 return 0;
13546}
13547_ACEOF
13548rm -f conftest.$ac_objext
13549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550 (eval $ac_compile) 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
dee1a63f
MB
13557 { ac_try='test -z "$ac_cxx_werror_flag"
13558 || test ! -s conftest.err'
0ad5d837
VZ
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest.$ac_objext'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13570 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13571else
13572 echo "$as_me: failed program was:" >&5
13573sed 's/^/| /' conftest.$ac_ext >&5
13574
13575bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13576
13577fi
13578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13579
13580
13581fi
13582echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13583echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13584 ac_ext=cc
13585ac_cpp='$CXXCPP $CPPFLAGS'
13586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13589
13590 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13591 :; SGICXX=yes
13592 else
13593 :;
13594 fi
13595
13596
3006edc0
VZ
13597 ;;
13598
dee1a63f 13599 SunOS)
3006edc0
VZ
13600
13601
13602 ac_ext=cc
13603ac_cpp='$CXXCPP $CPPFLAGS'
13604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13607
dee1a63f
MB
13608 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13609echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13610if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
3006edc0
VZ
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612else
13613 cat >conftest.$ac_ext <<_ACEOF
13614/* confdefs.h. */
13615_ACEOF
13616cat confdefs.h >>conftest.$ac_ext
13617cat >>conftest.$ac_ext <<_ACEOF
13618/* end confdefs.h. */
13619
13620int
13621main ()
13622{
13623
dee1a63f 13624 #ifndef __SUNPRO_CC
3006edc0
VZ
13625 choke me
13626 #endif
13627
13628 ;
13629 return 0;
13630}
13631_ACEOF
13632rm -f conftest.$ac_objext
13633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634 (eval $ac_compile) 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
dee1a63f
MB
13641 { ac_try='test -z "$ac_cxx_werror_flag"
13642 || test ! -s conftest.err'
3006edc0
VZ
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest.$ac_objext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
dee1a63f 13654 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
3006edc0
VZ
13655else
13656 echo "$as_me: failed program was:" >&5
13657sed 's/^/| /' conftest.$ac_ext >&5
13658
dee1a63f 13659bakefile_cv_cxx_compiler___SUNPRO_CC=no
3006edc0
VZ
13660
13661fi
13662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13663
13664
13665fi
dee1a63f
MB
13666echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13667echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
3006edc0
VZ
13668 ac_ext=cc
13669ac_cpp='$CXXCPP $CPPFLAGS'
13670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13673
dee1a63f
MB
13674 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13675 :; SUNCXX=yes
a1aa0349
VZ
13676 else
13677 :;
13678 fi
13679
13680
13681 ;;
13682
dee1a63f 13683 HP-UX*)
a1aa0349
VZ
13684
13685
13686 ac_ext=cc
13687ac_cpp='$CXXCPP $CPPFLAGS'
13688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13691
dee1a63f
MB
13692 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13693echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13694if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
a1aa0349
VZ
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696else
13697 cat >conftest.$ac_ext <<_ACEOF
13698/* confdefs.h. */
13699_ACEOF
13700cat confdefs.h >>conftest.$ac_ext
13701cat >>conftest.$ac_ext <<_ACEOF
13702/* end confdefs.h. */
13703
13704int
13705main ()
13706{
13707
dee1a63f 13708 #ifndef __HP_aCC
a1aa0349
VZ
13709 choke me
13710 #endif
13711
13712 ;
13713 return 0;
13714}
13715_ACEOF
13716rm -f conftest.$ac_objext
13717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718 (eval $ac_compile) 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
dee1a63f
MB
13725 { ac_try='test -z "$ac_cxx_werror_flag"
13726 || test ! -s conftest.err'
a1aa0349
VZ
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest.$ac_objext'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
dee1a63f 13738 bakefile_cv_cxx_compiler___HP_aCC=yes
a1aa0349
VZ
13739else
13740 echo "$as_me: failed program was:" >&5
13741sed 's/^/| /' conftest.$ac_ext >&5
13742
dee1a63f 13743bakefile_cv_cxx_compiler___HP_aCC=no
a1aa0349
VZ
13744
13745fi
13746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13747
13748
13749fi
dee1a63f
MB
13750echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13751echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
a1aa0349
VZ
13752 ac_ext=cc
13753ac_cpp='$CXXCPP $CPPFLAGS'
13754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13757
dee1a63f
MB
13758 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13759 :; HPCXX=yes
3006edc0
VZ
13760 else
13761 :;
ab0ad5f1 13762 fi
a9e5b1f0
MW
13763
13764
3006edc0
VZ
13765 ;;
13766 esac
13767 fi
13768
13769
13770
a848cd7e
SC
13771ac_ext=c
13772ac_cpp='$CPP $CPPFLAGS'
13773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13775ac_compiler_gnu=$ac_cv_c_compiler_gnu
13776
13777
a848cd7e
SC
13778if test -n "$ac_tool_prefix"; then
13779 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13780set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13781echo "$as_me:$LINENO: checking for $ac_word" >&5
13782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13783if test "${ac_cv_prog_RANLIB+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13785else
13786 if test -n "$RANLIB"; then
13787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13788else
13789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790for as_dir in $PATH
13791do
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
13794 for ac_exec_ext in '' $ac_executable_extensions; do
13795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13798 break 2
13799 fi
13800done
13801done
13802
13803fi
13804fi
13805RANLIB=$ac_cv_prog_RANLIB
13806if test -n "$RANLIB"; then
13807 echo "$as_me:$LINENO: result: $RANLIB" >&5
13808echo "${ECHO_T}$RANLIB" >&6
13809else
13810 echo "$as_me:$LINENO: result: no" >&5
13811echo "${ECHO_T}no" >&6
13812fi
13813
13814fi
13815if test -z "$ac_cv_prog_RANLIB"; then
13816 ac_ct_RANLIB=$RANLIB
13817 # Extract the first word of "ranlib", so it can be a program name with args.
13818set dummy ranlib; ac_word=$2
13819echo "$as_me:$LINENO: checking for $ac_word" >&5
13820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13821if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823else
13824 if test -n "$ac_ct_RANLIB"; then
13825 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13826else
13827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828for as_dir in $PATH
13829do
13830 IFS=$as_save_IFS
13831 test -z "$as_dir" && as_dir=.
13832 for ac_exec_ext in '' $ac_executable_extensions; do
13833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13834 ac_cv_prog_ac_ct_RANLIB="ranlib"
13835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13836 break 2
13837 fi
13838done
13839done
13840
13841 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13842fi
13843fi
13844ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13845if test -n "$ac_ct_RANLIB"; then
13846 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13847echo "${ECHO_T}$ac_ct_RANLIB" >&6
13848else
13849 echo "$as_me:$LINENO: result: no" >&5
13850echo "${ECHO_T}no" >&6
13851fi
13852
13853 RANLIB=$ac_ct_RANLIB
13854else
13855 RANLIB="$ac_cv_prog_RANLIB"
13856fi
13857
13858
8c80d384
DE
13859if test -n "$ac_tool_prefix"; then
13860 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13861set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
13862echo "$as_me:$LINENO: checking for $ac_word" >&5
13863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13864if test "${ac_cv_prog_AR+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866else
13867 if test -n "$AR"; then
13868 ac_cv_prog_AR="$AR" # Let the user override the test.
13869else
13870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871for as_dir in $PATH
13872do
13873 IFS=$as_save_IFS
13874 test -z "$as_dir" && as_dir=.
13875 for ac_exec_ext in '' $ac_executable_extensions; do
13876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13877 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
13878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13879 break 2
13880 fi
13881done
13882done
13883
13884fi
13885fi
13886AR=$ac_cv_prog_AR
13887if test -n "$AR"; then
13888 echo "$as_me:$LINENO: result: $AR" >&5
13889echo "${ECHO_T}$AR" >&6
13890else
13891 echo "$as_me:$LINENO: result: no" >&5
13892echo "${ECHO_T}no" >&6
13893fi
13894
8c80d384
DE
13895fi
13896if test -z "$ac_cv_prog_AR"; then
13897 ac_ct_AR=$AR
13898 # Extract the first word of "ar", so it can be a program name with args.
13899set dummy ar; ac_word=$2
13900echo "$as_me:$LINENO: checking for $ac_word" >&5
13901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13902if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 if test -n "$ac_ct_AR"; then
13906 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13907else
13908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13909for as_dir in $PATH
13910do
13911 IFS=$as_save_IFS
13912 test -z "$as_dir" && as_dir=.
13913 for ac_exec_ext in '' $ac_executable_extensions; do
13914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13915 ac_cv_prog_ac_ct_AR="ar"
13916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13917 break 2
13918 fi
13919done
13920done
13921
13922fi
13923fi
13924ac_ct_AR=$ac_cv_prog_ac_ct_AR
13925if test -n "$ac_ct_AR"; then
13926 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13927echo "${ECHO_T}$ac_ct_AR" >&6
13928else
13929 echo "$as_me:$LINENO: result: no" >&5
13930echo "${ECHO_T}no" >&6
13931fi
13932
13933 AR=$ac_ct_AR
13934else
13935 AR="$ac_cv_prog_AR"
13936fi
13937
a848cd7e 13938if test "x$AR" = "x" ; then
77ffb593
JS
13939 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13940echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13941 { (exit 1); exit 1; }; }
13942fi
13943
13944# Find a good install program. We prefer a C program (faster),
13945# so one script is as good as another. But avoid the broken or
13946# incompatible versions:
13947# SysV /etc/install, /usr/sbin/install
13948# SunOS /usr/etc/install
13949# IRIX /sbin/install
13950# AIX /bin/install
13951# AmigaOS /C/install, which installs bootblocks on floppy discs
13952# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13953# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13954# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13955# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13956# ./install, which can be erroneously created by make from ./install.sh.
13957echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13958echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13959if test -z "$INSTALL"; then
13960if test "${ac_cv_path_install+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962else
13963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13964for as_dir in $PATH
13965do
13966 IFS=$as_save_IFS
13967 test -z "$as_dir" && as_dir=.
13968 # Account for people who put trailing slashes in PATH elements.
13969case $as_dir/ in
13970 ./ | .// | /cC/* | \
13971 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13972 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13973 /usr/ucb/* ) ;;
13974 *)
13975 # OSF1 and SCO ODT 3.0 have their own names for install.
13976 # Don't use installbsd from OSF since it installs stuff as root
13977 # by default.
13978 for ac_prog in ginstall scoinst install; do
13979 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13980 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13981 if test $ac_prog = install &&
13982 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13983 # AIX install. It has an incompatible calling convention.
13984 :
13985 elif test $ac_prog = install &&
13986 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13987 # program-specific install script used by HP pwplus--don't use.
13988 :
13989 else
13990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13991 break 3
13992 fi
13993 fi
a848cd7e
SC
13994 done
13995 done
13996 ;;
13997esac
13998done
13999
14000
14001fi
14002 if test "${ac_cv_path_install+set}" = set; then
14003 INSTALL=$ac_cv_path_install
14004 else
14005 # As a last resort, use the slow shell script. We don't cache a
14006 # path for INSTALL within a source directory, because that will
14007 # break other packages using the cache if that directory is
14008 # removed, or if the path is relative.
14009 INSTALL=$ac_install_sh
14010 fi
14011fi
14012echo "$as_me:$LINENO: result: $INSTALL" >&5
14013echo "${ECHO_T}$INSTALL" >&6
14014
14015# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14016# It thinks the first close brace ends the variable substitution.
14017test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14018
14019test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14020
14021test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14022
14023
14024case ${INSTALL} in
14025 /* ) # Absolute
14026 ;;
14027 ?:* ) # Drive letter, considered as absolute.
14028 ;;
14029 *)
14030 INSTALL=`pwd`/${INSTALL} ;;
14031esac
14032
a848cd7e
SC
14033
14034case "${host}" in
14035
cfda0ea8 14036 *-*-darwin* )
a848cd7e
SC
14037 INSTALL_PROGRAM="cp -fp"
14038 INSTALL_DATA="cp -fp"
14039 ;;
14040 *)
14041 ;;
14042esac
14043
8c80d384
DE
14044if test -n "$ac_tool_prefix"; then
14045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14046set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14047echo "$as_me:$LINENO: checking for $ac_word" >&5
14048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14049if test "${ac_cv_prog_STRIP+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14051else
14052 if test -n "$STRIP"; then
14053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14054else
14055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056for as_dir in $PATH
14057do
14058 IFS=$as_save_IFS
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14064 break 2
14065 fi
14066done
14067done
14068
a848cd7e
SC
14069fi
14070fi
14071STRIP=$ac_cv_prog_STRIP
14072if test -n "$STRIP"; then
14073 echo "$as_me:$LINENO: result: $STRIP" >&5
14074echo "${ECHO_T}$STRIP" >&6
14075else
14076 echo "$as_me:$LINENO: result: no" >&5
14077echo "${ECHO_T}no" >&6
14078fi
14079
8c80d384
DE
14080fi
14081if test -z "$ac_cv_prog_STRIP"; then
14082 ac_ct_STRIP=$STRIP
14083 # Extract the first word of "strip", so it can be a program name with args.
14084set dummy strip; ac_word=$2
14085echo "$as_me:$LINENO: checking for $ac_word" >&5
14086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14087if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089else
14090 if test -n "$ac_ct_STRIP"; then
14091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14092else
14093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094for as_dir in $PATH
14095do
14096 IFS=$as_save_IFS
14097 test -z "$as_dir" && as_dir=.
14098 for ac_exec_ext in '' $ac_executable_extensions; do
14099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14100 ac_cv_prog_ac_ct_STRIP="strip"
14101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14102 break 2
14103 fi
14104done
14105done
14106
14107 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14108fi
14109fi
14110ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14111if test -n "$ac_ct_STRIP"; then
14112 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14113echo "${ECHO_T}$ac_ct_STRIP" >&6
14114else
14115 echo "$as_me:$LINENO: result: no" >&5
14116echo "${ECHO_T}no" >&6
14117fi
14118
14119 STRIP=$ac_ct_STRIP
14120else
14121 STRIP="$ac_cv_prog_STRIP"
14122fi
14123
14124
14125if test "$wxUSE_WINE" = "yes"; then
14126 if test -n "$ac_tool_prefix"; then
14127 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14128set dummy ${ac_tool_prefix}wrc; ac_word=$2
14129echo "$as_me:$LINENO: checking for $ac_word" >&5
14130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14131if test "${ac_cv_prog_RESCOMP+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133else
14134 if test -n "$RESCOMP"; then
14135 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14136else
14137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138for as_dir in $PATH
14139do
14140 IFS=$as_save_IFS
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
14145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14146 break 2
14147 fi
14148done
14149done
14150
14151fi
14152fi
14153RESCOMP=$ac_cv_prog_RESCOMP
14154if test -n "$RESCOMP"; then
14155 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14156echo "${ECHO_T}$RESCOMP" >&6
14157else
14158 echo "$as_me:$LINENO: result: no" >&5
14159echo "${ECHO_T}no" >&6
14160fi
14161
14162fi
14163if test -z "$ac_cv_prog_RESCOMP"; then
14164 ac_ct_RESCOMP=$RESCOMP
14165 # Extract the first word of "wrc", so it can be a program name with args.
14166set dummy wrc; ac_word=$2
14167echo "$as_me:$LINENO: checking for $ac_word" >&5
14168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14169if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171else
14172 if test -n "$ac_ct_RESCOMP"; then
14173 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14174else
14175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176for as_dir in $PATH
14177do
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14182 ac_cv_prog_ac_ct_RESCOMP="wrc"
14183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14184 break 2
14185 fi
14186done
14187done
14188
14189fi
14190fi
14191ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14192if test -n "$ac_ct_RESCOMP"; then
14193 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14194echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14195else
14196 echo "$as_me:$LINENO: result: no" >&5
14197echo "${ECHO_T}no" >&6
14198fi
14199
14200 RESCOMP=$ac_ct_RESCOMP
14201else
14202 RESCOMP="$ac_cv_prog_RESCOMP"
14203fi
14204
14205else
14206 case "${host}" in
14207 *-*-cygwin* | *-*-mingw32* )
14208 if test -n "$ac_tool_prefix"; then
14209 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14210set dummy ${ac_tool_prefix}windres; ac_word=$2
14211echo "$as_me:$LINENO: checking for $ac_word" >&5
14212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14213if test "${ac_cv_prog_RESCOMP+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215else
14216 if test -n "$RESCOMP"; then
14217 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14218else
14219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220for as_dir in $PATH
14221do
14222 IFS=$as_save_IFS
14223 test -z "$as_dir" && as_dir=.
14224 for ac_exec_ext in '' $ac_executable_extensions; do
14225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14226 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
14227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14228 break 2
14229 fi
14230done
14231done
14232
14233fi
14234fi
14235RESCOMP=$ac_cv_prog_RESCOMP
14236if test -n "$RESCOMP"; then
14237 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14238echo "${ECHO_T}$RESCOMP" >&6
14239else
14240 echo "$as_me:$LINENO: result: no" >&5
14241echo "${ECHO_T}no" >&6
14242fi
14243
14244fi
14245if test -z "$ac_cv_prog_RESCOMP"; then
14246 ac_ct_RESCOMP=$RESCOMP
14247 # Extract the first word of "windres", so it can be a program name with args.
14248set dummy windres; ac_word=$2
14249echo "$as_me:$LINENO: checking for $ac_word" >&5
14250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14251if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14253else
14254 if test -n "$ac_ct_RESCOMP"; then
14255 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14256else
14257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258for as_dir in $PATH
14259do
14260 IFS=$as_save_IFS
14261 test -z "$as_dir" && as_dir=.
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14264 ac_cv_prog_ac_ct_RESCOMP="windres"
14265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 break 2
14267 fi
14268done
14269done
14270
14271fi
14272fi
14273ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14274if test -n "$ac_ct_RESCOMP"; then
14275 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14276echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14277else
14278 echo "$as_me:$LINENO: result: no" >&5
14279echo "${ECHO_T}no" >&6
14280fi
14281
14282 RESCOMP=$ac_ct_RESCOMP
14283else
14284 RESCOMP="$ac_cv_prog_RESCOMP"
14285fi
14286
14287 if test -n "$ac_tool_prefix"; then
14288 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14289set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14290echo "$as_me:$LINENO: checking for $ac_word" >&5
14291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14292if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14294else
14295 if test -n "$DLLTOOL"; then
14296 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14297else
14298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299for as_dir in $PATH
14300do
14301 IFS=$as_save_IFS
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14305 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14307 break 2
14308 fi
14309done
14310done
14311
14312fi
14313fi
14314DLLTOOL=$ac_cv_prog_DLLTOOL
14315if test -n "$DLLTOOL"; then
14316 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14317echo "${ECHO_T}$DLLTOOL" >&6
14318else
14319 echo "$as_me:$LINENO: result: no" >&5
14320echo "${ECHO_T}no" >&6
14321fi
14322
14323fi
14324if test -z "$ac_cv_prog_DLLTOOL"; then
14325 ac_ct_DLLTOOL=$DLLTOOL
14326 # Extract the first word of "dlltool", so it can be a program name with args.
14327set dummy dlltool; ac_word=$2
14328echo "$as_me:$LINENO: checking for $ac_word" >&5
14329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14330if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14332else
14333 if test -n "$ac_ct_DLLTOOL"; then
14334 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14335else
14336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337for as_dir in $PATH
14338do
14339 IFS=$as_save_IFS
14340 test -z "$as_dir" && as_dir=.
14341 for ac_exec_ext in '' $ac_executable_extensions; do
14342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14343 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14345 break 2
14346 fi
14347done
14348done
14349
14350fi
14351fi
14352ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14353if test -n "$ac_ct_DLLTOOL"; then
14354 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14355echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14356else
14357 echo "$as_me:$LINENO: result: no" >&5
14358echo "${ECHO_T}no" >&6
14359fi
14360
14361 DLLTOOL=$ac_ct_DLLTOOL
14362else
14363 DLLTOOL="$ac_cv_prog_DLLTOOL"
14364fi
14365
14366 ;;
14367 esac
14368fi
a848cd7e
SC
14369
14370echo "$as_me:$LINENO: checking if make is GNU make" >&5
14371echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14372if test "${wx_cv_prog_makeisgnu+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14374else
14375
14376 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14377 egrep -s GNU > /dev/null); then
14378 wx_cv_prog_makeisgnu="yes"
14379 else
14380 wx_cv_prog_makeisgnu="no"
14381 fi
14382
14383fi
14384echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14385echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14386
14387if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14388 IF_GNU_MAKE=""
14389else
14390 IF_GNU_MAKE="#"
14391fi
14392
14393
14394
14395if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14396echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14397echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14398if test "${wx_cv_prog_makevpath+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401
14402cat - << EOF > confMake
14403check : file
14404 cp \$? \$@
14405 cp \$? final_file
14406EOF
14407
14408if test ! -d sub ; then
14409 mkdir sub
14410fi
14411echo dummy > sub/file
14412${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14413RESULT=$?
14414rm -f sub/file check final_file confMake
14415rmdir sub
14416if test "$RESULT" = 0; then
14417 wx_cv_prog_makevpath="yes"
14418else
14419 wx_cv_prog_makevpath="no"
14420fi
14421
14422fi
14423echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14424echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14425
14426if test "x$wx_cv_prog_makevpath" != "xyes"; then
14427{ { echo "$as_me:$LINENO: error:
14428You need a make-utility that is able to use the variable
14429VPATH correctly.
14430If your version of make does not support VPATH correctly,
14431please install GNU-make (possibly as gmake), and start
14432configure with the following command:
14433export MAKE=gmake; ./configure for sh-type shells
14434setenv MAKE gmake; ./configure for csh-type shells
14435Also please do remember to use gmake in this case every time
14436you are trying to compile.
14437" >&5
14438echo "$as_me: error:
14439You need a make-utility that is able to use the variable
14440VPATH correctly.
14441If your version of make does not support VPATH correctly,
14442please install GNU-make (possibly as gmake), and start
14443configure with the following command:
14444export MAKE=gmake; ./configure for sh-type shells
14445setenv MAKE gmake; ./configure for csh-type shells
14446Also please do remember to use gmake in this case every time
14447you are trying to compile.
14448" >&2;}
14449 { (exit 1); exit 1; }; }
14450fi fi
14451echo "$as_me:$LINENO: checking whether ln -s works" >&5
14452echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14453LN_S=$as_ln_s
14454if test "$LN_S" = "ln -s"; then
14455 echo "$as_me:$LINENO: result: yes" >&5
14456echo "${ECHO_T}yes" >&6
14457else
14458 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14459echo "${ECHO_T}no, using $LN_S" >&6
14460fi
14461
14462
14463
2113bc77 14464if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14465 CXXFLAGS="$CXXFLAGS -qunique"
14466fi
14467
4d7ec9f1
DE
14468case "${host}" in
14469 powerpc-*-darwin* )
14470 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14471echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14472 cat >conftest.$ac_ext <<_ACEOF
14473/* confdefs.h. */
14474_ACEOF
14475cat confdefs.h >>conftest.$ac_ext
14476cat >>conftest.$ac_ext <<_ACEOF
14477/* end confdefs.h. */
14478
14479int
14480main ()
14481{
14482#ifndef __POWERPC__
14483 choke me for lack of PowerPC
14484#endif
14485
14486 ;
14487 return 0;
14488}
14489_ACEOF
14490rm -f conftest.$ac_objext
14491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492 (eval $ac_compile) 2>conftest.er1
14493 ac_status=$?
14494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -f conftest.er1
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
dee1a63f
MB
14499 { ac_try='test -z "$ac_c_werror_flag"
14500 || test ! -s conftest.err'
4d7ec9f1
DE
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest.$ac_objext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 echo "$as_me:$LINENO: result: yes" >&5
14513echo "${ECHO_T}yes" >&6
14514else
14515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
14518echo "$as_me:$LINENO: result: no" >&5
14519echo "${ECHO_T}no" >&6
14520 cat >>confdefs.h <<\_ACEOF
14521#define __POWERPC__ 1
14522_ACEOF
14523
14524
14525fi
14526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14527 ;;
14528esac
14529
14530case "${host}" in
14531 *-*-darwin* )
4d7ec9f1
DE
14532 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14533echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14534 cat >conftest.$ac_ext <<_ACEOF
14535/* confdefs.h. */
14536_ACEOF
14537cat confdefs.h >>conftest.$ac_ext
14538cat >>conftest.$ac_ext <<_ACEOF
14539/* end confdefs.h. */
14540#include <CoreFoundation/CFBase.h>
14541
14542int
14543main ()
14544{
14545
14546 ;
14547 return 0;
14548}
14549_ACEOF
14550rm -f conftest.$ac_objext
14551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14552 (eval $ac_compile) 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
dee1a63f
MB
14559 { ac_try='test -z "$ac_c_werror_flag"
14560 || test ! -s conftest.err'
4d7ec9f1
DE
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest.$ac_objext'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 echo "$as_me:$LINENO: result: yes" >&5
14573echo "${ECHO_T}yes" >&6
14574else
14575 echo "$as_me: failed program was:" >&5
14576sed 's/^/| /' conftest.$ac_ext >&5
14577
14578echo "$as_me:$LINENO: result: no" >&5
14579echo "${ECHO_T}no" >&6
14580 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14581echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14582 cat >conftest.$ac_ext <<_ACEOF
14583/* confdefs.h. */
14584_ACEOF
14585cat confdefs.h >>conftest.$ac_ext
14586cat >>conftest.$ac_ext <<_ACEOF
14587/* end confdefs.h. */
14588#define __CF_USE_FRAMEWORK_INCLUDES__
14589#include <CoreFoundation/CFBase.h>
14590
14591int
14592main ()
14593{
14594
14595 ;
14596 return 0;
14597}
14598_ACEOF
14599rm -f conftest.$ac_objext
14600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601 (eval $ac_compile) 2>conftest.er1
14602 ac_status=$?
14603 grep -v '^ *+' conftest.er1 >conftest.err
14604 rm -f conftest.er1
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
dee1a63f
MB
14608 { ac_try='test -z "$ac_c_werror_flag"
14609 || test ! -s conftest.err'
4d7ec9f1
DE
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14612 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; } &&
14615 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14621 echo "$as_me:$LINENO: result: yes" >&5
14622echo "${ECHO_T}yes" >&6
14623 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14624else
14625 echo "$as_me: failed program was:" >&5
14626sed 's/^/| /' conftest.$ac_ext >&5
14627
14628{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14629See \`config.log' for more details." >&5
14630echo "$as_me: error: no. CoreFoundation not available.
14631See \`config.log' for more details." >&2;}
14632 { (exit 1); exit 1; }; }
14633
14634fi
14635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14636
14637
14638fi
14639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14640 ;;
14641esac
14642
a848cd7e
SC
14643case "${host}" in
14644 *-pc-os2_emx | *-pc-os2-emx )
14645 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14646 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14647echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14648if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14650else
14651 ac_check_lib_save_LIBS=$LIBS
14652LIBS="-lcExt $LIBS"
14653cat >conftest.$ac_ext <<_ACEOF
14654/* confdefs.h. */
14655_ACEOF
14656cat confdefs.h >>conftest.$ac_ext
14657cat >>conftest.$ac_ext <<_ACEOF
14658/* end confdefs.h. */
14659
14660/* Override any gcc2 internal prototype to avoid an error. */
14661#ifdef __cplusplus
14662extern "C"
14663#endif
14664/* We use char because int might match the return type of a gcc2
14665 builtin and then its argument prototype would still apply. */
14666char drand48 ();
14667int
14668main ()
14669{
14670drand48 ();
14671 ;
14672 return 0;
14673}
14674_ACEOF
14675rm -f conftest.$ac_objext conftest$ac_exeext
14676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14677 (eval $ac_link) 2>conftest.er1
a848cd7e 14678 ac_status=$?
ac1cb8d3
VS
14679 grep -v '^ *+' conftest.er1 >conftest.err
14680 rm -f conftest.er1
14681 cat conftest.err >&5
a848cd7e
SC
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } &&
dee1a63f
MB
14684 { ac_try='test -z "$ac_c_werror_flag"
14685 || test ! -s conftest.err'
ac1cb8d3
VS
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14688 ac_status=$?
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; } &&
14691 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 ac_cv_lib_cExt_drand48=yes
14698else
14699 echo "$as_me: failed program was:" >&5
14700sed 's/^/| /' conftest.$ac_ext >&5
14701
14702ac_cv_lib_cExt_drand48=no
14703fi
ac1cb8d3
VS
14704rm -f conftest.err conftest.$ac_objext \
14705 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14706LIBS=$ac_check_lib_save_LIBS
14707fi
14708echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14709echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14710if test $ac_cv_lib_cExt_drand48 = yes; then
14711 LIBS="$LIBS -lcExt"
14712fi
14713
14714 else
14715 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14716 fi
69120ee4
VZ
14717 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14718echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14719if test "${wx_cv_gccversion+set}" = set; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14721else
14722
391a765e
VS
14723 if test "$cross_compiling" = yes; then
14724 wx_cv_gccversion="EMX2"
14725
14726else
14727 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14728/* confdefs.h. */
14729_ACEOF
14730cat confdefs.h >>conftest.$ac_ext
14731cat >>conftest.$ac_ext <<_ACEOF
14732/* end confdefs.h. */
14733
391a765e 14734 #include <stdio.h>
a848cd7e 14735
391a765e
VS
14736 int main()
14737 {
14738 FILE *f=fopen("conftestval", "w");
14739 if (!f) exit(1);
14740 fprintf(f,
a848cd7e 14741 #if (__GNUC__ < 3)
391a765e
VS
14742 "EMX2"
14743 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14744 "EMX3"
14745 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14746 "Innotek5"
14747 #else
14748 "Innotek6"
a848cd7e 14749 #endif
391a765e
VS
14750 );
14751 exit(0);
14752 }
a848cd7e 14753
a848cd7e 14754_ACEOF
391a765e
VS
14755rm -f conftest$ac_exeext
14756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14757 (eval $ac_link) 2>&5
ac1cb8d3
VS
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
391a765e 14766 wx_cv_gccversion=`cat conftestval`
a848cd7e 14767else
391a765e
VS
14768 echo "$as_me: program exited with status $ac_status" >&5
14769echo "$as_me: failed program was:" >&5
a848cd7e
SC
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
391a765e
VS
14772( exit $ac_status )
14773wx_cv_gccversion="EMX2"
a848cd7e 14774fi
391a765e 14775rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14776fi
a848cd7e
SC
14777
14778fi
14779echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14780echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14781 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14782 LIBS="$LIBS -lstdcpp"
14783 LDFLAGS="$LDFLAGS -Zsysv-signals"
14784 else
391a765e 14785 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14786 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14787 LDFLAGS="$LDFLAGS -Zsysv-signals"
14788 else
14789 LIBS="$LIBS -lstdc++"
14790 fi
14791 fi
94acd38e
DE
14792 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14793 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14794echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14795 wxUSE_OMF=yes
2da0c077 14796 enable_omf=yes
a848cd7e
SC
14797 fi
14798 ;;
14799 *)
14800
14801
14802
14803 ac_ext=cc
14804ac_cpp='$CXXCPP $CPPFLAGS'
14805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14808
14809
95986553 14810 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
14811echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14812if test "${ac_cv_string_strcasecmp+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14814else
14815
14816 cat >conftest.$ac_ext <<_ACEOF
14817/* confdefs.h. */
14818_ACEOF
14819cat confdefs.h >>conftest.$ac_ext
14820cat >>conftest.$ac_ext <<_ACEOF
14821/* end confdefs.h. */
14822
14823 #include <string.h>
14824
14825int
14826main ()
14827{
14828
14829 strcasecmp("foo", "bar");
14830
14831 ;
14832 return 0;
14833}
14834_ACEOF
14835rm -f conftest.$ac_objext conftest$ac_exeext
14836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14837 (eval $ac_link) 2>conftest.er1
a848cd7e 14838 ac_status=$?
ac1cb8d3
VS
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
a848cd7e
SC
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
dee1a63f
MB
14844 { ac_try='test -z "$ac_cxx_werror_flag"
14845 || test ! -s conftest.err'
ac1cb8d3
VS
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; } &&
14851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; }; then
14857 ac_cv_string_strcasecmp=yes
14858else
14859 echo "$as_me: failed program was:" >&5
14860sed 's/^/| /' conftest.$ac_ext >&5
14861
14862ac_cv_string_strcasecmp=no
14863
14864fi
ac1cb8d3
VS
14865rm -f conftest.err conftest.$ac_objext \
14866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14867
14868fi
14869echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
14870echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
14871
14872 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
14873 cat >>confdefs.h <<\_ACEOF
14874#define HAVE_STRCASECMP_IN_STRING_H 1
14875_ACEOF
14876
14877 else
14878 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
14879echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
14880if test "${ac_cv_strings_strcasecmp+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14882else
14883
14884 cat >conftest.$ac_ext <<_ACEOF
14885/* confdefs.h. */
14886_ACEOF
14887cat confdefs.h >>conftest.$ac_ext
14888cat >>conftest.$ac_ext <<_ACEOF
14889/* end confdefs.h. */
14890
14891 #include <strings.h>
14892
14893int
14894main ()
14895{
14896
14897 strcasecmp("foo", "bar");
14898
14899 ;
14900 return 0;
14901}
14902_ACEOF
14903rm -f conftest.$ac_objext conftest$ac_exeext
14904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14905 (eval $ac_link) 2>conftest.er1
a848cd7e 14906 ac_status=$?
ac1cb8d3
VS
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
a848cd7e
SC
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
dee1a63f
MB
14912 { ac_try='test -z "$ac_cxx_werror_flag"
14913 || test ! -s conftest.err'
ac1cb8d3
VS
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; } &&
14919 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14922 ac_status=$?
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; }; then
14925 ac_cv_strings_strcasecmp=yes
14926else
14927 echo "$as_me: failed program was:" >&5
14928sed 's/^/| /' conftest.$ac_ext >&5
14929
14930ac_cv_strings_strcasecmp=no
14931
14932fi
ac1cb8d3
VS
14933rm -f conftest.err conftest.$ac_objext \
14934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14935
14936fi
14937echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
14938echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
14939
0c3c69fc 14940 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
14941 cat >>confdefs.h <<\_ACEOF
14942#define HAVE_STRCASECMP_IN_STRINGS_H 1
14943_ACEOF
14944
14945 else
14946 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
14947echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
14948 { (exit 1); exit 1; }; }
14949 fi
14950 fi
14951
14952 ac_ext=c
14953ac_cpp='$CPP $CPPFLAGS'
14954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14956ac_compiler_gnu=$ac_cv_c_compiler_gnu
14957
14958 ;;
14959esac
14960
14961
14962echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14963echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14964if test "${ac_cv_header_stdc+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966else
14967 cat >conftest.$ac_ext <<_ACEOF
14968/* confdefs.h. */
14969_ACEOF
14970cat confdefs.h >>conftest.$ac_ext
14971cat >>conftest.$ac_ext <<_ACEOF
14972/* end confdefs.h. */
14973#include <stdlib.h>
14974#include <stdarg.h>
14975#include <string.h>
14976#include <float.h>
14977
14978int
14979main ()
14980{
14981
14982 ;
14983 return 0;
14984}
14985_ACEOF
14986rm -f conftest.$ac_objext
14987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14988 (eval $ac_compile) 2>conftest.er1
a848cd7e 14989 ac_status=$?
ac1cb8d3
VS
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
a848cd7e
SC
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
dee1a63f
MB
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
ac1cb8d3
VS
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_cv_header_stdc=yes
15009else
15010 echo "$as_me: failed program was:" >&5
15011sed 's/^/| /' conftest.$ac_ext >&5
15012
15013ac_cv_header_stdc=no
15014fi
ac1cb8d3 15015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15016
15017if test $ac_cv_header_stdc = yes; then
15018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15019 cat >conftest.$ac_ext <<_ACEOF
15020/* confdefs.h. */
15021_ACEOF
15022cat confdefs.h >>conftest.$ac_ext
15023cat >>conftest.$ac_ext <<_ACEOF
15024/* end confdefs.h. */
15025#include <string.h>
15026
15027_ACEOF
15028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15029 $EGREP "memchr" >/dev/null 2>&1; then
15030 :
15031else
15032 ac_cv_header_stdc=no
15033fi
15034rm -f conftest*
15035
15036fi
15037
15038if test $ac_cv_header_stdc = yes; then
15039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15040 cat >conftest.$ac_ext <<_ACEOF
15041/* confdefs.h. */
15042_ACEOF
15043cat confdefs.h >>conftest.$ac_ext
15044cat >>conftest.$ac_ext <<_ACEOF
15045/* end confdefs.h. */
15046#include <stdlib.h>
15047
15048_ACEOF
15049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15050 $EGREP "free" >/dev/null 2>&1; then
15051 :
15052else
15053 ac_cv_header_stdc=no
15054fi
15055rm -f conftest*
15056
15057fi
15058
15059if test $ac_cv_header_stdc = yes; then
15060 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15061 if test "$cross_compiling" = yes; then
15062 :
15063else
15064 cat >conftest.$ac_ext <<_ACEOF
15065/* confdefs.h. */
15066_ACEOF
15067cat confdefs.h >>conftest.$ac_ext
15068cat >>conftest.$ac_ext <<_ACEOF
15069/* end confdefs.h. */
15070#include <ctype.h>
15071#if ((' ' & 0x0FF) == 0x020)
15072# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15073# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15074#else
15075# define ISLOWER(c) \
ac1cb8d3
VS
15076 (('a' <= (c) && (c) <= 'i') \
15077 || ('j' <= (c) && (c) <= 'r') \
15078 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15079# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15080#endif
15081
15082#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15083int
15084main ()
15085{
15086 int i;
15087 for (i = 0; i < 256; i++)
15088 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15089 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15090 exit(2);
15091 exit (0);
15092}
15093_ACEOF
15094rm -f conftest$ac_exeext
15095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15096 (eval $ac_link) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 :
15106else
15107 echo "$as_me: program exited with status $ac_status" >&5
15108echo "$as_me: failed program was:" >&5
15109sed 's/^/| /' conftest.$ac_ext >&5
15110
15111( exit $ac_status )
15112ac_cv_header_stdc=no
15113fi
ac1cb8d3 15114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15115fi
15116fi
15117fi
15118echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15119echo "${ECHO_T}$ac_cv_header_stdc" >&6
15120if test $ac_cv_header_stdc = yes; then
15121
15122cat >>confdefs.h <<\_ACEOF
15123#define STDC_HEADERS 1
15124_ACEOF
15125
15126fi
15127
15128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15139 inttypes.h stdint.h unistd.h
a848cd7e
SC
15140do
15141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15142echo "$as_me:$LINENO: checking for $ac_header" >&5
15143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15144if eval "test \"\${$as_ac_Header+set}\" = set"; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15146else
15147 cat >conftest.$ac_ext <<_ACEOF
15148/* confdefs.h. */
15149_ACEOF
15150cat confdefs.h >>conftest.$ac_ext
15151cat >>conftest.$ac_ext <<_ACEOF
15152/* end confdefs.h. */
15153$ac_includes_default
15154
15155#include <$ac_header>
15156_ACEOF
15157rm -f conftest.$ac_objext
15158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15159 (eval $ac_compile) 2>conftest.er1
a848cd7e 15160 ac_status=$?
ac1cb8d3
VS
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
a848cd7e
SC
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
dee1a63f
MB
15166 { ac_try='test -z "$ac_c_werror_flag"
15167 || test ! -s conftest.err'
ac1cb8d3
VS
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 eval "$as_ac_Header=yes"
15180else
15181 echo "$as_me: failed program was:" >&5
15182sed 's/^/| /' conftest.$ac_ext >&5
15183
15184eval "$as_ac_Header=no"
15185fi
ac1cb8d3 15186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15187fi
15188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15190if test `eval echo '${'$as_ac_Header'}'` = yes; then
15191 cat >>confdefs.h <<_ACEOF
15192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15193_ACEOF
15194
15195fi
15196
15197done
15198
15199
15200
15201for ac_header in stdlib.h
15202do
15203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15204if eval "test \"\${$as_ac_Header+set}\" = set"; then
15205 echo "$as_me:$LINENO: checking for $ac_header" >&5
15206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15207if eval "test \"\${$as_ac_Header+set}\" = set"; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15209fi
15210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15212else
15213 # Is the header compilable?
15214echo "$as_me:$LINENO: checking $ac_header usability" >&5
15215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15216cat >conftest.$ac_ext <<_ACEOF
15217/* confdefs.h. */
15218_ACEOF
15219cat confdefs.h >>conftest.$ac_ext
15220cat >>conftest.$ac_ext <<_ACEOF
15221/* end confdefs.h. */
15222$ac_includes_default
15223#include <$ac_header>
15224_ACEOF
15225rm -f conftest.$ac_objext
15226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15227 (eval $ac_compile) 2>conftest.er1
a848cd7e 15228 ac_status=$?
ac1cb8d3
VS
15229 grep -v '^ *+' conftest.er1 >conftest.err
15230 rm -f conftest.er1
15231 cat conftest.err >&5
a848cd7e
SC
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
dee1a63f
MB
15234 { ac_try='test -z "$ac_c_werror_flag"
15235 || test ! -s conftest.err'
ac1cb8d3
VS
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 ac_header_compiler=yes
15248else
15249 echo "$as_me: failed program was:" >&5
15250sed 's/^/| /' conftest.$ac_ext >&5
15251
15252ac_header_compiler=no
15253fi
ac1cb8d3 15254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15256echo "${ECHO_T}$ac_header_compiler" >&6
15257
15258# Is the header present?
15259echo "$as_me:$LINENO: checking $ac_header presence" >&5
15260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15261cat >conftest.$ac_ext <<_ACEOF
15262/* confdefs.h. */
15263_ACEOF
15264cat confdefs.h >>conftest.$ac_ext
15265cat >>conftest.$ac_ext <<_ACEOF
15266/* end confdefs.h. */
15267#include <$ac_header>
15268_ACEOF
15269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15271 ac_status=$?
15272 grep -v '^ *+' conftest.er1 >conftest.err
15273 rm -f conftest.er1
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } >/dev/null; then
15277 if test -s conftest.err; then
15278 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15280 else
15281 ac_cpp_err=
15282 fi
15283else
15284 ac_cpp_err=yes
15285fi
15286if test -z "$ac_cpp_err"; then
15287 ac_header_preproc=yes
15288else
15289 echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 ac_header_preproc=no
15293fi
15294rm -f conftest.err conftest.$ac_ext
15295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15296echo "${ECHO_T}$ac_header_preproc" >&6
15297
15298# So? What about this header?
ac1cb8d3
VS
15299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15300 yes:no: )
a848cd7e
SC
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15305 ac_header_preproc=yes
a848cd7e 15306 ;;
ac1cb8d3 15307 no:yes:* )
a848cd7e
SC
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15320 (
15321 cat <<\_ASBOX
ac1cb8d3
VS
15322## ----------------------------------------- ##
15323## Report this to wx-dev@lists.wxwidgets.org ##
15324## ----------------------------------------- ##
a848cd7e
SC
15325_ASBOX
15326 ) |
15327 sed "s/^/$as_me: WARNING: /" >&2
15328 ;;
15329esac
15330echo "$as_me:$LINENO: checking for $ac_header" >&5
15331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15332if eval "test \"\${$as_ac_Header+set}\" = set"; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15334else
ac1cb8d3 15335 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15336fi
15337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15339
15340fi
15341if test `eval echo '${'$as_ac_Header'}'` = yes; then
15342 cat >>confdefs.h <<_ACEOF
15343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15344_ACEOF
15345
15346fi
15347
15348done
15349
15350
15351for ac_header in malloc.h
15352do
15353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354if eval "test \"\${$as_ac_Header+set}\" = set"; then
15355 echo "$as_me:$LINENO: checking for $ac_header" >&5
15356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15357if eval "test \"\${$as_ac_Header+set}\" = set"; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359fi
15360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15362else
15363 # Is the header compilable?
15364echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15366cat >conftest.$ac_ext <<_ACEOF
15367/* confdefs.h. */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h. */
15372$ac_includes_default
15373#include <$ac_header>
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15377 (eval $ac_compile) 2>conftest.er1
a848cd7e 15378 ac_status=$?
ac1cb8d3
VS
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
a848cd7e
SC
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
dee1a63f
MB
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
ac1cb8d3
VS
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_header_compiler=yes
15398else
15399 echo "$as_me: failed program was:" >&5
15400sed 's/^/| /' conftest.$ac_ext >&5
15401
15402ac_header_compiler=no
15403fi
ac1cb8d3 15404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15406echo "${ECHO_T}$ac_header_compiler" >&6
15407
15408# Is the header present?
15409echo "$as_me:$LINENO: checking $ac_header presence" >&5
15410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15411cat >conftest.$ac_ext <<_ACEOF
15412/* confdefs.h. */
15413_ACEOF
15414cat confdefs.h >>conftest.$ac_ext
15415cat >>conftest.$ac_ext <<_ACEOF
15416/* end confdefs.h. */
15417#include <$ac_header>
15418_ACEOF
15419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15421 ac_status=$?
15422 grep -v '^ *+' conftest.er1 >conftest.err
15423 rm -f conftest.er1
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } >/dev/null; then
15427 if test -s conftest.err; then
15428 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15430 else
15431 ac_cpp_err=
15432 fi
15433else
15434 ac_cpp_err=yes
15435fi
15436if test -z "$ac_cpp_err"; then
15437 ac_header_preproc=yes
15438else
15439 echo "$as_me: failed program was:" >&5
15440sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 ac_header_preproc=no
15443fi
15444rm -f conftest.err conftest.$ac_ext
15445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446echo "${ECHO_T}$ac_header_preproc" >&6
15447
15448# So? What about this header?
ac1cb8d3
VS
15449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15450 yes:no: )
a848cd7e
SC
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15455 ac_header_preproc=yes
a848cd7e 15456 ;;
ac1cb8d3 15457 no:yes:* )
a848cd7e
SC
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15470 (
15471 cat <<\_ASBOX
ac1cb8d3
VS
15472## ----------------------------------------- ##
15473## Report this to wx-dev@lists.wxwidgets.org ##
15474## ----------------------------------------- ##
a848cd7e
SC
15475_ASBOX
15476 ) |
15477 sed "s/^/$as_me: WARNING: /" >&2
15478 ;;
15479esac
15480echo "$as_me:$LINENO: checking for $ac_header" >&5
15481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15482if eval "test \"\${$as_ac_Header+set}\" = set"; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15484else
ac1cb8d3 15485 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15486fi
15487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15489
15490fi
15491if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15494_ACEOF
15495
15496fi
15497
15498done
15499
15500
15501for ac_header in unistd.h
15502do
15503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15504if eval "test \"\${$as_ac_Header+set}\" = set"; then
15505 echo "$as_me:$LINENO: checking for $ac_header" >&5
15506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15507if eval "test \"\${$as_ac_Header+set}\" = set"; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15509fi
15510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15512else
15513 # Is the header compilable?
15514echo "$as_me:$LINENO: checking $ac_header usability" >&5
15515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15516cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
15522$ac_includes_default
15523#include <$ac_header>
15524_ACEOF
15525rm -f conftest.$ac_objext
15526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15527 (eval $ac_compile) 2>conftest.er1
a848cd7e 15528 ac_status=$?
ac1cb8d3
VS
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
a848cd7e
SC
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
dee1a63f
MB
15534 { ac_try='test -z "$ac_c_werror_flag"
15535 || test ! -s conftest.err'
ac1cb8d3
VS
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 ac_header_compiler=yes
15548else
15549 echo "$as_me: failed program was:" >&5
15550sed 's/^/| /' conftest.$ac_ext >&5
15551
15552ac_header_compiler=no
15553fi
ac1cb8d3 15554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15555echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15556echo "${ECHO_T}$ac_header_compiler" >&6
15557
15558# Is the header present?
15559echo "$as_me:$LINENO: checking $ac_header presence" >&5
15560echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15561cat >conftest.$ac_ext <<_ACEOF
15562/* confdefs.h. */
15563_ACEOF
15564cat confdefs.h >>conftest.$ac_ext
15565cat >>conftest.$ac_ext <<_ACEOF
15566/* end confdefs.h. */
15567#include <$ac_header>
15568_ACEOF
15569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15571 ac_status=$?
15572 grep -v '^ *+' conftest.er1 >conftest.err
15573 rm -f conftest.er1
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } >/dev/null; then
15577 if test -s conftest.err; then
15578 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15580 else
15581 ac_cpp_err=
15582 fi
15583else
15584 ac_cpp_err=yes
15585fi
15586if test -z "$ac_cpp_err"; then
15587 ac_header_preproc=yes
15588else
15589 echo "$as_me: failed program was:" >&5
15590sed 's/^/| /' conftest.$ac_ext >&5
15591
15592 ac_header_preproc=no
15593fi
15594rm -f conftest.err conftest.$ac_ext
15595echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15596echo "${ECHO_T}$ac_header_preproc" >&6
15597
15598# So? What about this header?
ac1cb8d3
VS
15599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15600 yes:no: )
a848cd7e
SC
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15605 ac_header_preproc=yes
a848cd7e 15606 ;;
ac1cb8d3 15607 no:yes:* )
a848cd7e
SC
15608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15620 (
15621 cat <<\_ASBOX
ac1cb8d3
VS
15622## ----------------------------------------- ##
15623## Report this to wx-dev@lists.wxwidgets.org ##
15624## ----------------------------------------- ##
a848cd7e
SC
15625_ASBOX
15626 ) |
15627 sed "s/^/$as_me: WARNING: /" >&2
15628 ;;
15629esac
15630echo "$as_me:$LINENO: checking for $ac_header" >&5
15631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15632if eval "test \"\${$as_ac_Header+set}\" = set"; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634else
ac1cb8d3 15635 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15636fi
15637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15639
15640fi
15641if test `eval echo '${'$as_ac_Header'}'` = yes; then
15642 cat >>confdefs.h <<_ACEOF
15643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15644_ACEOF
15645
15646fi
15647
15648done
15649
15650
15651for ac_header in wchar.h
15652do
15653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15654if eval "test \"\${$as_ac_Header+set}\" = set"; then
15655 echo "$as_me:$LINENO: checking for $ac_header" >&5
15656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15657if eval "test \"\${$as_ac_Header+set}\" = set"; then
15658 echo $ECHO_N "(cached) $ECHO_C" >&6
15659fi
15660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15662else
15663 # Is the header compilable?
15664echo "$as_me:$LINENO: checking $ac_header usability" >&5
15665echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15666cat >conftest.$ac_ext <<_ACEOF
15667/* confdefs.h. */
15668_ACEOF
15669cat confdefs.h >>conftest.$ac_ext
15670cat >>conftest.$ac_ext <<_ACEOF
15671/* end confdefs.h. */
15672$ac_includes_default
15673#include <$ac_header>
15674_ACEOF
15675rm -f conftest.$ac_objext
15676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15677 (eval $ac_compile) 2>conftest.er1
a848cd7e 15678 ac_status=$?
ac1cb8d3
VS
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
a848cd7e
SC
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
dee1a63f
MB
15684 { ac_try='test -z "$ac_c_werror_flag"
15685 || test ! -s conftest.err'
ac1cb8d3
VS
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 ac_header_compiler=yes
15698else
15699 echo "$as_me: failed program was:" >&5
15700sed 's/^/| /' conftest.$ac_ext >&5
15701
15702ac_header_compiler=no
15703fi
ac1cb8d3 15704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15705echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15706echo "${ECHO_T}$ac_header_compiler" >&6
15707
15708# Is the header present?
15709echo "$as_me:$LINENO: checking $ac_header presence" >&5
15710echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15711cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717#include <$ac_header>
15718_ACEOF
15719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15721 ac_status=$?
15722 grep -v '^ *+' conftest.er1 >conftest.err
15723 rm -f conftest.er1
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } >/dev/null; then
15727 if test -s conftest.err; then
15728 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15730 else
15731 ac_cpp_err=
15732 fi
15733else
15734 ac_cpp_err=yes
15735fi
15736if test -z "$ac_cpp_err"; then
15737 ac_header_preproc=yes
15738else
15739 echo "$as_me: failed program was:" >&5
15740sed 's/^/| /' conftest.$ac_ext >&5
15741
15742 ac_header_preproc=no
15743fi
15744rm -f conftest.err conftest.$ac_ext
15745echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15746echo "${ECHO_T}$ac_header_preproc" >&6
15747
15748# So? What about this header?
ac1cb8d3
VS
15749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15750 yes:no: )
a848cd7e
SC
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15755 ac_header_preproc=yes
a848cd7e 15756 ;;
ac1cb8d3 15757 no:yes:* )
a848cd7e
SC
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15765echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15770 (
15771 cat <<\_ASBOX
ac1cb8d3
VS
15772## ----------------------------------------- ##
15773## Report this to wx-dev@lists.wxwidgets.org ##
15774## ----------------------------------------- ##
a848cd7e
SC
15775_ASBOX
15776 ) |
15777 sed "s/^/$as_me: WARNING: /" >&2
15778 ;;
15779esac
15780echo "$as_me:$LINENO: checking for $ac_header" >&5
15781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15782if eval "test \"\${$as_ac_Header+set}\" = set"; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15784else
ac1cb8d3 15785 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15786fi
15787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15789
15790fi
15791if test `eval echo '${'$as_ac_Header'}'` = yes; then
15792 cat >>confdefs.h <<_ACEOF
15793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15794_ACEOF
15795
15796fi
15797
15798done
15799
15800
15801if test "$ac_cv_header_wchar_h" != "yes"; then
15802
15803for ac_header in wcstr.h
15804do
15805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15806if eval "test \"\${$as_ac_Header+set}\" = set"; then
15807 echo "$as_me:$LINENO: checking for $ac_header" >&5
15808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15809if eval "test \"\${$as_ac_Header+set}\" = set"; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15811fi
15812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15814else
15815 # Is the header compilable?
15816echo "$as_me:$LINENO: checking $ac_header usability" >&5
15817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15818cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824$ac_includes_default
15825#include <$ac_header>
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15829 (eval $ac_compile) 2>conftest.er1
a848cd7e 15830 ac_status=$?
ac1cb8d3
VS
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
a848cd7e
SC
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
dee1a63f
MB
15836 { ac_try='test -z "$ac_c_werror_flag"
15837 || test ! -s conftest.err'
ac1cb8d3
VS
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_header_compiler=yes
15850else
15851 echo "$as_me: failed program was:" >&5
15852sed 's/^/| /' conftest.$ac_ext >&5
15853
15854ac_header_compiler=no
15855fi
ac1cb8d3 15856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15857echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15858echo "${ECHO_T}$ac_header_compiler" >&6
15859
15860# Is the header present?
15861echo "$as_me:$LINENO: checking $ac_header presence" >&5
15862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15863cat >conftest.$ac_ext <<_ACEOF
15864/* confdefs.h. */
15865_ACEOF
15866cat confdefs.h >>conftest.$ac_ext
15867cat >>conftest.$ac_ext <<_ACEOF
15868/* end confdefs.h. */
15869#include <$ac_header>
15870_ACEOF
15871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15873 ac_status=$?
15874 grep -v '^ *+' conftest.er1 >conftest.err
15875 rm -f conftest.er1
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } >/dev/null; then
15879 if test -s conftest.err; then
15880 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15882 else
15883 ac_cpp_err=
15884 fi
15885else
15886 ac_cpp_err=yes
15887fi
15888if test -z "$ac_cpp_err"; then
15889 ac_header_preproc=yes
15890else
15891 echo "$as_me: failed program was:" >&5
15892sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 ac_header_preproc=no
15895fi
15896rm -f conftest.err conftest.$ac_ext
15897echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15898echo "${ECHO_T}$ac_header_preproc" >&6
15899
15900# So? What about this header?
ac1cb8d3
VS
15901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15902 yes:no: )
a848cd7e
SC
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15907 ac_header_preproc=yes
a848cd7e 15908 ;;
ac1cb8d3 15909 no:yes:* )
a848cd7e
SC
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15922 (
15923 cat <<\_ASBOX
ac1cb8d3
VS
15924## ----------------------------------------- ##
15925## Report this to wx-dev@lists.wxwidgets.org ##
15926## ----------------------------------------- ##
a848cd7e
SC
15927_ASBOX
15928 ) |
15929 sed "s/^/$as_me: WARNING: /" >&2
15930 ;;
15931esac
15932echo "$as_me:$LINENO: checking for $ac_header" >&5
15933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15934if eval "test \"\${$as_ac_Header+set}\" = set"; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15936else
ac1cb8d3 15937 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15938fi
15939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15941
15942fi
15943if test `eval echo '${'$as_ac_Header'}'` = yes; then
15944 cat >>confdefs.h <<_ACEOF
15945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15946_ACEOF
15947
15948fi
15949
15950done
15951
15952fi
15953
15954
15955for ac_header in fnmatch.h
15956do
15957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15958if eval "test \"\${$as_ac_Header+set}\" = set"; then
15959 echo "$as_me:$LINENO: checking for $ac_header" >&5
15960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15961if eval "test \"\${$as_ac_Header+set}\" = set"; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15963fi
15964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15966else
15967 # Is the header compilable?
15968echo "$as_me:$LINENO: checking $ac_header usability" >&5
15969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15970cat >conftest.$ac_ext <<_ACEOF
15971/* confdefs.h. */
15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h. */
15976$ac_includes_default
15977#include <$ac_header>
15978_ACEOF
15979rm -f conftest.$ac_objext
15980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15981 (eval $ac_compile) 2>conftest.er1
a848cd7e 15982 ac_status=$?
ac1cb8d3
VS
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
a848cd7e
SC
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
dee1a63f
MB
15988 { ac_try='test -z "$ac_c_werror_flag"
15989 || test ! -s conftest.err'
ac1cb8d3
VS
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_header_compiler=yes
16002else
16003 echo "$as_me: failed program was:" >&5
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
16006ac_header_compiler=no
16007fi
ac1cb8d3 16008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16010echo "${ECHO_T}$ac_header_compiler" >&6
16011
16012# Is the header present?
16013echo "$as_me:$LINENO: checking $ac_header presence" >&5
16014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16015cat >conftest.$ac_ext <<_ACEOF
16016/* confdefs.h. */
16017_ACEOF
16018cat confdefs.h >>conftest.$ac_ext
16019cat >>conftest.$ac_ext <<_ACEOF
16020/* end confdefs.h. */
16021#include <$ac_header>
16022_ACEOF
16023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16025 ac_status=$?
16026 grep -v '^ *+' conftest.er1 >conftest.err
16027 rm -f conftest.er1
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } >/dev/null; then
16031 if test -s conftest.err; then
16032 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16034 else
16035 ac_cpp_err=
16036 fi
16037else
16038 ac_cpp_err=yes
16039fi
16040if test -z "$ac_cpp_err"; then
16041 ac_header_preproc=yes
16042else
16043 echo "$as_me: failed program was:" >&5
16044sed 's/^/| /' conftest.$ac_ext >&5
16045
16046 ac_header_preproc=no
16047fi
16048rm -f conftest.err conftest.$ac_ext
16049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16050echo "${ECHO_T}$ac_header_preproc" >&6
16051
16052# So? What about this header?
ac1cb8d3
VS
16053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16054 yes:no: )
a848cd7e
SC
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16059 ac_header_preproc=yes
a848cd7e 16060 ;;
ac1cb8d3 16061 no:yes:* )
a848cd7e
SC
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16074 (
16075 cat <<\_ASBOX
ac1cb8d3
VS
16076## ----------------------------------------- ##
16077## Report this to wx-dev@lists.wxwidgets.org ##
16078## ----------------------------------------- ##
a848cd7e
SC
16079_ASBOX
16080 ) |
16081 sed "s/^/$as_me: WARNING: /" >&2
16082 ;;
16083esac
16084echo "$as_me:$LINENO: checking for $ac_header" >&5
16085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16086if eval "test \"\${$as_ac_Header+set}\" = set"; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16088else
ac1cb8d3 16089 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16090fi
16091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16093
16094fi
16095if test `eval echo '${'$as_ac_Header'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16098_ACEOF
16099
16100fi
16101
16102done
16103
16104
a848cd7e
SC
16105
16106for ac_header in langinfo.h
16107do
16108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16109if eval "test \"\${$as_ac_Header+set}\" = set"; then
16110 echo "$as_me:$LINENO: checking for $ac_header" >&5
16111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16112if eval "test \"\${$as_ac_Header+set}\" = set"; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16114fi
16115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16117else
16118 # Is the header compilable?
16119echo "$as_me:$LINENO: checking $ac_header usability" >&5
16120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16121cat >conftest.$ac_ext <<_ACEOF
16122/* confdefs.h. */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
16126/* end confdefs.h. */
16127$ac_includes_default
16128#include <$ac_header>
16129_ACEOF
16130rm -f conftest.$ac_objext
16131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16132 (eval $ac_compile) 2>conftest.er1
a848cd7e 16133 ac_status=$?
ac1cb8d3
VS
16134 grep -v '^ *+' conftest.er1 >conftest.err
16135 rm -f conftest.er1
16136 cat conftest.err >&5
a848cd7e
SC
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } &&
dee1a63f
MB
16139 { ac_try='test -z "$ac_c_werror_flag"
16140 || test ! -s conftest.err'
ac1cb8d3
VS
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; } &&
16146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_header_compiler=yes
16153else
16154 echo "$as_me: failed program was:" >&5
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
16157ac_header_compiler=no
16158fi
ac1cb8d3 16159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16161echo "${ECHO_T}$ac_header_compiler" >&6
16162
16163# Is the header present?
16164echo "$as_me:$LINENO: checking $ac_header presence" >&5
16165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16166cat >conftest.$ac_ext <<_ACEOF
16167/* confdefs.h. */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
16171/* end confdefs.h. */
16172#include <$ac_header>
16173_ACEOF
16174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16176 ac_status=$?
16177 grep -v '^ *+' conftest.er1 >conftest.err
16178 rm -f conftest.er1
16179 cat conftest.err >&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } >/dev/null; then
16182 if test -s conftest.err; then
16183 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16185 else
16186 ac_cpp_err=
16187 fi
16188else
16189 ac_cpp_err=yes
16190fi
16191if test -z "$ac_cpp_err"; then
16192 ac_header_preproc=yes
16193else
16194 echo "$as_me: failed program was:" >&5
16195sed 's/^/| /' conftest.$ac_ext >&5
16196
16197 ac_header_preproc=no
16198fi
16199rm -f conftest.err conftest.$ac_ext
16200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16201echo "${ECHO_T}$ac_header_preproc" >&6
16202
16203# So? What about this header?
ac1cb8d3
VS
16204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16205 yes:no: )
a848cd7e
SC
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16210 ac_header_preproc=yes
a848cd7e 16211 ;;
ac1cb8d3 16212 no:yes:* )
a848cd7e
SC
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16220echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16225 (
16226 cat <<\_ASBOX
ac1cb8d3
VS
16227## ----------------------------------------- ##
16228## Report this to wx-dev@lists.wxwidgets.org ##
16229## ----------------------------------------- ##
a848cd7e
SC
16230_ASBOX
16231 ) |
16232 sed "s/^/$as_me: WARNING: /" >&2
16233 ;;
16234esac
16235echo "$as_me:$LINENO: checking for $ac_header" >&5
16236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16237if eval "test \"\${$as_ac_Header+set}\" = set"; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239else
ac1cb8d3 16240 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16241fi
16242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16244
16245fi
16246if test `eval echo '${'$as_ac_Header'}'` = yes; then
16247 cat >>confdefs.h <<_ACEOF
16248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16249_ACEOF
16250
16251fi
16252
16253done
16254
16255
16256case "${host}" in
16257 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16258 if test $ac_cv_header_langinfo_h = "yes" \
16259 -a \( "$wx_cv_gccversion" = "EMX2" \
16260 -o "$wx_cv_gccversion" = "EMX3" \
16261 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16262 LIBS="$LIBS -lintl"
16263 fi
16264 ;;
16265esac
16266
a848cd7e
SC
16267
16268echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16269echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16270if test "${ac_cv_c_const+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16272else
16273 cat >conftest.$ac_ext <<_ACEOF
16274/* confdefs.h. */
16275_ACEOF
16276cat confdefs.h >>conftest.$ac_ext
16277cat >>conftest.$ac_ext <<_ACEOF
16278/* end confdefs.h. */
16279
16280int
16281main ()
16282{
16283/* FIXME: Include the comments suggested by Paul. */
16284#ifndef __cplusplus
16285 /* Ultrix mips cc rejects this. */
16286 typedef int charset[2];
16287 const charset x;
16288 /* SunOS 4.1.1 cc rejects this. */
16289 char const *const *ccp;
16290 char **p;
16291 /* NEC SVR4.0.2 mips cc rejects this. */
16292 struct point {int x, y;};
16293 static struct point const zero = {0,0};
16294 /* AIX XL C 1.02.0.0 rejects this.
16295 It does not let you subtract one const X* pointer from another in
16296 an arm of an if-expression whose if-part is not a constant
16297 expression */
16298 const char *g = "string";
16299 ccp = &g + (g ? g-g : 0);
16300 /* HPUX 7.0 cc rejects these. */
16301 ++ccp;
16302 p = (char**) ccp;
16303 ccp = (char const *const *) p;
16304 { /* SCO 3.2v4 cc rejects this. */
16305 char *t;
16306 char const *s = 0 ? (char *) 0 : (char const *) 0;
16307
16308 *t++ = 0;
16309 }
16310 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16311 int x[] = {25, 17};
16312 const int *foo = &x[0];
16313 ++foo;
16314 }
16315 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16316 typedef const int *iptr;
16317 iptr p = 0;
16318 ++p;
16319 }
16320 { /* AIX XL C 1.02.0.0 rejects this saying
16321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16322 struct s { int j; const int *ap[3]; };
16323 struct s *b; b->j = 5;
16324 }
16325 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16326 const int foo = 10;
16327 }
16328#endif
16329
16330 ;
16331 return 0;
16332}
16333_ACEOF
16334rm -f conftest.$ac_objext
16335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16336 (eval $ac_compile) 2>conftest.er1
a848cd7e 16337 ac_status=$?
ac1cb8d3
VS
16338 grep -v '^ *+' conftest.er1 >conftest.err
16339 rm -f conftest.er1
16340 cat conftest.err >&5
a848cd7e
SC
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
dee1a63f
MB
16343 { ac_try='test -z "$ac_c_werror_flag"
16344 || test ! -s conftest.err'
ac1cb8d3
VS
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; } &&
16350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16356 ac_cv_c_const=yes
16357else
16358 echo "$as_me: failed program was:" >&5
16359sed 's/^/| /' conftest.$ac_ext >&5
16360
16361ac_cv_c_const=no
16362fi
ac1cb8d3 16363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16364fi
16365echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16366echo "${ECHO_T}$ac_cv_c_const" >&6
16367if test $ac_cv_c_const = no; then
16368
16369cat >>confdefs.h <<\_ACEOF
16370#define const
16371_ACEOF
16372
16373fi
16374
16375echo "$as_me:$LINENO: checking for inline" >&5
16376echo $ECHO_N "checking for inline... $ECHO_C" >&6
16377if test "${ac_cv_c_inline+set}" = set; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16379else
16380 ac_cv_c_inline=no
16381for ac_kw in inline __inline__ __inline; do
16382 cat >conftest.$ac_ext <<_ACEOF
16383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388#ifndef __cplusplus
16389typedef int foo_t;
16390static $ac_kw foo_t static_foo () {return 0; }
16391$ac_kw foo_t foo () {return 0; }
16392#endif
16393
16394_ACEOF
16395rm -f conftest.$ac_objext
16396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16397 (eval $ac_compile) 2>conftest.er1
a848cd7e 16398 ac_status=$?
ac1cb8d3
VS
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
a848cd7e
SC
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
dee1a63f
MB
16404 { ac_try='test -z "$ac_c_werror_flag"
16405 || test ! -s conftest.err'
ac1cb8d3
VS
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_cv_c_inline=$ac_kw; break
16418else
16419 echo "$as_me: failed program was:" >&5
16420sed 's/^/| /' conftest.$ac_ext >&5
16421
16422fi
ac1cb8d3 16423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16424done
16425
16426fi
16427echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16428echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16429
16430
a848cd7e
SC
16431case $ac_cv_c_inline in
16432 inline | yes) ;;
ac1cb8d3
VS
16433 *)
16434 case $ac_cv_c_inline in
16435 no) ac_val=;;
16436 *) ac_val=$ac_cv_c_inline;;
16437 esac
16438 cat >>confdefs.h <<_ACEOF
16439#ifndef __cplusplus
16440#define inline $ac_val
16441#endif
de59c161 16442_ACEOF
ac1cb8d3 16443 ;;
a848cd7e
SC
16444esac
16445
16446
16447echo "$as_me:$LINENO: checking for char" >&5
16448echo $ECHO_N "checking for char... $ECHO_C" >&6
16449if test "${ac_cv_type_char+set}" = set; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16451else
16452 cat >conftest.$ac_ext <<_ACEOF
16453/* confdefs.h. */
16454_ACEOF
16455cat confdefs.h >>conftest.$ac_ext
16456cat >>conftest.$ac_ext <<_ACEOF
16457/* end confdefs.h. */
16458$ac_includes_default
16459int
16460main ()
16461{
16462if ((char *) 0)
16463 return 0;
16464if (sizeof (char))
16465 return 0;
16466 ;
16467 return 0;
16468}
16469_ACEOF
16470rm -f conftest.$ac_objext
16471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16472 (eval $ac_compile) 2>conftest.er1
a848cd7e 16473 ac_status=$?
ac1cb8d3
VS
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
a848cd7e
SC
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
dee1a63f
MB
16479 { ac_try='test -z "$ac_c_werror_flag"
16480 || test ! -s conftest.err'
ac1cb8d3
VS
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; } &&
16486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 ac_cv_type_char=yes
16493else
16494 echo "$as_me: failed program was:" >&5
16495sed 's/^/| /' conftest.$ac_ext >&5
16496
16497ac_cv_type_char=no
16498fi
ac1cb8d3 16499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16500fi
16501echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16502echo "${ECHO_T}$ac_cv_type_char" >&6
16503
16504echo "$as_me:$LINENO: checking size of char" >&5
16505echo $ECHO_N "checking size of char... $ECHO_C" >&6
16506if test "${ac_cv_sizeof_char+set}" = set; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16508else
16509 if test "$ac_cv_type_char" = yes; then
16510 # The cast to unsigned long works around a bug in the HP C Compiler
16511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16513 # This bug is HP SR number 8606223364.
16514 if test "$cross_compiling" = yes; then
16515 # Depending upon the size, compute the lo and hi bounds.
16516cat >conftest.$ac_ext <<_ACEOF
16517/* confdefs.h. */
16518_ACEOF
16519cat confdefs.h >>conftest.$ac_ext
16520cat >>conftest.$ac_ext <<_ACEOF
16521/* end confdefs.h. */
16522$ac_includes_default
16523int
16524main ()
16525{
16526static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16527test_array [0] = 0
16528
16529 ;
16530 return 0;
16531}
16532_ACEOF
16533rm -f conftest.$ac_objext
16534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16535 (eval $ac_compile) 2>conftest.er1
a848cd7e 16536 ac_status=$?
ac1cb8d3
VS
16537 grep -v '^ *+' conftest.er1 >conftest.err
16538 rm -f conftest.er1
16539 cat conftest.err >&5
a848cd7e
SC
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
dee1a63f
MB
16542 { ac_try='test -z "$ac_c_werror_flag"
16543 || test ! -s conftest.err'
ac1cb8d3
VS
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; } &&
16549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_lo=0 ac_mid=0
16556 while :; do
16557 cat >conftest.$ac_ext <<_ACEOF
16558/* confdefs.h. */
16559_ACEOF
16560cat confdefs.h >>conftest.$ac_ext
16561cat >>conftest.$ac_ext <<_ACEOF
16562/* end confdefs.h. */
16563$ac_includes_default
16564int
16565main ()
16566{
16567static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16568test_array [0] = 0
16569
16570 ;
16571 return 0;
16572}
16573_ACEOF
16574rm -f conftest.$ac_objext
16575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16576 (eval $ac_compile) 2>conftest.er1
a848cd7e 16577 ac_status=$?
ac1cb8d3
VS
16578 grep -v '^ *+' conftest.er1 >conftest.err
16579 rm -f conftest.er1
16580 cat conftest.err >&5
a848cd7e
SC
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
dee1a63f
MB
16583 { ac_try='test -z "$ac_c_werror_flag"
16584 || test ! -s conftest.err'
ac1cb8d3
VS
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } &&
16590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16593 ac_status=$?
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; }; then
16596 ac_hi=$ac_mid; break
16597else
16598 echo "$as_me: failed program was:" >&5
16599sed 's/^/| /' conftest.$ac_ext >&5
16600
16601ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16602 if test $ac_lo -le $ac_mid; then
16603 ac_lo= ac_hi=
16604 break
16605 fi
16606 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16607fi
ac1cb8d3 16608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16609 done
16610else
16611 echo "$as_me: failed program was:" >&5
16612sed 's/^/| /' conftest.$ac_ext >&5
16613
16614cat >conftest.$ac_ext <<_ACEOF
16615/* confdefs.h. */
16616_ACEOF
16617cat confdefs.h >>conftest.$ac_ext
16618cat >>conftest.$ac_ext <<_ACEOF
16619/* end confdefs.h. */
16620$ac_includes_default
16621int
16622main ()
16623{
16624static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16625test_array [0] = 0
16626
16627 ;
16628 return 0;
16629}
16630_ACEOF
16631rm -f conftest.$ac_objext
16632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16633 (eval $ac_compile) 2>conftest.er1
a848cd7e 16634 ac_status=$?
ac1cb8d3
VS
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
a848cd7e
SC
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
dee1a63f
MB
16640 { ac_try='test -z "$ac_c_werror_flag"
16641 || test ! -s conftest.err'
ac1cb8d3
VS
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16644 ac_status=$?
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 ac_hi=-1 ac_mid=-1
16654 while :; do
16655 cat >conftest.$ac_ext <<_ACEOF
16656/* confdefs.h. */
16657_ACEOF
16658cat confdefs.h >>conftest.$ac_ext
16659cat >>conftest.$ac_ext <<_ACEOF
16660/* end confdefs.h. */
16661$ac_includes_default
16662int
16663main ()
16664{
16665static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16666test_array [0] = 0
16667
16668 ;
16669 return 0;
16670}
16671_ACEOF
16672rm -f conftest.$ac_objext
16673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16674 (eval $ac_compile) 2>conftest.er1
a848cd7e 16675 ac_status=$?
ac1cb8d3
VS
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
a848cd7e
SC
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
dee1a63f
MB
16681 { ac_try='test -z "$ac_c_werror_flag"
16682 || test ! -s conftest.err'
ac1cb8d3
VS
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_lo=$ac_mid; break
16695else
16696 echo "$as_me: failed program was:" >&5
16697sed 's/^/| /' conftest.$ac_ext >&5
16698
16699ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16700 if test $ac_mid -le $ac_hi; then
16701 ac_lo= ac_hi=
16702 break
16703 fi
16704 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16705fi
ac1cb8d3 16706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16707 done
16708else
16709 echo "$as_me: failed program was:" >&5
16710sed 's/^/| /' conftest.$ac_ext >&5
16711
16712ac_lo= ac_hi=
16713fi
ac1cb8d3 16714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16715fi
ac1cb8d3 16716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16717# Binary search between lo and hi bounds.
16718while test "x$ac_lo" != "x$ac_hi"; do
16719 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16720 cat >conftest.$ac_ext <<_ACEOF
16721/* confdefs.h. */
16722_ACEOF
16723cat confdefs.h >>conftest.$ac_ext
16724cat >>conftest.$ac_ext <<_ACEOF
16725/* end confdefs.h. */
16726$ac_includes_default
16727int
16728main ()
16729{
16730static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16731test_array [0] = 0
16732
16733 ;
16734 return 0;
16735}
16736_ACEOF
16737rm -f conftest.$ac_objext
16738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16739 (eval $ac_compile) 2>conftest.er1
a848cd7e 16740 ac_status=$?
ac1cb8d3
VS
16741 grep -v '^ *+' conftest.er1 >conftest.err
16742 rm -f conftest.er1
16743 cat conftest.err >&5
a848cd7e
SC
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
dee1a63f
MB
16746 { ac_try='test -z "$ac_c_werror_flag"
16747 || test ! -s conftest.err'
ac1cb8d3
VS
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 ac_hi=$ac_mid
16760else
16761 echo "$as_me: failed program was:" >&5
16762sed 's/^/| /' conftest.$ac_ext >&5
16763
16764ac_lo=`expr '(' $ac_mid ')' + 1`
16765fi
ac1cb8d3 16766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16767done
16768case $ac_lo in
16769?*) ac_cv_sizeof_char=$ac_lo;;
16770'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16771See \`config.log' for more details." >&5
16772echo "$as_me: error: cannot compute sizeof (char), 77
16773See \`config.log' for more details." >&2;}
16774 { (exit 1); exit 1; }; } ;;
16775esac
16776else
16777 if test "$cross_compiling" = yes; then
dee1a63f
MB
16778 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16779See \`config.log' for more details." >&5
16780echo "$as_me: error: cannot run test program while cross compiling
16781See \`config.log' for more details." >&2;}
a848cd7e
SC
16782 { (exit 1); exit 1; }; }
16783else
16784 cat >conftest.$ac_ext <<_ACEOF
16785/* confdefs.h. */
16786_ACEOF
16787cat confdefs.h >>conftest.$ac_ext
16788cat >>conftest.$ac_ext <<_ACEOF
16789/* end confdefs.h. */
16790$ac_includes_default
16791long longval () { return (long) (sizeof (char)); }
16792unsigned long ulongval () { return (long) (sizeof (char)); }
16793#include <stdio.h>
16794#include <stdlib.h>
16795int
16796main ()
16797{
16798
16799 FILE *f = fopen ("conftest.val", "w");
16800 if (! f)
16801 exit (1);
16802 if (((long) (sizeof (char))) < 0)
16803 {
16804 long i = longval ();
16805 if (i != ((long) (sizeof (char))))
16806 exit (1);
16807 fprintf (f, "%ld\n", i);
16808 }
16809 else
16810 {
16811 unsigned long i = ulongval ();
16812 if (i != ((long) (sizeof (char))))
16813 exit (1);
16814 fprintf (f, "%lu\n", i);
16815 }
16816 exit (ferror (f) || fclose (f) != 0);
16817
16818 ;
16819 return 0;
16820}
16821_ACEOF
16822rm -f conftest$ac_exeext
16823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16824 (eval $ac_link) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 ac_cv_sizeof_char=`cat conftest.val`
16834else
16835 echo "$as_me: program exited with status $ac_status" >&5
16836echo "$as_me: failed program was:" >&5
16837sed 's/^/| /' conftest.$ac_ext >&5
16838
16839( exit $ac_status )
16840{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16841See \`config.log' for more details." >&5
16842echo "$as_me: error: cannot compute sizeof (char), 77
16843See \`config.log' for more details." >&2;}
16844 { (exit 1); exit 1; }; }
16845fi
ac1cb8d3 16846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16847fi
16848fi
16849rm -f conftest.val
16850else
16851 ac_cv_sizeof_char=0
16852fi
16853fi
16854echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16855echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16856cat >>confdefs.h <<_ACEOF
16857#define SIZEOF_CHAR $ac_cv_sizeof_char
16858_ACEOF
16859
16860
16861echo "$as_me:$LINENO: checking for short" >&5
16862echo $ECHO_N "checking for short... $ECHO_C" >&6
16863if test "${ac_cv_type_short+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865else
16866 cat >conftest.$ac_ext <<_ACEOF
16867/* confdefs.h. */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h. */
16872$ac_includes_default
16873int
16874main ()
16875{
16876if ((short *) 0)
16877 return 0;
16878if (sizeof (short))
16879 return 0;
16880 ;
16881 return 0;
16882}
16883_ACEOF
16884rm -f conftest.$ac_objext
16885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16886 (eval $ac_compile) 2>conftest.er1
a848cd7e 16887 ac_status=$?
ac1cb8d3
VS
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
a848cd7e
SC
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
dee1a63f
MB
16893 { ac_try='test -z "$ac_c_werror_flag"
16894 || test ! -s conftest.err'
ac1cb8d3
VS
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16906 ac_cv_type_short=yes
16907else
16908 echo "$as_me: failed program was:" >&5
16909sed 's/^/| /' conftest.$ac_ext >&5
16910
16911ac_cv_type_short=no
16912fi
ac1cb8d3 16913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16914fi
16915echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16916echo "${ECHO_T}$ac_cv_type_short" >&6
16917
16918echo "$as_me:$LINENO: checking size of short" >&5
16919echo $ECHO_N "checking size of short... $ECHO_C" >&6
16920if test "${ac_cv_sizeof_short+set}" = set; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16922else
16923 if test "$ac_cv_type_short" = yes; then
16924 # The cast to unsigned long works around a bug in the HP C Compiler
16925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16927 # This bug is HP SR number 8606223364.
16928 if test "$cross_compiling" = yes; then
16929 # Depending upon the size, compute the lo and hi bounds.
16930cat >conftest.$ac_ext <<_ACEOF
16931/* confdefs.h. */
16932_ACEOF
16933cat confdefs.h >>conftest.$ac_ext
16934cat >>conftest.$ac_ext <<_ACEOF
16935/* end confdefs.h. */
16936$ac_includes_default
16937int
16938main ()
16939{
16940static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16941test_array [0] = 0
16942
16943 ;
16944 return 0;
16945}
16946_ACEOF
16947rm -f conftest.$ac_objext
16948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16949 (eval $ac_compile) 2>conftest.er1
a848cd7e 16950 ac_status=$?
ac1cb8d3
VS
16951 grep -v '^ *+' conftest.er1 >conftest.err
16952 rm -f conftest.er1
16953 cat conftest.err >&5
a848cd7e
SC
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
dee1a63f
MB
16956 { ac_try='test -z "$ac_c_werror_flag"
16957 || test ! -s conftest.err'
ac1cb8d3
VS
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; } &&
16963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; }; then
16969 ac_lo=0 ac_mid=0
16970 while :; do
16971 cat >conftest.$ac_ext <<_ACEOF
16972/* confdefs.h. */
16973_ACEOF
16974cat confdefs.h >>conftest.$ac_ext
16975cat >>conftest.$ac_ext <<_ACEOF
16976/* end confdefs.h. */
16977$ac_includes_default
16978int
16979main ()
16980{
16981static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16982test_array [0] = 0
16983
16984 ;
16985 return 0;
16986}
16987_ACEOF
16988rm -f conftest.$ac_objext
16989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16990 (eval $ac_compile) 2>conftest.er1
a848cd7e 16991 ac_status=$?
ac1cb8d3
VS
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
a848cd7e
SC
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
dee1a63f
MB
16997 { ac_try='test -z "$ac_c_werror_flag"
16998 || test ! -s conftest.err'
ac1cb8d3
VS
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_hi=$ac_mid; break
17011else
17012 echo "$as_me: failed program was:" >&5
17013sed 's/^/| /' conftest.$ac_ext >&5
17014
17015ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17016 if test $ac_lo -le $ac_mid; then
17017 ac_lo= ac_hi=
17018 break
17019 fi
17020 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17021fi
ac1cb8d3 17022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17023 done
17024else
17025 echo "$as_me: failed program was:" >&5
17026sed 's/^/| /' conftest.$ac_ext >&5
17027
17028cat >conftest.$ac_ext <<_ACEOF
17029/* confdefs.h. */
17030_ACEOF
17031cat confdefs.h >>conftest.$ac_ext
17032cat >>conftest.$ac_ext <<_ACEOF
17033/* end confdefs.h. */
17034$ac_includes_default
17035int
17036main ()
17037{
17038static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17039test_array [0] = 0
17040
17041 ;
17042 return 0;
17043}
17044_ACEOF
17045rm -f conftest.$ac_objext
17046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17047 (eval $ac_compile) 2>conftest.er1
a848cd7e 17048 ac_status=$?
ac1cb8d3
VS
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
a848cd7e
SC
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
dee1a63f
MB
17054 { ac_try='test -z "$ac_c_werror_flag"
17055 || test ! -s conftest.err'
ac1cb8d3
VS
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_hi=-1 ac_mid=-1
17068 while :; do
17069 cat >conftest.$ac_ext <<_ACEOF
17070/* confdefs.h. */
17071_ACEOF
17072cat confdefs.h >>conftest.$ac_ext
17073cat >>conftest.$ac_ext <<_ACEOF
17074/* end confdefs.h. */
17075$ac_includes_default
17076int
17077main ()
17078{
17079static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17080test_array [0] = 0
17081
17082 ;
17083 return 0;
17084}
17085_ACEOF
17086rm -f conftest.$ac_objext
17087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17088 (eval $ac_compile) 2>conftest.er1
a848cd7e 17089 ac_status=$?
ac1cb8d3
VS
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
a848cd7e
SC
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
dee1a63f
MB
17095 { ac_try='test -z "$ac_c_werror_flag"
17096 || test ! -s conftest.err'
ac1cb8d3
VS
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; } &&
17102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; }; then
17108 ac_lo=$ac_mid; break
17109else
17110 echo "$as_me: failed program was:" >&5
17111sed 's/^/| /' conftest.$ac_ext >&5
17112
17113ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17114 if test $ac_mid -le $ac_hi; then
17115 ac_lo= ac_hi=
17116 break
17117 fi
17118 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17119fi
ac1cb8d3 17120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17121 done
17122else
17123 echo "$as_me: failed program was:" >&5
17124sed 's/^/| /' conftest.$ac_ext >&5
17125
17126ac_lo= ac_hi=
17127fi
ac1cb8d3 17128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17129fi
ac1cb8d3 17130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17131# Binary search between lo and hi bounds.
17132while test "x$ac_lo" != "x$ac_hi"; do
17133 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17134 cat >conftest.$ac_ext <<_ACEOF
17135/* confdefs.h. */
17136_ACEOF
17137cat confdefs.h >>conftest.$ac_ext
17138cat >>conftest.$ac_ext <<_ACEOF
17139/* end confdefs.h. */
17140$ac_includes_default
17141int
17142main ()
17143{
17144static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17145test_array [0] = 0
17146
17147 ;
17148 return 0;
17149}
17150_ACEOF
17151rm -f conftest.$ac_objext
17152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17153 (eval $ac_compile) 2>conftest.er1
a848cd7e 17154 ac_status=$?
ac1cb8d3
VS
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
a848cd7e
SC
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
dee1a63f
MB
17160 { ac_try='test -z "$ac_c_werror_flag"
17161 || test ! -s conftest.err'
ac1cb8d3
VS
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_hi=$ac_mid
17174else
17175 echo "$as_me: failed program was:" >&5
17176sed 's/^/| /' conftest.$ac_ext >&5
17177
17178ac_lo=`expr '(' $ac_mid ')' + 1`
17179fi
ac1cb8d3 17180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17181done
17182case $ac_lo in
17183?*) ac_cv_sizeof_short=$ac_lo;;
17184'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17185See \`config.log' for more details." >&5
17186echo "$as_me: error: cannot compute sizeof (short), 77
17187See \`config.log' for more details." >&2;}
17188 { (exit 1); exit 1; }; } ;;
17189esac
17190else
17191 if test "$cross_compiling" = yes; then
dee1a63f
MB
17192 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17193See \`config.log' for more details." >&5
17194echo "$as_me: error: cannot run test program while cross compiling
17195See \`config.log' for more details." >&2;}
a848cd7e
SC
17196 { (exit 1); exit 1; }; }
17197else
17198 cat >conftest.$ac_ext <<_ACEOF
17199/* confdefs.h. */
17200_ACEOF
17201cat confdefs.h >>conftest.$ac_ext
17202cat >>conftest.$ac_ext <<_ACEOF
17203/* end confdefs.h. */
17204$ac_includes_default
17205long longval () { return (long) (sizeof (short)); }
17206unsigned long ulongval () { return (long) (sizeof (short)); }
17207#include <stdio.h>
17208#include <stdlib.h>
17209int
17210main ()
17211{
17212
17213 FILE *f = fopen ("conftest.val", "w");
17214 if (! f)
17215 exit (1);
17216 if (((long) (sizeof (short))) < 0)
17217 {
17218 long i = longval ();
17219 if (i != ((long) (sizeof (short))))
17220 exit (1);
17221 fprintf (f, "%ld\n", i);
17222 }
17223 else
17224 {
17225 unsigned long i = ulongval ();
17226 if (i != ((long) (sizeof (short))))
17227 exit (1);
17228 fprintf (f, "%lu\n", i);
17229 }
17230 exit (ferror (f) || fclose (f) != 0);
17231
17232 ;
17233 return 0;
17234}
17235_ACEOF
17236rm -f conftest$ac_exeext
17237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17238 (eval $ac_link) 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; }; then
17247 ac_cv_sizeof_short=`cat conftest.val`
17248else
17249 echo "$as_me: program exited with status $ac_status" >&5
17250echo "$as_me: failed program was:" >&5
17251sed 's/^/| /' conftest.$ac_ext >&5
17252
17253( exit $ac_status )
17254{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17255See \`config.log' for more details." >&5
17256echo "$as_me: error: cannot compute sizeof (short), 77
17257See \`config.log' for more details." >&2;}
17258 { (exit 1); exit 1; }; }
17259fi
ac1cb8d3 17260rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17261fi
17262fi
17263rm -f conftest.val
17264else
17265 ac_cv_sizeof_short=0
17266fi
17267fi
17268echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17269echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17270cat >>confdefs.h <<_ACEOF
17271#define SIZEOF_SHORT $ac_cv_sizeof_short
17272_ACEOF
17273
17274
17275echo "$as_me:$LINENO: checking for void *" >&5
17276echo $ECHO_N "checking for void *... $ECHO_C" >&6
17277if test "${ac_cv_type_void_p+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17279else
17280 cat >conftest.$ac_ext <<_ACEOF
17281/* confdefs.h. */
17282_ACEOF
17283cat confdefs.h >>conftest.$ac_ext
17284cat >>conftest.$ac_ext <<_ACEOF
17285/* end confdefs.h. */
17286$ac_includes_default
17287int
17288main ()
17289{
17290if ((void * *) 0)
17291 return 0;
17292if (sizeof (void *))
17293 return 0;
17294 ;
17295 return 0;
17296}
17297_ACEOF
17298rm -f conftest.$ac_objext
17299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17300 (eval $ac_compile) 2>conftest.er1
a848cd7e 17301 ac_status=$?
ac1cb8d3
VS
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
a848cd7e
SC
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
dee1a63f
MB
17307 { ac_try='test -z "$ac_c_werror_flag"
17308 || test ! -s conftest.err'
ac1cb8d3
VS
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 ac_cv_type_void_p=yes
17321else
17322 echo "$as_me: failed program was:" >&5
17323sed 's/^/| /' conftest.$ac_ext >&5
17324
17325ac_cv_type_void_p=no
17326fi
ac1cb8d3 17327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17328fi
17329echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17330echo "${ECHO_T}$ac_cv_type_void_p" >&6
17331
17332echo "$as_me:$LINENO: checking size of void *" >&5
17333echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17334if test "${ac_cv_sizeof_void_p+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17336else
17337 if test "$ac_cv_type_void_p" = yes; then
17338 # The cast to unsigned long works around a bug in the HP C Compiler
17339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17341 # This bug is HP SR number 8606223364.
17342 if test "$cross_compiling" = yes; then
17343 # Depending upon the size, compute the lo and hi bounds.
17344cat >conftest.$ac_ext <<_ACEOF
17345/* confdefs.h. */
17346_ACEOF
17347cat confdefs.h >>conftest.$ac_ext
17348cat >>conftest.$ac_ext <<_ACEOF
17349/* end confdefs.h. */
17350$ac_includes_default
17351int
17352main ()
17353{
17354static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17355test_array [0] = 0
17356
17357 ;
17358 return 0;
17359}
17360_ACEOF
17361rm -f conftest.$ac_objext
17362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17363 (eval $ac_compile) 2>conftest.er1
a848cd7e 17364 ac_status=$?
ac1cb8d3
VS
17365 grep -v '^ *+' conftest.er1 >conftest.err
17366 rm -f conftest.er1
17367 cat conftest.err >&5
a848cd7e
SC
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } &&
dee1a63f
MB
17370 { ac_try='test -z "$ac_c_werror_flag"
17371 || test ! -s conftest.err'
ac1cb8d3
VS
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_lo=0 ac_mid=0
17384 while :; do
17385 cat >conftest.$ac_ext <<_ACEOF
17386/* confdefs.h. */
17387_ACEOF
17388cat confdefs.h >>conftest.$ac_ext
17389cat >>conftest.$ac_ext <<_ACEOF
17390/* end confdefs.h. */
17391$ac_includes_default
17392int
17393main ()
17394{
17395static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17396test_array [0] = 0
17397
17398 ;
17399 return 0;
17400}
17401_ACEOF
17402rm -f conftest.$ac_objext
17403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17404 (eval $ac_compile) 2>conftest.er1
a848cd7e 17405 ac_status=$?
ac1cb8d3
VS
17406 grep -v '^ *+' conftest.er1 >conftest.err
17407 rm -f conftest.er1
17408 cat conftest.err >&5
a848cd7e
SC
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
dee1a63f
MB
17411 { ac_try='test -z "$ac_c_werror_flag"
17412 || test ! -s conftest.err'
ac1cb8d3
VS
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; } &&
17418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17421 ac_status=$?
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17424 ac_hi=$ac_mid; break
17425else
17426 echo "$as_me: failed program was:" >&5
17427sed 's/^/| /' conftest.$ac_ext >&5
17428
17429ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17430 if test $ac_lo -le $ac_mid; then
17431 ac_lo= ac_hi=
17432 break
17433 fi
17434 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17435fi
ac1cb8d3 17436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17437 done
17438else
17439 echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
17442cat >conftest.$ac_ext <<_ACEOF
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448$ac_includes_default
17449int
17450main ()
17451{
17452static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17453test_array [0] = 0
17454
17455 ;
17456 return 0;
17457}
17458_ACEOF
17459rm -f conftest.$ac_objext
17460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17461 (eval $ac_compile) 2>conftest.er1
a848cd7e 17462 ac_status=$?
ac1cb8d3
VS
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
a848cd7e
SC
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
dee1a63f
MB
17468 { ac_try='test -z "$ac_c_werror_flag"
17469 || test ! -s conftest.err'
ac1cb8d3
VS
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; } &&
17475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_hi=-1 ac_mid=-1
17482 while :; do
17483 cat >conftest.$ac_ext <<_ACEOF
17484/* confdefs.h. */
17485_ACEOF
17486cat confdefs.h >>conftest.$ac_ext
17487cat >>conftest.$ac_ext <<_ACEOF
17488/* end confdefs.h. */
17489$ac_includes_default
17490int
17491main ()
17492{
17493static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17494test_array [0] = 0
17495
17496 ;
17497 return 0;
17498}
17499_ACEOF
17500rm -f conftest.$ac_objext
17501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17502 (eval $ac_compile) 2>conftest.er1
a848cd7e 17503 ac_status=$?
ac1cb8d3
VS
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
a848cd7e
SC
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
dee1a63f
MB
17509 { ac_try='test -z "$ac_c_werror_flag"
17510 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 ac_lo=$ac_mid; break
17523else
17524 echo "$as_me: failed program was:" >&5
17525sed 's/^/| /' conftest.$ac_ext >&5
17526
17527ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17528 if test $ac_mid -le $ac_hi; then
17529 ac_lo= ac_hi=
17530 break
17531 fi
17532 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17533fi
ac1cb8d3 17534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17535 done
17536else
17537 echo "$as_me: failed program was:" >&5
17538sed 's/^/| /' conftest.$ac_ext >&5
17539
17540ac_lo= ac_hi=
17541fi
ac1cb8d3 17542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17543fi
ac1cb8d3 17544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17545# Binary search between lo and hi bounds.
17546while test "x$ac_lo" != "x$ac_hi"; do
17547 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17548 cat >conftest.$ac_ext <<_ACEOF
17549/* confdefs.h. */
17550_ACEOF
17551cat confdefs.h >>conftest.$ac_ext
17552cat >>conftest.$ac_ext <<_ACEOF
17553/* end confdefs.h. */
17554$ac_includes_default
17555int
17556main ()
17557{
17558static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17559test_array [0] = 0
17560
17561 ;
17562 return 0;
17563}
17564_ACEOF
17565rm -f conftest.$ac_objext
17566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17567 (eval $ac_compile) 2>conftest.er1
a848cd7e 17568 ac_status=$?
ac1cb8d3
VS
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
a848cd7e
SC
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
dee1a63f
MB
17574 { ac_try='test -z "$ac_c_werror_flag"
17575 || test ! -s conftest.err'
ac1cb8d3
VS
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 ac_hi=$ac_mid
17588else
17589 echo "$as_me: failed program was:" >&5
17590sed 's/^/| /' conftest.$ac_ext >&5
17591
17592ac_lo=`expr '(' $ac_mid ')' + 1`
17593fi
ac1cb8d3 17594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17595done
17596case $ac_lo in
17597?*) ac_cv_sizeof_void_p=$ac_lo;;
17598'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17599See \`config.log' for more details." >&5
17600echo "$as_me: error: cannot compute sizeof (void *), 77
17601See \`config.log' for more details." >&2;}
17602 { (exit 1); exit 1; }; } ;;
17603esac
17604else
17605 if test "$cross_compiling" = yes; then
dee1a63f
MB
17606 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17607See \`config.log' for more details." >&5
17608echo "$as_me: error: cannot run test program while cross compiling
17609See \`config.log' for more details." >&2;}
a848cd7e
SC
17610 { (exit 1); exit 1; }; }
17611else
17612 cat >conftest.$ac_ext <<_ACEOF
17613/* confdefs.h. */
17614_ACEOF
17615cat confdefs.h >>conftest.$ac_ext
17616cat >>conftest.$ac_ext <<_ACEOF
17617/* end confdefs.h. */
17618$ac_includes_default
17619long longval () { return (long) (sizeof (void *)); }
17620unsigned long ulongval () { return (long) (sizeof (void *)); }
17621#include <stdio.h>
17622#include <stdlib.h>
17623int
17624main ()
17625{
17626
17627 FILE *f = fopen ("conftest.val", "w");
17628 if (! f)
17629 exit (1);
17630 if (((long) (sizeof (void *))) < 0)
17631 {
17632 long i = longval ();
17633 if (i != ((long) (sizeof (void *))))
17634 exit (1);
17635 fprintf (f, "%ld\n", i);
17636 }
17637 else
17638 {
17639 unsigned long i = ulongval ();
17640 if (i != ((long) (sizeof (void *))))
17641 exit (1);
17642 fprintf (f, "%lu\n", i);
17643 }
17644 exit (ferror (f) || fclose (f) != 0);
17645
17646 ;
17647 return 0;
17648}
17649_ACEOF
17650rm -f conftest$ac_exeext
17651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652 (eval $ac_link) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 ac_cv_sizeof_void_p=`cat conftest.val`
17662else
17663 echo "$as_me: program exited with status $ac_status" >&5
17664echo "$as_me: failed program was:" >&5
17665sed 's/^/| /' conftest.$ac_ext >&5
17666
17667( exit $ac_status )
17668{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17669See \`config.log' for more details." >&5
17670echo "$as_me: error: cannot compute sizeof (void *), 77
17671See \`config.log' for more details." >&2;}
17672 { (exit 1); exit 1; }; }
17673fi
ac1cb8d3 17674rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17675fi
17676fi
17677rm -f conftest.val
17678else
17679 ac_cv_sizeof_void_p=0
17680fi
17681fi
17682echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17683echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17684cat >>confdefs.h <<_ACEOF
17685#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17686_ACEOF
17687
17688
17689echo "$as_me:$LINENO: checking for int" >&5
17690echo $ECHO_N "checking for int... $ECHO_C" >&6
17691if test "${ac_cv_type_int+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693else
17694 cat >conftest.$ac_ext <<_ACEOF
17695/* confdefs.h. */
17696_ACEOF
17697cat confdefs.h >>conftest.$ac_ext
17698cat >>conftest.$ac_ext <<_ACEOF
17699/* end confdefs.h. */
17700$ac_includes_default
17701int
17702main ()
17703{
17704if ((int *) 0)
17705 return 0;
17706if (sizeof (int))
17707 return 0;
17708 ;
17709 return 0;
17710}
17711_ACEOF
17712rm -f conftest.$ac_objext
17713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17714 (eval $ac_compile) 2>conftest.er1
a848cd7e 17715 ac_status=$?
ac1cb8d3
VS
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
a848cd7e
SC
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
dee1a63f
MB
17721 { ac_try='test -z "$ac_c_werror_flag"
17722 || test ! -s conftest.err'
ac1cb8d3
VS
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 ac_cv_type_int=yes
17735else
17736 echo "$as_me: failed program was:" >&5
17737sed 's/^/| /' conftest.$ac_ext >&5
17738
17739ac_cv_type_int=no
17740fi
ac1cb8d3 17741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17742fi
17743echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17744echo "${ECHO_T}$ac_cv_type_int" >&6
17745
17746echo "$as_me:$LINENO: checking size of int" >&5
17747echo $ECHO_N "checking size of int... $ECHO_C" >&6
17748if test "${ac_cv_sizeof_int+set}" = set; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17750else
17751 if test "$ac_cv_type_int" = yes; then
17752 # The cast to unsigned long works around a bug in the HP C Compiler
17753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17755 # This bug is HP SR number 8606223364.
17756 if test "$cross_compiling" = yes; then
17757 # Depending upon the size, compute the lo and hi bounds.
17758cat >conftest.$ac_ext <<_ACEOF
17759/* confdefs.h. */
17760_ACEOF
17761cat confdefs.h >>conftest.$ac_ext
17762cat >>conftest.$ac_ext <<_ACEOF
17763/* end confdefs.h. */
17764$ac_includes_default
17765int
17766main ()
17767{
17768static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17769test_array [0] = 0
17770
17771 ;
17772 return 0;
17773}
17774_ACEOF
17775rm -f conftest.$ac_objext
17776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17777 (eval $ac_compile) 2>conftest.er1
a848cd7e 17778 ac_status=$?
ac1cb8d3
VS
17779 grep -v '^ *+' conftest.er1 >conftest.err
17780 rm -f conftest.er1
17781 cat conftest.err >&5
a848cd7e
SC
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
dee1a63f
MB
17784 { ac_try='test -z "$ac_c_werror_flag"
17785 || test ! -s conftest.err'
ac1cb8d3
VS
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; } &&
17791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 ac_lo=0 ac_mid=0
17798 while :; do
17799 cat >conftest.$ac_ext <<_ACEOF
17800/* confdefs.h. */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h. */
17805$ac_includes_default
17806int
17807main ()
17808{
17809static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17810test_array [0] = 0
17811
17812 ;
17813 return 0;
17814}
17815_ACEOF
17816rm -f conftest.$ac_objext
17817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17818 (eval $ac_compile) 2>conftest.er1
a848cd7e 17819 ac_status=$?
ac1cb8d3
VS
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
a848cd7e
SC
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
dee1a63f
MB
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
ac1cb8d3
VS
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_hi=$ac_mid; break
17839else
17840 echo "$as_me: failed program was:" >&5
17841sed 's/^/| /' conftest.$ac_ext >&5
17842
17843ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17844 if test $ac_lo -le $ac_mid; then
17845 ac_lo= ac_hi=
17846 break
17847 fi
17848 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17849fi
ac1cb8d3 17850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17851 done
17852else
17853 echo "$as_me: failed program was:" >&5
17854sed 's/^/| /' conftest.$ac_ext >&5
17855
17856cat >conftest.$ac_ext <<_ACEOF
17857/* confdefs.h. */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h. */
17862$ac_includes_default
17863int
17864main ()
17865{
17866static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17867test_array [0] = 0
17868
17869 ;
17870 return 0;
17871}
17872_ACEOF
17873rm -f conftest.$ac_objext
17874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17875 (eval $ac_compile) 2>conftest.er1
a848cd7e 17876 ac_status=$?
ac1cb8d3
VS
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
a848cd7e
SC
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
dee1a63f
MB
17882 { ac_try='test -z "$ac_c_werror_flag"
17883 || test ! -s conftest.err'
ac1cb8d3
VS
17884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885 (eval $ac_try) 2>&5
17886 ac_status=$?
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; } &&
17889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; }; then
17895 ac_hi=-1 ac_mid=-1
17896 while :; do
17897 cat >conftest.$ac_ext <<_ACEOF
17898/* confdefs.h. */
17899_ACEOF
17900cat confdefs.h >>conftest.$ac_ext
17901cat >>conftest.$ac_ext <<_ACEOF
17902/* end confdefs.h. */
17903$ac_includes_default
17904int
17905main ()
17906{
17907static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17908test_array [0] = 0
17909
17910 ;
17911 return 0;
17912}
17913_ACEOF
17914rm -f conftest.$ac_objext
17915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17916 (eval $ac_compile) 2>conftest.er1
a848cd7e 17917 ac_status=$?
ac1cb8d3
VS
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
a848cd7e
SC
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
dee1a63f
MB
17923 { ac_try='test -z "$ac_c_werror_flag"
17924 || test ! -s conftest.err'
ac1cb8d3
VS
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936 ac_lo=$ac_mid; break
17937else
17938 echo "$as_me: failed program was:" >&5
17939sed 's/^/| /' conftest.$ac_ext >&5
17940
17941ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17942 if test $ac_mid -le $ac_hi; then
17943 ac_lo= ac_hi=
17944 break
17945 fi
17946 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17947fi
ac1cb8d3 17948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17949 done
17950else
17951 echo "$as_me: failed program was:" >&5
17952sed 's/^/| /' conftest.$ac_ext >&5
17953
17954ac_lo= ac_hi=
17955fi
ac1cb8d3 17956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17957fi
ac1cb8d3 17958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17959# Binary search between lo and hi bounds.
17960while test "x$ac_lo" != "x$ac_hi"; do
17961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17962 cat >conftest.$ac_ext <<_ACEOF
17963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
17968$ac_includes_default
17969int
17970main ()
17971{
17972static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17973test_array [0] = 0
17974
17975 ;
17976 return 0;
17977}
17978_ACEOF
17979rm -f conftest.$ac_objext
17980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17981 (eval $ac_compile) 2>conftest.er1
a848cd7e 17982 ac_status=$?
ac1cb8d3
VS
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
a848cd7e
SC
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
dee1a63f
MB
17988 { ac_try='test -z "$ac_c_werror_flag"
17989 || test ! -s conftest.err'
ac1cb8d3
VS
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_hi=$ac_mid
18002else
18003 echo "$as_me: failed program was:" >&5
18004sed 's/^/| /' conftest.$ac_ext >&5
18005
18006ac_lo=`expr '(' $ac_mid ')' + 1`
18007fi
ac1cb8d3 18008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18009done
18010case $ac_lo in
18011?*) ac_cv_sizeof_int=$ac_lo;;
18012'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18013See \`config.log' for more details." >&5
18014echo "$as_me: error: cannot compute sizeof (int), 77
18015See \`config.log' for more details." >&2;}
18016 { (exit 1); exit 1; }; } ;;
18017esac
18018else
18019 if test "$cross_compiling" = yes; then
dee1a63f
MB
18020 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18021See \`config.log' for more details." >&5
18022echo "$as_me: error: cannot run test program while cross compiling
18023See \`config.log' for more details." >&2;}
a848cd7e
SC
18024 { (exit 1); exit 1; }; }
18025else
18026 cat >conftest.$ac_ext <<_ACEOF
18027/* confdefs.h. */
18028_ACEOF
18029cat confdefs.h >>conftest.$ac_ext
18030cat >>conftest.$ac_ext <<_ACEOF
18031/* end confdefs.h. */
18032$ac_includes_default
18033long longval () { return (long) (sizeof (int)); }
18034unsigned long ulongval () { return (long) (sizeof (int)); }
18035#include <stdio.h>
18036#include <stdlib.h>
18037int
18038main ()
18039{
18040
18041 FILE *f = fopen ("conftest.val", "w");
18042 if (! f)
18043 exit (1);
18044 if (((long) (sizeof (int))) < 0)
18045 {
18046 long i = longval ();
18047 if (i != ((long) (sizeof (int))))
18048 exit (1);
18049 fprintf (f, "%ld\n", i);
18050 }
18051 else
18052 {
18053 unsigned long i = ulongval ();
18054 if (i != ((long) (sizeof (int))))
18055 exit (1);
18056 fprintf (f, "%lu\n", i);
18057 }
18058 exit (ferror (f) || fclose (f) != 0);
18059
18060 ;
18061 return 0;
18062}
18063_ACEOF
18064rm -f conftest$ac_exeext
18065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18066 (eval $ac_link) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 ac_cv_sizeof_int=`cat conftest.val`
18076else
18077 echo "$as_me: program exited with status $ac_status" >&5
18078echo "$as_me: failed program was:" >&5
18079sed 's/^/| /' conftest.$ac_ext >&5
18080
18081( exit $ac_status )
18082{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18083See \`config.log' for more details." >&5
18084echo "$as_me: error: cannot compute sizeof (int), 77
18085See \`config.log' for more details." >&2;}
18086 { (exit 1); exit 1; }; }
18087fi
ac1cb8d3 18088rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18089fi
18090fi
18091rm -f conftest.val
18092else
18093 ac_cv_sizeof_int=0
18094fi
18095fi
18096echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18097echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18098cat >>confdefs.h <<_ACEOF
18099#define SIZEOF_INT $ac_cv_sizeof_int
18100_ACEOF
18101
18102
18103echo "$as_me:$LINENO: checking for long" >&5
18104echo $ECHO_N "checking for long... $ECHO_C" >&6
18105if test "${ac_cv_type_long+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107else
18108 cat >conftest.$ac_ext <<_ACEOF
18109/* confdefs.h. */
18110_ACEOF
18111cat confdefs.h >>conftest.$ac_ext
18112cat >>conftest.$ac_ext <<_ACEOF
18113/* end confdefs.h. */
18114$ac_includes_default
18115int
18116main ()
18117{
18118if ((long *) 0)
18119 return 0;
18120if (sizeof (long))
18121 return 0;
18122 ;
18123 return 0;
18124}
18125_ACEOF
18126rm -f conftest.$ac_objext
18127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18128 (eval $ac_compile) 2>conftest.er1
a848cd7e 18129 ac_status=$?
ac1cb8d3
VS
18130 grep -v '^ *+' conftest.er1 >conftest.err
18131 rm -f conftest.er1
18132 cat conftest.err >&5
a848cd7e
SC
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
dee1a63f
MB
18135 { ac_try='test -z "$ac_c_werror_flag"
18136 || test ! -s conftest.err'
ac1cb8d3
VS
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; } &&
18142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18148 ac_cv_type_long=yes
18149else
18150 echo "$as_me: failed program was:" >&5
18151sed 's/^/| /' conftest.$ac_ext >&5
18152
18153ac_cv_type_long=no
18154fi
ac1cb8d3 18155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18156fi
18157echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18158echo "${ECHO_T}$ac_cv_type_long" >&6
18159
18160echo "$as_me:$LINENO: checking size of long" >&5
18161echo $ECHO_N "checking size of long... $ECHO_C" >&6
18162if test "${ac_cv_sizeof_long+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18164else
18165 if test "$ac_cv_type_long" = yes; then
18166 # The cast to unsigned long works around a bug in the HP C Compiler
18167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18169 # This bug is HP SR number 8606223364.
18170 if test "$cross_compiling" = yes; then
18171 # Depending upon the size, compute the lo and hi bounds.
18172cat >conftest.$ac_ext <<_ACEOF
18173/* confdefs.h. */
18174_ACEOF
18175cat confdefs.h >>conftest.$ac_ext
18176cat >>conftest.$ac_ext <<_ACEOF
18177/* end confdefs.h. */
18178$ac_includes_default
18179int
18180main ()
18181{
18182static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18183test_array [0] = 0
18184
18185 ;
18186 return 0;
18187}
18188_ACEOF
18189rm -f conftest.$ac_objext
18190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18191 (eval $ac_compile) 2>conftest.er1
a848cd7e 18192 ac_status=$?
ac1cb8d3
VS
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
a848cd7e
SC
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
dee1a63f
MB
18198 { ac_try='test -z "$ac_c_werror_flag"
18199 || test ! -s conftest.err'
ac1cb8d3
VS
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 ac_lo=0 ac_mid=0
18212 while :; do
18213 cat >conftest.$ac_ext <<_ACEOF
18214/* confdefs.h. */
18215_ACEOF
18216cat confdefs.h >>conftest.$ac_ext
18217cat >>conftest.$ac_ext <<_ACEOF
18218/* end confdefs.h. */
18219$ac_includes_default
18220int
18221main ()
18222{
18223static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18224test_array [0] = 0
18225
18226 ;
18227 return 0;
18228}
18229_ACEOF
18230rm -f conftest.$ac_objext
18231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18232 (eval $ac_compile) 2>conftest.er1
a848cd7e 18233 ac_status=$?
ac1cb8d3
VS
18234 grep -v '^ *+' conftest.er1 >conftest.err
18235 rm -f conftest.er1
18236 cat conftest.err >&5
a848cd7e
SC
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
dee1a63f
MB
18239 { ac_try='test -z "$ac_c_werror_flag"
18240 || test ! -s conftest.err'
ac1cb8d3
VS
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 ac_hi=$ac_mid; break
18253else
18254 echo "$as_me: failed program was:" >&5
18255sed 's/^/| /' conftest.$ac_ext >&5
18256
18257ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18258 if test $ac_lo -le $ac_mid; then
18259 ac_lo= ac_hi=
18260 break
18261 fi
18262 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18263fi
ac1cb8d3 18264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18265 done
18266else
18267 echo "$as_me: failed program was:" >&5
18268sed 's/^/| /' conftest.$ac_ext >&5
18269
18270cat >conftest.$ac_ext <<_ACEOF
18271/* confdefs.h. */
18272_ACEOF
18273cat confdefs.h >>conftest.$ac_ext
18274cat >>conftest.$ac_ext <<_ACEOF
18275/* end confdefs.h. */
18276$ac_includes_default
18277int
18278main ()
18279{
18280static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18281test_array [0] = 0
18282
18283 ;
18284 return 0;
18285}
18286_ACEOF
18287rm -f conftest.$ac_objext
18288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18289 (eval $ac_compile) 2>conftest.er1
a848cd7e 18290 ac_status=$?
ac1cb8d3
VS
18291 grep -v '^ *+' conftest.er1 >conftest.err
18292 rm -f conftest.er1
18293 cat conftest.err >&5
a848cd7e
SC
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } &&
dee1a63f
MB
18296 { ac_try='test -z "$ac_c_werror_flag"
18297 || test ! -s conftest.err'
ac1cb8d3
VS
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } &&
18303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_hi=-1 ac_mid=-1
18310 while :; do
18311 cat >conftest.$ac_ext <<_ACEOF
18312/* confdefs.h. */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h. */
18317$ac_includes_default
18318int
18319main ()
18320{
18321static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18322test_array [0] = 0
18323
18324 ;
18325 return 0;
18326}
18327_ACEOF
18328rm -f conftest.$ac_objext
18329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18330 (eval $ac_compile) 2>conftest.er1
a848cd7e 18331 ac_status=$?
ac1cb8d3
VS
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
a848cd7e
SC
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
dee1a63f
MB
18337 { ac_try='test -z "$ac_c_werror_flag"
18338 || test ! -s conftest.err'
ac1cb8d3
VS
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_lo=$ac_mid; break
18351else
18352 echo "$as_me: failed program was:" >&5
18353sed 's/^/| /' conftest.$ac_ext >&5
18354
18355ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18356 if test $ac_mid -le $ac_hi; then
18357 ac_lo= ac_hi=
18358 break
18359 fi
18360 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18361fi
ac1cb8d3 18362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18363 done
18364else
18365 echo "$as_me: failed program was:" >&5
18366sed 's/^/| /' conftest.$ac_ext >&5
18367
18368ac_lo= ac_hi=
18369fi
ac1cb8d3 18370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18371fi
ac1cb8d3 18372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18373# Binary search between lo and hi bounds.
18374while test "x$ac_lo" != "x$ac_hi"; do
18375 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18376 cat >conftest.$ac_ext <<_ACEOF
18377/* confdefs.h. */
18378_ACEOF
18379cat confdefs.h >>conftest.$ac_ext
18380cat >>conftest.$ac_ext <<_ACEOF
18381/* end confdefs.h. */
18382$ac_includes_default
18383int
18384main ()
18385{
18386static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18387test_array [0] = 0
18388
18389 ;
18390 return 0;
18391}
18392_ACEOF
18393rm -f conftest.$ac_objext
18394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18395 (eval $ac_compile) 2>conftest.er1
a848cd7e 18396 ac_status=$?
ac1cb8d3
VS
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
a848cd7e
SC
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } &&
dee1a63f
MB
18402 { ac_try='test -z "$ac_c_werror_flag"
18403 || test ! -s conftest.err'
ac1cb8d3
VS
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; }; then
18415 ac_hi=$ac_mid
18416else
18417 echo "$as_me: failed program was:" >&5
18418sed 's/^/| /' conftest.$ac_ext >&5
18419
18420ac_lo=`expr '(' $ac_mid ')' + 1`
18421fi
ac1cb8d3 18422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18423done
18424case $ac_lo in
18425?*) ac_cv_sizeof_long=$ac_lo;;
18426'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18427See \`config.log' for more details." >&5
18428echo "$as_me: error: cannot compute sizeof (long), 77
18429See \`config.log' for more details." >&2;}
18430 { (exit 1); exit 1; }; } ;;
18431esac
18432else
18433 if test "$cross_compiling" = yes; then
dee1a63f
MB
18434 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18435See \`config.log' for more details." >&5
18436echo "$as_me: error: cannot run test program while cross compiling
18437See \`config.log' for more details." >&2;}
a848cd7e
SC
18438 { (exit 1); exit 1; }; }
18439else
18440 cat >conftest.$ac_ext <<_ACEOF
18441/* confdefs.h. */
18442_ACEOF
18443cat confdefs.h >>conftest.$ac_ext
18444cat >>conftest.$ac_ext <<_ACEOF
18445/* end confdefs.h. */
18446$ac_includes_default
18447long longval () { return (long) (sizeof (long)); }
18448unsigned long ulongval () { return (long) (sizeof (long)); }
18449#include <stdio.h>
18450#include <stdlib.h>
18451int
18452main ()
18453{
18454
18455 FILE *f = fopen ("conftest.val", "w");
18456 if (! f)
18457 exit (1);
18458 if (((long) (sizeof (long))) < 0)
18459 {
18460 long i = longval ();
18461 if (i != ((long) (sizeof (long))))
18462 exit (1);
18463 fprintf (f, "%ld\n", i);
18464 }
18465 else
18466 {
18467 unsigned long i = ulongval ();
18468 if (i != ((long) (sizeof (long))))
18469 exit (1);
18470 fprintf (f, "%lu\n", i);
18471 }
18472 exit (ferror (f) || fclose (f) != 0);
18473
18474 ;
18475 return 0;
18476}
18477_ACEOF
18478rm -f conftest$ac_exeext
18479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18480 (eval $ac_link) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; }; then
18489 ac_cv_sizeof_long=`cat conftest.val`
18490else
18491 echo "$as_me: program exited with status $ac_status" >&5
18492echo "$as_me: failed program was:" >&5
18493sed 's/^/| /' conftest.$ac_ext >&5
18494
18495( exit $ac_status )
18496{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18497See \`config.log' for more details." >&5
18498echo "$as_me: error: cannot compute sizeof (long), 77
18499See \`config.log' for more details." >&2;}
18500 { (exit 1); exit 1; }; }
18501fi
ac1cb8d3 18502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18503fi
18504fi
18505rm -f conftest.val
18506else
18507 ac_cv_sizeof_long=0
18508fi
18509fi
18510echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18511echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18512cat >>confdefs.h <<_ACEOF
18513#define SIZEOF_LONG $ac_cv_sizeof_long
18514_ACEOF
18515
18516
18517echo "$as_me:$LINENO: checking for size_t" >&5
18518echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18519if test "${ac_cv_type_size_t+set}" = set; then
18520 echo $ECHO_N "(cached) $ECHO_C" >&6
18521else
18522 cat >conftest.$ac_ext <<_ACEOF
18523/* confdefs.h. */
18524_ACEOF
18525cat confdefs.h >>conftest.$ac_ext
18526cat >>conftest.$ac_ext <<_ACEOF
18527/* end confdefs.h. */
18528$ac_includes_default
18529int
18530main ()
18531{
18532if ((size_t *) 0)
18533 return 0;
18534if (sizeof (size_t))
18535 return 0;
18536 ;
18537 return 0;
18538}
18539_ACEOF
18540rm -f conftest.$ac_objext
18541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18542 (eval $ac_compile) 2>conftest.er1
a848cd7e 18543 ac_status=$?
ac1cb8d3
VS
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
a848cd7e
SC
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
dee1a63f
MB
18549 { ac_try='test -z "$ac_c_werror_flag"
18550 || test ! -s conftest.err'
ac1cb8d3
VS
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; } &&
18556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 ac_cv_type_size_t=yes
18563else
18564 echo "$as_me: failed program was:" >&5
18565sed 's/^/| /' conftest.$ac_ext >&5
18566
18567ac_cv_type_size_t=no
18568fi
ac1cb8d3 18569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18570fi
18571echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18572echo "${ECHO_T}$ac_cv_type_size_t" >&6
18573
18574echo "$as_me:$LINENO: checking size of size_t" >&5
18575echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18576if test "${ac_cv_sizeof_size_t+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578else
18579 if test "$ac_cv_type_size_t" = yes; then
18580 # The cast to unsigned long works around a bug in the HP C Compiler
18581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18583 # This bug is HP SR number 8606223364.
18584 if test "$cross_compiling" = yes; then
18585 # Depending upon the size, compute the lo and hi bounds.
18586cat >conftest.$ac_ext <<_ACEOF
18587/* confdefs.h. */
18588_ACEOF
18589cat confdefs.h >>conftest.$ac_ext
18590cat >>conftest.$ac_ext <<_ACEOF
18591/* end confdefs.h. */
18592$ac_includes_default
18593int
18594main ()
18595{
18596static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18597test_array [0] = 0
18598
18599 ;
18600 return 0;
18601}
18602_ACEOF
18603rm -f conftest.$ac_objext
18604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18605 (eval $ac_compile) 2>conftest.er1
a848cd7e 18606 ac_status=$?
ac1cb8d3
VS
18607 grep -v '^ *+' conftest.er1 >conftest.err
18608 rm -f conftest.er1
18609 cat conftest.err >&5
a848cd7e
SC
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
dee1a63f
MB
18612 { ac_try='test -z "$ac_c_werror_flag"
18613 || test ! -s conftest.err'
ac1cb8d3
VS
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; } &&
18619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 ac_lo=0 ac_mid=0
18626 while :; do
18627 cat >conftest.$ac_ext <<_ACEOF
18628/* confdefs.h. */
18629_ACEOF
18630cat confdefs.h >>conftest.$ac_ext
18631cat >>conftest.$ac_ext <<_ACEOF
18632/* end confdefs.h. */
18633$ac_includes_default
18634int
18635main ()
18636{
18637static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18638test_array [0] = 0
18639
18640 ;
18641 return 0;
18642}
18643_ACEOF
18644rm -f conftest.$ac_objext
18645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18646 (eval $ac_compile) 2>conftest.er1
a848cd7e 18647 ac_status=$?
ac1cb8d3
VS
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
a848cd7e
SC
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
dee1a63f
MB
18653 { ac_try='test -z "$ac_c_werror_flag"
18654 || test ! -s conftest.err'
ac1cb8d3
VS
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 ac_hi=$ac_mid; break
18667else
18668 echo "$as_me: failed program was:" >&5
18669sed 's/^/| /' conftest.$ac_ext >&5
18670
18671ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18672 if test $ac_lo -le $ac_mid; then
18673 ac_lo= ac_hi=
18674 break
18675 fi
18676 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18677fi
ac1cb8d3 18678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18679 done
18680else
18681 echo "$as_me: failed program was:" >&5
18682sed 's/^/| /' conftest.$ac_ext >&5
18683
18684cat >conftest.$ac_ext <<_ACEOF
18685/* confdefs.h. */
18686_ACEOF
18687cat confdefs.h >>conftest.$ac_ext
18688cat >>conftest.$ac_ext <<_ACEOF
18689/* end confdefs.h. */
18690$ac_includes_default
18691int
18692main ()
18693{
18694static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18695test_array [0] = 0
18696
18697 ;
18698 return 0;
18699}
18700_ACEOF
18701rm -f conftest.$ac_objext
18702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18703 (eval $ac_compile) 2>conftest.er1
a848cd7e 18704 ac_status=$?
ac1cb8d3
VS
18705 grep -v '^ *+' conftest.er1 >conftest.err
18706 rm -f conftest.er1
18707 cat conftest.err >&5
a848cd7e
SC
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
dee1a63f
MB
18710 { ac_try='test -z "$ac_c_werror_flag"
18711 || test ! -s conftest.err'
ac1cb8d3
VS
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
18723 ac_hi=-1 ac_mid=-1
18724 while :; do
18725 cat >conftest.$ac_ext <<_ACEOF
18726/* confdefs.h. */
18727_ACEOF
18728cat confdefs.h >>conftest.$ac_ext
18729cat >>conftest.$ac_ext <<_ACEOF
18730/* end confdefs.h. */
18731$ac_includes_default
18732int
18733main ()
18734{
18735static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18736test_array [0] = 0
18737
18738 ;
18739 return 0;
18740}
18741_ACEOF
18742rm -f conftest.$ac_objext
18743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18744 (eval $ac_compile) 2>conftest.er1
a848cd7e 18745 ac_status=$?
ac1cb8d3
VS
18746 grep -v '^ *+' conftest.er1 >conftest.err
18747 rm -f conftest.er1
18748 cat conftest.err >&5
a848cd7e
SC
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
dee1a63f
MB
18751 { ac_try='test -z "$ac_c_werror_flag"
18752 || test ! -s conftest.err'
ac1cb8d3
VS
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; } &&
18758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18764 ac_lo=$ac_mid; break
18765else
18766 echo "$as_me: failed program was:" >&5
18767sed 's/^/| /' conftest.$ac_ext >&5
18768
18769ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18770 if test $ac_mid -le $ac_hi; then
18771 ac_lo= ac_hi=
18772 break
18773 fi
18774 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18775fi
ac1cb8d3 18776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18777 done
18778else
18779 echo "$as_me: failed program was:" >&5
18780sed 's/^/| /' conftest.$ac_ext >&5
18781
18782ac_lo= ac_hi=
18783fi
ac1cb8d3 18784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18785fi
ac1cb8d3 18786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18787# Binary search between lo and hi bounds.
18788while test "x$ac_lo" != "x$ac_hi"; do
18789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18790 cat >conftest.$ac_ext <<_ACEOF
18791/* confdefs.h. */
18792_ACEOF
18793cat confdefs.h >>conftest.$ac_ext
18794cat >>conftest.$ac_ext <<_ACEOF
18795/* end confdefs.h. */
18796$ac_includes_default
18797int
18798main ()
18799{
18800static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18801test_array [0] = 0
18802
18803 ;
18804 return 0;
18805}
18806_ACEOF
18807rm -f conftest.$ac_objext
18808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18809 (eval $ac_compile) 2>conftest.er1
a848cd7e 18810 ac_status=$?
ac1cb8d3
VS
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
a848cd7e
SC
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } &&
dee1a63f
MB
18816 { ac_try='test -z "$ac_c_werror_flag"
18817 || test ! -s conftest.err'
ac1cb8d3
VS
18818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18819 (eval $ac_try) 2>&5
18820 ac_status=$?
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); }; } &&
18823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18829 ac_hi=$ac_mid
18830else
18831 echo "$as_me: failed program was:" >&5
18832sed 's/^/| /' conftest.$ac_ext >&5
18833
18834ac_lo=`expr '(' $ac_mid ')' + 1`
18835fi
ac1cb8d3 18836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18837done
18838case $ac_lo in
18839?*) ac_cv_sizeof_size_t=$ac_lo;;
18840'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18841See \`config.log' for more details." >&5
18842echo "$as_me: error: cannot compute sizeof (size_t), 77
18843See \`config.log' for more details." >&2;}
18844 { (exit 1); exit 1; }; } ;;
18845esac
18846else
18847 if test "$cross_compiling" = yes; then
dee1a63f
MB
18848 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18849See \`config.log' for more details." >&5
18850echo "$as_me: error: cannot run test program while cross compiling
18851See \`config.log' for more details." >&2;}
a848cd7e
SC
18852 { (exit 1); exit 1; }; }
18853else
18854 cat >conftest.$ac_ext <<_ACEOF
18855/* confdefs.h. */
18856_ACEOF
18857cat confdefs.h >>conftest.$ac_ext
18858cat >>conftest.$ac_ext <<_ACEOF
18859/* end confdefs.h. */
18860$ac_includes_default
18861long longval () { return (long) (sizeof (size_t)); }
18862unsigned long ulongval () { return (long) (sizeof (size_t)); }
18863#include <stdio.h>
18864#include <stdlib.h>
18865int
18866main ()
18867{
18868
18869 FILE *f = fopen ("conftest.val", "w");
18870 if (! f)
18871 exit (1);
18872 if (((long) (sizeof (size_t))) < 0)
18873 {
18874 long i = longval ();
18875 if (i != ((long) (sizeof (size_t))))
18876 exit (1);
18877 fprintf (f, "%ld\n", i);
18878 }
18879 else
18880 {
18881 unsigned long i = ulongval ();
18882 if (i != ((long) (sizeof (size_t))))
18883 exit (1);
18884 fprintf (f, "%lu\n", i);
18885 }
18886 exit (ferror (f) || fclose (f) != 0);
18887
18888 ;
18889 return 0;
18890}
18891_ACEOF
18892rm -f conftest$ac_exeext
18893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18894 (eval $ac_link) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; }; then
18903 ac_cv_sizeof_size_t=`cat conftest.val`
18904else
18905 echo "$as_me: program exited with status $ac_status" >&5
18906echo "$as_me: failed program was:" >&5
18907sed 's/^/| /' conftest.$ac_ext >&5
18908
18909( exit $ac_status )
18910{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18911See \`config.log' for more details." >&5
18912echo "$as_me: error: cannot compute sizeof (size_t), 77
18913See \`config.log' for more details." >&2;}
18914 { (exit 1); exit 1; }; }
18915fi
ac1cb8d3 18916rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18917fi
18918fi
18919rm -f conftest.val
18920else
18921 ac_cv_sizeof_size_t=0
18922fi
18923fi
18924echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18925echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18926cat >>confdefs.h <<_ACEOF
18927#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18928_ACEOF
18929
18930
18931
18932case "${host}" in
18933 arm-*-linux* )
18934 echo "$as_me:$LINENO: checking for long long" >&5
18935echo $ECHO_N "checking for long long... $ECHO_C" >&6
18936if test "${ac_cv_type_long_long+set}" = set; then
18937 echo $ECHO_N "(cached) $ECHO_C" >&6
18938else
18939 cat >conftest.$ac_ext <<_ACEOF
18940/* confdefs.h. */
18941_ACEOF
18942cat confdefs.h >>conftest.$ac_ext
18943cat >>conftest.$ac_ext <<_ACEOF
18944/* end confdefs.h. */
18945$ac_includes_default
18946int
18947main ()
18948{
18949if ((long long *) 0)
18950 return 0;
18951if (sizeof (long long))
18952 return 0;
18953 ;
18954 return 0;
18955}
18956_ACEOF
18957rm -f conftest.$ac_objext
18958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18959 (eval $ac_compile) 2>conftest.er1
a848cd7e 18960 ac_status=$?
ac1cb8d3
VS
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
a848cd7e
SC
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
dee1a63f
MB
18966 { ac_try='test -z "$ac_c_werror_flag"
18967 || test ! -s conftest.err'
ac1cb8d3
VS
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 ac_cv_type_long_long=yes
18980else
18981 echo "$as_me: failed program was:" >&5
18982sed 's/^/| /' conftest.$ac_ext >&5
18983
18984ac_cv_type_long_long=no
18985fi
ac1cb8d3 18986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18987fi
18988echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18989echo "${ECHO_T}$ac_cv_type_long_long" >&6
18990
18991echo "$as_me:$LINENO: checking size of long long" >&5
18992echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18993if test "${ac_cv_sizeof_long_long+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18995else
18996 if test "$ac_cv_type_long_long" = yes; then
18997 # The cast to unsigned long works around a bug in the HP C Compiler
18998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19000 # This bug is HP SR number 8606223364.
19001 if test "$cross_compiling" = yes; then
19002 # Depending upon the size, compute the lo and hi bounds.
19003cat >conftest.$ac_ext <<_ACEOF
19004/* confdefs.h. */
19005_ACEOF
19006cat confdefs.h >>conftest.$ac_ext
19007cat >>conftest.$ac_ext <<_ACEOF
19008/* end confdefs.h. */
19009$ac_includes_default
19010int
19011main ()
19012{
19013static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19014test_array [0] = 0
19015
19016 ;
19017 return 0;
19018}
19019_ACEOF
19020rm -f conftest.$ac_objext
19021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19022 (eval $ac_compile) 2>conftest.er1
a848cd7e 19023 ac_status=$?
ac1cb8d3
VS
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
a848cd7e
SC
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
dee1a63f
MB
19029 { ac_try='test -z "$ac_c_werror_flag"
19030 || test ! -s conftest.err'
ac1cb8d3
VS
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_lo=0 ac_mid=0
19043 while :; do
19044 cat >conftest.$ac_ext <<_ACEOF
19045/* confdefs.h. */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
19049/* end confdefs.h. */
19050$ac_includes_default
19051int
19052main ()
19053{
19054static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19055test_array [0] = 0
19056
19057 ;
19058 return 0;
19059}
19060_ACEOF
19061rm -f conftest.$ac_objext
19062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19063 (eval $ac_compile) 2>conftest.er1
a848cd7e 19064 ac_status=$?
ac1cb8d3
VS
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
a848cd7e
SC
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
dee1a63f
MB
19070 { ac_try='test -z "$ac_c_werror_flag"
19071 || test ! -s conftest.err'
ac1cb8d3
VS
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_hi=$ac_mid; break
19084else
19085 echo "$as_me: failed program was:" >&5
19086sed 's/^/| /' conftest.$ac_ext >&5
19087
19088ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19089 if test $ac_lo -le $ac_mid; then
19090 ac_lo= ac_hi=
19091 break
19092 fi
19093 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19094fi
ac1cb8d3 19095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19096 done
19097else
19098 echo "$as_me: failed program was:" >&5
19099sed 's/^/| /' conftest.$ac_ext >&5
19100
19101cat >conftest.$ac_ext <<_ACEOF
19102/* confdefs.h. */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
19106/* end confdefs.h. */
19107$ac_includes_default
19108int
19109main ()
19110{
19111static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19112test_array [0] = 0
19113
19114 ;
19115 return 0;
19116}
19117_ACEOF
19118rm -f conftest.$ac_objext
19119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19120 (eval $ac_compile) 2>conftest.er1
a848cd7e 19121 ac_status=$?
ac1cb8d3
VS
19122 grep -v '^ *+' conftest.er1 >conftest.err
19123 rm -f conftest.er1
19124 cat conftest.err >&5
a848cd7e
SC
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
dee1a63f
MB
19127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
ac1cb8d3
VS
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 ac_hi=-1 ac_mid=-1
19141 while :; do
19142 cat >conftest.$ac_ext <<_ACEOF
19143/* confdefs.h. */
19144_ACEOF
19145cat confdefs.h >>conftest.$ac_ext
19146cat >>conftest.$ac_ext <<_ACEOF
19147/* end confdefs.h. */
19148$ac_includes_default
19149int
19150main ()
19151{
19152static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19153test_array [0] = 0
19154
19155 ;
19156 return 0;
19157}
19158_ACEOF
19159rm -f conftest.$ac_objext
19160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19161 (eval $ac_compile) 2>conftest.er1
a848cd7e 19162 ac_status=$?
ac1cb8d3
VS
19163 grep -v '^ *+' conftest.er1 >conftest.err
19164 rm -f conftest.er1
19165 cat conftest.err >&5
a848cd7e
SC
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
dee1a63f
MB
19168 { ac_try='test -z "$ac_c_werror_flag"
19169 || test ! -s conftest.err'
ac1cb8d3
VS
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 ac_lo=$ac_mid; break
19182else
19183 echo "$as_me: failed program was:" >&5
19184sed 's/^/| /' conftest.$ac_ext >&5
19185
19186ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19187 if test $ac_mid -le $ac_hi; then
19188 ac_lo= ac_hi=
19189 break
19190 fi
19191 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19192fi
ac1cb8d3 19193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19194 done
19195else
19196 echo "$as_me: failed program was:" >&5
19197sed 's/^/| /' conftest.$ac_ext >&5
19198
19199ac_lo= ac_hi=
19200fi
ac1cb8d3 19201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19202fi
ac1cb8d3 19203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19204# Binary search between lo and hi bounds.
19205while test "x$ac_lo" != "x$ac_hi"; do
19206 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19207 cat >conftest.$ac_ext <<_ACEOF
19208/* confdefs.h. */
19209_ACEOF
19210cat confdefs.h >>conftest.$ac_ext
19211cat >>conftest.$ac_ext <<_ACEOF
19212/* end confdefs.h. */
19213$ac_includes_default
19214int
19215main ()
19216{
19217static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19218test_array [0] = 0
19219
19220 ;
19221 return 0;
19222}
19223_ACEOF
19224rm -f conftest.$ac_objext
19225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19226 (eval $ac_compile) 2>conftest.er1
a848cd7e 19227 ac_status=$?
ac1cb8d3
VS
19228 grep -v '^ *+' conftest.er1 >conftest.err
19229 rm -f conftest.er1
19230 cat conftest.err >&5
a848cd7e
SC
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
dee1a63f
MB
19233 { ac_try='test -z "$ac_c_werror_flag"
19234 || test ! -s conftest.err'
ac1cb8d3
VS
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; } &&
19240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_hi=$ac_mid
19247else
19248 echo "$as_me: failed program was:" >&5
19249sed 's/^/| /' conftest.$ac_ext >&5
19250
19251ac_lo=`expr '(' $ac_mid ')' + 1`
19252fi
ac1cb8d3 19253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19254done
19255case $ac_lo in
19256?*) ac_cv_sizeof_long_long=$ac_lo;;
19257'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19258See \`config.log' for more details." >&5
19259echo "$as_me: error: cannot compute sizeof (long long), 77
19260See \`config.log' for more details." >&2;}
19261 { (exit 1); exit 1; }; } ;;
19262esac
19263else
19264 if test "$cross_compiling" = yes; then
dee1a63f
MB
19265 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19266See \`config.log' for more details." >&5
19267echo "$as_me: error: cannot run test program while cross compiling
19268See \`config.log' for more details." >&2;}
a848cd7e
SC
19269 { (exit 1); exit 1; }; }
19270else
19271 cat >conftest.$ac_ext <<_ACEOF
19272/* confdefs.h. */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h. */
19277$ac_includes_default
19278long longval () { return (long) (sizeof (long long)); }
19279unsigned long ulongval () { return (long) (sizeof (long long)); }
19280#include <stdio.h>
19281#include <stdlib.h>
19282int
19283main ()
19284{
19285
19286 FILE *f = fopen ("conftest.val", "w");
19287 if (! f)
19288 exit (1);
19289 if (((long) (sizeof (long long))) < 0)
19290 {
19291 long i = longval ();
19292 if (i != ((long) (sizeof (long long))))
19293 exit (1);
19294 fprintf (f, "%ld\n", i);
19295 }
19296 else
19297 {
19298 unsigned long i = ulongval ();
19299 if (i != ((long) (sizeof (long long))))
19300 exit (1);
19301 fprintf (f, "%lu\n", i);
19302 }
19303 exit (ferror (f) || fclose (f) != 0);
19304
19305 ;
19306 return 0;
19307}
19308_ACEOF
19309rm -f conftest$ac_exeext
19310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19311 (eval $ac_link) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 ac_cv_sizeof_long_long=`cat conftest.val`
19321else
19322 echo "$as_me: program exited with status $ac_status" >&5
19323echo "$as_me: failed program was:" >&5
19324sed 's/^/| /' conftest.$ac_ext >&5
19325
19326( exit $ac_status )
19327{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19328See \`config.log' for more details." >&5
19329echo "$as_me: error: cannot compute sizeof (long long), 77
19330See \`config.log' for more details." >&2;}
19331 { (exit 1); exit 1; }; }
19332fi
ac1cb8d3 19333rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19334fi
19335fi
19336rm -f conftest.val
19337else
19338 ac_cv_sizeof_long_long=0
19339fi
19340fi
19341echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19342echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19343cat >>confdefs.h <<_ACEOF
19344#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19345_ACEOF
19346
19347
19348 ;;
19349 *-hp-hpux* )
19350 echo "$as_me:$LINENO: checking for long long" >&5
19351echo $ECHO_N "checking for long long... $ECHO_C" >&6
19352if test "${ac_cv_type_long_long+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354else
19355 cat >conftest.$ac_ext <<_ACEOF
19356/* confdefs.h. */
19357_ACEOF
19358cat confdefs.h >>conftest.$ac_ext
19359cat >>conftest.$ac_ext <<_ACEOF
19360/* end confdefs.h. */
19361$ac_includes_default
19362int
19363main ()
19364{
19365if ((long long *) 0)
19366 return 0;
19367if (sizeof (long long))
19368 return 0;
19369 ;
19370 return 0;
19371}
19372_ACEOF
19373rm -f conftest.$ac_objext
19374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19375 (eval $ac_compile) 2>conftest.er1
a848cd7e 19376 ac_status=$?
ac1cb8d3
VS
19377 grep -v '^ *+' conftest.er1 >conftest.err
19378 rm -f conftest.er1
19379 cat conftest.err >&5
a848cd7e
SC
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } &&
dee1a63f
MB
19382 { ac_try='test -z "$ac_c_werror_flag"
19383 || test ! -s conftest.err'
ac1cb8d3
VS
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_cv_type_long_long=yes
19396else
19397 echo "$as_me: failed program was:" >&5
19398sed 's/^/| /' conftest.$ac_ext >&5
19399
19400ac_cv_type_long_long=no
19401fi
ac1cb8d3 19402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19403fi
19404echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19405echo "${ECHO_T}$ac_cv_type_long_long" >&6
19406
19407echo "$as_me:$LINENO: checking size of long long" >&5
19408echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19409if test "${ac_cv_sizeof_long_long+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19411else
19412 if test "$ac_cv_type_long_long" = yes; then
19413 # The cast to unsigned long works around a bug in the HP C Compiler
19414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19416 # This bug is HP SR number 8606223364.
19417 if test "$cross_compiling" = yes; then
19418 # Depending upon the size, compute the lo and hi bounds.
19419cat >conftest.$ac_ext <<_ACEOF
19420/* confdefs.h. */
19421_ACEOF
19422cat confdefs.h >>conftest.$ac_ext
19423cat >>conftest.$ac_ext <<_ACEOF
19424/* end confdefs.h. */
19425$ac_includes_default
19426int
19427main ()
19428{
19429static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19430test_array [0] = 0
19431
19432 ;
19433 return 0;
19434}
19435_ACEOF
19436rm -f conftest.$ac_objext
19437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19438 (eval $ac_compile) 2>conftest.er1
a848cd7e 19439 ac_status=$?
ac1cb8d3
VS
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
a848cd7e
SC
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
dee1a63f
MB
19445 { ac_try='test -z "$ac_c_werror_flag"
19446 || test ! -s conftest.err'
ac1cb8d3
VS
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 ac_lo=0 ac_mid=0
19459 while :; do
19460 cat >conftest.$ac_ext <<_ACEOF
19461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
19466$ac_includes_default
19467int
19468main ()
19469{
19470static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19471test_array [0] = 0
19472
19473 ;
19474 return 0;
19475}
19476_ACEOF
19477rm -f conftest.$ac_objext
19478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19479 (eval $ac_compile) 2>conftest.er1
a848cd7e 19480 ac_status=$?
ac1cb8d3
VS
19481 grep -v '^ *+' conftest.er1 >conftest.err
19482 rm -f conftest.er1
19483 cat conftest.err >&5
a848cd7e
SC
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
dee1a63f
MB
19486 { ac_try='test -z "$ac_c_werror_flag"
19487 || test ! -s conftest.err'
ac1cb8d3
VS
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 ac_hi=$ac_mid; break
19500else
19501 echo "$as_me: failed program was:" >&5
19502sed 's/^/| /' conftest.$ac_ext >&5
19503
19504ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19505 if test $ac_lo -le $ac_mid; then
19506 ac_lo= ac_hi=
19507 break
19508 fi
19509 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19510fi
ac1cb8d3 19511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19512 done
19513else
19514 echo "$as_me: failed program was:" >&5
19515sed 's/^/| /' conftest.$ac_ext >&5
19516
19517cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h. */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h. */
19523$ac_includes_default
19524int
19525main ()
19526{
19527static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19528test_array [0] = 0
19529
19530 ;
19531 return 0;
19532}
19533_ACEOF
19534rm -f conftest.$ac_objext
19535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19536 (eval $ac_compile) 2>conftest.er1
a848cd7e 19537 ac_status=$?
ac1cb8d3
VS
19538 grep -v '^ *+' conftest.er1 >conftest.err
19539 rm -f conftest.er1
19540 cat conftest.err >&5
a848cd7e
SC
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
dee1a63f
MB
19543 { ac_try='test -z "$ac_c_werror_flag"
19544 || 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_hi=-1 ac_mid=-1
19557 while :; do
19558 cat >conftest.$ac_ext <<_ACEOF
19559/* confdefs.h. */
19560_ACEOF
19561cat confdefs.h >>conftest.$ac_ext
19562cat >>conftest.$ac_ext <<_ACEOF
19563/* end confdefs.h. */
19564$ac_includes_default
19565int
19566main ()
19567{
19568static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19569test_array [0] = 0
19570
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575rm -f conftest.$ac_objext
19576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19577 (eval $ac_compile) 2>conftest.er1
a848cd7e 19578 ac_status=$?
ac1cb8d3
VS
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
a848cd7e
SC
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
dee1a63f
MB
19584 { ac_try='test -z "$ac_c_werror_flag"
19585 || test ! -s conftest.err'
ac1cb8d3
VS
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19588 ac_status=$?
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; } &&
19591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593 (eval $ac_try) 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; }; then
19597 ac_lo=$ac_mid; break
19598else
19599 echo "$as_me: failed program was:" >&5
19600sed 's/^/| /' conftest.$ac_ext >&5
19601
19602ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19603 if test $ac_mid -le $ac_hi; then
19604 ac_lo= ac_hi=
19605 break
19606 fi
19607 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19608fi
ac1cb8d3 19609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19610 done
19611else
19612 echo "$as_me: failed program was:" >&5
19613sed 's/^/| /' conftest.$ac_ext >&5
19614
19615ac_lo= ac_hi=
19616fi
ac1cb8d3 19617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19618fi
ac1cb8d3 19619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19620# Binary search between lo and hi bounds.
19621while test "x$ac_lo" != "x$ac_hi"; do
19622 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19623 cat >conftest.$ac_ext <<_ACEOF
19624/* confdefs.h. */
19625_ACEOF
19626cat confdefs.h >>conftest.$ac_ext
19627cat >>conftest.$ac_ext <<_ACEOF
19628/* end confdefs.h. */
19629$ac_includes_default
19630int
19631main ()
19632{
19633static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19634test_array [0] = 0
19635
19636 ;
19637 return 0;
19638}
19639_ACEOF
19640rm -f conftest.$ac_objext
19641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19642 (eval $ac_compile) 2>conftest.er1
a848cd7e 19643 ac_status=$?
ac1cb8d3
VS
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
a848cd7e
SC
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } &&
dee1a63f
MB
19649 { ac_try='test -z "$ac_c_werror_flag"
19650 || test ! -s conftest.err'
ac1cb8d3
VS
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_hi=$ac_mid
19663else
19664 echo "$as_me: failed program was:" >&5
19665sed 's/^/| /' conftest.$ac_ext >&5
19666
19667ac_lo=`expr '(' $ac_mid ')' + 1`
19668fi
ac1cb8d3 19669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19670done
19671case $ac_lo in
19672?*) ac_cv_sizeof_long_long=$ac_lo;;
19673'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19674See \`config.log' for more details." >&5
19675echo "$as_me: error: cannot compute sizeof (long long), 77
19676See \`config.log' for more details." >&2;}
19677 { (exit 1); exit 1; }; } ;;
19678esac
19679else
19680 if test "$cross_compiling" = yes; then
dee1a63f
MB
19681 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19682See \`config.log' for more details." >&5
19683echo "$as_me: error: cannot run test program while cross compiling
19684See \`config.log' for more details." >&2;}
a848cd7e
SC
19685 { (exit 1); exit 1; }; }
19686else
19687 cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h. */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h. */
19693$ac_includes_default
19694long longval () { return (long) (sizeof (long long)); }
19695unsigned long ulongval () { return (long) (sizeof (long long)); }
19696#include <stdio.h>
19697#include <stdlib.h>
19698int
19699main ()
19700{
19701
19702 FILE *f = fopen ("conftest.val", "w");
19703 if (! f)
19704 exit (1);
19705 if (((long) (sizeof (long long))) < 0)
19706 {
19707 long i = longval ();
19708 if (i != ((long) (sizeof (long long))))
19709 exit (1);
19710 fprintf (f, "%ld\n", i);
19711 }
19712 else
19713 {
19714 unsigned long i = ulongval ();
19715 if (i != ((long) (sizeof (long long))))
19716 exit (1);
19717 fprintf (f, "%lu\n", i);
19718 }
19719 exit (ferror (f) || fclose (f) != 0);
19720
19721 ;
19722 return 0;
19723}
19724_ACEOF
19725rm -f conftest$ac_exeext
19726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19727 (eval $ac_link) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_sizeof_long_long=`cat conftest.val`
19737else
19738 echo "$as_me: program exited with status $ac_status" >&5
19739echo "$as_me: failed program was:" >&5
19740sed 's/^/| /' conftest.$ac_ext >&5
19741
19742( exit $ac_status )
19743{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19744See \`config.log' for more details." >&5
19745echo "$as_me: error: cannot compute sizeof (long long), 77
19746See \`config.log' for more details." >&2;}
19747 { (exit 1); exit 1; }; }
19748fi
ac1cb8d3 19749rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19750fi
19751fi
19752rm -f conftest.val
19753else
19754 ac_cv_sizeof_long_long=0
19755fi
19756fi
19757echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19758echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19759cat >>confdefs.h <<_ACEOF
19760#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19761_ACEOF
19762
19763
19764 if test "$ac_cv_sizeof_long_long" != "0"; then
19765 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19766 fi
19767 ;;
19768 * )
19769 echo "$as_me:$LINENO: checking for long long" >&5
19770echo $ECHO_N "checking for long long... $ECHO_C" >&6
19771if test "${ac_cv_type_long_long+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773else
19774 cat >conftest.$ac_ext <<_ACEOF
19775/* confdefs.h. */
19776_ACEOF
19777cat confdefs.h >>conftest.$ac_ext
19778cat >>conftest.$ac_ext <<_ACEOF
19779/* end confdefs.h. */
19780$ac_includes_default
19781int
19782main ()
19783{
19784if ((long long *) 0)
19785 return 0;
19786if (sizeof (long long))
19787 return 0;
19788 ;
19789 return 0;
19790}
19791_ACEOF
19792rm -f conftest.$ac_objext
19793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19794 (eval $ac_compile) 2>conftest.er1
a848cd7e 19795 ac_status=$?
ac1cb8d3
VS
19796 grep -v '^ *+' conftest.er1 >conftest.err
19797 rm -f conftest.er1
19798 cat conftest.err >&5
a848cd7e
SC
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } &&
dee1a63f
MB
19801 { ac_try='test -z "$ac_c_werror_flag"
19802 || test ! -s conftest.err'
ac1cb8d3
VS
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 ac_cv_type_long_long=yes
19815else
19816 echo "$as_me: failed program was:" >&5
19817sed 's/^/| /' conftest.$ac_ext >&5
19818
19819ac_cv_type_long_long=no
19820fi
ac1cb8d3 19821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19822fi
19823echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19824echo "${ECHO_T}$ac_cv_type_long_long" >&6
19825
19826echo "$as_me:$LINENO: checking size of long long" >&5
19827echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19828if test "${ac_cv_sizeof_long_long+set}" = set; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19830else
19831 if test "$ac_cv_type_long_long" = yes; then
19832 # The cast to unsigned long works around a bug in the HP C Compiler
19833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19835 # This bug is HP SR number 8606223364.
19836 if test "$cross_compiling" = yes; then
19837 # Depending upon the size, compute the lo and hi bounds.
19838cat >conftest.$ac_ext <<_ACEOF
19839/* confdefs.h. */
19840_ACEOF
19841cat confdefs.h >>conftest.$ac_ext
19842cat >>conftest.$ac_ext <<_ACEOF
19843/* end confdefs.h. */
19844$ac_includes_default
19845int
19846main ()
19847{
19848static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19849test_array [0] = 0
19850
19851 ;
19852 return 0;
19853}
19854_ACEOF
19855rm -f conftest.$ac_objext
19856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19857 (eval $ac_compile) 2>conftest.er1
a848cd7e 19858 ac_status=$?
ac1cb8d3
VS
19859 grep -v '^ *+' conftest.er1 >conftest.err
19860 rm -f conftest.er1
19861 cat conftest.err >&5
a848cd7e
SC
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } &&
dee1a63f
MB
19864 { ac_try='test -z "$ac_c_werror_flag"
19865 || test ! -s conftest.err'
ac1cb8d3
VS
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; } &&
19871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19877 ac_lo=0 ac_mid=0
19878 while :; do
19879 cat >conftest.$ac_ext <<_ACEOF
19880/* confdefs.h. */
19881_ACEOF
19882cat confdefs.h >>conftest.$ac_ext
19883cat >>conftest.$ac_ext <<_ACEOF
19884/* end confdefs.h. */
19885$ac_includes_default
19886int
19887main ()
19888{
19889static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19890test_array [0] = 0
19891
19892 ;
19893 return 0;
19894}
19895_ACEOF
19896rm -f conftest.$ac_objext
19897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19898 (eval $ac_compile) 2>conftest.er1
a848cd7e 19899 ac_status=$?
ac1cb8d3
VS
19900 grep -v '^ *+' conftest.er1 >conftest.err
19901 rm -f conftest.er1
19902 cat conftest.err >&5
a848cd7e
SC
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } &&
dee1a63f
MB
19905 { ac_try='test -z "$ac_c_werror_flag"
19906 || test ! -s conftest.err'
ac1cb8d3
VS
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19918 ac_hi=$ac_mid; break
19919else
19920 echo "$as_me: failed program was:" >&5
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
19923ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19924 if test $ac_lo -le $ac_mid; then
19925 ac_lo= ac_hi=
19926 break
19927 fi
19928 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19929fi
ac1cb8d3 19930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19931 done
19932else
19933 echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936cat >conftest.$ac_ext <<_ACEOF
19937/* confdefs.h. */
19938_ACEOF
19939cat confdefs.h >>conftest.$ac_ext
19940cat >>conftest.$ac_ext <<_ACEOF
19941/* end confdefs.h. */
19942$ac_includes_default
19943int
19944main ()
19945{
19946static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19947test_array [0] = 0
19948
19949 ;
19950 return 0;
19951}
19952_ACEOF
19953rm -f conftest.$ac_objext
19954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19955 (eval $ac_compile) 2>conftest.er1
a848cd7e 19956 ac_status=$?
ac1cb8d3
VS
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
a848cd7e
SC
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
dee1a63f
MB
19962 { ac_try='test -z "$ac_c_werror_flag"
19963 || test ! -s conftest.err'
ac1cb8d3
VS
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_hi=-1 ac_mid=-1
19976 while :; do
19977 cat >conftest.$ac_ext <<_ACEOF
19978/* confdefs.h. */
19979_ACEOF
19980cat confdefs.h >>conftest.$ac_ext
19981cat >>conftest.$ac_ext <<_ACEOF
19982/* end confdefs.h. */
19983$ac_includes_default
19984int
19985main ()
19986{
19987static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19988test_array [0] = 0
19989
19990 ;
19991 return 0;
19992}
19993_ACEOF
19994rm -f conftest.$ac_objext
19995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19996 (eval $ac_compile) 2>conftest.er1
a848cd7e 19997 ac_status=$?
ac1cb8d3
VS
19998 grep -v '^ *+' conftest.er1 >conftest.err
19999 rm -f conftest.er1
20000 cat conftest.err >&5
a848cd7e
SC
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } &&
dee1a63f
MB
20003 { ac_try='test -z "$ac_c_werror_flag"
20004 || test ! -s conftest.err'
ac1cb8d3
VS
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; } &&
20010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 ac_lo=$ac_mid; break
20017else
20018 echo "$as_me: failed program was:" >&5
20019sed 's/^/| /' conftest.$ac_ext >&5
20020
20021ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20022 if test $ac_mid -le $ac_hi; then
20023 ac_lo= ac_hi=
20024 break
20025 fi
20026 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20027fi
ac1cb8d3 20028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20029 done
20030else
20031 echo "$as_me: failed program was:" >&5
20032sed 's/^/| /' conftest.$ac_ext >&5
20033
20034ac_lo= ac_hi=
20035fi
ac1cb8d3 20036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20037fi
ac1cb8d3 20038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20039# Binary search between lo and hi bounds.
20040while test "x$ac_lo" != "x$ac_hi"; do
20041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20042 cat >conftest.$ac_ext <<_ACEOF
20043/* confdefs.h. */
20044_ACEOF
20045cat confdefs.h >>conftest.$ac_ext
20046cat >>conftest.$ac_ext <<_ACEOF
20047/* end confdefs.h. */
20048$ac_includes_default
20049int
20050main ()
20051{
20052static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20053test_array [0] = 0
20054
20055 ;
20056 return 0;
20057}
20058_ACEOF
20059rm -f conftest.$ac_objext
20060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20061 (eval $ac_compile) 2>conftest.er1
a848cd7e 20062 ac_status=$?
ac1cb8d3
VS
20063 grep -v '^ *+' conftest.er1 >conftest.err
20064 rm -f conftest.er1
20065 cat conftest.err >&5
a848cd7e
SC
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
dee1a63f
MB
20068 { ac_try='test -z "$ac_c_werror_flag"
20069 || test ! -s conftest.err'
ac1cb8d3
VS
20070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071 (eval $ac_try) 2>&5
20072 ac_status=$?
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); }; } &&
20075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; }; then
20081 ac_hi=$ac_mid
20082else
20083 echo "$as_me: failed program was:" >&5
20084sed 's/^/| /' conftest.$ac_ext >&5
20085
20086ac_lo=`expr '(' $ac_mid ')' + 1`
20087fi
ac1cb8d3 20088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20089done
20090case $ac_lo in
20091?*) ac_cv_sizeof_long_long=$ac_lo;;
20092'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20093See \`config.log' for more details." >&5
20094echo "$as_me: error: cannot compute sizeof (long long), 77
20095See \`config.log' for more details." >&2;}
20096 { (exit 1); exit 1; }; } ;;
20097esac
20098else
20099 if test "$cross_compiling" = yes; then
dee1a63f
MB
20100 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20101See \`config.log' for more details." >&5
20102echo "$as_me: error: cannot run test program while cross compiling
20103See \`config.log' for more details." >&2;}
a848cd7e
SC
20104 { (exit 1); exit 1; }; }
20105else
20106 cat >conftest.$ac_ext <<_ACEOF
20107/* confdefs.h. */
20108_ACEOF
20109cat confdefs.h >>conftest.$ac_ext
20110cat >>conftest.$ac_ext <<_ACEOF
20111/* end confdefs.h. */
20112$ac_includes_default
20113long longval () { return (long) (sizeof (long long)); }
20114unsigned long ulongval () { return (long) (sizeof (long long)); }
20115#include <stdio.h>
20116#include <stdlib.h>
20117int
20118main ()
20119{
20120
20121 FILE *f = fopen ("conftest.val", "w");
20122 if (! f)
20123 exit (1);
20124 if (((long) (sizeof (long long))) < 0)
20125 {
20126 long i = longval ();
20127 if (i != ((long) (sizeof (long long))))
20128 exit (1);
20129 fprintf (f, "%ld\n", i);
20130 }
20131 else
20132 {
20133 unsigned long i = ulongval ();
20134 if (i != ((long) (sizeof (long long))))
20135 exit (1);
20136 fprintf (f, "%lu\n", i);
20137 }
20138 exit (ferror (f) || fclose (f) != 0);
20139
20140 ;
20141 return 0;
20142}
20143_ACEOF
20144rm -f conftest$ac_exeext
20145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20146 (eval $ac_link) 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_sizeof_long_long=`cat conftest.val`
20156else
20157 echo "$as_me: program exited with status $ac_status" >&5
20158echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161( exit $ac_status )
20162{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20163See \`config.log' for more details." >&5
20164echo "$as_me: error: cannot compute sizeof (long long), 77
20165See \`config.log' for more details." >&2;}
20166 { (exit 1); exit 1; }; }
20167fi
ac1cb8d3 20168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20169fi
20170fi
20171rm -f conftest.val
20172else
20173 ac_cv_sizeof_long_long=0
20174fi
20175fi
20176echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20177echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20178cat >>confdefs.h <<_ACEOF
20179#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20180_ACEOF
20181
20182
20183esac
20184
238ecede
MW
20185echo "$as_me:$LINENO: checking for wchar_t" >&5
20186echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20187if test "${ac_cv_type_wchar_t+set}" = set; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20189else
20190 cat >conftest.$ac_ext <<_ACEOF
20191/* confdefs.h. */
20192_ACEOF
20193cat confdefs.h >>conftest.$ac_ext
20194cat >>conftest.$ac_ext <<_ACEOF
20195/* end confdefs.h. */
20196
83d8eb47
MW
20197 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20198 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20199 # error "fake wchar_t"
20200 #endif
20201 #ifdef HAVE_WCHAR_H
20202 # ifdef __CYGWIN__
20203 # include <stddef.h>
20204 # endif
20205 # include <wchar.h>
20206 #endif
20207 #ifdef HAVE_STDLIB_H
20208 # include <stdlib.h>
20209 #endif
20210 #include <stdio.h>
20211
20212
20213
20214int
20215main ()
20216{
20217if ((wchar_t *) 0)
20218 return 0;
20219if (sizeof (wchar_t))
20220 return 0;
20221 ;
20222 return 0;
20223}
20224_ACEOF
20225rm -f conftest.$ac_objext
20226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
dee1a63f
MB
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
238ecede
MW
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_type_wchar_t=yes
20248else
20249 echo "$as_me: failed program was:" >&5
20250sed 's/^/| /' conftest.$ac_ext >&5
20251
20252ac_cv_type_wchar_t=no
20253fi
20254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20255fi
20256echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20257echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20258
a848cd7e
SC
20259echo "$as_me:$LINENO: checking size of wchar_t" >&5
20260echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20261if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263else
238ecede
MW
20264 if test "$ac_cv_type_wchar_t" = yes; then
20265 # The cast to unsigned long works around a bug in the HP C Compiler
20266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20268 # This bug is HP SR number 8606223364.
20269 if test "$cross_compiling" = yes; then
20270 # Depending upon the size, compute the lo and hi bounds.
20271cat >conftest.$ac_ext <<_ACEOF
20272/* confdefs.h. */
20273_ACEOF
20274cat confdefs.h >>conftest.$ac_ext
20275cat >>conftest.$ac_ext <<_ACEOF
20276/* end confdefs.h. */
20277
83d8eb47
MW
20278 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20279 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20280 # error "fake wchar_t"
20281 #endif
20282 #ifdef HAVE_WCHAR_H
20283 # ifdef __CYGWIN__
20284 # include <stddef.h>
20285 # endif
20286 # include <wchar.h>
20287 #endif
20288 #ifdef HAVE_STDLIB_H
20289 # include <stdlib.h>
20290 #endif
20291 #include <stdio.h>
20292
20293
20294
20295int
20296main ()
20297{
20298static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20299test_array [0] = 0
20300
20301 ;
20302 return 0;
20303}
20304_ACEOF
20305rm -f conftest.$ac_objext
20306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20307 (eval $ac_compile) 2>conftest.er1
20308 ac_status=$?
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } &&
dee1a63f
MB
20314 { ac_try='test -z "$ac_c_werror_flag"
20315 || test ! -s conftest.err'
238ecede
MW
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; } &&
20321 { ac_try='test -s conftest.$ac_objext'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 ac_lo=0 ac_mid=0
20328 while :; do
20329 cat >conftest.$ac_ext <<_ACEOF
20330/* confdefs.h. */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
20334/* end confdefs.h. */
20335
83d8eb47
MW
20336 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20337 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20338 # error "fake wchar_t"
20339 #endif
20340 #ifdef HAVE_WCHAR_H
20341 # ifdef __CYGWIN__
20342 # include <stddef.h>
20343 # endif
20344 # include <wchar.h>
20345 #endif
20346 #ifdef HAVE_STDLIB_H
20347 # include <stdlib.h>
20348 #endif
20349 #include <stdio.h>
20350
20351
20352
20353int
20354main ()
20355{
20356static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20357test_array [0] = 0
20358
20359 ;
20360 return 0;
20361}
20362_ACEOF
20363rm -f conftest.$ac_objext
20364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365 (eval $ac_compile) 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
dee1a63f
MB
20372 { ac_try='test -z "$ac_c_werror_flag"
20373 || test ! -s conftest.err'
238ecede
MW
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } &&
20379 { ac_try='test -s conftest.$ac_objext'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_hi=$ac_mid; break
20386else
20387 echo "$as_me: failed program was:" >&5
20388sed 's/^/| /' conftest.$ac_ext >&5
20389
20390ac_lo=`expr $ac_mid + 1`
20391 if test $ac_lo -le $ac_mid; then
20392 ac_lo= ac_hi=
20393 break
20394 fi
20395 ac_mid=`expr 2 '*' $ac_mid + 1`
20396fi
20397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20398 done
20399else
20400 echo "$as_me: failed program was:" >&5
20401sed 's/^/| /' conftest.$ac_ext >&5
20402
20403cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
20409
83d8eb47
MW
20410 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20411 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20412 # error "fake wchar_t"
20413 #endif
20414 #ifdef HAVE_WCHAR_H
20415 # ifdef __CYGWIN__
20416 # include <stddef.h>
20417 # endif
20418 # include <wchar.h>
20419 #endif
20420 #ifdef HAVE_STDLIB_H
20421 # include <stdlib.h>
20422 #endif
20423 #include <stdio.h>
20424
20425
20426
20427int
20428main ()
20429{
20430static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20431test_array [0] = 0
20432
20433 ;
20434 return 0;
20435}
20436_ACEOF
20437rm -f conftest.$ac_objext
20438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20439 (eval $ac_compile) 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } &&
dee1a63f
MB
20446 { ac_try='test -z "$ac_c_werror_flag"
20447 || test ! -s conftest.err'
238ecede
MW
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; } &&
20453 { ac_try='test -s conftest.$ac_objext'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20456 ac_status=$?
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
20459 ac_hi=-1 ac_mid=-1
20460 while :; do
20461 cat >conftest.$ac_ext <<_ACEOF
20462/* confdefs.h. */
20463_ACEOF
20464cat confdefs.h >>conftest.$ac_ext
20465cat >>conftest.$ac_ext <<_ACEOF
20466/* end confdefs.h. */
20467
83d8eb47
MW
20468 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20469 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20470 # error "fake wchar_t"
20471 #endif
20472 #ifdef HAVE_WCHAR_H
20473 # ifdef __CYGWIN__
20474 # include <stddef.h>
20475 # endif
20476 # include <wchar.h>
20477 #endif
20478 #ifdef HAVE_STDLIB_H
20479 # include <stdlib.h>
20480 #endif
20481 #include <stdio.h>
20482
20483
20484
20485int
20486main ()
20487{
20488static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20489test_array [0] = 0
20490
20491 ;
20492 return 0;
20493}
20494_ACEOF
20495rm -f conftest.$ac_objext
20496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20497 (eval $ac_compile) 2>conftest.er1
20498 ac_status=$?
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
dee1a63f
MB
20504 { ac_try='test -z "$ac_c_werror_flag"
20505 || test ! -s conftest.err'
238ecede
MW
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; } &&
20511 { ac_try='test -s conftest.$ac_objext'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_lo=$ac_mid; break
20518else
20519 echo "$as_me: failed program was:" >&5
20520sed 's/^/| /' conftest.$ac_ext >&5
20521
20522ac_hi=`expr '(' $ac_mid ')' - 1`
20523 if test $ac_mid -le $ac_hi; then
20524 ac_lo= ac_hi=
20525 break
20526 fi
20527 ac_mid=`expr 2 '*' $ac_mid`
20528fi
20529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20530 done
20531else
20532 echo "$as_me: failed program was:" >&5
20533sed 's/^/| /' conftest.$ac_ext >&5
20534
20535ac_lo= ac_hi=
20536fi
20537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20538fi
20539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20540# Binary search between lo and hi bounds.
20541while test "x$ac_lo" != "x$ac_hi"; do
20542 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20543 cat >conftest.$ac_ext <<_ACEOF
20544/* confdefs.h. */
20545_ACEOF
20546cat confdefs.h >>conftest.$ac_ext
20547cat >>conftest.$ac_ext <<_ACEOF
20548/* end confdefs.h. */
20549
83d8eb47
MW
20550 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20551 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20552 # error "fake wchar_t"
20553 #endif
20554 #ifdef HAVE_WCHAR_H
20555 # ifdef __CYGWIN__
20556 # include <stddef.h>
20557 # endif
20558 # include <wchar.h>
20559 #endif
20560 #ifdef HAVE_STDLIB_H
20561 # include <stdlib.h>
20562 #endif
20563 #include <stdio.h>
a848cd7e 20564
a848cd7e 20565
a848cd7e 20566
238ecede
MW
20567int
20568main ()
20569{
20570static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20571test_array [0] = 0
a848cd7e 20572
238ecede
MW
20573 ;
20574 return 0;
20575}
20576_ACEOF
20577rm -f conftest.$ac_objext
20578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20579 (eval $ac_compile) 2>conftest.er1
20580 ac_status=$?
20581 grep -v '^ *+' conftest.er1 >conftest.err
20582 rm -f conftest.er1
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } &&
dee1a63f
MB
20586 { ac_try='test -z "$ac_c_werror_flag"
20587 || test ! -s conftest.err'
238ecede
MW
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20590 ac_status=$?
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } &&
20593 { ac_try='test -s conftest.$ac_objext'
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_hi=$ac_mid
20600else
20601 echo "$as_me: failed program was:" >&5
20602sed 's/^/| /' conftest.$ac_ext >&5
20603
20604ac_lo=`expr '(' $ac_mid ')' + 1`
20605fi
20606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20607done
20608case $ac_lo in
20609?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20610'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20611See \`config.log' for more details." >&5
20612echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20613See \`config.log' for more details." >&2;}
20614 { (exit 1); exit 1; }; } ;;
20615esac
20616else
20617 if test "$cross_compiling" = yes; then
dee1a63f
MB
20618 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20619See \`config.log' for more details." >&5
20620echo "$as_me: error: cannot run test program while cross compiling
20621See \`config.log' for more details." >&2;}
238ecede 20622 { (exit 1); exit 1; }; }
a848cd7e
SC
20623else
20624 cat >conftest.$ac_ext <<_ACEOF
20625/* confdefs.h. */
20626_ACEOF
20627cat confdefs.h >>conftest.$ac_ext
20628cat >>conftest.$ac_ext <<_ACEOF
20629/* end confdefs.h. */
20630
83d8eb47
MW
20631 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20632 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20633 # error "fake wchar_t"
20634 #endif
20635 #ifdef HAVE_WCHAR_H
20636 # ifdef __CYGWIN__
20637 # include <stddef.h>
20638 # endif
20639 # include <wchar.h>
20640 #endif
20641 #ifdef HAVE_STDLIB_H
20642 # include <stdlib.h>
20643 #endif
20644 #include <stdio.h>
20645
20646
20647
20648long longval () { return (long) (sizeof (wchar_t)); }
20649unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20650#include <stdio.h>
20651#include <stdlib.h>
20652int
20653main ()
20654{
a848cd7e 20655
238ecede
MW
20656 FILE *f = fopen ("conftest.val", "w");
20657 if (! f)
20658 exit (1);
20659 if (((long) (sizeof (wchar_t))) < 0)
20660 {
20661 long i = longval ();
20662 if (i != ((long) (sizeof (wchar_t))))
20663 exit (1);
20664 fprintf (f, "%ld\n", i);
20665 }
20666 else
20667 {
20668 unsigned long i = ulongval ();
20669 if (i != ((long) (sizeof (wchar_t))))
20670 exit (1);
20671 fprintf (f, "%lu\n", i);
20672 }
20673 exit (ferror (f) || fclose (f) != 0);
20674
20675 ;
20676 return 0;
20677}
a848cd7e
SC
20678_ACEOF
20679rm -f conftest$ac_exeext
20680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20681 (eval $ac_link) 2>&5
20682 ac_status=$?
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
238ecede 20690 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20691else
20692 echo "$as_me: program exited with status $ac_status" >&5
20693echo "$as_me: failed program was:" >&5
20694sed 's/^/| /' conftest.$ac_ext >&5
20695
20696( exit $ac_status )
238ecede
MW
20697{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20698See \`config.log' for more details." >&5
20699echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20700See \`config.log' for more details." >&2;}
20701 { (exit 1); exit 1; }; }
a848cd7e 20702fi
ac1cb8d3 20703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20704fi
a848cd7e 20705fi
238ecede
MW
20706rm -f conftest.val
20707else
20708 ac_cv_sizeof_wchar_t=0
20709fi
20710fi
20711echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20712echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20713cat >>confdefs.h <<_ACEOF
238ecede 20714#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20715_ACEOF
20716
20717
47a7e797
MW
20718if test "$ac_cv_sizeof_wchar_t" != "0"; then
20719 wxUSE_WCHAR_T=yes
20720else
20721 wxUSE_WCHAR_T=no
20722fi
238ecede 20723
ba3d13e1
VZ
20724echo "$as_me:$LINENO: checking for va_copy" >&5
20725echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20726if test "${wx_cv_func_va_copy+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20728else
20729
20730 cat >conftest.$ac_ext <<_ACEOF
20731
20732 #include <stdarg.h>
20733 void foo(char *f, ...)
20734 {
20735 va_list ap1, ap2;
20736 va_start(ap1, f);
20737 va_copy(ap2, ap1);
20738 va_end(ap2);
20739 va_end(ap1);
20740 }
5886b072
VZ
20741 int main()
20742 {
b902e639
VZ
20743 foo("hi", 17);
20744 return 0;
5886b072 20745 }
ba3d13e1
VZ
20746_ACEOF
20747rm -f conftest.$ac_objext conftest$ac_exeext
20748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20749 (eval $ac_link) 2>conftest.er1
20750 ac_status=$?
20751 grep -v '^ *+' conftest.er1 >conftest.err
20752 rm -f conftest.er1
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } &&
dee1a63f
MB
20756 { ac_try='test -z "$ac_c_werror_flag"
20757 || test ! -s conftest.err'
ba3d13e1
VZ
20758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759 (eval $ac_try) 2>&5
20760 ac_status=$?
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); }; } &&
20763 { ac_try='test -s conftest$ac_exeext'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20766 ac_status=$?
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; }; then
20769 wx_cv_func_va_copy=yes
20770else
20771 echo "$as_me: failed program was:" >&5
20772sed 's/^/| /' conftest.$ac_ext >&5
20773
20774wx_cv_func_va_copy=no
20775
20776fi
20777rm -f conftest.err conftest.$ac_objext \
20778 conftest$ac_exeext conftest.$ac_ext
20779
20780
20781fi
20782echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20783echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20784
20785if test $wx_cv_func_va_copy = "yes"; then
20786 cat >>confdefs.h <<\_ACEOF
20787#define HAVE_VA_COPY 1
20788_ACEOF
20789
20790else
20791 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20792echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20793if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20795else
20796
20797 if test "$cross_compiling" = yes; then
20798 wx_cv_type_va_list_lvalue=yes
20799
20800else
20801 cat >conftest.$ac_ext <<_ACEOF
20802
20803 #include <stdarg.h>
20804 int foo(char *f, ...)
20805 {
20806 va_list ap1, ap2;
20807 va_start(ap1, f);
20808 ap2 = ap1;
20809 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20810 return 1;
20811 va_end(ap2);
20812 va_end(ap1);
20813 return 0;
20814 }
20815 int main()
20816 {
20817 return foo("hi", 17);
20818 }
20819_ACEOF
20820rm -f conftest$ac_exeext
20821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20822 (eval $ac_link) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20828 ac_status=$?
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; }; then
20831 wx_cv_type_va_list_lvalue=yes
20832else
20833 echo "$as_me: program exited with status $ac_status" >&5
20834echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
20837( exit $ac_status )
20838wx_cv_type_va_list_lvalue=no
20839fi
20840rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20841fi
20842
20843
20844fi
20845echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20846echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20847
20848 if test $wx_cv_type_va_list_lvalue != "yes"; then
20849 cat >>confdefs.h <<\_ACEOF
20850#define VA_LIST_IS_ARRAY 1
20851_ACEOF
20852
20853 fi
20854fi
20855
a848cd7e
SC
20856# Check whether --enable-largefile or --disable-largefile was given.
20857if test "${enable_largefile+set}" = set; then
20858 enableval="$enable_largefile"
20859
20860fi;
20861if test "$enable_largefile" != no; then
20862 wx_largefile=no
20863
20864 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20865echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20866if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868else
20869
20870 cat >conftest.$ac_ext <<_ACEOF
20871/* confdefs.h. */
20872_ACEOF
20873cat confdefs.h >>conftest.$ac_ext
20874cat >>conftest.$ac_ext <<_ACEOF
20875/* end confdefs.h. */
20876#define _FILE_OFFSET_BITS 64
20877 #include <sys/types.h>
20878int
20879main ()
20880{
20881typedef struct {
20882 unsigned int field: sizeof(off_t) == 8;
20883} wxlf;
20884
20885 ;
20886 return 0;
20887}
20888_ACEOF
20889rm -f conftest.$ac_objext
20890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20891 (eval $ac_compile) 2>conftest.er1
a848cd7e 20892 ac_status=$?
ac1cb8d3
VS
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
a848cd7e
SC
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } &&
dee1a63f
MB
20898 { ac_try='test -z "$ac_c_werror_flag"
20899 || test ! -s conftest.err'
ac1cb8d3
VS
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; } &&
20905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }; then
20911 ac_cv_sys_file_offset_bits=64
20912else
20913 echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
20915
20916ac_cv_sys_file_offset_bits=no
20917fi
ac1cb8d3 20918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20919
20920
20921fi
20922echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20923echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20924
20925 if test "$ac_cv_sys_file_offset_bits" != no; then
20926 wx_largefile=yes
20927 cat >>confdefs.h <<_ACEOF
20928#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20929_ACEOF
20930
20931 fi
20932
20933 if test "x$wx_largefile" != "xyes"; then
20934
20935 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20936echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20937if test "${ac_cv_sys_large_files+set}" = set; then
20938 echo $ECHO_N "(cached) $ECHO_C" >&6
20939else
20940
20941 cat >conftest.$ac_ext <<_ACEOF
20942/* confdefs.h. */
20943_ACEOF
20944cat confdefs.h >>conftest.$ac_ext
20945cat >>conftest.$ac_ext <<_ACEOF
20946/* end confdefs.h. */
20947#define _LARGE_FILES 1
20948 #include <sys/types.h>
20949int
20950main ()
20951{
20952typedef struct {
20953 unsigned int field: sizeof(off_t) == 8;
20954} wxlf;
20955
20956 ;
20957 return 0;
20958}
20959_ACEOF
20960rm -f conftest.$ac_objext
20961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20962 (eval $ac_compile) 2>conftest.er1
a848cd7e 20963 ac_status=$?
ac1cb8d3
VS
20964 grep -v '^ *+' conftest.er1 >conftest.err
20965 rm -f conftest.er1
20966 cat conftest.err >&5
a848cd7e
SC
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } &&
dee1a63f
MB
20969 { ac_try='test -z "$ac_c_werror_flag"
20970 || test ! -s conftest.err'
ac1cb8d3
VS
20971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972 (eval $ac_try) 2>&5
20973 ac_status=$?
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; } &&
20976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978 (eval $ac_try) 2>&5
20979 ac_status=$?
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); }; }; then
20982 ac_cv_sys_large_files=1
20983else
20984 echo "$as_me: failed program was:" >&5
20985sed 's/^/| /' conftest.$ac_ext >&5
20986
20987ac_cv_sys_large_files=no
20988fi
ac1cb8d3 20989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20990
20991
20992fi
20993echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20994echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20995
20996 if test "$ac_cv_sys_large_files" != no; then
20997 wx_largefile=yes
20998 cat >>confdefs.h <<_ACEOF
20999#define _LARGE_FILES $ac_cv_sys_large_files
21000_ACEOF
21001
21002 fi
21003
21004 fi
21005
21006 echo "$as_me:$LINENO: checking if large file support is available" >&5
21007echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21008 if test "x$wx_largefile" = "xyes"; then
21009 cat >>confdefs.h <<\_ACEOF
21010#define HAVE_LARGEFILE_SUPPORT 1
21011_ACEOF
21012
21013 fi
21014 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21015echo "${ECHO_T}$wx_largefile" >&6
21016fi
21017
5b674b9d
DE
21018
21019if test "x$wx_largefile" = "xyes"; then
21020 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
21021 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21022
21023 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21024 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21025echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21026if test "${wx_cv_STDC_EXT_required+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21028else
21029
21030
21031
21032 ac_ext=cc
21033ac_cpp='$CXXCPP $CPPFLAGS'
21034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21037
21038 cat >conftest.$ac_ext <<_ACEOF
21039/* confdefs.h. */
21040_ACEOF
21041cat confdefs.h >>conftest.$ac_ext
21042cat >>conftest.$ac_ext <<_ACEOF
21043/* end confdefs.h. */
21044
21045int
21046main ()
21047{
21048
21049 #ifndef __STDC_EXT__
21050 choke me
21051 #endif
21052
21053 ;
21054 return 0;
21055}
21056_ACEOF
21057rm -f conftest.$ac_objext
21058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21059 (eval $ac_compile) 2>conftest.er1
21060 ac_status=$?
21061 grep -v '^ *+' conftest.er1 >conftest.err
21062 rm -f conftest.er1
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } &&
dee1a63f
MB
21066 { ac_try='test -z "$ac_cxx_werror_flag"
21067 || test ! -s conftest.err'
00421666
MW
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21070 ac_status=$?
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; } &&
21073 { ac_try='test -s conftest.$ac_objext'
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; }; then
21079 wx_cv_STDC_EXT_required=no
21080else
21081 echo "$as_me: failed program was:" >&5
21082sed 's/^/| /' conftest.$ac_ext >&5
21083
21084wx_cv_STDC_EXT_required=yes
21085
21086fi
21087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21088 ac_ext=c
21089ac_cpp='$CPP $CPPFLAGS'
21090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21092ac_compiler_gnu=$ac_cv_c_compiler_gnu
21093
21094
21095
21096fi
21097echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21098echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21099 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
21100 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
21101 fi
21102 fi
5b674b9d
DE
21103 else
21104 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
21105 fi
21106 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21107echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21108if test "${ac_cv_sys_largefile_source+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110else
21111 while :; do
21112 ac_cv_sys_largefile_source=no
21113 cat >conftest.$ac_ext <<_ACEOF
21114/* confdefs.h. */
21115_ACEOF
21116cat confdefs.h >>conftest.$ac_ext
21117cat >>conftest.$ac_ext <<_ACEOF
21118/* end confdefs.h. */
21119#include <stdio.h>
21120int
21121main ()
21122{
21123return !fseeko;
21124 ;
21125 return 0;
21126}
21127_ACEOF
21128rm -f conftest.$ac_objext
21129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21130 (eval $ac_compile) 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
dee1a63f
MB
21137 { ac_try='test -z "$ac_c_werror_flag"
21138 || test ! -s conftest.err'
5294a27e
VZ
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 break
21151else
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
21155fi
21156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21157 cat >conftest.$ac_ext <<_ACEOF
21158/* confdefs.h. */
21159_ACEOF
21160cat confdefs.h >>conftest.$ac_ext
21161cat >>conftest.$ac_ext <<_ACEOF
21162/* end confdefs.h. */
21163#define _LARGEFILE_SOURCE 1
21164#include <stdio.h>
21165int
21166main ()
21167{
21168return !fseeko;
21169 ;
21170 return 0;
21171}
21172_ACEOF
21173rm -f conftest.$ac_objext
21174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21175 (eval $ac_compile) 2>conftest.er1
21176 ac_status=$?
21177 grep -v '^ *+' conftest.er1 >conftest.err
21178 rm -f conftest.er1
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } &&
dee1a63f
MB
21182 { ac_try='test -z "$ac_c_werror_flag"
21183 || test ! -s conftest.err'
5294a27e
VZ
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest.$ac_objext'
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_cv_sys_largefile_source=1; break
21196else
21197 echo "$as_me: failed program was:" >&5
21198sed 's/^/| /' conftest.$ac_ext >&5
21199
21200fi
21201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21202 break
21203done
21204fi
21205echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21206echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21207if test "$ac_cv_sys_largefile_source" != no; then
21208
21209cat >>confdefs.h <<_ACEOF
21210#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21211_ACEOF
21212
21213fi
21214rm -f conftest*
21215
21216# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21217# in glibc 2.1.3, but that breaks too many other things.
21218# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21219echo "$as_me:$LINENO: checking for fseeko" >&5
21220echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21221if test "${ac_cv_func_fseeko+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21223else
21224 cat >conftest.$ac_ext <<_ACEOF
21225/* confdefs.h. */
21226_ACEOF
21227cat confdefs.h >>conftest.$ac_ext
21228cat >>conftest.$ac_ext <<_ACEOF
21229/* end confdefs.h. */
21230#include <stdio.h>
21231int
21232main ()
21233{
21234return fseeko && fseeko (stdin, 0, 0);
21235 ;
21236 return 0;
21237}
21238_ACEOF
21239rm -f conftest.$ac_objext conftest$ac_exeext
21240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21241 (eval $ac_link) 2>conftest.er1
21242 ac_status=$?
21243 grep -v '^ *+' conftest.er1 >conftest.err
21244 rm -f conftest.er1
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } &&
dee1a63f
MB
21248 { ac_try='test -z "$ac_c_werror_flag"
21249 || test ! -s conftest.err'
5294a27e
VZ
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; } &&
21255 { ac_try='test -s conftest$ac_exeext'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21258 ac_status=$?
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; }; then
21261 ac_cv_func_fseeko=yes
21262else
21263 echo "$as_me: failed program was:" >&5
21264sed 's/^/| /' conftest.$ac_ext >&5
21265
21266ac_cv_func_fseeko=no
21267fi
21268rm -f conftest.err conftest.$ac_objext \
21269 conftest$ac_exeext conftest.$ac_ext
21270fi
21271echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21272echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21273if test $ac_cv_func_fseeko = yes; then
21274
21275cat >>confdefs.h <<\_ACEOF
21276#define HAVE_FSEEKO 1
21277_ACEOF
21278
21279fi
21280
5b674b9d
DE
21281 if test "$ac_cv_sys_largefile_source" != no; then
21282 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
21283 fi
21284 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
21285fi
21286
21287echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21288echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21289if test "${ac_cv_c_bigendian+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21291else
21292 ac_cv_c_bigendian=unknown
21293# See if sys/param.h defines the BYTE_ORDER macro.
21294cat >conftest.$ac_ext <<_ACEOF
21295/* confdefs.h. */
21296_ACEOF
21297cat confdefs.h >>conftest.$ac_ext
21298cat >>conftest.$ac_ext <<_ACEOF
21299/* end confdefs.h. */
21300#include <sys/types.h>
21301#include <sys/param.h>
21302int
21303main ()
21304{
21305
21306#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21307 bogus endian macros
21308#endif
21309 ;
21310 return 0;
21311}
21312_ACEOF
21313rm -f conftest.$ac_objext
21314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21315 (eval $ac_compile) 2>conftest.er1
a848cd7e 21316 ac_status=$?
ac1cb8d3
VS
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
a848cd7e
SC
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } &&
dee1a63f
MB
21322 { ac_try='test -z "$ac_c_werror_flag"
21323 || test ! -s conftest.err'
ac1cb8d3
VS
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; } &&
21329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; }; then
21335 # It does; now see whether it defined to BIG_ENDIAN or not.
21336cat >conftest.$ac_ext <<_ACEOF
21337/* confdefs.h. */
21338_ACEOF
21339cat confdefs.h >>conftest.$ac_ext
21340cat >>conftest.$ac_ext <<_ACEOF
21341/* end confdefs.h. */
21342#include <sys/types.h>
21343#include <sys/param.h>
21344int
21345main ()
21346{
21347
21348#if BYTE_ORDER != BIG_ENDIAN
21349 not big endian
21350#endif
21351 ;
21352 return 0;
21353}
21354_ACEOF
21355rm -f conftest.$ac_objext
21356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21357 (eval $ac_compile) 2>conftest.er1
a848cd7e 21358 ac_status=$?
ac1cb8d3
VS
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
a848cd7e
SC
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
dee1a63f
MB
21364 { ac_try='test -z "$ac_c_werror_flag"
21365 || test ! -s conftest.err'
ac1cb8d3
VS
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; } &&
21371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ac_cv_c_bigendian=yes
21378else
21379 echo "$as_me: failed program was:" >&5
21380sed 's/^/| /' conftest.$ac_ext >&5
21381
21382ac_cv_c_bigendian=no
21383fi
ac1cb8d3 21384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21385else
21386 echo "$as_me: failed program was:" >&5
21387sed 's/^/| /' conftest.$ac_ext >&5
21388
21389fi
ac1cb8d3 21390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21391if test $ac_cv_c_bigendian = unknown; then
21392if test "$cross_compiling" = yes; then
21393 ac_cv_c_bigendian=unknown
21394else
21395 cat >conftest.$ac_ext <<_ACEOF
21396/* confdefs.h. */
21397_ACEOF
21398cat confdefs.h >>conftest.$ac_ext
21399cat >>conftest.$ac_ext <<_ACEOF
21400/* end confdefs.h. */
21401main () {
21402 /* Are we little or big endian? From Harbison&Steele. */
21403 union
21404 {
21405 long l;
21406 char c[sizeof (long)];
21407 } u;
21408 u.l = 1;
21409 exit (u.c[sizeof (long) - 1] == 1);
21410}
21411_ACEOF
21412rm -f conftest$ac_exeext
21413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414 (eval $ac_link) 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_c_bigendian=no
21424else
21425 echo "$as_me: program exited with status $ac_status" >&5
21426echo "$as_me: failed program was:" >&5
21427sed 's/^/| /' conftest.$ac_ext >&5
21428
21429( exit $ac_status )
21430ac_cv_c_bigendian=yes
21431fi
ac1cb8d3 21432rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21433fi
21434fi
21435fi
21436echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21437echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21438if test $ac_cv_c_bigendian = unknown; then
21439 { 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
21440echo "$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;}
21441fi
21442if test $ac_cv_c_bigendian = yes; then
21443 cat >>confdefs.h <<\_ACEOF
21444#define WORDS_BIGENDIAN 1
21445_ACEOF
21446
21447fi
21448
21449
21450ac_ext=cc
21451ac_cpp='$CXXCPP $CPPFLAGS'
21452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21455echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21456echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21457if test -z "$CXXCPP"; then
21458 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21460else
21461 # Double quotes because CXXCPP needs to be expanded
21462 for CXXCPP in "$CXX -E" "/lib/cpp"
21463 do
21464 ac_preproc_ok=false
21465for ac_cxx_preproc_warn_flag in '' yes
21466do
21467 # Use a header file that comes with gcc, so configuring glibc
21468 # with a fresh cross-compiler works.
21469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21470 # <limits.h> exists even on freestanding compilers.
21471 # On the NeXT, cc -E runs the code through the compiler's parser,
21472 # not just through cpp. "Syntax error" is here to catch this case.
21473 cat >conftest.$ac_ext <<_ACEOF
21474/* confdefs.h. */
21475_ACEOF
21476cat confdefs.h >>conftest.$ac_ext
21477cat >>conftest.$ac_ext <<_ACEOF
21478/* end confdefs.h. */
21479#ifdef __STDC__
21480# include <limits.h>
21481#else
21482# include <assert.h>
21483#endif
ac1cb8d3 21484 Syntax error
a848cd7e
SC
21485_ACEOF
21486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } >/dev/null; then
21494 if test -s conftest.err; then
21495 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21496 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21497 else
21498 ac_cpp_err=
21499 fi
21500else
21501 ac_cpp_err=yes
21502fi
21503if test -z "$ac_cpp_err"; then
21504 :
21505else
21506 echo "$as_me: failed program was:" >&5
21507sed 's/^/| /' conftest.$ac_ext >&5
21508
21509 # Broken: fails on valid input.
21510continue
21511fi
21512rm -f conftest.err conftest.$ac_ext
21513
21514 # OK, works on sane cases. Now check whether non-existent headers
21515 # can be detected and how.
21516 cat >conftest.$ac_ext <<_ACEOF
21517/* confdefs.h. */
21518_ACEOF
21519cat confdefs.h >>conftest.$ac_ext
21520cat >>conftest.$ac_ext <<_ACEOF
21521/* end confdefs.h. */
21522#include <ac_nonexistent.h>
21523_ACEOF
21524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21526 ac_status=$?
21527 grep -v '^ *+' conftest.er1 >conftest.err
21528 rm -f conftest.er1
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } >/dev/null; then
21532 if test -s conftest.err; then
21533 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21534 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21535 else
21536 ac_cpp_err=
21537 fi
21538else
21539 ac_cpp_err=yes
21540fi
21541if test -z "$ac_cpp_err"; then
21542 # Broken: success on invalid input.
21543continue
21544else
21545 echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548 # Passes both tests.
21549ac_preproc_ok=:
21550break
21551fi
21552rm -f conftest.err conftest.$ac_ext
21553
21554done
21555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21556rm -f conftest.err conftest.$ac_ext
21557if $ac_preproc_ok; then
21558 break
21559fi
21560
21561 done
21562 ac_cv_prog_CXXCPP=$CXXCPP
21563
21564fi
21565 CXXCPP=$ac_cv_prog_CXXCPP
21566else
21567 ac_cv_prog_CXXCPP=$CXXCPP
21568fi
21569echo "$as_me:$LINENO: result: $CXXCPP" >&5
21570echo "${ECHO_T}$CXXCPP" >&6
21571ac_preproc_ok=false
21572for ac_cxx_preproc_warn_flag in '' yes
21573do
21574 # Use a header file that comes with gcc, so configuring glibc
21575 # with a fresh cross-compiler works.
21576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21577 # <limits.h> exists even on freestanding compilers.
21578 # On the NeXT, cc -E runs the code through the compiler's parser,
21579 # not just through cpp. "Syntax error" is here to catch this case.
21580 cat >conftest.$ac_ext <<_ACEOF
21581/* confdefs.h. */
21582_ACEOF
21583cat confdefs.h >>conftest.$ac_ext
21584cat >>conftest.$ac_ext <<_ACEOF
21585/* end confdefs.h. */
21586#ifdef __STDC__
21587# include <limits.h>
21588#else
21589# include <assert.h>
21590#endif
ac1cb8d3 21591 Syntax error
a848cd7e
SC
21592_ACEOF
21593if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21595 ac_status=$?
21596 grep -v '^ *+' conftest.er1 >conftest.err
21597 rm -f conftest.er1
21598 cat conftest.err >&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } >/dev/null; then
21601 if test -s conftest.err; then
21602 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21603 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21604 else
21605 ac_cpp_err=
21606 fi
21607else
21608 ac_cpp_err=yes
21609fi
21610if test -z "$ac_cpp_err"; then
21611 :
21612else
21613 echo "$as_me: failed program was:" >&5
21614sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 # Broken: fails on valid input.
21617continue
21618fi
21619rm -f conftest.err conftest.$ac_ext
21620
21621 # OK, works on sane cases. Now check whether non-existent headers
21622 # can be detected and how.
21623 cat >conftest.$ac_ext <<_ACEOF
21624/* confdefs.h. */
21625_ACEOF
21626cat confdefs.h >>conftest.$ac_ext
21627cat >>conftest.$ac_ext <<_ACEOF
21628/* end confdefs.h. */
21629#include <ac_nonexistent.h>
21630_ACEOF
21631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21633 ac_status=$?
21634 grep -v '^ *+' conftest.er1 >conftest.err
21635 rm -f conftest.er1
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } >/dev/null; then
21639 if test -s conftest.err; then
21640 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21641 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21642 else
21643 ac_cpp_err=
21644 fi
21645else
21646 ac_cpp_err=yes
21647fi
21648if test -z "$ac_cpp_err"; then
21649 # Broken: success on invalid input.
21650continue
21651else
21652 echo "$as_me: failed program was:" >&5
21653sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 # Passes both tests.
21656ac_preproc_ok=:
21657break
21658fi
21659rm -f conftest.err conftest.$ac_ext
21660
21661done
21662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21663rm -f conftest.err conftest.$ac_ext
21664if $ac_preproc_ok; then
21665 :
21666else
21667 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21668See \`config.log' for more details." >&5
21669echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21670See \`config.log' for more details." >&2;}
21671 { (exit 1); exit 1; }; }
21672fi
21673
21674ac_ext=cc
21675ac_cpp='$CXXCPP $CPPFLAGS'
21676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21679
21680
21681
21682
21683
21684 ac_ext=cc
21685ac_cpp='$CXXCPP $CPPFLAGS'
21686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21689
21690
21691
21692for ac_header in iostream
21693do
21694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21695if eval "test \"\${$as_ac_Header+set}\" = set"; then
21696 echo "$as_me:$LINENO: checking for $ac_header" >&5
21697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21698if eval "test \"\${$as_ac_Header+set}\" = set"; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21700fi
21701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21703else
21704 # Is the header compilable?
21705echo "$as_me:$LINENO: checking $ac_header usability" >&5
21706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21707cat >conftest.$ac_ext <<_ACEOF
21708/* confdefs.h. */
21709_ACEOF
21710cat confdefs.h >>conftest.$ac_ext
21711cat >>conftest.$ac_ext <<_ACEOF
21712/* end confdefs.h. */
21713$ac_includes_default
21714#include <$ac_header>
21715_ACEOF
21716rm -f conftest.$ac_objext
21717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21718 (eval $ac_compile) 2>conftest.er1
a848cd7e 21719 ac_status=$?
ac1cb8d3
VS
21720 grep -v '^ *+' conftest.er1 >conftest.err
21721 rm -f conftest.er1
21722 cat conftest.err >&5
a848cd7e
SC
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } &&
dee1a63f
MB
21725 { ac_try='test -z "$ac_cxx_werror_flag"
21726 || test ! -s conftest.err'
ac1cb8d3
VS
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; } &&
21732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
21738 ac_header_compiler=yes
21739else
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743ac_header_compiler=no
21744fi
ac1cb8d3 21745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21747echo "${ECHO_T}$ac_header_compiler" >&6
21748
21749# Is the header present?
21750echo "$as_me:$LINENO: checking $ac_header presence" >&5
21751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21752cat >conftest.$ac_ext <<_ACEOF
21753/* confdefs.h. */
21754_ACEOF
21755cat confdefs.h >>conftest.$ac_ext
21756cat >>conftest.$ac_ext <<_ACEOF
21757/* end confdefs.h. */
21758#include <$ac_header>
21759_ACEOF
21760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21762 ac_status=$?
21763 grep -v '^ *+' conftest.er1 >conftest.err
21764 rm -f conftest.er1
21765 cat conftest.err >&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } >/dev/null; then
21768 if test -s conftest.err; then
21769 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21770 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21771 else
21772 ac_cpp_err=
21773 fi
21774else
21775 ac_cpp_err=yes
21776fi
21777if test -z "$ac_cpp_err"; then
21778 ac_header_preproc=yes
21779else
21780 echo "$as_me: failed program was:" >&5
21781sed 's/^/| /' conftest.$ac_ext >&5
21782
21783 ac_header_preproc=no
21784fi
21785rm -f conftest.err conftest.$ac_ext
21786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21787echo "${ECHO_T}$ac_header_preproc" >&6
21788
21789# So? What about this header?
ac1cb8d3
VS
21790case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21791 yes:no: )
a848cd7e
SC
21792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21796 ac_header_preproc=yes
a848cd7e 21797 ;;
ac1cb8d3 21798 no:yes:* )
a848cd7e
SC
21799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21806echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21811 (
21812 cat <<\_ASBOX
ac1cb8d3
VS
21813## ----------------------------------------- ##
21814## Report this to wx-dev@lists.wxwidgets.org ##
21815## ----------------------------------------- ##
a848cd7e
SC
21816_ASBOX
21817 ) |
21818 sed "s/^/$as_me: WARNING: /" >&2
21819 ;;
21820esac
21821echo "$as_me:$LINENO: checking for $ac_header" >&5
21822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21823if eval "test \"\${$as_ac_Header+set}\" = set"; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825else
ac1cb8d3 21826 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21827fi
21828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21830
21831fi
21832if test `eval echo '${'$as_ac_Header'}'` = yes; then
21833 cat >>confdefs.h <<_ACEOF
21834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21835_ACEOF
21836
21837fi
21838
21839done
21840
21841
21842 if test "$ac_cv_header_iostream" = "yes" ; then
21843 :
21844 else
21845 cat >>confdefs.h <<\_ACEOF
21846#define wxUSE_IOSTREAMH 1
21847_ACEOF
21848
21849 fi
21850
21851 ac_ext=c
21852ac_cpp='$CPP $CPPFLAGS'
21853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21855ac_compiler_gnu=$ac_cv_c_compiler_gnu
21856
21857
21858
21859
21860 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21861echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21862if test "${wx_cv_cpp_bool+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864else
21865
21866
21867
21868 ac_ext=cc
21869ac_cpp='$CXXCPP $CPPFLAGS'
21870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21873
21874
21875 cat >conftest.$ac_ext <<_ACEOF
21876/* confdefs.h. */
21877_ACEOF
21878cat confdefs.h >>conftest.$ac_ext
21879cat >>conftest.$ac_ext <<_ACEOF
21880/* end confdefs.h. */
21881
21882
21883int
21884main ()
21885{
21886
21887 bool b = true;
21888
21889 return 0;
21890
21891 ;
21892 return 0;
21893}
21894_ACEOF
21895rm -f conftest.$ac_objext
21896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21897 (eval $ac_compile) 2>conftest.er1
a848cd7e 21898 ac_status=$?
ac1cb8d3
VS
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
a848cd7e
SC
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } &&
dee1a63f
MB
21904 { ac_try='test -z "$ac_cxx_werror_flag"
21905 || test ! -s conftest.err'
ac1cb8d3
VS
21906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; } &&
21911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; }; then
21917
21918 wx_cv_cpp_bool=yes
21919
21920else
21921 echo "$as_me: failed program was:" >&5
21922sed 's/^/| /' conftest.$ac_ext >&5
21923
21924
21925 wx_cv_cpp_bool=no
21926
21927
21928fi
ac1cb8d3 21929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21930
21931 ac_ext=c
21932ac_cpp='$CPP $CPPFLAGS'
21933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21935ac_compiler_gnu=$ac_cv_c_compiler_gnu
21936
21937
21938fi
21939echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21940echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21941
21942 if test "$wx_cv_cpp_bool" = "yes"; then
21943 cat >>confdefs.h <<\_ACEOF
21944#define HAVE_BOOL 1
21945_ACEOF
21946
21947 fi
21948
21949
21950
21951 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21952echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21953if test "${wx_cv_explicit+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21955else
21956
21957
21958
21959 ac_ext=cc
21960ac_cpp='$CXXCPP $CPPFLAGS'
21961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21964
21965
21966 cat >conftest.$ac_ext <<_ACEOF
21967/* confdefs.h. */
21968_ACEOF
21969cat confdefs.h >>conftest.$ac_ext
21970cat >>conftest.$ac_ext <<_ACEOF
21971/* end confdefs.h. */
21972
21973 class Foo { public: explicit Foo(int) {} };
21974
21975int
21976main ()
21977{
21978
21979 return 0;
21980
21981 ;
21982 return 0;
21983}
21984_ACEOF
21985rm -f conftest.$ac_objext
21986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21987 (eval $ac_compile) 2>conftest.er1
a848cd7e 21988 ac_status=$?
ac1cb8d3
VS
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
a848cd7e
SC
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
dee1a63f
MB
21994 { ac_try='test -z "$ac_cxx_werror_flag"
21995 || test ! -s conftest.err'
ac1cb8d3
VS
21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; } &&
22001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; }; then
22007
22008 cat >conftest.$ac_ext <<_ACEOF
22009/* confdefs.h. */
22010_ACEOF
22011cat confdefs.h >>conftest.$ac_ext
22012cat >>conftest.$ac_ext <<_ACEOF
22013/* end confdefs.h. */
22014
22015 class Foo { public: explicit Foo(int) {} };
22016 static void TakeFoo(const Foo& foo) { }
22017
22018int
22019main ()
22020{
22021
22022 TakeFoo(17);
22023 return 0;
22024
22025 ;
22026 return 0;
22027}
22028_ACEOF
22029rm -f conftest.$ac_objext
22030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22031 (eval $ac_compile) 2>conftest.er1
a848cd7e 22032 ac_status=$?
ac1cb8d3
VS
22033 grep -v '^ *+' conftest.er1 >conftest.err
22034 rm -f conftest.er1
22035 cat conftest.err >&5
a848cd7e
SC
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); } &&
dee1a63f
MB
22038 { ac_try='test -z "$ac_cxx_werror_flag"
22039 || test ! -s conftest.err'
ac1cb8d3
VS
22040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22041 (eval $ac_try) 2>&5
22042 ac_status=$?
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; } &&
22045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047 (eval $ac_try) 2>&5
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; }; then
22051 wx_cv_explicit=no
22052else
22053 echo "$as_me: failed program was:" >&5
22054sed 's/^/| /' conftest.$ac_ext >&5
22055
22056wx_cv_explicit=yes
22057
22058fi
ac1cb8d3 22059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22060
22061else
22062 echo "$as_me: failed program was:" >&5
22063sed 's/^/| /' conftest.$ac_ext >&5
22064
22065wx_cv_explicit=no
22066
22067fi
ac1cb8d3 22068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22069
22070 ac_ext=c
22071ac_cpp='$CPP $CPPFLAGS'
22072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22074ac_compiler_gnu=$ac_cv_c_compiler_gnu
22075
22076
22077fi
22078echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22079echo "${ECHO_T}$wx_cv_explicit" >&6
22080
22081 if test "$wx_cv_explicit" = "yes"; then
22082 cat >>confdefs.h <<\_ACEOF
22083#define HAVE_EXPLICIT 1
22084_ACEOF
22085
22086 fi
22087
22088
22089echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22090echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22091if test "${ac_cv_cxx_const_cast+set}" = set; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22093else
22094
22095
22096 ac_ext=cc
22097ac_cpp='$CXXCPP $CPPFLAGS'
22098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22101
22102 cat >conftest.$ac_ext <<_ACEOF
22103/* confdefs.h. */
22104_ACEOF
22105cat confdefs.h >>conftest.$ac_ext
22106cat >>conftest.$ac_ext <<_ACEOF
22107/* end confdefs.h. */
22108
22109int
22110main ()
22111{
22112int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22113 ;
22114 return 0;
22115}
22116_ACEOF
22117rm -f conftest.$ac_objext
22118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22119 (eval $ac_compile) 2>conftest.er1
a848cd7e 22120 ac_status=$?
ac1cb8d3
VS
22121 grep -v '^ *+' conftest.er1 >conftest.err
22122 rm -f conftest.er1
22123 cat conftest.err >&5
a848cd7e
SC
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); } &&
dee1a63f
MB
22126 { ac_try='test -z "$ac_cxx_werror_flag"
22127 || test ! -s conftest.err'
ac1cb8d3
VS
22128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129 (eval $ac_try) 2>&5
22130 ac_status=$?
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); }; } &&
22133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135 (eval $ac_try) 2>&5
22136 ac_status=$?
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; }; then
22139 ac_cv_cxx_const_cast=yes
22140else
22141 echo "$as_me: failed program was:" >&5
22142sed 's/^/| /' conftest.$ac_ext >&5
22143
22144ac_cv_cxx_const_cast=no
22145fi
ac1cb8d3 22146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22147 ac_ext=c
22148ac_cpp='$CPP $CPPFLAGS'
22149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22151ac_compiler_gnu=$ac_cv_c_compiler_gnu
22152
22153
22154fi
22155echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22156echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22157if test "$ac_cv_cxx_const_cast" = yes; then
22158
22159cat >>confdefs.h <<\_ACEOF
22160#define HAVE_CONST_CAST
22161_ACEOF
22162
22163fi
22164
7714864e
RL
22165echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22166echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22167if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22168 echo $ECHO_N "(cached) $ECHO_C" >&6
22169else
22170
22171
22172 ac_ext=cc
22173ac_cpp='$CXXCPP $CPPFLAGS'
22174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22177
22178 cat >conftest.$ac_ext <<_ACEOF
22179/* confdefs.h. */
22180_ACEOF
22181cat confdefs.h >>conftest.$ac_ext
22182cat >>conftest.$ac_ext <<_ACEOF
22183/* end confdefs.h. */
22184#include <typeinfo>
22185class Base { public : Base () {} virtual void f () = 0;};
22186class Derived : public Base { public : Derived () {} virtual void f () {} };
22187class Unrelated { public : Unrelated () {} };
22188int g (Unrelated&) { return 0; }
22189int
22190main ()
22191{
22192
22193Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22194 ;
22195 return 0;
22196}
22197_ACEOF
22198rm -f conftest.$ac_objext
22199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22200 (eval $ac_compile) 2>conftest.er1
22201 ac_status=$?
22202 grep -v '^ *+' conftest.er1 >conftest.err
22203 rm -f conftest.er1
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } &&
dee1a63f
MB
22207 { ac_try='test -z "$ac_cxx_werror_flag"
22208 || test ! -s conftest.err'
7714864e
RL
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; } &&
22214 { ac_try='test -s conftest.$ac_objext'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22217 ac_status=$?
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; }; then
22220 ac_cv_cxx_reinterpret_cast=yes
22221else
22222 echo "$as_me: failed program was:" >&5
22223sed 's/^/| /' conftest.$ac_ext >&5
22224
22225ac_cv_cxx_reinterpret_cast=no
22226fi
22227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22228 ac_ext=c
22229ac_cpp='$CPP $CPPFLAGS'
22230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22232ac_compiler_gnu=$ac_cv_c_compiler_gnu
22233
22234
22235fi
22236echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22237echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22238if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22239
22240cat >>confdefs.h <<\_ACEOF
22241#define HAVE_REINTERPRET_CAST
22242_ACEOF
22243
22244fi
22245
a848cd7e
SC
22246echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22247echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22248if test "${ac_cv_cxx_static_cast+set}" = set; then
22249 echo $ECHO_N "(cached) $ECHO_C" >&6
22250else
22251
22252
22253 ac_ext=cc
22254ac_cpp='$CXXCPP $CPPFLAGS'
22255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22258
22259 cat >conftest.$ac_ext <<_ACEOF
22260/* confdefs.h. */
22261_ACEOF
22262cat confdefs.h >>conftest.$ac_ext
22263cat >>conftest.$ac_ext <<_ACEOF
22264/* end confdefs.h. */
22265#include <typeinfo>
22266class Base { public : Base () {} virtual void f () = 0; };
22267class Derived : public Base { public : Derived () {} virtual void f () {} };
22268int g (Derived&) { return 0; }
22269int
22270main ()
22271{
22272
22273Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22274 ;
22275 return 0;
22276}
22277_ACEOF
22278rm -f conftest.$ac_objext
22279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22280 (eval $ac_compile) 2>conftest.er1
a848cd7e 22281 ac_status=$?
ac1cb8d3
VS
22282 grep -v '^ *+' conftest.er1 >conftest.err
22283 rm -f conftest.er1
22284 cat conftest.err >&5
a848cd7e
SC
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } &&
dee1a63f
MB
22287 { ac_try='test -z "$ac_cxx_werror_flag"
22288 || test ! -s conftest.err'
ac1cb8d3
VS
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; } &&
22294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; }; then
22300 ac_cv_cxx_static_cast=yes
22301else
22302 echo "$as_me: failed program was:" >&5
22303sed 's/^/| /' conftest.$ac_ext >&5
22304
22305ac_cv_cxx_static_cast=no
22306fi
ac1cb8d3 22307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22308 ac_ext=c
22309ac_cpp='$CPP $CPPFLAGS'
22310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22312ac_compiler_gnu=$ac_cv_c_compiler_gnu
22313
22314
22315fi
22316echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22317echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22318if test "$ac_cv_cxx_static_cast" = yes; then
22319
22320cat >>confdefs.h <<\_ACEOF
22321#define HAVE_STATIC_CAST
22322_ACEOF
22323
22324fi
22325
22326
3c28b7cb
MW
22327if test "x$SUNCXX" = xyes; then
22328 CXXFLAGS="$CXXFLAGS -features=tmplife"
22329fi
22330
9122d155
VZ
22331if test "x$SUNCC" = xyes; then
22332 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
22333fi
22334
0ad5d837
VZ
22335if test "x$SGICC" = "xyes"; then
22336 CFLAGS="$CFLAGS -woff 3970"
22337fi
22338if test "x$SGICXX" = "xyes"; then
22339 CXXFLAGS="$CXXFLAGS -woff 3970"
22340fi
22341
2eef8513
VZ
22342if test "x$HPCC" = "xyes"; then
22343 CFLAGS="$CFLAGS +W 2011,2450"
22344fi
22345if test "x$HPCXX" = "xyes"; then
22346 CXXFLAGS="$CXXFLAGS +W 2340"
22347fi
22348
22349if test "x$COMPAQCXX" = "xyes"; then
22350 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22351fi
22352
f56c22b4 22353if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22354 ac_ext=cc
22355ac_cpp='$CXXCPP $CPPFLAGS'
22356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22359
22360
f56c22b4
MW
22361 if test "$wxUSE_UNICODE" = "yes"; then
22362 std_string="std::wstring"
22363 char_type="wchar_t"
22364 else
22365 std_string="std::string"
22366 char_type="char"
22367 fi
22368
22369 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22370echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22371 cat >conftest.$ac_ext <<_ACEOF
22372/* confdefs.h. */
22373_ACEOF
22374cat confdefs.h >>conftest.$ac_ext
22375cat >>conftest.$ac_ext <<_ACEOF
22376/* end confdefs.h. */
22377#include <string>
a848cd7e
SC
22378int
22379main ()
22380{
f56c22b4 22381$std_string foo;
a848cd7e
SC
22382 ;
22383 return 0;
22384}
22385_ACEOF
22386rm -f conftest.$ac_objext
22387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22388 (eval $ac_compile) 2>conftest.er1
a848cd7e 22389 ac_status=$?
ac1cb8d3
VS
22390 grep -v '^ *+' conftest.er1 >conftest.err
22391 rm -f conftest.er1
22392 cat conftest.err >&5
a848cd7e
SC
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } &&
dee1a63f
MB
22395 { ac_try='test -z "$ac_cxx_werror_flag"
22396 || test ! -s conftest.err'
ac1cb8d3
VS
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; } &&
22402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22405 ac_status=$?
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; }; then
22408 echo "$as_me:$LINENO: result: yes" >&5
22409echo "${ECHO_T}yes" >&6
0a08f02a
MB
22410 cat >>confdefs.h <<\_ACEOF
22411#define HAVE_STD_WSTRING 1
22412_ACEOF
22413
a848cd7e
SC
22414else
22415 echo "$as_me: failed program was:" >&5
22416sed 's/^/| /' conftest.$ac_ext >&5
22417
22418echo "$as_me:$LINENO: result: no" >&5
22419echo "${ECHO_T}no" >&6
f56c22b4
MW
22420 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22421echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22422 cat >conftest.$ac_ext <<_ACEOF
22423/* confdefs.h. */
22424_ACEOF
22425cat confdefs.h >>conftest.$ac_ext
22426cat >>conftest.$ac_ext <<_ACEOF
22427/* end confdefs.h. */
22428
22429 #ifdef HAVE_WCHAR_H
22430 # ifdef __CYGWIN__
22431 # include <stddef.h>
22432 # endif
22433 # include <wchar.h>
22434 #endif
22435 #ifdef HAVE_STDLIB_H
22436 # include <stdlib.h>
22437 #endif
22438 #include <stdio.h>
22439 #include <string>
22440
22441int
22442main ()
22443{
f56c22b4
MW
22444std::basic_string<$char_type> foo;
22445 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22446 ;
22447 return 0;
22448}
22449_ACEOF
22450rm -f conftest.$ac_objext
22451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22452 (eval $ac_compile) 2>conftest.er1
22453 ac_status=$?
22454 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
dee1a63f
MB
22459 { ac_try='test -z "$ac_cxx_werror_flag"
22460 || test ! -s conftest.err'
0a08f02a
MB
22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5
22463 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; } &&
22466 { ac_try='test -s conftest.$ac_objext'
22467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22468 (eval $ac_try) 2>&5
22469 ac_status=$?
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); }; }; then
22472 echo "$as_me:$LINENO: result: yes" >&5
22473echo "${ECHO_T}yes" >&6
22474else
22475 echo "$as_me: failed program was:" >&5
22476sed 's/^/| /' conftest.$ac_ext >&5
22477
22478echo "$as_me:$LINENO: result: no" >&5
22479echo "${ECHO_T}no" >&6
f56c22b4 22480 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22481 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22482echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22483 { (exit 1); exit 1; }; }
22484 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22485 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22486echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22487 { (exit 1); exit 1; }; }
f56c22b4
MW
22488 else
22489 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22490echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22491 wxUSE_STD_STRING=no
22492 fi
22493
0a08f02a 22494
a848cd7e 22495fi
ac1cb8d3 22496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22497
0a08f02a
MB
22498fi
22499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22500
22501 ac_ext=c
22502ac_cpp='$CPP $CPPFLAGS'
22503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22505ac_compiler_gnu=$ac_cv_c_compiler_gnu
22506
22507fi
22508
22509if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22510 ac_ext=cc
22511ac_cpp='$CXXCPP $CPPFLAGS'
22512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22515
22516
22517 echo "$as_me:$LINENO: checking for std::istream" >&5
22518echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22519if test "${ac_cv_type_std__istream+set}" = set; then
22520 echo $ECHO_N "(cached) $ECHO_C" >&6
22521else
22522 cat >conftest.$ac_ext <<_ACEOF
22523/* confdefs.h. */
22524_ACEOF
22525cat confdefs.h >>conftest.$ac_ext
22526cat >>conftest.$ac_ext <<_ACEOF
22527/* end confdefs.h. */
22528#include <iostream>
22529
22530int
22531main ()
22532{
22533if ((std::istream *) 0)
22534 return 0;
22535if (sizeof (std::istream))
22536 return 0;
22537 ;
22538 return 0;
22539}
22540_ACEOF
22541rm -f conftest.$ac_objext
22542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22543 (eval $ac_compile) 2>conftest.er1
22544 ac_status=$?
22545 grep -v '^ *+' conftest.er1 >conftest.err
22546 rm -f conftest.er1
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } &&
dee1a63f
MB
22550 { ac_try='test -z "$ac_cxx_werror_flag"
22551 || test ! -s conftest.err'
f56c22b4
MW
22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22554 ac_status=$?
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; } &&
22557 { ac_try='test -s conftest.$ac_objext'
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; }; then
22563 ac_cv_type_std__istream=yes
22564else
22565 echo "$as_me: failed program was:" >&5
22566sed 's/^/| /' conftest.$ac_ext >&5
22567
22568ac_cv_type_std__istream=no
22569fi
22570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22571fi
22572echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22573echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22574if test $ac_cv_type_std__istream = yes; then
22575
22576cat >>confdefs.h <<_ACEOF
22577#define HAVE_STD__ISTREAM 1
22578_ACEOF
22579
22580
22581else
22582 wxUSE_STD_IOSTREAM=no
22583fi
22584echo "$as_me:$LINENO: checking for std::ostream" >&5
22585echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22586if test "${ac_cv_type_std__ostream+set}" = set; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22588else
22589 cat >conftest.$ac_ext <<_ACEOF
22590/* confdefs.h. */
22591_ACEOF
22592cat confdefs.h >>conftest.$ac_ext
22593cat >>conftest.$ac_ext <<_ACEOF
22594/* end confdefs.h. */
22595#include <iostream>
22596
22597int
22598main ()
22599{
22600if ((std::ostream *) 0)
22601 return 0;
22602if (sizeof (std::ostream))
22603 return 0;
22604 ;
22605 return 0;
22606}
22607_ACEOF
22608rm -f conftest.$ac_objext
22609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610 (eval $ac_compile) 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
dee1a63f
MB
22617 { ac_try='test -z "$ac_cxx_werror_flag"
22618 || test ! -s conftest.err'
f56c22b4
MW
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22621 ac_status=$?
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; } &&
22624 { ac_try='test -s conftest.$ac_objext'
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 ac_cv_type_std__ostream=yes
22631else
22632 echo "$as_me: failed program was:" >&5
22633sed 's/^/| /' conftest.$ac_ext >&5
22634
22635ac_cv_type_std__ostream=no
22636fi
22637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22638fi
22639echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22640echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22641if test $ac_cv_type_std__ostream = yes; then
22642
22643cat >>confdefs.h <<_ACEOF
22644#define HAVE_STD__OSTREAM 1
22645_ACEOF
22646
22647
22648else
22649 wxUSE_STD_IOSTREAM=no
22650fi
22651
22652
22653 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22654 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22655 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22656echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22657 { (exit 1); exit 1; }; }
22658 else
22659 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22660echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22661 fi
f56c22b4
MW
22662 fi
22663
22664 ac_ext=c
22665ac_cpp='$CPP $CPPFLAGS'
22666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22668ac_compiler_gnu=$ac_cv_c_compiler_gnu
22669
22670fi
22671
22672if test "$wxUSE_STL" = "yes"; then
22673 ac_ext=cc
22674ac_cpp='$CXXCPP $CPPFLAGS'
22675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22678
22679
22680 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22681echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22682 cat >conftest.$ac_ext <<_ACEOF
22683/* confdefs.h. */
22684_ACEOF
22685cat confdefs.h >>conftest.$ac_ext
22686cat >>conftest.$ac_ext <<_ACEOF
22687/* end confdefs.h. */
22688#include <string>
0a08f02a
MB
22689 #include <functional>
22690 #include <algorithm>
22691 #include <vector>
22692 #include <list>
a848cd7e
SC
22693int
22694main ()
22695{
0a08f02a
MB
22696std::vector<int> moo;
22697 std::list<int> foo;
22698 std::vector<int>::iterator it =
22699 std::find_if(moo.begin(), moo.end(),
22700 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22701 ;
22702 return 0;
22703}
22704_ACEOF
22705rm -f conftest.$ac_objext
22706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22707 (eval $ac_compile) 2>conftest.er1
a848cd7e 22708 ac_status=$?
ac1cb8d3
VS
22709 grep -v '^ *+' conftest.er1 >conftest.err
22710 rm -f conftest.er1
22711 cat conftest.err >&5
a848cd7e
SC
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } &&
dee1a63f
MB
22714 { ac_try='test -z "$ac_cxx_werror_flag"
22715 || test ! -s conftest.err'
ac1cb8d3
VS
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22718 ac_status=$?
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; } &&
22721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22723 (eval $ac_try) 2>&5
22724 ac_status=$?
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); }; }; then
22727 echo "$as_me:$LINENO: result: yes" >&5
22728echo "${ECHO_T}yes" >&6
a848cd7e
SC
22729else
22730 echo "$as_me: failed program was:" >&5
22731sed 's/^/| /' conftest.$ac_ext >&5
22732
22733echo "$as_me:$LINENO: result: no" >&5
22734echo "${ECHO_T}no" >&6
0a08f02a
MB
22735 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22736echo "$as_me: error: Basic STL functionality missing" >&2;}
22737 { (exit 1); exit 1; }; }
a848cd7e 22738fi
ac1cb8d3 22739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22740
22741 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22742echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22743 cat >conftest.$ac_ext <<_ACEOF
22744/* confdefs.h. */
22745_ACEOF
22746cat confdefs.h >>conftest.$ac_ext
22747cat >>conftest.$ac_ext <<_ACEOF
22748/* end confdefs.h. */
22749#include <string>
22750int
22751main ()
22752{
22753std::string foo, bar;
22754 foo.compare(bar);
22755 foo.compare(1, 1, bar);
22756 foo.compare(1, 1, bar, 1, 1);
22757 foo.compare("");
22758 foo.compare(1, 1, "");
22759 foo.compare(1, 1, "", 2);
22760 ;
22761 return 0;
22762}
22763_ACEOF
22764rm -f conftest.$ac_objext
22765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22766 (eval $ac_compile) 2>conftest.er1
a848cd7e 22767 ac_status=$?
ac1cb8d3
VS
22768 grep -v '^ *+' conftest.er1 >conftest.err
22769 rm -f conftest.er1
22770 cat conftest.err >&5
a848cd7e
SC
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } &&
dee1a63f
MB
22773 { ac_try='test -z "$ac_cxx_werror_flag"
22774 || test ! -s conftest.err'
ac1cb8d3
VS
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22777 ac_status=$?
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; } &&
22780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22783 ac_status=$?
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; }; then
22786 echo "$as_me:$LINENO: result: yes" >&5
22787echo "${ECHO_T}yes" >&6
22788 cat >>confdefs.h <<\_ACEOF
22789#define HAVE_STD_STRING_COMPARE 1
22790_ACEOF
22791
22792else
22793 echo "$as_me: failed program was:" >&5
22794sed 's/^/| /' conftest.$ac_ext >&5
22795
22796echo "$as_me:$LINENO: result: no" >&5
22797echo "${ECHO_T}no" >&6
22798fi
ac1cb8d3 22799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22800
22801 if test "${ac_cv_header_hash_map+set}" = set; then
22802 echo "$as_me:$LINENO: checking for hash_map" >&5
22803echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22804if test "${ac_cv_header_hash_map+set}" = set; then
22805 echo $ECHO_N "(cached) $ECHO_C" >&6
22806fi
22807echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22808echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22809else
22810 # Is the header compilable?
22811echo "$as_me:$LINENO: checking hash_map usability" >&5
22812echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22813cat >conftest.$ac_ext <<_ACEOF
22814/* confdefs.h. */
22815_ACEOF
22816cat confdefs.h >>conftest.$ac_ext
22817cat >>conftest.$ac_ext <<_ACEOF
22818/* end confdefs.h. */
22819$ac_includes_default
22820#include <hash_map>
22821_ACEOF
22822rm -f conftest.$ac_objext
22823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22824 (eval $ac_compile) 2>conftest.er1
bdcade0a 22825 ac_status=$?
ac1cb8d3
VS
22826 grep -v '^ *+' conftest.er1 >conftest.err
22827 rm -f conftest.er1
22828 cat conftest.err >&5
bdcade0a
MB
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } &&
dee1a63f
MB
22831 { ac_try='test -z "$ac_cxx_werror_flag"
22832 || test ! -s conftest.err'
ac1cb8d3
VS
22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834 (eval $ac_try) 2>&5
22835 ac_status=$?
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; } &&
22838 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22840 (eval $ac_try) 2>&5
22841 ac_status=$?
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); }; }; then
22844 ac_header_compiler=yes
22845else
22846 echo "$as_me: failed program was:" >&5
22847sed 's/^/| /' conftest.$ac_ext >&5
22848
22849ac_header_compiler=no
22850fi
ac1cb8d3 22851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22853echo "${ECHO_T}$ac_header_compiler" >&6
22854
22855# Is the header present?
22856echo "$as_me:$LINENO: checking hash_map presence" >&5
22857echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22858cat >conftest.$ac_ext <<_ACEOF
22859/* confdefs.h. */
22860_ACEOF
22861cat confdefs.h >>conftest.$ac_ext
22862cat >>conftest.$ac_ext <<_ACEOF
22863/* end confdefs.h. */
22864#include <hash_map>
22865_ACEOF
22866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22868 ac_status=$?
22869 grep -v '^ *+' conftest.er1 >conftest.err
22870 rm -f conftest.er1
22871 cat conftest.err >&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } >/dev/null; then
22874 if test -s conftest.err; then
22875 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22876 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22877 else
22878 ac_cpp_err=
22879 fi
22880else
22881 ac_cpp_err=yes
22882fi
22883if test -z "$ac_cpp_err"; then
22884 ac_header_preproc=yes
22885else
22886 echo "$as_me: failed program was:" >&5
22887sed 's/^/| /' conftest.$ac_ext >&5
22888
22889 ac_header_preproc=no
22890fi
22891rm -f conftest.err conftest.$ac_ext
22892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22893echo "${ECHO_T}$ac_header_preproc" >&6
22894
22895# So? What about this header?
ac1cb8d3
VS
22896case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22897 yes:no: )
bdcade0a
MB
22898 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22899echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22900 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22901echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22902 ac_header_preproc=yes
bdcade0a 22903 ;;
ac1cb8d3 22904 no:yes:* )
bdcade0a
MB
22905 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22906echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22907 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22908echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22909 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22910echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22911 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22912echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22913 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22914echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22915 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22916echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22917 (
22918 cat <<\_ASBOX
ac1cb8d3
VS
22919## ----------------------------------------- ##
22920## Report this to wx-dev@lists.wxwidgets.org ##
22921## ----------------------------------------- ##
bdcade0a
MB
22922_ASBOX
22923 ) |
22924 sed "s/^/$as_me: WARNING: /" >&2
22925 ;;
22926esac
22927echo "$as_me:$LINENO: checking for hash_map" >&5
22928echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22929if test "${ac_cv_header_hash_map+set}" = set; then
22930 echo $ECHO_N "(cached) $ECHO_C" >&6
22931else
22932 ac_cv_header_hash_map=$ac_header_preproc
22933fi
22934echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22935echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22936
22937fi
22938if test $ac_cv_header_hash_map = yes; then
22939 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22940echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22941 cat >conftest.$ac_ext <<_ACEOF
22942/* confdefs.h. */
22943_ACEOF
22944cat confdefs.h >>conftest.$ac_ext
22945cat >>conftest.$ac_ext <<_ACEOF
22946/* end confdefs.h. */
22947#include <hash_map>
22948 #include <hash_set>
22949int
22950main ()
22951{
22952std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22953 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22954 ;
22955 return 0;
22956}
22957_ACEOF
22958rm -f conftest.$ac_objext
22959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22960 (eval $ac_compile) 2>conftest.er1
bdcade0a 22961 ac_status=$?
ac1cb8d3
VS
22962 grep -v '^ *+' conftest.er1 >conftest.err
22963 rm -f conftest.er1
22964 cat conftest.err >&5
bdcade0a
MB
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } &&
dee1a63f
MB
22967 { ac_try='test -z "$ac_cxx_werror_flag"
22968 || test ! -s conftest.err'
ac1cb8d3
VS
22969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970 (eval $ac_try) 2>&5
22971 ac_status=$?
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }; } &&
22974 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22976 (eval $ac_try) 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); }; }; then
22980 echo "$as_me:$LINENO: result: yes" >&5
22981echo "${ECHO_T}yes" >&6
22982 cat >>confdefs.h <<\_ACEOF
22983#define HAVE_HASH_MAP 1
22984_ACEOF
22985
22986 cat >>confdefs.h <<\_ACEOF
22987#define HAVE_STD_HASH_MAP 1
22988_ACEOF
22989
22990else
22991 echo "$as_me: failed program was:" >&5
22992sed 's/^/| /' conftest.$ac_ext >&5
22993
22994echo "$as_me:$LINENO: result: no" >&5
22995echo "${ECHO_T}no" >&6
22996fi
ac1cb8d3 22997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22998
22999fi
23000
23001
23002
23003 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23004 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23005echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23006if test "${ac_cv_header_ext_hash_map+set}" = set; then
23007 echo $ECHO_N "(cached) $ECHO_C" >&6
23008fi
23009echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23010echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23011else
23012 # Is the header compilable?
23013echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23014echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23015cat >conftest.$ac_ext <<_ACEOF
23016/* confdefs.h. */
23017_ACEOF
23018cat confdefs.h >>conftest.$ac_ext
23019cat >>conftest.$ac_ext <<_ACEOF
23020/* end confdefs.h. */
23021$ac_includes_default
23022#include <ext/hash_map>
23023_ACEOF
23024rm -f conftest.$ac_objext
23025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23026 (eval $ac_compile) 2>conftest.er1
bdcade0a 23027 ac_status=$?
ac1cb8d3
VS
23028 grep -v '^ *+' conftest.er1 >conftest.err
23029 rm -f conftest.er1
23030 cat conftest.err >&5
bdcade0a
MB
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } &&
dee1a63f
MB
23033 { ac_try='test -z "$ac_cxx_werror_flag"
23034 || test ! -s conftest.err'
ac1cb8d3
VS
23035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036 (eval $ac_try) 2>&5
23037 ac_status=$?
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); }; } &&
23040 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23043 ac_status=$?
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; }; then
23046 ac_header_compiler=yes
23047else
23048 echo "$as_me: failed program was:" >&5
23049sed 's/^/| /' conftest.$ac_ext >&5
23050
23051ac_header_compiler=no
23052fi
ac1cb8d3 23053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23054echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23055echo "${ECHO_T}$ac_header_compiler" >&6
23056
23057# Is the header present?
23058echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23059echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23060cat >conftest.$ac_ext <<_ACEOF
23061/* confdefs.h. */
23062_ACEOF
23063cat confdefs.h >>conftest.$ac_ext
23064cat >>conftest.$ac_ext <<_ACEOF
23065/* end confdefs.h. */
23066#include <ext/hash_map>
23067_ACEOF
23068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23070 ac_status=$?
23071 grep -v '^ *+' conftest.er1 >conftest.err
23072 rm -f conftest.er1
23073 cat conftest.err >&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } >/dev/null; then
23076 if test -s conftest.err; then
23077 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23078 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23079 else
23080 ac_cpp_err=
23081 fi
23082else
23083 ac_cpp_err=yes
23084fi
23085if test -z "$ac_cpp_err"; then
23086 ac_header_preproc=yes
23087else
23088 echo "$as_me: failed program was:" >&5
23089sed 's/^/| /' conftest.$ac_ext >&5
23090
23091 ac_header_preproc=no
23092fi
23093rm -f conftest.err conftest.$ac_ext
23094echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23095echo "${ECHO_T}$ac_header_preproc" >&6
23096
23097# So? What about this header?
ac1cb8d3
VS
23098case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23099 yes:no: )
bdcade0a
MB
23100 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23101echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23102 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23103echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23104 ac_header_preproc=yes
bdcade0a 23105 ;;
ac1cb8d3 23106 no:yes:* )
bdcade0a
MB
23107 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23108echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23109 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23110echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23111 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23112echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23113 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23114echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23115 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23116echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23117 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23118echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23119 (
23120 cat <<\_ASBOX
ac1cb8d3
VS
23121## ----------------------------------------- ##
23122## Report this to wx-dev@lists.wxwidgets.org ##
23123## ----------------------------------------- ##
bdcade0a
MB
23124_ASBOX
23125 ) |
23126 sed "s/^/$as_me: WARNING: /" >&2
23127 ;;
23128esac
23129echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23130echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23131if test "${ac_cv_header_ext_hash_map+set}" = set; then
23132 echo $ECHO_N "(cached) $ECHO_C" >&6
23133else
23134 ac_cv_header_ext_hash_map=$ac_header_preproc
23135fi
23136echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23137echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23138
23139fi
23140if test $ac_cv_header_ext_hash_map = yes; then
23141 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23142echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23143 cat >conftest.$ac_ext <<_ACEOF
23144/* confdefs.h. */
23145_ACEOF
23146cat confdefs.h >>conftest.$ac_ext
23147cat >>conftest.$ac_ext <<_ACEOF
23148/* end confdefs.h. */
23149#include <ext/hash_map>
23150 #include <ext/hash_set>
23151int
23152main ()
23153{
23154__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23155 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23156 ;
23157 return 0;
23158}
23159_ACEOF
23160rm -f conftest.$ac_objext
23161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23162 (eval $ac_compile) 2>conftest.er1
bdcade0a 23163 ac_status=$?
ac1cb8d3
VS
23164 grep -v '^ *+' conftest.er1 >conftest.err
23165 rm -f conftest.er1
23166 cat conftest.err >&5
bdcade0a
MB
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
dee1a63f
MB
23169 { ac_try='test -z "$ac_cxx_werror_flag"
23170 || test ! -s conftest.err'
ac1cb8d3
VS
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } &&
23176 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23179 ac_status=$?
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; }; then
23182 echo "$as_me:$LINENO: result: yes" >&5
23183echo "${ECHO_T}yes" >&6
23184 cat >>confdefs.h <<\_ACEOF
23185#define HAVE_EXT_HASH_MAP 1
23186_ACEOF
23187
23188 cat >>confdefs.h <<\_ACEOF
23189#define HAVE_GNU_CXX_HASH_MAP 1
23190_ACEOF
23191
23192else
23193 echo "$as_me: failed program was:" >&5
23194sed 's/^/| /' conftest.$ac_ext >&5
23195
23196echo "$as_me:$LINENO: result: no" >&5
23197echo "${ECHO_T}no" >&6
23198fi
ac1cb8d3 23199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23200
23201fi
23202
23203
a848cd7e
SC
23204
23205 ac_ext=c
23206ac_cpp='$CPP $CPPFLAGS'
23207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23209ac_compiler_gnu=$ac_cv_c_compiler_gnu
23210
23211fi
23212
23213
23214SEARCH_INCLUDE="\
23215 /usr/local/include \
23216 \
23217 /usr/Motif-2.1/include \
23218 /usr/Motif-1.2/include \
23219 /usr/include/Motif1.2 \
a848cd7e
SC
23220 \
23221 /usr/dt/include \
23222 /usr/openwin/include \
23223 \
23224 /usr/include/Xm \
23225 \
23226 /usr/X11R6/include \
23227 /usr/X11R6.4/include \
23228 /usr/X11R5/include \
23229 /usr/X11R4/include \
23230 \
23231 /usr/include/X11R6 \
23232 /usr/include/X11R5 \
23233 /usr/include/X11R4 \
23234 \
23235 /usr/local/X11R6/include \
23236 /usr/local/X11R5/include \
23237 /usr/local/X11R4/include \
23238 \
23239 /usr/local/include/X11R6 \
23240 /usr/local/include/X11R5 \
23241 /usr/local/include/X11R4 \
23242 \
23243 /usr/X11/include \
23244 /usr/include/X11 \
23245 /usr/local/X11/include \
23246 /usr/local/include/X11 \
23247 \
a848cd7e 23248 /usr/XFree86/include/X11 \
e051b34e
MW
23249 /usr/pkg/include \
23250 \
a848cd7e
SC
23251 /usr/openwin/share/include"
23252
6f9cf1e6 23253echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23254echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23255
23256case "${host}" in
23257 *-*-irix6* )
23258 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23260else
23261
c687b303
VZ
23262 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23263 for e in a so sl dylib dll.a; do
23264 libc="$d/libc.$e"
23265 if test -f $libc; then
23266 save_LIBS="$LIBS"
23267 LIBS="$libc"
23268 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23269int main() { return 0; }
23270_ACEOF
23271rm -f conftest.$ac_objext conftest$ac_exeext
23272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23273 (eval $ac_link) 2>conftest.er1
23274 ac_status=$?
23275 grep -v '^ *+' conftest.er1 >conftest.err
23276 rm -f conftest.er1
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } &&
dee1a63f
MB
23280 { ac_try='test -z "$ac_c_werror_flag"
23281 || test ! -s conftest.err'
0ad5d837
VZ
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23284 ac_status=$?
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; } &&
23287 { ac_try='test -s conftest$ac_exeext'
23288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289 (eval $ac_try) 2>&5
23290 ac_status=$?
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
23293 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23294else
23295 echo "$as_me: failed program was:" >&5
23296sed 's/^/| /' conftest.$ac_ext >&5
23297
23298fi
23299rm -f conftest.err conftest.$ac_objext \
23300 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23301 LIBS="$save_LIBS"
23302 if test "x$wx_cv_std_libpath" != "x"; then
23303 break 2
23304 fi
23305 fi
23306 done
23307 done
23308 if test "x$wx_cv_std_libpath" = "x"; then
23309 wx_cv_std_libpath="lib"
0ad5d837 23310 fi
0ad5d837
VZ
23311
23312
23313fi
6f9cf1e6
MW
23314
23315 ;;
23316
23317 *-*-solaris2* )
23318 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23319 wx_cv_std_libpath="lib/64"
23320 else
23321 wx_cv_std_libpath="lib"
23322 fi
23323 ;;
23324
23325 *-*-linux* )
23326 if test "$ac_cv_sizeof_void_p" = 8 -a \
23327 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23328 wx_cv_std_libpath="lib64"
23329 else
23330 wx_cv_std_libpath="lib"
23331 fi
c687b303
VZ
23332 ;;
23333
23334 *)
23335 wx_cv_std_libpath="lib";
23336 ;;
23337esac
0ad5d837 23338
6f9cf1e6
MW
23339echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23340echo "${ECHO_T}$wx_cv_std_libpath" >&6
23341
23342SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23343
3eca31dc
MW
23344if test "$build" != "$host" -a "$GCC" = yes; then
23345 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23346 cross_root=`dirname $cross_root`
23347 cross_root=`dirname $cross_root`
23348
23349 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23350 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23351
23352 if test -z "$PKG_CONFIG_PATH"; then
23353 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23354 export PKG_CONFIG_PATH
23355 fi
23356
23357 if test -z "$x_includes" -o "$x_includes" = NONE; then
23358
23359ac_find_includes=
23360for ac_dir in $SEARCH_INCLUDE /usr/include;
23361 do
23362 if test -f "$ac_dir/X11/Intrinsic.h"; then
23363 ac_find_includes=$ac_dir
23364 break
23365 fi
23366 done
23367
23368 x_includes=$ac_find_includes
23369 fi
23370 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23371
0ad5d837
VZ
23372 ac_find_libraries=
23373 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23374 do
23375 for ac_extension in a so sl dylib dll.a; do
23376 if test -f "$ac_dir/libXt.$ac_extension"; then
23377 ac_find_libraries=$ac_dir
23378 break 2
23379 fi
23380 done
23381 done
23382
23383 x_libraries=$ac_find_libraries
23384 fi
23385 fi
23386fi
23387
a848cd7e
SC
23388
23389cat >confcache <<\_ACEOF
23390# This file is a shell script that caches the results of configure
23391# tests run on this system so they can be shared between configure
23392# scripts and configure runs, see configure's option --config-cache.
23393# It is not useful on other systems. If it contains results you don't
23394# want to keep, you may remove or edit it.
23395#
23396# config.status only pays attention to the cache file if you give it
23397# the --recheck option to rerun configure.
23398#
23399# `ac_cv_env_foo' variables (set or unset) will be overridden when
23400# loading this file, other *unset* `ac_cv_foo' will be assigned the
23401# following values.
23402
23403_ACEOF
23404
23405# The following way of writing the cache mishandles newlines in values,
23406# but we know of no workaround that is simple, portable, and efficient.
23407# So, don't put newlines in cache variables' values.
23408# Ultrix sh set writes to stderr and can't be redirected directly,
23409# and sets the high bit in the cache file unless we assign to the vars.
23410{
23411 (set) 2>&1 |
23412 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23413 *ac_space=\ *)
23414 # `set' does not quote correctly, so add quotes (double-quote
23415 # substitution turns \\\\ into \\, and sed turns \\ into \).
23416 sed -n \
ac1cb8d3
VS
23417 "s/'/'\\\\''/g;
23418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23419 ;;
23420 *)
23421 # `set' quotes correctly as required by POSIX, so do not add quotes.
23422 sed -n \
ac1cb8d3 23423 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23424 ;;
23425 esac;
23426} |
23427 sed '
23428 t clear
23429 : clear
23430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23431 t end
23432 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23433 : end' >>confcache
23434if diff $cache_file confcache >/dev/null 2>&1; then :; else
23435 if test -w $cache_file; then
23436 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23437 cat confcache >$cache_file
23438 else
23439 echo "not updating unwritable cache $cache_file"
23440 fi
23441fi
23442rm -f confcache
23443
23444if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23445 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23446echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23447if test "${wx_cv_lib_glibc21+set}" = set; then
23448 echo $ECHO_N "(cached) $ECHO_C" >&6
23449else
23450
23451 cat >conftest.$ac_ext <<_ACEOF
23452/* confdefs.h. */
23453_ACEOF
23454cat confdefs.h >>conftest.$ac_ext
23455cat >>conftest.$ac_ext <<_ACEOF
23456/* end confdefs.h. */
23457#include <features.h>
23458int
23459main ()
23460{
23461
23462 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23463 not glibc 2.1
a848cd7e
SC
23464 #endif
23465
23466 ;
23467 return 0;
23468}
23469_ACEOF
23470rm -f conftest.$ac_objext
23471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23472 (eval $ac_compile) 2>conftest.er1
a848cd7e 23473 ac_status=$?
ac1cb8d3
VS
23474 grep -v '^ *+' conftest.er1 >conftest.err
23475 rm -f conftest.er1
23476 cat conftest.err >&5
a848cd7e
SC
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } &&
dee1a63f
MB
23479 { ac_try='test -z "$ac_c_werror_flag"
23480 || test ! -s conftest.err'
ac1cb8d3
VS
23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23483 ac_status=$?
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); }; } &&
23486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; }; then
23492
23493 wx_cv_lib_glibc21=yes
23494
23495else
23496 echo "$as_me: failed program was:" >&5
23497sed 's/^/| /' conftest.$ac_ext >&5
23498
23499
23500 wx_cv_lib_glibc21=no
23501
23502
23503fi
ac1cb8d3 23504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23505
23506fi
23507echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23508echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23509 if test "$wx_cv_lib_glibc21" = "yes"; then
23510 cat >>confdefs.h <<\_ACEOF
23511#define wxHAVE_GLIBC2 1
23512_ACEOF
23513
23514 fi
23515fi
23516
23517if test "x$wx_cv_lib_glibc21" = "xyes"; then
23518 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23519 cat >>confdefs.h <<\_ACEOF
23520#define _GNU_SOURCE 1
23521_ACEOF
23522
23523 fi
23524fi
23525
23526
23527
23528if test "$wxUSE_REGEX" != "no"; then
23529 cat >>confdefs.h <<\_ACEOF
23530#define wxUSE_REGEX 1
23531_ACEOF
23532
23533
23534 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23535 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23536echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23537 wxUSE_REGEX=builtin
23538 fi
23539
23540 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23541 if test "${ac_cv_header_regex_h+set}" = set; then
23542 echo "$as_me:$LINENO: checking for regex.h" >&5
23543echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23544if test "${ac_cv_header_regex_h+set}" = set; then
23545 echo $ECHO_N "(cached) $ECHO_C" >&6
23546fi
23547echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23548echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23549else
23550 # Is the header compilable?
23551echo "$as_me:$LINENO: checking regex.h usability" >&5
23552echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23553cat >conftest.$ac_ext <<_ACEOF
23554/* confdefs.h. */
23555_ACEOF
23556cat confdefs.h >>conftest.$ac_ext
23557cat >>conftest.$ac_ext <<_ACEOF
23558/* end confdefs.h. */
23559$ac_includes_default
23560#include <regex.h>
23561_ACEOF
23562rm -f conftest.$ac_objext
23563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23564 (eval $ac_compile) 2>conftest.er1
a848cd7e 23565 ac_status=$?
ac1cb8d3
VS
23566 grep -v '^ *+' conftest.er1 >conftest.err
23567 rm -f conftest.er1
23568 cat conftest.err >&5
a848cd7e
SC
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } &&
dee1a63f
MB
23571 { ac_try='test -z "$ac_c_werror_flag"
23572 || test ! -s conftest.err'
ac1cb8d3
VS
23573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574 (eval $ac_try) 2>&5
23575 ac_status=$?
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; } &&
23578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580 (eval $ac_try) 2>&5
23581 ac_status=$?
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); }; }; then
23584 ac_header_compiler=yes
23585else
23586 echo "$as_me: failed program was:" >&5
23587sed 's/^/| /' conftest.$ac_ext >&5
23588
23589ac_header_compiler=no
23590fi
ac1cb8d3 23591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23593echo "${ECHO_T}$ac_header_compiler" >&6
23594
23595# Is the header present?
23596echo "$as_me:$LINENO: checking regex.h presence" >&5
23597echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23598cat >conftest.$ac_ext <<_ACEOF
23599/* confdefs.h. */
23600_ACEOF
23601cat confdefs.h >>conftest.$ac_ext
23602cat >>conftest.$ac_ext <<_ACEOF
23603/* end confdefs.h. */
23604#include <regex.h>
23605_ACEOF
23606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23608 ac_status=$?
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } >/dev/null; then
23614 if test -s conftest.err; then
23615 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23617 else
23618 ac_cpp_err=
23619 fi
23620else
23621 ac_cpp_err=yes
23622fi
23623if test -z "$ac_cpp_err"; then
23624 ac_header_preproc=yes
23625else
23626 echo "$as_me: failed program was:" >&5
23627sed 's/^/| /' conftest.$ac_ext >&5
23628
23629 ac_header_preproc=no
23630fi
23631rm -f conftest.err conftest.$ac_ext
23632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23633echo "${ECHO_T}$ac_header_preproc" >&6
23634
23635# So? What about this header?
ac1cb8d3
VS
23636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23637 yes:no: )
a848cd7e
SC
23638 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23639echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23640 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23641echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23642 ac_header_preproc=yes
a848cd7e 23643 ;;
ac1cb8d3 23644 no:yes:* )
a848cd7e
SC
23645 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23646echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23647 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23648echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23649 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23650echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23651 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23652echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23653 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23654echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23655 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23656echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23657 (
23658 cat <<\_ASBOX
ac1cb8d3
VS
23659## ----------------------------------------- ##
23660## Report this to wx-dev@lists.wxwidgets.org ##
23661## ----------------------------------------- ##
a848cd7e
SC
23662_ASBOX
23663 ) |
23664 sed "s/^/$as_me: WARNING: /" >&2
23665 ;;
23666esac
23667echo "$as_me:$LINENO: checking for regex.h" >&5
23668echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23669if test "${ac_cv_header_regex_h+set}" = set; then
23670 echo $ECHO_N "(cached) $ECHO_C" >&6
23671else
23672 ac_cv_header_regex_h=$ac_header_preproc
23673fi
23674echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23675echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23676
23677fi
23678if test $ac_cv_header_regex_h = yes; then
23679
23680for ac_func in regcomp
23681do
23682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23683echo "$as_me:$LINENO: checking for $ac_func" >&5
23684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23685if eval "test \"\${$as_ac_var+set}\" = set"; then
23686 echo $ECHO_N "(cached) $ECHO_C" >&6
23687else
23688 cat >conftest.$ac_ext <<_ACEOF
23689/* confdefs.h. */
23690_ACEOF
23691cat confdefs.h >>conftest.$ac_ext
23692cat >>conftest.$ac_ext <<_ACEOF
23693/* end confdefs.h. */
ac1cb8d3
VS
23694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23696#define $ac_func innocuous_$ac_func
23697
a848cd7e
SC
23698/* System header to define __stub macros and hopefully few prototypes,
23699 which can conflict with char $ac_func (); below.
23700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23701 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23702
a848cd7e
SC
23703#ifdef __STDC__
23704# include <limits.h>
23705#else
23706# include <assert.h>
23707#endif
ac1cb8d3
VS
23708
23709#undef $ac_func
23710
a848cd7e
SC
23711/* Override any gcc2 internal prototype to avoid an error. */
23712#ifdef __cplusplus
23713extern "C"
23714{
23715#endif
23716/* We use char because int might match the return type of a gcc2
23717 builtin and then its argument prototype would still apply. */
23718char $ac_func ();
23719/* The GNU C library defines this for functions which it implements
23720 to always fail with ENOSYS. Some functions are actually named
23721 something starting with __ and the normal name is an alias. */
23722#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23723choke me
23724#else
23725char (*f) () = $ac_func;
23726#endif
23727#ifdef __cplusplus
23728}
23729#endif
23730
23731int
23732main ()
23733{
23734return f != $ac_func;
23735 ;
23736 return 0;
23737}
23738_ACEOF
23739rm -f conftest.$ac_objext conftest$ac_exeext
23740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23741 (eval $ac_link) 2>conftest.er1
a848cd7e 23742 ac_status=$?
ac1cb8d3
VS
23743 grep -v '^ *+' conftest.er1 >conftest.err
23744 rm -f conftest.er1
23745 cat conftest.err >&5
a848cd7e
SC
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } &&
dee1a63f
MB
23748 { ac_try='test -z "$ac_c_werror_flag"
23749 || test ! -s conftest.err'
ac1cb8d3
VS
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; } &&
23755 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23758 ac_status=$?
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 eval "$as_ac_var=yes"
23762else
23763 echo "$as_me: failed program was:" >&5
23764sed 's/^/| /' conftest.$ac_ext >&5
23765
23766eval "$as_ac_var=no"
23767fi
ac1cb8d3
VS
23768rm -f conftest.err conftest.$ac_objext \
23769 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23770fi
23771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23772echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23773if test `eval echo '${'$as_ac_var'}'` = yes; then
23774 cat >>confdefs.h <<_ACEOF
23775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23776_ACEOF
23777
23778fi
23779done
23780
23781fi
23782
23783
23784
23785 if test "x$ac_cv_func_regcomp" != "xyes"; then
23786 if test "$wxUSE_REGEX" = "sys" ; then
23787 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23788echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23789 { (exit 1); exit 1; }; }
23790 else
23791 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23792echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23793 wxUSE_REGEX=builtin
23794 fi
23795 else
23796 wxUSE_REGEX=sys
23797 cat >>confdefs.h <<\_ACEOF
23798#define WX_NO_REGEX_ADVANCED 1
23799_ACEOF
23800
23801 fi
23802 fi
23803fi
23804
23805
23806ZLIB_LINK=
23807if test "$wxUSE_ZLIB" != "no" ; then
23808 cat >>confdefs.h <<\_ACEOF
23809#define wxUSE_ZLIB 1
23810_ACEOF
23811
23812
23813 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23814 if test "$USE_DARWIN" = 1; then
23815 system_zlib_h_ok="yes"
23816 else
23817 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23818echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23819if test "${ac_cv_header_zlib_h+set}" = set; then
23820 echo $ECHO_N "(cached) $ECHO_C" >&6
23821else
23822 if test "$cross_compiling" = yes; then
23823 unset ac_cv_header_zlib_h
23824
23825else
23826 cat >conftest.$ac_ext <<_ACEOF
23827/* confdefs.h. */
23828_ACEOF
23829cat confdefs.h >>conftest.$ac_ext
23830cat >>conftest.$ac_ext <<_ACEOF
23831/* end confdefs.h. */
23832
23833 #include <zlib.h>
23834 #include <stdio.h>
23835
23836 int main()
23837 {
23838 FILE *f=fopen("conftestval", "w");
23839 if (!f) exit(1);
23840 fprintf(f, "%s",
23841 ZLIB_VERSION[0] == '1' &&
23842 (ZLIB_VERSION[2] > '1' ||
23843 (ZLIB_VERSION[2] == '1' &&
23844 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23845 exit(0);
23846 }
23847
23848_ACEOF
23849rm -f conftest$ac_exeext
23850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23851 (eval $ac_link) 2>&5
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23856 (eval $ac_try) 2>&5
23857 ac_status=$?
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); }; }; then
23860 ac_cv_header_zlib_h=`cat conftestval`
23861else
23862 echo "$as_me: program exited with status $ac_status" >&5
23863echo "$as_me: failed program was:" >&5
23864sed 's/^/| /' conftest.$ac_ext >&5
23865
23866( exit $ac_status )
23867ac_cv_header_zlib_h=no
23868fi
ac1cb8d3 23869rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23870fi
23871
23872fi
23873echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23874echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23875 if test "${ac_cv_header_zlib_h+set}" = set; then
23876 echo "$as_me:$LINENO: checking for zlib.h" >&5
23877echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23878if test "${ac_cv_header_zlib_h+set}" = set; then
23879 echo $ECHO_N "(cached) $ECHO_C" >&6
23880fi
23881echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23882echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23883else
23884 # Is the header compilable?
23885echo "$as_me:$LINENO: checking zlib.h usability" >&5
23886echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23887cat >conftest.$ac_ext <<_ACEOF
23888/* confdefs.h. */
23889_ACEOF
23890cat confdefs.h >>conftest.$ac_ext
23891cat >>conftest.$ac_ext <<_ACEOF
23892/* end confdefs.h. */
23893$ac_includes_default
23894#include <zlib.h>
23895_ACEOF
23896rm -f conftest.$ac_objext
23897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23898 (eval $ac_compile) 2>conftest.er1
a848cd7e 23899 ac_status=$?
ac1cb8d3
VS
23900 grep -v '^ *+' conftest.er1 >conftest.err
23901 rm -f conftest.er1
23902 cat conftest.err >&5
a848cd7e
SC
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } &&
dee1a63f
MB
23905 { ac_try='test -z "$ac_c_werror_flag"
23906 || test ! -s conftest.err'
ac1cb8d3
VS
23907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23908 (eval $ac_try) 2>&5
23909 ac_status=$?
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); }; } &&
23912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23914 (eval $ac_try) 2>&5
23915 ac_status=$?
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; }; then
23918 ac_header_compiler=yes
23919else
23920 echo "$as_me: failed program was:" >&5
23921sed 's/^/| /' conftest.$ac_ext >&5
23922
23923ac_header_compiler=no
23924fi
ac1cb8d3 23925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23927echo "${ECHO_T}$ac_header_compiler" >&6
23928
23929# Is the header present?
23930echo "$as_me:$LINENO: checking zlib.h presence" >&5
23931echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23932cat >conftest.$ac_ext <<_ACEOF
23933/* confdefs.h. */
23934_ACEOF
23935cat confdefs.h >>conftest.$ac_ext
23936cat >>conftest.$ac_ext <<_ACEOF
23937/* end confdefs.h. */
23938#include <zlib.h>
23939_ACEOF
23940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23942 ac_status=$?
23943 grep -v '^ *+' conftest.er1 >conftest.err
23944 rm -f conftest.er1
23945 cat conftest.err >&5
23946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); } >/dev/null; then
23948 if test -s conftest.err; then
23949 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23951 else
23952 ac_cpp_err=
23953 fi
23954else
23955 ac_cpp_err=yes
23956fi
23957if test -z "$ac_cpp_err"; then
23958 ac_header_preproc=yes
23959else
23960 echo "$as_me: failed program was:" >&5
23961sed 's/^/| /' conftest.$ac_ext >&5
23962
23963 ac_header_preproc=no
23964fi
23965rm -f conftest.err conftest.$ac_ext
23966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23967echo "${ECHO_T}$ac_header_preproc" >&6
23968
23969# So? What about this header?
ac1cb8d3
VS
23970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23971 yes:no: )
a848cd7e
SC
23972 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23973echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23974 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23975echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23976 ac_header_preproc=yes
a848cd7e 23977 ;;
ac1cb8d3 23978 no:yes:* )
a848cd7e
SC
23979 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23980echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23981 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23982echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23983 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23984echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23985 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23986echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23987 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23988echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23989 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23990echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23991 (
23992 cat <<\_ASBOX
ac1cb8d3
VS
23993## ----------------------------------------- ##
23994## Report this to wx-dev@lists.wxwidgets.org ##
23995## ----------------------------------------- ##
a848cd7e
SC
23996_ASBOX
23997 ) |
23998 sed "s/^/$as_me: WARNING: /" >&2
23999 ;;
24000esac
24001echo "$as_me:$LINENO: checking for zlib.h" >&5
24002echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24003if test "${ac_cv_header_zlib_h+set}" = set; then
24004 echo $ECHO_N "(cached) $ECHO_C" >&6
24005else
24006 ac_cv_header_zlib_h=$ac_header_preproc
24007fi
24008echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24009echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24010
24011fi
24012
24013
24014
24015 system_zlib_h_ok=$ac_cv_header_zlib_h
24016 fi
24017
24018 if test "$system_zlib_h_ok" = "yes"; then
24019 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24020echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24021if test "${ac_cv_lib_z_deflate+set}" = set; then
24022 echo $ECHO_N "(cached) $ECHO_C" >&6
24023else
24024 ac_check_lib_save_LIBS=$LIBS
24025LIBS="-lz $LIBS"
24026cat >conftest.$ac_ext <<_ACEOF
24027/* confdefs.h. */
24028_ACEOF
24029cat confdefs.h >>conftest.$ac_ext
24030cat >>conftest.$ac_ext <<_ACEOF
24031/* end confdefs.h. */
24032
24033/* Override any gcc2 internal prototype to avoid an error. */
24034#ifdef __cplusplus
24035extern "C"
24036#endif
24037/* We use char because int might match the return type of a gcc2
24038 builtin and then its argument prototype would still apply. */
24039char deflate ();
24040int
24041main ()
24042{
24043deflate ();
24044 ;
24045 return 0;
24046}
24047_ACEOF
24048rm -f conftest.$ac_objext conftest$ac_exeext
24049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24050 (eval $ac_link) 2>conftest.er1
a848cd7e 24051 ac_status=$?
ac1cb8d3
VS
24052 grep -v '^ *+' conftest.er1 >conftest.err
24053 rm -f conftest.er1
24054 cat conftest.err >&5
a848cd7e
SC
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); } &&
dee1a63f
MB
24057 { ac_try='test -z "$ac_c_werror_flag"
24058 || test ! -s conftest.err'
ac1cb8d3
VS
24059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); }; } &&
24064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); }; }; then
24070 ac_cv_lib_z_deflate=yes
24071else
24072 echo "$as_me: failed program was:" >&5
24073sed 's/^/| /' conftest.$ac_ext >&5
24074
24075ac_cv_lib_z_deflate=no
24076fi
ac1cb8d3
VS
24077rm -f conftest.err conftest.$ac_objext \
24078 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24079LIBS=$ac_check_lib_save_LIBS
24080fi
24081echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24082echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24083if test $ac_cv_lib_z_deflate = yes; then
24084 ZLIB_LINK=" -lz"
24085fi
24086
24087 fi
24088
24089 if test "x$ZLIB_LINK" = "x" ; then
24090 if test "$wxUSE_ZLIB" = "sys" ; then
24091 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24092echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24093 { (exit 1); exit 1; }; }
24094 else
24095 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24096echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24097 wxUSE_ZLIB=builtin
24098 fi
24099 else
24100 wxUSE_ZLIB=sys
24101 fi
24102 fi
24103fi
24104
24105
24106PNG_LINK=
24107if test "$wxUSE_LIBPNG" != "no" ; then
24108 cat >>confdefs.h <<\_ACEOF
24109#define wxUSE_LIBPNG 1
24110_ACEOF
24111
24112
24113 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24114 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24115echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24116 wxUSE_LIBPNG=sys
24117 fi
24118
24119 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24120 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24121echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24122 wxUSE_LIBPNG=builtin
24123 fi
24124
24125 if test "$wxUSE_MGL" != 1 ; then
24126 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24127 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24128echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24129if test "${ac_cv_header_png_h+set}" = set; then
24130 echo $ECHO_N "(cached) $ECHO_C" >&6
24131else
24132 if test "$cross_compiling" = yes; then
24133 unset ac_cv_header_png_h
24134
24135else
24136 cat >conftest.$ac_ext <<_ACEOF
24137/* confdefs.h. */
24138_ACEOF
24139cat confdefs.h >>conftest.$ac_ext
24140cat >>conftest.$ac_ext <<_ACEOF
24141/* end confdefs.h. */
24142
24143 #include <png.h>
24144 #include <stdio.h>
24145
24146 int main()
24147 {
24148 FILE *f=fopen("conftestval", "w");
24149 if (!f) exit(1);
24150 fprintf(f, "%s",
24151 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24152 exit(0);
24153 }
24154
24155_ACEOF
24156rm -f conftest$ac_exeext
24157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24158 (eval $ac_link) 2>&5
24159 ac_status=$?
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24163 (eval $ac_try) 2>&5
24164 ac_status=$?
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); }; }; then
24167 ac_cv_header_png_h=`cat conftestval`
24168else
24169 echo "$as_me: program exited with status $ac_status" >&5
24170echo "$as_me: failed program was:" >&5
24171sed 's/^/| /' conftest.$ac_ext >&5
24172
24173( exit $ac_status )
24174ac_cv_header_png_h=no
24175fi
ac1cb8d3 24176rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24177fi
24178
24179fi
24180echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24181echo "${ECHO_T}$ac_cv_header_png_h" >&6
24182 if test "${ac_cv_header_png_h+set}" = set; then
24183 echo "$as_me:$LINENO: checking for png.h" >&5
24184echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24185if test "${ac_cv_header_png_h+set}" = set; then
24186 echo $ECHO_N "(cached) $ECHO_C" >&6
24187fi
24188echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24189echo "${ECHO_T}$ac_cv_header_png_h" >&6
24190else
24191 # Is the header compilable?
24192echo "$as_me:$LINENO: checking png.h usability" >&5
24193echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24194cat >conftest.$ac_ext <<_ACEOF
24195/* confdefs.h. */
24196_ACEOF
24197cat confdefs.h >>conftest.$ac_ext
24198cat >>conftest.$ac_ext <<_ACEOF
24199/* end confdefs.h. */
24200$ac_includes_default
24201#include <png.h>
24202_ACEOF
24203rm -f conftest.$ac_objext
24204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24205 (eval $ac_compile) 2>conftest.er1
a848cd7e 24206 ac_status=$?
ac1cb8d3
VS
24207 grep -v '^ *+' conftest.er1 >conftest.err
24208 rm -f conftest.er1
24209 cat conftest.err >&5
a848cd7e
SC
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } &&
dee1a63f
MB
24212 { ac_try='test -z "$ac_c_werror_flag"
24213 || test ! -s conftest.err'
ac1cb8d3
VS
24214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215 (eval $ac_try) 2>&5
24216 ac_status=$?
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); }; } &&
24219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24221 (eval $ac_try) 2>&5
24222 ac_status=$?
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); }; }; then
24225 ac_header_compiler=yes
24226else
24227 echo "$as_me: failed program was:" >&5
24228sed 's/^/| /' conftest.$ac_ext >&5
24229
24230ac_header_compiler=no
24231fi
ac1cb8d3 24232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24234echo "${ECHO_T}$ac_header_compiler" >&6
24235
24236# Is the header present?
24237echo "$as_me:$LINENO: checking png.h presence" >&5
24238echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24239cat >conftest.$ac_ext <<_ACEOF
24240/* confdefs.h. */
24241_ACEOF
24242cat confdefs.h >>conftest.$ac_ext
24243cat >>conftest.$ac_ext <<_ACEOF
24244/* end confdefs.h. */
24245#include <png.h>
24246_ACEOF
24247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24249 ac_status=$?
24250 grep -v '^ *+' conftest.er1 >conftest.err
24251 rm -f conftest.er1
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } >/dev/null; then
24255 if test -s conftest.err; then
24256 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24258 else
24259 ac_cpp_err=
24260 fi
24261else
24262 ac_cpp_err=yes
24263fi
24264if test -z "$ac_cpp_err"; then
24265 ac_header_preproc=yes
24266else
24267 echo "$as_me: failed program was:" >&5
24268sed 's/^/| /' conftest.$ac_ext >&5
24269
24270 ac_header_preproc=no
24271fi
24272rm -f conftest.err conftest.$ac_ext
24273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24274echo "${ECHO_T}$ac_header_preproc" >&6
24275
24276# So? What about this header?
ac1cb8d3
VS
24277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24278 yes:no: )
a848cd7e
SC
24279 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24280echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24281 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24282echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24283 ac_header_preproc=yes
a848cd7e 24284 ;;
ac1cb8d3 24285 no:yes:* )
a848cd7e
SC
24286 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24287echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24288 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24289echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24290 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24291echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24292 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24293echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24294 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24295echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24296 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24297echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24298 (
24299 cat <<\_ASBOX
ac1cb8d3
VS
24300## ----------------------------------------- ##
24301## Report this to wx-dev@lists.wxwidgets.org ##
24302## ----------------------------------------- ##
a848cd7e
SC
24303_ASBOX
24304 ) |
24305 sed "s/^/$as_me: WARNING: /" >&2
24306 ;;
24307esac
24308echo "$as_me:$LINENO: checking for png.h" >&5
24309echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24310if test "${ac_cv_header_png_h+set}" = set; then
24311 echo $ECHO_N "(cached) $ECHO_C" >&6
24312else
24313 ac_cv_header_png_h=$ac_header_preproc
24314fi
24315echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24316echo "${ECHO_T}$ac_cv_header_png_h" >&6
24317
24318fi
24319
24320
24321
24322 if test "$ac_cv_header_png_h" = "yes"; then
24323 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24324echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24325if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24326 echo $ECHO_N "(cached) $ECHO_C" >&6
24327else
24328 ac_check_lib_save_LIBS=$LIBS
24329LIBS="-lpng -lz -lm $LIBS"
24330cat >conftest.$ac_ext <<_ACEOF
24331/* confdefs.h. */
24332_ACEOF
24333cat confdefs.h >>conftest.$ac_ext
24334cat >>conftest.$ac_ext <<_ACEOF
24335/* end confdefs.h. */
24336
24337/* Override any gcc2 internal prototype to avoid an error. */
24338#ifdef __cplusplus
24339extern "C"
24340#endif
24341/* We use char because int might match the return type of a gcc2
24342 builtin and then its argument prototype would still apply. */
24343char png_check_sig ();
24344int
24345main ()
24346{
24347png_check_sig ();
24348 ;
24349 return 0;
24350}
24351_ACEOF
24352rm -f conftest.$ac_objext conftest$ac_exeext
24353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24354 (eval $ac_link) 2>conftest.er1
a848cd7e 24355 ac_status=$?
ac1cb8d3
VS
24356 grep -v '^ *+' conftest.er1 >conftest.err
24357 rm -f conftest.er1
24358 cat conftest.err >&5
a848cd7e
SC
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); } &&
dee1a63f
MB
24361 { ac_try='test -z "$ac_c_werror_flag"
24362 || test ! -s conftest.err'
ac1cb8d3
VS
24363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24364 (eval $ac_try) 2>&5
24365 ac_status=$?
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); }; } &&
24368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24370 (eval $ac_try) 2>&5
24371 ac_status=$?
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); }; }; then
24374 ac_cv_lib_png_png_check_sig=yes
24375else
24376 echo "$as_me: failed program was:" >&5
24377sed 's/^/| /' conftest.$ac_ext >&5
24378
24379ac_cv_lib_png_png_check_sig=no
24380fi
ac1cb8d3
VS
24381rm -f conftest.err conftest.$ac_objext \
24382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24383LIBS=$ac_check_lib_save_LIBS
24384fi
24385echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24386echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24387if test $ac_cv_lib_png_png_check_sig = yes; then
24388 PNG_LINK=" -lpng -lz"
24389fi
24390
24391 fi
24392
24393 if test "x$PNG_LINK" = "x" ; then
24394 if test "$wxUSE_LIBPNG" = "sys" ; then
24395 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24396echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24397 { (exit 1); exit 1; }; }
24398 else
24399 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24400echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24401 wxUSE_LIBPNG=builtin
24402 fi
24403 else
24404 wxUSE_LIBPNG=sys
24405 fi
24406 fi
24407 fi
24408
24409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24410fi
24411
24412
24413JPEG_LINK=
24414if test "$wxUSE_LIBJPEG" != "no" ; then
24415 cat >>confdefs.h <<\_ACEOF
24416#define wxUSE_LIBJPEG 1
24417_ACEOF
24418
24419
24420 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24421 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24422echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24423 wxUSE_LIBJPEG=sys
24424 fi
24425
24426 if test "$wxUSE_MGL" != 1 ; then
24427 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24428 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24429echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24430 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24431 echo $ECHO_N "(cached) $ECHO_C" >&6
24432else
24433 cat >conftest.$ac_ext <<_ACEOF
24434/* confdefs.h. */
24435_ACEOF
24436cat confdefs.h >>conftest.$ac_ext
24437cat >>conftest.$ac_ext <<_ACEOF
24438/* end confdefs.h. */
24439
24440 #undef HAVE_STDLIB_H
24441 #include <stdio.h>
24442 #include <jpeglib.h>
24443
24444int
24445main ()
24446{
24447
24448
24449 ;
24450 return 0;
24451}
24452_ACEOF
24453rm -f conftest.$ac_objext
24454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24455 (eval $ac_compile) 2>conftest.er1
a848cd7e 24456 ac_status=$?
ac1cb8d3
VS
24457 grep -v '^ *+' conftest.er1 >conftest.err
24458 rm -f conftest.er1
24459 cat conftest.err >&5
a848cd7e
SC
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } &&
dee1a63f
MB
24462 { ac_try='test -z "$ac_c_werror_flag"
24463 || test ! -s conftest.err'
ac1cb8d3
VS
24464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465 (eval $ac_try) 2>&5
24466 ac_status=$?
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); }; } &&
24469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24471 (eval $ac_try) 2>&5
24472 ac_status=$?
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); }; }; then
24475 ac_cv_header_jpeglib_h=yes
24476else
24477 echo "$as_me: failed program was:" >&5
24478sed 's/^/| /' conftest.$ac_ext >&5
24479
24480ac_cv_header_jpeglib_h=no
24481
24482fi
ac1cb8d3 24483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24484
24485fi
24486
24487 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24488echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24489
24490 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24491 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24492echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24493if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24494 echo $ECHO_N "(cached) $ECHO_C" >&6
24495else
24496 ac_check_lib_save_LIBS=$LIBS
24497LIBS="-ljpeg $LIBS"
24498cat >conftest.$ac_ext <<_ACEOF
24499/* confdefs.h. */
24500_ACEOF
24501cat confdefs.h >>conftest.$ac_ext
24502cat >>conftest.$ac_ext <<_ACEOF
24503/* end confdefs.h. */
24504
24505/* Override any gcc2 internal prototype to avoid an error. */
24506#ifdef __cplusplus
24507extern "C"
24508#endif
24509/* We use char because int might match the return type of a gcc2
24510 builtin and then its argument prototype would still apply. */
24511char jpeg_read_header ();
24512int
24513main ()
24514{
24515jpeg_read_header ();
24516 ;
24517 return 0;
24518}
24519_ACEOF
24520rm -f conftest.$ac_objext conftest$ac_exeext
24521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24522 (eval $ac_link) 2>conftest.er1
a848cd7e 24523 ac_status=$?
ac1cb8d3
VS
24524 grep -v '^ *+' conftest.er1 >conftest.err
24525 rm -f conftest.er1
24526 cat conftest.err >&5
a848cd7e
SC
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } &&
dee1a63f
MB
24529 { ac_try='test -z "$ac_c_werror_flag"
24530 || test ! -s conftest.err'
ac1cb8d3
VS
24531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24532 (eval $ac_try) 2>&5
24533 ac_status=$?
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; } &&
24536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24539 ac_status=$?
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; }; then
24542 ac_cv_lib_jpeg_jpeg_read_header=yes
24543else
24544 echo "$as_me: failed program was:" >&5
24545sed 's/^/| /' conftest.$ac_ext >&5
24546
24547ac_cv_lib_jpeg_jpeg_read_header=no
24548fi
ac1cb8d3
VS
24549rm -f conftest.err conftest.$ac_objext \
24550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24551LIBS=$ac_check_lib_save_LIBS
24552fi
24553echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24554echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24555if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24556 JPEG_LINK=" -ljpeg"
24557fi
24558
24559 fi
24560
24561 if test "x$JPEG_LINK" = "x" ; then
24562 if test "$wxUSE_LIBJPEG" = "sys" ; then
24563 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24564echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24565 { (exit 1); exit 1; }; }
24566 else
24567 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24568echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24569 wxUSE_LIBJPEG=builtin
24570 fi
24571 else
24572 wxUSE_LIBJPEG=sys
24573 fi
24574 fi
24575 fi
24576fi
24577
24578
24579TIFF_LINK=
24580TIFF_PREREQ_LINKS=-lm
24581if test "$wxUSE_LIBTIFF" != "no" ; then
24582 cat >>confdefs.h <<\_ACEOF
24583#define wxUSE_LIBTIFF 1
24584_ACEOF
24585
24586
24587 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24588 if test "$wxUSE_LIBJPEG" = "sys"; then
24589 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24590 fi
24591 if test "$wxUSE_ZLIB" = "sys"; then
24592 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24593 fi
24594 if test "${ac_cv_header_tiffio_h+set}" = set; then
24595 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24596echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24597if test "${ac_cv_header_tiffio_h+set}" = set; then
24598 echo $ECHO_N "(cached) $ECHO_C" >&6
24599fi
24600echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24601echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24602else
24603 # Is the header compilable?
24604echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24605echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24606cat >conftest.$ac_ext <<_ACEOF
24607/* confdefs.h. */
24608_ACEOF
24609cat confdefs.h >>conftest.$ac_ext
24610cat >>conftest.$ac_ext <<_ACEOF
24611/* end confdefs.h. */
24612$ac_includes_default
24613#include <tiffio.h>
24614_ACEOF
24615rm -f conftest.$ac_objext
24616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24617 (eval $ac_compile) 2>conftest.er1
a848cd7e 24618 ac_status=$?
ac1cb8d3
VS
24619 grep -v '^ *+' conftest.er1 >conftest.err
24620 rm -f conftest.er1
24621 cat conftest.err >&5
a848cd7e
SC
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); } &&
dee1a63f
MB
24624 { ac_try='test -z "$ac_c_werror_flag"
24625 || test ! -s conftest.err'
ac1cb8d3
VS
24626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24627 (eval $ac_try) 2>&5
24628 ac_status=$?
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); }; } &&
24631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24633 (eval $ac_try) 2>&5
24634 ac_status=$?
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); }; }; then
24637 ac_header_compiler=yes
24638else
24639 echo "$as_me: failed program was:" >&5
24640sed 's/^/| /' conftest.$ac_ext >&5
24641
24642ac_header_compiler=no
24643fi
ac1cb8d3 24644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24646echo "${ECHO_T}$ac_header_compiler" >&6
24647
24648# Is the header present?
24649echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24650echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24651cat >conftest.$ac_ext <<_ACEOF
24652/* confdefs.h. */
24653_ACEOF
24654cat confdefs.h >>conftest.$ac_ext
24655cat >>conftest.$ac_ext <<_ACEOF
24656/* end confdefs.h. */
24657#include <tiffio.h>
24658_ACEOF
24659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24661 ac_status=$?
24662 grep -v '^ *+' conftest.er1 >conftest.err
24663 rm -f conftest.er1
24664 cat conftest.err >&5
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } >/dev/null; then
24667 if test -s conftest.err; then
24668 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24670 else
24671 ac_cpp_err=
24672 fi
24673else
24674 ac_cpp_err=yes
24675fi
24676if test -z "$ac_cpp_err"; then
24677 ac_header_preproc=yes
24678else
24679 echo "$as_me: failed program was:" >&5
24680sed 's/^/| /' conftest.$ac_ext >&5
24681
24682 ac_header_preproc=no
24683fi
24684rm -f conftest.err conftest.$ac_ext
24685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24686echo "${ECHO_T}$ac_header_preproc" >&6
24687
24688# So? What about this header?
ac1cb8d3
VS
24689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24690 yes:no: )
a848cd7e
SC
24691 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24692echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24693 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24694echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24695 ac_header_preproc=yes
a848cd7e 24696 ;;
ac1cb8d3 24697 no:yes:* )
a848cd7e
SC
24698 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24699echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24700 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24701echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24702 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24703echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24704 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24705echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24706 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24707echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24708 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24709echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24710 (
24711 cat <<\_ASBOX
ac1cb8d3
VS
24712## ----------------------------------------- ##
24713## Report this to wx-dev@lists.wxwidgets.org ##
24714## ----------------------------------------- ##
a848cd7e
SC
24715_ASBOX
24716 ) |
24717 sed "s/^/$as_me: WARNING: /" >&2
24718 ;;
24719esac
24720echo "$as_me:$LINENO: checking for tiffio.h" >&5
24721echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24722if test "${ac_cv_header_tiffio_h+set}" = set; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24724else
24725 ac_cv_header_tiffio_h=$ac_header_preproc
24726fi
24727echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24728echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24729
24730fi
24731if test $ac_cv_header_tiffio_h = yes; then
24732
24733 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24734echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24735if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24737else
24738 ac_check_lib_save_LIBS=$LIBS
24739LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24740cat >conftest.$ac_ext <<_ACEOF
24741/* confdefs.h. */
24742_ACEOF
24743cat confdefs.h >>conftest.$ac_ext
24744cat >>conftest.$ac_ext <<_ACEOF
24745/* end confdefs.h. */
24746
24747/* Override any gcc2 internal prototype to avoid an error. */
24748#ifdef __cplusplus
24749extern "C"
24750#endif
24751/* We use char because int might match the return type of a gcc2
24752 builtin and then its argument prototype would still apply. */
24753char TIFFError ();
24754int
24755main ()
24756{
24757TIFFError ();
24758 ;
24759 return 0;
24760}
24761_ACEOF
24762rm -f conftest.$ac_objext conftest$ac_exeext
24763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24764 (eval $ac_link) 2>conftest.er1
a848cd7e 24765 ac_status=$?
ac1cb8d3
VS
24766 grep -v '^ *+' conftest.er1 >conftest.err
24767 rm -f conftest.er1
24768 cat conftest.err >&5
a848cd7e
SC
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } &&
dee1a63f
MB
24771 { ac_try='test -z "$ac_c_werror_flag"
24772 || test ! -s conftest.err'
ac1cb8d3
VS
24773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24774 (eval $ac_try) 2>&5
24775 ac_status=$?
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); }; } &&
24778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24780 (eval $ac_try) 2>&5
24781 ac_status=$?
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); }; }; then
24784 ac_cv_lib_tiff_TIFFError=yes
24785else
24786 echo "$as_me: failed program was:" >&5
24787sed 's/^/| /' conftest.$ac_ext >&5
24788
24789ac_cv_lib_tiff_TIFFError=no
24790fi
ac1cb8d3
VS
24791rm -f conftest.err conftest.$ac_objext \
24792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24793LIBS=$ac_check_lib_save_LIBS
24794fi
24795echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24796echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24797if test $ac_cv_lib_tiff_TIFFError = yes; then
24798 TIFF_LINK=" -ltiff"
24799fi
24800
24801
24802
24803fi
24804
24805
24806
24807 if test "x$TIFF_LINK" = "x" ; then
24808 if test "$wxUSE_LIBTIFF" = "sys" ; then
24809 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24810echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24811 { (exit 1); exit 1; }; }
24812 else
24813 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24814echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24815 wxUSE_LIBTIFF=builtin
24816 fi
24817 else
24818 wxUSE_LIBTIFF=sys
24819 fi
24820 fi
24821fi
24822
24823
47a7e797
MW
24824if test "$wxUSE_WCHAR_T" != "yes"; then
24825 if test "$wxUSE_EXPAT" != "no"; then
24826 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24827echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24828 wxUSE_EXPAT=no
24829 fi
24830 if test "$wxUSE_XML" != "no"; then
24831 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24832echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24833 wxUSE_XML=no
24834 fi
24835fi
24836
a848cd7e
SC
24837if test "$wxUSE_EXPAT" != "no"; then
24838 wxUSE_XML=yes
24839 cat >>confdefs.h <<\_ACEOF
24840#define wxUSE_EXPAT 1
24841_ACEOF
24842
24843 cat >>confdefs.h <<\_ACEOF
24844#define wxUSE_XML 1
24845_ACEOF
24846
24847
24848 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24849 if test "${ac_cv_header_expat_h+set}" = set; then
24850 echo "$as_me:$LINENO: checking for expat.h" >&5
24851echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24852if test "${ac_cv_header_expat_h+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24854fi
24855echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24856echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24857else
24858 # Is the header compilable?
24859echo "$as_me:$LINENO: checking expat.h usability" >&5
24860echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24861cat >conftest.$ac_ext <<_ACEOF
24862/* confdefs.h. */
24863_ACEOF
24864cat confdefs.h >>conftest.$ac_ext
24865cat >>conftest.$ac_ext <<_ACEOF
24866/* end confdefs.h. */
24867$ac_includes_default
24868#include <expat.h>
24869_ACEOF
24870rm -f conftest.$ac_objext
24871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24872 (eval $ac_compile) 2>conftest.er1
a848cd7e 24873 ac_status=$?
ac1cb8d3
VS
24874 grep -v '^ *+' conftest.er1 >conftest.err
24875 rm -f conftest.er1
24876 cat conftest.err >&5
a848cd7e
SC
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } &&
dee1a63f
MB
24879 { ac_try='test -z "$ac_c_werror_flag"
24880 || test ! -s conftest.err'
ac1cb8d3
VS
24881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882 (eval $ac_try) 2>&5
24883 ac_status=$?
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); }; } &&
24886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24888 (eval $ac_try) 2>&5
24889 ac_status=$?
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); }; }; then
24892 ac_header_compiler=yes
24893else
24894 echo "$as_me: failed program was:" >&5
24895sed 's/^/| /' conftest.$ac_ext >&5
24896
24897ac_header_compiler=no
24898fi
ac1cb8d3 24899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24900echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24901echo "${ECHO_T}$ac_header_compiler" >&6
24902
24903# Is the header present?
24904echo "$as_me:$LINENO: checking expat.h presence" >&5
24905echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24906cat >conftest.$ac_ext <<_ACEOF
24907/* confdefs.h. */
24908_ACEOF
24909cat confdefs.h >>conftest.$ac_ext
24910cat >>conftest.$ac_ext <<_ACEOF
24911/* end confdefs.h. */
24912#include <expat.h>
24913_ACEOF
24914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24916 ac_status=$?
24917 grep -v '^ *+' conftest.er1 >conftest.err
24918 rm -f conftest.er1
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } >/dev/null; then
24922 if test -s conftest.err; then
24923 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24925 else
24926 ac_cpp_err=
24927 fi
24928else
24929 ac_cpp_err=yes
24930fi
24931if test -z "$ac_cpp_err"; then
24932 ac_header_preproc=yes
24933else
24934 echo "$as_me: failed program was:" >&5
24935sed 's/^/| /' conftest.$ac_ext >&5
24936
24937 ac_header_preproc=no
24938fi
24939rm -f conftest.err conftest.$ac_ext
24940echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24941echo "${ECHO_T}$ac_header_preproc" >&6
24942
24943# So? What about this header?
ac1cb8d3
VS
24944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24945 yes:no: )
a848cd7e
SC
24946 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24947echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24948 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24949echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
24950 ac_header_preproc=yes
a848cd7e 24951 ;;
ac1cb8d3 24952 no:yes:* )
a848cd7e
SC
24953 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
24954echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24955 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
24956echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
24957 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
24958echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
24959 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
24960echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24961 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
24962echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24963 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
24964echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24965 (
24966 cat <<\_ASBOX
ac1cb8d3
VS
24967## ----------------------------------------- ##
24968## Report this to wx-dev@lists.wxwidgets.org ##
24969## ----------------------------------------- ##
a848cd7e
SC
24970_ASBOX
24971 ) |
24972 sed "s/^/$as_me: WARNING: /" >&2
24973 ;;
24974esac
24975echo "$as_me:$LINENO: checking for expat.h" >&5
24976echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24977if test "${ac_cv_header_expat_h+set}" = set; then
24978 echo $ECHO_N "(cached) $ECHO_C" >&6
24979else
24980 ac_cv_header_expat_h=$ac_header_preproc
24981fi
24982echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24983echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24984
24985fi
24986if test $ac_cv_header_expat_h = yes; then
24987 found_expat_h=1
24988fi
24989
24990
24991 if test "x$found_expat_h" = "x1"; then
24992 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24993echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24994if test "${wx_cv_expat_is_not_broken+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24996else
24997
24998
24999
25000 ac_ext=cc
25001ac_cpp='$CXXCPP $CPPFLAGS'
25002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25005
25006 cat >conftest.$ac_ext <<_ACEOF
25007/* confdefs.h. */
25008_ACEOF
25009cat confdefs.h >>conftest.$ac_ext
25010cat >>conftest.$ac_ext <<_ACEOF
25011/* end confdefs.h. */
25012#include <expat.h>
25013int
25014main ()
25015{
25016
25017 ;
25018 return 0;
25019}
25020_ACEOF
25021rm -f conftest.$ac_objext
25022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25023 (eval $ac_compile) 2>conftest.er1
a848cd7e 25024 ac_status=$?
ac1cb8d3
VS
25025 grep -v '^ *+' conftest.er1 >conftest.err
25026 rm -f conftest.er1
25027 cat conftest.err >&5
a848cd7e
SC
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } &&
dee1a63f
MB
25030 { ac_try='test -z "$ac_cxx_werror_flag"
25031 || test ! -s conftest.err'
ac1cb8d3
VS
25032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033 (eval $ac_try) 2>&5
25034 ac_status=$?
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; } &&
25037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039 (eval $ac_try) 2>&5
25040 ac_status=$?
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; }; then
25043 wx_cv_expat_is_not_broken=yes
25044else
25045 echo "$as_me: failed program was:" >&5
25046sed 's/^/| /' conftest.$ac_ext >&5
25047
25048wx_cv_expat_is_not_broken=no
25049
25050fi
ac1cb8d3 25051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25052 ac_ext=c
25053ac_cpp='$CPP $CPPFLAGS'
25054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25056ac_compiler_gnu=$ac_cv_c_compiler_gnu
25057
25058
25059
25060fi
25061echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25062echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25063 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25064 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25065echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25066if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25068else
25069 ac_check_lib_save_LIBS=$LIBS
25070LIBS="-lexpat $LIBS"
25071cat >conftest.$ac_ext <<_ACEOF
25072/* confdefs.h. */
25073_ACEOF
25074cat confdefs.h >>conftest.$ac_ext
25075cat >>conftest.$ac_ext <<_ACEOF
25076/* end confdefs.h. */
25077
25078/* Override any gcc2 internal prototype to avoid an error. */
25079#ifdef __cplusplus
25080extern "C"
25081#endif
25082/* We use char because int might match the return type of a gcc2
25083 builtin and then its argument prototype would still apply. */
25084char XML_ParserCreate ();
25085int
25086main ()
25087{
25088XML_ParserCreate ();
25089 ;
25090 return 0;
25091}
25092_ACEOF
25093rm -f conftest.$ac_objext conftest$ac_exeext
25094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25095 (eval $ac_link) 2>conftest.er1
a848cd7e 25096 ac_status=$?
ac1cb8d3
VS
25097 grep -v '^ *+' conftest.er1 >conftest.err
25098 rm -f conftest.er1
25099 cat conftest.err >&5
a848cd7e
SC
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); } &&
dee1a63f
MB
25102 { ac_try='test -z "$ac_c_werror_flag"
25103 || test ! -s conftest.err'
ac1cb8d3
VS
25104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105 (eval $ac_try) 2>&5
25106 ac_status=$?
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; } &&
25109 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25111 (eval $ac_try) 2>&5
25112 ac_status=$?
25113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); }; }; then
25115 ac_cv_lib_expat_XML_ParserCreate=yes
25116else
25117 echo "$as_me: failed program was:" >&5
25118sed 's/^/| /' conftest.$ac_ext >&5
25119
25120ac_cv_lib_expat_XML_ParserCreate=no
25121fi
ac1cb8d3
VS
25122rm -f conftest.err conftest.$ac_objext \
25123 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25124LIBS=$ac_check_lib_save_LIBS
25125fi
25126echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25127echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25128if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25129 EXPAT_LINK=" -lexpat"
25130fi
25131
25132 fi
25133 fi
25134 if test "x$EXPAT_LINK" = "x" ; then
25135 if test "$wxUSE_EXPAT" = "sys" ; then
25136 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25137echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25138 { (exit 1); exit 1; }; }
25139 else
25140 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25141echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25142 wxUSE_EXPAT=builtin
25143 fi
25144 else
25145 wxUSE_EXPAT=sys
25146 fi
25147 fi
25148 if test "$wxUSE_EXPAT" = "builtin" ; then
25149
25150
25151subdirs="$subdirs src/expat"
25152
25153 fi
25154fi
25155
25156
25157
25158if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25159 if test "${ac_cv_header_mspack_h+set}" = set; then
25160 echo "$as_me:$LINENO: checking for mspack.h" >&5
25161echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25162if test "${ac_cv_header_mspack_h+set}" = set; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25164fi
25165echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25166echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25167else
25168 # Is the header compilable?
25169echo "$as_me:$LINENO: checking mspack.h usability" >&5
25170echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25171cat >conftest.$ac_ext <<_ACEOF
25172/* confdefs.h. */
25173_ACEOF
25174cat confdefs.h >>conftest.$ac_ext
25175cat >>conftest.$ac_ext <<_ACEOF
25176/* end confdefs.h. */
25177$ac_includes_default
25178#include <mspack.h>
25179_ACEOF
25180rm -f conftest.$ac_objext
25181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25182 (eval $ac_compile) 2>conftest.er1
a848cd7e 25183 ac_status=$?
ac1cb8d3
VS
25184 grep -v '^ *+' conftest.er1 >conftest.err
25185 rm -f conftest.er1
25186 cat conftest.err >&5
a848cd7e
SC
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); } &&
dee1a63f
MB
25189 { ac_try='test -z "$ac_c_werror_flag"
25190 || test ! -s conftest.err'
ac1cb8d3
VS
25191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25192 (eval $ac_try) 2>&5
25193 ac_status=$?
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); }; } &&
25196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25199 ac_status=$?
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; }; then
25202 ac_header_compiler=yes
25203else
25204 echo "$as_me: failed program was:" >&5
25205sed 's/^/| /' conftest.$ac_ext >&5
25206
25207ac_header_compiler=no
25208fi
ac1cb8d3 25209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25210echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25211echo "${ECHO_T}$ac_header_compiler" >&6
25212
25213# Is the header present?
25214echo "$as_me:$LINENO: checking mspack.h presence" >&5
25215echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25216cat >conftest.$ac_ext <<_ACEOF
25217/* confdefs.h. */
25218_ACEOF
25219cat confdefs.h >>conftest.$ac_ext
25220cat >>conftest.$ac_ext <<_ACEOF
25221/* end confdefs.h. */
25222#include <mspack.h>
25223_ACEOF
25224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25226 ac_status=$?
25227 grep -v '^ *+' conftest.er1 >conftest.err
25228 rm -f conftest.er1
25229 cat conftest.err >&5
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); } >/dev/null; then
25232 if test -s conftest.err; then
25233 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25235 else
25236 ac_cpp_err=
25237 fi
25238else
25239 ac_cpp_err=yes
25240fi
25241if test -z "$ac_cpp_err"; then
25242 ac_header_preproc=yes
25243else
25244 echo "$as_me: failed program was:" >&5
25245sed 's/^/| /' conftest.$ac_ext >&5
25246
25247 ac_header_preproc=no
25248fi
25249rm -f conftest.err conftest.$ac_ext
25250echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25251echo "${ECHO_T}$ac_header_preproc" >&6
25252
25253# So? What about this header?
ac1cb8d3
VS
25254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25255 yes:no: )
a848cd7e
SC
25256 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25257echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25258 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25259echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25260 ac_header_preproc=yes
a848cd7e 25261 ;;
ac1cb8d3 25262 no:yes:* )
a848cd7e
SC
25263 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25264echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25265 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25266echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25267 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25268echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25269 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25270echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25271 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25272echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25273 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25274echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25275 (
25276 cat <<\_ASBOX
ac1cb8d3
VS
25277## ----------------------------------------- ##
25278## Report this to wx-dev@lists.wxwidgets.org ##
25279## ----------------------------------------- ##
a848cd7e
SC
25280_ASBOX
25281 ) |
25282 sed "s/^/$as_me: WARNING: /" >&2
25283 ;;
25284esac
25285echo "$as_me:$LINENO: checking for mspack.h" >&5
25286echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25287if test "${ac_cv_header_mspack_h+set}" = set; then
25288 echo $ECHO_N "(cached) $ECHO_C" >&6
25289else
25290 ac_cv_header_mspack_h=$ac_header_preproc
25291fi
25292echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25293echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25294
25295fi
25296if test $ac_cv_header_mspack_h = yes; then
25297 found_mspack_h=1
25298fi
25299
25300
25301 if test "x$found_mspack_h" = "x1"; then
25302 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25303echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25304if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25305 echo $ECHO_N "(cached) $ECHO_C" >&6
25306else
25307 ac_check_lib_save_LIBS=$LIBS
25308LIBS="-lmspack $LIBS"
25309cat >conftest.$ac_ext <<_ACEOF
25310/* confdefs.h. */
25311_ACEOF
25312cat confdefs.h >>conftest.$ac_ext
25313cat >>conftest.$ac_ext <<_ACEOF
25314/* end confdefs.h. */
25315
25316/* Override any gcc2 internal prototype to avoid an error. */
25317#ifdef __cplusplus
25318extern "C"
25319#endif
25320/* We use char because int might match the return type of a gcc2
25321 builtin and then its argument prototype would still apply. */
25322char mspack_create_chm_decompressor ();
25323int
25324main ()
25325{
25326mspack_create_chm_decompressor ();
25327 ;
25328 return 0;
25329}
25330_ACEOF
25331rm -f conftest.$ac_objext conftest$ac_exeext
25332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25333 (eval $ac_link) 2>conftest.er1
a848cd7e 25334 ac_status=$?
ac1cb8d3
VS
25335 grep -v '^ *+' conftest.er1 >conftest.err
25336 rm -f conftest.er1
25337 cat conftest.err >&5
a848cd7e
SC
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } &&
dee1a63f
MB
25340 { ac_try='test -z "$ac_c_werror_flag"
25341 || test ! -s conftest.err'
ac1cb8d3
VS
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; } &&
25347 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25349 (eval $ac_try) 2>&5
25350 ac_status=$?
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); }; }; then
25353 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25354else
25355 echo "$as_me: failed program was:" >&5
25356sed 's/^/| /' conftest.$ac_ext >&5
25357
25358ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25359fi
ac1cb8d3
VS
25360rm -f conftest.err conftest.$ac_objext \
25361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25362LIBS=$ac_check_lib_save_LIBS
25363fi
25364echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25365echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25366if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25367 MSPACK_LINK=" -lmspack"
25368fi
25369
25370 fi
25371 if test "x$MSPACK_LINK" = "x" ; then
25372 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25373 fi
25374fi
25375
25376if test "$wxUSE_LIBMSPACK" != "no"; then
25377 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25378#define wxUSE_LIBMSPACK 1
25379_ACEOF
25380
a848cd7e
SC
25381fi
25382
25383
25384
25385AFMINSTALL=
25386WIN32INSTALL=
25387
25388TOOLKIT=
25389TOOLKIT_INCLUDE=
25390WIDGET_SET=
25391
25392if test "$USE_WIN32" = 1 ; then
25393
25394for ac_header in w32api.h
25395do
25396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25397if eval "test \"\${$as_ac_Header+set}\" = set"; then
25398 echo "$as_me:$LINENO: checking for $ac_header" >&5
25399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25400if eval "test \"\${$as_ac_Header+set}\" = set"; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402fi
25403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25405else
25406 # Is the header compilable?
25407echo "$as_me:$LINENO: checking $ac_header usability" >&5
25408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25409cat >conftest.$ac_ext <<_ACEOF
25410/* confdefs.h. */
25411_ACEOF
25412cat confdefs.h >>conftest.$ac_ext
25413cat >>conftest.$ac_ext <<_ACEOF
25414/* end confdefs.h. */
25415$ac_includes_default
25416#include <$ac_header>
25417_ACEOF
25418rm -f conftest.$ac_objext
25419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25420 (eval $ac_compile) 2>conftest.er1
a848cd7e 25421 ac_status=$?
ac1cb8d3
VS
25422 grep -v '^ *+' conftest.er1 >conftest.err
25423 rm -f conftest.er1
25424 cat conftest.err >&5
a848cd7e
SC
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } &&
dee1a63f
MB
25427 { ac_try='test -z "$ac_c_werror_flag"
25428 || test ! -s conftest.err'
ac1cb8d3
VS
25429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); }; } &&
25434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25437 ac_status=$?
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; }; then
25440 ac_header_compiler=yes
25441else
25442 echo "$as_me: failed program was:" >&5
25443sed 's/^/| /' conftest.$ac_ext >&5
25444
25445ac_header_compiler=no
25446fi
ac1cb8d3 25447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25449echo "${ECHO_T}$ac_header_compiler" >&6
25450
25451# Is the header present?
25452echo "$as_me:$LINENO: checking $ac_header presence" >&5
25453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25454cat >conftest.$ac_ext <<_ACEOF
25455/* confdefs.h. */
25456_ACEOF
25457cat confdefs.h >>conftest.$ac_ext
25458cat >>conftest.$ac_ext <<_ACEOF
25459/* end confdefs.h. */
25460#include <$ac_header>
25461_ACEOF
25462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25464 ac_status=$?
25465 grep -v '^ *+' conftest.er1 >conftest.err
25466 rm -f conftest.er1
25467 cat conftest.err >&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } >/dev/null; then
25470 if test -s conftest.err; then
25471 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25473 else
25474 ac_cpp_err=
25475 fi
25476else
25477 ac_cpp_err=yes
25478fi
25479if test -z "$ac_cpp_err"; then
25480 ac_header_preproc=yes
25481else
25482 echo "$as_me: failed program was:" >&5
25483sed 's/^/| /' conftest.$ac_ext >&5
25484
25485 ac_header_preproc=no
25486fi
25487rm -f conftest.err conftest.$ac_ext
25488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25489echo "${ECHO_T}$ac_header_preproc" >&6
25490
25491# So? What about this header?
ac1cb8d3
VS
25492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25493 yes:no: )
a848cd7e
SC
25494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25498 ac_header_preproc=yes
a848cd7e 25499 ;;
ac1cb8d3 25500 no:yes:* )
a848cd7e
SC
25501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25513 (
25514 cat <<\_ASBOX
ac1cb8d3
VS
25515## ----------------------------------------- ##
25516## Report this to wx-dev@lists.wxwidgets.org ##
25517## ----------------------------------------- ##
a848cd7e
SC
25518_ASBOX
25519 ) |
25520 sed "s/^/$as_me: WARNING: /" >&2
25521 ;;
25522esac
25523echo "$as_me:$LINENO: checking for $ac_header" >&5
25524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25525if eval "test \"\${$as_ac_Header+set}\" = set"; then
25526 echo $ECHO_N "(cached) $ECHO_C" >&6
25527else
ac1cb8d3 25528 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25529fi
25530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25532
25533fi
25534if test `eval echo '${'$as_ac_Header'}'` = yes; then
25535 cat >>confdefs.h <<_ACEOF
25536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25537_ACEOF
25538
25539fi
25540
25541done
25542
25543 if test "${ac_cv_header_windows_h+set}" = set; then
25544 echo "$as_me:$LINENO: checking for windows.h" >&5
25545echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25546if test "${ac_cv_header_windows_h+set}" = set; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25548fi
25549echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25550echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25551else
25552 # Is the header compilable?
25553echo "$as_me:$LINENO: checking windows.h usability" >&5
25554echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25555cat >conftest.$ac_ext <<_ACEOF
25556/* confdefs.h. */
25557_ACEOF
25558cat confdefs.h >>conftest.$ac_ext
25559cat >>conftest.$ac_ext <<_ACEOF
25560/* end confdefs.h. */
25561$ac_includes_default
25562#include <windows.h>
25563_ACEOF
25564rm -f conftest.$ac_objext
25565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25566 (eval $ac_compile) 2>conftest.er1
a848cd7e 25567 ac_status=$?
ac1cb8d3
VS
25568 grep -v '^ *+' conftest.er1 >conftest.err
25569 rm -f conftest.er1
25570 cat conftest.err >&5
a848cd7e
SC
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } &&
dee1a63f
MB
25573 { ac_try='test -z "$ac_c_werror_flag"
25574 || test ! -s conftest.err'
ac1cb8d3
VS
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25577 ac_status=$?
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; } &&
25580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; }; then
25586 ac_header_compiler=yes
25587else
25588 echo "$as_me: failed program was:" >&5
25589sed 's/^/| /' conftest.$ac_ext >&5
25590
25591ac_header_compiler=no
25592fi
ac1cb8d3 25593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25595echo "${ECHO_T}$ac_header_compiler" >&6
25596
25597# Is the header present?
25598echo "$as_me:$LINENO: checking windows.h presence" >&5
25599echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25600cat >conftest.$ac_ext <<_ACEOF
25601/* confdefs.h. */
25602_ACEOF
25603cat confdefs.h >>conftest.$ac_ext
25604cat >>conftest.$ac_ext <<_ACEOF
25605/* end confdefs.h. */
25606#include <windows.h>
25607_ACEOF
25608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25610 ac_status=$?
25611 grep -v '^ *+' conftest.er1 >conftest.err
25612 rm -f conftest.er1
25613 cat conftest.err >&5
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); } >/dev/null; then
25616 if test -s conftest.err; then
25617 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25619 else
25620 ac_cpp_err=
25621 fi
25622else
25623 ac_cpp_err=yes
25624fi
25625if test -z "$ac_cpp_err"; then
25626 ac_header_preproc=yes
25627else
25628 echo "$as_me: failed program was:" >&5
25629sed 's/^/| /' conftest.$ac_ext >&5
25630
25631 ac_header_preproc=no
25632fi
25633rm -f conftest.err conftest.$ac_ext
25634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25635echo "${ECHO_T}$ac_header_preproc" >&6
25636
25637# So? What about this header?
ac1cb8d3
VS
25638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25639 yes:no: )
a848cd7e
SC
25640 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25641echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25642 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25643echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25644 ac_header_preproc=yes
a848cd7e 25645 ;;
ac1cb8d3 25646 no:yes:* )
a848cd7e
SC
25647 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25648echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25649 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25650echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25651 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25652echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25653 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25654echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25655 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25656echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25657 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25658echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25659 (
25660 cat <<\_ASBOX
ac1cb8d3
VS
25661## ----------------------------------------- ##
25662## Report this to wx-dev@lists.wxwidgets.org ##
25663## ----------------------------------------- ##
a848cd7e
SC
25664_ASBOX
25665 ) |
25666 sed "s/^/$as_me: WARNING: /" >&2
25667 ;;
25668esac
25669echo "$as_me:$LINENO: checking for windows.h" >&5
25670echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25671if test "${ac_cv_header_windows_h+set}" = set; then
25672 echo $ECHO_N "(cached) $ECHO_C" >&6
25673else
25674 ac_cv_header_windows_h=$ac_header_preproc
25675fi
25676echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25677echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25678
25679fi
25680if test $ac_cv_header_windows_h = yes; then
25681 :
25682else
25683
25684 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25685echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25686 { (exit 1); exit 1; }; }
25687
25688fi
25689
25690
25691
25692 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25693
25694 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25695 LIBS="$LIBS -loleacc"
25696 fi
25697
25698 case "${host}" in
25699 *-*-cygwin* )
25700 LIBS="$LIBS -lkernel32 -luser32"
25701 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25702 esac
25703
25704 if test "$wxUSE_ODBC" = "sys" ; then
25705 wxUSE_ODBC = "yes"
25706 fi
25707 if test "$wxUSE_ODBC" = "yes" ; then
25708 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25709 cat >>confdefs.h <<\_ACEOF
25710#define wxUSE_ODBC 1
25711_ACEOF
25712
25713 fi
25714
25715 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25716 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25717
25718 WIN32INSTALL=win32install
25719fi
25720
25721if test "$wxUSE_GUI" = "yes"; then
25722 USE_GUI=1
25723
25724 GUI_TK_LIBRARY=
25725
25726 WXGTK12=
25727 WXGTK127=
25728 WXGTK20=
25729 WXGPE=
25730
207bc66c
RN
25731 if test "$wxUSE_COCOA" = 1 ; then
25732 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25733 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25734echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25735 wxUSE_PRINTING_ARCHITECTURE=no
25736 fi
25737 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25738 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25739echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25740 wxUSE_DRAG_AND_DROP=no
25741 fi
25742 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25743 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25744echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25745 wxUSE_DRAGIMAGE=no
25746 fi
25747 fi
25748
a848cd7e
SC
25749 if test "$wxUSE_MSW" = 1 ; then
25750 TOOLKIT=MSW
25751 GUIDIST=MSW_DIST
25752
ceec2216 25753 case "${host}" in
a848cd7e
SC
25754 *-*-mingw32* )
25755 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25756 esac
25757 fi
25758
25759 if test "$wxUSE_GTK" = 1; then
25760 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25761echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25762
25763 gtk_version_cached=1
25764 if test "${wx_cv_lib_gtk+set}" = set; then
25765 echo $ECHO_N "(cached) $ECHO_C" >&6
25766else
25767
25768 gtk_version_cached=0
25769 echo "$as_me:$LINENO: result: " >&5
25770echo "${ECHO_T}" >&6
25771
25772 GTK_MODULES=
25773 if test "$wxUSE_THREADS" = "yes"; then
25774 GTK_MODULES=gthread
25775 fi
25776
f597b41c 25777 wx_cv_lib_gtk=
5001df0d
MW
25778 if test "x$wxGTK_VERSION" != "x1"
25779 then
25780 case "${host}" in
25781 *-*-solaris2* )
25782 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25783 enable_gtktest=no
25784 fi
25785 esac
25786
a848cd7e
SC
25787 # Check whether --enable-gtktest or --disable-gtktest was given.
25788if test "${enable_gtktest+set}" = set; then
25789 enableval="$enable_gtktest"
25790
25791else
25792 enable_gtktest=yes
25793fi;
25794
25795 pkg_config_args=gtk+-2.0
25796 for module in . $GTK_MODULES
25797 do
25798 case "$module" in
25799 gthread)
25800 pkg_config_args="$pkg_config_args gthread-2.0"
25801 ;;
25802 esac
25803 done
25804
25805 no_gtk=""
25806
25807 # Extract the first word of "pkg-config", so it can be a program name with args.
25808set dummy pkg-config; ac_word=$2
25809echo "$as_me:$LINENO: checking for $ac_word" >&5
25810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25811if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25812 echo $ECHO_N "(cached) $ECHO_C" >&6
25813else
25814 case $PKG_CONFIG in
25815 [\\/]* | ?:[\\/]*)
25816 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25817 ;;
25818 *)
25819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25820for as_dir in $PATH
25821do
25822 IFS=$as_save_IFS
25823 test -z "$as_dir" && as_dir=.
25824 for ac_exec_ext in '' $ac_executable_extensions; do
25825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25826 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25828 break 2
25829 fi
25830done
25831done
25832
25833 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25834 ;;
25835esac
25836fi
25837PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25838
25839if test -n "$PKG_CONFIG"; then
25840 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25841echo "${ECHO_T}$PKG_CONFIG" >&6
25842else
25843 echo "$as_me:$LINENO: result: no" >&5
25844echo "${ECHO_T}no" >&6
25845fi
25846
25847
25848 if test x$PKG_CONFIG != xno ; then
25849 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25850 :
25851 else
c2218763 25852 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25853 no_gtk=yes
25854 PKG_CONFIG=no
25855 fi
25856 else
25857 no_gtk=yes
25858 fi
25859
25860 min_gtk_version=2.0.0
25861 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25862echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25863
25864 if test x$PKG_CONFIG != xno ; then
25865 ## don't try to run the test against uninstalled libtool libs
25866 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25867 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25868 enable_gtktest=no
25869 fi
25870
25871 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25872 :
25873 else
25874 no_gtk=yes
25875 fi
25876 fi
25877
25878 if test x"$no_gtk" = x ; then
25879 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25880 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25881 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25882 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25883 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25884 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25885 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25886 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25887 if test "x$enable_gtktest" = "xyes" ; then
25888 ac_save_CFLAGS="$CFLAGS"
25889 ac_save_LIBS="$LIBS"
25890 CFLAGS="$CFLAGS $GTK_CFLAGS"
25891 LIBS="$GTK_LIBS $LIBS"
25892 rm -f conf.gtktest
25893 if test "$cross_compiling" = yes; then
25894 echo $ac_n "cross compiling; assumed OK... $ac_c"
25895else
25896 cat >conftest.$ac_ext <<_ACEOF
25897/* confdefs.h. */
25898_ACEOF
25899cat confdefs.h >>conftest.$ac_ext
25900cat >>conftest.$ac_ext <<_ACEOF
25901/* end confdefs.h. */
25902
25903#include <gtk/gtk.h>
25904#include <stdio.h>
25905#include <stdlib.h>
25906
25907int
25908main ()
25909{
25910 int major, minor, micro;
25911 char *tmp_version;
25912
25913 system ("touch conf.gtktest");
25914
25915 /* HP/UX 9 (%@#!) writes to sscanf strings */
25916 tmp_version = g_strdup("$min_gtk_version");
25917 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25918 printf("%s, bad version string\n", "$min_gtk_version");
25919 exit(1);
25920 }
25921
25922 if ((gtk_major_version != $gtk_config_major_version) ||
25923 (gtk_minor_version != $gtk_config_minor_version) ||
25924 (gtk_micro_version != $gtk_config_micro_version))
25925 {
25926 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25927 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25928 gtk_major_version, gtk_minor_version, gtk_micro_version);
25929 printf ("*** was found! If pkg-config was correct, then it is best\n");
25930 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25931 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25932 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25933 printf("*** required on your system.\n");
25934 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25935 printf("*** to point to the correct configuration files\n");
25936 }
25937 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25938 (gtk_minor_version != GTK_MINOR_VERSION) ||
25939 (gtk_micro_version != GTK_MICRO_VERSION))
25940 {
25941 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25942 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25943 printf("*** library (version %d.%d.%d)\n",
25944 gtk_major_version, gtk_minor_version, gtk_micro_version);
25945 }
25946 else
25947 {
25948 if ((gtk_major_version > major) ||
25949 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25950 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25951 {
25952 return 0;
25953 }
25954 else
25955 {
25956 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25957 gtk_major_version, gtk_minor_version, gtk_micro_version);
25958 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25959 major, minor, micro);
25960 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25961 printf("***\n");
25962 printf("*** If you have already installed a sufficiently new version, this error\n");
25963 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
25964 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25965 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
25966 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
25967 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25968 printf("*** so that the correct libraries are found at run-time))\n");
25969 }
25970 }
25971 return 1;
25972}
25973
25974_ACEOF
25975rm -f conftest$ac_exeext
25976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25977 (eval $ac_link) 2>&5
25978 ac_status=$?
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25982 (eval $ac_try) 2>&5
25983 ac_status=$?
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); }; }; then
25986 :
25987else
25988 echo "$as_me: program exited with status $ac_status" >&5
25989echo "$as_me: failed program was:" >&5
25990sed 's/^/| /' conftest.$ac_ext >&5
25991
25992( exit $ac_status )
25993no_gtk=yes
25994fi
ac1cb8d3 25995rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25996fi
25997 CFLAGS="$ac_save_CFLAGS"
25998 LIBS="$ac_save_LIBS"
25999 fi
26000 fi
26001 if test "x$no_gtk" = x ; then
26002 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26003echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26004 wx_cv_lib_gtk=2.0
26005 else
26006 echo "$as_me:$LINENO: result: no" >&5
26007echo "${ECHO_T}no" >&6
26008 if test "$PKG_CONFIG" = "no" ; then
26009 echo "*** A new enough version of pkg-config was not found."
26010 echo "*** See http://pkgconfig.sourceforge.net"
26011 else
26012 if test -f conf.gtktest ; then
26013 :
26014 else
26015 echo "*** Could not run GTK+ test program, checking why..."
26016 ac_save_CFLAGS="$CFLAGS"
26017 ac_save_LIBS="$LIBS"
26018 CFLAGS="$CFLAGS $GTK_CFLAGS"
26019 LIBS="$LIBS $GTK_LIBS"
26020 cat >conftest.$ac_ext <<_ACEOF
26021/* confdefs.h. */
26022_ACEOF
26023cat confdefs.h >>conftest.$ac_ext
26024cat >>conftest.$ac_ext <<_ACEOF
26025/* end confdefs.h. */
26026
26027#include <gtk/gtk.h>
26028#include <stdio.h>
26029
26030int
26031main ()
26032{
26033 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26034 ;
26035 return 0;
26036}
26037_ACEOF
26038rm -f conftest.$ac_objext conftest$ac_exeext
26039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26040 (eval $ac_link) 2>conftest.er1
a848cd7e 26041 ac_status=$?
ac1cb8d3
VS
26042 grep -v '^ *+' conftest.er1 >conftest.err
26043 rm -f conftest.er1
26044 cat conftest.err >&5
a848cd7e
SC
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); } &&
dee1a63f
MB
26047 { ac_try='test -z "$ac_c_werror_flag"
26048 || test ! -s conftest.err'
ac1cb8d3
VS
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26051 ac_status=$?
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; } &&
26054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26057 ac_status=$?
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; }; then
26060 echo "*** The test program compiled, but did not run. This usually means"
26061 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26062 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26063 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26064 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26065 echo "*** is required on your system"
26066 echo "***"
26067 echo "*** If you have an old version installed, it is best to remove it, although"
26068 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26069else
26070 echo "$as_me: failed program was:" >&5
26071sed 's/^/| /' conftest.$ac_ext >&5
26072
26073 echo "*** The test program failed to compile or link. See the file config.log for the"
26074 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26075fi
ac1cb8d3
VS
26076rm -f conftest.err conftest.$ac_objext \
26077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26078 CFLAGS="$ac_save_CFLAGS"
26079 LIBS="$ac_save_LIBS"
26080 fi
26081 fi
26082 GTK_CFLAGS=""
26083 GTK_LIBS=""
26084 :
26085 fi
26086
26087
26088 rm -f conf.gtktest
26089
5001df0d
MW
26090
26091 case "${host}" in
26092 *-*-solaris2* )
26093 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26094 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26095 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26096 fi
26097 if test "$wxUSE_SHARED" != "yes"; then
26098 GTK_LIBS="$GTK_LIBS -lX11"
26099 fi
26100 esac
f597b41c
MW
26101 fi
26102
f34ca037
MW
26103 if test -z "$wx_cv_lib_gtk"; then
26104 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26105
26106# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26107if test "${with_gtk_prefix+set}" = set; then
26108 withval="$with_gtk_prefix"
26109 gtk_config_prefix="$withval"
26110else
26111 gtk_config_prefix=""
26112fi;
26113
26114# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26115if test "${with_gtk_exec_prefix+set}" = set; then
26116 withval="$with_gtk_exec_prefix"
26117 gtk_config_exec_prefix="$withval"
26118else
26119 gtk_config_exec_prefix=""
26120fi;
26121# Check whether --enable-gtktest or --disable-gtktest was given.
26122if test "${enable_gtktest+set}" = set; then
26123 enableval="$enable_gtktest"
26124
26125else
26126 enable_gtktest=yes
26127fi;
26128
26129 for module in . $GTK_MODULES
26130 do
26131 case "$module" in
26132 gthread)
26133 gtk_config_args="$gtk_config_args gthread"
26134 ;;
26135 esac
26136 done
26137
26138 if test x$gtk_config_exec_prefix != x ; then
26139 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26140 if test x${GTK_CONFIG+set} != xset ; then
26141 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26142 fi
26143 fi
26144 if test x$gtk_config_prefix != x ; then
26145 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26146 if test x${GTK_CONFIG+set} != xset ; then
26147 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26148 fi
26149 fi
26150
26151 # Extract the first word of "gtk-config", so it can be a program name with args.
26152set dummy gtk-config; ac_word=$2
26153echo "$as_me:$LINENO: checking for $ac_word" >&5
26154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26155if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26156 echo $ECHO_N "(cached) $ECHO_C" >&6
26157else
26158 case $GTK_CONFIG in
26159 [\\/]* | ?:[\\/]*)
26160 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26161 ;;
26162 *)
26163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26164for as_dir in $PATH
26165do
26166 IFS=$as_save_IFS
26167 test -z "$as_dir" && as_dir=.
26168 for ac_exec_ext in '' $ac_executable_extensions; do
26169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26170 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26172 break 2
26173 fi
26174done
26175done
26176
26177 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26178 ;;
26179esac
26180fi
26181GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26182
26183if test -n "$GTK_CONFIG"; then
26184 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26185echo "${ECHO_T}$GTK_CONFIG" >&6
26186else
26187 echo "$as_me:$LINENO: result: no" >&5
26188echo "${ECHO_T}no" >&6
26189fi
26190
26191 min_gtk_version=1.2.7
26192 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26193echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26194 no_gtk=""
26195 if test "$GTK_CONFIG" = "no" ; then
26196 no_gtk=yes
26197 else
26198 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26199 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26200 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26201 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26202 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26203 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26204 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26205 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26206 if test "x$enable_gtktest" = "xyes" ; then
26207 ac_save_CFLAGS="$CFLAGS"
26208 ac_save_LIBS="$LIBS"
26209 CFLAGS="$CFLAGS $GTK_CFLAGS"
26210 LIBS="$GTK_LIBS $LIBS"
26211 rm -f conf.gtktest
26212 if test "$cross_compiling" = yes; then
26213 echo $ac_n "cross compiling; assumed OK... $ac_c"
26214else
26215 cat >conftest.$ac_ext <<_ACEOF
26216/* confdefs.h. */
26217_ACEOF
26218cat confdefs.h >>conftest.$ac_ext
26219cat >>conftest.$ac_ext <<_ACEOF
26220/* end confdefs.h. */
26221
26222#include <gtk/gtk.h>
26223#include <stdio.h>
26224#include <stdlib.h>
26225
26226int
26227main ()
26228{
26229 int major, minor, micro;
26230 char *tmp_version;
26231
26232 system ("touch conf.gtktest");
26233
26234 /* HP/UX 9 (%@#!) writes to sscanf strings */
26235 tmp_version = g_strdup("$min_gtk_version");
26236 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26237 printf("%s, bad version string\n", "$min_gtk_version");
26238 exit(1);
26239 }
26240
26241 if ((gtk_major_version != $gtk_config_major_version) ||
26242 (gtk_minor_version != $gtk_config_minor_version) ||
26243 (gtk_micro_version != $gtk_config_micro_version))
26244 {
26245 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26246 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26247 gtk_major_version, gtk_minor_version, gtk_micro_version);
26248 printf ("*** was found! If gtk-config was correct, then it is best\n");
26249 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26250 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26251 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26252 printf("*** required on your system.\n");
26253 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26254 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26255 printf("*** before re-running configure\n");
26256 }
26257#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26258 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26259 (gtk_minor_version != GTK_MINOR_VERSION) ||
26260 (gtk_micro_version != GTK_MICRO_VERSION))
26261 {
26262 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26263 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26264 printf("*** library (version %d.%d.%d)\n",
26265 gtk_major_version, gtk_minor_version, gtk_micro_version);
26266 }
26267#endif /* defined (GTK_MAJOR_VERSION) ... */
26268 else
26269 {
26270 if ((gtk_major_version > major) ||
26271 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26272 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26273 {
26274 return 0;
26275 }
26276 else
26277 {
26278 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26279 gtk_major_version, gtk_minor_version, gtk_micro_version);
26280 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26281 major, minor, micro);
26282 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26283 printf("***\n");
26284 printf("*** If you have already installed a sufficiently new version, this error\n");
26285 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26286 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26287 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26288 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26289 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26290 printf("*** so that the correct libraries are found at run-time))\n");
26291 }
26292 }
26293 return 1;
26294}
26295
26296_ACEOF
26297rm -f conftest$ac_exeext
26298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26299 (eval $ac_link) 2>&5
26300 ac_status=$?
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304 (eval $ac_try) 2>&5
26305 ac_status=$?
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); }; }; then
26308 :
26309else
26310 echo "$as_me: program exited with status $ac_status" >&5
26311echo "$as_me: failed program was:" >&5
26312sed 's/^/| /' conftest.$ac_ext >&5
26313
26314( exit $ac_status )
26315no_gtk=yes
26316fi
ac1cb8d3 26317rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26318fi
26319 CFLAGS="$ac_save_CFLAGS"
26320 LIBS="$ac_save_LIBS"
26321 fi
26322 fi
26323 if test "x$no_gtk" = x ; then
26324 echo "$as_me:$LINENO: result: yes" >&5
26325echo "${ECHO_T}yes" >&6
26326 wx_cv_lib_gtk=1.2.7
26327 else
26328 echo "$as_me:$LINENO: result: no" >&5
26329echo "${ECHO_T}no" >&6
26330 if test "$GTK_CONFIG" = "no" ; then
26331 echo "*** The gtk-config script installed by GTK could not be found"
26332 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26333 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26334 echo "*** full path to gtk-config."
26335 else
26336 if test -f conf.gtktest ; then
26337 :
26338 else
26339 echo "*** Could not run GTK test program, checking why..."
26340 CFLAGS="$CFLAGS $GTK_CFLAGS"
26341 LIBS="$LIBS $GTK_LIBS"
26342 cat >conftest.$ac_ext <<_ACEOF
26343/* confdefs.h. */
26344_ACEOF
26345cat confdefs.h >>conftest.$ac_ext
26346cat >>conftest.$ac_ext <<_ACEOF
26347/* end confdefs.h. */
26348
26349#include <gtk/gtk.h>
26350#include <stdio.h>
26351
26352int
26353main ()
26354{
26355 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26356 ;
26357 return 0;
26358}
26359_ACEOF
26360rm -f conftest.$ac_objext conftest$ac_exeext
26361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26362 (eval $ac_link) 2>conftest.er1
a848cd7e 26363 ac_status=$?
ac1cb8d3
VS
26364 grep -v '^ *+' conftest.er1 >conftest.err
26365 rm -f conftest.er1
26366 cat conftest.err >&5
a848cd7e
SC
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); } &&
dee1a63f
MB
26369 { ac_try='test -z "$ac_c_werror_flag"
26370 || test ! -s conftest.err'
ac1cb8d3
VS
26371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26372 (eval $ac_try) 2>&5
26373 ac_status=$?
26374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); }; } &&
26376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378 (eval $ac_try) 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); }; }; then
26382 echo "*** The test program compiled, but did not run. This usually means"
26383 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26384 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26385 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26386 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26387 echo "*** is required on your system"
26388 echo "***"
26389 echo "*** If you have an old version installed, it is best to remove it, although"
26390 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26391 echo "***"
26392 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26393 echo "*** came with the system with the command"
26394 echo "***"
26395 echo "*** rpm --erase --nodeps gtk gtk-devel"
26396else
26397 echo "$as_me: failed program was:" >&5
26398sed 's/^/| /' conftest.$ac_ext >&5
26399
26400 echo "*** The test program failed to compile or link. See the file config.log for the"
26401 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26402 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26403 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26404fi
ac1cb8d3
VS
26405rm -f conftest.err conftest.$ac_objext \
26406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26407 CFLAGS="$ac_save_CFLAGS"
26408 LIBS="$ac_save_LIBS"
26409 fi
26410 fi
26411 GTK_CFLAGS=""
26412 GTK_LIBS=""
26413 :
26414 fi
26415
26416
26417 rm -f conf.gtktest
26418
26419
f34ca037 26420 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26421
26422# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26423if test "${with_gtk_prefix+set}" = set; then
26424 withval="$with_gtk_prefix"
26425 gtk_config_prefix="$withval"
26426else
26427 gtk_config_prefix=""
26428fi;
26429
26430# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26431if test "${with_gtk_exec_prefix+set}" = set; then
26432 withval="$with_gtk_exec_prefix"
26433 gtk_config_exec_prefix="$withval"
26434else
26435 gtk_config_exec_prefix=""
26436fi;
26437# Check whether --enable-gtktest or --disable-gtktest was given.
26438if test "${enable_gtktest+set}" = set; then
26439 enableval="$enable_gtktest"
26440
26441else
26442 enable_gtktest=yes
26443fi;
26444
26445 for module in . $GTK_MODULES
26446 do
26447 case "$module" in
26448 gthread)
26449 gtk_config_args="$gtk_config_args gthread"
26450 ;;
26451 esac
26452 done
26453
26454 if test x$gtk_config_exec_prefix != x ; then
26455 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26456 if test x${GTK_CONFIG+set} != xset ; then
26457 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26458 fi
26459 fi
26460 if test x$gtk_config_prefix != x ; then
26461 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26462 if test x${GTK_CONFIG+set} != xset ; then
26463 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26464 fi
26465 fi
26466
26467 # Extract the first word of "gtk-config", so it can be a program name with args.
26468set dummy gtk-config; ac_word=$2
26469echo "$as_me:$LINENO: checking for $ac_word" >&5
26470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26471if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26472 echo $ECHO_N "(cached) $ECHO_C" >&6
26473else
26474 case $GTK_CONFIG in
26475 [\\/]* | ?:[\\/]*)
26476 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26477 ;;
26478 *)
26479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26480for as_dir in $PATH
26481do
26482 IFS=$as_save_IFS
26483 test -z "$as_dir" && as_dir=.
26484 for ac_exec_ext in '' $ac_executable_extensions; do
26485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26486 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26488 break 2
26489 fi
26490done
26491done
26492
26493 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26494 ;;
26495esac
26496fi
26497GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26498
26499if test -n "$GTK_CONFIG"; then
26500 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26501echo "${ECHO_T}$GTK_CONFIG" >&6
26502else
26503 echo "$as_me:$LINENO: result: no" >&5
26504echo "${ECHO_T}no" >&6
26505fi
26506
26507 min_gtk_version=1.2.3
26508 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26509echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26510 no_gtk=""
26511 if test "$GTK_CONFIG" = "no" ; then
26512 no_gtk=yes
26513 else
26514 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26515 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26516 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26517 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26518 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26519 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26520 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26521 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26522 if test "x$enable_gtktest" = "xyes" ; then
26523 ac_save_CFLAGS="$CFLAGS"
26524 ac_save_LIBS="$LIBS"
26525 CFLAGS="$CFLAGS $GTK_CFLAGS"
26526 LIBS="$GTK_LIBS $LIBS"
26527 rm -f conf.gtktest
26528 if test "$cross_compiling" = yes; then
26529 echo $ac_n "cross compiling; assumed OK... $ac_c"
26530else
26531 cat >conftest.$ac_ext <<_ACEOF
26532/* confdefs.h. */
26533_ACEOF
26534cat confdefs.h >>conftest.$ac_ext
26535cat >>conftest.$ac_ext <<_ACEOF
26536/* end confdefs.h. */
26537
26538#include <gtk/gtk.h>
26539#include <stdio.h>
26540#include <stdlib.h>
26541
26542int
26543main ()
26544{
26545 int major, minor, micro;
26546 char *tmp_version;
26547
26548 system ("touch conf.gtktest");
26549
26550 /* HP/UX 9 (%@#!) writes to sscanf strings */
26551 tmp_version = g_strdup("$min_gtk_version");
26552 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26553 printf("%s, bad version string\n", "$min_gtk_version");
26554 exit(1);
26555 }
26556
26557 if ((gtk_major_version != $gtk_config_major_version) ||
26558 (gtk_minor_version != $gtk_config_minor_version) ||
26559 (gtk_micro_version != $gtk_config_micro_version))
26560 {
26561 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26562 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26563 gtk_major_version, gtk_minor_version, gtk_micro_version);
26564 printf ("*** was found! If gtk-config was correct, then it is best\n");
26565 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26566 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26567 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26568 printf("*** required on your system.\n");
26569 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26570 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26571 printf("*** before re-running configure\n");
26572 }
26573#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26574 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26575 (gtk_minor_version != GTK_MINOR_VERSION) ||
26576 (gtk_micro_version != GTK_MICRO_VERSION))
26577 {
26578 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26579 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26580 printf("*** library (version %d.%d.%d)\n",
26581 gtk_major_version, gtk_minor_version, gtk_micro_version);
26582 }
26583#endif /* defined (GTK_MAJOR_VERSION) ... */
26584 else
26585 {
26586 if ((gtk_major_version > major) ||
26587 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26588 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26589 {
26590 return 0;
26591 }
26592 else
26593 {
26594 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26595 gtk_major_version, gtk_minor_version, gtk_micro_version);
26596 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26597 major, minor, micro);
26598 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26599 printf("***\n");
26600 printf("*** If you have already installed a sufficiently new version, this error\n");
26601 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26602 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26603 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26604 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26605 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26606 printf("*** so that the correct libraries are found at run-time))\n");
26607 }
26608 }
26609 return 1;
26610}
26611
26612_ACEOF
26613rm -f conftest$ac_exeext
26614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26615 (eval $ac_link) 2>&5
26616 ac_status=$?
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620 (eval $ac_try) 2>&5
26621 ac_status=$?
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); }; }; then
26624 :
26625else
26626 echo "$as_me: program exited with status $ac_status" >&5
26627echo "$as_me: failed program was:" >&5
26628sed 's/^/| /' conftest.$ac_ext >&5
26629
26630( exit $ac_status )
26631no_gtk=yes
26632fi
ac1cb8d3 26633rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26634fi
26635 CFLAGS="$ac_save_CFLAGS"
26636 LIBS="$ac_save_LIBS"
26637 fi
26638 fi
26639 if test "x$no_gtk" = x ; then
26640 echo "$as_me:$LINENO: result: yes" >&5
26641echo "${ECHO_T}yes" >&6
26642 wx_cv_lib_gtk=1.2.3
26643 else
26644 echo "$as_me:$LINENO: result: no" >&5
26645echo "${ECHO_T}no" >&6
26646 if test "$GTK_CONFIG" = "no" ; then
26647 echo "*** The gtk-config script installed by GTK could not be found"
26648 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26649 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26650 echo "*** full path to gtk-config."
26651 else
26652 if test -f conf.gtktest ; then
26653 :
26654 else
26655 echo "*** Could not run GTK test program, checking why..."
26656 CFLAGS="$CFLAGS $GTK_CFLAGS"
26657 LIBS="$LIBS $GTK_LIBS"
26658 cat >conftest.$ac_ext <<_ACEOF
26659/* confdefs.h. */
26660_ACEOF
26661cat confdefs.h >>conftest.$ac_ext
26662cat >>conftest.$ac_ext <<_ACEOF
26663/* end confdefs.h. */
26664
26665#include <gtk/gtk.h>
26666#include <stdio.h>
26667
26668int
26669main ()
26670{
26671 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26672 ;
26673 return 0;
26674}
26675_ACEOF
26676rm -f conftest.$ac_objext conftest$ac_exeext
26677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26678 (eval $ac_link) 2>conftest.er1
a848cd7e 26679 ac_status=$?
ac1cb8d3
VS
26680 grep -v '^ *+' conftest.er1 >conftest.err
26681 rm -f conftest.er1
26682 cat conftest.err >&5
a848cd7e
SC
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); } &&
dee1a63f
MB
26685 { ac_try='test -z "$ac_c_werror_flag"
26686 || test ! -s conftest.err'
ac1cb8d3
VS
26687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688 (eval $ac_try) 2>&5
26689 ac_status=$?
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); }; } &&
26692 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26695 ac_status=$?
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); }; }; then
26698 echo "*** The test program compiled, but did not run. This usually means"
26699 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26700 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26701 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26702 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26703 echo "*** is required on your system"
26704 echo "***"
26705 echo "*** If you have an old version installed, it is best to remove it, although"
26706 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26707 echo "***"
26708 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26709 echo "*** came with the system with the command"
26710 echo "***"
26711 echo "*** rpm --erase --nodeps gtk gtk-devel"
26712else
26713 echo "$as_me: failed program was:" >&5
26714sed 's/^/| /' conftest.$ac_ext >&5
26715
26716 echo "*** The test program failed to compile or link. See the file config.log for the"
26717 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26718 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26719 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26720fi
ac1cb8d3
VS
26721rm -f conftest.err conftest.$ac_objext \
26722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26723 CFLAGS="$ac_save_CFLAGS"
26724 LIBS="$ac_save_LIBS"
26725 fi
26726 fi
26727 GTK_CFLAGS=""
26728 GTK_LIBS=""
26729 :
26730 fi
26731
26732
26733 rm -f conf.gtktest
26734
f34ca037 26735 fi
a848cd7e
SC
26736 fi
26737 fi
26738
26739 if test -z "$wx_cv_lib_gtk"; then
26740 wx_cv_lib_gtk=none
26741 else
26742 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26743 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26744 fi
26745
26746
26747fi
26748
26749
26750 if test "$gtk_version_cached" = 1; then
26751 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26752echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26753 fi
26754
26755 case "$wx_cv_lib_gtk" in
26756 2.0) WXGTK20=1
26757 TOOLKIT_VERSION=2
26758 ;;
26759 1.2.7) WXGTK127=1
26760 WXGTK12=1
26761 ;;
26762 1.2.3) WXGTK12=1
26763 ;;
26764 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26765The development files for GTK+ were not found. For GTK+ 2, please
26766ensure that pkg-config is in the path and that gtk+-2.0.pc is
26767installed. For GTK+ 1.2 please check that gtk-config is in the path,
26768and that the version is 1.2.3 or above. Also check that the
26769libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26770--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26771 " >&5
26772echo "$as_me: error:
f597b41c
MW
26773The development files for GTK+ were not found. For GTK+ 2, please
26774ensure that pkg-config is in the path and that gtk+-2.0.pc is
26775installed. For GTK+ 1.2 please check that gtk-config is in the path,
26776and that the version is 1.2.3 or above. Also check that the
26777libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26778--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26779 " >&2;}
26780 { (exit 1); exit 1; }; }
26781 ;;
26782 esac
26783
26784 if test "$WXGTK20" = 1; then
304205f1
VS
26785 save_CFLAGS="$CFLAGS"
26786 save_LIBS="$LIBS"
9d271838 26787 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26788 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26789
d12aef51
VZ
26790 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26791echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26792 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26793/* confdefs.h. */
26794_ACEOF
26795cat confdefs.h >>conftest.$ac_ext
26796cat >>conftest.$ac_ext <<_ACEOF
26797/* end confdefs.h. */
304205f1 26798
d12aef51 26799 #include <gtk/gtk.h>
304205f1 26800
d12aef51
VZ
26801int
26802main ()
26803{
304205f1 26804
d12aef51 26805 void *f = gtk_icon_size_lookup;
abc736fd
MW
26806
26807 ;
26808 return 0;
26809}
26810_ACEOF
26811rm -f conftest.$ac_objext
26812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26813 (eval $ac_compile) 2>conftest.er1
26814 ac_status=$?
26815 grep -v '^ *+' conftest.er1 >conftest.err
26816 rm -f conftest.er1
26817 cat conftest.err >&5
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); } &&
dee1a63f
MB
26820 { ac_try='test -z "$ac_c_werror_flag"
26821 || test ! -s conftest.err'
abc736fd
MW
26822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26823 (eval $ac_try) 2>&5
26824 ac_status=$?
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); }; } &&
26827 { ac_try='test -s conftest.$ac_objext'
26828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26829 (eval $ac_try) 2>&5
26830 ac_status=$?
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); }; }; then
26833
26834 echo "$as_me:$LINENO: result: no" >&5
26835echo "${ECHO_T}no" >&6
26836
26837else
26838 echo "$as_me: failed program was:" >&5
26839sed 's/^/| /' conftest.$ac_ext >&5
26840
26841
26842 cat >>confdefs.h <<\_ACEOF
26843#define NEED_GTK_ICON_SIZE_LOOKUP 1
26844_ACEOF
26845
26846 echo "$as_me:$LINENO: result: yes" >&5
26847echo "${ECHO_T}yes" >&6
26848
26849fi
26850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26851
9755e73b
VS
26852 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26853echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26854 cat >conftest.$ac_ext <<_ACEOF
26855/* confdefs.h. */
26856_ACEOF
26857cat confdefs.h >>conftest.$ac_ext
26858cat >>conftest.$ac_ext <<_ACEOF
26859/* end confdefs.h. */
26860
26861 #include <gtk/gtk.h>
26862
26863int
26864main ()
26865{
26866
26867 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26868 Not GTK+ 2.4
9755e73b
VS
26869 #endif
26870
26871 ;
26872 return 0;
26873}
26874_ACEOF
26875rm -f conftest.$ac_objext
26876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26877 (eval $ac_compile) 2>conftest.er1
26878 ac_status=$?
26879 grep -v '^ *+' conftest.er1 >conftest.err
26880 rm -f conftest.er1
26881 cat conftest.err >&5
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); } &&
dee1a63f
MB
26884 { ac_try='test -z "$ac_c_werror_flag"
26885 || test ! -s conftest.err'
9755e73b
VS
26886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26887 (eval $ac_try) 2>&5
26888 ac_status=$?
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); }; } &&
26891 { ac_try='test -s conftest.$ac_objext'
26892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26893 (eval $ac_try) 2>&5
26894 ac_status=$?
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); }; }; then
26897
26898 cat >>confdefs.h <<\_ACEOF
26899#define __WXGTK24__ 1
26900_ACEOF
26901
26902 echo "$as_me:$LINENO: result: yes" >&5
26903echo "${ECHO_T}yes" >&6
26904
26905else
26906 echo "$as_me: failed program was:" >&5
26907sed 's/^/| /' conftest.$ac_ext >&5
26908
26909
26910 echo "$as_me:$LINENO: result: no" >&5
26911echo "${ECHO_T}no" >&6
26912
26913fi
26914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26915
304205f1
VS
26916 CFLAGS="$save_CFLAGS"
26917 LIBS="$save_LIBS"
a848cd7e
SC
26918 else
26919 if test "$wxUSE_UNICODE" = "yes"; then
26920 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26921echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26922 wxUSE_UNICODE=no
26923 fi
26924 fi
26925
26926 if test "$USE_DARWIN" != 1; then
26927
26928for ac_func in poll
26929do
26930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26931echo "$as_me:$LINENO: checking for $ac_func" >&5
26932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26933if eval "test \"\${$as_ac_var+set}\" = set"; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26935else
26936 cat >conftest.$ac_ext <<_ACEOF
26937/* confdefs.h. */
26938_ACEOF
26939cat confdefs.h >>conftest.$ac_ext
26940cat >>conftest.$ac_ext <<_ACEOF
26941/* end confdefs.h. */
ac1cb8d3
VS
26942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26944#define $ac_func innocuous_$ac_func
26945
a848cd7e
SC
26946/* System header to define __stub macros and hopefully few prototypes,
26947 which can conflict with char $ac_func (); below.
26948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26949 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26950
a848cd7e
SC
26951#ifdef __STDC__
26952# include <limits.h>
26953#else
26954# include <assert.h>
26955#endif
ac1cb8d3
VS
26956
26957#undef $ac_func
26958
a848cd7e
SC
26959/* Override any gcc2 internal prototype to avoid an error. */
26960#ifdef __cplusplus
26961extern "C"
26962{
26963#endif
26964/* We use char because int might match the return type of a gcc2
26965 builtin and then its argument prototype would still apply. */
26966char $ac_func ();
26967/* The GNU C library defines this for functions which it implements
26968 to always fail with ENOSYS. Some functions are actually named
26969 something starting with __ and the normal name is an alias. */
26970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26971choke me
26972#else
26973char (*f) () = $ac_func;
26974#endif
26975#ifdef __cplusplus
26976}
26977#endif
26978
26979int
26980main ()
26981{
26982return f != $ac_func;
26983 ;
26984 return 0;
26985}
26986_ACEOF
26987rm -f conftest.$ac_objext conftest$ac_exeext
26988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26989 (eval $ac_link) 2>conftest.er1
a848cd7e 26990 ac_status=$?
ac1cb8d3
VS
26991 grep -v '^ *+' conftest.er1 >conftest.err
26992 rm -f conftest.er1
26993 cat conftest.err >&5
a848cd7e
SC
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); } &&
dee1a63f
MB
26996 { ac_try='test -z "$ac_c_werror_flag"
26997 || test ! -s conftest.err'
ac1cb8d3
VS
26998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999 (eval $ac_try) 2>&5
27000 ac_status=$?
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; } &&
27003 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27005 (eval $ac_try) 2>&5
27006 ac_status=$?
27007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008 (exit $ac_status); }; }; then
27009 eval "$as_ac_var=yes"
27010else
27011 echo "$as_me: failed program was:" >&5
27012sed 's/^/| /' conftest.$ac_ext >&5
27013
27014eval "$as_ac_var=no"
27015fi
ac1cb8d3
VS
27016rm -f conftest.err conftest.$ac_objext \
27017 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27018fi
27019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27020echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27021if test `eval echo '${'$as_ac_var'}'` = yes; then
27022 cat >>confdefs.h <<_ACEOF
27023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27024_ACEOF
27025
27026fi
27027done
27028
27029 fi
27030
27031 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27032 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27033
27034 AFMINSTALL=afminstall
27035 TOOLKIT=GTK
27036 GUIDIST=GTK_DIST
27037
27038 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27039echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27040if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27041 echo $ECHO_N "(cached) $ECHO_C" >&6
27042else
27043 ac_check_lib_save_LIBS=$LIBS
27044LIBS="-lgdk $LIBS"
27045cat >conftest.$ac_ext <<_ACEOF
27046/* confdefs.h. */
27047_ACEOF
27048cat confdefs.h >>conftest.$ac_ext
27049cat >>conftest.$ac_ext <<_ACEOF
27050/* end confdefs.h. */
27051
27052/* Override any gcc2 internal prototype to avoid an error. */
27053#ifdef __cplusplus
27054extern "C"
27055#endif
27056/* We use char because int might match the return type of a gcc2
27057 builtin and then its argument prototype would still apply. */
27058char gdk_im_open ();
27059int
27060main ()
27061{
27062gdk_im_open ();
27063 ;
27064 return 0;
27065}
27066_ACEOF
27067rm -f conftest.$ac_objext conftest$ac_exeext
27068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27069 (eval $ac_link) 2>conftest.er1
a848cd7e 27070 ac_status=$?
ac1cb8d3
VS
27071 grep -v '^ *+' conftest.er1 >conftest.err
27072 rm -f conftest.er1
27073 cat conftest.err >&5
a848cd7e
SC
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); } &&
dee1a63f
MB
27076 { ac_try='test -z "$ac_c_werror_flag"
27077 || test ! -s conftest.err'
ac1cb8d3
VS
27078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079 (eval $ac_try) 2>&5
27080 ac_status=$?
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; } &&
27083 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085 (eval $ac_try) 2>&5
27086 ac_status=$?
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
27089 ac_cv_lib_gdk_gdk_im_open=yes
27090else
27091 echo "$as_me: failed program was:" >&5
27092sed 's/^/| /' conftest.$ac_ext >&5
27093
27094ac_cv_lib_gdk_gdk_im_open=no
27095fi
ac1cb8d3
VS
27096rm -f conftest.err conftest.$ac_objext \
27097 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27098LIBS=$ac_check_lib_save_LIBS
27099fi
27100echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27101echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27102if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27103 cat >>confdefs.h <<\_ACEOF
27104#define HAVE_XIM 1
27105_ACEOF
27106
27107fi
27108
27109
27110
27111 if test "$wxUSE_GPE" = "yes"; then
27112 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27113echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27114
0ad5d837
VZ
27115 ac_find_libraries=
27116 for ac_dir in $SEARCH_LIB;
a848cd7e 27117 do
3eca31dc 27118 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27119 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27120 ac_find_libraries=$ac_dir
27121 break 2
27122 fi
27123 done
27124 done
27125
27126 if test "$ac_find_libraries" != "" ; then
27127
0ad5d837 27128 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27129 ac_path_to_link=""
27130 else
0ad5d837
VZ
27131 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27132 result=$?
27133 if test $result = 0; then
27134 ac_path_to_link=""
27135 else
27136 ac_path_to_link=" -L$ac_find_libraries"
27137 fi
a848cd7e
SC
27138 fi
27139
27140 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27141 WXGPE=1
0ad5d837
VZ
27142 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27143echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27144 else
27145 echo "$as_me:$LINENO: result: not found" >&5
27146echo "${ECHO_T}not found" >&6
27147 fi
27148
27149 fi
27150 fi
27151
27152 if test "$wxUSE_MGL" = 1; then
27153 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27154echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27155 if test "x$MGL_ROOT" = x ; then
27156 echo "$as_me:$LINENO: result: not found" >&5
27157echo "${ECHO_T}not found" >&6
27158 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27159echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27160 { (exit 1); exit 1; }; }
27161 else
27162 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27163echo "${ECHO_T}$MGL_ROOT" >&6
27164 fi
27165
27166 echo "$as_me:$LINENO: checking for libmgl location" >&5
27167echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27168 case "${host}" in
27169 *-*-linux* )
27170 if test "x$wxUSE_SHARED" = xyes ; then
27171 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27172 else
27173 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27174 fi
27175 ;;
27176 *-pc-msdosdjgpp )
27177 mgl_os_candidates="dos32/dj2"
27178 ;;
27179 *)
27180 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27181echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27182 { (exit 1); exit 1; }; }
27183 esac
27184
27185 mgl_lib_type=""
27186 mgl_os=""
27187
27188 for mgl_os_i in $mgl_os_candidates ; do
27189 if test "x$mgl_os" = x ; then
27190 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27191 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27192 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27193 mgl_lib_type=debug
27194 mgl_os=$mgl_os_i
27195 fi
27196 fi
27197 if test "x$mgl_lib_type" = x ; then
27198 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27199 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27200 mgl_lib_type=release
27201 mgl_os=$mgl_os_i
27202 fi
27203 fi
27204 fi
27205 done
27206
27207 if test "x$mgl_os" = x ; then
27208 echo "$as_me:$LINENO: result: not found" >&5
27209echo "${ECHO_T}not found" >&6
27210 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27211echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27212 { (exit 1); exit 1; }; }
27213 fi
27214 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27215echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27216
27217 wxUSE_UNIVERSAL="yes"
27218
27219 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27220 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27221
27222 AFMINSTALL=afminstall
27223 TOOLKIT=MGL
27224 GUIDIST=MGL_DIST
27225 fi
27226
27227 if test "$wxUSE_MICROWIN" = 1; then
27228 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27229echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27230 if test "x$MICROWINDOWS" = x ; then
27231 echo "$as_me:$LINENO: result: not found" >&5
27232echo "${ECHO_T}not found" >&6
27233 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27234echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27235 { (exit 1); exit 1; }; }
27236 else
27237 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27238echo "${ECHO_T}$MICROWINDOWS" >&6
27239 fi
27240
27241 if test -f $MICROWINDOWS/lib/libmwin.a; then
27242 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27243echo "${ECHO_T}MicroWindows' libraries found." >&6
27244 else
27245 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27246echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27247 { (exit 1); exit 1; }; }
27248 fi
27249
27250 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27251 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27252
27253 wxUSE_UNIVERSAL="yes"
27254
27255 AFMINSTALL=afminstall
27256 TOOLKIT=MICROWIN
27257 GUIDIST=MICROWIN_DIST
27258
27259 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27260 fi
27261
74b84332 27262 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
dee1a63f 27263 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27264echo $ECHO_N "checking for X... $ECHO_C" >&6
27265
27266
27267# Check whether --with-x or --without-x was given.
27268if test "${with_x+set}" = set; then
27269 withval="$with_x"
27270
27271fi;
27272# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27273if test "x$with_x" = xno; then
27274 # The user explicitly disabled X.
27275 have_x=disabled
27276else
27277 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27278 # Both variables are already set.
27279 have_x=yes
27280 else
27281 if test "${ac_cv_have_x+set}" = set; then
27282 echo $ECHO_N "(cached) $ECHO_C" >&6
27283else
27284 # One or both of the vars are not set, and there is no cached value.
27285ac_x_includes=no ac_x_libraries=no
27286rm -fr conftest.dir
27287if mkdir conftest.dir; then
27288 cd conftest.dir
27289 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27290 cat >Imakefile <<'_ACEOF'
27291acfindx:
27292 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27293_ACEOF
27294 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27295 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27296 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27297 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27298 for ac_extension in a so sl; do
27299 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27300 test -f $ac_im_libdir/libX11.$ac_extension; then
27301 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27302 fi
27303 done
27304 # Screen out bogus values from the imake configuration. They are
27305 # bogus both because they are the default anyway, and because
27306 # using them would break gcc on systems where it needs fixed includes.
27307 case $ac_im_incroot in
27308 /usr/include) ;;
27309 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27310 esac
27311 case $ac_im_usrlibdir in
27312 /usr/lib | /lib) ;;
27313 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27314 esac
27315 fi
27316 cd ..
27317 rm -fr conftest.dir
27318fi
27319
27320# Standard set of common directories for X headers.
27321# Check X11 before X11Rn because it is often a symlink to the current release.
27322ac_x_header_dirs='
27323/usr/X11/include
27324/usr/X11R6/include
27325/usr/X11R5/include
27326/usr/X11R4/include
27327
27328/usr/include/X11
27329/usr/include/X11R6
27330/usr/include/X11R5
27331/usr/include/X11R4
27332
27333/usr/local/X11/include
27334/usr/local/X11R6/include
27335/usr/local/X11R5/include
27336/usr/local/X11R4/include
27337
27338/usr/local/include/X11
27339/usr/local/include/X11R6
27340/usr/local/include/X11R5
27341/usr/local/include/X11R4
27342
27343/usr/X386/include
27344/usr/x386/include
27345/usr/XFree86/include/X11
27346
27347/usr/include
27348/usr/local/include
27349/usr/unsupported/include
27350/usr/athena/include
27351/usr/local/x11r5/include
27352/usr/lpp/Xamples/include
27353
27354/usr/openwin/include
27355/usr/openwin/share/include'
27356
27357if test "$ac_x_includes" = no; then
dee1a63f 27358 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
27359 # First, try using that file with no special directory specified.
27360 cat >conftest.$ac_ext <<_ACEOF
27361/* confdefs.h. */
27362_ACEOF
27363cat confdefs.h >>conftest.$ac_ext
27364cat >>conftest.$ac_ext <<_ACEOF
27365/* end confdefs.h. */
27366#include <X11/Intrinsic.h>
27367_ACEOF
27368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27370 ac_status=$?
27371 grep -v '^ *+' conftest.er1 >conftest.err
27372 rm -f conftest.er1
27373 cat conftest.err >&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); } >/dev/null; then
27376 if test -s conftest.err; then
27377 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27379 else
27380 ac_cpp_err=
27381 fi
27382else
27383 ac_cpp_err=yes
27384fi
27385if test -z "$ac_cpp_err"; then
27386 # We can compile using X headers with no special include directory.
27387ac_x_includes=
27388else
27389 echo "$as_me: failed program was:" >&5
27390sed 's/^/| /' conftest.$ac_ext >&5
27391
27392 for ac_dir in $ac_x_header_dirs; do
27393 if test -r "$ac_dir/X11/Intrinsic.h"; then
27394 ac_x_includes=$ac_dir
27395 break
27396 fi
27397done
27398fi
27399rm -f conftest.err conftest.$ac_ext
27400fi # $ac_x_includes = no
27401
27402if test "$ac_x_libraries" = no; then
27403 # Check for the libraries.
27404 # See if we find them without any special options.
27405 # Don't add to $LIBS permanently.
27406 ac_save_LIBS=$LIBS
27407 LIBS="-lXt $LIBS"
27408 cat >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#include <X11/Intrinsic.h>
27415int
27416main ()
27417{
27418XtMalloc (0)
27419 ;
27420 return 0;
27421}
27422_ACEOF
27423rm -f conftest.$ac_objext conftest$ac_exeext
27424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27425 (eval $ac_link) 2>conftest.er1
a848cd7e 27426 ac_status=$?
ac1cb8d3
VS
27427 grep -v '^ *+' conftest.er1 >conftest.err
27428 rm -f conftest.er1
27429 cat conftest.err >&5
a848cd7e
SC
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); } &&
dee1a63f
MB
27432 { ac_try='test -z "$ac_c_werror_flag"
27433 || test ! -s conftest.err'
ac1cb8d3
VS
27434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435 (eval $ac_try) 2>&5
27436 ac_status=$?
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); }; } &&
27439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
27445 LIBS=$ac_save_LIBS
27446# We can link X programs with no special library path.
27447ac_x_libraries=
27448else
27449 echo "$as_me: failed program was:" >&5
27450sed 's/^/| /' conftest.$ac_ext >&5
27451
27452LIBS=$ac_save_LIBS
27453for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27454do
27455 # Don't even attempt the hair of trying to link an X program!
27456 for ac_extension in a so sl; do
27457 if test -r $ac_dir/libXt.$ac_extension; then
27458 ac_x_libraries=$ac_dir
27459 break 2
27460 fi
27461 done
27462done
27463fi
ac1cb8d3
VS
27464rm -f conftest.err conftest.$ac_objext \
27465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27466fi # $ac_x_libraries = no
27467
27468if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27469 # Didn't find X anywhere. Cache the known absence of X.
27470 ac_cv_have_x="have_x=no"
27471else
27472 # Record where we found X for the cache.
27473 ac_cv_have_x="have_x=yes \
ac1cb8d3 27474 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27475fi
27476fi
27477
27478 fi
27479 eval "$ac_cv_have_x"
27480fi # $with_x != no
27481
27482if test "$have_x" != yes; then
27483 echo "$as_me:$LINENO: result: $have_x" >&5
27484echo "${ECHO_T}$have_x" >&6
27485 no_x=yes
27486else
27487 # If each of the values was on the command line, it overrides each guess.
27488 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27489 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27490 # Update the cache value to reflect the command line values.
27491 ac_cv_have_x="have_x=yes \
27492 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
dee1a63f
MB
27493 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27494echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
27495fi
27496
27497if test "$no_x" = yes; then
27498 # Not all programs may use this symbol, but it does not hurt to define it.
27499
27500cat >>confdefs.h <<\_ACEOF
27501#define X_DISPLAY_MISSING 1
27502_ACEOF
27503
27504 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27505else
27506 if test -n "$x_includes"; then
27507 X_CFLAGS="$X_CFLAGS -I$x_includes"
27508 fi
27509
27510 # It would also be nice to do this for all -L options, not just this one.
27511 if test -n "$x_libraries"; then
27512 X_LIBS="$X_LIBS -L$x_libraries"
27513 # For Solaris; some versions of Sun CC require a space after -R and
27514 # others require no space. Words are not sufficient . . . .
27515 case `(uname -sr) 2>/dev/null` in
27516 "SunOS 5"*)
27517 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27518echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27519 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27520 cat >conftest.$ac_ext <<_ACEOF
27521/* confdefs.h. */
27522_ACEOF
27523cat confdefs.h >>conftest.$ac_ext
27524cat >>conftest.$ac_ext <<_ACEOF
27525/* end confdefs.h. */
27526
27527int
27528main ()
27529{
27530
27531 ;
27532 return 0;
27533}
27534_ACEOF
27535rm -f conftest.$ac_objext conftest$ac_exeext
27536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27537 (eval $ac_link) 2>conftest.er1
a848cd7e 27538 ac_status=$?
ac1cb8d3
VS
27539 grep -v '^ *+' conftest.er1 >conftest.err
27540 rm -f conftest.er1
27541 cat conftest.err >&5
a848cd7e
SC
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } &&
dee1a63f
MB
27544 { ac_try='test -z "$ac_c_werror_flag"
27545 || test ! -s conftest.err'
ac1cb8d3
VS
27546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547 (eval $ac_try) 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; } &&
27551 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553 (eval $ac_try) 2>&5
27554 ac_status=$?
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; }; then
27557 ac_R_nospace=yes
27558else
27559 echo "$as_me: failed program was:" >&5
27560sed 's/^/| /' conftest.$ac_ext >&5
27561
27562ac_R_nospace=no
27563fi
ac1cb8d3
VS
27564rm -f conftest.err conftest.$ac_objext \
27565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27566 if test $ac_R_nospace = yes; then
27567 echo "$as_me:$LINENO: result: no" >&5
27568echo "${ECHO_T}no" >&6
27569 X_LIBS="$X_LIBS -R$x_libraries"
27570 else
27571 LIBS="$ac_xsave_LIBS -R $x_libraries"
27572 cat >conftest.$ac_ext <<_ACEOF
27573/* confdefs.h. */
27574_ACEOF
27575cat confdefs.h >>conftest.$ac_ext
27576cat >>conftest.$ac_ext <<_ACEOF
27577/* end confdefs.h. */
27578
27579int
27580main ()
27581{
27582
27583 ;
27584 return 0;
27585}
27586_ACEOF
27587rm -f conftest.$ac_objext conftest$ac_exeext
27588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27589 (eval $ac_link) 2>conftest.er1
a848cd7e 27590 ac_status=$?
ac1cb8d3
VS
27591 grep -v '^ *+' conftest.er1 >conftest.err
27592 rm -f conftest.er1
27593 cat conftest.err >&5
a848cd7e
SC
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } &&
dee1a63f
MB
27596 { ac_try='test -z "$ac_c_werror_flag"
27597 || test ! -s conftest.err'
ac1cb8d3
VS
27598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599 (eval $ac_try) 2>&5
27600 ac_status=$?
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); }; } &&
27603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605 (eval $ac_try) 2>&5
27606 ac_status=$?
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); }; }; then
27609 ac_R_space=yes
27610else
27611 echo "$as_me: failed program was:" >&5
27612sed 's/^/| /' conftest.$ac_ext >&5
27613
27614ac_R_space=no
27615fi
ac1cb8d3
VS
27616rm -f conftest.err conftest.$ac_objext \
27617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27618 if test $ac_R_space = yes; then
27619 echo "$as_me:$LINENO: result: yes" >&5
27620echo "${ECHO_T}yes" >&6
27621 X_LIBS="$X_LIBS -R $x_libraries"
27622 else
27623 echo "$as_me:$LINENO: result: neither works" >&5
27624echo "${ECHO_T}neither works" >&6
27625 fi
27626 fi
27627 LIBS=$ac_xsave_LIBS
27628 esac
27629 fi
27630
27631 # Check for system-dependent libraries X programs must link with.
27632 # Do this before checking for the system-independent R6 libraries
27633 # (-lICE), since we may need -lsocket or whatever for X linking.
27634
27635 if test "$ISC" = yes; then
27636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27637 else
27638 # Martyn Johnson says this is needed for Ultrix, if the X
27639 # libraries were built with DECnet support. And Karl Berry says
27640 # the Alpha needs dnet_stub (dnet does not exist).
27641 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27642 cat >conftest.$ac_ext <<_ACEOF
27643/* confdefs.h. */
27644_ACEOF
27645cat confdefs.h >>conftest.$ac_ext
27646cat >>conftest.$ac_ext <<_ACEOF
27647/* end confdefs.h. */
27648
27649/* Override any gcc2 internal prototype to avoid an error. */
27650#ifdef __cplusplus
27651extern "C"
27652#endif
27653/* We use char because int might match the return type of a gcc2
27654 builtin and then its argument prototype would still apply. */
27655char XOpenDisplay ();
27656int
27657main ()
27658{
27659XOpenDisplay ();
27660 ;
27661 return 0;
27662}
27663_ACEOF
27664rm -f conftest.$ac_objext conftest$ac_exeext
27665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27666 (eval $ac_link) 2>conftest.er1
a848cd7e 27667 ac_status=$?
ac1cb8d3
VS
27668 grep -v '^ *+' conftest.er1 >conftest.err
27669 rm -f conftest.er1
27670 cat conftest.err >&5
a848cd7e
SC
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
dee1a63f
MB
27673 { ac_try='test -z "$ac_c_werror_flag"
27674 || test ! -s conftest.err'
ac1cb8d3
VS
27675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; } &&
27680 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27683 ac_status=$?
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
27686 :
27687else
27688 echo "$as_me: failed program was:" >&5
27689sed 's/^/| /' conftest.$ac_ext >&5
27690
27691echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27692echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27693if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27694 echo $ECHO_N "(cached) $ECHO_C" >&6
27695else
27696 ac_check_lib_save_LIBS=$LIBS
27697LIBS="-ldnet $LIBS"
27698cat >conftest.$ac_ext <<_ACEOF
27699/* confdefs.h. */
27700_ACEOF
27701cat confdefs.h >>conftest.$ac_ext
27702cat >>conftest.$ac_ext <<_ACEOF
27703/* end confdefs.h. */
27704
27705/* Override any gcc2 internal prototype to avoid an error. */
27706#ifdef __cplusplus
27707extern "C"
27708#endif
27709/* We use char because int might match the return type of a gcc2
27710 builtin and then its argument prototype would still apply. */
27711char dnet_ntoa ();
27712int
27713main ()
27714{
27715dnet_ntoa ();
27716 ;
27717 return 0;
27718}
27719_ACEOF
27720rm -f conftest.$ac_objext conftest$ac_exeext
27721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27722 (eval $ac_link) 2>conftest.er1
a848cd7e 27723 ac_status=$?
ac1cb8d3
VS
27724 grep -v '^ *+' conftest.er1 >conftest.err
27725 rm -f conftest.er1
27726 cat conftest.err >&5
a848cd7e
SC
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } &&
dee1a63f
MB
27729 { ac_try='test -z "$ac_c_werror_flag"
27730 || test ! -s conftest.err'
ac1cb8d3
VS
27731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27732 (eval $ac_try) 2>&5
27733 ac_status=$?
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); }; } &&
27736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27738 (eval $ac_try) 2>&5
27739 ac_status=$?
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; }; then
27742 ac_cv_lib_dnet_dnet_ntoa=yes
27743else
27744 echo "$as_me: failed program was:" >&5
27745sed 's/^/| /' conftest.$ac_ext >&5
27746
27747ac_cv_lib_dnet_dnet_ntoa=no
27748fi
ac1cb8d3
VS
27749rm -f conftest.err conftest.$ac_objext \
27750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27751LIBS=$ac_check_lib_save_LIBS
27752fi
27753echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27754echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27755if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27756 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27757fi
27758
27759 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27760 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27761echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27762if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27763 echo $ECHO_N "(cached) $ECHO_C" >&6
27764else
27765 ac_check_lib_save_LIBS=$LIBS
27766LIBS="-ldnet_stub $LIBS"
27767cat >conftest.$ac_ext <<_ACEOF
27768/* confdefs.h. */
27769_ACEOF
27770cat confdefs.h >>conftest.$ac_ext
27771cat >>conftest.$ac_ext <<_ACEOF
27772/* end confdefs.h. */
27773
27774/* Override any gcc2 internal prototype to avoid an error. */
27775#ifdef __cplusplus
27776extern "C"
27777#endif
27778/* We use char because int might match the return type of a gcc2
27779 builtin and then its argument prototype would still apply. */
27780char dnet_ntoa ();
27781int
27782main ()
27783{
27784dnet_ntoa ();
27785 ;
27786 return 0;
27787}
27788_ACEOF
27789rm -f conftest.$ac_objext conftest$ac_exeext
27790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27791 (eval $ac_link) 2>conftest.er1
a848cd7e 27792 ac_status=$?
ac1cb8d3
VS
27793 grep -v '^ *+' conftest.er1 >conftest.err
27794 rm -f conftest.er1
27795 cat conftest.err >&5
a848cd7e
SC
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); } &&
dee1a63f
MB
27798 { ac_try='test -z "$ac_c_werror_flag"
27799 || test ! -s conftest.err'
ac1cb8d3
VS
27800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27801 (eval $ac_try) 2>&5
27802 ac_status=$?
27803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); }; } &&
27805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27807 (eval $ac_try) 2>&5
27808 ac_status=$?
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; }; then
27811 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27812else
27813 echo "$as_me: failed program was:" >&5
27814sed 's/^/| /' conftest.$ac_ext >&5
27815
27816ac_cv_lib_dnet_stub_dnet_ntoa=no
27817fi
ac1cb8d3
VS
27818rm -f conftest.err conftest.$ac_objext \
27819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27820LIBS=$ac_check_lib_save_LIBS
27821fi
27822echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27823echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27824if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27825 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27826fi
27827
27828 fi
27829fi
ac1cb8d3
VS
27830rm -f conftest.err conftest.$ac_objext \
27831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27832 LIBS="$ac_xsave_LIBS"
27833
27834 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27835 # to get the SysV transport functions.
27836 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27837 # needs -lnsl.
27838 # The nsl library prevents programs from opening the X display
27839 # on Irix 5.2, according to T.E. Dickey.
27840 # The functions gethostbyname, getservbyname, and inet_addr are
27841 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27842 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27843echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27844if test "${ac_cv_func_gethostbyname+set}" = set; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27846else
27847 cat >conftest.$ac_ext <<_ACEOF
27848/* confdefs.h. */
27849_ACEOF
27850cat confdefs.h >>conftest.$ac_ext
27851cat >>conftest.$ac_ext <<_ACEOF
27852/* end confdefs.h. */
ac1cb8d3
VS
27853/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27855#define gethostbyname innocuous_gethostbyname
27856
a848cd7e
SC
27857/* System header to define __stub macros and hopefully few prototypes,
27858 which can conflict with char gethostbyname (); below.
27859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27860 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27861
a848cd7e
SC
27862#ifdef __STDC__
27863# include <limits.h>
27864#else
27865# include <assert.h>
27866#endif
ac1cb8d3
VS
27867
27868#undef gethostbyname
27869
a848cd7e
SC
27870/* Override any gcc2 internal prototype to avoid an error. */
27871#ifdef __cplusplus
27872extern "C"
27873{
27874#endif
27875/* We use char because int might match the return type of a gcc2
27876 builtin and then its argument prototype would still apply. */
27877char gethostbyname ();
27878/* The GNU C library defines this for functions which it implements
27879 to always fail with ENOSYS. Some functions are actually named
27880 something starting with __ and the normal name is an alias. */
27881#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27882choke me
27883#else
27884char (*f) () = gethostbyname;
27885#endif
27886#ifdef __cplusplus
27887}
27888#endif
27889
27890int
27891main ()
27892{
27893return f != gethostbyname;
27894 ;
27895 return 0;
27896}
27897_ACEOF
27898rm -f conftest.$ac_objext conftest$ac_exeext
27899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27900 (eval $ac_link) 2>conftest.er1
a848cd7e 27901 ac_status=$?
ac1cb8d3
VS
27902 grep -v '^ *+' conftest.er1 >conftest.err
27903 rm -f conftest.er1
27904 cat conftest.err >&5
a848cd7e
SC
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); } &&
dee1a63f
MB
27907 { ac_try='test -z "$ac_c_werror_flag"
27908 || test ! -s conftest.err'
ac1cb8d3
VS
27909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27910 (eval $ac_try) 2>&5
27911 ac_status=$?
27912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913 (exit $ac_status); }; } &&
27914 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27916 (eval $ac_try) 2>&5
27917 ac_status=$?
27918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); }; }; then
27920 ac_cv_func_gethostbyname=yes
27921else
27922 echo "$as_me: failed program was:" >&5
27923sed 's/^/| /' conftest.$ac_ext >&5
27924
27925ac_cv_func_gethostbyname=no
27926fi
ac1cb8d3
VS
27927rm -f conftest.err conftest.$ac_objext \
27928 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27929fi
27930echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27931echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27932
27933 if test $ac_cv_func_gethostbyname = no; then
27934 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27935echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27936if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27938else
27939 ac_check_lib_save_LIBS=$LIBS
27940LIBS="-lnsl $LIBS"
27941cat >conftest.$ac_ext <<_ACEOF
27942/* confdefs.h. */
27943_ACEOF
27944cat confdefs.h >>conftest.$ac_ext
27945cat >>conftest.$ac_ext <<_ACEOF
27946/* end confdefs.h. */
27947
27948/* Override any gcc2 internal prototype to avoid an error. */
27949#ifdef __cplusplus
27950extern "C"
27951#endif
27952/* We use char because int might match the return type of a gcc2
27953 builtin and then its argument prototype would still apply. */
27954char gethostbyname ();
27955int
27956main ()
27957{
27958gethostbyname ();
27959 ;
27960 return 0;
27961}
27962_ACEOF
27963rm -f conftest.$ac_objext conftest$ac_exeext
27964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
27965 (eval $ac_link) 2>conftest.er1
27966 ac_status=$?
27967 grep -v '^ *+' conftest.er1 >conftest.err
27968 rm -f conftest.er1
27969 cat conftest.err >&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } &&
dee1a63f
MB
27972 { ac_try='test -z "$ac_c_werror_flag"
27973 || test ! -s conftest.err'
ac1cb8d3
VS
27974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975 (eval $ac_try) 2>&5
27976 ac_status=$?
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; } &&
27979 { ac_try='test -s conftest$ac_exeext'
27980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981 (eval $ac_try) 2>&5
27982 ac_status=$?
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); }; }; then
27985 ac_cv_lib_nsl_gethostbyname=yes
27986else
27987 echo "$as_me: failed program was:" >&5
27988sed 's/^/| /' conftest.$ac_ext >&5
27989
27990ac_cv_lib_nsl_gethostbyname=no
27991fi
27992rm -f conftest.err conftest.$ac_objext \
27993 conftest$ac_exeext conftest.$ac_ext
27994LIBS=$ac_check_lib_save_LIBS
27995fi
27996echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27997echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27998if test $ac_cv_lib_nsl_gethostbyname = yes; then
27999 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28000fi
28001
28002 if test $ac_cv_lib_nsl_gethostbyname = no; then
28003 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28004echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28005if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28006 echo $ECHO_N "(cached) $ECHO_C" >&6
28007else
28008 ac_check_lib_save_LIBS=$LIBS
28009LIBS="-lbsd $LIBS"
28010cat >conftest.$ac_ext <<_ACEOF
28011/* confdefs.h. */
28012_ACEOF
28013cat confdefs.h >>conftest.$ac_ext
28014cat >>conftest.$ac_ext <<_ACEOF
28015/* end confdefs.h. */
28016
28017/* Override any gcc2 internal prototype to avoid an error. */
28018#ifdef __cplusplus
28019extern "C"
28020#endif
28021/* We use char because int might match the return type of a gcc2
28022 builtin and then its argument prototype would still apply. */
28023char gethostbyname ();
28024int
28025main ()
28026{
28027gethostbyname ();
28028 ;
28029 return 0;
28030}
28031_ACEOF
28032rm -f conftest.$ac_objext conftest$ac_exeext
28033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28034 (eval $ac_link) 2>conftest.er1
a848cd7e 28035 ac_status=$?
ac1cb8d3
VS
28036 grep -v '^ *+' conftest.er1 >conftest.err
28037 rm -f conftest.er1
28038 cat conftest.err >&5
a848cd7e
SC
28039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 (exit $ac_status); } &&
dee1a63f
MB
28041 { ac_try='test -z "$ac_c_werror_flag"
28042 || test ! -s conftest.err'
a848cd7e
SC
28043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28044 (eval $ac_try) 2>&5
28045 ac_status=$?
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28047 (exit $ac_status); }; } &&
28048 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28050 (eval $ac_try) 2>&5
28051 ac_status=$?
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; }; then
28054 ac_cv_lib_bsd_gethostbyname=yes
28055else
28056 echo "$as_me: failed program was:" >&5
28057sed 's/^/| /' conftest.$ac_ext >&5
28058
28059ac_cv_lib_bsd_gethostbyname=no
28060fi
ac1cb8d3
VS
28061rm -f conftest.err conftest.$ac_objext \
28062 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28063LIBS=$ac_check_lib_save_LIBS
28064fi
28065echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28066echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28067if test $ac_cv_lib_bsd_gethostbyname = yes; then
28068 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28069fi
28070
28071 fi
28072 fi
28073
28074 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28075 # socket/setsockopt and other routines are undefined under SCO ODT
28076 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28077 # on later versions), says Simon Leinen: it contains gethostby*
28078 # variants that don't use the name server (or something). -lsocket
28079 # must be given before -lnsl if both are needed. We assume that
28080 # if connect needs -lnsl, so does gethostbyname.
28081 echo "$as_me:$LINENO: checking for connect" >&5
28082echo $ECHO_N "checking for connect... $ECHO_C" >&6
28083if test "${ac_cv_func_connect+set}" = set; then
28084 echo $ECHO_N "(cached) $ECHO_C" >&6
28085else
28086 cat >conftest.$ac_ext <<_ACEOF
28087/* confdefs.h. */
28088_ACEOF
28089cat confdefs.h >>conftest.$ac_ext
28090cat >>conftest.$ac_ext <<_ACEOF
28091/* end confdefs.h. */
ac1cb8d3
VS
28092/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28094#define connect innocuous_connect
28095
a848cd7e
SC
28096/* System header to define __stub macros and hopefully few prototypes,
28097 which can conflict with char connect (); below.
28098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28099 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28100
a848cd7e
SC
28101#ifdef __STDC__
28102# include <limits.h>
28103#else
28104# include <assert.h>
28105#endif
ac1cb8d3
VS
28106
28107#undef connect
28108
a848cd7e
SC
28109/* Override any gcc2 internal prototype to avoid an error. */
28110#ifdef __cplusplus
28111extern "C"
28112{
28113#endif
28114/* We use char because int might match the return type of a gcc2
28115 builtin and then its argument prototype would still apply. */
28116char connect ();
28117/* The GNU C library defines this for functions which it implements
28118 to always fail with ENOSYS. Some functions are actually named
28119 something starting with __ and the normal name is an alias. */
28120#if defined (__stub_connect) || defined (__stub___connect)
28121choke me
28122#else
28123char (*f) () = connect;
28124#endif
28125#ifdef __cplusplus
28126}
28127#endif
28128
28129int
28130main ()
28131{
28132return f != connect;
28133 ;
28134 return 0;
28135}
28136_ACEOF
28137rm -f conftest.$ac_objext conftest$ac_exeext
28138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28139 (eval $ac_link) 2>conftest.er1
a848cd7e 28140 ac_status=$?
ac1cb8d3
VS
28141 grep -v '^ *+' conftest.er1 >conftest.err
28142 rm -f conftest.er1
28143 cat conftest.err >&5
a848cd7e
SC
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } &&
dee1a63f
MB
28146 { ac_try='test -z "$ac_c_werror_flag"
28147 || test ! -s conftest.err'
ac1cb8d3
VS
28148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149 (eval $ac_try) 2>&5
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; } &&
28153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28155 (eval $ac_try) 2>&5
28156 ac_status=$?
28157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158 (exit $ac_status); }; }; then
28159 ac_cv_func_connect=yes
28160else
28161 echo "$as_me: failed program was:" >&5
28162sed 's/^/| /' conftest.$ac_ext >&5
28163
28164ac_cv_func_connect=no
28165fi
ac1cb8d3
VS
28166rm -f conftest.err conftest.$ac_objext \
28167 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28168fi
28169echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28170echo "${ECHO_T}$ac_cv_func_connect" >&6
28171
28172 if test $ac_cv_func_connect = no; then
28173 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28174echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28175if test "${ac_cv_lib_socket_connect+set}" = set; then
28176 echo $ECHO_N "(cached) $ECHO_C" >&6
28177else
28178 ac_check_lib_save_LIBS=$LIBS
28179LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28180cat >conftest.$ac_ext <<_ACEOF
28181/* confdefs.h. */
28182_ACEOF
28183cat confdefs.h >>conftest.$ac_ext
28184cat >>conftest.$ac_ext <<_ACEOF
28185/* end confdefs.h. */
28186
28187/* Override any gcc2 internal prototype to avoid an error. */
28188#ifdef __cplusplus
28189extern "C"
28190#endif
28191/* We use char because int might match the return type of a gcc2
28192 builtin and then its argument prototype would still apply. */
28193char connect ();
28194int
28195main ()
28196{
28197connect ();
28198 ;
28199 return 0;
28200}
28201_ACEOF
28202rm -f conftest.$ac_objext conftest$ac_exeext
28203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28204 (eval $ac_link) 2>conftest.er1
a848cd7e 28205 ac_status=$?
ac1cb8d3
VS
28206 grep -v '^ *+' conftest.er1 >conftest.err
28207 rm -f conftest.er1
28208 cat conftest.err >&5
a848cd7e
SC
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } &&
dee1a63f
MB
28211 { ac_try='test -z "$ac_c_werror_flag"
28212 || test ! -s conftest.err'
ac1cb8d3
VS
28213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; } &&
28218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28220 (eval $ac_try) 2>&5
28221 ac_status=$?
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); }; }; then
28224 ac_cv_lib_socket_connect=yes
28225else
28226 echo "$as_me: failed program was:" >&5
28227sed 's/^/| /' conftest.$ac_ext >&5
28228
28229ac_cv_lib_socket_connect=no
28230fi
ac1cb8d3
VS
28231rm -f conftest.err conftest.$ac_objext \
28232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28233LIBS=$ac_check_lib_save_LIBS
28234fi
28235echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28236echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28237if test $ac_cv_lib_socket_connect = yes; then
28238 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28239fi
28240
28241 fi
28242
28243 # Guillermo Gomez says -lposix is necessary on A/UX.
28244 echo "$as_me:$LINENO: checking for remove" >&5
28245echo $ECHO_N "checking for remove... $ECHO_C" >&6
28246if test "${ac_cv_func_remove+set}" = set; then
28247 echo $ECHO_N "(cached) $ECHO_C" >&6
28248else
28249 cat >conftest.$ac_ext <<_ACEOF
28250/* confdefs.h. */
28251_ACEOF
28252cat confdefs.h >>conftest.$ac_ext
28253cat >>conftest.$ac_ext <<_ACEOF
28254/* end confdefs.h. */
ac1cb8d3
VS
28255/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28257#define remove innocuous_remove
28258
a848cd7e
SC
28259/* System header to define __stub macros and hopefully few prototypes,
28260 which can conflict with char remove (); below.
28261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28262 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28263
a848cd7e
SC
28264#ifdef __STDC__
28265# include <limits.h>
28266#else
28267# include <assert.h>
28268#endif
ac1cb8d3
VS
28269
28270#undef remove
28271
a848cd7e
SC
28272/* Override any gcc2 internal prototype to avoid an error. */
28273#ifdef __cplusplus
28274extern "C"
28275{
28276#endif
28277/* We use char because int might match the return type of a gcc2
28278 builtin and then its argument prototype would still apply. */
28279char remove ();
28280/* The GNU C library defines this for functions which it implements
28281 to always fail with ENOSYS. Some functions are actually named
28282 something starting with __ and the normal name is an alias. */
28283#if defined (__stub_remove) || defined (__stub___remove)
28284choke me
28285#else
28286char (*f) () = remove;
28287#endif
28288#ifdef __cplusplus
28289}
28290#endif
28291
28292int
28293main ()
28294{
28295return f != remove;
28296 ;
28297 return 0;
28298}
28299_ACEOF
28300rm -f conftest.$ac_objext conftest$ac_exeext
28301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28302 (eval $ac_link) 2>conftest.er1
a848cd7e 28303 ac_status=$?
ac1cb8d3
VS
28304 grep -v '^ *+' conftest.er1 >conftest.err
28305 rm -f conftest.er1
28306 cat conftest.err >&5
a848cd7e
SC
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); } &&
dee1a63f
MB
28309 { ac_try='test -z "$ac_c_werror_flag"
28310 || test ! -s conftest.err'
ac1cb8d3
VS
28311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312 (eval $ac_try) 2>&5
28313 ac_status=$?
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; } &&
28316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28318 (eval $ac_try) 2>&5
28319 ac_status=$?
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; }; then
28322 ac_cv_func_remove=yes
28323else
28324 echo "$as_me: failed program was:" >&5
28325sed 's/^/| /' conftest.$ac_ext >&5
28326
28327ac_cv_func_remove=no
28328fi
ac1cb8d3
VS
28329rm -f conftest.err conftest.$ac_objext \
28330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28331fi
28332echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28333echo "${ECHO_T}$ac_cv_func_remove" >&6
28334
28335 if test $ac_cv_func_remove = no; then
28336 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28337echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28338if test "${ac_cv_lib_posix_remove+set}" = set; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28340else
28341 ac_check_lib_save_LIBS=$LIBS
28342LIBS="-lposix $LIBS"
28343cat >conftest.$ac_ext <<_ACEOF
28344/* confdefs.h. */
28345_ACEOF
28346cat confdefs.h >>conftest.$ac_ext
28347cat >>conftest.$ac_ext <<_ACEOF
28348/* end confdefs.h. */
28349
28350/* Override any gcc2 internal prototype to avoid an error. */
28351#ifdef __cplusplus
28352extern "C"
28353#endif
28354/* We use char because int might match the return type of a gcc2
28355 builtin and then its argument prototype would still apply. */
28356char remove ();
28357int
28358main ()
28359{
28360remove ();
28361 ;
28362 return 0;
28363}
28364_ACEOF
28365rm -f conftest.$ac_objext conftest$ac_exeext
28366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28367 (eval $ac_link) 2>conftest.er1
a848cd7e 28368 ac_status=$?
ac1cb8d3
VS
28369 grep -v '^ *+' conftest.er1 >conftest.err
28370 rm -f conftest.er1
28371 cat conftest.err >&5
a848cd7e
SC
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); } &&
dee1a63f
MB
28374 { ac_try='test -z "$ac_c_werror_flag"
28375 || test ! -s conftest.err'
ac1cb8d3
VS
28376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377 (eval $ac_try) 2>&5
28378 ac_status=$?
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; } &&
28381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28383 (eval $ac_try) 2>&5
28384 ac_status=$?
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); }; }; then
28387 ac_cv_lib_posix_remove=yes
28388else
28389 echo "$as_me: failed program was:" >&5
28390sed 's/^/| /' conftest.$ac_ext >&5
28391
28392ac_cv_lib_posix_remove=no
28393fi
ac1cb8d3
VS
28394rm -f conftest.err conftest.$ac_objext \
28395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28396LIBS=$ac_check_lib_save_LIBS
28397fi
28398echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28399echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28400if test $ac_cv_lib_posix_remove = yes; then
28401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28402fi
28403
28404 fi
28405
28406 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28407 echo "$as_me:$LINENO: checking for shmat" >&5
28408echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28409if test "${ac_cv_func_shmat+set}" = set; then
28410 echo $ECHO_N "(cached) $ECHO_C" >&6
28411else
28412 cat >conftest.$ac_ext <<_ACEOF
28413/* confdefs.h. */
28414_ACEOF
28415cat confdefs.h >>conftest.$ac_ext
28416cat >>conftest.$ac_ext <<_ACEOF
28417/* end confdefs.h. */
ac1cb8d3
VS
28418/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28420#define shmat innocuous_shmat
28421
a848cd7e
SC
28422/* System header to define __stub macros and hopefully few prototypes,
28423 which can conflict with char shmat (); below.
28424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28425 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28426
a848cd7e
SC
28427#ifdef __STDC__
28428# include <limits.h>
28429#else
28430# include <assert.h>
28431#endif
ac1cb8d3
VS
28432
28433#undef shmat
28434
a848cd7e
SC
28435/* Override any gcc2 internal prototype to avoid an error. */
28436#ifdef __cplusplus
28437extern "C"
28438{
28439#endif
28440/* We use char because int might match the return type of a gcc2
28441 builtin and then its argument prototype would still apply. */
28442char shmat ();
28443/* The GNU C library defines this for functions which it implements
28444 to always fail with ENOSYS. Some functions are actually named
28445 something starting with __ and the normal name is an alias. */
28446#if defined (__stub_shmat) || defined (__stub___shmat)
28447choke me
28448#else
28449char (*f) () = shmat;
28450#endif
28451#ifdef __cplusplus
28452}
28453#endif
28454
28455int
28456main ()
28457{
28458return f != shmat;
28459 ;
28460 return 0;
28461}
28462_ACEOF
28463rm -f conftest.$ac_objext conftest$ac_exeext
28464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28465 (eval $ac_link) 2>conftest.er1
a848cd7e 28466 ac_status=$?
ac1cb8d3
VS
28467 grep -v '^ *+' conftest.er1 >conftest.err
28468 rm -f conftest.er1
28469 cat conftest.err >&5
a848cd7e
SC
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } &&
dee1a63f
MB
28472 { ac_try='test -z "$ac_c_werror_flag"
28473 || test ! -s conftest.err'
ac1cb8d3
VS
28474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28475 (eval $ac_try) 2>&5
28476 ac_status=$?
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); }; } &&
28479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28481 (eval $ac_try) 2>&5
28482 ac_status=$?
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); }; }; then
28485 ac_cv_func_shmat=yes
28486else
28487 echo "$as_me: failed program was:" >&5
28488sed 's/^/| /' conftest.$ac_ext >&5
28489
28490ac_cv_func_shmat=no
28491fi
ac1cb8d3
VS
28492rm -f conftest.err conftest.$ac_objext \
28493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28494fi
28495echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28496echo "${ECHO_T}$ac_cv_func_shmat" >&6
28497
28498 if test $ac_cv_func_shmat = no; then
28499 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28500echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28501if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28502 echo $ECHO_N "(cached) $ECHO_C" >&6
28503else
28504 ac_check_lib_save_LIBS=$LIBS
28505LIBS="-lipc $LIBS"
28506cat >conftest.$ac_ext <<_ACEOF
28507/* confdefs.h. */
28508_ACEOF
28509cat confdefs.h >>conftest.$ac_ext
28510cat >>conftest.$ac_ext <<_ACEOF
28511/* end confdefs.h. */
28512
28513/* Override any gcc2 internal prototype to avoid an error. */
28514#ifdef __cplusplus
28515extern "C"
28516#endif
28517/* We use char because int might match the return type of a gcc2
28518 builtin and then its argument prototype would still apply. */
28519char shmat ();
28520int
28521main ()
28522{
28523shmat ();
28524 ;
28525 return 0;
28526}
28527_ACEOF
28528rm -f conftest.$ac_objext conftest$ac_exeext
28529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28530 (eval $ac_link) 2>conftest.er1
a848cd7e 28531 ac_status=$?
ac1cb8d3
VS
28532 grep -v '^ *+' conftest.er1 >conftest.err
28533 rm -f conftest.er1
28534 cat conftest.err >&5
a848cd7e
SC
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536 (exit $ac_status); } &&
dee1a63f
MB
28537 { ac_try='test -z "$ac_c_werror_flag"
28538 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
28544 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28546 (eval $ac_try) 2>&5
28547 ac_status=$?
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; }; then
28550 ac_cv_lib_ipc_shmat=yes
28551else
28552 echo "$as_me: failed program was:" >&5
28553sed 's/^/| /' conftest.$ac_ext >&5
28554
28555ac_cv_lib_ipc_shmat=no
28556fi
ac1cb8d3
VS
28557rm -f conftest.err conftest.$ac_objext \
28558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28559LIBS=$ac_check_lib_save_LIBS
28560fi
28561echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28562echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28563if test $ac_cv_lib_ipc_shmat = yes; then
28564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28565fi
28566
28567 fi
28568 fi
28569
28570 # Check for libraries that X11R6 Xt/Xaw programs need.
28571 ac_save_LDFLAGS=$LDFLAGS
28572 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28573 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28574 # check for ICE first), but we must link in the order -lSM -lICE or
28575 # we get undefined symbols. So assume we have SM if we have ICE.
28576 # These have to be linked with before -lX11, unlike the other
28577 # libraries we check for below, so use a different variable.
28578 # John Interrante, Karl Berry
28579 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28580echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28581if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28582 echo $ECHO_N "(cached) $ECHO_C" >&6
28583else
28584 ac_check_lib_save_LIBS=$LIBS
28585LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28586cat >conftest.$ac_ext <<_ACEOF
28587/* confdefs.h. */
28588_ACEOF
28589cat confdefs.h >>conftest.$ac_ext
28590cat >>conftest.$ac_ext <<_ACEOF
28591/* end confdefs.h. */
28592
28593/* Override any gcc2 internal prototype to avoid an error. */
28594#ifdef __cplusplus
28595extern "C"
28596#endif
28597/* We use char because int might match the return type of a gcc2
28598 builtin and then its argument prototype would still apply. */
28599char IceConnectionNumber ();
28600int
28601main ()
28602{
28603IceConnectionNumber ();
28604 ;
28605 return 0;
28606}
28607_ACEOF
28608rm -f conftest.$ac_objext conftest$ac_exeext
28609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28610 (eval $ac_link) 2>conftest.er1
a848cd7e 28611 ac_status=$?
ac1cb8d3
VS
28612 grep -v '^ *+' conftest.er1 >conftest.err
28613 rm -f conftest.er1
28614 cat conftest.err >&5
a848cd7e
SC
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } &&
dee1a63f
MB
28617 { ac_try='test -z "$ac_c_werror_flag"
28618 || test ! -s conftest.err'
ac1cb8d3
VS
28619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620 (eval $ac_try) 2>&5
28621 ac_status=$?
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; } &&
28624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28626 (eval $ac_try) 2>&5
28627 ac_status=$?
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; }; then
28630 ac_cv_lib_ICE_IceConnectionNumber=yes
28631else
28632 echo "$as_me: failed program was:" >&5
28633sed 's/^/| /' conftest.$ac_ext >&5
28634
28635ac_cv_lib_ICE_IceConnectionNumber=no
28636fi
ac1cb8d3
VS
28637rm -f conftest.err conftest.$ac_objext \
28638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28639LIBS=$ac_check_lib_save_LIBS
28640fi
28641echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28642echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28643if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28644 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28645fi
28646
28647 LDFLAGS=$ac_save_LDFLAGS
28648
28649fi
28650
28651
28652 if test "$no_x" = "yes"; then
89d90d6d
VZ
28653 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28654echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28655 { (exit 1); exit 1; }; }
a848cd7e
SC
28656 fi
28657
74b84332
VS
28658 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28659 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28660 AFMINSTALL=afminstall
28661 COMPILED_X_PROGRAM=0
28662
74b84332
VS
28663 fi
28664
28665 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28666 if test "$wxUSE_NANOX" = "yes"; then
28667 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28668echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28669 if test "x$MICROWIN" = x ; then
28670 echo "$as_me:$LINENO: result: not found" >&5
28671echo "${ECHO_T}not found" >&6
28672 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28673echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28674 { (exit 1); exit 1; }; }
28675 else
28676 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28677echo "${ECHO_T}$MICROWIN" >&6
28678 cat >>confdefs.h <<\_ACEOF
28679#define wxUSE_NANOX 1
28680_ACEOF
28681
28682 fi
28683 fi
28684
28685 if test "$wxUSE_UNICODE" = "yes"; then
28686
28687 succeeded=no
28688
28689 if test -z "$PKG_CONFIG"; then
28690 # Extract the first word of "pkg-config", so it can be a program name with args.
28691set dummy pkg-config; ac_word=$2
28692echo "$as_me:$LINENO: checking for $ac_word" >&5
28693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28694if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28695 echo $ECHO_N "(cached) $ECHO_C" >&6
28696else
28697 case $PKG_CONFIG in
28698 [\\/]* | ?:[\\/]*)
28699 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28700 ;;
28701 *)
28702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28703for as_dir in $PATH
28704do
28705 IFS=$as_save_IFS
28706 test -z "$as_dir" && as_dir=.
28707 for ac_exec_ext in '' $ac_executable_extensions; do
28708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28709 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28711 break 2
28712 fi
28713done
28714done
28715
28716 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28717 ;;
28718esac
28719fi
28720PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28721
28722if test -n "$PKG_CONFIG"; then
28723 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28724echo "${ECHO_T}$PKG_CONFIG" >&6
28725else
28726 echo "$as_me:$LINENO: result: no" >&5
28727echo "${ECHO_T}no" >&6
28728fi
28729
28730 fi
28731
28732 if test "$PKG_CONFIG" = "no" ; then
28733 echo "*** The pkg-config script could not be found. Make sure it is"
28734 echo "*** in your path, or set the PKG_CONFIG environment variable"
28735 echo "*** to the full path to pkg-config."
28736 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28737 else
28738 PKG_CONFIG_MIN_VERSION=0.9.0
28739 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28740 echo "$as_me:$LINENO: checking for pangox" >&5
28741echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28742
28743 if $PKG_CONFIG --exists "pangox" ; then
28744 echo "$as_me:$LINENO: result: yes" >&5
28745echo "${ECHO_T}yes" >&6
28746 succeeded=yes
28747
28748 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28749echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28750 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28751 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28752echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28753
28754 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28755echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28756 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28757 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28758echo "${ECHO_T}$PANGOX_LIBS" >&6
28759 else
28760 PANGOX_CFLAGS=""
28761 PANGOX_LIBS=""
28762 ## If we have a custom action on failure, don't print errors, but
28763 ## do set a variable so people can do so.
28764 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28765
28766 fi
28767
28768
28769
28770 else
28771 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28772 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28773 fi
28774 fi
28775
28776 if test $succeeded = yes; then
28777
28778 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28779 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28780
28781 else
28782
28783 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28784echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28785 { (exit 1); exit 1; }; }
28786
28787
28788 fi
28789
28790
28791 succeeded=no
28792
28793 if test -z "$PKG_CONFIG"; then
28794 # Extract the first word of "pkg-config", so it can be a program name with args.
28795set dummy pkg-config; ac_word=$2
28796echo "$as_me:$LINENO: checking for $ac_word" >&5
28797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28798if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28799 echo $ECHO_N "(cached) $ECHO_C" >&6
28800else
28801 case $PKG_CONFIG in
28802 [\\/]* | ?:[\\/]*)
28803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28804 ;;
28805 *)
28806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28807for as_dir in $PATH
28808do
28809 IFS=$as_save_IFS
28810 test -z "$as_dir" && as_dir=.
28811 for ac_exec_ext in '' $ac_executable_extensions; do
28812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28815 break 2
28816 fi
28817done
28818done
28819
28820 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28821 ;;
28822esac
28823fi
28824PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28825
28826if test -n "$PKG_CONFIG"; then
28827 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28828echo "${ECHO_T}$PKG_CONFIG" >&6
28829else
28830 echo "$as_me:$LINENO: result: no" >&5
28831echo "${ECHO_T}no" >&6
28832fi
28833
28834 fi
28835
28836 if test "$PKG_CONFIG" = "no" ; then
28837 echo "*** The pkg-config script could not be found. Make sure it is"
28838 echo "*** in your path, or set the PKG_CONFIG environment variable"
28839 echo "*** to the full path to pkg-config."
28840 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28841 else
28842 PKG_CONFIG_MIN_VERSION=0.9.0
28843 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28844 echo "$as_me:$LINENO: checking for pangoft2" >&5
28845echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28846
28847 if $PKG_CONFIG --exists "pangoft2" ; then
28848 echo "$as_me:$LINENO: result: yes" >&5
28849echo "${ECHO_T}yes" >&6
28850 succeeded=yes
28851
28852 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28853echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28854 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28855 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28856echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28857
28858 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28859echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28860 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28861 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28862echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28863 else
28864 PANGOFT2_CFLAGS=""
28865 PANGOFT2_LIBS=""
28866 ## If we have a custom action on failure, don't print errors, but
28867 ## do set a variable so people can do so.
28868 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28869
28870 fi
28871
28872
28873
28874 else
28875 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28876 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28877 fi
28878 fi
28879
28880 if test $succeeded = yes; then
28881
28882 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28883 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28884
28885 else
28886
28887 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28888echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28889 wxUSE_PRINTING_ARCHITECTURE="no"
28890
28891
28892 fi
28893
28894
28895 succeeded=no
28896
28897 if test -z "$PKG_CONFIG"; then
28898 # Extract the first word of "pkg-config", so it can be a program name with args.
28899set dummy pkg-config; ac_word=$2
28900echo "$as_me:$LINENO: checking for $ac_word" >&5
28901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28902if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28903 echo $ECHO_N "(cached) $ECHO_C" >&6
28904else
28905 case $PKG_CONFIG in
28906 [\\/]* | ?:[\\/]*)
28907 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28908 ;;
28909 *)
28910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28911for as_dir in $PATH
28912do
28913 IFS=$as_save_IFS
28914 test -z "$as_dir" && as_dir=.
28915 for ac_exec_ext in '' $ac_executable_extensions; do
28916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28917 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28919 break 2
28920 fi
28921done
28922done
28923
28924 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28925 ;;
28926esac
28927fi
28928PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28929
28930if test -n "$PKG_CONFIG"; then
28931 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28932echo "${ECHO_T}$PKG_CONFIG" >&6
28933else
28934 echo "$as_me:$LINENO: result: no" >&5
28935echo "${ECHO_T}no" >&6
28936fi
28937
28938 fi
28939
28940 if test "$PKG_CONFIG" = "no" ; then
28941 echo "*** The pkg-config script could not be found. Make sure it is"
28942 echo "*** in your path, or set the PKG_CONFIG environment variable"
28943 echo "*** to the full path to pkg-config."
28944 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28945 else
28946 PKG_CONFIG_MIN_VERSION=0.9.0
28947 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28948 echo "$as_me:$LINENO: checking for pangoxft" >&5
28949echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28950
28951 if $PKG_CONFIG --exists "pangoxft" ; then
28952 echo "$as_me:$LINENO: result: yes" >&5
28953echo "${ECHO_T}yes" >&6
28954 succeeded=yes
28955
28956 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28957echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28958 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28959 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28960echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28961
28962 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28963echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28964 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28965 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28966echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28967 else
28968 PANGOXFT_CFLAGS=""
28969 PANGOXFT_LIBS=""
28970 ## If we have a custom action on failure, don't print errors, but
28971 ## do set a variable so people can do so.
28972 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
28973
28974 fi
28975
28976
28977
28978 else
28979 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28980 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28981 fi
28982 fi
28983
28984 if test $succeeded = yes; then
28985
4ae1af05
MB
28986 cat >>confdefs.h <<\_ACEOF
28987#define HAVE_PANGO_XFT 1
28988_ACEOF
28989
a848cd7e
SC
28990 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
28991 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
28992
28993 else
28994
28995 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
28996echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
28997
28998
28999 fi
29000
304205f1
VS
29001 save_CFLAGS="$CFLAGS"
29002 save_LIBS="$LIBS"
29003 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
29004 LIBS="$LIBS $PANGOX_LIBS"
29005
29006for ac_func in pango_font_family_is_monospace
29007do
29008as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29009echo "$as_me:$LINENO: checking for $ac_func" >&5
29010echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29011if eval "test \"\${$as_ac_var+set}\" = set"; then
29012 echo $ECHO_N "(cached) $ECHO_C" >&6
29013else
29014 cat >conftest.$ac_ext <<_ACEOF
29015/* confdefs.h. */
29016_ACEOF
29017cat confdefs.h >>conftest.$ac_ext
29018cat >>conftest.$ac_ext <<_ACEOF
29019/* end confdefs.h. */
29020/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29022#define $ac_func innocuous_$ac_func
29023
29024/* System header to define __stub macros and hopefully few prototypes,
29025 which can conflict with char $ac_func (); below.
29026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29027 <limits.h> exists even on freestanding compilers. */
29028
29029#ifdef __STDC__
29030# include <limits.h>
29031#else
29032# include <assert.h>
29033#endif
29034
29035#undef $ac_func
29036
29037/* Override any gcc2 internal prototype to avoid an error. */
29038#ifdef __cplusplus
29039extern "C"
29040{
29041#endif
29042/* We use char because int might match the return type of a gcc2
29043 builtin and then its argument prototype would still apply. */
29044char $ac_func ();
29045/* The GNU C library defines this for functions which it implements
29046 to always fail with ENOSYS. Some functions are actually named
29047 something starting with __ and the normal name is an alias. */
29048#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29049choke me
29050#else
29051char (*f) () = $ac_func;
29052#endif
29053#ifdef __cplusplus
29054}
29055#endif
29056
29057int
29058main ()
29059{
29060return f != $ac_func;
29061 ;
29062 return 0;
29063}
29064_ACEOF
29065rm -f conftest.$ac_objext conftest$ac_exeext
29066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29067 (eval $ac_link) 2>conftest.er1
29068 ac_status=$?
29069 grep -v '^ *+' conftest.er1 >conftest.err
29070 rm -f conftest.er1
29071 cat conftest.err >&5
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); } &&
dee1a63f
MB
29074 { ac_try='test -z "$ac_c_werror_flag"
29075 || test ! -s conftest.err'
304205f1
VS
29076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077 (eval $ac_try) 2>&5
29078 ac_status=$?
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; } &&
29081 { ac_try='test -s conftest$ac_exeext'
29082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083 (eval $ac_try) 2>&5
29084 ac_status=$?
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); }; }; then
29087 eval "$as_ac_var=yes"
29088else
29089 echo "$as_me: failed program was:" >&5
29090sed 's/^/| /' conftest.$ac_ext >&5
29091
29092eval "$as_ac_var=no"
29093fi
29094rm -f conftest.err conftest.$ac_objext \
29095 conftest$ac_exeext conftest.$ac_ext
29096fi
29097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29098echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29099if test `eval echo '${'$as_ac_var'}'` = yes; then
29100 cat >>confdefs.h <<_ACEOF
29101#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29102_ACEOF
29103
29104fi
29105done
29106
29107 CFLAGS="$save_CFLAGS"
29108 LIBS="$save_LIBS"
a848cd7e
SC
29109 fi
29110
29111 wxUSE_UNIVERSAL="yes"
29112
29113 if test "$wxUSE_NANOX" = "yes"; then
29114 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29115 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"
29116 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29117 else
29118 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29119 fi
29120
a848cd7e
SC
29121 TOOLKIT=X11
29122 GUIDIST=X11_DIST
29123 fi
29124
29125 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29126 if test "$wxUSE_UNICODE" = "yes"; then
29127 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29128echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29129 { (exit 1); exit 1; }; }
29130 fi
29131
74b84332
VS
29132 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29133echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29134
74b84332
VS
29135ac_find_includes=
29136for ac_dir in $SEARCH_INCLUDE /usr/include;
29137 do
29138 if test -f "$ac_dir/Xm/Xm.h"; then
29139 ac_find_includes=$ac_dir
29140 break
29141 fi
29142 done
a848cd7e 29143
74b84332
VS
29144 if test "$ac_find_includes" != "" ; then
29145 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29146echo "${ECHO_T}found in $ac_find_includes" >&6
29147
29148 if test "x$ac_find_includes" = "x/usr/include"; then
29149 ac_path_to_include=""
29150 else
29151 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29152 result=$?
29153 if test $result = 0; then
29154 ac_path_to_include=""
29155 else
29156 ac_path_to_include=" -I$ac_find_includes"
29157 fi
a848cd7e
SC
29158 fi
29159
74b84332
VS
29160 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29161 else
e051b34e
MW
29162 save_CFLAGS=$CFLAGS
29163 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29164
74b84332 29165 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29166/* confdefs.h. */
29167_ACEOF
29168cat confdefs.h >>conftest.$ac_ext
29169cat >>conftest.$ac_ext <<_ACEOF
29170/* end confdefs.h. */
29171
74b84332
VS
29172 #include <Xm/Xm.h>
29173
a848cd7e
SC
29174int
29175main ()
29176{
29177
74b84332
VS
29178 int version;
29179 version = xmUseVersion;
29180
a848cd7e
SC
29181 ;
29182 return 0;
29183}
29184_ACEOF
74b84332
VS
29185rm -f conftest.$ac_objext
29186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29187 (eval $ac_compile) 2>conftest.er1
a848cd7e 29188 ac_status=$?
ac1cb8d3
VS
29189 grep -v '^ *+' conftest.er1 >conftest.err
29190 rm -f conftest.er1
29191 cat conftest.err >&5
a848cd7e
SC
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); } &&
dee1a63f
MB
29194 { ac_try='test -z "$ac_c_werror_flag"
29195 || test ! -s conftest.err'
ac1cb8d3
VS
29196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197 (eval $ac_try) 2>&5
29198 ac_status=$?
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); }; } &&
74b84332 29201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29203 (eval $ac_try) 2>&5
29204 ac_status=$?
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); }; }; then
74b84332
VS
29207
29208 echo "$as_me:$LINENO: result: found in default search path" >&5
29209echo "${ECHO_T}found in default search path" >&6
29210 COMPILED_X_PROGRAM=1
29211
a848cd7e
SC
29212else
29213 echo "$as_me: failed program was:" >&5
29214sed 's/^/| /' conftest.$ac_ext >&5
29215
a848cd7e 29216
74b84332
VS
29217 echo "$as_me:$LINENO: result: no" >&5
29218echo "${ECHO_T}no" >&6
e051b34e
MW
29219 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29220echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29221 { (exit 1); exit 1; }; }
a848cd7e 29222
a848cd7e 29223
a848cd7e 29224fi
74b84332 29225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29226
29227 CFLAGS=$save_CFLAGS
74b84332
VS
29228 fi
29229
0ad5d837
VZ
29230
29231 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29232echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29233
0ad5d837
VZ
29234 ac_find_libraries=
29235 for ac_dir in $SEARCH_LIB;
74b84332 29236 do
3eca31dc 29237 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29238 if test -f "$ac_dir/libXm.$ac_extension"; then
29239 ac_find_libraries=$ac_dir
29240 break 2
a848cd7e 29241 fi
74b84332
VS
29242 done
29243 done
a848cd7e 29244
0ad5d837
VZ
29245
29246 if test "x$ac_find_libraries" != "x" ; then
29247 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29248echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29249
74b84332 29250
0ad5d837 29251 if test "$ac_find_libraries" = "default location"; then
74b84332 29252 ac_path_to_link=""
a848cd7e 29253 else
0ad5d837
VZ
29254 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29255 result=$?
29256 if test $result = 0; then
29257 ac_path_to_link=""
29258 else
29259 ac_path_to_link=" -L$ac_find_libraries"
29260 fi
74b84332
VS
29261 fi
29262
0ad5d837
VZ
29263 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29264 else
29265 save_CFLAGS=$CFLAGS
29266 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
29267 save_LIBS="$LIBS"
29268 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29269
0ad5d837 29270 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29271/* confdefs.h. */
29272_ACEOF
29273cat confdefs.h >>conftest.$ac_ext
29274cat >>conftest.$ac_ext <<_ACEOF
29275/* end confdefs.h. */
29276
0ad5d837 29277 #include <Xm/Xm.h>
74b84332 29278
a848cd7e
SC
29279int
29280main ()
29281{
74b84332 29282
0ad5d837
VZ
29283 int version;
29284 version = xmUseVersion;
74b84332 29285
a848cd7e
SC
29286 ;
29287 return 0;
29288}
29289_ACEOF
0ad5d837
VZ
29290rm -f conftest.$ac_objext conftest$ac_exeext
29291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29292 (eval $ac_link) 2>conftest.er1
a848cd7e 29293 ac_status=$?
ac1cb8d3
VS
29294 grep -v '^ *+' conftest.er1 >conftest.err
29295 rm -f conftest.er1
29296 cat conftest.err >&5
a848cd7e
SC
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); } &&
dee1a63f
MB
29299 { ac_try='test -z "$ac_c_werror_flag"
29300 || test ! -s conftest.err'
ac1cb8d3
VS
29301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29302 (eval $ac_try) 2>&5
29303 ac_status=$?
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); }; } &&
0ad5d837 29306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29308 (eval $ac_try) 2>&5
29309 ac_status=$?
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); }; }; then
74b84332 29312
0ad5d837 29313 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29314echo "${ECHO_T}found in default search path" >&6
0ad5d837 29315 COMPILED_X_PROGRAM=1
74b84332 29316
a848cd7e
SC
29317else
29318 echo "$as_me: failed program was:" >&5
29319sed 's/^/| /' conftest.$ac_ext >&5
29320
74b84332 29321
6f9cf1e6 29322 echo "$as_me:$LINENO: result: no" >&5
74b84332 29323echo "${ECHO_T}no" >&6
6f9cf1e6 29324 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29325echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29326 { (exit 1); exit 1; }; }
29327
29328
29329fi
0ad5d837
VZ
29330rm -f conftest.err conftest.$ac_objext \
29331 conftest$ac_exeext conftest.$ac_ext
74b84332 29332
0ad5d837 29333 CFLAGS=$save_CFLAGS
6f9cf1e6 29334 LIBS="$save_LIBS"
74b84332
VS
29335 fi
29336
29337 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29338echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29339 libp_link=""
29340 libsm_ice_link=""
29341 libs_found=0
29342 for libp in "" " -lXp"; do
29343 if test "$libs_found" = "0"; then
29344 for libsm_ice in "" " -lSM -lICE"; do
29345 if test "$libs_found" = "0"; then
29346 save_LIBS="$LIBS"
29347 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29348 save_CFLAGS=$CFLAGS
29349 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29350
29351 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29352/* confdefs.h. */
29353_ACEOF
29354cat confdefs.h >>conftest.$ac_ext
29355cat >>conftest.$ac_ext <<_ACEOF
29356/* end confdefs.h. */
29357
74b84332
VS
29358 #include <Xm/Xm.h>
29359 #include <Xm/List.h>
29360
a848cd7e
SC
29361int
29362main ()
29363{
74b84332
VS
29364
29365 XmString string = NULL;
29366 Widget w = NULL;
29367 int position = 0;
29368 XmListAddItem(w, string, position);
29369
a848cd7e
SC
29370 ;
29371 return 0;
29372}
29373_ACEOF
29374rm -f conftest.$ac_objext conftest$ac_exeext
29375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29376 (eval $ac_link) 2>conftest.er1
a848cd7e 29377 ac_status=$?
ac1cb8d3
VS
29378 grep -v '^ *+' conftest.er1 >conftest.err
29379 rm -f conftest.er1
29380 cat conftest.err >&5
a848cd7e
SC
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); } &&
dee1a63f
MB
29383 { ac_try='test -z "$ac_c_werror_flag"
29384 || test ! -s conftest.err'
ac1cb8d3
VS
29385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29386 (eval $ac_try) 2>&5
29387 ac_status=$?
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); }; } &&
29390 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29392 (eval $ac_try) 2>&5
29393 ac_status=$?
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); }; }; then
29396
29397 libp_link="$libp"
29398 libsm_ice_link="$libsm_ice"
29399 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29400echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29401 libs_found=1
29402
29403else
29404 echo "$as_me: failed program was:" >&5
29405sed 's/^/| /' conftest.$ac_ext >&5
29406
29407
29408
29409fi
ac1cb8d3
VS
29410rm -f conftest.err conftest.$ac_objext \
29411 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29412
29413 LIBS="$save_LIBS"
29414 CFLAGS=$save_CFLAGS
29415 fi
29416 done
29417 fi
29418 done
29419
29420 if test "$libs_found" = "0"; then
29421 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29422echo "${ECHO_T}can't find the right libraries" >&6
29423 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29424echo "$as_me: error: can't link a simple motif program" >&2;}
29425 { (exit 1); exit 1; }; }
29426 fi
29427
62fa8b3a
MW
29428 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29429echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29430if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29432else
29433 ac_check_lib_save_LIBS=$LIBS
29434LIBS="-lSgm $LIBS"
29435cat >conftest.$ac_ext <<_ACEOF
29436/* confdefs.h. */
29437_ACEOF
29438cat confdefs.h >>conftest.$ac_ext
29439cat >>conftest.$ac_ext <<_ACEOF
29440/* end confdefs.h. */
29441
29442/* Override any gcc2 internal prototype to avoid an error. */
29443#ifdef __cplusplus
29444extern "C"
29445#endif
29446/* We use char because int might match the return type of a gcc2
29447 builtin and then its argument prototype would still apply. */
29448char SgCreateList ();
29449int
29450main ()
29451{
29452SgCreateList ();
29453 ;
29454 return 0;
29455}
29456_ACEOF
29457rm -f conftest.$ac_objext conftest$ac_exeext
29458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29459 (eval $ac_link) 2>conftest.er1
29460 ac_status=$?
29461 grep -v '^ *+' conftest.er1 >conftest.err
29462 rm -f conftest.er1
29463 cat conftest.err >&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } &&
dee1a63f
MB
29466 { ac_try='test -z "$ac_c_werror_flag"
29467 || test ! -s conftest.err'
62fa8b3a
MW
29468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469 (eval $ac_try) 2>&5
29470 ac_status=$?
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); }; } &&
29473 { ac_try='test -s conftest$ac_exeext'
29474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29475 (eval $ac_try) 2>&5
29476 ac_status=$?
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); }; }; then
29479 ac_cv_lib_Sgm_SgCreateList=yes
29480else
29481 echo "$as_me: failed program was:" >&5
29482sed 's/^/| /' conftest.$ac_ext >&5
29483
29484ac_cv_lib_Sgm_SgCreateList=no
29485fi
29486rm -f conftest.err conftest.$ac_objext \
29487 conftest$ac_exeext conftest.$ac_ext
29488LIBS=$ac_check_lib_save_LIBS
29489fi
29490echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29491echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29492if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29493 libsgm_link=" -lSgm"
29494fi
29495
29496
a848cd7e
SC
29497 save_CFLAGS=$CFLAGS
29498 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 29499
a848cd7e
SC
29500 echo "$as_me:$LINENO: checking for Motif 2" >&5
29501echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29502if test "${wx_cv_lib_motif2+set}" = set; then
29503 echo $ECHO_N "(cached) $ECHO_C" >&6
29504else
29505 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29506/* confdefs.h. */
29507_ACEOF
29508cat confdefs.h >>conftest.$ac_ext
29509cat >>conftest.$ac_ext <<_ACEOF
29510/* end confdefs.h. */
29511
0ad5d837 29512 #include <Xm/Xm.h>
a848cd7e
SC
29513
29514int
29515main ()
29516{
29517
0ad5d837
VZ
29518 #if XmVersion < 2000
29519 Not Motif 2
29520 #endif
a848cd7e
SC
29521
29522 ;
29523 return 0;
29524}
29525_ACEOF
29526rm -f conftest.$ac_objext
29527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29528 (eval $ac_compile) 2>conftest.er1
a848cd7e 29529 ac_status=$?
ac1cb8d3
VS
29530 grep -v '^ *+' conftest.er1 >conftest.err
29531 rm -f conftest.er1
29532 cat conftest.err >&5
a848cd7e
SC
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } &&
dee1a63f
MB
29535 { ac_try='test -z "$ac_c_werror_flag"
29536 || test ! -s conftest.err'
ac1cb8d3
VS
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; } &&
29542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; }; then
0ad5d837 29548 wx_cv_lib_motif2="yes"
a848cd7e
SC
29549else
29550 echo "$as_me: failed program was:" >&5
29551sed 's/^/| /' conftest.$ac_ext >&5
29552
0ad5d837
VZ
29553wx_cv_lib_motif2="no"
29554fi
29555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29556fi
29557echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29558echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29559 if test "$wx_cv_lib_motif2" = "yes"; then
29560 cat >>confdefs.h <<\_ACEOF
29561#define __WXMOTIF20__ 1
29562_ACEOF
a848cd7e 29563
0ad5d837
VZ
29564 else
29565 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29566#define __WXMOTIF20__ 0
29567_ACEOF
29568
0ad5d837 29569 fi
2113bc77
MW
29570
29571 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29572echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29573if test "${wx_cv_lib_lesstif+set}" = set; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29575else
29576 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29577/* confdefs.h. */
29578_ACEOF
29579cat confdefs.h >>conftest.$ac_ext
29580cat >>conftest.$ac_ext <<_ACEOF
29581/* end confdefs.h. */
29582
0ad5d837 29583 #include <Xm/Xm.h>
2113bc77
MW
29584
29585int
29586main ()
29587{
29588
0ad5d837
VZ
29589 #if !defined(LesstifVersion) || LesstifVersion <= 0
29590 Not Lesstif
29591 #endif
2113bc77
MW
29592
29593 ;
29594 return 0;
29595}
29596_ACEOF
29597rm -f conftest.$ac_objext
29598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29599 (eval $ac_compile) 2>conftest.er1
29600 ac_status=$?
29601 grep -v '^ *+' conftest.er1 >conftest.err
29602 rm -f conftest.er1
29603 cat conftest.err >&5
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); } &&
dee1a63f
MB
29606 { ac_try='test -z "$ac_c_werror_flag"
29607 || test ! -s conftest.err'
2113bc77
MW
29608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609 (eval $ac_try) 2>&5
29610 ac_status=$?
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); }; } &&
29613 { ac_try='test -s conftest.$ac_objext'
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; }; then
0ad5d837 29619 wx_cv_lib_lesstif="yes"
2113bc77
MW
29620else
29621 echo "$as_me: failed program was:" >&5
29622sed 's/^/| /' conftest.$ac_ext >&5
29623
0ad5d837
VZ
29624wx_cv_lib_lesstif="no"
29625fi
29626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29627
0ad5d837
VZ
29628fi
29629echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29630echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29631 if test "$wx_cv_lib_lesstif" = "yes"; then
29632 cat >>confdefs.h <<\_ACEOF
29633#define __WXLESSTIF__ 1
29634_ACEOF
29635
29636 else
29637 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29638#define __WXLESSTIF__ 0
29639_ACEOF
29640
0ad5d837 29641 fi
2113bc77 29642
a848cd7e
SC
29643 CFLAGS=$save_CFLAGS
29644
62fa8b3a 29645 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29646 TOOLKIT=MOTIF
29647 GUIDIST=MOTIF_DIST
29648 fi
29649
74b84332 29650 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29651 if test "$wxUSE_LIBXPM" = "sys"; then
29652 echo "$as_me:$LINENO: checking for Xpm library" >&5
29653echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29654
0ad5d837
VZ
29655 ac_find_libraries=
29656 for ac_dir in $SEARCH_LIB;
a848cd7e 29657 do
3eca31dc 29658 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29659 if test -f "$ac_dir/libXpm.$ac_extension"; then
29660 ac_find_libraries=$ac_dir
29661 break 2
29662 fi
29663 done
29664 done
29665
29666 if test "$ac_find_libraries" != "" ; then
29667
0ad5d837 29668 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29669 ac_path_to_link=""
29670 else
0ad5d837
VZ
29671 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29672 result=$?
29673 if test $result = 0; then
29674 ac_path_to_link=""
29675 else
29676 ac_path_to_link=" -L$ac_find_libraries"
29677 fi
a848cd7e
SC
29678 fi
29679
29680 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29681 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29682echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29683
29684 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29685echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29686if test "${wx_cv_x11_xpm_h+set}" = set; then
29687 echo $ECHO_N "(cached) $ECHO_C" >&6
29688else
29689
29690 save_CFLAGS=$CFLAGS
29691 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29692
29693 cat >conftest.$ac_ext <<_ACEOF
29694/* confdefs.h. */
29695_ACEOF
29696cat confdefs.h >>conftest.$ac_ext
29697cat >>conftest.$ac_ext <<_ACEOF
29698/* end confdefs.h. */
29699
29700 #include <X11/xpm.h>
29701
29702int
29703main ()
29704{
29705
29706 int version;
29707 version = XpmLibraryVersion();
29708
29709 ;
29710 return 0;
29711}
29712_ACEOF
29713rm -f conftest.$ac_objext
29714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29715 (eval $ac_compile) 2>conftest.er1
a848cd7e 29716 ac_status=$?
ac1cb8d3
VS
29717 grep -v '^ *+' conftest.er1 >conftest.err
29718 rm -f conftest.er1
29719 cat conftest.err >&5
a848cd7e
SC
29720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721 (exit $ac_status); } &&
dee1a63f
MB
29722 { ac_try='test -z "$ac_c_werror_flag"
29723 || test ! -s conftest.err'
ac1cb8d3
VS
29724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29725 (eval $ac_try) 2>&5
29726 ac_status=$?
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; } &&
29729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29731 (eval $ac_try) 2>&5
29732 ac_status=$?
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); }; }; then
29735 wx_cv_x11_xpm_h=yes
29736else
29737 echo "$as_me: failed program was:" >&5
29738sed 's/^/| /' conftest.$ac_ext >&5
29739
29740wx_cv_x11_xpm_h=no
29741
29742fi
ac1cb8d3 29743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29744
29745 CFLAGS=$save_CFLAGS
29746
29747
29748fi
29749echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29750echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29751
29752 if test $wx_cv_x11_xpm_h = "yes"; then
29753 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29754 cat >>confdefs.h <<\_ACEOF
29755#define wxHAVE_LIB_XPM 1
29756_ACEOF
29757
29758 else
29759 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29760echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29761 fi
29762 fi
29763
29764 fi
29765
29766 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29767echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29768if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29769 echo $ECHO_N "(cached) $ECHO_C" >&6
29770else
29771 ac_check_lib_save_LIBS=$LIBS
29772LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29773cat >conftest.$ac_ext <<_ACEOF
29774/* confdefs.h. */
29775_ACEOF
29776cat confdefs.h >>conftest.$ac_ext
29777cat >>conftest.$ac_ext <<_ACEOF
29778/* end confdefs.h. */
29779
29780/* Override any gcc2 internal prototype to avoid an error. */
29781#ifdef __cplusplus
29782extern "C"
29783#endif
29784/* We use char because int might match the return type of a gcc2
29785 builtin and then its argument prototype would still apply. */
29786char XShapeQueryExtension ();
29787int
29788main ()
29789{
29790XShapeQueryExtension ();
29791 ;
29792 return 0;
29793}
29794_ACEOF
29795rm -f conftest.$ac_objext conftest$ac_exeext
29796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29797 (eval $ac_link) 2>conftest.er1
a848cd7e 29798 ac_status=$?
ac1cb8d3
VS
29799 grep -v '^ *+' conftest.er1 >conftest.err
29800 rm -f conftest.er1
29801 cat conftest.err >&5
a848cd7e
SC
29802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803 (exit $ac_status); } &&
dee1a63f
MB
29804 { ac_try='test -z "$ac_c_werror_flag"
29805 || test ! -s conftest.err'
ac1cb8d3
VS
29806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29807 (eval $ac_try) 2>&5
29808 ac_status=$?
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); }; } &&
29811 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29813 (eval $ac_try) 2>&5
29814 ac_status=$?
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); }; }; then
29817 ac_cv_lib_Xext_XShapeQueryExtension=yes
29818else
29819 echo "$as_me: failed program was:" >&5
29820sed 's/^/| /' conftest.$ac_ext >&5
29821
29822ac_cv_lib_Xext_XShapeQueryExtension=no
29823fi
ac1cb8d3
VS
29824rm -f conftest.err conftest.$ac_objext \
29825 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29826LIBS=$ac_check_lib_save_LIBS
29827fi
29828echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29829echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29830if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29831
29832 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29833 wxHAVE_XEXT_LIB=1
29834
29835fi
29836
29837
29838 if test "$wxHAVE_XEXT_LIB" = 1; then
29839 save_CFLAGS="$CFLAGS"
29840 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29841
29842 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29843echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29844 cat >conftest.$ac_ext <<_ACEOF
29845/* confdefs.h. */
29846_ACEOF
29847cat confdefs.h >>conftest.$ac_ext
29848cat >>conftest.$ac_ext <<_ACEOF
29849/* end confdefs.h. */
29850
29851 #include <X11/Xlib.h>
29852 #include <X11/extensions/shape.h>
29853
29854int
29855main ()
29856{
29857
29858 int dummy1, dummy2;
29859 XShapeQueryExtension((Display*)NULL,
29860 (int*)NULL, (int*)NULL);
29861
29862 ;
29863 return 0;
29864}
29865_ACEOF
29866rm -f conftest.$ac_objext
29867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29868 (eval $ac_compile) 2>conftest.er1
a848cd7e 29869 ac_status=$?
ac1cb8d3
VS
29870 grep -v '^ *+' conftest.er1 >conftest.err
29871 rm -f conftest.er1
29872 cat conftest.err >&5
a848cd7e
SC
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); } &&
dee1a63f
MB
29875 { ac_try='test -z "$ac_c_werror_flag"
29876 || test ! -s conftest.err'
ac1cb8d3
VS
29877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878 (eval $ac_try) 2>&5
29879 ac_status=$?
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); }; } &&
29882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884 (eval $ac_try) 2>&5
29885 ac_status=$?
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; }; then
29888
29889 cat >>confdefs.h <<\_ACEOF
29890#define HAVE_XSHAPE 1
29891_ACEOF
29892
29893 echo "$as_me:$LINENO: result: found" >&5
29894echo "${ECHO_T}found" >&6
29895
29896else
29897 echo "$as_me: failed program was:" >&5
29898sed 's/^/| /' conftest.$ac_ext >&5
29899
29900
29901 echo "$as_me:$LINENO: result: not found" >&5
29902echo "${ECHO_T}not found" >&6
29903
29904fi
ac1cb8d3 29905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29906 CFLAGS="$save_CFLAGS"
29907
29908 fi
29909 fi
29910
29911 if test "$wxUSE_MAC" = 1; then
29912 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29913echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29914 if test "$GCC" = yes; then
29915 echo "$as_me:$LINENO: result: gcc" >&5
29916echo "${ECHO_T}gcc" >&6
29917 CPPFLAGS_PASCAL="-fpascal-strings"
29918 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29919 echo "$as_me:$LINENO: result: xlc" >&5
29920echo "${ECHO_T}xlc" >&6
29921 CPPFLAGS_PASCAL="-qmacpstr"
29922 else
29923 echo "$as_me:$LINENO: result: none" >&5
29924echo "${ECHO_T}none" >&6
29925 fi
29926
1e9e8aba
DE
29927 if test "x$wxUSE_UNIX" = "xyes"; then
29928 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29929 else
29930 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29931 fi
a848cd7e 29932
a848cd7e
SC
29933 TOOLKIT=MAC
29934 GUIDIST=MACX_DIST
dd21ced8 29935 WXBASEPORT="_carbon"
a848cd7e
SC
29936 fi
29937
29938 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
29939 TOOLKIT=COCOA
29940 GUIDIST=COCOA_DIST
29941 fi
29942
29943 if test "$wxUSE_PM" = 1; then
29944 TOOLKIT=PM
de59c161
RD
29945 GUIDIST=PM_DIST
29946 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29947echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29948if test "${wx_cv_spbcdata+set}" = set; then
29949 echo $ECHO_N "(cached) $ECHO_C" >&6
29950else
29951
29952 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29953/* confdefs.h. */
29954_ACEOF
29955cat confdefs.h >>conftest.$ac_ext
29956cat >>conftest.$ac_ext <<_ACEOF
29957/* end confdefs.h. */
29958
29959 #define INCL_PM
29960 #include <os2.h>
29961
29962int
29963main ()
29964{
29965
29966 SPBCDATA test;
29967
29968 ;
29969 return 0;
29970}
29971_ACEOF
29972rm -f conftest.$ac_objext
29973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29974 (eval $ac_compile) 2>conftest.er1
de59c161 29975 ac_status=$?
ac1cb8d3
VS
29976 grep -v '^ *+' conftest.er1 >conftest.err
29977 rm -f conftest.er1
29978 cat conftest.err >&5
de59c161
RD
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } &&
dee1a63f
MB
29981 { ac_try='test -z "$ac_c_werror_flag"
29982 || test ! -s conftest.err'
ac1cb8d3
VS
29983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29984 (eval $ac_try) 2>&5
29985 ac_status=$?
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); }; } &&
29988 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
29989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29990 (eval $ac_try) 2>&5
29991 ac_status=$?
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); }; }; then
29994 wx_cv_spbcdata=yes
29995else
29996 echo "$as_me: failed program was:" >&5
29997sed 's/^/| /' conftest.$ac_ext >&5
29998
29999wx_cv_spbcdata=no
30000
30001fi
ac1cb8d3 30002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30003
30004
30005fi
30006echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30007echo "${ECHO_T}$wx_cv_spbcdata" >&6
30008
30009 if test $wx_cv_spbcdata = "yes"; then
30010 cat >>confdefs.h <<\_ACEOF
30011#define HAVE_SPBCDATA 1
30012_ACEOF
30013
30014 fi
a848cd7e
SC
30015 fi
30016
30017 if test "$TOOLKIT" = "PM" ; then
30018 TOOLKIT_DIR="os2"
30019 else
30020 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30021 fi
30022
a848cd7e 30023 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30024 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30025 WIDGET_SET=univ
a848cd7e
SC
30026 fi
30027
30028 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30029 DISTDIR="wx\$(TOOLKIT)"
30030else
30031 USE_GUI=0
30032
30033 TOOLKIT_DIR="base"
30034
30035 if test "$USE_WIN32" = 1 ; then
a848cd7e 30036 TOOLKIT="MSW"
a848cd7e
SC
30037 fi
30038
a848cd7e
SC
30039 GUIDIST="BASE_DIST"
30040 DISTDIR="wxBase"
30041fi
30042
30043
d12aef51
VZ
30044if test "$wxUSE_GUI" = "yes"; then
30045 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30046
30047for ac_header in X11/Xlib.h
30048do
30049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30050if eval "test \"\${$as_ac_Header+set}\" = set"; then
30051 echo "$as_me:$LINENO: checking for $ac_header" >&5
30052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30053if eval "test \"\${$as_ac_Header+set}\" = set"; then
30054 echo $ECHO_N "(cached) $ECHO_C" >&6
30055fi
30056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30058else
30059 # Is the header compilable?
30060echo "$as_me:$LINENO: checking $ac_header usability" >&5
30061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30062cat >conftest.$ac_ext <<_ACEOF
30063/* confdefs.h. */
30064_ACEOF
30065cat confdefs.h >>conftest.$ac_ext
30066cat >>conftest.$ac_ext <<_ACEOF
30067/* end confdefs.h. */
30068$ac_includes_default
30069#include <$ac_header>
30070_ACEOF
30071rm -f conftest.$ac_objext
30072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30073 (eval $ac_compile) 2>conftest.er1
30074 ac_status=$?
30075 grep -v '^ *+' conftest.er1 >conftest.err
30076 rm -f conftest.er1
30077 cat conftest.err >&5
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); } &&
dee1a63f
MB
30080 { ac_try='test -z "$ac_c_werror_flag"
30081 || test ! -s conftest.err'
d12aef51
VZ
30082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30083 (eval $ac_try) 2>&5
30084 ac_status=$?
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); }; } &&
30087 { ac_try='test -s conftest.$ac_objext'
30088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30089 (eval $ac_try) 2>&5
30090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; }; then
30093 ac_header_compiler=yes
30094else
30095 echo "$as_me: failed program was:" >&5
30096sed 's/^/| /' conftest.$ac_ext >&5
30097
30098ac_header_compiler=no
30099fi
30100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30102echo "${ECHO_T}$ac_header_compiler" >&6
30103
30104# Is the header present?
30105echo "$as_me:$LINENO: checking $ac_header presence" >&5
30106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30107cat >conftest.$ac_ext <<_ACEOF
30108/* confdefs.h. */
30109_ACEOF
30110cat confdefs.h >>conftest.$ac_ext
30111cat >>conftest.$ac_ext <<_ACEOF
30112/* end confdefs.h. */
30113#include <$ac_header>
30114_ACEOF
30115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30117 ac_status=$?
30118 grep -v '^ *+' conftest.er1 >conftest.err
30119 rm -f conftest.er1
30120 cat conftest.err >&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } >/dev/null; then
30123 if test -s conftest.err; then
30124 ac_cpp_err=$ac_c_preproc_warn_flag
30125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30126 else
30127 ac_cpp_err=
30128 fi
30129else
30130 ac_cpp_err=yes
30131fi
30132if test -z "$ac_cpp_err"; then
30133 ac_header_preproc=yes
30134else
30135 echo "$as_me: failed program was:" >&5
30136sed 's/^/| /' conftest.$ac_ext >&5
30137
30138 ac_header_preproc=no
30139fi
30140rm -f conftest.err conftest.$ac_ext
30141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30142echo "${ECHO_T}$ac_header_preproc" >&6
30143
30144# So? What about this header?
30145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30146 yes:no: )
30147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30151 ac_header_preproc=yes
30152 ;;
30153 no:yes:* )
30154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30161echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30166 (
30167 cat <<\_ASBOX
30168## ----------------------------------------- ##
30169## Report this to wx-dev@lists.wxwidgets.org ##
30170## ----------------------------------------- ##
30171_ASBOX
30172 ) |
30173 sed "s/^/$as_me: WARNING: /" >&2
30174 ;;
30175esac
30176echo "$as_me:$LINENO: checking for $ac_header" >&5
30177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30178if eval "test \"\${$as_ac_Header+set}\" = set"; then
30179 echo $ECHO_N "(cached) $ECHO_C" >&6
30180else
30181 eval "$as_ac_Header=\$ac_header_preproc"
30182fi
30183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30185
30186fi
30187if test `eval echo '${'$as_ac_Header'}'` = yes; then
30188 cat >>confdefs.h <<_ACEOF
30189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30190_ACEOF
30191
30192fi
30193
30194done
30195
30196
30197for ac_header in X11/XKBlib.h
30198do
30199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30200echo "$as_me:$LINENO: checking for $ac_header" >&5
30201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30202if eval "test \"\${$as_ac_Header+set}\" = set"; then
30203 echo $ECHO_N "(cached) $ECHO_C" >&6
30204else
30205 cat >conftest.$ac_ext <<_ACEOF
30206/* confdefs.h. */
30207_ACEOF
30208cat confdefs.h >>conftest.$ac_ext
30209cat >>conftest.$ac_ext <<_ACEOF
30210/* end confdefs.h. */
30211
30212 #if HAVE_X11_XLIB_H
30213 #include <X11/Xlib.h>
30214 #endif
30215
30216
30217#include <$ac_header>
30218_ACEOF
30219rm -f conftest.$ac_objext
30220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30221 (eval $ac_compile) 2>conftest.er1
30222 ac_status=$?
30223 grep -v '^ *+' conftest.er1 >conftest.err
30224 rm -f conftest.er1
30225 cat conftest.err >&5
30226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); } &&
dee1a63f
MB
30228 { ac_try='test -z "$ac_c_werror_flag"
30229 || test ! -s conftest.err'
d12aef51
VZ
30230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30231 (eval $ac_try) 2>&5
30232 ac_status=$?
30233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234 (exit $ac_status); }; } &&
30235 { ac_try='test -s conftest.$ac_objext'
30236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30237 (eval $ac_try) 2>&5
30238 ac_status=$?
30239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240 (exit $ac_status); }; }; then
30241 eval "$as_ac_Header=yes"
30242else
30243 echo "$as_me: failed program was:" >&5
30244sed 's/^/| /' conftest.$ac_ext >&5
30245
30246eval "$as_ac_Header=no"
30247fi
30248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30249fi
30250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30252if test `eval echo '${'$as_ac_Header'}'` = yes; then
30253 cat >>confdefs.h <<_ACEOF
30254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30255_ACEOF
30256
30257fi
30258
30259done
30260
30261 fi
30262fi
30263
a848cd7e
SC
30264
30265
30266IODBC_C_SRC=""
30267
30268
30269if test "$TOOLKIT" != "MSW" ; then
30270
30271 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30272
30273 if test "${ac_cv_header_sql_h+set}" = set; then
30274 echo "$as_me:$LINENO: checking for sql.h" >&5
30275echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30276if test "${ac_cv_header_sql_h+set}" = set; then
30277 echo $ECHO_N "(cached) $ECHO_C" >&6
30278fi
30279echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30280echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30281else
30282 # Is the header compilable?
30283echo "$as_me:$LINENO: checking sql.h usability" >&5
30284echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30285cat >conftest.$ac_ext <<_ACEOF
30286/* confdefs.h. */
30287_ACEOF
30288cat confdefs.h >>conftest.$ac_ext
30289cat >>conftest.$ac_ext <<_ACEOF
30290/* end confdefs.h. */
30291$ac_includes_default
30292#include <sql.h>
30293_ACEOF
30294rm -f conftest.$ac_objext
30295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30296 (eval $ac_compile) 2>conftest.er1
a848cd7e 30297 ac_status=$?
ac1cb8d3
VS
30298 grep -v '^ *+' conftest.er1 >conftest.err
30299 rm -f conftest.er1
30300 cat conftest.err >&5
a848cd7e
SC
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); } &&
dee1a63f
MB
30303 { ac_try='test -z "$ac_c_werror_flag"
30304 || test ! -s conftest.err'
ac1cb8d3
VS
30305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30306 (eval $ac_try) 2>&5
30307 ac_status=$?
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); }; } &&
30310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; }; then
30316 ac_header_compiler=yes
30317else
30318 echo "$as_me: failed program was:" >&5
30319sed 's/^/| /' conftest.$ac_ext >&5
30320
30321ac_header_compiler=no
30322fi
ac1cb8d3 30323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30324echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30325echo "${ECHO_T}$ac_header_compiler" >&6
30326
30327# Is the header present?
30328echo "$as_me:$LINENO: checking sql.h presence" >&5
30329echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30330cat >conftest.$ac_ext <<_ACEOF
30331/* confdefs.h. */
30332_ACEOF
30333cat confdefs.h >>conftest.$ac_ext
30334cat >>conftest.$ac_ext <<_ACEOF
30335/* end confdefs.h. */
30336#include <sql.h>
30337_ACEOF
30338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30340 ac_status=$?
30341 grep -v '^ *+' conftest.er1 >conftest.err
30342 rm -f conftest.er1
30343 cat conftest.err >&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); } >/dev/null; then
30346 if test -s conftest.err; then
30347 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30349 else
30350 ac_cpp_err=
30351 fi
30352else
30353 ac_cpp_err=yes
30354fi
30355if test -z "$ac_cpp_err"; then
30356 ac_header_preproc=yes
30357else
30358 echo "$as_me: failed program was:" >&5
30359sed 's/^/| /' conftest.$ac_ext >&5
30360
30361 ac_header_preproc=no
30362fi
30363rm -f conftest.err conftest.$ac_ext
30364echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30365echo "${ECHO_T}$ac_header_preproc" >&6
30366
30367# So? What about this header?
ac1cb8d3
VS
30368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30369 yes:no: )
a848cd7e
SC
30370 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30371echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30372 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30373echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30374 ac_header_preproc=yes
a848cd7e 30375 ;;
ac1cb8d3 30376 no:yes:* )
a848cd7e
SC
30377 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30378echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30379 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30380echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30381 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30382echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30383 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30384echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30385 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30386echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30387 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30388echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30389 (
30390 cat <<\_ASBOX
ac1cb8d3
VS
30391## ----------------------------------------- ##
30392## Report this to wx-dev@lists.wxwidgets.org ##
30393## ----------------------------------------- ##
a848cd7e
SC
30394_ASBOX
30395 ) |
30396 sed "s/^/$as_me: WARNING: /" >&2
30397 ;;
30398esac
30399echo "$as_me:$LINENO: checking for sql.h" >&5
30400echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30401if test "${ac_cv_header_sql_h+set}" = set; then
30402 echo $ECHO_N "(cached) $ECHO_C" >&6
30403else
30404 ac_cv_header_sql_h=$ac_header_preproc
30405fi
30406echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30407echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30408
30409fi
30410if test $ac_cv_header_sql_h = yes; then
30411 found_sql_h=1
30412fi
30413
30414
30415 if test "x$found_sql_h" = "x1" ; then
30416 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30417echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30418if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30419 echo $ECHO_N "(cached) $ECHO_C" >&6
30420else
30421 ac_check_lib_save_LIBS=$LIBS
30422LIBS="-liodbc $LIBS"
30423cat >conftest.$ac_ext <<_ACEOF
30424/* confdefs.h. */
30425_ACEOF
30426cat confdefs.h >>conftest.$ac_ext
30427cat >>conftest.$ac_ext <<_ACEOF
30428/* end confdefs.h. */
30429
30430/* Override any gcc2 internal prototype to avoid an error. */
30431#ifdef __cplusplus
30432extern "C"
30433#endif
30434/* We use char because int might match the return type of a gcc2
30435 builtin and then its argument prototype would still apply. */
30436char SQLAllocEnv ();
30437int
30438main ()
30439{
30440SQLAllocEnv ();
30441 ;
30442 return 0;
30443}
30444_ACEOF
30445rm -f conftest.$ac_objext conftest$ac_exeext
30446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30447 (eval $ac_link) 2>conftest.er1
a848cd7e 30448 ac_status=$?
ac1cb8d3
VS
30449 grep -v '^ *+' conftest.er1 >conftest.err
30450 rm -f conftest.er1
30451 cat conftest.err >&5
a848cd7e
SC
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); } &&
dee1a63f
MB
30454 { ac_try='test -z "$ac_c_werror_flag"
30455 || test ! -s conftest.err'
ac1cb8d3
VS
30456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30457 (eval $ac_try) 2>&5
30458 ac_status=$?
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; } &&
30461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30463 (eval $ac_try) 2>&5
30464 ac_status=$?
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; }; then
30467 ac_cv_lib_iodbc_SQLAllocEnv=yes
30468else
30469 echo "$as_me: failed program was:" >&5
30470sed 's/^/| /' conftest.$ac_ext >&5
30471
30472ac_cv_lib_iodbc_SQLAllocEnv=no
30473fi
ac1cb8d3
VS
30474rm -f conftest.err conftest.$ac_objext \
30475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30476LIBS=$ac_check_lib_save_LIBS
30477fi
30478echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30479echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30480if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30481 ODBC_LINK=" -liodbc"
30482else
30483
30484 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30485echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30486if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30487 echo $ECHO_N "(cached) $ECHO_C" >&6
30488else
30489 ac_check_lib_save_LIBS=$LIBS
30490LIBS="-lunixodbc $LIBS"
30491cat >conftest.$ac_ext <<_ACEOF
30492/* confdefs.h. */
30493_ACEOF
30494cat confdefs.h >>conftest.$ac_ext
30495cat >>conftest.$ac_ext <<_ACEOF
30496/* end confdefs.h. */
30497
30498/* Override any gcc2 internal prototype to avoid an error. */
30499#ifdef __cplusplus
30500extern "C"
30501#endif
30502/* We use char because int might match the return type of a gcc2
30503 builtin and then its argument prototype would still apply. */
30504char SQLAllocEnv ();
30505int
30506main ()
30507{
30508SQLAllocEnv ();
30509 ;
30510 return 0;
30511}
30512_ACEOF
30513rm -f conftest.$ac_objext conftest$ac_exeext
30514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30515 (eval $ac_link) 2>conftest.er1
a848cd7e 30516 ac_status=$?
ac1cb8d3
VS
30517 grep -v '^ *+' conftest.er1 >conftest.err
30518 rm -f conftest.er1
30519 cat conftest.err >&5
a848cd7e
SC
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } &&
dee1a63f
MB
30522 { ac_try='test -z "$ac_c_werror_flag"
30523 || test ! -s conftest.err'
ac1cb8d3
VS
30524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30525 (eval $ac_try) 2>&5
30526 ac_status=$?
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); }; } &&
30529 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30531 (eval $ac_try) 2>&5
30532 ac_status=$?
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); }; }; then
30535 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30536else
30537 echo "$as_me: failed program was:" >&5
30538sed 's/^/| /' conftest.$ac_ext >&5
30539
30540ac_cv_lib_unixodbc_SQLAllocEnv=no
30541fi
ac1cb8d3
VS
30542rm -f conftest.err conftest.$ac_objext \
30543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30544LIBS=$ac_check_lib_save_LIBS
30545fi
30546echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30547echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30548if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30549 ODBC_LINK=" -lunixodbc"
30550else
30551
30552 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30553echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30554if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30555 echo $ECHO_N "(cached) $ECHO_C" >&6
30556else
30557 ac_check_lib_save_LIBS=$LIBS
30558LIBS="-lodbc $LIBS"
30559cat >conftest.$ac_ext <<_ACEOF
30560/* confdefs.h. */
30561_ACEOF
30562cat confdefs.h >>conftest.$ac_ext
30563cat >>conftest.$ac_ext <<_ACEOF
30564/* end confdefs.h. */
30565
30566/* Override any gcc2 internal prototype to avoid an error. */
30567#ifdef __cplusplus
30568extern "C"
30569#endif
30570/* We use char because int might match the return type of a gcc2
30571 builtin and then its argument prototype would still apply. */
30572char SQLAllocEnv ();
30573int
30574main ()
30575{
30576SQLAllocEnv ();
30577 ;
30578 return 0;
30579}
30580_ACEOF
30581rm -f conftest.$ac_objext conftest$ac_exeext
30582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30583 (eval $ac_link) 2>conftest.er1
a848cd7e 30584 ac_status=$?
ac1cb8d3
VS
30585 grep -v '^ *+' conftest.er1 >conftest.err
30586 rm -f conftest.er1
30587 cat conftest.err >&5
a848cd7e
SC
30588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589 (exit $ac_status); } &&
dee1a63f
MB
30590 { ac_try='test -z "$ac_c_werror_flag"
30591 || test ! -s conftest.err'
ac1cb8d3
VS
30592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30593 (eval $ac_try) 2>&5
30594 ac_status=$?
30595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); }; } &&
30597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30599 (eval $ac_try) 2>&5
30600 ac_status=$?
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); }; }; then
30603 ac_cv_lib_odbc_SQLAllocEnv=yes
30604else
30605 echo "$as_me: failed program was:" >&5
30606sed 's/^/| /' conftest.$ac_ext >&5
30607
30608ac_cv_lib_odbc_SQLAllocEnv=no
30609fi
ac1cb8d3
VS
30610rm -f conftest.err conftest.$ac_objext \
30611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30612LIBS=$ac_check_lib_save_LIBS
30613fi
30614echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30615echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30616if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30617 ODBC_LINK=" -lodbc"
30618fi
30619
30620
30621fi
30622
30623
30624fi
30625
30626 fi
30627 if test "x$ODBC_LINK" = "x" ; then
30628 if test "$wxUSE_ODBC" = "sys" ; then
30629 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30630echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30631 { (exit 1); exit 1; }; }
30632 else
30633 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30634echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30635 wxUSE_ODBC=builtin
30636 fi
30637 else
30638 wxUSE_ODBC=sys
30639 fi
30640 fi
a848cd7e 30641
2da0c077
RD
30642 if test "$wxUSE_ODBC" = "builtin" ; then
30643 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30644#define wxUSE_BUILTIN_IODBC 1
30645_ACEOF
30646
a848cd7e
SC
30647 fi
30648fi
30649
2da0c077
RD
30650if test "$wxUSE_ODBC" != "no" ; then
30651 cat >>confdefs.h <<\_ACEOF
30652#define wxUSE_ODBC 1
30653_ACEOF
30654
30655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30656
30657 WXODBCFLAG="-D_IODBC_"
30658fi
a848cd7e 30659
01cb68df 30660
a848cd7e 30661if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30662 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30663 echo "$as_me:$LINENO: checking for Xinerama" >&5
30664echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30665
0ad5d837
VZ
30666 ac_find_libraries=
30667 for ac_dir in $SEARCH_LIB;
30668 do
30669 for ac_extension in a so sl dylib dll.a; do
30670 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30671 ac_find_libraries=$ac_dir
30672 break 2
30673 fi
30674 done
30675 done
30676
a848cd7e
SC
30677 if test "$ac_find_libraries" != "" ; then
30678
0ad5d837 30679 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30680 ac_path_to_link=""
30681 else
0ad5d837
VZ
30682 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30683 result=$?
30684 if test $result = 0; then
30685 ac_path_to_link=""
30686 else
30687 ac_path_to_link=" -L$ac_find_libraries"
30688 fi
a848cd7e
SC
30689 fi
30690
30691 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30692 LDFLAGS="$LDFLAGS $ac_path_to_link"
30693 fi
30694 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30695 echo "$as_me:$LINENO: result: yes" >&5
30696echo "${ECHO_T}yes" >&6
30697
30698 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30699echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30700
0ad5d837
VZ
30701 ac_find_libraries=
30702 for ac_dir in $SEARCH_LIB;
a848cd7e 30703 do
3eca31dc 30704 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30705 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30706 ac_find_libraries=$ac_dir
30707 break 2
30708 fi
30709 done
30710 done
30711
30712 if test "$ac_find_libraries" != "" ; then
30713 echo "$as_me:$LINENO: result: yes" >&5
30714echo "${ECHO_T}yes" >&6
30715
30716for ac_header in X11/extensions/xf86vmode.h
30717do
30718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30719echo "$as_me:$LINENO: checking for $ac_header" >&5
30720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30721if eval "test \"\${$as_ac_Header+set}\" = set"; then
30722 echo $ECHO_N "(cached) $ECHO_C" >&6
30723else
30724 cat >conftest.$ac_ext <<_ACEOF
30725/* confdefs.h. */
30726_ACEOF
30727cat confdefs.h >>conftest.$ac_ext
30728cat >>conftest.$ac_ext <<_ACEOF
30729/* end confdefs.h. */
30730
30731 #if HAVE_X11_XLIB_H
30732 #include <X11/Xlib.h>
30733 #endif
30734
30735
30736#include <$ac_header>
30737_ACEOF
30738rm -f conftest.$ac_objext
30739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30740 (eval $ac_compile) 2>conftest.er1
a848cd7e 30741 ac_status=$?
ac1cb8d3
VS
30742 grep -v '^ *+' conftest.er1 >conftest.err
30743 rm -f conftest.er1
30744 cat conftest.err >&5
a848cd7e
SC
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); } &&
dee1a63f
MB
30747 { ac_try='test -z "$ac_c_werror_flag"
30748 || test ! -s conftest.err'
ac1cb8d3
VS
30749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30750 (eval $ac_try) 2>&5
30751 ac_status=$?
30752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753 (exit $ac_status); }; } &&
30754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30756 (eval $ac_try) 2>&5
30757 ac_status=$?
30758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30759 (exit $ac_status); }; }; then
30760 eval "$as_ac_Header=yes"
30761else
30762 echo "$as_me: failed program was:" >&5
30763sed 's/^/| /' conftest.$ac_ext >&5
30764
30765eval "$as_ac_Header=no"
30766fi
ac1cb8d3 30767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30768fi
30769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30771if test `eval echo '${'$as_ac_Header'}'` = yes; then
30772 cat >>confdefs.h <<_ACEOF
30773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30774_ACEOF
30775
30776 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30777
30778fi
30779
30780done
30781
30782 else
30783 echo "$as_me:$LINENO: result: no" >&5
30784echo "${ECHO_T}no" >&6
30785 fi
30786
30787 else
30788 echo "$as_me:$LINENO: result: no" >&5
30789echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30790 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30791echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30792 wxUSE_DISPLAY="no"
30793 fi
01cb68df
RG
30794 elif test "$wxUSE_MSW" = 1; then
30795
30796
30797for ac_header in multimon.h ddraw.h
30798do
30799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30800echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30802if eval "test \"\${$as_ac_Header+set}\" = set"; then
30803 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30804else
5294a27e 30805 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30806/* confdefs.h. */
30807_ACEOF
30808cat confdefs.h >>conftest.$ac_ext
30809cat >>conftest.$ac_ext <<_ACEOF
30810/* end confdefs.h. */
5294a27e
VZ
30811#include <windows.h>
30812
01cb68df
RG
30813#include <$ac_header>
30814_ACEOF
30815rm -f conftest.$ac_objext
30816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30817 (eval $ac_compile) 2>conftest.er1
01cb68df 30818 ac_status=$?
ac1cb8d3
VS
30819 grep -v '^ *+' conftest.er1 >conftest.err
30820 rm -f conftest.er1
30821 cat conftest.err >&5
01cb68df
RG
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); } &&
dee1a63f
MB
30824 { ac_try='test -z "$ac_c_werror_flag"
30825 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
30831 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30833 (eval $ac_try) 2>&5
30834 ac_status=$?
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; }; then
5294a27e 30837 eval "$as_ac_Header=yes"
01cb68df
RG
30838else
30839 echo "$as_me: failed program was:" >&5
30840sed 's/^/| /' conftest.$ac_ext >&5
30841
5294a27e 30842eval "$as_ac_Header=no"
01cb68df 30843fi
ac1cb8d3 30844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30845fi
30846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30848if test `eval echo '${'$as_ac_Header'}'` = yes; then
30849 cat >>confdefs.h <<_ACEOF
30850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30851_ACEOF
30852
30853else
30854
5294a27e
VZ
30855 wxUSE_DISPLAY="no"
30856 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30857echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30858
30859fi
30860
30861done
30862
a848cd7e
SC
30863 fi
30864fi
30865
30866
30867USE_OPENGL=0
30868if test "$wxUSE_OPENGL" = "yes"; then
30869 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30870 OPENGL_LIBS="-framework OpenGL -framework AGL"
30871 elif test "$wxUSE_MSW" = 1; then
30872 OPENGL_LIBS="-lopengl32 -lglu32"
30873 else
30874
30875
30876ac_find_includes=
30877for ac_dir in $SEARCH_INCLUDE /usr/include;
30878 do
30879 if test -f "$ac_dir/GL/gl.h"; then
30880 ac_find_includes=$ac_dir
30881 break
30882 fi
30883 done
30884
30885 if test "$ac_find_includes" != "" ; then
30886 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30887echo "${ECHO_T}found in $ac_find_includes" >&6
30888
30889 if test "x$ac_find_includes" = "x/usr/include"; then
30890 ac_path_to_include=""
30891 else
30892 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30893 result=$?
30894 if test $result = 0; then
30895 ac_path_to_include=""
30896 else
30897 ac_path_to_include=" -I$ac_find_includes"
30898 fi
30899 fi
30900
30901 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30902 fi
30903
30904 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30905 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30906echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30907if test "${ac_cv_header_GL_gl_h+set}" = set; then
30908 echo $ECHO_N "(cached) $ECHO_C" >&6
30909fi
30910echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30911echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30912else
30913 # Is the header compilable?
30914echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30915echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30916cat >conftest.$ac_ext <<_ACEOF
30917/* confdefs.h. */
30918_ACEOF
30919cat confdefs.h >>conftest.$ac_ext
30920cat >>conftest.$ac_ext <<_ACEOF
30921/* end confdefs.h. */
30922$ac_includes_default
30923#include <GL/gl.h>
30924_ACEOF
30925rm -f conftest.$ac_objext
30926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30927 (eval $ac_compile) 2>conftest.er1
a848cd7e 30928 ac_status=$?
ac1cb8d3
VS
30929 grep -v '^ *+' conftest.er1 >conftest.err
30930 rm -f conftest.er1
30931 cat conftest.err >&5
a848cd7e
SC
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); } &&
dee1a63f
MB
30934 { ac_try='test -z "$ac_c_werror_flag"
30935 || test ! -s conftest.err'
ac1cb8d3
VS
30936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30937 (eval $ac_try) 2>&5
30938 ac_status=$?
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); }; } &&
30941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30943 (eval $ac_try) 2>&5
30944 ac_status=$?
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); }; }; then
30947 ac_header_compiler=yes
30948else
30949 echo "$as_me: failed program was:" >&5
30950sed 's/^/| /' conftest.$ac_ext >&5
30951
30952ac_header_compiler=no
30953fi
ac1cb8d3 30954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30956echo "${ECHO_T}$ac_header_compiler" >&6
30957
30958# Is the header present?
30959echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30960echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30961cat >conftest.$ac_ext <<_ACEOF
30962/* confdefs.h. */
30963_ACEOF
30964cat confdefs.h >>conftest.$ac_ext
30965cat >>conftest.$ac_ext <<_ACEOF
30966/* end confdefs.h. */
30967#include <GL/gl.h>
30968_ACEOF
30969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30971 ac_status=$?
30972 grep -v '^ *+' conftest.er1 >conftest.err
30973 rm -f conftest.er1
30974 cat conftest.err >&5
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); } >/dev/null; then
30977 if test -s conftest.err; then
30978 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30980 else
30981 ac_cpp_err=
30982 fi
30983else
30984 ac_cpp_err=yes
30985fi
30986if test -z "$ac_cpp_err"; then
30987 ac_header_preproc=yes
30988else
30989 echo "$as_me: failed program was:" >&5
30990sed 's/^/| /' conftest.$ac_ext >&5
30991
30992 ac_header_preproc=no
30993fi
30994rm -f conftest.err conftest.$ac_ext
30995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30996echo "${ECHO_T}$ac_header_preproc" >&6
30997
30998# So? What about this header?
ac1cb8d3
VS
30999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31000 yes:no: )
a848cd7e
SC
31001 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31002echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31003 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31004echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31005 ac_header_preproc=yes
a848cd7e 31006 ;;
ac1cb8d3 31007 no:yes:* )
a848cd7e
SC
31008 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31009echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31010 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31011echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31012 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31013echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31014 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31015echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31016 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31017echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31018 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31019echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31020 (
31021 cat <<\_ASBOX
ac1cb8d3
VS
31022## ----------------------------------------- ##
31023## Report this to wx-dev@lists.wxwidgets.org ##
31024## ----------------------------------------- ##
a848cd7e
SC
31025_ASBOX
31026 ) |
31027 sed "s/^/$as_me: WARNING: /" >&2
31028 ;;
31029esac
31030echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31031echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31032if test "${ac_cv_header_GL_gl_h+set}" = set; then
31033 echo $ECHO_N "(cached) $ECHO_C" >&6
31034else
31035 ac_cv_header_GL_gl_h=$ac_header_preproc
31036fi
31037echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31038echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31039
31040fi
31041if test $ac_cv_header_GL_gl_h = yes; then
31042
31043 found_gl=0
31044
31045 echo "$as_me:$LINENO: checking for -lGL" >&5
31046echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31047
0ad5d837
VZ
31048 ac_find_libraries=
31049 for ac_dir in $SEARCH_LIB;
a848cd7e 31050 do
3eca31dc 31051 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31052 if test -f "$ac_dir/libGL.$ac_extension"; then
31053 ac_find_libraries=$ac_dir
31054 break 2
31055 fi
31056 done
31057 done
31058
31059 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31060 echo "$as_me:$LINENO: result: yes" >&5
31061echo "${ECHO_T}yes" >&6
31062
a848cd7e 31063
0ad5d837 31064 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31065 ac_path_to_link=""
31066 else
0ad5d837
VZ
31067 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31068 result=$?
31069 if test $result = 0; then
31070 ac_path_to_link=""
31071 else
31072 ac_path_to_link=" -L$ac_find_libraries"
31073 fi
a848cd7e
SC
31074 fi
31075
31076 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31077 LDFLAGS_GL="$ac_path_to_link"
31078 fi
31079
69120ee4
VZ
31080 echo "$as_me:$LINENO: checking for -lGLU" >&5
31081echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31082
0ad5d837
VZ
31083 ac_find_libraries=
31084 for ac_dir in $SEARCH_LIB;
31085 do
31086 for ac_extension in a so sl dylib dll.a; do
31087 if test -f "$ac_dir/libGLU.$ac_extension"; then
31088 ac_find_libraries=$ac_dir
31089 break 2
31090 fi
31091 done
31092 done
31093
a848cd7e
SC
31094 if test "$ac_find_libraries" != "" ; then
31095
0ad5d837 31096 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31097 ac_path_to_link=""
31098 else
0ad5d837
VZ
31099 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31100 result=$?
31101 if test $result = 0; then
31102 ac_path_to_link=""
31103 else
31104 ac_path_to_link=" -L$ac_find_libraries"
31105 fi
a848cd7e
SC
31106 fi
31107
31108 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31109 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31110 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31111 fi
31112
31113 found_gl=1
31114 OPENGL_LIBS="-lGL -lGLU"
31115 echo "$as_me:$LINENO: result: yes" >&5
31116echo "${ECHO_T}yes" >&6
69120ee4
VZ
31117 else
31118 echo "$as_me:$LINENO: result: no" >&5
31119echo "${ECHO_T}no" >&6
a848cd7e 31120 fi
69120ee4
VZ
31121 else
31122 echo "$as_me:$LINENO: result: no" >&5
31123echo "${ECHO_T}no" >&6
a848cd7e
SC
31124 fi
31125
31126 if test "$found_gl" != 1; then
a848cd7e
SC
31127 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31128echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31129
0ad5d837
VZ
31130 ac_find_libraries=
31131 for ac_dir in $SEARCH_LIB;
a848cd7e 31132 do
3eca31dc 31133 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31134 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31135 ac_find_libraries=$ac_dir
31136 break 2
31137 fi
31138 done
31139 done
31140
31141 if test "$ac_find_libraries" != "" ; then
31142
0ad5d837 31143 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31144 ac_path_to_link=""
31145 else
0ad5d837
VZ
31146 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31147 result=$?
31148 if test $result = 0; then
31149 ac_path_to_link=""
31150 else
31151 ac_path_to_link=" -L$ac_find_libraries"
31152 fi
a848cd7e
SC
31153 fi
31154
31155 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31156 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31157 echo "$as_me:$LINENO: result: yes" >&5
31158echo "${ECHO_T}yes" >&6
31159 else
31160 echo "$as_me:$LINENO: result: no" >&5
31161echo "${ECHO_T}no" >&6
31162 fi
31163 fi
31164
31165fi
31166
31167
31168
31169 if test "x$OPENGL_LIBS" = "x"; then
31170 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31171echo "$as_me: error: OpenGL libraries not available" >&2;}
31172 { (exit 1); exit 1; }; }
31173 fi
31174 fi
31175
31176 if test "$wxUSE_OPENGL" = "yes"; then
31177 USE_OPENGL=1
31178 cat >>confdefs.h <<\_ACEOF
31179#define wxUSE_OPENGL 1
31180_ACEOF
31181
31182 cat >>confdefs.h <<\_ACEOF
31183#define wxUSE_GLCANVAS 1
31184_ACEOF
31185
31186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31187 fi
31188fi
31189
a848cd7e
SC
31190
31191if test -n "$TOOLKIT" ; then
31192 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31193fi
31194
a848cd7e
SC
31195
31196
31197if test "$wxUSE_SHARED" = "yes"; then
31198 case "${host}" in
31199 *-pc-msdosdjgpp )
31200 wxUSE_SHARED=no
31201 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31202echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31203 ;;
31204 esac
31205fi
31206
a848cd7e 31207if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31208
31209
31210 found_versioning=no
31211
31212
31213 if test $found_versioning = no ; then
31214 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31215echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31216if test "${wx_cv_version_script+set}" = set; then
31217 echo $ECHO_N "(cached) $ECHO_C" >&6
31218else
31219
31220 echo "VER_1 { *; };" >conftest.sym
31221 echo "int main() { return 0; }" >conftest.cpp
31222
31223 if { ac_try='
31224 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31225 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; } ; then
31231 if test -s conftest.stderr ; then
31232 wx_cv_version_script=no
31233 else
31234 wx_cv_version_script=yes
31235 fi
31236 else
31237 wx_cv_version_script=no
31238 fi
e5d4b470
MW
31239
31240 if test $wx_cv_version_script = yes
31241 then
31242 echo "struct B { virtual ~B() { } }; \
31243 struct D : public B { }; \
31244 void F() { D d; }" > conftest.cpp
31245
31246 if { ac_try='
31247 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31248 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31250 (eval $ac_try) 2>&5
31251 ac_status=$?
31252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253 (exit $ac_status); }; } &&
31254 { ac_try='
31255 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31256 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
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); }; }
31262 then
31263 if { ac_try='
31264 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31265 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31267 (eval $ac_try) 2>&5
31268 ac_status=$?
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); }; }
31271 then
31272 wx_cv_version_script=yes
31273 else
31274 wx_cv_version_script=no
31275 fi
31276 fi
31277 fi
31278
a848cd7e 31279 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31280 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31281
31282fi
31283echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31284echo "${ECHO_T}$wx_cv_version_script" >&6
31285 if test $wx_cv_version_script = yes ; then
31286 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31287 fi
31288 fi
31289
31290
31291 case "${host}" in
31292 *-*-linux* | *-*-gnu* )
31293 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31294 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31295 ;;
a848cd7e
SC
31296
31297 *-*-solaris2* )
31298 if test "$GCC" = yes ; then
31299 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
31300
31301 saveLdflags="$LDFLAGS"
31302 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31303 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31304echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31305 cat >conftest.$ac_ext <<_ACEOF
31306/* confdefs.h. */
31307_ACEOF
31308cat confdefs.h >>conftest.$ac_ext
31309cat >>conftest.$ac_ext <<_ACEOF
31310/* end confdefs.h. */
31311
31312int
31313main ()
31314{
31315
31316 ;
31317 return 0;
31318}
31319_ACEOF
31320rm -f conftest.$ac_objext conftest$ac_exeext
31321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31322 (eval $ac_link) 2>conftest.er1
a848cd7e 31323 ac_status=$?
ac1cb8d3
VS
31324 grep -v '^ *+' conftest.er1 >conftest.err
31325 rm -f conftest.er1
31326 cat conftest.err >&5
a848cd7e
SC
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); } &&
dee1a63f
MB
31329 { ac_try='test -z "$ac_c_werror_flag"
31330 || test ! -s conftest.err'
ac1cb8d3
VS
31331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31332 (eval $ac_try) 2>&5
31333 ac_status=$?
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); }; } &&
31336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31338 (eval $ac_try) 2>&5
31339 ac_status=$?
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); }; }; then
31342
31343 echo "$as_me:$LINENO: result: yes" >&5
31344echo "${ECHO_T}yes" >&6
31345 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31346 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31347
31348else
31349 echo "$as_me: failed program was:" >&5
31350sed 's/^/| /' conftest.$ac_ext >&5
31351
31352
31353 echo "$as_me:$LINENO: result: no" >&5
31354echo "${ECHO_T}no" >&6
31355 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31356echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31357 LDFLAGS="$saveLdflags -Wl,-R,/"
31358 cat >conftest.$ac_ext <<_ACEOF
31359/* confdefs.h. */
31360_ACEOF
31361cat confdefs.h >>conftest.$ac_ext
31362cat >>conftest.$ac_ext <<_ACEOF
31363/* end confdefs.h. */
31364
31365int
31366main ()
31367{
31368
31369 ;
31370 return 0;
31371}
31372_ACEOF
31373rm -f conftest.$ac_objext conftest$ac_exeext
31374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31375 (eval $ac_link) 2>conftest.er1
a848cd7e 31376 ac_status=$?
ac1cb8d3
VS
31377 grep -v '^ *+' conftest.er1 >conftest.err
31378 rm -f conftest.er1
31379 cat conftest.err >&5
a848cd7e
SC
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } &&
dee1a63f
MB
31382 { ac_try='test -z "$ac_c_werror_flag"
31383 || test ! -s conftest.err'
ac1cb8d3
VS
31384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31385 (eval $ac_try) 2>&5
31386 ac_status=$?
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); }; } &&
31389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31391 (eval $ac_try) 2>&5
31392 ac_status=$?
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; }; then
31395
ffa0583f 31396 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31397echo "${ECHO_T}yes" >&6
ffa0583f
RL
31398 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31399 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31400
a848cd7e
SC
31401else
31402 echo "$as_me: failed program was:" >&5
31403sed 's/^/| /' conftest.$ac_ext >&5
31404
31405
31406 echo "$as_me:$LINENO: result: no" >&5
31407echo "${ECHO_T}no" >&6
31408
31409fi
ac1cb8d3
VS
31410rm -f conftest.err conftest.$ac_objext \
31411 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31412
31413fi
ac1cb8d3
VS
31414rm -f conftest.err conftest.$ac_objext \
31415 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31416 LDFLAGS="$saveLdflags"
31417 else
a848cd7e 31418 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31419 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31420 fi
31421 ;;
31422
cfda0ea8 31423 *-*-darwin* )
0caebc27
MW
31424 install_name_tool=`which install_name_tool`
31425 if test "$install_name_tool" -a -x "$install_name_tool"; then
31426 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31427 cat <<EOF >change-install-names
a848cd7e
SC
31428#!/bin/sh
31429libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31430inst_cmd="install_name_tool "
31431for i in \${libnames} ; do
31432 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31433done
31434\${inst_cmd} \${3}
31435EOF
0caebc27
MW
31436 chmod +x change-install-names
31437 fi
a848cd7e
SC
31438 ;;
31439
31440 *-*-cygwin* | *-*-mingw32* )
31441 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
31442 ;;
31443
81f90336
MW
31444 *-*-hpux* )
31445 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31446 WXCONFIG_RPATH="-Wl,+b,\$libdir"
31447 ;;
31448
a848cd7e 31449 esac
ceec2216 31450
ffa0583f
RL
31451 if test $wxUSE_RPATH = "no"; then
31452 SAMPLES_RPATH_FLAG=''
31453 SAMPLES_RPATH_POSTLINK=''
31454 WXCONFIG_RPATH=''
31455 fi
31456
31457 SHARED=1
31458
31459else
31460
ceec2216
RL
31461 config_linkage_component="-static"
31462 SHARED=0
ffa0583f 31463
ceec2216 31464fi
a848cd7e 31465
a848cd7e 31466
ceec2216
RL
31467UNICODE=0
31468lib_unicode_suffix=
31469WX_CHARTYPE="ansi"
31470if test "$wxUSE_UNICODE" = "yes"; then
31471 lib_unicode_suffix=u
31472 WX_CHARTYPE="unicode"
31473 UNICODE=1
a848cd7e
SC
31474fi
31475
ceec2216
RL
31476lib_debug_suffix=
31477WX_DEBUGTYPE="release"
31478DEBUG_FLAG=0
31479if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31480 lib_debug_suffix=d
31481 WX_DEBUGTYPE="debug"
31482 DEBUG_FLAG=1
31483fi
a848cd7e 31484
ceec2216
RL
31485WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31486WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31487
ceec2216
RL
31488DEBUG_INFO=0
31489if test "$wxUSE_DEBUG_INFO" = "yes"; then
31490 DEBUG_INFO=1
31491fi
a848cd7e 31492
ceec2216 31493WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31494
ceec2216 31495TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31496
ceec2216 31497TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31498
ceec2216
RL
31499if test "$cross_compiling" = "yes"; then
31500 HOST_SUFFIX="-$host_alias"
31501 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31502 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31503fi
31504
dd21ced8 31505WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31506if test "${TOOLKIT_DIR}" = "os2"; then
31507 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31508else
31509 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31510fi
ceec2216
RL
31511
31512
31513
1d1af5ea
DE
31514if test "$wxUSE_COCOA" = 1; then
31515
31516
31517 ac_ext=c
31518ac_cpp='$CPP $CPPFLAGS'
31519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31521ac_compiler_gnu=$ac_cv_c_compiler_gnu
31522
31523ac_ext=m
31524
31525 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31526echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31527 cat >conftest.$ac_ext <<_ACEOF
31528/* confdefs.h. */
31529_ACEOF
31530cat confdefs.h >>conftest.$ac_ext
31531cat >>conftest.$ac_ext <<_ACEOF
31532/* end confdefs.h. */
31533#include <AppKit/NSEvent.h>
31534#include <CoreFoundation/CoreFoundation.h>
31535
31536int
31537main ()
31538{
31539
31540 ;
31541 return 0;
31542}
31543_ACEOF
31544rm -f conftest.$ac_objext
31545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31546 (eval $ac_compile) 2>conftest.er1
31547 ac_status=$?
31548 grep -v '^ *+' conftest.er1 >conftest.err
31549 rm -f conftest.er1
31550 cat conftest.err >&5
31551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31552 (exit $ac_status); } &&
dee1a63f
MB
31553 { ac_try='test -z "$ac_c_werror_flag"
31554 || test ! -s conftest.err'
1d1af5ea
DE
31555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31556 (eval $ac_try) 2>&5
31557 ac_status=$?
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); }; } &&
31560 { ac_try='test -s conftest.$ac_objext'
31561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31562 (eval $ac_try) 2>&5
31563 ac_status=$?
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; }; then
31566 echo "$as_me:$LINENO: result: no" >&5
31567echo "${ECHO_T}no" >&6
31568else
31569 echo "$as_me: failed program was:" >&5
31570sed 's/^/| /' conftest.$ac_ext >&5
31571
31572echo "$as_me:$LINENO: result: yes" >&5
31573echo "${ECHO_T}yes" >&6
31574 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31575echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31576 cat >conftest.$ac_ext <<_ACEOF
31577/* confdefs.h. */
31578_ACEOF
31579cat confdefs.h >>conftest.$ac_ext
31580cat >>conftest.$ac_ext <<_ACEOF
31581/* end confdefs.h. */
31582#define __Point__ 1
31583#include <AppKit/NSEvent.h>
31584#include <CoreFoundation/CoreFoundation.h>
31585
31586int
31587main ()
31588{
31589
31590 ;
31591 return 0;
31592}
31593_ACEOF
31594rm -f conftest.$ac_objext
31595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31596 (eval $ac_compile) 2>conftest.er1
31597 ac_status=$?
31598 grep -v '^ *+' conftest.er1 >conftest.err
31599 rm -f conftest.er1
31600 cat conftest.err >&5
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); } &&
dee1a63f
MB
31603 { ac_try='test -z "$ac_c_werror_flag"
31604 || test ! -s conftest.err'
1d1af5ea
DE
31605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31606 (eval $ac_try) 2>&5
31607 ac_status=$?
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609 (exit $ac_status); }; } &&
31610 { ac_try='test -s conftest.$ac_objext'
31611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31612 (eval $ac_try) 2>&5
31613 ac_status=$?
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); }; }; then
31616 echo "$as_me:$LINENO: result: yes" >&5
31617echo "${ECHO_T}yes" >&6
31618 cat >>confdefs.h <<\_ACEOF
31619#define __Point__ 1
31620_ACEOF
31621
31622
31623else
31624 echo "$as_me: failed program was:" >&5
31625sed 's/^/| /' conftest.$ac_ext >&5
31626
31627{ { echo "$as_me:$LINENO: error: no
31628See \`config.log' for more details." >&5
31629echo "$as_me: error: no
31630See \`config.log' for more details." >&2;}
31631 { (exit 1); exit 1; }; }
31632
31633fi
31634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31635
31636fi
31637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31638 ac_ext=c
31639ac_cpp='$CPP $CPPFLAGS'
31640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31642ac_compiler_gnu=$ac_cv_c_compiler_gnu
31643
31644fi
31645
a848cd7e 31646if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31647 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31648 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31649
a848cd7e 31650 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31651
31652 # Extract the first word of "Rez", so it can be a program name with args.
31653set dummy Rez; ac_word=$2
31654echo "$as_me:$LINENO: checking for $ac_word" >&5
31655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31656if test "${ac_cv_prog_RESCOMP+set}" = set; then
31657 echo $ECHO_N "(cached) $ECHO_C" >&6
31658else
31659 if test -n "$RESCOMP"; then
31660 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31661else
31662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31663for as_dir in $PATH
31664do
31665 IFS=$as_save_IFS
31666 test -z "$as_dir" && as_dir=.
31667 for ac_exec_ext in '' $ac_executable_extensions; do
31668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31669 ac_cv_prog_RESCOMP="Rez"
31670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31671 break 2
31672 fi
31673done
31674done
31675
31676 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31677fi
31678fi
31679RESCOMP=$ac_cv_prog_RESCOMP
31680if test -n "$RESCOMP"; then
31681 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31682echo "${ECHO_T}$RESCOMP" >&6
31683else
31684 echo "$as_me:$LINENO: result: no" >&5
31685echo "${ECHO_T}no" >&6
31686fi
31687
31688 # Extract the first word of "DeRez", so it can be a program name with args.
31689set dummy DeRez; ac_word=$2
31690echo "$as_me:$LINENO: checking for $ac_word" >&5
31691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31692if test "${ac_cv_prog_DEREZ+set}" = set; then
31693 echo $ECHO_N "(cached) $ECHO_C" >&6
31694else
31695 if test -n "$DEREZ"; then
31696 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31697else
31698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31699for as_dir in $PATH
31700do
31701 IFS=$as_save_IFS
31702 test -z "$as_dir" && as_dir=.
31703 for ac_exec_ext in '' $ac_executable_extensions; do
31704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31705 ac_cv_prog_DEREZ="DeRez"
31706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31707 break 2
31708 fi
31709done
31710done
31711
31712 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31713fi
31714fi
31715DEREZ=$ac_cv_prog_DEREZ
31716if test -n "$DEREZ"; then
31717 echo "$as_me:$LINENO: result: $DEREZ" >&5
31718echo "${ECHO_T}$DEREZ" >&6
31719else
31720 echo "$as_me:$LINENO: result: no" >&5
31721echo "${ECHO_T}no" >&6
31722fi
31723
31724 # Extract the first word of "SetFile", so it can be a program name with args.
31725set dummy SetFile; ac_word=$2
31726echo "$as_me:$LINENO: checking for $ac_word" >&5
31727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31728if test "${ac_cv_prog_SETFILE+set}" = set; then
31729 echo $ECHO_N "(cached) $ECHO_C" >&6
31730else
31731 if test -n "$SETFILE"; then
31732 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31733else
31734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31735for as_dir in $PATH
31736do
31737 IFS=$as_save_IFS
31738 test -z "$as_dir" && as_dir=.
31739 for ac_exec_ext in '' $ac_executable_extensions; do
31740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31741 ac_cv_prog_SETFILE="SetFile"
31742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31743 break 2
31744 fi
31745done
31746done
31747
31748 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31749fi
31750fi
31751SETFILE=$ac_cv_prog_SETFILE
31752if test -n "$SETFILE"; then
31753 echo "$as_me:$LINENO: result: $SETFILE" >&5
31754echo "${ECHO_T}$SETFILE" >&6
31755else
31756 echo "$as_me:$LINENO: result: no" >&5
31757echo "${ECHO_T}no" >&6
31758fi
31759
31760
31761 MACSETFILE="\$(SETFILE)"
31762
31763 if test "$wxUSE_MAC" = 1; then
1a79f136 31764 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31765
1a79f136 31766 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31767 else
31768 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31769 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31770 fi
31771else
ffa0583f
RL
31772 MACSETFILE="@true"
31773 MACRESWXCONFIG="@true"
a848cd7e
SC
31774
31775 if test "$wxUSE_PM" = 1; then
31776 MACRESCOMP="emxbind -ep"
31777 else
ffa0583f 31778 MACRESCOMP="@true"
a848cd7e
SC
31779 fi
31780fi
31781
31782
31783
31784echo "$as_me:$LINENO: checking for mode_t" >&5
31785echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31786if test "${ac_cv_type_mode_t+set}" = set; then
31787 echo $ECHO_N "(cached) $ECHO_C" >&6
31788else
31789 cat >conftest.$ac_ext <<_ACEOF
31790/* confdefs.h. */
31791_ACEOF
31792cat confdefs.h >>conftest.$ac_ext
31793cat >>conftest.$ac_ext <<_ACEOF
31794/* end confdefs.h. */
31795$ac_includes_default
31796int
31797main ()
31798{
31799if ((mode_t *) 0)
31800 return 0;
31801if (sizeof (mode_t))
31802 return 0;
31803 ;
31804 return 0;
31805}
31806_ACEOF
31807rm -f conftest.$ac_objext
31808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31809 (eval $ac_compile) 2>conftest.er1
a848cd7e 31810 ac_status=$?
ac1cb8d3
VS
31811 grep -v '^ *+' conftest.er1 >conftest.err
31812 rm -f conftest.er1
31813 cat conftest.err >&5
a848cd7e
SC
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); } &&
dee1a63f
MB
31816 { ac_try='test -z "$ac_c_werror_flag"
31817 || test ! -s conftest.err'
ac1cb8d3
VS
31818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31819 (eval $ac_try) 2>&5
31820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; } &&
31823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31825 (eval $ac_try) 2>&5
31826 ac_status=$?
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; }; then
31829 ac_cv_type_mode_t=yes
31830else
31831 echo "$as_me: failed program was:" >&5
31832sed 's/^/| /' conftest.$ac_ext >&5
31833
31834ac_cv_type_mode_t=no
31835fi
ac1cb8d3 31836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31837fi
31838echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31839echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31840if test $ac_cv_type_mode_t = yes; then
31841 :
31842else
31843
31844cat >>confdefs.h <<_ACEOF
31845#define mode_t int
31846_ACEOF
31847
31848fi
31849
31850echo "$as_me:$LINENO: checking for off_t" >&5
31851echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31852if test "${ac_cv_type_off_t+set}" = set; then
31853 echo $ECHO_N "(cached) $ECHO_C" >&6
31854else
31855 cat >conftest.$ac_ext <<_ACEOF
31856/* confdefs.h. */
31857_ACEOF
31858cat confdefs.h >>conftest.$ac_ext
31859cat >>conftest.$ac_ext <<_ACEOF
31860/* end confdefs.h. */
31861$ac_includes_default
31862int
31863main ()
31864{
31865if ((off_t *) 0)
31866 return 0;
31867if (sizeof (off_t))
31868 return 0;
31869 ;
31870 return 0;
31871}
31872_ACEOF
31873rm -f conftest.$ac_objext
31874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31875 (eval $ac_compile) 2>conftest.er1
a848cd7e 31876 ac_status=$?
ac1cb8d3
VS
31877 grep -v '^ *+' conftest.er1 >conftest.err
31878 rm -f conftest.er1
31879 cat conftest.err >&5
a848cd7e
SC
31880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881 (exit $ac_status); } &&
dee1a63f
MB
31882 { ac_try='test -z "$ac_c_werror_flag"
31883 || test ! -s conftest.err'
ac1cb8d3
VS
31884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31885 (eval $ac_try) 2>&5
31886 ac_status=$?
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); }; } &&
31889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31891 (eval $ac_try) 2>&5
31892 ac_status=$?
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); }; }; then
31895 ac_cv_type_off_t=yes
31896else
31897 echo "$as_me: failed program was:" >&5
31898sed 's/^/| /' conftest.$ac_ext >&5
31899
31900ac_cv_type_off_t=no
31901fi
ac1cb8d3 31902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31903fi
31904echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31905echo "${ECHO_T}$ac_cv_type_off_t" >&6
31906if test $ac_cv_type_off_t = yes; then
31907 :
31908else
31909
31910cat >>confdefs.h <<_ACEOF
31911#define off_t long
31912_ACEOF
31913
31914fi
31915
31916echo "$as_me:$LINENO: checking for pid_t" >&5
31917echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31918if test "${ac_cv_type_pid_t+set}" = set; then
31919 echo $ECHO_N "(cached) $ECHO_C" >&6
31920else
31921 cat >conftest.$ac_ext <<_ACEOF
31922/* confdefs.h. */
31923_ACEOF
31924cat confdefs.h >>conftest.$ac_ext
31925cat >>conftest.$ac_ext <<_ACEOF
31926/* end confdefs.h. */
31927$ac_includes_default
31928int
31929main ()
31930{
31931if ((pid_t *) 0)
31932 return 0;
31933if (sizeof (pid_t))
31934 return 0;
31935 ;
31936 return 0;
31937}
31938_ACEOF
31939rm -f conftest.$ac_objext
31940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31941 (eval $ac_compile) 2>conftest.er1
a848cd7e 31942 ac_status=$?
ac1cb8d3
VS
31943 grep -v '^ *+' conftest.er1 >conftest.err
31944 rm -f conftest.er1
31945 cat conftest.err >&5
a848cd7e
SC
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); } &&
dee1a63f
MB
31948 { ac_try='test -z "$ac_c_werror_flag"
31949 || test ! -s conftest.err'
ac1cb8d3
VS
31950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31951 (eval $ac_try) 2>&5
31952 ac_status=$?
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; } &&
31955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31957 (eval $ac_try) 2>&5
31958 ac_status=$?
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); }; }; then
31961 ac_cv_type_pid_t=yes
31962else
31963 echo "$as_me: failed program was:" >&5
31964sed 's/^/| /' conftest.$ac_ext >&5
31965
31966ac_cv_type_pid_t=no
31967fi
ac1cb8d3 31968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31969fi
31970echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31971echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31972if test $ac_cv_type_pid_t = yes; then
31973 :
31974else
31975
31976cat >>confdefs.h <<_ACEOF
31977#define pid_t int
31978_ACEOF
31979
31980fi
31981
31982echo "$as_me:$LINENO: checking for size_t" >&5
31983echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31984if test "${ac_cv_type_size_t+set}" = set; then
31985 echo $ECHO_N "(cached) $ECHO_C" >&6
31986else
31987 cat >conftest.$ac_ext <<_ACEOF
31988/* confdefs.h. */
31989_ACEOF
31990cat confdefs.h >>conftest.$ac_ext
31991cat >>conftest.$ac_ext <<_ACEOF
31992/* end confdefs.h. */
31993$ac_includes_default
31994int
31995main ()
31996{
31997if ((size_t *) 0)
31998 return 0;
31999if (sizeof (size_t))
32000 return 0;
32001 ;
32002 return 0;
32003}
32004_ACEOF
32005rm -f conftest.$ac_objext
32006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32007 (eval $ac_compile) 2>conftest.er1
a848cd7e 32008 ac_status=$?
ac1cb8d3
VS
32009 grep -v '^ *+' conftest.er1 >conftest.err
32010 rm -f conftest.er1
32011 cat conftest.err >&5
a848cd7e
SC
32012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013 (exit $ac_status); } &&
dee1a63f
MB
32014 { ac_try='test -z "$ac_c_werror_flag"
32015 || test ! -s conftest.err'
ac1cb8d3
VS
32016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32017 (eval $ac_try) 2>&5
32018 ac_status=$?
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; } &&
32021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32023 (eval $ac_try) 2>&5
32024 ac_status=$?
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); }; }; then
32027 ac_cv_type_size_t=yes
32028else
32029 echo "$as_me: failed program was:" >&5
32030sed 's/^/| /' conftest.$ac_ext >&5
32031
32032ac_cv_type_size_t=no
32033fi
ac1cb8d3 32034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32035fi
32036echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32037echo "${ECHO_T}$ac_cv_type_size_t" >&6
32038if test $ac_cv_type_size_t = yes; then
32039 :
32040else
32041
32042cat >>confdefs.h <<_ACEOF
32043#define size_t unsigned
32044_ACEOF
32045
32046fi
32047
32048echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32049echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32050if test "${ac_cv_type_uid_t+set}" = set; then
32051 echo $ECHO_N "(cached) $ECHO_C" >&6
32052else
32053 cat >conftest.$ac_ext <<_ACEOF
32054/* confdefs.h. */
32055_ACEOF
32056cat confdefs.h >>conftest.$ac_ext
32057cat >>conftest.$ac_ext <<_ACEOF
32058/* end confdefs.h. */
32059#include <sys/types.h>
32060
32061_ACEOF
32062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32063 $EGREP "uid_t" >/dev/null 2>&1; then
32064 ac_cv_type_uid_t=yes
32065else
32066 ac_cv_type_uid_t=no
32067fi
32068rm -f conftest*
32069
32070fi
32071echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32072echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32073if test $ac_cv_type_uid_t = no; then
32074
32075cat >>confdefs.h <<\_ACEOF
32076#define uid_t int
32077_ACEOF
32078
32079
32080cat >>confdefs.h <<\_ACEOF
32081#define gid_t int
32082_ACEOF
32083
32084fi
32085
32086
d51253e8
RL
32087echo "$as_me:$LINENO: checking for ssize_t" >&5
32088echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32089if test "${ac_cv_type_ssize_t+set}" = set; then
32090 echo $ECHO_N "(cached) $ECHO_C" >&6
32091else
32092 cat >conftest.$ac_ext <<_ACEOF
32093/* confdefs.h. */
32094_ACEOF
32095cat confdefs.h >>conftest.$ac_ext
32096cat >>conftest.$ac_ext <<_ACEOF
32097/* end confdefs.h. */
32098$ac_includes_default
32099int
32100main ()
32101{
32102if ((ssize_t *) 0)
32103 return 0;
32104if (sizeof (ssize_t))
32105 return 0;
32106 ;
32107 return 0;
32108}
32109_ACEOF
32110rm -f conftest.$ac_objext
32111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32112 (eval $ac_compile) 2>conftest.er1
32113 ac_status=$?
32114 grep -v '^ *+' conftest.er1 >conftest.err
32115 rm -f conftest.er1
32116 cat conftest.err >&5
32117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); } &&
dee1a63f
MB
32119 { ac_try='test -z "$ac_c_werror_flag"
32120 || test ! -s conftest.err'
d51253e8
RL
32121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32122 (eval $ac_try) 2>&5
32123 ac_status=$?
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); }; } &&
32126 { ac_try='test -s conftest.$ac_objext'
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32129 ac_status=$?
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 ac_cv_type_ssize_t=yes
32133else
32134 echo "$as_me: failed program was:" >&5
32135sed 's/^/| /' conftest.$ac_ext >&5
32136
32137ac_cv_type_ssize_t=no
32138fi
32139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32140fi
32141echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32142echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32143if test $ac_cv_type_ssize_t = yes; then
32144
32145cat >>confdefs.h <<_ACEOF
32146#define HAVE_SSIZE_T 1
32147_ACEOF
32148
32149
32150fi
32151
32152
a848cd7e
SC
32153
32154
32155ac_ext=cc
32156ac_cpp='$CXXCPP $CPPFLAGS'
32157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32160
32161echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32162echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32163if test "${wx_cv_size_t_is_uint+set}" = set; then
32164 echo $ECHO_N "(cached) $ECHO_C" >&6
32165else
32166
32167 cat >conftest.$ac_ext <<_ACEOF
32168/* confdefs.h. */
32169_ACEOF
32170cat confdefs.h >>conftest.$ac_ext
32171cat >>conftest.$ac_ext <<_ACEOF
32172/* end confdefs.h. */
32173#include <stddef.h>
32174int
32175main ()
32176{
32177
32178 return 0; }
32179
32180 struct Foo { void foo(size_t); void foo(unsigned int); };
32181
32182 int bar() {
32183
32184 ;
32185 return 0;
32186}
32187_ACEOF
32188rm -f conftest.$ac_objext
32189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32190 (eval $ac_compile) 2>conftest.er1
a848cd7e 32191 ac_status=$?
ac1cb8d3
VS
32192 grep -v '^ *+' conftest.er1 >conftest.err
32193 rm -f conftest.er1
32194 cat conftest.err >&5
a848cd7e
SC
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); } &&
dee1a63f
MB
32197 { ac_try='test -z "$ac_cxx_werror_flag"
32198 || test ! -s conftest.err'
ac1cb8d3
VS
32199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32200 (eval $ac_try) 2>&5
32201 ac_status=$?
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); }; } &&
32204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
32210 wx_cv_size_t_is_uint=no
32211else
32212 echo "$as_me: failed program was:" >&5
32213sed 's/^/| /' conftest.$ac_ext >&5
32214
32215wx_cv_size_t_is_uint=yes
32216
32217fi
ac1cb8d3 32218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32219
32220
32221fi
32222echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32223echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32224
32225if test "$wx_cv_size_t_is_uint" = "yes"; then
32226 cat >>confdefs.h <<\_ACEOF
32227#define wxSIZE_T_IS_UINT 1
32228_ACEOF
32229
32230else
32231 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32232echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32233if test "${wx_cv_size_t_is_ulong+set}" = set; then
32234 echo $ECHO_N "(cached) $ECHO_C" >&6
32235else
32236 cat >conftest.$ac_ext <<_ACEOF
32237/* confdefs.h. */
32238_ACEOF
32239cat confdefs.h >>conftest.$ac_ext
32240cat >>conftest.$ac_ext <<_ACEOF
32241/* end confdefs.h. */
32242#include <stddef.h>
32243int
32244main ()
32245{
32246
32247 return 0; }
32248
32249 struct Foo { void foo(size_t); void foo(unsigned long); };
32250
32251 int bar() {
32252
32253 ;
32254 return 0;
32255}
32256_ACEOF
32257rm -f conftest.$ac_objext
32258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32259 (eval $ac_compile) 2>conftest.er1
a848cd7e 32260 ac_status=$?
ac1cb8d3
VS
32261 grep -v '^ *+' conftest.er1 >conftest.err
32262 rm -f conftest.er1
32263 cat conftest.err >&5
a848cd7e
SC
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); } &&
dee1a63f
MB
32266 { ac_try='test -z "$ac_cxx_werror_flag"
32267 || test ! -s conftest.err'
ac1cb8d3
VS
32268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32269 (eval $ac_try) 2>&5
32270 ac_status=$?
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); }; } &&
32273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32275 (eval $ac_try) 2>&5
32276 ac_status=$?
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); }; }; then
32279 wx_cv_size_t_is_ulong=no
32280else
32281 echo "$as_me: failed program was:" >&5
32282sed 's/^/| /' conftest.$ac_ext >&5
32283
32284wx_cv_size_t_is_ulong=yes
32285
32286fi
ac1cb8d3 32287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32288
32289fi
32290echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32291echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32292
32293 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32294 cat >>confdefs.h <<\_ACEOF
32295#define wxSIZE_T_IS_ULONG 1
32296_ACEOF
32297
32298 fi
32299fi
32300
32301ac_ext=c
32302ac_cpp='$CPP $CPPFLAGS'
32303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32305ac_compiler_gnu=$ac_cv_c_compiler_gnu
32306
32307
32308
32309echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32310echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32311if test "${wx_cv_struct_pw_gecos+set}" = set; then
32312 echo $ECHO_N "(cached) $ECHO_C" >&6
32313else
32314
32315 cat >conftest.$ac_ext <<_ACEOF
32316/* confdefs.h. */
32317_ACEOF
32318cat confdefs.h >>conftest.$ac_ext
32319cat >>conftest.$ac_ext <<_ACEOF
32320/* end confdefs.h. */
32321#include <pwd.h>
32322int
32323main ()
32324{
32325
32326 char *p;
32327 struct passwd *pw;
32328 p = pw->pw_gecos;
32329
32330 ;
32331 return 0;
32332}
32333_ACEOF
32334rm -f conftest.$ac_objext
32335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32336 (eval $ac_compile) 2>conftest.er1
a848cd7e 32337 ac_status=$?
ac1cb8d3
VS
32338 grep -v '^ *+' conftest.er1 >conftest.err
32339 rm -f conftest.er1
32340 cat conftest.err >&5
a848cd7e
SC
32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342 (exit $ac_status); } &&
dee1a63f
MB
32343 { ac_try='test -z "$ac_c_werror_flag"
32344 || test ! -s conftest.err'
ac1cb8d3
VS
32345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32346 (eval $ac_try) 2>&5
32347 ac_status=$?
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); }; } &&
32350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32352 (eval $ac_try) 2>&5
32353 ac_status=$?
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); }; }; then
32356
32357 wx_cv_struct_pw_gecos=yes
32358
32359else
32360 echo "$as_me: failed program was:" >&5
32361sed 's/^/| /' conftest.$ac_ext >&5
32362
32363
32364 wx_cv_struct_pw_gecos=no
32365
32366
32367fi
ac1cb8d3 32368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32369
32370
32371fi
32372echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32373echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32374
32375if test "$wx_cv_struct_pw_gecos" = "yes"; then
32376 cat >>confdefs.h <<\_ACEOF
32377#define HAVE_PW_GECOS 1
32378_ACEOF
32379
32380fi
32381
32382
47a7e797 32383if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32384 cat >>confdefs.h <<\_ACEOF
32385#define wxUSE_WCHAR_T 1
32386_ACEOF
32387
32388
32389 WCSLEN_FOUND=0
32390 WCHAR_LINK=
32391
32392for ac_func in wcslen
32393do
32394as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32395echo "$as_me:$LINENO: checking for $ac_func" >&5
32396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32397if eval "test \"\${$as_ac_var+set}\" = set"; then
32398 echo $ECHO_N "(cached) $ECHO_C" >&6
32399else
32400 cat >conftest.$ac_ext <<_ACEOF
32401/* confdefs.h. */
32402_ACEOF
32403cat confdefs.h >>conftest.$ac_ext
32404cat >>conftest.$ac_ext <<_ACEOF
32405/* end confdefs.h. */
ac1cb8d3
VS
32406/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32408#define $ac_func innocuous_$ac_func
32409
a848cd7e
SC
32410/* System header to define __stub macros and hopefully few prototypes,
32411 which can conflict with char $ac_func (); below.
32412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32413 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32414
a848cd7e
SC
32415#ifdef __STDC__
32416# include <limits.h>
32417#else
32418# include <assert.h>
32419#endif
ac1cb8d3
VS
32420
32421#undef $ac_func
32422
a848cd7e
SC
32423/* Override any gcc2 internal prototype to avoid an error. */
32424#ifdef __cplusplus
32425extern "C"
32426{
32427#endif
32428/* We use char because int might match the return type of a gcc2
32429 builtin and then its argument prototype would still apply. */
32430char $ac_func ();
32431/* The GNU C library defines this for functions which it implements
32432 to always fail with ENOSYS. Some functions are actually named
32433 something starting with __ and the normal name is an alias. */
32434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32435choke me
32436#else
32437char (*f) () = $ac_func;
32438#endif
32439#ifdef __cplusplus
32440}
32441#endif
32442
32443int
32444main ()
32445{
32446return f != $ac_func;
32447 ;
32448 return 0;
32449}
32450_ACEOF
32451rm -f conftest.$ac_objext conftest$ac_exeext
32452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32453 (eval $ac_link) 2>conftest.er1
a848cd7e 32454 ac_status=$?
ac1cb8d3
VS
32455 grep -v '^ *+' conftest.er1 >conftest.err
32456 rm -f conftest.er1
32457 cat conftest.err >&5
a848cd7e
SC
32458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32459 (exit $ac_status); } &&
dee1a63f
MB
32460 { ac_try='test -z "$ac_c_werror_flag"
32461 || test ! -s conftest.err'
ac1cb8d3
VS
32462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32463 (eval $ac_try) 2>&5
32464 ac_status=$?
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); }; } &&
32467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32469 (eval $ac_try) 2>&5
32470 ac_status=$?
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); }; }; then
32473 eval "$as_ac_var=yes"
32474else
32475 echo "$as_me: failed program was:" >&5
32476sed 's/^/| /' conftest.$ac_ext >&5
32477
32478eval "$as_ac_var=no"
32479fi
ac1cb8d3
VS
32480rm -f conftest.err conftest.$ac_objext \
32481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32482fi
32483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32484echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32485if test `eval echo '${'$as_ac_var'}'` = yes; then
32486 cat >>confdefs.h <<_ACEOF
32487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32488_ACEOF
32489 WCSLEN_FOUND=1
32490fi
32491done
32492
32493
32494 if test "$WCSLEN_FOUND" = 0; then
32495 if test "$TOOLKIT" = "MSW"; then
32496 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32497echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32498if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32499 echo $ECHO_N "(cached) $ECHO_C" >&6
32500else
32501 ac_check_lib_save_LIBS=$LIBS
32502LIBS="-lmsvcrt $LIBS"
32503cat >conftest.$ac_ext <<_ACEOF
32504/* confdefs.h. */
32505_ACEOF
32506cat confdefs.h >>conftest.$ac_ext
32507cat >>conftest.$ac_ext <<_ACEOF
32508/* end confdefs.h. */
32509
32510/* Override any gcc2 internal prototype to avoid an error. */
32511#ifdef __cplusplus
32512extern "C"
32513#endif
32514/* We use char because int might match the return type of a gcc2
32515 builtin and then its argument prototype would still apply. */
32516char wcslen ();
32517int
32518main ()
32519{
32520wcslen ();
32521 ;
32522 return 0;
32523}
32524_ACEOF
32525rm -f conftest.$ac_objext conftest$ac_exeext
32526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32527 (eval $ac_link) 2>conftest.er1
a848cd7e 32528 ac_status=$?
ac1cb8d3
VS
32529 grep -v '^ *+' conftest.er1 >conftest.err
32530 rm -f conftest.er1
32531 cat conftest.err >&5
a848cd7e
SC
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); } &&
dee1a63f
MB
32534 { ac_try='test -z "$ac_c_werror_flag"
32535 || test ! -s conftest.err'
ac1cb8d3
VS
32536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32537 (eval $ac_try) 2>&5
32538 ac_status=$?
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; } &&
32541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32543 (eval $ac_try) 2>&5
32544 ac_status=$?
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
32547 ac_cv_lib_msvcrt_wcslen=yes
32548else
32549 echo "$as_me: failed program was:" >&5
32550sed 's/^/| /' conftest.$ac_ext >&5
32551
32552ac_cv_lib_msvcrt_wcslen=no
32553fi
ac1cb8d3
VS
32554rm -f conftest.err conftest.$ac_objext \
32555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32556LIBS=$ac_check_lib_save_LIBS
32557fi
32558echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32559echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32560if test $ac_cv_lib_msvcrt_wcslen = yes; then
32561 WCHAR_OK=1
32562fi
32563
32564 else
32565 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32566echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32567if test "${ac_cv_lib_w_wcslen+set}" = set; then
32568 echo $ECHO_N "(cached) $ECHO_C" >&6
32569else
32570 ac_check_lib_save_LIBS=$LIBS
32571LIBS="-lw $LIBS"
32572cat >conftest.$ac_ext <<_ACEOF
32573/* confdefs.h. */
32574_ACEOF
32575cat confdefs.h >>conftest.$ac_ext
32576cat >>conftest.$ac_ext <<_ACEOF
32577/* end confdefs.h. */
32578
32579/* Override any gcc2 internal prototype to avoid an error. */
32580#ifdef __cplusplus
32581extern "C"
32582#endif
32583/* We use char because int might match the return type of a gcc2
32584 builtin and then its argument prototype would still apply. */
32585char wcslen ();
32586int
32587main ()
32588{
32589wcslen ();
32590 ;
32591 return 0;
32592}
32593_ACEOF
32594rm -f conftest.$ac_objext conftest$ac_exeext
32595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32596 (eval $ac_link) 2>conftest.er1
a848cd7e 32597 ac_status=$?
ac1cb8d3
VS
32598 grep -v '^ *+' conftest.er1 >conftest.err
32599 rm -f conftest.er1
32600 cat conftest.err >&5
a848cd7e
SC
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); } &&
dee1a63f
MB
32603 { ac_try='test -z "$ac_c_werror_flag"
32604 || test ! -s conftest.err'
ac1cb8d3
VS
32605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32606 (eval $ac_try) 2>&5
32607 ac_status=$?
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; } &&
32610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32612 (eval $ac_try) 2>&5
32613 ac_status=$?
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; }; then
32616 ac_cv_lib_w_wcslen=yes
32617else
32618 echo "$as_me: failed program was:" >&5
32619sed 's/^/| /' conftest.$ac_ext >&5
32620
32621ac_cv_lib_w_wcslen=no
32622fi
ac1cb8d3
VS
32623rm -f conftest.err conftest.$ac_objext \
32624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32625LIBS=$ac_check_lib_save_LIBS
32626fi
32627echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32628echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32629if test $ac_cv_lib_w_wcslen = yes; then
32630
32631 WCHAR_LINK=" -lw"
32632 WCSLEN_FOUND=1
32633
32634fi
32635
32636 fi
32637 fi
32638
32639 if test "$WCSLEN_FOUND" = 1; then
32640 cat >>confdefs.h <<\_ACEOF
32641#define HAVE_WCSLEN 1
32642_ACEOF
32643
32644 fi
32645
efdf6afe 32646 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32647 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32648 fi
32649
efdf6afe
VZ
32650 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32651echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32652if test "${ac_cv_type_mbstate_t+set}" = set; then
32653 echo $ECHO_N "(cached) $ECHO_C" >&6
32654else
32655 cat >conftest.$ac_ext <<_ACEOF
32656/* confdefs.h. */
32657_ACEOF
32658cat confdefs.h >>conftest.$ac_ext
32659cat >>conftest.$ac_ext <<_ACEOF
32660/* end confdefs.h. */
32661#include <wchar.h>
32662
32663int
32664main ()
32665{
32666if ((mbstate_t *) 0)
32667 return 0;
32668if (sizeof (mbstate_t))
32669 return 0;
32670 ;
32671 return 0;
32672}
32673_ACEOF
32674rm -f conftest.$ac_objext
32675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32676 (eval $ac_compile) 2>conftest.er1
32677 ac_status=$?
32678 grep -v '^ *+' conftest.er1 >conftest.err
32679 rm -f conftest.er1
32680 cat conftest.err >&5
32681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682 (exit $ac_status); } &&
dee1a63f
MB
32683 { ac_try='test -z "$ac_c_werror_flag"
32684 || test ! -s conftest.err'
efdf6afe
VZ
32685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32686 (eval $ac_try) 2>&5
32687 ac_status=$?
32688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689 (exit $ac_status); }; } &&
32690 { ac_try='test -s conftest.$ac_objext'
32691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32692 (eval $ac_try) 2>&5
32693 ac_status=$?
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); }; }; then
32696 ac_cv_type_mbstate_t=yes
32697else
32698 echo "$as_me: failed program was:" >&5
32699sed 's/^/| /' conftest.$ac_ext >&5
32700
32701ac_cv_type_mbstate_t=no
32702fi
32703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32704fi
32705echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32706echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32707if test $ac_cv_type_mbstate_t = yes; then
32708
32709cat >>confdefs.h <<_ACEOF
32710#define HAVE_MBSTATE_T 1
32711_ACEOF
32712
a848cd7e
SC
32713
32714for ac_func in wcsrtombs
32715do
32716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32717echo "$as_me:$LINENO: checking for $ac_func" >&5
32718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32719if eval "test \"\${$as_ac_var+set}\" = set"; then
32720 echo $ECHO_N "(cached) $ECHO_C" >&6
32721else
32722 cat >conftest.$ac_ext <<_ACEOF
32723/* confdefs.h. */
32724_ACEOF
32725cat confdefs.h >>conftest.$ac_ext
32726cat >>conftest.$ac_ext <<_ACEOF
32727/* end confdefs.h. */
ac1cb8d3
VS
32728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32730#define $ac_func innocuous_$ac_func
32731
a848cd7e
SC
32732/* System header to define __stub macros and hopefully few prototypes,
32733 which can conflict with char $ac_func (); below.
32734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32735 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32736
a848cd7e
SC
32737#ifdef __STDC__
32738# include <limits.h>
32739#else
32740# include <assert.h>
32741#endif
ac1cb8d3
VS
32742
32743#undef $ac_func
32744
a848cd7e
SC
32745/* Override any gcc2 internal prototype to avoid an error. */
32746#ifdef __cplusplus
32747extern "C"
32748{
32749#endif
32750/* We use char because int might match the return type of a gcc2
32751 builtin and then its argument prototype would still apply. */
32752char $ac_func ();
32753/* The GNU C library defines this for functions which it implements
32754 to always fail with ENOSYS. Some functions are actually named
32755 something starting with __ and the normal name is an alias. */
32756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32757choke me
32758#else
32759char (*f) () = $ac_func;
32760#endif
32761#ifdef __cplusplus
32762}
32763#endif
32764
32765int
32766main ()
32767{
32768return f != $ac_func;
32769 ;
32770 return 0;
32771}
32772_ACEOF
32773rm -f conftest.$ac_objext conftest$ac_exeext
32774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32775 (eval $ac_link) 2>conftest.er1
a848cd7e 32776 ac_status=$?
ac1cb8d3
VS
32777 grep -v '^ *+' conftest.er1 >conftest.err
32778 rm -f conftest.er1
32779 cat conftest.err >&5
a848cd7e
SC
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); } &&
dee1a63f
MB
32782 { ac_try='test -z "$ac_c_werror_flag"
32783 || test ! -s conftest.err'
ac1cb8d3
VS
32784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32785 (eval $ac_try) 2>&5
32786 ac_status=$?
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; } &&
32789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32791 (eval $ac_try) 2>&5
32792 ac_status=$?
32793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794 (exit $ac_status); }; }; then
32795 eval "$as_ac_var=yes"
32796else
32797 echo "$as_me: failed program was:" >&5
32798sed 's/^/| /' conftest.$ac_ext >&5
32799
32800eval "$as_ac_var=no"
32801fi
ac1cb8d3
VS
32802rm -f conftest.err conftest.$ac_objext \
32803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32804fi
32805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32807if test `eval echo '${'$as_ac_var'}'` = yes; then
32808 cat >>confdefs.h <<_ACEOF
32809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32810_ACEOF
32811
32812fi
32813done
32814
efdf6afe
VZ
32815fi
32816
a848cd7e
SC
32817else
32818 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32819echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32820fi
32821
32822
32823
32824ac_ext=cc
32825ac_cpp='$CXXCPP $CPPFLAGS'
32826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32829
32830
32831
4a767dd5
VZ
32832
32833for ac_func in snprintf vsnprintf
a848cd7e
SC
32834do
32835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32836echo "$as_me:$LINENO: checking for $ac_func" >&5
32837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32838if eval "test \"\${$as_ac_var+set}\" = set"; then
32839 echo $ECHO_N "(cached) $ECHO_C" >&6
32840else
32841 cat >conftest.$ac_ext <<_ACEOF
32842/* confdefs.h. */
32843_ACEOF
32844cat confdefs.h >>conftest.$ac_ext
32845cat >>conftest.$ac_ext <<_ACEOF
32846/* end confdefs.h. */
ac1cb8d3
VS
32847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32849#define $ac_func innocuous_$ac_func
32850
a848cd7e
SC
32851/* System header to define __stub macros and hopefully few prototypes,
32852 which can conflict with char $ac_func (); below.
32853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32854 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32855
a848cd7e
SC
32856#ifdef __STDC__
32857# include <limits.h>
32858#else
32859# include <assert.h>
32860#endif
ac1cb8d3
VS
32861
32862#undef $ac_func
32863
a848cd7e
SC
32864/* Override any gcc2 internal prototype to avoid an error. */
32865#ifdef __cplusplus
32866extern "C"
32867{
32868#endif
32869/* We use char because int might match the return type of a gcc2
32870 builtin and then its argument prototype would still apply. */
32871char $ac_func ();
32872/* The GNU C library defines this for functions which it implements
32873 to always fail with ENOSYS. Some functions are actually named
32874 something starting with __ and the normal name is an alias. */
32875#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32876choke me
32877#else
32878char (*f) () = $ac_func;
32879#endif
32880#ifdef __cplusplus
32881}
32882#endif
32883
32884int
32885main ()
32886{
32887return f != $ac_func;
32888 ;
32889 return 0;
32890}
32891_ACEOF
32892rm -f conftest.$ac_objext conftest$ac_exeext
32893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32894 (eval $ac_link) 2>conftest.er1
a848cd7e 32895 ac_status=$?
ac1cb8d3
VS
32896 grep -v '^ *+' conftest.er1 >conftest.err
32897 rm -f conftest.er1
32898 cat conftest.err >&5
a848cd7e
SC
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); } &&
dee1a63f
MB
32901 { ac_try='test -z "$ac_cxx_werror_flag"
32902 || test ! -s conftest.err'
ac1cb8d3
VS
32903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32904 (eval $ac_try) 2>&5
32905 ac_status=$?
32906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32907 (exit $ac_status); }; } &&
32908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32910 (eval $ac_try) 2>&5
32911 ac_status=$?
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); }; }; then
32914 eval "$as_ac_var=yes"
32915else
32916 echo "$as_me: failed program was:" >&5
32917sed 's/^/| /' conftest.$ac_ext >&5
32918
32919eval "$as_ac_var=no"
32920fi
ac1cb8d3
VS
32921rm -f conftest.err conftest.$ac_objext \
32922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32923fi
32924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32926if test `eval echo '${'$as_ac_var'}'` = yes; then
32927 cat >>confdefs.h <<_ACEOF
32928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32929_ACEOF
32930
32931fi
32932done
32933
32934
32935if test "$ac_cv_func_vsnprintf" = "yes"; then
32936 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32937echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32938if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32939 echo $ECHO_N "(cached) $ECHO_C" >&6
32940else
32941
efdf6afe 32942 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32943/* confdefs.h. */
32944_ACEOF
32945cat confdefs.h >>conftest.$ac_ext
32946cat >>conftest.$ac_ext <<_ACEOF
32947/* end confdefs.h. */
32948
32949 #include <stdio.h>
32950 #include <stdarg.h>
efdf6afe
VZ
32951 #ifdef __MSL__
32952 #if __MSL__ >= 0x6000
32953 namespace std {}
32954 using namespace std;
32955 #endif
32956 #endif
a848cd7e
SC
32957
32958int
32959main ()
32960{
32961
32962 char *buf;
32963 va_list ap;
62fa8b3a 32964 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
32965
32966 ;
32967 return 0;
32968}
32969_ACEOF
32970rm -f conftest.$ac_objext
32971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32972 (eval $ac_compile) 2>conftest.er1
32973 ac_status=$?
32974 grep -v '^ *+' conftest.er1 >conftest.err
32975 rm -f conftest.er1
32976 cat conftest.err >&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); } &&
dee1a63f
MB
32979 { ac_try='test -z "$ac_cxx_werror_flag"
32980 || test ! -s conftest.err'
c122b164
DE
32981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982 (eval $ac_try) 2>&5
32983 ac_status=$?
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; } &&
32986 { ac_try='test -s conftest.$ac_objext'
32987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988 (eval $ac_try) 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; }; then
32992 wx_cv_func_vsnprintf_decl=yes
32993else
32994 echo "$as_me: failed program was:" >&5
32995sed 's/^/| /' conftest.$ac_ext >&5
32996
a848cd7e
SC
32997wx_cv_func_vsnprintf_decl=no
32998
32999fi
ac1cb8d3 33000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33001
33002
33003fi
33004echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33005echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33006
33007 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33008 cat >>confdefs.h <<\_ACEOF
33009#define HAVE_VSNPRINTF_DECL 1
33010_ACEOF
33011
62fa8b3a
MW
33012
33013 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33014echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33015if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33016 echo $ECHO_N "(cached) $ECHO_C" >&6
33017else
33018
33019 cat >conftest.$ac_ext <<_ACEOF
33020/* confdefs.h. */
33021_ACEOF
33022cat confdefs.h >>conftest.$ac_ext
33023cat >>conftest.$ac_ext <<_ACEOF
33024/* end confdefs.h. */
33025
33026 #include <stdio.h>
33027 #include <stdarg.h>
33028 #ifdef __MSL__
33029 #if __MSL__ >= 0x6000
33030 namespace std {}
33031 using namespace std;
33032 #endif
33033 #endif
33034
33035int
33036main ()
33037{
33038
33039 char *buf;
33040 va_list ap;
33041 const char *fmt = "%s";
33042 vsnprintf(buf, 10u, fmt, ap);
33043
33044 ;
33045 return 0;
33046}
33047_ACEOF
33048rm -f conftest.$ac_objext
33049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33050 (eval $ac_compile) 2>conftest.er1
33051 ac_status=$?
33052 grep -v '^ *+' conftest.er1 >conftest.err
33053 rm -f conftest.er1
33054 cat conftest.err >&5
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); } &&
dee1a63f
MB
33057 { ac_try='test -z "$ac_cxx_werror_flag"
33058 || test ! -s conftest.err'
62fa8b3a
MW
33059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33060 (eval $ac_try) 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; } &&
33064 { ac_try='test -s conftest.$ac_objext'
33065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33066 (eval $ac_try) 2>&5
33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; }; then
33070 wx_cv_func_broken_vsnprintf_decl=no
33071else
33072 echo "$as_me: failed program was:" >&5
33073sed 's/^/| /' conftest.$ac_ext >&5
33074
33075wx_cv_func_broken_vsnprintf_decl=yes
33076
33077fi
33078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33079
33080
33081fi
33082echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33083echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33084
33085 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33086 cat >>confdefs.h <<\_ACEOF
33087#define HAVE_BROKEN_VSNPRINTF_DECL 1
33088_ACEOF
33089
33090 fi
a848cd7e
SC
33091 fi
33092fi
33093
4a767dd5
VZ
33094if test "$ac_cv_func_snprintf" = "yes"; then
33095 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33096echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33097if test "${wx_cv_func_snprintf_decl+set}" = set; then
33098 echo $ECHO_N "(cached) $ECHO_C" >&6
33099else
33100
33101 cat >conftest.$ac_ext <<_ACEOF
33102/* confdefs.h. */
33103_ACEOF
33104cat confdefs.h >>conftest.$ac_ext
33105cat >>conftest.$ac_ext <<_ACEOF
33106/* end confdefs.h. */
33107
33108 #include <stdio.h>
33109 #include <stdarg.h>
33110 #ifdef __MSL__
33111 #if __MSL__ >= 0x6000
33112 namespace std {}
33113 using namespace std;
33114 #endif
33115 #endif
33116
33117int
33118main ()
33119{
33120
33121 char *buf;
62fa8b3a 33122 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33123
33124 ;
33125 return 0;
33126}
33127_ACEOF
33128rm -f conftest.$ac_objext
33129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33130 (eval $ac_compile) 2>conftest.er1
33131 ac_status=$?
33132 grep -v '^ *+' conftest.er1 >conftest.err
33133 rm -f conftest.er1
33134 cat conftest.err >&5
33135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136 (exit $ac_status); } &&
dee1a63f
MB
33137 { ac_try='test -z "$ac_cxx_werror_flag"
33138 || test ! -s conftest.err'
4a767dd5
VZ
33139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33140 (eval $ac_try) 2>&5
33141 ac_status=$?
33142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143 (exit $ac_status); }; } &&
33144 { ac_try='test -s conftest.$ac_objext'
33145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33146 (eval $ac_try) 2>&5
33147 ac_status=$?
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); }; }; then
33150 wx_cv_func_snprintf_decl=yes
33151else
33152 echo "$as_me: failed program was:" >&5
33153sed 's/^/| /' conftest.$ac_ext >&5
33154
33155wx_cv_func_snprintf_decl=no
33156
33157fi
33158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33159
33160
33161fi
33162echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33163echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33164
33165 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33166 cat >>confdefs.h <<\_ACEOF
33167#define HAVE_SNPRINTF_DECL 1
33168_ACEOF
33169
62fa8b3a
MW
33170
33171 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33172echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33173if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33174 echo $ECHO_N "(cached) $ECHO_C" >&6
33175else
33176
33177 cat >conftest.$ac_ext <<_ACEOF
33178/* confdefs.h. */
33179_ACEOF
33180cat confdefs.h >>conftest.$ac_ext
33181cat >>conftest.$ac_ext <<_ACEOF
33182/* end confdefs.h. */
33183
33184 #include <stdio.h>
33185 #include <stdarg.h>
33186 #ifdef __MSL__
33187 #if __MSL__ >= 0x6000
33188 namespace std {}
33189 using namespace std;
33190 #endif
33191 #endif
33192
33193int
33194main ()
33195{
33196
33197 char *buf;
33198 const char *fmt = "%s";
33199 snprintf(buf, 10u, fmt, "wx");
33200
33201 ;
33202 return 0;
33203}
33204_ACEOF
33205rm -f conftest.$ac_objext
33206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33207 (eval $ac_compile) 2>conftest.er1
33208 ac_status=$?
33209 grep -v '^ *+' conftest.er1 >conftest.err
33210 rm -f conftest.er1
33211 cat conftest.err >&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); } &&
dee1a63f
MB
33214 { ac_try='test -z "$ac_cxx_werror_flag"
33215 || test ! -s conftest.err'
62fa8b3a
MW
33216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217 (eval $ac_try) 2>&5
33218 ac_status=$?
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); }; } &&
33221 { ac_try='test -s conftest.$ac_objext'
33222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223 (eval $ac_try) 2>&5
33224 ac_status=$?
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; }; then
33227 wx_cv_func_broken_snprintf_decl=no
33228else
33229 echo "$as_me: failed program was:" >&5
33230sed 's/^/| /' conftest.$ac_ext >&5
33231
33232wx_cv_func_broken_snprintf_decl=yes
33233
33234fi
33235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33236
33237
33238fi
33239echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33240echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33241
33242 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33243 cat >>confdefs.h <<\_ACEOF
33244#define HAVE_BROKEN_SNPRINTF_DECL 1
33245_ACEOF
33246
33247 fi
4a767dd5
VZ
33248 fi
33249fi
33250
a848cd7e
SC
33251if test "$wxUSE_UNICODE" = yes; then
33252
33253
33254
fbe47c7b
VS
33255
33256
33257
33258for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33259do
33260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33261echo "$as_me:$LINENO: checking for $ac_func" >&5
33262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33263if eval "test \"\${$as_ac_var+set}\" = set"; then
33264 echo $ECHO_N "(cached) $ECHO_C" >&6
33265else
33266 cat >conftest.$ac_ext <<_ACEOF
33267/* confdefs.h. */
33268_ACEOF
33269cat confdefs.h >>conftest.$ac_ext
33270cat >>conftest.$ac_ext <<_ACEOF
33271/* end confdefs.h. */
ac1cb8d3
VS
33272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33274#define $ac_func innocuous_$ac_func
33275
a848cd7e
SC
33276/* System header to define __stub macros and hopefully few prototypes,
33277 which can conflict with char $ac_func (); below.
33278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33279 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33280
a848cd7e
SC
33281#ifdef __STDC__
33282# include <limits.h>
33283#else
33284# include <assert.h>
33285#endif
ac1cb8d3
VS
33286
33287#undef $ac_func
33288
a848cd7e
SC
33289/* Override any gcc2 internal prototype to avoid an error. */
33290#ifdef __cplusplus
33291extern "C"
33292{
33293#endif
33294/* We use char because int might match the return type of a gcc2
33295 builtin and then its argument prototype would still apply. */
33296char $ac_func ();
33297/* The GNU C library defines this for functions which it implements
33298 to always fail with ENOSYS. Some functions are actually named
33299 something starting with __ and the normal name is an alias. */
33300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33301choke me
33302#else
33303char (*f) () = $ac_func;
33304#endif
33305#ifdef __cplusplus
33306}
33307#endif
33308
33309int
33310main ()
33311{
33312return f != $ac_func;
33313 ;
33314 return 0;
33315}
33316_ACEOF
33317rm -f conftest.$ac_objext conftest$ac_exeext
33318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33319 (eval $ac_link) 2>conftest.er1
a848cd7e 33320 ac_status=$?
ac1cb8d3
VS
33321 grep -v '^ *+' conftest.er1 >conftest.err
33322 rm -f conftest.er1
33323 cat conftest.err >&5
a848cd7e
SC
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); } &&
dee1a63f
MB
33326 { ac_try='test -z "$ac_cxx_werror_flag"
33327 || test ! -s conftest.err'
ac1cb8d3
VS
33328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329 (eval $ac_try) 2>&5
33330 ac_status=$?
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; } &&
33333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33335 (eval $ac_try) 2>&5
33336 ac_status=$?
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); }; }; then
33339 eval "$as_ac_var=yes"
33340else
33341 echo "$as_me: failed program was:" >&5
33342sed 's/^/| /' conftest.$ac_ext >&5
33343
33344eval "$as_ac_var=no"
33345fi
ac1cb8d3
VS
33346rm -f conftest.err conftest.$ac_objext \
33347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33348fi
33349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33350echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33351if test `eval echo '${'$as_ac_var'}'` = yes; then
33352 cat >>confdefs.h <<_ACEOF
33353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33354_ACEOF
33355
33356fi
33357done
33358
33359
33360 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33361echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33362 cat >conftest.$ac_ext <<_ACEOF
33363/* confdefs.h. */
33364_ACEOF
33365cat confdefs.h >>conftest.$ac_ext
33366cat >>conftest.$ac_ext <<_ACEOF
33367/* end confdefs.h. */
33368#include <wchar.h>
33369int
33370main ()
33371{
33372&_vsnwprintf;
33373 ;
33374 return 0;
33375}
33376_ACEOF
33377rm -f conftest.$ac_objext
33378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33379 (eval $ac_compile) 2>conftest.er1
a848cd7e 33380 ac_status=$?
ac1cb8d3
VS
33381 grep -v '^ *+' conftest.er1 >conftest.err
33382 rm -f conftest.er1
33383 cat conftest.err >&5
a848cd7e
SC
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); } &&
dee1a63f
MB
33386 { ac_try='test -z "$ac_cxx_werror_flag"
33387 || test ! -s conftest.err'
ac1cb8d3
VS
33388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33389 (eval $ac_try) 2>&5
33390 ac_status=$?
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); }; } &&
33393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33395 (eval $ac_try) 2>&5
33396 ac_status=$?
33397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398 (exit $ac_status); }; }; then
33399 echo "$as_me:$LINENO: result: yes" >&5
33400echo "${ECHO_T}yes" >&6
33401 cat >>confdefs.h <<\_ACEOF
33402#define HAVE__VSNWPRINTF 1
33403_ACEOF
33404
33405else
33406 echo "$as_me: failed program was:" >&5
33407sed 's/^/| /' conftest.$ac_ext >&5
33408
33409echo "$as_me:$LINENO: result: no" >&5
33410echo "${ECHO_T}no" >&6
33411fi
ac1cb8d3 33412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33413fi
33414
33415ac_ext=c
33416ac_cpp='$CPP $CPPFLAGS'
33417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33419ac_compiler_gnu=$ac_cv_c_compiler_gnu
33420
33421
6ebeb4c7
VZ
33422if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33423
33424for ac_func in fnmatch
33425do
33426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33427echo "$as_me:$LINENO: checking for $ac_func" >&5
33428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33429if eval "test \"\${$as_ac_var+set}\" = set"; then
33430 echo $ECHO_N "(cached) $ECHO_C" >&6
33431else
33432 cat >conftest.$ac_ext <<_ACEOF
33433/* confdefs.h. */
33434_ACEOF
33435cat confdefs.h >>conftest.$ac_ext
33436cat >>conftest.$ac_ext <<_ACEOF
33437/* end confdefs.h. */
33438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33440#define $ac_func innocuous_$ac_func
33441
33442/* System header to define __stub macros and hopefully few prototypes,
33443 which can conflict with char $ac_func (); below.
33444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33445 <limits.h> exists even on freestanding compilers. */
33446
33447#ifdef __STDC__
33448# include <limits.h>
33449#else
33450# include <assert.h>
33451#endif
33452
33453#undef $ac_func
33454
33455/* Override any gcc2 internal prototype to avoid an error. */
33456#ifdef __cplusplus
33457extern "C"
33458{
33459#endif
33460/* We use char because int might match the return type of a gcc2
33461 builtin and then its argument prototype would still apply. */
33462char $ac_func ();
33463/* The GNU C library defines this for functions which it implements
33464 to always fail with ENOSYS. Some functions are actually named
33465 something starting with __ and the normal name is an alias. */
33466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33467choke me
33468#else
33469char (*f) () = $ac_func;
33470#endif
33471#ifdef __cplusplus
33472}
33473#endif
33474
33475int
33476main ()
33477{
33478return f != $ac_func;
33479 ;
33480 return 0;
33481}
33482_ACEOF
33483rm -f conftest.$ac_objext conftest$ac_exeext
33484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33485 (eval $ac_link) 2>conftest.er1
33486 ac_status=$?
33487 grep -v '^ *+' conftest.er1 >conftest.err
33488 rm -f conftest.er1
33489 cat conftest.err >&5
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); } &&
dee1a63f
MB
33492 { ac_try='test -z "$ac_c_werror_flag"
33493 || test ! -s conftest.err'
6ebeb4c7
VZ
33494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33495 (eval $ac_try) 2>&5
33496 ac_status=$?
33497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498 (exit $ac_status); }; } &&
33499 { ac_try='test -s conftest$ac_exeext'
33500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33501 (eval $ac_try) 2>&5
33502 ac_status=$?
33503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504 (exit $ac_status); }; }; then
33505 eval "$as_ac_var=yes"
33506else
33507 echo "$as_me: failed program was:" >&5
33508sed 's/^/| /' conftest.$ac_ext >&5
33509
33510eval "$as_ac_var=no"
33511fi
33512rm -f conftest.err conftest.$ac_objext \
33513 conftest$ac_exeext conftest.$ac_ext
33514fi
33515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33516echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33517if test `eval echo '${'$as_ac_var'}'` = yes; then
33518 cat >>confdefs.h <<_ACEOF
33519#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33520_ACEOF
33521
33522fi
33523done
33524
33525fi
33526
33527if test "$wxUSE_FILE" = "yes"; then
33528
33529for ac_func in fsync
33530do
33531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33532echo "$as_me:$LINENO: checking for $ac_func" >&5
33533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33534if eval "test \"\${$as_ac_var+set}\" = set"; then
33535 echo $ECHO_N "(cached) $ECHO_C" >&6
33536else
33537 cat >conftest.$ac_ext <<_ACEOF
33538/* confdefs.h. */
33539_ACEOF
33540cat confdefs.h >>conftest.$ac_ext
33541cat >>conftest.$ac_ext <<_ACEOF
33542/* end confdefs.h. */
33543/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33545#define $ac_func innocuous_$ac_func
33546
33547/* System header to define __stub macros and hopefully few prototypes,
33548 which can conflict with char $ac_func (); below.
33549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33550 <limits.h> exists even on freestanding compilers. */
33551
33552#ifdef __STDC__
33553# include <limits.h>
33554#else
33555# include <assert.h>
33556#endif
33557
33558#undef $ac_func
33559
33560/* Override any gcc2 internal prototype to avoid an error. */
33561#ifdef __cplusplus
33562extern "C"
33563{
33564#endif
33565/* We use char because int might match the return type of a gcc2
33566 builtin and then its argument prototype would still apply. */
33567char $ac_func ();
33568/* The GNU C library defines this for functions which it implements
33569 to always fail with ENOSYS. Some functions are actually named
33570 something starting with __ and the normal name is an alias. */
33571#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33572choke me
33573#else
33574char (*f) () = $ac_func;
33575#endif
33576#ifdef __cplusplus
33577}
33578#endif
33579
33580int
33581main ()
33582{
33583return f != $ac_func;
33584 ;
33585 return 0;
33586}
33587_ACEOF
33588rm -f conftest.$ac_objext conftest$ac_exeext
33589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33590 (eval $ac_link) 2>conftest.er1
33591 ac_status=$?
33592 grep -v '^ *+' conftest.er1 >conftest.err
33593 rm -f conftest.er1
33594 cat conftest.err >&5
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); } &&
dee1a63f
MB
33597 { ac_try='test -z "$ac_c_werror_flag"
33598 || test ! -s conftest.err'
6ebeb4c7
VZ
33599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33600 (eval $ac_try) 2>&5
33601 ac_status=$?
33602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); }; } &&
33604 { ac_try='test -s conftest$ac_exeext'
33605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33606 (eval $ac_try) 2>&5
33607 ac_status=$?
33608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609 (exit $ac_status); }; }; then
33610 eval "$as_ac_var=yes"
33611else
33612 echo "$as_me: failed program was:" >&5
33613sed 's/^/| /' conftest.$ac_ext >&5
33614
33615eval "$as_ac_var=no"
33616fi
33617rm -f conftest.err conftest.$ac_objext \
33618 conftest$ac_exeext conftest.$ac_ext
33619fi
33620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33621echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33622if test `eval echo '${'$as_ac_var'}'` = yes; then
33623 cat >>confdefs.h <<_ACEOF
33624#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33625_ACEOF
33626
33627fi
33628done
33629
33630fi
a848cd7e
SC
33631
33632
33633if test "$TOOLKIT" != "MSW"; then
33634
33635
33636
33637
33638ac_ext=cc
33639ac_cpp='$CXXCPP $CPPFLAGS'
33640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33643
33644
33645
33646
33647# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33648if test "${with_libiconv_prefix+set}" = set; then
33649 withval="$with_libiconv_prefix"
33650
33651 for dir in `echo "$withval" | tr : ' '`; do
33652 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33653 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33654 done
33655
33656fi;
33657
33658 echo "$as_me:$LINENO: checking for iconv" >&5
33659echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33660if test "${am_cv_func_iconv+set}" = set; then
33661 echo $ECHO_N "(cached) $ECHO_C" >&6
33662else
33663
33664 am_cv_func_iconv="no, consider installing GNU libiconv"
33665 am_cv_lib_iconv=no
33666 cat >conftest.$ac_ext <<_ACEOF
33667/* confdefs.h. */
33668_ACEOF
33669cat confdefs.h >>conftest.$ac_ext
33670cat >>conftest.$ac_ext <<_ACEOF
33671/* end confdefs.h. */
33672#include <stdlib.h>
33673#include <iconv.h>
33674int
33675main ()
33676{
33677iconv_t cd = iconv_open("","");
33678 iconv(cd,NULL,NULL,NULL,NULL);
33679 iconv_close(cd);
33680 ;
33681 return 0;
33682}
33683_ACEOF
33684rm -f conftest.$ac_objext conftest$ac_exeext
33685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33686 (eval $ac_link) 2>conftest.er1
a848cd7e 33687 ac_status=$?
ac1cb8d3
VS
33688 grep -v '^ *+' conftest.er1 >conftest.err
33689 rm -f conftest.er1
33690 cat conftest.err >&5
a848cd7e
SC
33691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692 (exit $ac_status); } &&
dee1a63f
MB
33693 { ac_try='test -z "$ac_cxx_werror_flag"
33694 || test ! -s conftest.err'
ac1cb8d3
VS
33695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33696 (eval $ac_try) 2>&5
33697 ac_status=$?
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); }; } &&
33700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33702 (eval $ac_try) 2>&5
33703 ac_status=$?
33704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33705 (exit $ac_status); }; }; then
33706 am_cv_func_iconv=yes
33707else
33708 echo "$as_me: failed program was:" >&5
33709sed 's/^/| /' conftest.$ac_ext >&5
33710
33711fi
ac1cb8d3
VS
33712rm -f conftest.err conftest.$ac_objext \
33713 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33714 if test "$am_cv_func_iconv" != yes; then
33715 am_save_LIBS="$LIBS"
33716 LIBS="$LIBS -liconv"
33717 cat >conftest.$ac_ext <<_ACEOF
33718/* confdefs.h. */
33719_ACEOF
33720cat confdefs.h >>conftest.$ac_ext
33721cat >>conftest.$ac_ext <<_ACEOF
33722/* end confdefs.h. */
33723#include <stdlib.h>
33724#include <iconv.h>
33725int
33726main ()
33727{
33728iconv_t cd = iconv_open("","");
33729 iconv(cd,NULL,NULL,NULL,NULL);
33730 iconv_close(cd);
33731 ;
33732 return 0;
33733}
33734_ACEOF
33735rm -f conftest.$ac_objext conftest$ac_exeext
33736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33737 (eval $ac_link) 2>conftest.er1
a848cd7e 33738 ac_status=$?
ac1cb8d3
VS
33739 grep -v '^ *+' conftest.er1 >conftest.err
33740 rm -f conftest.er1
33741 cat conftest.err >&5
a848cd7e
SC
33742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33743 (exit $ac_status); } &&
dee1a63f
MB
33744 { ac_try='test -z "$ac_cxx_werror_flag"
33745 || test ! -s conftest.err'
ac1cb8d3
VS
33746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33747 (eval $ac_try) 2>&5
33748 ac_status=$?
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); }; } &&
33751 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33753 (eval $ac_try) 2>&5
33754 ac_status=$?
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); }; }; then
33757 am_cv_lib_iconv=yes
33758 am_cv_func_iconv=yes
33759else
33760 echo "$as_me: failed program was:" >&5
33761sed 's/^/| /' conftest.$ac_ext >&5
33762
33763fi
ac1cb8d3
VS
33764rm -f conftest.err conftest.$ac_objext \
33765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33766 LIBS="$am_save_LIBS"
33767 fi
33768
33769fi
33770echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33771echo "${ECHO_T}$am_cv_func_iconv" >&6
33772 if test "$am_cv_func_iconv" = yes; then
33773
33774cat >>confdefs.h <<\_ACEOF
33775#define HAVE_ICONV 1
33776_ACEOF
33777
33778 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33779echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33780if test "${wx_cv_func_iconv_const+set}" = set; then
33781 echo $ECHO_N "(cached) $ECHO_C" >&6
33782else
33783 cat >conftest.$ac_ext <<_ACEOF
33784/* confdefs.h. */
33785_ACEOF
33786cat confdefs.h >>conftest.$ac_ext
33787cat >>conftest.$ac_ext <<_ACEOF
33788/* end confdefs.h. */
33789
33790#include <stdlib.h>
33791#include <iconv.h>
33792extern
33793#ifdef __cplusplus
33794"C"
33795#endif
33796#if defined(__STDC__) || defined(__cplusplus)
33797size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33798#else
33799size_t iconv();
33800#endif
33801
33802int
33803main ()
33804{
33805
33806 ;
33807 return 0;
33808}
33809_ACEOF
33810rm -f conftest.$ac_objext
33811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33812 (eval $ac_compile) 2>conftest.er1
a848cd7e 33813 ac_status=$?
ac1cb8d3
VS
33814 grep -v '^ *+' conftest.er1 >conftest.err
33815 rm -f conftest.er1
33816 cat conftest.err >&5
a848cd7e
SC
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); } &&
dee1a63f
MB
33819 { ac_try='test -z "$ac_cxx_werror_flag"
33820 || test ! -s conftest.err'
ac1cb8d3
VS
33821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33822 (eval $ac_try) 2>&5
33823 ac_status=$?
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); }; } &&
33826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33828 (eval $ac_try) 2>&5
33829 ac_status=$?
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); }; }; then
33832 wx_cv_func_iconv_const="no"
33833else
33834 echo "$as_me: failed program was:" >&5
33835sed 's/^/| /' conftest.$ac_ext >&5
33836
33837wx_cv_func_iconv_const="yes"
33838
33839fi
ac1cb8d3 33840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33841
33842fi
33843echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33844echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33845
33846 iconv_const=
33847 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33848 iconv_const="const"
33849 fi
33850
33851
33852cat >>confdefs.h <<_ACEOF
33853#define ICONV_CONST $iconv_const
33854_ACEOF
33855
33856 fi
33857 LIBICONV=
33858 if test "$am_cv_lib_iconv" = yes; then
33859 LIBICONV="-liconv"
33860 fi
33861
33862
33863LIBS="$LIBICONV $LIBS"
33864ac_ext=c
33865ac_cpp='$CPP $CPPFLAGS'
33866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33868ac_compiler_gnu=$ac_cv_c_compiler_gnu
33869
33870
33871if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33872
33873for ac_func in sigaction
33874do
33875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33876echo "$as_me:$LINENO: checking for $ac_func" >&5
33877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33878if eval "test \"\${$as_ac_var+set}\" = set"; then
33879 echo $ECHO_N "(cached) $ECHO_C" >&6
33880else
33881 cat >conftest.$ac_ext <<_ACEOF
33882/* confdefs.h. */
33883_ACEOF
33884cat confdefs.h >>conftest.$ac_ext
33885cat >>conftest.$ac_ext <<_ACEOF
33886/* end confdefs.h. */
ac1cb8d3
VS
33887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33889#define $ac_func innocuous_$ac_func
33890
a848cd7e
SC
33891/* System header to define __stub macros and hopefully few prototypes,
33892 which can conflict with char $ac_func (); below.
33893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33894 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33895
a848cd7e
SC
33896#ifdef __STDC__
33897# include <limits.h>
33898#else
33899# include <assert.h>
33900#endif
ac1cb8d3
VS
33901
33902#undef $ac_func
33903
a848cd7e
SC
33904/* Override any gcc2 internal prototype to avoid an error. */
33905#ifdef __cplusplus
33906extern "C"
33907{
33908#endif
33909/* We use char because int might match the return type of a gcc2
33910 builtin and then its argument prototype would still apply. */
33911char $ac_func ();
33912/* The GNU C library defines this for functions which it implements
33913 to always fail with ENOSYS. Some functions are actually named
33914 something starting with __ and the normal name is an alias. */
33915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33916choke me
33917#else
33918char (*f) () = $ac_func;
33919#endif
33920#ifdef __cplusplus
33921}
33922#endif
33923
33924int
33925main ()
33926{
33927return f != $ac_func;
33928 ;
33929 return 0;
33930}
33931_ACEOF
33932rm -f conftest.$ac_objext conftest$ac_exeext
33933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33934 (eval $ac_link) 2>conftest.er1
a848cd7e 33935 ac_status=$?
ac1cb8d3
VS
33936 grep -v '^ *+' conftest.er1 >conftest.err
33937 rm -f conftest.er1
33938 cat conftest.err >&5
a848cd7e
SC
33939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940 (exit $ac_status); } &&
dee1a63f
MB
33941 { ac_try='test -z "$ac_c_werror_flag"
33942 || test ! -s conftest.err'
ac1cb8d3
VS
33943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33944 (eval $ac_try) 2>&5
33945 ac_status=$?
33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947 (exit $ac_status); }; } &&
33948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33950 (eval $ac_try) 2>&5
33951 ac_status=$?
33952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33953 (exit $ac_status); }; }; then
33954 eval "$as_ac_var=yes"
33955else
33956 echo "$as_me: failed program was:" >&5
33957sed 's/^/| /' conftest.$ac_ext >&5
33958
33959eval "$as_ac_var=no"
33960fi
ac1cb8d3
VS
33961rm -f conftest.err conftest.$ac_objext \
33962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33963fi
33964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33966if test `eval echo '${'$as_ac_var'}'` = yes; then
33967 cat >>confdefs.h <<_ACEOF
33968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33969_ACEOF
33970
33971fi
33972done
33973
33974
33975 if test "$ac_cv_func_sigaction" = "no"; then
33976 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33977echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33978 wxUSE_ON_FATAL_EXCEPTION=no
33979 fi
33980
33981 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33982
33983
33984 ac_ext=cc
33985ac_cpp='$CXXCPP $CPPFLAGS'
33986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33989
33990
33991 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33992echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33993if test "${wx_cv_type_sa_handler+set}" = set; then
33994 echo $ECHO_N "(cached) $ECHO_C" >&6
33995else
33996
33997 cat >conftest.$ac_ext <<_ACEOF
33998/* confdefs.h. */
33999_ACEOF
34000cat confdefs.h >>conftest.$ac_ext
34001cat >>conftest.$ac_ext <<_ACEOF
34002/* end confdefs.h. */
34003#include <signal.h>
34004int
34005main ()
34006{
34007
34008 extern void testSigHandler(int);
34009
34010 struct sigaction sa;
34011 sa.sa_handler = testSigHandler;
34012
34013 ;
34014 return 0;
34015}
34016_ACEOF
34017rm -f conftest.$ac_objext
34018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34019 (eval $ac_compile) 2>conftest.er1
a848cd7e 34020 ac_status=$?
ac1cb8d3
VS
34021 grep -v '^ *+' conftest.er1 >conftest.err
34022 rm -f conftest.er1
34023 cat conftest.err >&5
a848cd7e
SC
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); } &&
dee1a63f
MB
34026 { ac_try='test -z "$ac_cxx_werror_flag"
34027 || test ! -s conftest.err'
ac1cb8d3
VS
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34030 ac_status=$?
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; } &&
34033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035 (eval $ac_try) 2>&5
34036 ac_status=$?
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); }; }; then
34039
34040 wx_cv_type_sa_handler=int
34041
34042else
34043 echo "$as_me: failed program was:" >&5
34044sed 's/^/| /' conftest.$ac_ext >&5
34045
34046
34047 wx_cv_type_sa_handler=void
34048
34049fi
ac1cb8d3 34050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34051
34052fi
34053echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34054echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34055
34056 ac_ext=c
34057ac_cpp='$CPP $CPPFLAGS'
34058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34060ac_compiler_gnu=$ac_cv_c_compiler_gnu
34061
34062
34063 cat >>confdefs.h <<_ACEOF
34064#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34065_ACEOF
34066
34067 fi
34068fi
34069
eaff0f0d
VZ
34070if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34071
34072
34073 ac_ext=cc
34074ac_cpp='$CXXCPP $CPPFLAGS'
34075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34078
34079
34080 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34081echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34082if test "${wx_cv_func_backtrace+set}" = set; then
34083 echo $ECHO_N "(cached) $ECHO_C" >&6
34084else
34085
34086 cat >conftest.$ac_ext <<_ACEOF
34087/* confdefs.h. */
34088_ACEOF
34089cat confdefs.h >>conftest.$ac_ext
34090cat >>conftest.$ac_ext <<_ACEOF
34091/* end confdefs.h. */
34092#include <execinfo.h>
34093int
34094main ()
34095{
34096
34097 void *trace[1];
34098 char **messages;
34099
34100 backtrace(trace, 1);
34101 messages = backtrace_symbols(trace, 1);
34102
34103 ;
34104 return 0;
34105}
34106_ACEOF
34107rm -f conftest.$ac_objext
34108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34109 (eval $ac_compile) 2>conftest.er1
34110 ac_status=$?
34111 grep -v '^ *+' conftest.er1 >conftest.err
34112 rm -f conftest.er1
34113 cat conftest.err >&5
34114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115 (exit $ac_status); } &&
dee1a63f
MB
34116 { ac_try='test -z "$ac_cxx_werror_flag"
34117 || test ! -s conftest.err'
eaff0f0d
VZ
34118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34119 (eval $ac_try) 2>&5
34120 ac_status=$?
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); }; } &&
34123 { ac_try='test -s conftest.$ac_objext'
34124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34125 (eval $ac_try) 2>&5
34126 ac_status=$?
34127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 (exit $ac_status); }; }; then
34129 wx_cv_func_backtrace=yes
34130else
34131 echo "$as_me: failed program was:" >&5
34132sed 's/^/| /' conftest.$ac_ext >&5
34133
34134wx_cv_func_backtrace=no
34135
34136fi
34137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34138
34139
34140fi
34141echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34142echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34143
34144
34145 if test "$wx_cv_func_backtrace" = "no"; then
34146 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34147echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34148 wxUSE_STACKWALKER=no
34149 else
34150 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34151echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34152if test "${wx_cv_func_cxa_demangle+set}" = set; then
34153 echo $ECHO_N "(cached) $ECHO_C" >&6
34154else
34155
34156 cat >conftest.$ac_ext <<_ACEOF
34157/* confdefs.h. */
34158_ACEOF
34159cat confdefs.h >>conftest.$ac_ext
34160cat >>conftest.$ac_ext <<_ACEOF
34161/* end confdefs.h. */
34162#include <cxxabi.h>
34163int
34164main ()
34165{
34166
34167 int rc;
34168 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34169
34170 ;
34171 return 0;
34172}
34173_ACEOF
dfe0c803
JS
34174rm -f conftest.$ac_objext conftest$ac_exeext
34175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34176 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34177 ac_status=$?
34178 grep -v '^ *+' conftest.er1 >conftest.err
34179 rm -f conftest.er1
34180 cat conftest.err >&5
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); } &&
dee1a63f
MB
34183 { ac_try='test -z "$ac_cxx_werror_flag"
34184 || test ! -s conftest.err'
eaff0f0d
VZ
34185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34186 (eval $ac_try) 2>&5
34187 ac_status=$?
34188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); }; } &&
dfe0c803 34190 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34192 (eval $ac_try) 2>&5
34193 ac_status=$?
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195 (exit $ac_status); }; }; then
34196 wx_cv_func_cxa_demangle=yes
34197else
34198 echo "$as_me: failed program was:" >&5
34199sed 's/^/| /' conftest.$ac_ext >&5
34200
34201wx_cv_func_cxa_demangle=no
34202
34203fi
dfe0c803
JS
34204rm -f conftest.err conftest.$ac_objext \
34205 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34206
34207
34208fi
34209echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34210echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34211
34212 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34213 cat >>confdefs.h <<\_ACEOF
34214#define HAVE_CXA_DEMANGLE 1
34215_ACEOF
34216
34217 fi
34218 fi
34219
34220 ac_ext=c
34221ac_cpp='$CPP $CPPFLAGS'
34222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34224ac_compiler_gnu=$ac_cv_c_compiler_gnu
34225
34226fi
34227
898beab1
DE
34228if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34229 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34230echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34231 wxUSE_STACKWALKER=no
34232fi
34233
34234
a848cd7e
SC
34235
34236
34237for ac_func in mkstemp mktemp
34238do
34239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34240echo "$as_me:$LINENO: checking for $ac_func" >&5
34241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34242if eval "test \"\${$as_ac_var+set}\" = set"; then
34243 echo $ECHO_N "(cached) $ECHO_C" >&6
34244else
34245 cat >conftest.$ac_ext <<_ACEOF
34246/* confdefs.h. */
34247_ACEOF
34248cat confdefs.h >>conftest.$ac_ext
34249cat >>conftest.$ac_ext <<_ACEOF
34250/* end confdefs.h. */
ac1cb8d3
VS
34251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34253#define $ac_func innocuous_$ac_func
34254
a848cd7e
SC
34255/* System header to define __stub macros and hopefully few prototypes,
34256 which can conflict with char $ac_func (); below.
34257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34258 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34259
a848cd7e
SC
34260#ifdef __STDC__
34261# include <limits.h>
34262#else
34263# include <assert.h>
34264#endif
ac1cb8d3
VS
34265
34266#undef $ac_func
34267
a848cd7e
SC
34268/* Override any gcc2 internal prototype to avoid an error. */
34269#ifdef __cplusplus
34270extern "C"
34271{
34272#endif
34273/* We use char because int might match the return type of a gcc2
34274 builtin and then its argument prototype would still apply. */
34275char $ac_func ();
34276/* The GNU C library defines this for functions which it implements
34277 to always fail with ENOSYS. Some functions are actually named
34278 something starting with __ and the normal name is an alias. */
34279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34280choke me
34281#else
34282char (*f) () = $ac_func;
34283#endif
34284#ifdef __cplusplus
34285}
34286#endif
34287
34288int
34289main ()
34290{
34291return f != $ac_func;
34292 ;
34293 return 0;
34294}
34295_ACEOF
34296rm -f conftest.$ac_objext conftest$ac_exeext
34297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34298 (eval $ac_link) 2>conftest.er1
a848cd7e 34299 ac_status=$?
ac1cb8d3
VS
34300 grep -v '^ *+' conftest.er1 >conftest.err
34301 rm -f conftest.er1
34302 cat conftest.err >&5
a848cd7e
SC
34303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34304 (exit $ac_status); } &&
dee1a63f
MB
34305 { ac_try='test -z "$ac_c_werror_flag"
34306 || test ! -s conftest.err'
ac1cb8d3
VS
34307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34308 (eval $ac_try) 2>&5
34309 ac_status=$?
34310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311 (exit $ac_status); }; } &&
34312 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34314 (eval $ac_try) 2>&5
34315 ac_status=$?
34316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317 (exit $ac_status); }; }; then
34318 eval "$as_ac_var=yes"
34319else
34320 echo "$as_me: failed program was:" >&5
34321sed 's/^/| /' conftest.$ac_ext >&5
34322
34323eval "$as_ac_var=no"
34324fi
ac1cb8d3
VS
34325rm -f conftest.err conftest.$ac_objext \
34326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34327fi
34328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34330if test `eval echo '${'$as_ac_var'}'` = yes; then
34331 cat >>confdefs.h <<_ACEOF
34332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34333_ACEOF
34334 break
34335fi
34336done
34337
34338
34339echo "$as_me:$LINENO: checking for statfs" >&5
34340echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34341if test "${wx_cv_func_statfs+set}" = set; then
34342 echo $ECHO_N "(cached) $ECHO_C" >&6
34343else
34344 cat >conftest.$ac_ext <<_ACEOF
34345/* confdefs.h. */
34346_ACEOF
34347cat confdefs.h >>conftest.$ac_ext
34348cat >>conftest.$ac_ext <<_ACEOF
34349/* end confdefs.h. */
34350
34351 #if defined(__BSD__)
84ae7ca4
VZ
34352 #include <sys/param.h>
34353 #include <sys/mount.h>
a848cd7e 34354 #else
84ae7ca4 34355 #include <sys/vfs.h>
a848cd7e
SC
34356 #endif
34357
34358int
34359main ()
34360{
34361
34362 long l;
34363 struct statfs fs;
34364 statfs("/", &fs);
34365 l = fs.f_bsize;
34366 l += fs.f_blocks;
34367 l += fs.f_bavail;
34368
34369 ;
34370 return 0;
34371}
34372_ACEOF
34373rm -f conftest.$ac_objext
34374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34375 (eval $ac_compile) 2>conftest.er1
a848cd7e 34376 ac_status=$?
ac1cb8d3
VS
34377 grep -v '^ *+' conftest.er1 >conftest.err
34378 rm -f conftest.er1
34379 cat conftest.err >&5
a848cd7e
SC
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); } &&
dee1a63f
MB
34382 { ac_try='test -z "$ac_c_werror_flag"
34383 || test ! -s conftest.err'
ac1cb8d3
VS
34384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34385 (eval $ac_try) 2>&5
34386 ac_status=$?
34387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388 (exit $ac_status); }; } &&
34389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34391 (eval $ac_try) 2>&5
34392 ac_status=$?
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); }; }; then
84ae7ca4 34395 wx_cv_func_statfs=yes
a848cd7e
SC
34396else
34397 echo "$as_me: failed program was:" >&5
34398sed 's/^/| /' conftest.$ac_ext >&5
34399
84ae7ca4 34400wx_cv_func_statfs=no
a848cd7e
SC
34401
34402fi
ac1cb8d3 34403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34404
34405fi
34406echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34407echo "${ECHO_T}$wx_cv_func_statfs" >&6
34408
34409if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34410
34411
34412 ac_ext=cc
34413ac_cpp='$CXXCPP $CPPFLAGS'
34414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34417
34418 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34419echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34420if test "${wx_cv_func_statfs_decl+set}" = set; then
34421 echo $ECHO_N "(cached) $ECHO_C" >&6
34422else
0683aca6
VZ
34423 cat >conftest.$ac_ext <<_ACEOF
34424/* confdefs.h. */
34425_ACEOF
34426cat confdefs.h >>conftest.$ac_ext
34427cat >>conftest.$ac_ext <<_ACEOF
34428/* end confdefs.h. */
84ae7ca4 34429
0683aca6
VZ
34430 #if defined(__BSD__)
34431 #include <sys/param.h>
34432 #include <sys/mount.h>
34433 #else
34434 #include <sys/vfs.h>
34435 #endif
34436
34437int
34438main ()
34439{
34440
34441 struct statfs fs;
34442 statfs("", &fs);
34443
34444 ;
34445 return 0;
34446}
34447_ACEOF
34448rm -f conftest.$ac_objext
34449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34450 (eval $ac_compile) 2>conftest.er1
34451 ac_status=$?
34452 grep -v '^ *+' conftest.er1 >conftest.err
34453 rm -f conftest.er1
34454 cat conftest.err >&5
34455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456 (exit $ac_status); } &&
dee1a63f
MB
34457 { ac_try='test -z "$ac_cxx_werror_flag"
34458 || test ! -s conftest.err'
0683aca6
VZ
34459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460 (eval $ac_try) 2>&5
34461 ac_status=$?
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); }; } &&
34464 { ac_try='test -s conftest.$ac_objext'
34465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34466 (eval $ac_try) 2>&5
34467 ac_status=$?
34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); }; }; then
34470 wx_cv_func_statfs_decl=yes
34471else
34472 echo "$as_me: failed program was:" >&5
34473sed 's/^/| /' conftest.$ac_ext >&5
34474
34475wx_cv_func_statfs_decl=no
34476
34477fi
34478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34479
34480fi
34481echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34482echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34483 ac_ext=c
34484ac_cpp='$CPP $CPPFLAGS'
34485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34487ac_compiler_gnu=$ac_cv_c_compiler_gnu
34488
34489
34490 if test "$wx_cv_func_statfs_decl" = "yes"; then
34491 cat >>confdefs.h <<\_ACEOF
34492#define HAVE_STATFS_DECL 1
34493_ACEOF
34494
34495 fi
34496
a848cd7e
SC
34497 wx_cv_type_statvfs_t="struct statfs"
34498 cat >>confdefs.h <<\_ACEOF
34499#define HAVE_STATFS 1
34500_ACEOF
34501
34502else
34503 echo "$as_me:$LINENO: checking for statvfs" >&5
34504echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34505if test "${wx_cv_func_statvfs+set}" = set; then
34506 echo $ECHO_N "(cached) $ECHO_C" >&6
34507else
34508 cat >conftest.$ac_ext <<_ACEOF
34509/* confdefs.h. */
34510_ACEOF
34511cat confdefs.h >>conftest.$ac_ext
34512cat >>conftest.$ac_ext <<_ACEOF
34513/* end confdefs.h. */
34514
34515 #include <stddef.h>
34516 #include <sys/statvfs.h>
34517
34518int
34519main ()
34520{
34521
34522 statvfs("/", NULL);
34523
34524 ;
34525 return 0;
34526}
34527_ACEOF
34528rm -f conftest.$ac_objext
34529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34530 (eval $ac_compile) 2>conftest.er1
a848cd7e 34531 ac_status=$?
ac1cb8d3
VS
34532 grep -v '^ *+' conftest.er1 >conftest.err
34533 rm -f conftest.er1
34534 cat conftest.err >&5
a848cd7e
SC
34535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536 (exit $ac_status); } &&
dee1a63f
MB
34537 { ac_try='test -z "$ac_c_werror_flag"
34538 || test ! -s conftest.err'
ac1cb8d3
VS
34539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34540 (eval $ac_try) 2>&5
34541 ac_status=$?
34542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543 (exit $ac_status); }; } &&
34544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34546 (eval $ac_try) 2>&5
34547 ac_status=$?
34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549 (exit $ac_status); }; }; then
34550 wx_cv_func_statvfs=yes
34551else
34552 echo "$as_me: failed program was:" >&5
34553sed 's/^/| /' conftest.$ac_ext >&5
34554
34555wx_cv_func_statvfs=no
34556
34557fi
ac1cb8d3 34558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34559
34560fi
34561echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34562echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34563
34564 if test "$wx_cv_func_statvfs" = "yes"; then
34565
34566
34567 ac_ext=cc
34568ac_cpp='$CXXCPP $CPPFLAGS'
34569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34572
34573
34574 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34575echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34576if test "${wx_cv_type_statvfs_t+set}" = set; then
34577 echo $ECHO_N "(cached) $ECHO_C" >&6
34578else
34579 cat >conftest.$ac_ext <<_ACEOF
34580/* confdefs.h. */
34581_ACEOF
34582cat confdefs.h >>conftest.$ac_ext
34583cat >>conftest.$ac_ext <<_ACEOF
34584/* end confdefs.h. */
34585
34586 #include <sys/statvfs.h>
34587
34588int
34589main ()
34590{
34591
34592 long l;
34593 statvfs_t fs;
34594 statvfs("/", &fs);
34595 l = fs.f_bsize;
34596 l += fs.f_blocks;
34597 l += fs.f_bavail;
34598
34599 ;
34600 return 0;
34601}
34602_ACEOF
34603rm -f conftest.$ac_objext
34604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34605 (eval $ac_compile) 2>conftest.er1
a848cd7e 34606 ac_status=$?
ac1cb8d3
VS
34607 grep -v '^ *+' conftest.er1 >conftest.err
34608 rm -f conftest.er1
34609 cat conftest.err >&5
a848cd7e
SC
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); } &&
dee1a63f
MB
34612 { ac_try='test -z "$ac_cxx_werror_flag"
34613 || test ! -s conftest.err'
ac1cb8d3
VS
34614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34615 (eval $ac_try) 2>&5
34616 ac_status=$?
34617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618 (exit $ac_status); }; } &&
34619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34621 (eval $ac_try) 2>&5
34622 ac_status=$?
34623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624 (exit $ac_status); }; }; then
34625 wx_cv_type_statvfs_t=statvfs_t
34626else
34627 echo "$as_me: failed program was:" >&5
34628sed 's/^/| /' conftest.$ac_ext >&5
34629
34630
34631 cat >conftest.$ac_ext <<_ACEOF
34632/* confdefs.h. */
34633_ACEOF
34634cat confdefs.h >>conftest.$ac_ext
34635cat >>conftest.$ac_ext <<_ACEOF
34636/* end confdefs.h. */
34637
34638 #include <sys/statvfs.h>
34639
34640int
34641main ()
34642{
34643
34644 long l;
34645 struct statvfs fs;
34646 statvfs("/", &fs);
34647 l = fs.f_bsize;
34648 l += fs.f_blocks;
34649 l += fs.f_bavail;
34650
34651 ;
34652 return 0;
34653}
34654_ACEOF
34655rm -f conftest.$ac_objext
34656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34657 (eval $ac_compile) 2>conftest.er1
a848cd7e 34658 ac_status=$?
ac1cb8d3
VS
34659 grep -v '^ *+' conftest.er1 >conftest.err
34660 rm -f conftest.er1
34661 cat conftest.err >&5
a848cd7e
SC
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); } &&
dee1a63f
MB
34664 { ac_try='test -z "$ac_cxx_werror_flag"
34665 || test ! -s conftest.err'
ac1cb8d3
VS
34666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34667 (eval $ac_try) 2>&5
34668 ac_status=$?
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); }; } &&
34671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34673 (eval $ac_try) 2>&5
34674 ac_status=$?
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); }; }; then
34677 wx_cv_type_statvfs_t="struct statvfs"
34678else
34679 echo "$as_me: failed program was:" >&5
34680sed 's/^/| /' conftest.$ac_ext >&5
34681
34682wx_cv_type_statvfs_t="unknown"
34683
34684fi
ac1cb8d3 34685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34686
34687
34688fi
ac1cb8d3 34689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34690
34691fi
34692echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34693echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34694
34695 ac_ext=c
34696ac_cpp='$CPP $CPPFLAGS'
34697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34699ac_compiler_gnu=$ac_cv_c_compiler_gnu
34700
34701
34702 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34703 cat >>confdefs.h <<\_ACEOF
34704#define HAVE_STATVFS 1
34705_ACEOF
34706
34707 fi
34708 else
34709 wx_cv_type_statvfs_t="unknown"
34710 fi
34711fi
34712
34713if test "$wx_cv_type_statvfs_t" != "unknown"; then
34714 cat >>confdefs.h <<_ACEOF
34715#define WX_STATFS_T $wx_cv_type_statvfs_t
34716_ACEOF
34717
34718else
34719 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34720echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34721fi
34722
34723if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34724
34725
34726for ac_func in fcntl flock
34727do
34728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34729echo "$as_me:$LINENO: checking for $ac_func" >&5
34730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34731if eval "test \"\${$as_ac_var+set}\" = set"; then
34732 echo $ECHO_N "(cached) $ECHO_C" >&6
34733else
34734 cat >conftest.$ac_ext <<_ACEOF
34735/* confdefs.h. */
34736_ACEOF
34737cat confdefs.h >>conftest.$ac_ext
34738cat >>conftest.$ac_ext <<_ACEOF
34739/* end confdefs.h. */
ac1cb8d3
VS
34740/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34742#define $ac_func innocuous_$ac_func
34743
a848cd7e
SC
34744/* System header to define __stub macros and hopefully few prototypes,
34745 which can conflict with char $ac_func (); below.
34746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34747 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34748
a848cd7e
SC
34749#ifdef __STDC__
34750# include <limits.h>
34751#else
34752# include <assert.h>
34753#endif
ac1cb8d3
VS
34754
34755#undef $ac_func
34756
a848cd7e
SC
34757/* Override any gcc2 internal prototype to avoid an error. */
34758#ifdef __cplusplus
34759extern "C"
34760{
34761#endif
34762/* We use char because int might match the return type of a gcc2
34763 builtin and then its argument prototype would still apply. */
34764char $ac_func ();
34765/* The GNU C library defines this for functions which it implements
34766 to always fail with ENOSYS. Some functions are actually named
34767 something starting with __ and the normal name is an alias. */
34768#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34769choke me
34770#else
34771char (*f) () = $ac_func;
34772#endif
34773#ifdef __cplusplus
34774}
34775#endif
34776
34777int
34778main ()
34779{
34780return f != $ac_func;
34781 ;
34782 return 0;
34783}
34784_ACEOF
34785rm -f conftest.$ac_objext conftest$ac_exeext
34786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34787 (eval $ac_link) 2>conftest.er1
a848cd7e 34788 ac_status=$?
ac1cb8d3
VS
34789 grep -v '^ *+' conftest.er1 >conftest.err
34790 rm -f conftest.er1
34791 cat conftest.err >&5
a848cd7e
SC
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); } &&
dee1a63f
MB
34794 { ac_try='test -z "$ac_c_werror_flag"
34795 || test ! -s conftest.err'
ac1cb8d3
VS
34796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34797 (eval $ac_try) 2>&5
34798 ac_status=$?
34799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34800 (exit $ac_status); }; } &&
34801 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34803 (eval $ac_try) 2>&5
34804 ac_status=$?
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); }; }; then
34807 eval "$as_ac_var=yes"
34808else
34809 echo "$as_me: failed program was:" >&5
34810sed 's/^/| /' conftest.$ac_ext >&5
34811
34812eval "$as_ac_var=no"
34813fi
ac1cb8d3
VS
34814rm -f conftest.err conftest.$ac_objext \
34815 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34816fi
34817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34818echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34819if test `eval echo '${'$as_ac_var'}'` = yes; then
34820 cat >>confdefs.h <<_ACEOF
34821#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34822_ACEOF
34823 break
34824fi
34825done
34826
34827
34828 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34829 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34830echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34831 wxUSE_SNGLINST_CHECKER=no
34832 fi
34833fi
34834
34835
34836for ac_func in timegm
34837do
34838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34839echo "$as_me:$LINENO: checking for $ac_func" >&5
34840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34841if eval "test \"\${$as_ac_var+set}\" = set"; then
34842 echo $ECHO_N "(cached) $ECHO_C" >&6
34843else
34844 cat >conftest.$ac_ext <<_ACEOF
34845/* confdefs.h. */
34846_ACEOF
34847cat confdefs.h >>conftest.$ac_ext
34848cat >>conftest.$ac_ext <<_ACEOF
34849/* end confdefs.h. */
ac1cb8d3
VS
34850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34852#define $ac_func innocuous_$ac_func
34853
a848cd7e
SC
34854/* System header to define __stub macros and hopefully few prototypes,
34855 which can conflict with char $ac_func (); below.
34856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34857 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34858
a848cd7e
SC
34859#ifdef __STDC__
34860# include <limits.h>
34861#else
34862# include <assert.h>
34863#endif
ac1cb8d3
VS
34864
34865#undef $ac_func
34866
a848cd7e
SC
34867/* Override any gcc2 internal prototype to avoid an error. */
34868#ifdef __cplusplus
34869extern "C"
34870{
34871#endif
34872/* We use char because int might match the return type of a gcc2
34873 builtin and then its argument prototype would still apply. */
34874char $ac_func ();
34875/* The GNU C library defines this for functions which it implements
34876 to always fail with ENOSYS. Some functions are actually named
34877 something starting with __ and the normal name is an alias. */
34878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34879choke me
34880#else
34881char (*f) () = $ac_func;
34882#endif
34883#ifdef __cplusplus
34884}
34885#endif
34886
34887int
34888main ()
34889{
34890return f != $ac_func;
34891 ;
34892 return 0;
34893}
34894_ACEOF
34895rm -f conftest.$ac_objext conftest$ac_exeext
34896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34897 (eval $ac_link) 2>conftest.er1
a848cd7e 34898 ac_status=$?
ac1cb8d3
VS
34899 grep -v '^ *+' conftest.er1 >conftest.err
34900 rm -f conftest.er1
34901 cat conftest.err >&5
a848cd7e
SC
34902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903 (exit $ac_status); } &&
dee1a63f
MB
34904 { ac_try='test -z "$ac_c_werror_flag"
34905 || test ! -s conftest.err'
ac1cb8d3
VS
34906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34907 (eval $ac_try) 2>&5
34908 ac_status=$?
34909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34910 (exit $ac_status); }; } &&
34911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34913 (eval $ac_try) 2>&5
34914 ac_status=$?
34915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916 (exit $ac_status); }; }; then
34917 eval "$as_ac_var=yes"
34918else
34919 echo "$as_me: failed program was:" >&5
34920sed 's/^/| /' conftest.$ac_ext >&5
34921
34922eval "$as_ac_var=no"
34923fi
ac1cb8d3
VS
34924rm -f conftest.err conftest.$ac_objext \
34925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34926fi
34927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34928echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34929if test `eval echo '${'$as_ac_var'}'` = yes; then
34930 cat >>confdefs.h <<_ACEOF
34931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34932_ACEOF
34933
34934fi
34935done
34936
34937
34938
34939
34940for ac_func in putenv setenv
34941do
34942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34943echo "$as_me:$LINENO: checking for $ac_func" >&5
34944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34945if eval "test \"\${$as_ac_var+set}\" = set"; then
34946 echo $ECHO_N "(cached) $ECHO_C" >&6
34947else
34948 cat >conftest.$ac_ext <<_ACEOF
34949/* confdefs.h. */
34950_ACEOF
34951cat confdefs.h >>conftest.$ac_ext
34952cat >>conftest.$ac_ext <<_ACEOF
34953/* end confdefs.h. */
ac1cb8d3
VS
34954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34956#define $ac_func innocuous_$ac_func
34957
a848cd7e
SC
34958/* System header to define __stub macros and hopefully few prototypes,
34959 which can conflict with char $ac_func (); below.
34960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34961 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34962
a848cd7e
SC
34963#ifdef __STDC__
34964# include <limits.h>
34965#else
34966# include <assert.h>
34967#endif
ac1cb8d3
VS
34968
34969#undef $ac_func
34970
a848cd7e
SC
34971/* Override any gcc2 internal prototype to avoid an error. */
34972#ifdef __cplusplus
34973extern "C"
34974{
34975#endif
34976/* We use char because int might match the return type of a gcc2
34977 builtin and then its argument prototype would still apply. */
34978char $ac_func ();
34979/* The GNU C library defines this for functions which it implements
34980 to always fail with ENOSYS. Some functions are actually named
34981 something starting with __ and the normal name is an alias. */
34982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34983choke me
34984#else
34985char (*f) () = $ac_func;
34986#endif
34987#ifdef __cplusplus
34988}
34989#endif
34990
34991int
34992main ()
34993{
34994return f != $ac_func;
34995 ;
34996 return 0;
34997}
34998_ACEOF
34999rm -f conftest.$ac_objext conftest$ac_exeext
35000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35001 (eval $ac_link) 2>conftest.er1
a848cd7e 35002 ac_status=$?
ac1cb8d3
VS
35003 grep -v '^ *+' conftest.er1 >conftest.err
35004 rm -f conftest.er1
35005 cat conftest.err >&5
a848cd7e
SC
35006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007 (exit $ac_status); } &&
dee1a63f
MB
35008 { ac_try='test -z "$ac_c_werror_flag"
35009 || test ! -s conftest.err'
ac1cb8d3
VS
35010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35011 (eval $ac_try) 2>&5
35012 ac_status=$?
35013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014 (exit $ac_status); }; } &&
35015 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35017 (eval $ac_try) 2>&5
35018 ac_status=$?
35019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020 (exit $ac_status); }; }; then
35021 eval "$as_ac_var=yes"
35022else
35023 echo "$as_me: failed program was:" >&5
35024sed 's/^/| /' conftest.$ac_ext >&5
35025
35026eval "$as_ac_var=no"
35027fi
ac1cb8d3
VS
35028rm -f conftest.err conftest.$ac_objext \
35029 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35030fi
35031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35032echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35033if test `eval echo '${'$as_ac_var'}'` = yes; then
35034 cat >>confdefs.h <<_ACEOF
35035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35036_ACEOF
35037 break
35038fi
35039done
35040
35041
35042HAVE_SOME_SLEEP_FUNC=0
35043if test "$USE_BEOS" = 1; then
35044 cat >>confdefs.h <<\_ACEOF
35045#define HAVE_SLEEP 1
35046_ACEOF
35047
35048 HAVE_SOME_SLEEP_FUNC=1
35049fi
35050
35051if test "$USE_DARWIN" = 1; then
35052 cat >>confdefs.h <<\_ACEOF
35053#define HAVE_USLEEP 1
35054_ACEOF
35055
35056 HAVE_SOME_SLEEP_FUNC=1
35057fi
35058
35059if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35060 POSIX4_LINK=
35061
35062for ac_func in nanosleep
35063do
35064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35065echo "$as_me:$LINENO: checking for $ac_func" >&5
35066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35067if eval "test \"\${$as_ac_var+set}\" = set"; then
35068 echo $ECHO_N "(cached) $ECHO_C" >&6
35069else
35070 cat >conftest.$ac_ext <<_ACEOF
35071/* confdefs.h. */
35072_ACEOF
35073cat confdefs.h >>conftest.$ac_ext
35074cat >>conftest.$ac_ext <<_ACEOF
35075/* end confdefs.h. */
ac1cb8d3
VS
35076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35078#define $ac_func innocuous_$ac_func
35079
a848cd7e
SC
35080/* System header to define __stub macros and hopefully few prototypes,
35081 which can conflict with char $ac_func (); below.
35082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35083 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35084
a848cd7e
SC
35085#ifdef __STDC__
35086# include <limits.h>
35087#else
35088# include <assert.h>
35089#endif
ac1cb8d3
VS
35090
35091#undef $ac_func
35092
a848cd7e
SC
35093/* Override any gcc2 internal prototype to avoid an error. */
35094#ifdef __cplusplus
35095extern "C"
35096{
35097#endif
35098/* We use char because int might match the return type of a gcc2
35099 builtin and then its argument prototype would still apply. */
35100char $ac_func ();
35101/* The GNU C library defines this for functions which it implements
35102 to always fail with ENOSYS. Some functions are actually named
35103 something starting with __ and the normal name is an alias. */
35104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35105choke me
35106#else
35107char (*f) () = $ac_func;
35108#endif
35109#ifdef __cplusplus
35110}
35111#endif
35112
35113int
35114main ()
35115{
35116return f != $ac_func;
35117 ;
35118 return 0;
35119}
35120_ACEOF
35121rm -f conftest.$ac_objext conftest$ac_exeext
35122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35123 (eval $ac_link) 2>conftest.er1
a848cd7e 35124 ac_status=$?
ac1cb8d3
VS
35125 grep -v '^ *+' conftest.er1 >conftest.err
35126 rm -f conftest.er1
35127 cat conftest.err >&5
a848cd7e
SC
35128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35129 (exit $ac_status); } &&
dee1a63f
MB
35130 { ac_try='test -z "$ac_c_werror_flag"
35131 || test ! -s conftest.err'
ac1cb8d3
VS
35132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35133 (eval $ac_try) 2>&5
35134 ac_status=$?
35135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136 (exit $ac_status); }; } &&
35137 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35139 (eval $ac_try) 2>&5
35140 ac_status=$?
35141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142 (exit $ac_status); }; }; then
35143 eval "$as_ac_var=yes"
35144else
35145 echo "$as_me: failed program was:" >&5
35146sed 's/^/| /' conftest.$ac_ext >&5
35147
35148eval "$as_ac_var=no"
35149fi
ac1cb8d3
VS
35150rm -f conftest.err conftest.$ac_objext \
35151 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35152fi
35153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35154echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35155if test `eval echo '${'$as_ac_var'}'` = yes; then
35156 cat >>confdefs.h <<_ACEOF
35157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35158_ACEOF
35159 cat >>confdefs.h <<\_ACEOF
35160#define HAVE_NANOSLEEP 1
35161_ACEOF
35162
35163else
35164
35165 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35166echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35167if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35168 echo $ECHO_N "(cached) $ECHO_C" >&6
35169else
35170 ac_check_lib_save_LIBS=$LIBS
35171LIBS="-lposix4 $LIBS"
35172cat >conftest.$ac_ext <<_ACEOF
35173/* confdefs.h. */
35174_ACEOF
35175cat confdefs.h >>conftest.$ac_ext
35176cat >>conftest.$ac_ext <<_ACEOF
35177/* end confdefs.h. */
35178
35179/* Override any gcc2 internal prototype to avoid an error. */
35180#ifdef __cplusplus
35181extern "C"
35182#endif
35183/* We use char because int might match the return type of a gcc2
35184 builtin and then its argument prototype would still apply. */
35185char nanosleep ();
35186int
35187main ()
35188{
35189nanosleep ();
35190 ;
35191 return 0;
35192}
35193_ACEOF
35194rm -f conftest.$ac_objext conftest$ac_exeext
35195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35196 (eval $ac_link) 2>conftest.er1
a848cd7e 35197 ac_status=$?
ac1cb8d3
VS
35198 grep -v '^ *+' conftest.er1 >conftest.err
35199 rm -f conftest.er1
35200 cat conftest.err >&5
a848cd7e
SC
35201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202 (exit $ac_status); } &&
dee1a63f
MB
35203 { ac_try='test -z "$ac_c_werror_flag"
35204 || test ! -s conftest.err'
ac1cb8d3
VS
35205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35206 (eval $ac_try) 2>&5
35207 ac_status=$?
35208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209 (exit $ac_status); }; } &&
35210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35212 (eval $ac_try) 2>&5
35213 ac_status=$?
35214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215 (exit $ac_status); }; }; then
35216 ac_cv_lib_posix4_nanosleep=yes
35217else
35218 echo "$as_me: failed program was:" >&5
35219sed 's/^/| /' conftest.$ac_ext >&5
35220
35221ac_cv_lib_posix4_nanosleep=no
35222fi
ac1cb8d3
VS
35223rm -f conftest.err conftest.$ac_objext \
35224 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35225LIBS=$ac_check_lib_save_LIBS
35226fi
35227echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35228echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35229if test $ac_cv_lib_posix4_nanosleep = yes; then
35230
35231 cat >>confdefs.h <<\_ACEOF
35232#define HAVE_NANOSLEEP 1
35233_ACEOF
35234
35235 POSIX4_LINK=" -lposix4"
35236
35237else
35238
35239
35240for ac_func in usleep
35241do
35242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35243echo "$as_me:$LINENO: checking for $ac_func" >&5
35244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35245if eval "test \"\${$as_ac_var+set}\" = set"; then
35246 echo $ECHO_N "(cached) $ECHO_C" >&6
35247else
35248 cat >conftest.$ac_ext <<_ACEOF
35249/* confdefs.h. */
35250_ACEOF
35251cat confdefs.h >>conftest.$ac_ext
35252cat >>conftest.$ac_ext <<_ACEOF
35253/* end confdefs.h. */
ac1cb8d3
VS
35254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35256#define $ac_func innocuous_$ac_func
35257
a848cd7e
SC
35258/* System header to define __stub macros and hopefully few prototypes,
35259 which can conflict with char $ac_func (); below.
35260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35261 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35262
a848cd7e
SC
35263#ifdef __STDC__
35264# include <limits.h>
35265#else
35266# include <assert.h>
35267#endif
ac1cb8d3
VS
35268
35269#undef $ac_func
35270
a848cd7e
SC
35271/* Override any gcc2 internal prototype to avoid an error. */
35272#ifdef __cplusplus
35273extern "C"
35274{
35275#endif
35276/* We use char because int might match the return type of a gcc2
35277 builtin and then its argument prototype would still apply. */
35278char $ac_func ();
35279/* The GNU C library defines this for functions which it implements
35280 to always fail with ENOSYS. Some functions are actually named
35281 something starting with __ and the normal name is an alias. */
35282#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35283choke me
35284#else
35285char (*f) () = $ac_func;
35286#endif
35287#ifdef __cplusplus
35288}
35289#endif
35290
35291int
35292main ()
35293{
35294return f != $ac_func;
35295 ;
35296 return 0;
35297}
35298_ACEOF
35299rm -f conftest.$ac_objext conftest$ac_exeext
35300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35301 (eval $ac_link) 2>conftest.er1
a848cd7e 35302 ac_status=$?
ac1cb8d3
VS
35303 grep -v '^ *+' conftest.er1 >conftest.err
35304 rm -f conftest.er1
35305 cat conftest.err >&5
a848cd7e
SC
35306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307 (exit $ac_status); } &&
dee1a63f
MB
35308 { ac_try='test -z "$ac_c_werror_flag"
35309 || test ! -s conftest.err'
ac1cb8d3
VS
35310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35311 (eval $ac_try) 2>&5
35312 ac_status=$?
35313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); }; } &&
35315 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35317 (eval $ac_try) 2>&5
35318 ac_status=$?
35319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320 (exit $ac_status); }; }; then
35321 eval "$as_ac_var=yes"
35322else
35323 echo "$as_me: failed program was:" >&5
35324sed 's/^/| /' conftest.$ac_ext >&5
35325
35326eval "$as_ac_var=no"
35327fi
ac1cb8d3
VS
35328rm -f conftest.err conftest.$ac_objext \
35329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35330fi
35331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35332echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35333if test `eval echo '${'$as_ac_var'}'` = yes; then
35334 cat >>confdefs.h <<_ACEOF
35335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35336_ACEOF
35337 cat >>confdefs.h <<\_ACEOF
35338#define HAVE_USLEEP 1
35339_ACEOF
35340
35341else
35342 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35343echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35344
35345fi
35346done
35347
35348
35349
35350fi
35351
35352
35353
35354fi
35355done
35356
35357fi
35358
35359
35360
35361for ac_func in uname gethostname
35362do
35363as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35364echo "$as_me:$LINENO: checking for $ac_func" >&5
35365echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35366if eval "test \"\${$as_ac_var+set}\" = set"; then
35367 echo $ECHO_N "(cached) $ECHO_C" >&6
35368else
35369 cat >conftest.$ac_ext <<_ACEOF
35370/* confdefs.h. */
35371_ACEOF
35372cat confdefs.h >>conftest.$ac_ext
35373cat >>conftest.$ac_ext <<_ACEOF
35374/* end confdefs.h. */
ac1cb8d3
VS
35375/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35377#define $ac_func innocuous_$ac_func
35378
a848cd7e
SC
35379/* System header to define __stub macros and hopefully few prototypes,
35380 which can conflict with char $ac_func (); below.
35381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35382 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35383
a848cd7e
SC
35384#ifdef __STDC__
35385# include <limits.h>
35386#else
35387# include <assert.h>
35388#endif
ac1cb8d3
VS
35389
35390#undef $ac_func
35391
a848cd7e
SC
35392/* Override any gcc2 internal prototype to avoid an error. */
35393#ifdef __cplusplus
35394extern "C"
35395{
35396#endif
35397/* We use char because int might match the return type of a gcc2
35398 builtin and then its argument prototype would still apply. */
35399char $ac_func ();
35400/* The GNU C library defines this for functions which it implements
35401 to always fail with ENOSYS. Some functions are actually named
35402 something starting with __ and the normal name is an alias. */
35403#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35404choke me
35405#else
35406char (*f) () = $ac_func;
35407#endif
35408#ifdef __cplusplus
35409}
35410#endif
35411
35412int
35413main ()
35414{
35415return f != $ac_func;
35416 ;
35417 return 0;
35418}
35419_ACEOF
35420rm -f conftest.$ac_objext conftest$ac_exeext
35421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35422 (eval $ac_link) 2>conftest.er1
a848cd7e 35423 ac_status=$?
ac1cb8d3
VS
35424 grep -v '^ *+' conftest.er1 >conftest.err
35425 rm -f conftest.er1
35426 cat conftest.err >&5
a848cd7e
SC
35427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35428 (exit $ac_status); } &&
dee1a63f
MB
35429 { ac_try='test -z "$ac_c_werror_flag"
35430 || test ! -s conftest.err'
ac1cb8d3
VS
35431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35432 (eval $ac_try) 2>&5
35433 ac_status=$?
35434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435 (exit $ac_status); }; } &&
35436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35438 (eval $ac_try) 2>&5
35439 ac_status=$?
35440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441 (exit $ac_status); }; }; then
35442 eval "$as_ac_var=yes"
35443else
35444 echo "$as_me: failed program was:" >&5
35445sed 's/^/| /' conftest.$ac_ext >&5
35446
35447eval "$as_ac_var=no"
35448fi
ac1cb8d3
VS
35449rm -f conftest.err conftest.$ac_objext \
35450 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35451fi
35452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35453echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35454if test `eval echo '${'$as_ac_var'}'` = yes; then
35455 cat >>confdefs.h <<_ACEOF
35456#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35457_ACEOF
35458 break
35459fi
35460done
35461
35462
35463
35464
35465ac_ext=cc
35466ac_cpp='$CXXCPP $CPPFLAGS'
35467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35470
35471
35472
35473for ac_func in strtok_r
35474do
35475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35476echo "$as_me:$LINENO: checking for $ac_func" >&5
35477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35478if eval "test \"\${$as_ac_var+set}\" = set"; then
35479 echo $ECHO_N "(cached) $ECHO_C" >&6
35480else
35481 cat >conftest.$ac_ext <<_ACEOF
35482/* confdefs.h. */
35483_ACEOF
35484cat confdefs.h >>conftest.$ac_ext
35485cat >>conftest.$ac_ext <<_ACEOF
35486/* end confdefs.h. */
ac1cb8d3
VS
35487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35489#define $ac_func innocuous_$ac_func
35490
a848cd7e
SC
35491/* System header to define __stub macros and hopefully few prototypes,
35492 which can conflict with char $ac_func (); below.
35493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35494 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35495
a848cd7e
SC
35496#ifdef __STDC__
35497# include <limits.h>
35498#else
35499# include <assert.h>
35500#endif
ac1cb8d3
VS
35501
35502#undef $ac_func
35503
a848cd7e
SC
35504/* Override any gcc2 internal prototype to avoid an error. */
35505#ifdef __cplusplus
35506extern "C"
35507{
35508#endif
35509/* We use char because int might match the return type of a gcc2
35510 builtin and then its argument prototype would still apply. */
35511char $ac_func ();
35512/* The GNU C library defines this for functions which it implements
35513 to always fail with ENOSYS. Some functions are actually named
35514 something starting with __ and the normal name is an alias. */
35515#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35516choke me
35517#else
35518char (*f) () = $ac_func;
35519#endif
35520#ifdef __cplusplus
35521}
35522#endif
35523
35524int
35525main ()
35526{
35527return f != $ac_func;
35528 ;
35529 return 0;
35530}
35531_ACEOF
35532rm -f conftest.$ac_objext conftest$ac_exeext
35533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35534 (eval $ac_link) 2>conftest.er1
a848cd7e 35535 ac_status=$?
ac1cb8d3
VS
35536 grep -v '^ *+' conftest.er1 >conftest.err
35537 rm -f conftest.er1
35538 cat conftest.err >&5
a848cd7e
SC
35539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35540 (exit $ac_status); } &&
dee1a63f
MB
35541 { ac_try='test -z "$ac_cxx_werror_flag"
35542 || test ! -s conftest.err'
ac1cb8d3
VS
35543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35544 (eval $ac_try) 2>&5
35545 ac_status=$?
35546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 (exit $ac_status); }; } &&
35548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35550 (eval $ac_try) 2>&5
35551 ac_status=$?
35552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553 (exit $ac_status); }; }; then
35554 eval "$as_ac_var=yes"
35555else
35556 echo "$as_me: failed program was:" >&5
35557sed 's/^/| /' conftest.$ac_ext >&5
35558
35559eval "$as_ac_var=no"
35560fi
ac1cb8d3
VS
35561rm -f conftest.err conftest.$ac_objext \
35562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35563fi
35564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35566if test `eval echo '${'$as_ac_var'}'` = yes; then
35567 cat >>confdefs.h <<_ACEOF
35568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35569_ACEOF
35570
35571fi
35572done
35573
35574
35575ac_ext=c
35576ac_cpp='$CPP $CPPFLAGS'
35577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35579ac_compiler_gnu=$ac_cv_c_compiler_gnu
35580
35581
35582INET_LINK=
35583
35584for ac_func in inet_addr
35585do
35586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35587echo "$as_me:$LINENO: checking for $ac_func" >&5
35588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35589if eval "test \"\${$as_ac_var+set}\" = set"; then
35590 echo $ECHO_N "(cached) $ECHO_C" >&6
35591else
35592 cat >conftest.$ac_ext <<_ACEOF
35593/* confdefs.h. */
35594_ACEOF
35595cat confdefs.h >>conftest.$ac_ext
35596cat >>conftest.$ac_ext <<_ACEOF
35597/* end confdefs.h. */
ac1cb8d3
VS
35598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35600#define $ac_func innocuous_$ac_func
35601
a848cd7e
SC
35602/* System header to define __stub macros and hopefully few prototypes,
35603 which can conflict with char $ac_func (); below.
35604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35605 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35606
a848cd7e
SC
35607#ifdef __STDC__
35608# include <limits.h>
35609#else
35610# include <assert.h>
35611#endif
ac1cb8d3
VS
35612
35613#undef $ac_func
35614
a848cd7e
SC
35615/* Override any gcc2 internal prototype to avoid an error. */
35616#ifdef __cplusplus
35617extern "C"
35618{
35619#endif
35620/* We use char because int might match the return type of a gcc2
35621 builtin and then its argument prototype would still apply. */
35622char $ac_func ();
35623/* The GNU C library defines this for functions which it implements
35624 to always fail with ENOSYS. Some functions are actually named
35625 something starting with __ and the normal name is an alias. */
35626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35627choke me
35628#else
35629char (*f) () = $ac_func;
35630#endif
35631#ifdef __cplusplus
35632}
35633#endif
35634
35635int
35636main ()
35637{
35638return f != $ac_func;
35639 ;
35640 return 0;
35641}
35642_ACEOF
35643rm -f conftest.$ac_objext conftest$ac_exeext
35644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35645 (eval $ac_link) 2>conftest.er1
a848cd7e 35646 ac_status=$?
ac1cb8d3
VS
35647 grep -v '^ *+' conftest.er1 >conftest.err
35648 rm -f conftest.er1
35649 cat conftest.err >&5
a848cd7e
SC
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); } &&
dee1a63f
MB
35652 { ac_try='test -z "$ac_c_werror_flag"
35653 || test ! -s conftest.err'
ac1cb8d3
VS
35654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35655 (eval $ac_try) 2>&5
35656 ac_status=$?
35657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658 (exit $ac_status); }; } &&
35659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661 (eval $ac_try) 2>&5
35662 ac_status=$?
35663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); }; }; then
35665 eval "$as_ac_var=yes"
35666else
35667 echo "$as_me: failed program was:" >&5
35668sed 's/^/| /' conftest.$ac_ext >&5
35669
35670eval "$as_ac_var=no"
35671fi
ac1cb8d3
VS
35672rm -f conftest.err conftest.$ac_objext \
35673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35674fi
35675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35677if test `eval echo '${'$as_ac_var'}'` = yes; then
35678 cat >>confdefs.h <<_ACEOF
35679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35680_ACEOF
35681 cat >>confdefs.h <<\_ACEOF
35682#define HAVE_INET_ADDR 1
35683_ACEOF
35684
35685else
35686
35687 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35688echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35689if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35690 echo $ECHO_N "(cached) $ECHO_C" >&6
35691else
35692 ac_check_lib_save_LIBS=$LIBS
35693LIBS="-lnsl $LIBS"
35694cat >conftest.$ac_ext <<_ACEOF
35695/* confdefs.h. */
35696_ACEOF
35697cat confdefs.h >>conftest.$ac_ext
35698cat >>conftest.$ac_ext <<_ACEOF
35699/* end confdefs.h. */
35700
35701/* Override any gcc2 internal prototype to avoid an error. */
35702#ifdef __cplusplus
35703extern "C"
35704#endif
35705/* We use char because int might match the return type of a gcc2
35706 builtin and then its argument prototype would still apply. */
35707char inet_addr ();
35708int
35709main ()
35710{
35711inet_addr ();
35712 ;
35713 return 0;
35714}
35715_ACEOF
35716rm -f conftest.$ac_objext conftest$ac_exeext
35717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35718 (eval $ac_link) 2>conftest.er1
a848cd7e 35719 ac_status=$?
ac1cb8d3
VS
35720 grep -v '^ *+' conftest.er1 >conftest.err
35721 rm -f conftest.er1
35722 cat conftest.err >&5
a848cd7e
SC
35723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724 (exit $ac_status); } &&
dee1a63f
MB
35725 { ac_try='test -z "$ac_c_werror_flag"
35726 || test ! -s conftest.err'
ac1cb8d3
VS
35727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35728 (eval $ac_try) 2>&5
35729 ac_status=$?
35730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731 (exit $ac_status); }; } &&
35732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35734 (eval $ac_try) 2>&5
35735 ac_status=$?
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); }; }; then
35738 ac_cv_lib_nsl_inet_addr=yes
35739else
35740 echo "$as_me: failed program was:" >&5
35741sed 's/^/| /' conftest.$ac_ext >&5
35742
35743ac_cv_lib_nsl_inet_addr=no
35744fi
ac1cb8d3
VS
35745rm -f conftest.err conftest.$ac_objext \
35746 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35747LIBS=$ac_check_lib_save_LIBS
35748fi
35749echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35750echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35751if test $ac_cv_lib_nsl_inet_addr = yes; then
35752 INET_LINK="nsl"
35753else
35754
35755 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35756echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35757if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35758 echo $ECHO_N "(cached) $ECHO_C" >&6
35759else
35760 ac_check_lib_save_LIBS=$LIBS
35761LIBS="-lresolv $LIBS"
35762cat >conftest.$ac_ext <<_ACEOF
35763/* confdefs.h. */
35764_ACEOF
35765cat confdefs.h >>conftest.$ac_ext
35766cat >>conftest.$ac_ext <<_ACEOF
35767/* end confdefs.h. */
35768
35769/* Override any gcc2 internal prototype to avoid an error. */
35770#ifdef __cplusplus
35771extern "C"
35772#endif
35773/* We use char because int might match the return type of a gcc2
35774 builtin and then its argument prototype would still apply. */
35775char inet_addr ();
35776int
35777main ()
35778{
35779inet_addr ();
35780 ;
35781 return 0;
35782}
35783_ACEOF
35784rm -f conftest.$ac_objext conftest$ac_exeext
35785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35786 (eval $ac_link) 2>conftest.er1
a848cd7e 35787 ac_status=$?
ac1cb8d3
VS
35788 grep -v '^ *+' conftest.er1 >conftest.err
35789 rm -f conftest.er1
35790 cat conftest.err >&5
a848cd7e
SC
35791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35792 (exit $ac_status); } &&
dee1a63f
MB
35793 { ac_try='test -z "$ac_c_werror_flag"
35794 || test ! -s conftest.err'
ac1cb8d3
VS
35795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35796 (eval $ac_try) 2>&5
35797 ac_status=$?
35798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799 (exit $ac_status); }; } &&
35800 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35802 (eval $ac_try) 2>&5
35803 ac_status=$?
35804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805 (exit $ac_status); }; }; then
35806 ac_cv_lib_resolv_inet_addr=yes
35807else
35808 echo "$as_me: failed program was:" >&5
35809sed 's/^/| /' conftest.$ac_ext >&5
35810
35811ac_cv_lib_resolv_inet_addr=no
35812fi
ac1cb8d3
VS
35813rm -f conftest.err conftest.$ac_objext \
35814 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35815LIBS=$ac_check_lib_save_LIBS
35816fi
35817echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35818echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35819if test $ac_cv_lib_resolv_inet_addr = yes; then
35820 INET_LINK="resolv"
35821else
35822
35823 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35824echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35825if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35826 echo $ECHO_N "(cached) $ECHO_C" >&6
35827else
35828 ac_check_lib_save_LIBS=$LIBS
35829LIBS="-lsocket $LIBS"
35830cat >conftest.$ac_ext <<_ACEOF
35831/* confdefs.h. */
35832_ACEOF
35833cat confdefs.h >>conftest.$ac_ext
35834cat >>conftest.$ac_ext <<_ACEOF
35835/* end confdefs.h. */
35836
35837/* Override any gcc2 internal prototype to avoid an error. */
35838#ifdef __cplusplus
35839extern "C"
35840#endif
35841/* We use char because int might match the return type of a gcc2
35842 builtin and then its argument prototype would still apply. */
35843char inet_addr ();
35844int
35845main ()
35846{
35847inet_addr ();
35848 ;
35849 return 0;
35850}
35851_ACEOF
35852rm -f conftest.$ac_objext conftest$ac_exeext
35853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35854 (eval $ac_link) 2>conftest.er1
a848cd7e 35855 ac_status=$?
ac1cb8d3
VS
35856 grep -v '^ *+' conftest.er1 >conftest.err
35857 rm -f conftest.er1
35858 cat conftest.err >&5
a848cd7e
SC
35859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); } &&
dee1a63f
MB
35861 { ac_try='test -z "$ac_c_werror_flag"
35862 || test ! -s conftest.err'
ac1cb8d3
VS
35863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35864 (eval $ac_try) 2>&5
35865 ac_status=$?
35866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867 (exit $ac_status); }; } &&
35868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35870 (eval $ac_try) 2>&5
35871 ac_status=$?
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); }; }; then
35874 ac_cv_lib_socket_inet_addr=yes
35875else
35876 echo "$as_me: failed program was:" >&5
35877sed 's/^/| /' conftest.$ac_ext >&5
35878
35879ac_cv_lib_socket_inet_addr=no
35880fi
ac1cb8d3
VS
35881rm -f conftest.err conftest.$ac_objext \
35882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35883LIBS=$ac_check_lib_save_LIBS
35884fi
35885echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35886echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35887if test $ac_cv_lib_socket_inet_addr = yes; then
35888 INET_LINK="socket"
35889
35890fi
35891
35892
35893
35894fi
35895
35896
35897
35898fi
35899
35900
35901
35902fi
35903done
35904
35905
35906
35907for ac_func in inet_aton
35908do
35909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35910echo "$as_me:$LINENO: checking for $ac_func" >&5
35911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35912if eval "test \"\${$as_ac_var+set}\" = set"; then
35913 echo $ECHO_N "(cached) $ECHO_C" >&6
35914else
35915 cat >conftest.$ac_ext <<_ACEOF
35916/* confdefs.h. */
35917_ACEOF
35918cat confdefs.h >>conftest.$ac_ext
35919cat >>conftest.$ac_ext <<_ACEOF
35920/* end confdefs.h. */
ac1cb8d3
VS
35921/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35923#define $ac_func innocuous_$ac_func
35924
a848cd7e
SC
35925/* System header to define __stub macros and hopefully few prototypes,
35926 which can conflict with char $ac_func (); below.
35927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35928 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35929
a848cd7e
SC
35930#ifdef __STDC__
35931# include <limits.h>
35932#else
35933# include <assert.h>
35934#endif
ac1cb8d3
VS
35935
35936#undef $ac_func
35937
a848cd7e
SC
35938/* Override any gcc2 internal prototype to avoid an error. */
35939#ifdef __cplusplus
35940extern "C"
35941{
35942#endif
35943/* We use char because int might match the return type of a gcc2
35944 builtin and then its argument prototype would still apply. */
35945char $ac_func ();
35946/* The GNU C library defines this for functions which it implements
35947 to always fail with ENOSYS. Some functions are actually named
35948 something starting with __ and the normal name is an alias. */
35949#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35950choke me
35951#else
35952char (*f) () = $ac_func;
35953#endif
35954#ifdef __cplusplus
35955}
35956#endif
35957
35958int
35959main ()
35960{
35961return f != $ac_func;
35962 ;
35963 return 0;
35964}
35965_ACEOF
35966rm -f conftest.$ac_objext conftest$ac_exeext
35967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35968 (eval $ac_link) 2>conftest.er1
a848cd7e 35969 ac_status=$?
ac1cb8d3
VS
35970 grep -v '^ *+' conftest.er1 >conftest.err
35971 rm -f conftest.er1
35972 cat conftest.err >&5
a848cd7e
SC
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); } &&
dee1a63f
MB
35975 { ac_try='test -z "$ac_c_werror_flag"
35976 || test ! -s conftest.err'
ac1cb8d3
VS
35977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35978 (eval $ac_try) 2>&5
35979 ac_status=$?
35980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981 (exit $ac_status); }; } &&
35982 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35984 (eval $ac_try) 2>&5
35985 ac_status=$?
35986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987 (exit $ac_status); }; }; then
35988 eval "$as_ac_var=yes"
35989else
35990 echo "$as_me: failed program was:" >&5
35991sed 's/^/| /' conftest.$ac_ext >&5
35992
35993eval "$as_ac_var=no"
35994fi
ac1cb8d3
VS
35995rm -f conftest.err conftest.$ac_objext \
35996 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35997fi
35998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35999echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36000if test `eval echo '${'$as_ac_var'}'` = yes; then
36001 cat >>confdefs.h <<_ACEOF
36002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36003_ACEOF
36004 cat >>confdefs.h <<\_ACEOF
36005#define HAVE_INET_ATON 1
36006_ACEOF
36007
36008else
36009
36010 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36011echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36012echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36013if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36014 echo $ECHO_N "(cached) $ECHO_C" >&6
36015else
36016 ac_check_lib_save_LIBS=$LIBS
36017LIBS="-l$INET_LINK $LIBS"
36018cat >conftest.$ac_ext <<_ACEOF
36019/* confdefs.h. */
36020_ACEOF
36021cat confdefs.h >>conftest.$ac_ext
36022cat >>conftest.$ac_ext <<_ACEOF
36023/* end confdefs.h. */
36024
36025/* Override any gcc2 internal prototype to avoid an error. */
36026#ifdef __cplusplus
36027extern "C"
36028#endif
36029/* We use char because int might match the return type of a gcc2
36030 builtin and then its argument prototype would still apply. */
36031char inet_aton ();
36032int
36033main ()
36034{
36035inet_aton ();
36036 ;
36037 return 0;
36038}
36039_ACEOF
36040rm -f conftest.$ac_objext conftest$ac_exeext
36041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36042 (eval $ac_link) 2>conftest.er1
a848cd7e 36043 ac_status=$?
ac1cb8d3
VS
36044 grep -v '^ *+' conftest.er1 >conftest.err
36045 rm -f conftest.er1
36046 cat conftest.err >&5
a848cd7e
SC
36047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048 (exit $ac_status); } &&
dee1a63f
MB
36049 { ac_try='test -z "$ac_c_werror_flag"
36050 || test ! -s conftest.err'
ac1cb8d3
VS
36051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36052 (eval $ac_try) 2>&5
36053 ac_status=$?
36054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055 (exit $ac_status); }; } &&
36056 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36058 (eval $ac_try) 2>&5
36059 ac_status=$?
36060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061 (exit $ac_status); }; }; then
36062 eval "$as_ac_Lib=yes"
36063else
36064 echo "$as_me: failed program was:" >&5
36065sed 's/^/| /' conftest.$ac_ext >&5
36066
36067eval "$as_ac_Lib=no"
36068fi
ac1cb8d3
VS
36069rm -f conftest.err conftest.$ac_objext \
36070 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36071LIBS=$ac_check_lib_save_LIBS
36072fi
36073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36074echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36075if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36076 cat >>confdefs.h <<\_ACEOF
36077#define HAVE_INET_ATON 1
36078_ACEOF
36079
36080fi
36081
36082
36083fi
36084done
36085
36086
36087if test "x$INET_LINK" != "x"; then
36088 cat >>confdefs.h <<\_ACEOF
36089#define HAVE_INET_ADDR 1
36090_ACEOF
36091
36092 INET_LINK=" -l$INET_LINK"
36093fi
36094
36095fi
36096
36097
36098
36099EXTRALIBS_ESD=
36100echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36101echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36102if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36103 echo $ECHO_N "(cached) $ECHO_C" >&6
36104else
36105 ac_check_lib_save_LIBS=$LIBS
36106LIBS="-lesd $LIBS"
36107cat >conftest.$ac_ext <<_ACEOF
36108/* confdefs.h. */
36109_ACEOF
36110cat confdefs.h >>conftest.$ac_ext
36111cat >>conftest.$ac_ext <<_ACEOF
36112/* end confdefs.h. */
36113
36114/* Override any gcc2 internal prototype to avoid an error. */
36115#ifdef __cplusplus
36116extern "C"
36117#endif
36118/* We use char because int might match the return type of a gcc2
36119 builtin and then its argument prototype would still apply. */
36120char esd_close ();
36121int
36122main ()
36123{
36124esd_close ();
36125 ;
36126 return 0;
36127}
36128_ACEOF
36129rm -f conftest.$ac_objext conftest$ac_exeext
36130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36131 (eval $ac_link) 2>conftest.er1
a848cd7e 36132 ac_status=$?
ac1cb8d3
VS
36133 grep -v '^ *+' conftest.er1 >conftest.err
36134 rm -f conftest.er1
36135 cat conftest.err >&5
a848cd7e
SC
36136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137 (exit $ac_status); } &&
dee1a63f
MB
36138 { ac_try='test -z "$ac_c_werror_flag"
36139 || test ! -s conftest.err'
ac1cb8d3
VS
36140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36141 (eval $ac_try) 2>&5
36142 ac_status=$?
36143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144 (exit $ac_status); }; } &&
36145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36147 (eval $ac_try) 2>&5
36148 ac_status=$?
36149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); }; }; then
36151 ac_cv_lib_esd_esd_close=yes
36152else
36153 echo "$as_me: failed program was:" >&5
36154sed 's/^/| /' conftest.$ac_ext >&5
36155
36156ac_cv_lib_esd_esd_close=no
36157fi
ac1cb8d3
VS
36158rm -f conftest.err conftest.$ac_objext \
36159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36160LIBS=$ac_check_lib_save_LIBS
36161fi
36162echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36163echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36164if test $ac_cv_lib_esd_esd_close = yes; then
36165
36166
36167for ac_header in esd.h
36168do
36169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36170if eval "test \"\${$as_ac_Header+set}\" = set"; then
36171 echo "$as_me:$LINENO: checking for $ac_header" >&5
36172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36173if eval "test \"\${$as_ac_Header+set}\" = set"; then
36174 echo $ECHO_N "(cached) $ECHO_C" >&6
36175fi
36176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36178else
36179 # Is the header compilable?
36180echo "$as_me:$LINENO: checking $ac_header usability" >&5
36181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36182cat >conftest.$ac_ext <<_ACEOF
36183/* confdefs.h. */
36184_ACEOF
36185cat confdefs.h >>conftest.$ac_ext
36186cat >>conftest.$ac_ext <<_ACEOF
36187/* end confdefs.h. */
36188$ac_includes_default
36189#include <$ac_header>
36190_ACEOF
36191rm -f conftest.$ac_objext
36192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36193 (eval $ac_compile) 2>conftest.er1
a848cd7e 36194 ac_status=$?
ac1cb8d3
VS
36195 grep -v '^ *+' conftest.er1 >conftest.err
36196 rm -f conftest.er1
36197 cat conftest.err >&5
a848cd7e
SC
36198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199 (exit $ac_status); } &&
dee1a63f
MB
36200 { ac_try='test -z "$ac_c_werror_flag"
36201 || test ! -s conftest.err'
ac1cb8d3
VS
36202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36203 (eval $ac_try) 2>&5
36204 ac_status=$?
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); }; } &&
36207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209 (eval $ac_try) 2>&5
36210 ac_status=$?
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); }; }; then
36213 ac_header_compiler=yes
36214else
36215 echo "$as_me: failed program was:" >&5
36216sed 's/^/| /' conftest.$ac_ext >&5
36217
36218ac_header_compiler=no
36219fi
ac1cb8d3 36220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36221echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36222echo "${ECHO_T}$ac_header_compiler" >&6
36223
36224# Is the header present?
36225echo "$as_me:$LINENO: checking $ac_header presence" >&5
36226echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36227cat >conftest.$ac_ext <<_ACEOF
36228/* confdefs.h. */
36229_ACEOF
36230cat confdefs.h >>conftest.$ac_ext
36231cat >>conftest.$ac_ext <<_ACEOF
36232/* end confdefs.h. */
36233#include <$ac_header>
36234_ACEOF
36235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36237 ac_status=$?
36238 grep -v '^ *+' conftest.er1 >conftest.err
36239 rm -f conftest.er1
36240 cat conftest.err >&5
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); } >/dev/null; then
36243 if test -s conftest.err; then
36244 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36246 else
36247 ac_cpp_err=
36248 fi
36249else
36250 ac_cpp_err=yes
36251fi
36252if test -z "$ac_cpp_err"; then
36253 ac_header_preproc=yes
36254else
36255 echo "$as_me: failed program was:" >&5
36256sed 's/^/| /' conftest.$ac_ext >&5
36257
36258 ac_header_preproc=no
36259fi
36260rm -f conftest.err conftest.$ac_ext
36261echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36262echo "${ECHO_T}$ac_header_preproc" >&6
36263
36264# So? What about this header?
ac1cb8d3
VS
36265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36266 yes:no: )
a848cd7e
SC
36267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36268echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36270echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36271 ac_header_preproc=yes
a848cd7e 36272 ;;
ac1cb8d3 36273 no:yes:* )
a848cd7e
SC
36274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36277echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36279echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36281echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36285echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36286 (
36287 cat <<\_ASBOX
ac1cb8d3
VS
36288## ----------------------------------------- ##
36289## Report this to wx-dev@lists.wxwidgets.org ##
36290## ----------------------------------------- ##
a848cd7e
SC
36291_ASBOX
36292 ) |
36293 sed "s/^/$as_me: WARNING: /" >&2
36294 ;;
36295esac
36296echo "$as_me:$LINENO: checking for $ac_header" >&5
36297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36298if eval "test \"\${$as_ac_Header+set}\" = set"; then
36299 echo $ECHO_N "(cached) $ECHO_C" >&6
36300else
ac1cb8d3 36301 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36302fi
36303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36305
36306fi
36307if test `eval echo '${'$as_ac_Header'}'` = yes; then
36308 cat >>confdefs.h <<_ACEOF
36309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36310_ACEOF
36311
36312 EXTRALIBS_ESD="-lesd"
36313
36314fi
36315
36316done
36317
36318
36319fi
36320
36321
36322
36323echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36324echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36325cat >conftest.$ac_ext <<_ACEOF
36326/* confdefs.h. */
36327_ACEOF
36328cat confdefs.h >>conftest.$ac_ext
36329cat >>conftest.$ac_ext <<_ACEOF
36330/* end confdefs.h. */
36331#ifdef __linux__
36332 #include <linux/cdrom.h>
36333 #else
36334 /* For Solaris */
36335 #include <sys/cdio.h>
36336 #endif
36337
36338int
36339main ()
36340{
36341struct cdrom_tocentry entry, old_entry;
36342 ;
36343 return 0;
36344}
36345_ACEOF
36346rm -f conftest.$ac_objext
36347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36348 (eval $ac_compile) 2>conftest.er1
a848cd7e 36349 ac_status=$?
ac1cb8d3
VS
36350 grep -v '^ *+' conftest.er1 >conftest.err
36351 rm -f conftest.er1
36352 cat conftest.err >&5
a848cd7e
SC
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); } &&
dee1a63f
MB
36355 { ac_try='test -z "$ac_c_werror_flag"
36356 || test ! -s conftest.err'
ac1cb8d3
VS
36357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358 (eval $ac_try) 2>&5
36359 ac_status=$?
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); }; } &&
36362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36364 (eval $ac_try) 2>&5
36365 ac_status=$?
36366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); }; }; then
36368 echo "$as_me:$LINENO: result: yes" >&5
36369echo "${ECHO_T}yes" >&6
36370 cat >>confdefs.h <<\_ACEOF
36371#define HAVE_KNOWN_CDROM_INTERFACE 1
36372_ACEOF
36373
36374else
36375 echo "$as_me: failed program was:" >&5
36376sed 's/^/| /' conftest.$ac_ext >&5
36377
36378echo "$as_me:$LINENO: result: no" >&5
36379echo "${ECHO_T}no" >&6
36380fi
ac1cb8d3 36381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36382
36383
36384cat >confcache <<\_ACEOF
36385# This file is a shell script that caches the results of configure
36386# tests run on this system so they can be shared between configure
36387# scripts and configure runs, see configure's option --config-cache.
36388# It is not useful on other systems. If it contains results you don't
36389# want to keep, you may remove or edit it.
36390#
36391# config.status only pays attention to the cache file if you give it
36392# the --recheck option to rerun configure.
36393#
36394# `ac_cv_env_foo' variables (set or unset) will be overridden when
36395# loading this file, other *unset* `ac_cv_foo' will be assigned the
36396# following values.
36397
36398_ACEOF
36399
36400# The following way of writing the cache mishandles newlines in values,
36401# but we know of no workaround that is simple, portable, and efficient.
36402# So, don't put newlines in cache variables' values.
36403# Ultrix sh set writes to stderr and can't be redirected directly,
36404# and sets the high bit in the cache file unless we assign to the vars.
36405{
36406 (set) 2>&1 |
36407 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36408 *ac_space=\ *)
36409 # `set' does not quote correctly, so add quotes (double-quote
36410 # substitution turns \\\\ into \\, and sed turns \\ into \).
36411 sed -n \
ac1cb8d3
VS
36412 "s/'/'\\\\''/g;
36413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36414 ;;
36415 *)
36416 # `set' quotes correctly as required by POSIX, so do not add quotes.
36417 sed -n \
ac1cb8d3 36418 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36419 ;;
36420 esac;
36421} |
36422 sed '
36423 t clear
36424 : clear
36425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36426 t end
36427 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36428 : end' >>confcache
36429if diff $cache_file confcache >/dev/null 2>&1; then :; else
36430 if test -w $cache_file; then
36431 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36432 cat confcache >$cache_file
36433 else
36434 echo "not updating unwritable cache $cache_file"
36435 fi
36436fi
36437rm -f confcache
36438
36439
36440CPP_MT_FLAG=
36441if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36442
36443
36444 THREADS_LINK=
36445 THREADS_CFLAGS=
36446
36447 if test "$wxUSE_THREADS" = "yes" ; then
36448 if test "$USE_BEOS" = 1; then
36449 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36450echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36451 wxUSE_THREADS="no"
36452 fi
36453 fi
36454
36455 if test "$wxUSE_THREADS" = "yes" ; then
36456
36457
36458 THREAD_OPTS="-pthread"
36459 case "${host}" in
36460 *-*-solaris2* | *-*-sunos4* )
36461 if test "x$GCC" = "xyes"; then
36462 THREAD_OPTS="-pthreads $THREAD_OPTS"
36463 else
36464 THREAD_OPTS="-mt $THREAD_OPTS"
36465 fi
36466 ;;
36467 *-*-freebsd*)
36468 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36469 ;;
36470 *-*-darwin* | *-*-cygwin* )
36471 THREAD_OPTS=""
36472 ;;
36473 *-*-aix*)
36474 THREAD_OPTS="pthreads"
36475 ;;
36476 *-hp-hpux* )
00421666
MW
36477 if test "x$GCC" = "xyes"; then
36478 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36479 THREAD_OPTS=""
36480 else
efdf6afe 36481 THREAD_OPTS=""
a848cd7e
SC
36482 fi
36483 ;;
36484
36485 *-*-irix* )
36486 if test "x$GCC" = "xyes"; then
36487 THREAD_OPTS=""
36488 fi
36489 ;;
36490
36491 *-*-*UnixWare*)
36492 if test "x$GCC" != "xyes"; then
36493 THREAD_OPTS="-Ethread"
36494 fi
36495 ;;
36496 esac
36497
36498 THREAD_OPTS="$THREAD_OPTS pthread none"
36499
36500 THREADS_OK=no
36501 for flag in $THREAD_OPTS; do
36502 case $flag in
36503 none)
36504 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36505echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36506 ;;
36507
36508 -*)
36509 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36510echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36511 THREADS_CFLAGS="$flag"
36512 ;;
36513
36514 *)
36515 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36516echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36517 THREADS_LINK="-l$flag"
36518 ;;
36519 esac
36520
36521 save_LIBS="$LIBS"
36522 save_CFLAGS="$CFLAGS"
36523 LIBS="$THREADS_LINK $LIBS"
36524 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36525
36526 cat >conftest.$ac_ext <<_ACEOF
36527/* confdefs.h. */
36528_ACEOF
36529cat confdefs.h >>conftest.$ac_ext
36530cat >>conftest.$ac_ext <<_ACEOF
36531/* end confdefs.h. */
36532#include <pthread.h>
36533int
36534main ()
36535{
36536pthread_create(0,0,0,0);
36537 ;
36538 return 0;
36539}
36540_ACEOF
36541rm -f conftest.$ac_objext conftest$ac_exeext
36542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36543 (eval $ac_link) 2>conftest.er1
a848cd7e 36544 ac_status=$?
ac1cb8d3
VS
36545 grep -v '^ *+' conftest.er1 >conftest.err
36546 rm -f conftest.er1
36547 cat conftest.err >&5
a848cd7e
SC
36548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549 (exit $ac_status); } &&
dee1a63f
MB
36550 { ac_try='test -z "$ac_c_werror_flag"
36551 || test ! -s conftest.err'
ac1cb8d3
VS
36552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36553 (eval $ac_try) 2>&5
36554 ac_status=$?
36555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556 (exit $ac_status); }; } &&
36557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36559 (eval $ac_try) 2>&5
36560 ac_status=$?
36561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); }; }; then
36563 THREADS_OK=yes
36564else
36565 echo "$as_me: failed program was:" >&5
36566sed 's/^/| /' conftest.$ac_ext >&5
36567
36568fi
ac1cb8d3
VS
36569rm -f conftest.err conftest.$ac_objext \
36570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36571
36572 LIBS="$save_LIBS"
36573 CFLAGS="$save_CFLAGS"
36574
36575 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36576echo "${ECHO_T}$THREADS_OK" >&6
36577 if test "x$THREADS_OK" = "xyes"; then
36578 break;
36579 fi
36580
36581 THREADS_LINK=""
36582 THREADS_CFLAGS=""
36583 done
36584
36585 if test "x$THREADS_OK" != "xyes"; then
36586 wxUSE_THREADS=no
36587 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36588echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36589 else
36590 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36591 LIBS="$THREADS_LINK $LIBS"
36592
36593 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36594echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36595 flag=no
36596 case "${host}" in
36597 *-aix*)
36598 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36599 flag="-D_THREAD_SAFE"
36600 ;;
36601 *-freebsd*)
36602 flag="-D_THREAD_SAFE"
36603 ;;
36604 *-hp-hpux* )
36605 flag="-D_REENTRANT"
36606 if test "x$GCC" != "xyes"; then
36607 flag="$flag -D_RWSTD_MULTI_THREAD"
36608 fi
36609 ;;
36610 *solaris* | alpha*-osf*)
36611 flag="-D_REENTRANT"
36612 ;;
36613 esac
36614 echo "$as_me:$LINENO: result: ${flag}" >&5
36615echo "${ECHO_T}${flag}" >&6
36616 if test "x$flag" != xno; then
36617 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36618 fi
36619
36620 if test "x$THREADS_CFLAGS" != "x"; then
36621 CFLAGS="$CFLAGS $THREADS_CFLAGS"
36622 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
36623 fi
36624 fi
36625 fi
36626
36627 if test "$wxUSE_THREADS" = "yes" ; then
36628
36629for ac_func in thr_setconcurrency
36630do
36631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36632echo "$as_me:$LINENO: checking for $ac_func" >&5
36633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36634if eval "test \"\${$as_ac_var+set}\" = set"; then
36635 echo $ECHO_N "(cached) $ECHO_C" >&6
36636else
36637 cat >conftest.$ac_ext <<_ACEOF
36638/* confdefs.h. */
36639_ACEOF
36640cat confdefs.h >>conftest.$ac_ext
36641cat >>conftest.$ac_ext <<_ACEOF
36642/* end confdefs.h. */
ac1cb8d3
VS
36643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36645#define $ac_func innocuous_$ac_func
36646
a848cd7e
SC
36647/* System header to define __stub macros and hopefully few prototypes,
36648 which can conflict with char $ac_func (); below.
36649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36650 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36651
a848cd7e
SC
36652#ifdef __STDC__
36653# include <limits.h>
36654#else
36655# include <assert.h>
36656#endif
ac1cb8d3
VS
36657
36658#undef $ac_func
36659
a848cd7e
SC
36660/* Override any gcc2 internal prototype to avoid an error. */
36661#ifdef __cplusplus
36662extern "C"
36663{
36664#endif
36665/* We use char because int might match the return type of a gcc2
36666 builtin and then its argument prototype would still apply. */
36667char $ac_func ();
36668/* The GNU C library defines this for functions which it implements
36669 to always fail with ENOSYS. Some functions are actually named
36670 something starting with __ and the normal name is an alias. */
36671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36672choke me
36673#else
36674char (*f) () = $ac_func;
36675#endif
36676#ifdef __cplusplus
36677}
36678#endif
36679
36680int
36681main ()
36682{
36683return f != $ac_func;
36684 ;
36685 return 0;
36686}
36687_ACEOF
36688rm -f conftest.$ac_objext conftest$ac_exeext
36689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36690 (eval $ac_link) 2>conftest.er1
a848cd7e 36691 ac_status=$?
ac1cb8d3
VS
36692 grep -v '^ *+' conftest.er1 >conftest.err
36693 rm -f conftest.er1
36694 cat conftest.err >&5
a848cd7e
SC
36695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36696 (exit $ac_status); } &&
dee1a63f
MB
36697 { ac_try='test -z "$ac_c_werror_flag"
36698 || test ! -s conftest.err'
ac1cb8d3
VS
36699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36700 (eval $ac_try) 2>&5
36701 ac_status=$?
36702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36703 (exit $ac_status); }; } &&
36704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36706 (eval $ac_try) 2>&5
36707 ac_status=$?
36708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709 (exit $ac_status); }; }; then
36710 eval "$as_ac_var=yes"
36711else
36712 echo "$as_me: failed program was:" >&5
36713sed 's/^/| /' conftest.$ac_ext >&5
36714
36715eval "$as_ac_var=no"
36716fi
ac1cb8d3
VS
36717rm -f conftest.err conftest.$ac_objext \
36718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36719fi
36720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36722if test `eval echo '${'$as_ac_var'}'` = yes; then
36723 cat >>confdefs.h <<_ACEOF
36724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36725_ACEOF
36726
36727fi
36728done
36729
36730
6ebeb4c7
VZ
36731 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36732echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36733if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36734 echo $ECHO_N "(cached) $ECHO_C" >&6
36735else
36736
36737 cat >conftest.$ac_ext <<_ACEOF
36738/* confdefs.h. */
36739_ACEOF
36740cat confdefs.h >>conftest.$ac_ext
36741cat >>conftest.$ac_ext <<_ACEOF
36742/* end confdefs.h. */
36743#include <pthread.h>
36744 void ThreadCleanupFunc(void *p);
36745
36746int
36747main ()
36748{
36749
36750 void *p;
36751 pthread_cleanup_push(ThreadCleanupFunc, p);
36752 pthread_cleanup_pop(0);
36753
36754 ;
36755 return 0;
36756}
36757_ACEOF
36758rm -f conftest.$ac_objext
36759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36760 (eval $ac_compile) 2>conftest.er1
36761 ac_status=$?
36762 grep -v '^ *+' conftest.er1 >conftest.err
36763 rm -f conftest.er1
36764 cat conftest.err >&5
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); } &&
dee1a63f
MB
36767 { ac_try='test -z "$ac_c_werror_flag"
36768 || test ! -s conftest.err'
6ebeb4c7
VZ
36769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36770 (eval $ac_try) 2>&5
36771 ac_status=$?
36772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); }; } &&
36774 { ac_try='test -s conftest.$ac_objext'
36775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36776 (eval $ac_try) 2>&5
36777 ac_status=$?
36778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779 (exit $ac_status); }; }; then
36780
36781 wx_cv_func_pthread_cleanup=yes
36782
36783else
36784 echo "$as_me: failed program was:" >&5
36785sed 's/^/| /' conftest.$ac_ext >&5
36786
36787
36788 wx_cv_func_pthread_cleanup=no
36789
36790
36791fi
36792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36793
36794fi
36795echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36796echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36797 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36798 cat >>confdefs.h <<\_ACEOF
36799#define wxHAVE_PTHREAD_CLEANUP 1
36800_ACEOF
36801
36802 fi
36803
a848cd7e
SC
36804
36805for ac_header in sched.h
36806do
36807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36808if eval "test \"\${$as_ac_Header+set}\" = set"; then
36809 echo "$as_me:$LINENO: checking for $ac_header" >&5
36810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36811if eval "test \"\${$as_ac_Header+set}\" = set"; then
36812 echo $ECHO_N "(cached) $ECHO_C" >&6
36813fi
36814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36816else
36817 # Is the header compilable?
36818echo "$as_me:$LINENO: checking $ac_header usability" >&5
36819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36820cat >conftest.$ac_ext <<_ACEOF
36821/* confdefs.h. */
36822_ACEOF
36823cat confdefs.h >>conftest.$ac_ext
36824cat >>conftest.$ac_ext <<_ACEOF
36825/* end confdefs.h. */
36826$ac_includes_default
36827#include <$ac_header>
36828_ACEOF
36829rm -f conftest.$ac_objext
36830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36831 (eval $ac_compile) 2>conftest.er1
a848cd7e 36832 ac_status=$?
ac1cb8d3
VS
36833 grep -v '^ *+' conftest.er1 >conftest.err
36834 rm -f conftest.er1
36835 cat conftest.err >&5
a848cd7e
SC
36836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837 (exit $ac_status); } &&
dee1a63f
MB
36838 { ac_try='test -z "$ac_c_werror_flag"
36839 || test ! -s conftest.err'
ac1cb8d3
VS
36840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36841 (eval $ac_try) 2>&5
36842 ac_status=$?
36843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36844 (exit $ac_status); }; } &&
36845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36847 (eval $ac_try) 2>&5
36848 ac_status=$?
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); }; }; then
36851 ac_header_compiler=yes
36852else
36853 echo "$as_me: failed program was:" >&5
36854sed 's/^/| /' conftest.$ac_ext >&5
36855
36856ac_header_compiler=no
36857fi
ac1cb8d3 36858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36859echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36860echo "${ECHO_T}$ac_header_compiler" >&6
36861
36862# Is the header present?
36863echo "$as_me:$LINENO: checking $ac_header presence" >&5
36864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36865cat >conftest.$ac_ext <<_ACEOF
36866/* confdefs.h. */
36867_ACEOF
36868cat confdefs.h >>conftest.$ac_ext
36869cat >>conftest.$ac_ext <<_ACEOF
36870/* end confdefs.h. */
36871#include <$ac_header>
36872_ACEOF
36873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36875 ac_status=$?
36876 grep -v '^ *+' conftest.er1 >conftest.err
36877 rm -f conftest.er1
36878 cat conftest.err >&5
36879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880 (exit $ac_status); } >/dev/null; then
36881 if test -s conftest.err; then
36882 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36884 else
36885 ac_cpp_err=
36886 fi
36887else
36888 ac_cpp_err=yes
36889fi
36890if test -z "$ac_cpp_err"; then
36891 ac_header_preproc=yes
36892else
36893 echo "$as_me: failed program was:" >&5
36894sed 's/^/| /' conftest.$ac_ext >&5
36895
36896 ac_header_preproc=no
36897fi
36898rm -f conftest.err conftest.$ac_ext
36899echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36900echo "${ECHO_T}$ac_header_preproc" >&6
36901
36902# So? What about this header?
ac1cb8d3
VS
36903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36904 yes:no: )
a848cd7e
SC
36905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36908echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36909 ac_header_preproc=yes
a848cd7e 36910 ;;
ac1cb8d3 36911 no:yes:* )
a848cd7e
SC
36912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36913echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36915echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36917echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36919echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36921echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36923echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36924 (
36925 cat <<\_ASBOX
ac1cb8d3
VS
36926## ----------------------------------------- ##
36927## Report this to wx-dev@lists.wxwidgets.org ##
36928## ----------------------------------------- ##
a848cd7e
SC
36929_ASBOX
36930 ) |
36931 sed "s/^/$as_me: WARNING: /" >&2
36932 ;;
36933esac
36934echo "$as_me:$LINENO: checking for $ac_header" >&5
36935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36936if eval "test \"\${$as_ac_Header+set}\" = set"; then
36937 echo $ECHO_N "(cached) $ECHO_C" >&6
36938else
ac1cb8d3 36939 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36940fi
36941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36943
36944fi
36945if test `eval echo '${'$as_ac_Header'}'` = yes; then
36946 cat >>confdefs.h <<_ACEOF
36947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36948_ACEOF
36949
36950fi
36951
36952done
36953
36954 if test "$ac_cv_header_sched_h" = "yes"; then
36955 echo "$as_me:$LINENO: checking for sched_yield" >&5
36956echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36957if test "${ac_cv_func_sched_yield+set}" = set; then
36958 echo $ECHO_N "(cached) $ECHO_C" >&6
36959else
36960 cat >conftest.$ac_ext <<_ACEOF
36961/* confdefs.h. */
36962_ACEOF
36963cat confdefs.h >>conftest.$ac_ext
36964cat >>conftest.$ac_ext <<_ACEOF
36965/* end confdefs.h. */
ac1cb8d3
VS
36966/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36968#define sched_yield innocuous_sched_yield
36969
a848cd7e
SC
36970/* System header to define __stub macros and hopefully few prototypes,
36971 which can conflict with char sched_yield (); below.
36972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36973 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36974
a848cd7e
SC
36975#ifdef __STDC__
36976# include <limits.h>
36977#else
36978# include <assert.h>
36979#endif
ac1cb8d3
VS
36980
36981#undef sched_yield
36982
a848cd7e
SC
36983/* Override any gcc2 internal prototype to avoid an error. */
36984#ifdef __cplusplus
36985extern "C"
36986{
36987#endif
36988/* We use char because int might match the return type of a gcc2
36989 builtin and then its argument prototype would still apply. */
36990char sched_yield ();
36991/* The GNU C library defines this for functions which it implements
36992 to always fail with ENOSYS. Some functions are actually named
36993 something starting with __ and the normal name is an alias. */
36994#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36995choke me
36996#else
36997char (*f) () = sched_yield;
36998#endif
36999#ifdef __cplusplus
37000}
37001#endif
37002
37003int
37004main ()
37005{
37006return f != sched_yield;
37007 ;
37008 return 0;
37009}
37010_ACEOF
37011rm -f conftest.$ac_objext conftest$ac_exeext
37012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37013 (eval $ac_link) 2>conftest.er1
a848cd7e 37014 ac_status=$?
ac1cb8d3
VS
37015 grep -v '^ *+' conftest.er1 >conftest.err
37016 rm -f conftest.er1
37017 cat conftest.err >&5
a848cd7e
SC
37018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019 (exit $ac_status); } &&
dee1a63f
MB
37020 { ac_try='test -z "$ac_c_werror_flag"
37021 || test ! -s conftest.err'
ac1cb8d3
VS
37022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37023 (eval $ac_try) 2>&5
37024 ac_status=$?
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); }; } &&
37027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37029 (eval $ac_try) 2>&5
37030 ac_status=$?
37031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032 (exit $ac_status); }; }; then
37033 ac_cv_func_sched_yield=yes
37034else
37035 echo "$as_me: failed program was:" >&5
37036sed 's/^/| /' conftest.$ac_ext >&5
37037
37038ac_cv_func_sched_yield=no
37039fi
ac1cb8d3
VS
37040rm -f conftest.err conftest.$ac_objext \
37041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37042fi
37043echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37044echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37045if test $ac_cv_func_sched_yield = yes; then
37046 cat >>confdefs.h <<\_ACEOF
37047#define HAVE_SCHED_YIELD 1
37048_ACEOF
37049
37050else
37051
37052 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37053echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37054if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37055 echo $ECHO_N "(cached) $ECHO_C" >&6
37056else
37057 ac_check_lib_save_LIBS=$LIBS
37058LIBS="-lposix4 $LIBS"
37059cat >conftest.$ac_ext <<_ACEOF
37060/* confdefs.h. */
37061_ACEOF
37062cat confdefs.h >>conftest.$ac_ext
37063cat >>conftest.$ac_ext <<_ACEOF
37064/* end confdefs.h. */
37065
37066/* Override any gcc2 internal prototype to avoid an error. */
37067#ifdef __cplusplus
37068extern "C"
37069#endif
37070/* We use char because int might match the return type of a gcc2
37071 builtin and then its argument prototype would still apply. */
37072char sched_yield ();
37073int
37074main ()
37075{
37076sched_yield ();
37077 ;
37078 return 0;
37079}
37080_ACEOF
37081rm -f conftest.$ac_objext conftest$ac_exeext
37082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37083 (eval $ac_link) 2>conftest.er1
a848cd7e 37084 ac_status=$?
ac1cb8d3
VS
37085 grep -v '^ *+' conftest.er1 >conftest.err
37086 rm -f conftest.er1
37087 cat conftest.err >&5
a848cd7e
SC
37088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089 (exit $ac_status); } &&
dee1a63f
MB
37090 { ac_try='test -z "$ac_c_werror_flag"
37091 || test ! -s conftest.err'
ac1cb8d3
VS
37092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37093 (eval $ac_try) 2>&5
37094 ac_status=$?
37095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37096 (exit $ac_status); }; } &&
37097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37099 (eval $ac_try) 2>&5
37100 ac_status=$?
37101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); }; }; then
37103 ac_cv_lib_posix4_sched_yield=yes
37104else
37105 echo "$as_me: failed program was:" >&5
37106sed 's/^/| /' conftest.$ac_ext >&5
37107
37108ac_cv_lib_posix4_sched_yield=no
37109fi
ac1cb8d3
VS
37110rm -f conftest.err conftest.$ac_objext \
37111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37112LIBS=$ac_check_lib_save_LIBS
37113fi
37114echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37115echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37116if test $ac_cv_lib_posix4_sched_yield = yes; then
37117 cat >>confdefs.h <<\_ACEOF
37118#define HAVE_SCHED_YIELD 1
37119_ACEOF
37120 POSIX4_LINK=" -lposix4"
37121else
37122 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37123echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37124
37125fi
37126
37127
37128
37129fi
37130
37131 fi
37132
37133 HAVE_PRIOR_FUNCS=0
37134 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37135echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37136if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37137 echo $ECHO_N "(cached) $ECHO_C" >&6
37138else
37139 cat >conftest.$ac_ext <<_ACEOF
37140/* confdefs.h. */
37141_ACEOF
37142cat confdefs.h >>conftest.$ac_ext
37143cat >>conftest.$ac_ext <<_ACEOF
37144/* end confdefs.h. */
ac1cb8d3
VS
37145/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37147#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37148
a848cd7e
SC
37149/* System header to define __stub macros and hopefully few prototypes,
37150 which can conflict with char pthread_attr_getschedpolicy (); below.
37151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37152 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37153
a848cd7e
SC
37154#ifdef __STDC__
37155# include <limits.h>
37156#else
37157# include <assert.h>
37158#endif
ac1cb8d3
VS
37159
37160#undef pthread_attr_getschedpolicy
37161
a848cd7e
SC
37162/* Override any gcc2 internal prototype to avoid an error. */
37163#ifdef __cplusplus
37164extern "C"
37165{
37166#endif
37167/* We use char because int might match the return type of a gcc2
37168 builtin and then its argument prototype would still apply. */
37169char pthread_attr_getschedpolicy ();
37170/* The GNU C library defines this for functions which it implements
37171 to always fail with ENOSYS. Some functions are actually named
37172 something starting with __ and the normal name is an alias. */
37173#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37174choke me
37175#else
37176char (*f) () = pthread_attr_getschedpolicy;
37177#endif
37178#ifdef __cplusplus
37179}
37180#endif
37181
37182int
37183main ()
37184{
37185return f != pthread_attr_getschedpolicy;
37186 ;
37187 return 0;
37188}
37189_ACEOF
37190rm -f conftest.$ac_objext conftest$ac_exeext
37191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37192 (eval $ac_link) 2>conftest.er1
a848cd7e 37193 ac_status=$?
ac1cb8d3
VS
37194 grep -v '^ *+' conftest.er1 >conftest.err
37195 rm -f conftest.er1
37196 cat conftest.err >&5
a848cd7e
SC
37197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198 (exit $ac_status); } &&
dee1a63f
MB
37199 { ac_try='test -z "$ac_c_werror_flag"
37200 || test ! -s conftest.err'
ac1cb8d3
VS
37201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202 (eval $ac_try) 2>&5
37203 ac_status=$?
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); }; } &&
37206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37208 (eval $ac_try) 2>&5
37209 ac_status=$?
37210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211 (exit $ac_status); }; }; then
37212 ac_cv_func_pthread_attr_getschedpolicy=yes
37213else
37214 echo "$as_me: failed program was:" >&5
37215sed 's/^/| /' conftest.$ac_ext >&5
37216
37217ac_cv_func_pthread_attr_getschedpolicy=no
37218fi
ac1cb8d3
VS
37219rm -f conftest.err conftest.$ac_objext \
37220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37221fi
37222echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37223echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37224if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37225 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37226echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37227if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37228 echo $ECHO_N "(cached) $ECHO_C" >&6
37229else
37230 cat >conftest.$ac_ext <<_ACEOF
37231/* confdefs.h. */
37232_ACEOF
37233cat confdefs.h >>conftest.$ac_ext
37234cat >>conftest.$ac_ext <<_ACEOF
37235/* end confdefs.h. */
ac1cb8d3
VS
37236/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37238#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37239
a848cd7e
SC
37240/* System header to define __stub macros and hopefully few prototypes,
37241 which can conflict with char pthread_attr_setschedparam (); below.
37242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37243 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37244
a848cd7e
SC
37245#ifdef __STDC__
37246# include <limits.h>
37247#else
37248# include <assert.h>
37249#endif
ac1cb8d3
VS
37250
37251#undef pthread_attr_setschedparam
37252
a848cd7e
SC
37253/* Override any gcc2 internal prototype to avoid an error. */
37254#ifdef __cplusplus
37255extern "C"
37256{
37257#endif
37258/* We use char because int might match the return type of a gcc2
37259 builtin and then its argument prototype would still apply. */
37260char pthread_attr_setschedparam ();
37261/* The GNU C library defines this for functions which it implements
37262 to always fail with ENOSYS. Some functions are actually named
37263 something starting with __ and the normal name is an alias. */
37264#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37265choke me
37266#else
37267char (*f) () = pthread_attr_setschedparam;
37268#endif
37269#ifdef __cplusplus
37270}
37271#endif
37272
37273int
37274main ()
37275{
37276return f != pthread_attr_setschedparam;
37277 ;
37278 return 0;
37279}
37280_ACEOF
37281rm -f conftest.$ac_objext conftest$ac_exeext
37282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37283 (eval $ac_link) 2>conftest.er1
a848cd7e 37284 ac_status=$?
ac1cb8d3
VS
37285 grep -v '^ *+' conftest.er1 >conftest.err
37286 rm -f conftest.er1
37287 cat conftest.err >&5
a848cd7e
SC
37288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289 (exit $ac_status); } &&
dee1a63f
MB
37290 { ac_try='test -z "$ac_c_werror_flag"
37291 || test ! -s conftest.err'
ac1cb8d3
VS
37292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37293 (eval $ac_try) 2>&5
37294 ac_status=$?
37295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296 (exit $ac_status); }; } &&
37297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37299 (eval $ac_try) 2>&5
37300 ac_status=$?
37301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302 (exit $ac_status); }; }; then
37303 ac_cv_func_pthread_attr_setschedparam=yes
37304else
37305 echo "$as_me: failed program was:" >&5
37306sed 's/^/| /' conftest.$ac_ext >&5
37307
37308ac_cv_func_pthread_attr_setschedparam=no
37309fi
ac1cb8d3
VS
37310rm -f conftest.err conftest.$ac_objext \
37311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37312fi
37313echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37314echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37315if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37316 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37317echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37318if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37319 echo $ECHO_N "(cached) $ECHO_C" >&6
37320else
37321 cat >conftest.$ac_ext <<_ACEOF
37322/* confdefs.h. */
37323_ACEOF
37324cat confdefs.h >>conftest.$ac_ext
37325cat >>conftest.$ac_ext <<_ACEOF
37326/* end confdefs.h. */
ac1cb8d3
VS
37327/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37329#define sched_get_priority_max innocuous_sched_get_priority_max
37330
a848cd7e
SC
37331/* System header to define __stub macros and hopefully few prototypes,
37332 which can conflict with char sched_get_priority_max (); below.
37333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37334 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37335
a848cd7e
SC
37336#ifdef __STDC__
37337# include <limits.h>
37338#else
37339# include <assert.h>
37340#endif
ac1cb8d3
VS
37341
37342#undef sched_get_priority_max
37343
a848cd7e
SC
37344/* Override any gcc2 internal prototype to avoid an error. */
37345#ifdef __cplusplus
37346extern "C"
37347{
37348#endif
37349/* We use char because int might match the return type of a gcc2
37350 builtin and then its argument prototype would still apply. */
37351char sched_get_priority_max ();
37352/* The GNU C library defines this for functions which it implements
37353 to always fail with ENOSYS. Some functions are actually named
37354 something starting with __ and the normal name is an alias. */
37355#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37356choke me
37357#else
37358char (*f) () = sched_get_priority_max;
37359#endif
37360#ifdef __cplusplus
37361}
37362#endif
37363
37364int
37365main ()
37366{
37367return f != sched_get_priority_max;
37368 ;
37369 return 0;
37370}
37371_ACEOF
37372rm -f conftest.$ac_objext conftest$ac_exeext
37373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37374 (eval $ac_link) 2>conftest.er1
a848cd7e 37375 ac_status=$?
ac1cb8d3
VS
37376 grep -v '^ *+' conftest.er1 >conftest.err
37377 rm -f conftest.er1
37378 cat conftest.err >&5
a848cd7e
SC
37379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380 (exit $ac_status); } &&
dee1a63f
MB
37381 { ac_try='test -z "$ac_c_werror_flag"
37382 || test ! -s conftest.err'
ac1cb8d3
VS
37383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37384 (eval $ac_try) 2>&5
37385 ac_status=$?
37386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387 (exit $ac_status); }; } &&
37388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37390 (eval $ac_try) 2>&5
37391 ac_status=$?
37392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393 (exit $ac_status); }; }; then
37394 ac_cv_func_sched_get_priority_max=yes
37395else
37396 echo "$as_me: failed program was:" >&5
37397sed 's/^/| /' conftest.$ac_ext >&5
37398
37399ac_cv_func_sched_get_priority_max=no
37400fi
ac1cb8d3
VS
37401rm -f conftest.err conftest.$ac_objext \
37402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37403fi
37404echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37405echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37406if test $ac_cv_func_sched_get_priority_max = yes; then
37407 HAVE_PRIOR_FUNCS=1
37408else
37409 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37410echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37411if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37412 echo $ECHO_N "(cached) $ECHO_C" >&6
37413else
37414 ac_check_lib_save_LIBS=$LIBS
37415LIBS="-lposix4 $LIBS"
37416cat >conftest.$ac_ext <<_ACEOF
37417/* confdefs.h. */
37418_ACEOF
37419cat confdefs.h >>conftest.$ac_ext
37420cat >>conftest.$ac_ext <<_ACEOF
37421/* end confdefs.h. */
37422
37423/* Override any gcc2 internal prototype to avoid an error. */
37424#ifdef __cplusplus
37425extern "C"
37426#endif
37427/* We use char because int might match the return type of a gcc2
37428 builtin and then its argument prototype would still apply. */
37429char sched_get_priority_max ();
37430int
37431main ()
37432{
37433sched_get_priority_max ();
37434 ;
37435 return 0;
37436}
37437_ACEOF
37438rm -f conftest.$ac_objext conftest$ac_exeext
37439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37440 (eval $ac_link) 2>conftest.er1
a848cd7e 37441 ac_status=$?
ac1cb8d3
VS
37442 grep -v '^ *+' conftest.er1 >conftest.err
37443 rm -f conftest.er1
37444 cat conftest.err >&5
a848cd7e
SC
37445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446 (exit $ac_status); } &&
dee1a63f
MB
37447 { ac_try='test -z "$ac_c_werror_flag"
37448 || test ! -s conftest.err'
ac1cb8d3
VS
37449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450 (eval $ac_try) 2>&5
37451 ac_status=$?
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); }; } &&
37454 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37456 (eval $ac_try) 2>&5
37457 ac_status=$?
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); }; }; then
37460 ac_cv_lib_posix4_sched_get_priority_max=yes
37461else
37462 echo "$as_me: failed program was:" >&5
37463sed 's/^/| /' conftest.$ac_ext >&5
37464
37465ac_cv_lib_posix4_sched_get_priority_max=no
37466fi
ac1cb8d3
VS
37467rm -f conftest.err conftest.$ac_objext \
37468 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37469LIBS=$ac_check_lib_save_LIBS
37470fi
37471echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37472echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37473if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37474
37475 HAVE_PRIOR_FUNCS=1
37476 POSIX4_LINK=" -lposix4"
37477
37478fi
37479
37480
37481fi
37482
37483
37484fi
37485
37486
37487fi
37488
37489
37490 if test "$HAVE_PRIOR_FUNCS" = 1; then
37491 cat >>confdefs.h <<\_ACEOF
37492#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37493_ACEOF
37494
37495 else
37496 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37497echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37498 fi
37499
37500 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37501echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37502if test "${ac_cv_func_pthread_cancel+set}" = set; then
37503 echo $ECHO_N "(cached) $ECHO_C" >&6
37504else
37505 cat >conftest.$ac_ext <<_ACEOF
37506/* confdefs.h. */
37507_ACEOF
37508cat confdefs.h >>conftest.$ac_ext
37509cat >>conftest.$ac_ext <<_ACEOF
37510/* end confdefs.h. */
ac1cb8d3
VS
37511/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37513#define pthread_cancel innocuous_pthread_cancel
37514
a848cd7e
SC
37515/* System header to define __stub macros and hopefully few prototypes,
37516 which can conflict with char pthread_cancel (); below.
37517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37518 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37519
a848cd7e
SC
37520#ifdef __STDC__
37521# include <limits.h>
37522#else
37523# include <assert.h>
37524#endif
ac1cb8d3
VS
37525
37526#undef pthread_cancel
37527
a848cd7e
SC
37528/* Override any gcc2 internal prototype to avoid an error. */
37529#ifdef __cplusplus
37530extern "C"
37531{
37532#endif
37533/* We use char because int might match the return type of a gcc2
37534 builtin and then its argument prototype would still apply. */
37535char pthread_cancel ();
37536/* The GNU C library defines this for functions which it implements
37537 to always fail with ENOSYS. Some functions are actually named
37538 something starting with __ and the normal name is an alias. */
37539#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37540choke me
37541#else
37542char (*f) () = pthread_cancel;
37543#endif
37544#ifdef __cplusplus
37545}
37546#endif
37547
37548int
37549main ()
37550{
37551return f != pthread_cancel;
37552 ;
37553 return 0;
37554}
37555_ACEOF
37556rm -f conftest.$ac_objext conftest$ac_exeext
37557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37558 (eval $ac_link) 2>conftest.er1
a848cd7e 37559 ac_status=$?
ac1cb8d3
VS
37560 grep -v '^ *+' conftest.er1 >conftest.err
37561 rm -f conftest.er1
37562 cat conftest.err >&5
a848cd7e
SC
37563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564 (exit $ac_status); } &&
dee1a63f
MB
37565 { ac_try='test -z "$ac_c_werror_flag"
37566 || test ! -s conftest.err'
ac1cb8d3
VS
37567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37568 (eval $ac_try) 2>&5
37569 ac_status=$?
37570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37571 (exit $ac_status); }; } &&
37572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37574 (eval $ac_try) 2>&5
37575 ac_status=$?
37576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577 (exit $ac_status); }; }; then
37578 ac_cv_func_pthread_cancel=yes
37579else
37580 echo "$as_me: failed program was:" >&5
37581sed 's/^/| /' conftest.$ac_ext >&5
37582
37583ac_cv_func_pthread_cancel=no
37584fi
ac1cb8d3
VS
37585rm -f conftest.err conftest.$ac_objext \
37586 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37587fi
37588echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37589echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37590if test $ac_cv_func_pthread_cancel = yes; then
37591 cat >>confdefs.h <<\_ACEOF
37592#define HAVE_PTHREAD_CANCEL 1
37593_ACEOF
37594
37595else
37596 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37597echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37598fi
37599
37600
abc736fd
MW
37601 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37602echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37603if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37604 echo $ECHO_N "(cached) $ECHO_C" >&6
37605else
37606 cat >conftest.$ac_ext <<_ACEOF
37607/* confdefs.h. */
37608_ACEOF
37609cat confdefs.h >>conftest.$ac_ext
37610cat >>conftest.$ac_ext <<_ACEOF
37611/* end confdefs.h. */
37612/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37614#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37615
37616/* System header to define __stub macros and hopefully few prototypes,
37617 which can conflict with char pthread_attr_setstacksize (); below.
37618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37619 <limits.h> exists even on freestanding compilers. */
37620
37621#ifdef __STDC__
37622# include <limits.h>
37623#else
37624# include <assert.h>
37625#endif
37626
37627#undef pthread_attr_setstacksize
37628
37629/* Override any gcc2 internal prototype to avoid an error. */
37630#ifdef __cplusplus
37631extern "C"
37632{
37633#endif
37634/* We use char because int might match the return type of a gcc2
37635 builtin and then its argument prototype would still apply. */
37636char pthread_attr_setstacksize ();
37637/* The GNU C library defines this for functions which it implements
37638 to always fail with ENOSYS. Some functions are actually named
37639 something starting with __ and the normal name is an alias. */
37640#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37641choke me
37642#else
37643char (*f) () = pthread_attr_setstacksize;
37644#endif
37645#ifdef __cplusplus
37646}
37647#endif
37648
37649int
37650main ()
37651{
37652return f != pthread_attr_setstacksize;
37653 ;
37654 return 0;
37655}
37656_ACEOF
37657rm -f conftest.$ac_objext conftest$ac_exeext
37658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37659 (eval $ac_link) 2>conftest.er1
37660 ac_status=$?
37661 grep -v '^ *+' conftest.er1 >conftest.err
37662 rm -f conftest.er1
37663 cat conftest.err >&5
37664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); } &&
dee1a63f
MB
37666 { ac_try='test -z "$ac_c_werror_flag"
37667 || test ! -s conftest.err'
abc736fd
MW
37668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37669 (eval $ac_try) 2>&5
37670 ac_status=$?
37671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672 (exit $ac_status); }; } &&
37673 { ac_try='test -s conftest$ac_exeext'
37674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37675 (eval $ac_try) 2>&5
37676 ac_status=$?
37677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678 (exit $ac_status); }; }; then
37679 ac_cv_func_pthread_attr_setstacksize=yes
37680else
37681 echo "$as_me: failed program was:" >&5
37682sed 's/^/| /' conftest.$ac_ext >&5
37683
37684ac_cv_func_pthread_attr_setstacksize=no
37685fi
37686rm -f conftest.err conftest.$ac_objext \
37687 conftest$ac_exeext conftest.$ac_ext
37688fi
37689echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37690echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37691if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37692 cat >>confdefs.h <<\_ACEOF
37693#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37694_ACEOF
37695
37696fi
37697
a848cd7e
SC
37698
37699
37700 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37701echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37702if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37703 echo $ECHO_N "(cached) $ECHO_C" >&6
37704else
37705
37706 cat >conftest.$ac_ext <<_ACEOF
37707/* confdefs.h. */
37708_ACEOF
37709cat confdefs.h >>conftest.$ac_ext
37710cat >>conftest.$ac_ext <<_ACEOF
37711/* end confdefs.h. */
37712#include <pthread.h>
37713int
37714main ()
37715{
37716
37717 pthread_mutexattr_t attr;
37718 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37719
37720 ;
37721 return 0;
37722}
37723_ACEOF
37724rm -f conftest.$ac_objext
37725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37726 (eval $ac_compile) 2>conftest.er1
a848cd7e 37727 ac_status=$?
ac1cb8d3
VS
37728 grep -v '^ *+' conftest.er1 >conftest.err
37729 rm -f conftest.er1
37730 cat conftest.err >&5
a848cd7e
SC
37731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37732 (exit $ac_status); } &&
dee1a63f
MB
37733 { ac_try='test -z "$ac_c_werror_flag"
37734 || test ! -s conftest.err'
ac1cb8d3
VS
37735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37736 (eval $ac_try) 2>&5
37737 ac_status=$?
37738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37739 (exit $ac_status); }; } &&
37740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37742 (eval $ac_try) 2>&5
37743 ac_status=$?
37744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745 (exit $ac_status); }; }; then
123dca7d 37746 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37747else
37748 echo "$as_me: failed program was:" >&5
37749sed 's/^/| /' conftest.$ac_ext >&5
37750
123dca7d 37751wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37752
37753fi
ac1cb8d3 37754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37755
37756fi
37757echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37758echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37759
37760 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37761 cat >>confdefs.h <<\_ACEOF
37762#define HAVE_PTHREAD_MUTEXATTR_T 1
37763_ACEOF
37764
123dca7d
VZ
37765
37766 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37767echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37768if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37769 echo $ECHO_N "(cached) $ECHO_C" >&6
37770else
37771
37772 cat >conftest.$ac_ext <<_ACEOF
37773/* confdefs.h. */
37774_ACEOF
37775cat confdefs.h >>conftest.$ac_ext
37776cat >>conftest.$ac_ext <<_ACEOF
37777/* end confdefs.h. */
37778#include <pthread.h>
37779int
37780main ()
37781{
37782
37783 pthread_mutexattr_t attr;
37784 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37785
37786 ;
37787 return 0;
37788}
37789_ACEOF
37790rm -f conftest.$ac_objext
37791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37792 (eval $ac_compile) 2>conftest.er1
37793 ac_status=$?
37794 grep -v '^ *+' conftest.er1 >conftest.err
37795 rm -f conftest.er1
37796 cat conftest.err >&5
37797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798 (exit $ac_status); } &&
dee1a63f
MB
37799 { ac_try='test -z "$ac_c_werror_flag"
37800 || test ! -s conftest.err'
123dca7d
VZ
37801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37802 (eval $ac_try) 2>&5
37803 ac_status=$?
37804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805 (exit $ac_status); }; } &&
37806 { ac_try='test -s conftest.$ac_objext'
37807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37808 (eval $ac_try) 2>&5
37809 ac_status=$?
37810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811 (exit $ac_status); }; }; then
37812 wx_cv_func_pthread_mutexattr_settype_decl=yes
37813else
37814 echo "$as_me: failed program was:" >&5
37815sed 's/^/| /' conftest.$ac_ext >&5
37816
37817wx_cv_func_pthread_mutexattr_settype_decl=no
37818
37819fi
37820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37821
37822fi
37823echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37824echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37825 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37826 cat >>confdefs.h <<\_ACEOF
37827#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37828_ACEOF
37829
37830 fi
a848cd7e
SC
37831 else
37832 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37833echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37834if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37835 echo $ECHO_N "(cached) $ECHO_C" >&6
37836else
37837
37838 cat >conftest.$ac_ext <<_ACEOF
37839/* confdefs.h. */
37840_ACEOF
37841cat confdefs.h >>conftest.$ac_ext
37842cat >>conftest.$ac_ext <<_ACEOF
37843/* end confdefs.h. */
37844#include <pthread.h>
37845int
37846main ()
37847{
37848
37849 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37850
37851 ;
37852 return 0;
37853}
37854_ACEOF
37855rm -f conftest.$ac_objext
37856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37857 (eval $ac_compile) 2>conftest.er1
a848cd7e 37858 ac_status=$?
ac1cb8d3
VS
37859 grep -v '^ *+' conftest.er1 >conftest.err
37860 rm -f conftest.er1
37861 cat conftest.err >&5
a848cd7e
SC
37862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37863 (exit $ac_status); } &&
dee1a63f
MB
37864 { ac_try='test -z "$ac_c_werror_flag"
37865 || test ! -s conftest.err'
ac1cb8d3
VS
37866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37867 (eval $ac_try) 2>&5
37868 ac_status=$?
37869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37870 (exit $ac_status); }; } &&
37871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37873 (eval $ac_try) 2>&5
37874 ac_status=$?
37875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); }; }; then
37877
37878 wx_cv_type_pthread_rec_mutex_init=yes
37879
37880else
37881 echo "$as_me: failed program was:" >&5
37882sed 's/^/| /' conftest.$ac_ext >&5
37883
37884
37885 wx_cv_type_pthread_rec_mutex_init=no
37886
37887
37888fi
ac1cb8d3 37889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37890
37891fi
37892echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37893echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37894 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37895 cat >>confdefs.h <<\_ACEOF
37896#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37897_ACEOF
37898
37899 else
37900 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37901echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37902 fi
37903 fi
37904 fi
37905
37906else
37907 if test "$wxUSE_THREADS" = "yes" ; then
37908 case "${host}" in
37909 *-*-mingw32* )
37910 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37911echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37912if test "${wx_cv_cflags_mthread+set}" = set; then
37913 echo $ECHO_N "(cached) $ECHO_C" >&6
37914else
37915
37916 CFLAGS_OLD="$CFLAGS"
37917 CFLAGS="$CFLAGS -mthreads"
37918 cat >conftest.$ac_ext <<_ACEOF
37919/* confdefs.h. */
37920_ACEOF
37921cat confdefs.h >>conftest.$ac_ext
37922cat >>conftest.$ac_ext <<_ACEOF
37923/* end confdefs.h. */
37924
37925int
37926main ()
37927{
37928
37929 ;
37930 return 0;
37931}
37932_ACEOF
37933rm -f conftest.$ac_objext
37934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37935 (eval $ac_compile) 2>conftest.er1
a848cd7e 37936 ac_status=$?
ac1cb8d3
VS
37937 grep -v '^ *+' conftest.er1 >conftest.err
37938 rm -f conftest.er1
37939 cat conftest.err >&5
a848cd7e
SC
37940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37941 (exit $ac_status); } &&
dee1a63f
MB
37942 { ac_try='test -z "$ac_c_werror_flag"
37943 || test ! -s conftest.err'
ac1cb8d3
VS
37944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37945 (eval $ac_try) 2>&5
37946 ac_status=$?
37947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37948 (exit $ac_status); }; } &&
37949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37951 (eval $ac_try) 2>&5
37952 ac_status=$?
37953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954 (exit $ac_status); }; }; then
37955 wx_cv_cflags_mthread=yes
37956else
37957 echo "$as_me: failed program was:" >&5
37958sed 's/^/| /' conftest.$ac_ext >&5
37959
37960wx_cv_cflags_mthread=no
37961
37962fi
ac1cb8d3 37963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37964
37965
37966fi
37967echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37968echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37969
37970 if test "$wx_cv_cflags_mthread" = "yes"; then
37971 CXXFLAGS="$CXXFLAGS -mthreads"
37972 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37973 LDFLAGS="$LDFLAGS -mthreads"
37974 else
37975 CFLAGS="$CFLAGS_OLD"
37976 fi
37977 ;;
37978 *-pc-os2*emx )
37979 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37980 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37981 LDFLAGS="$LDFLAGS -Zmt"
37982 ;;
37983 esac
37984 fi
37985fi
37986
37987if test "$wxUSE_THREADS" = "yes"; then
37988 cat >>confdefs.h <<\_ACEOF
37989#define wxUSE_THREADS 1
37990_ACEOF
37991
37992
37993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37994else
37995 if test "$ac_cv_func_strtok_r" = "yes"; then
37996 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37997echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37998 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37999 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
38000 echo "$as_me:$LINENO: result: yes" >&5
38001echo "${ECHO_T}yes" >&6
38002 else
38003 echo "$as_me:$LINENO: result: no" >&5
38004echo "${ECHO_T}no" >&6
38005 fi
38006 fi
38007fi
38008
38009if test "$WXGTK20" = 1 ; then
38010 cat >>confdefs.h <<_ACEOF
38011#define __WXGTK20__ $WXGTK20
38012_ACEOF
38013
38014 WXGTK12=1
38015fi
38016
38017if test "$WXGTK12" = 1 ; then
38018 cat >>confdefs.h <<_ACEOF
38019#define __WXGTK12__ $WXGTK12
38020_ACEOF
38021
38022fi
38023
38024if test "$WXGTK127" = 1 ; then
38025 cat >>confdefs.h <<_ACEOF
38026#define __WXGTK127__ $WXGTK127
38027_ACEOF
38028
38029fi
38030
38031if test "$WXGPE" = 1 ; then
38032 cat >>confdefs.h <<_ACEOF
38033#define __WXGPE__ $WXGPE
38034_ACEOF
38035
38036fi
38037
38038WXDEBUG=
38039
38040if test "$wxUSE_DEBUG_INFO" = "yes" ; then
38041 WXDEBUG="-g"
38042 wxUSE_OPTIMISE=no
38043fi
38044
38045if test "$wxUSE_DEBUG_GDB" = "yes" ; then
38046 wxUSE_DEBUG_INFO=yes
18228ab4
MW
38047 if test "$GCC" = yes; then
38048 WXDEBUG="-ggdb"
38049 fi
a848cd7e
SC
38050fi
38051
38052if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
38053 cat >>confdefs.h <<\_ACEOF
38054#define WXDEBUG 1
38055_ACEOF
38056
38057 WXDEBUG_DEFINE="-D__WXDEBUG__"
38058else
38059 if test "$wxUSE_GTK" = 1 ; then
38060 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
38061 fi
38062fi
38063
38064if test "$wxUSE_MEM_TRACING" = "yes" ; then
38065 cat >>confdefs.h <<\_ACEOF
38066#define wxUSE_MEMORY_TRACING 1
38067_ACEOF
38068
38069 cat >>confdefs.h <<\_ACEOF
38070#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
38071_ACEOF
38072
38073 cat >>confdefs.h <<\_ACEOF
38074#define wxUSE_DEBUG_NEW_ALWAYS 1
38075_ACEOF
38076
38077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
38078fi
38079
38080if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 38081 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
38082fi
38083
38084PROFILE=
38085if test "$wxUSE_PROFILE" = "yes" ; then
38086 PROFILE=" -pg"
38087fi
38088
38089CODE_GEN_FLAGS=
38090CODE_GEN_FLAGS_CXX=
38091if test "$GCC" = "yes" ; then
38092 if test "$wxUSE_NO_RTTI" = "yes" ; then
38093 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
38094 fi
38095 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38096 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
38097 fi
38098 if test "$wxUSE_PERMISSIVE" = "yes" ; then
38099 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
38100 fi
38101
38102 case "${host}" in
38103 powerpc*-*-aix* )
38104 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
38105 ;;
38106 *-hppa* )
38107 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
38108 ;;
38109 esac
38110fi
38111
38112OPTIMISE=
38113if test "$wxUSE_OPTIMISE" = "no" ; then
38114 if test "$GCC" = yes ; then
38115 OPTIMISE="-O0"
38116 fi
38117else
38118 if test "$GCC" = yes ; then
38119 OPTIMISE="-O2"
38120
38121 case "${host}" in
38122 i586-*-*|i686-*-* )
38123 OPTIMISE="${OPTIMISE} "
38124 ;;
38125 esac
38126 else
38127 OPTIMISE="-O"
38128 fi
38129fi
38130
38131
dee1a63f 38132if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
a848cd7e 38133 cat >>confdefs.h <<\_ACEOF
dee1a63f 38134#define WXWIN_COMPATIBILITY_2_4 1
a848cd7e
SC
38135_ACEOF
38136
38137
dee1a63f 38138 WXWIN_COMPATIBILITY_2_6="yes"
a848cd7e
SC
38139fi
38140
dee1a63f 38141if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
a848cd7e 38142 cat >>confdefs.h <<\_ACEOF
dee1a63f 38143#define WXWIN_COMPATIBILITY_2_6 1
a848cd7e
SC
38144_ACEOF
38145
38146fi
38147
38148
38149if test "$wxUSE_GUI" = "yes"; then
881bfcd6 38150 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38151#define wxUSE_GUI 1
38152_ACEOF
38153
38154
370fd4c2 38155 fi
a848cd7e
SC
38156
38157
38158if test "$wxUSE_UNIX" = "yes"; then
38159 cat >>confdefs.h <<\_ACEOF
38160#define wxUSE_UNIX 1
38161_ACEOF
38162
38163fi
38164
38165
38166if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38167
38168 HAVE_DL_FUNCS=0
38169 HAVE_SHL_FUNCS=0
38170 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38171 if test "$USE_DARWIN" = 1; then
38172 HAVE_DL_FUNCS=1
47a7e797
MW
38173 elif test "$USE_DOS" = 1; then
38174 HAVE_DL_FUNCS=0
a848cd7e
SC
38175 else
38176
38177for ac_func in dlopen
38178do
38179as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38180echo "$as_me:$LINENO: checking for $ac_func" >&5
38181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38182if eval "test \"\${$as_ac_var+set}\" = set"; then
38183 echo $ECHO_N "(cached) $ECHO_C" >&6
38184else
38185 cat >conftest.$ac_ext <<_ACEOF
38186/* confdefs.h. */
38187_ACEOF
38188cat confdefs.h >>conftest.$ac_ext
38189cat >>conftest.$ac_ext <<_ACEOF
38190/* end confdefs.h. */
ac1cb8d3
VS
38191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38193#define $ac_func innocuous_$ac_func
38194
a848cd7e
SC
38195/* System header to define __stub macros and hopefully few prototypes,
38196 which can conflict with char $ac_func (); below.
38197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38198 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38199
a848cd7e
SC
38200#ifdef __STDC__
38201# include <limits.h>
38202#else
38203# include <assert.h>
38204#endif
ac1cb8d3
VS
38205
38206#undef $ac_func
38207
a848cd7e
SC
38208/* Override any gcc2 internal prototype to avoid an error. */
38209#ifdef __cplusplus
38210extern "C"
38211{
38212#endif
38213/* We use char because int might match the return type of a gcc2
38214 builtin and then its argument prototype would still apply. */
38215char $ac_func ();
38216/* The GNU C library defines this for functions which it implements
38217 to always fail with ENOSYS. Some functions are actually named
38218 something starting with __ and the normal name is an alias. */
38219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38220choke me
38221#else
38222char (*f) () = $ac_func;
38223#endif
38224#ifdef __cplusplus
38225}
38226#endif
38227
38228int
38229main ()
38230{
38231return f != $ac_func;
38232 ;
38233 return 0;
38234}
38235_ACEOF
38236rm -f conftest.$ac_objext conftest$ac_exeext
38237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38238 (eval $ac_link) 2>conftest.er1
a848cd7e 38239 ac_status=$?
ac1cb8d3
VS
38240 grep -v '^ *+' conftest.er1 >conftest.err
38241 rm -f conftest.er1
38242 cat conftest.err >&5
a848cd7e
SC
38243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244 (exit $ac_status); } &&
dee1a63f
MB
38245 { ac_try='test -z "$ac_c_werror_flag"
38246 || test ! -s conftest.err'
ac1cb8d3
VS
38247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38248 (eval $ac_try) 2>&5
38249 ac_status=$?
38250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38251 (exit $ac_status); }; } &&
38252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38258 eval "$as_ac_var=yes"
38259else
38260 echo "$as_me: failed program was:" >&5
38261sed 's/^/| /' conftest.$ac_ext >&5
38262
38263eval "$as_ac_var=no"
38264fi
ac1cb8d3
VS
38265rm -f conftest.err conftest.$ac_objext \
38266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38267fi
38268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38269echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38270if test `eval echo '${'$as_ac_var'}'` = yes; then
38271 cat >>confdefs.h <<_ACEOF
38272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38273_ACEOF
38274
38275 cat >>confdefs.h <<\_ACEOF
38276#define HAVE_DLOPEN 1
38277_ACEOF
38278
38279 HAVE_DL_FUNCS=1
38280
38281else
38282
38283 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38284echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
38285if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38286 echo $ECHO_N "(cached) $ECHO_C" >&6
38287else
38288 ac_check_lib_save_LIBS=$LIBS
38289LIBS="-ldl $LIBS"
38290cat >conftest.$ac_ext <<_ACEOF
38291/* confdefs.h. */
38292_ACEOF
38293cat confdefs.h >>conftest.$ac_ext
38294cat >>conftest.$ac_ext <<_ACEOF
38295/* end confdefs.h. */
38296
38297/* Override any gcc2 internal prototype to avoid an error. */
38298#ifdef __cplusplus
38299extern "C"
38300#endif
38301/* We use char because int might match the return type of a gcc2
38302 builtin and then its argument prototype would still apply. */
38303char dlopen ();
38304int
38305main ()
38306{
38307dlopen ();
38308 ;
38309 return 0;
38310}
38311_ACEOF
38312rm -f conftest.$ac_objext conftest$ac_exeext
38313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38314 (eval $ac_link) 2>conftest.er1
a848cd7e 38315 ac_status=$?
ac1cb8d3
VS
38316 grep -v '^ *+' conftest.er1 >conftest.err
38317 rm -f conftest.er1
38318 cat conftest.err >&5
a848cd7e
SC
38319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320 (exit $ac_status); } &&
dee1a63f
MB
38321 { ac_try='test -z "$ac_c_werror_flag"
38322 || test ! -s conftest.err'
ac1cb8d3
VS
38323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38324 (eval $ac_try) 2>&5
38325 ac_status=$?
38326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327 (exit $ac_status); }; } &&
38328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38330 (eval $ac_try) 2>&5
38331 ac_status=$?
38332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333 (exit $ac_status); }; }; then
38334 ac_cv_lib_dl_dlopen=yes
38335else
38336 echo "$as_me: failed program was:" >&5
38337sed 's/^/| /' conftest.$ac_ext >&5
38338
38339ac_cv_lib_dl_dlopen=no
38340fi
ac1cb8d3
VS
38341rm -f conftest.err conftest.$ac_objext \
38342 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38343LIBS=$ac_check_lib_save_LIBS
38344fi
38345echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38346echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
38347if test $ac_cv_lib_dl_dlopen = yes; then
38348
38349 cat >>confdefs.h <<\_ACEOF
38350#define HAVE_DLOPEN 1
38351_ACEOF
38352
38353 HAVE_DL_FUNCS=1
38354 DL_LINK=" -ldl$DL_LINK"
38355
38356else
38357
38358
38359for ac_func in shl_load
38360do
38361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38362echo "$as_me:$LINENO: checking for $ac_func" >&5
38363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38364if eval "test \"\${$as_ac_var+set}\" = set"; then
38365 echo $ECHO_N "(cached) $ECHO_C" >&6
38366else
38367 cat >conftest.$ac_ext <<_ACEOF
38368/* confdefs.h. */
38369_ACEOF
38370cat confdefs.h >>conftest.$ac_ext
38371cat >>conftest.$ac_ext <<_ACEOF
38372/* end confdefs.h. */
ac1cb8d3
VS
38373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38375#define $ac_func innocuous_$ac_func
38376
a848cd7e
SC
38377/* System header to define __stub macros and hopefully few prototypes,
38378 which can conflict with char $ac_func (); below.
38379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38380 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38381
a848cd7e
SC
38382#ifdef __STDC__
38383# include <limits.h>
38384#else
38385# include <assert.h>
38386#endif
ac1cb8d3
VS
38387
38388#undef $ac_func
38389
a848cd7e
SC
38390/* Override any gcc2 internal prototype to avoid an error. */
38391#ifdef __cplusplus
38392extern "C"
38393{
38394#endif
38395/* We use char because int might match the return type of a gcc2
38396 builtin and then its argument prototype would still apply. */
38397char $ac_func ();
38398/* The GNU C library defines this for functions which it implements
38399 to always fail with ENOSYS. Some functions are actually named
38400 something starting with __ and the normal name is an alias. */
38401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38402choke me
38403#else
38404char (*f) () = $ac_func;
38405#endif
38406#ifdef __cplusplus
38407}
38408#endif
38409
38410int
38411main ()
38412{
38413return f != $ac_func;
38414 ;
38415 return 0;
38416}
38417_ACEOF
38418rm -f conftest.$ac_objext conftest$ac_exeext
38419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38420 (eval $ac_link) 2>conftest.er1
a848cd7e 38421 ac_status=$?
ac1cb8d3
VS
38422 grep -v '^ *+' conftest.er1 >conftest.err
38423 rm -f conftest.er1
38424 cat conftest.err >&5
a848cd7e
SC
38425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426 (exit $ac_status); } &&
dee1a63f
MB
38427 { ac_try='test -z "$ac_c_werror_flag"
38428 || test ! -s conftest.err'
ac1cb8d3
VS
38429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38430 (eval $ac_try) 2>&5
38431 ac_status=$?
38432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433 (exit $ac_status); }; } &&
38434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38436 (eval $ac_try) 2>&5
38437 ac_status=$?
38438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38439 (exit $ac_status); }; }; then
38440 eval "$as_ac_var=yes"
38441else
38442 echo "$as_me: failed program was:" >&5
38443sed 's/^/| /' conftest.$ac_ext >&5
38444
38445eval "$as_ac_var=no"
38446fi
ac1cb8d3
VS
38447rm -f conftest.err conftest.$ac_objext \
38448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38449fi
38450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38452if test `eval echo '${'$as_ac_var'}'` = yes; then
38453 cat >>confdefs.h <<_ACEOF
38454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38455_ACEOF
38456
38457 cat >>confdefs.h <<\_ACEOF
38458#define HAVE_SHL_LOAD 1
38459_ACEOF
38460
38461 HAVE_SHL_FUNCS=1
38462
38463else
38464
38465 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
38466echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
38467if test "${ac_cv_lib_shl_load_dld+set}" = set; then
38468 echo $ECHO_N "(cached) $ECHO_C" >&6
38469else
38470 ac_check_lib_save_LIBS=$LIBS
38471LIBS="-lshl_load $LIBS"
38472cat >conftest.$ac_ext <<_ACEOF
38473/* confdefs.h. */
38474_ACEOF
38475cat confdefs.h >>conftest.$ac_ext
38476cat >>conftest.$ac_ext <<_ACEOF
38477/* end confdefs.h. */
38478
38479/* Override any gcc2 internal prototype to avoid an error. */
38480#ifdef __cplusplus
38481extern "C"
38482#endif
38483/* We use char because int might match the return type of a gcc2
38484 builtin and then its argument prototype would still apply. */
38485char dld ();
38486int
38487main ()
38488{
38489dld ();
38490 ;
38491 return 0;
38492}
38493_ACEOF
38494rm -f conftest.$ac_objext conftest$ac_exeext
38495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38496 (eval $ac_link) 2>conftest.er1
a848cd7e 38497 ac_status=$?
ac1cb8d3
VS
38498 grep -v '^ *+' conftest.er1 >conftest.err
38499 rm -f conftest.er1
38500 cat conftest.err >&5
a848cd7e
SC
38501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502 (exit $ac_status); } &&
dee1a63f
MB
38503 { ac_try='test -z "$ac_c_werror_flag"
38504 || test ! -s conftest.err'
ac1cb8d3
VS
38505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38506 (eval $ac_try) 2>&5
38507 ac_status=$?
38508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509 (exit $ac_status); }; } &&
38510 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38512 (eval $ac_try) 2>&5
38513 ac_status=$?
38514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38515 (exit $ac_status); }; }; then
38516 ac_cv_lib_shl_load_dld=yes
38517else
38518 echo "$as_me: failed program was:" >&5
38519sed 's/^/| /' conftest.$ac_ext >&5
38520
38521ac_cv_lib_shl_load_dld=no
38522fi
ac1cb8d3
VS
38523rm -f conftest.err conftest.$ac_objext \
38524 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38525LIBS=$ac_check_lib_save_LIBS
38526fi
38527echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
38528echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
38529if test $ac_cv_lib_shl_load_dld = yes; then
38530
38531 HAVE_SHL_FUNCS=1
38532 DL_LINK=" -ldld$DL_LINK"
38533
38534fi
38535
38536
38537fi
38538done
38539
38540
38541fi
38542
38543
38544fi
38545done
38546
38547
38548 if test "$HAVE_DL_FUNCS" = 1; then
38549
38550for ac_func in dlerror
38551do
38552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38553echo "$as_me:$LINENO: checking for $ac_func" >&5
38554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38555if eval "test \"\${$as_ac_var+set}\" = set"; then
38556 echo $ECHO_N "(cached) $ECHO_C" >&6
38557else
38558 cat >conftest.$ac_ext <<_ACEOF
38559/* confdefs.h. */
38560_ACEOF
38561cat confdefs.h >>conftest.$ac_ext
38562cat >>conftest.$ac_ext <<_ACEOF
38563/* end confdefs.h. */
ac1cb8d3
VS
38564/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38566#define $ac_func innocuous_$ac_func
38567
a848cd7e
SC
38568/* System header to define __stub macros and hopefully few prototypes,
38569 which can conflict with char $ac_func (); below.
38570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38571 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38572
a848cd7e
SC
38573#ifdef __STDC__
38574# include <limits.h>
38575#else
38576# include <assert.h>
38577#endif
ac1cb8d3
VS
38578
38579#undef $ac_func
38580
a848cd7e
SC
38581/* Override any gcc2 internal prototype to avoid an error. */
38582#ifdef __cplusplus
38583extern "C"
38584{
38585#endif
38586/* We use char because int might match the return type of a gcc2
38587 builtin and then its argument prototype would still apply. */
38588char $ac_func ();
38589/* The GNU C library defines this for functions which it implements
38590 to always fail with ENOSYS. Some functions are actually named
38591 something starting with __ and the normal name is an alias. */
38592#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38593choke me
38594#else
38595char (*f) () = $ac_func;
38596#endif
38597#ifdef __cplusplus
38598}
38599#endif
38600
38601int
38602main ()
38603{
38604return f != $ac_func;
38605 ;
38606 return 0;
38607}
38608_ACEOF
38609rm -f conftest.$ac_objext conftest$ac_exeext
38610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38611 (eval $ac_link) 2>conftest.er1
a848cd7e 38612 ac_status=$?
ac1cb8d3
VS
38613 grep -v '^ *+' conftest.er1 >conftest.err
38614 rm -f conftest.er1
38615 cat conftest.err >&5
a848cd7e
SC
38616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38617 (exit $ac_status); } &&
dee1a63f
MB
38618 { ac_try='test -z "$ac_c_werror_flag"
38619 || test ! -s conftest.err'
ac1cb8d3
VS
38620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38621 (eval $ac_try) 2>&5
38622 ac_status=$?
38623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624 (exit $ac_status); }; } &&
38625 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627 (eval $ac_try) 2>&5
38628 ac_status=$?
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); }; }; then
38631 eval "$as_ac_var=yes"
38632else
38633 echo "$as_me: failed program was:" >&5
38634sed 's/^/| /' conftest.$ac_ext >&5
38635
38636eval "$as_ac_var=no"
38637fi
ac1cb8d3
VS
38638rm -f conftest.err conftest.$ac_objext \
38639 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38640fi
38641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38642echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38643if test `eval echo '${'$as_ac_var'}'` = yes; then
38644 cat >>confdefs.h <<_ACEOF
38645#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38646_ACEOF
38647 cat >>confdefs.h <<\_ACEOF
38648#define HAVE_DLERROR 1
38649_ACEOF
38650
38651else
38652
38653 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38654echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38655if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38656 echo $ECHO_N "(cached) $ECHO_C" >&6
38657else
38658 ac_check_lib_save_LIBS=$LIBS
38659LIBS="-ldl $LIBS"
38660cat >conftest.$ac_ext <<_ACEOF
38661/* confdefs.h. */
38662_ACEOF
38663cat confdefs.h >>conftest.$ac_ext
38664cat >>conftest.$ac_ext <<_ACEOF
38665/* end confdefs.h. */
38666
38667/* Override any gcc2 internal prototype to avoid an error. */
38668#ifdef __cplusplus
38669extern "C"
38670#endif
38671/* We use char because int might match the return type of a gcc2
38672 builtin and then its argument prototype would still apply. */
38673char dlerror ();
38674int
38675main ()
38676{
38677dlerror ();
38678 ;
38679 return 0;
38680}
38681_ACEOF
38682rm -f conftest.$ac_objext conftest$ac_exeext
38683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38684 (eval $ac_link) 2>conftest.er1
a848cd7e 38685 ac_status=$?
ac1cb8d3
VS
38686 grep -v '^ *+' conftest.er1 >conftest.err
38687 rm -f conftest.er1
38688 cat conftest.err >&5
a848cd7e
SC
38689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690 (exit $ac_status); } &&
dee1a63f
MB
38691 { ac_try='test -z "$ac_c_werror_flag"
38692 || test ! -s conftest.err'
ac1cb8d3
VS
38693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38694 (eval $ac_try) 2>&5
38695 ac_status=$?
38696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38697 (exit $ac_status); }; } &&
38698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38700 (eval $ac_try) 2>&5
38701 ac_status=$?
38702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38703 (exit $ac_status); }; }; then
38704 ac_cv_lib_dl_dlerror=yes
38705else
38706 echo "$as_me: failed program was:" >&5
38707sed 's/^/| /' conftest.$ac_ext >&5
38708
38709ac_cv_lib_dl_dlerror=no
38710fi
ac1cb8d3
VS
38711rm -f conftest.err conftest.$ac_objext \
38712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38713LIBS=$ac_check_lib_save_LIBS
38714fi
38715echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38716echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38717if test $ac_cv_lib_dl_dlerror = yes; then
38718 cat >>confdefs.h <<\_ACEOF
38719#define HAVE_DLERROR 1
38720_ACEOF
38721
38722fi
38723
38724
38725
38726fi
38727done
38728
38729 fi
38730 fi
38731
38732 if test "$HAVE_DL_FUNCS" = 0; then
38733 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 38734 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
38735 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38736echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38737 wxUSE_DYNAMIC_LOADER=no
38738 wxUSE_DYNLIB_CLASS=no
38739 else
38740 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38741echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38742 fi
38743 fi
38744 fi
38745 fi
38746fi
38747
38748if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38749 cat >>confdefs.h <<\_ACEOF
38750#define wxUSE_DYNAMIC_LOADER 1
38751_ACEOF
38752
38753fi
38754if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38755 cat >>confdefs.h <<\_ACEOF
38756#define wxUSE_DYNLIB_CLASS 1
38757_ACEOF
38758
38759fi
38760
38761
38762
38763if test "$wxUSE_PLUGINS" = "yes" ; then
38764 if test "$wxUSE_SHARED" = "no" ; then
38765 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38766echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38767 wxUSE_PLUGINS=no
38768 fi
38769 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38770 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38771echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38772 wxUSE_PLUGINS=no
38773 fi
38774 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38775 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38776echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38777 wxUSE_PLUGINS=no
38778 fi
38779 if test "$wxUSE_PLUGINS" = "yes" ; then
38780 cat >>confdefs.h <<\_ACEOF
38781#define wxUSE_PLUGINS 1
38782_ACEOF
38783
38784 fi
38785fi
38786
38787
38788if test "$wxUSE_STL" = "yes"; then
38789 cat >>confdefs.h <<\_ACEOF
38790#define wxUSE_STL 1
38791_ACEOF
38792
38793fi
38794
38795if test "$wxUSE_APPLE_IEEE" = "yes"; then
38796 cat >>confdefs.h <<\_ACEOF
38797#define wxUSE_APPLE_IEEE 1
38798_ACEOF
38799
38800fi
38801
38802if test "$wxUSE_TIMER" = "yes"; then
38803 cat >>confdefs.h <<\_ACEOF
38804#define wxUSE_TIMER 1
38805_ACEOF
38806
38807fi
38808
9c112555 38809if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38810 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38811echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38812if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38813 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38814else
d12aef51
VZ
38815
38816 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38817/* confdefs.h. */
38818_ACEOF
38819cat confdefs.h >>conftest.$ac_ext
38820cat >>conftest.$ac_ext <<_ACEOF
38821/* end confdefs.h. */
d12aef51
VZ
38822
38823 #include <sys/soundcard.h>
38824
38825int
38826main ()
38827{
38828
38829 ioctl(0, SNDCTL_DSP_SYNC, 0);
38830
38831 ;
38832 return 0;
38833}
a848cd7e 38834_ACEOF
d12aef51
VZ
38835rm -f conftest.$ac_objext conftest$ac_exeext
38836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38837 (eval $ac_link) 2>conftest.er1
a848cd7e 38838 ac_status=$?
ac1cb8d3
VS
38839 grep -v '^ *+' conftest.er1 >conftest.err
38840 rm -f conftest.er1
38841 cat conftest.err >&5
a848cd7e
SC
38842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843 (exit $ac_status); } &&
dee1a63f
MB
38844 { ac_try='test -z "$ac_c_werror_flag"
38845 || test ! -s conftest.err'
ac1cb8d3
VS
38846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38847 (eval $ac_try) 2>&5
38848 ac_status=$?
38849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38850 (exit $ac_status); }; } &&
d12aef51 38851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38853 (eval $ac_try) 2>&5
38854 ac_status=$?
38855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38856 (exit $ac_status); }; }; then
d12aef51 38857 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38858else
38859 echo "$as_me: failed program was:" >&5
38860sed 's/^/| /' conftest.$ac_ext >&5
38861
a848cd7e 38862
d12aef51
VZ
38863 saveLibs="$LIBS"
38864 LIBS="$saveLibs -lossaudio"
38865 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38866/* confdefs.h. */
38867_ACEOF
38868cat confdefs.h >>conftest.$ac_ext
38869cat >>conftest.$ac_ext <<_ACEOF
38870/* end confdefs.h. */
d12aef51
VZ
38871
38872 #include <sys/soundcard.h>
38873
38874int
38875main ()
38876{
38877
38878 ioctl(0, SNDCTL_DSP_SYNC, 0);
38879
38880 ;
38881 return 0;
38882}
a848cd7e 38883_ACEOF
d12aef51
VZ
38884rm -f conftest.$ac_objext conftest$ac_exeext
38885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38886 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38887 ac_status=$?
38888 grep -v '^ *+' conftest.er1 >conftest.err
38889 rm -f conftest.er1
38890 cat conftest.err >&5
38891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 38892 (exit $ac_status); } &&
dee1a63f
MB
38893 { ac_try='test -z "$ac_c_werror_flag"
38894 || test ! -s conftest.err'
d12aef51
VZ
38895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38896 (eval $ac_try) 2>&5
38897 ac_status=$?
38898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899 (exit $ac_status); }; } &&
38900 { ac_try='test -s conftest$ac_exeext'
38901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38902 (eval $ac_try) 2>&5
38903 ac_status=$?
38904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38905 (exit $ac_status); }; }; then
38906 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38907else
38908 echo "$as_me: failed program was:" >&5
38909sed 's/^/| /' conftest.$ac_ext >&5
38910
a848cd7e 38911
d12aef51
VZ
38912 LIBS="$saveLibs"
38913 ac_cv_header_sys_soundcard=no
38914
38915
a848cd7e 38916fi
d12aef51
VZ
38917rm -f conftest.err conftest.$ac_objext \
38918 conftest$ac_exeext conftest.$ac_ext
38919
a848cd7e
SC
38920
38921fi
d12aef51
VZ
38922rm -f conftest.err conftest.$ac_objext \
38923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38924
38925fi
d12aef51
VZ
38926echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38927echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38928
d12aef51
VZ
38929 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38930 cat >>confdefs.h <<\_ACEOF
38931#define HAVE_SYS_SOUNDCARD_H 1
38932_ACEOF
a848cd7e 38933
d12aef51
VZ
38934 else
38935 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38936 fi
9c112555
MW
38937fi
38938WITH_PLUGIN_SDL=0
38939if test "$wxUSE_SOUND" = "yes"; then
38940 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38941 if test "$wxUSE_LIBSDL" != "no"; then
38942
38943# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38944if test "${with_sdl_prefix+set}" = set; then
38945 withval="$with_sdl_prefix"
38946 sdl_prefix="$withval"
38947else
38948 sdl_prefix=""
38949fi;
38950
38951# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38952if test "${with_sdl_exec_prefix+set}" = set; then
38953 withval="$with_sdl_exec_prefix"
38954 sdl_exec_prefix="$withval"
38955else
38956 sdl_exec_prefix=""
38957fi;
38958# Check whether --enable-sdltest or --disable-sdltest was given.
38959if test "${enable_sdltest+set}" = set; then
38960 enableval="$enable_sdltest"
38961
38962else
38963 enable_sdltest=yes
38964fi;
38965
38966 if test x$sdl_exec_prefix != x ; then
38967 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38968 if test x${SDL_CONFIG+set} != xset ; then
38969 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38970 fi
38971 fi
38972 if test x$sdl_prefix != x ; then
38973 sdl_args="$sdl_args --prefix=$sdl_prefix"
38974 if test x${SDL_CONFIG+set} != xset ; then
38975 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38976 fi
38977 fi
38978
38979
38980 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38981 # Extract the first word of "sdl-config", so it can be a program name with args.
38982set dummy sdl-config; ac_word=$2
38983echo "$as_me:$LINENO: checking for $ac_word" >&5
38984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38985if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38986 echo $ECHO_N "(cached) $ECHO_C" >&6
38987else
38988 case $SDL_CONFIG in
38989 [\\/]* | ?:[\\/]*)
38990 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38991 ;;
38992 *)
38993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38994for as_dir in $PATH
38995do
38996 IFS=$as_save_IFS
38997 test -z "$as_dir" && as_dir=.
38998 for ac_exec_ext in '' $ac_executable_extensions; do
38999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39000 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39002 break 2
39003 fi
39004done
39005done
39006
39007 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
39008 ;;
39009esac
39010fi
39011SDL_CONFIG=$ac_cv_path_SDL_CONFIG
39012
39013if test -n "$SDL_CONFIG"; then
39014 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
39015echo "${ECHO_T}$SDL_CONFIG" >&6
39016else
39017 echo "$as_me:$LINENO: result: no" >&5
39018echo "${ECHO_T}no" >&6
39019fi
39020
39021 min_sdl_version=1.2.0
39022 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
39023echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
39024 no_sdl=""
39025 if test "$SDL_CONFIG" = "no" ; then
39026 no_sdl=yes
39027 else
39028 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
39029 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
39030
39031 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
39032 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
39033 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
39034 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
39035 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
39036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
39037 if test "x$enable_sdltest" = "xyes" ; then
39038 ac_save_CFLAGS="$CFLAGS"
94acd38e 39039 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
39040 ac_save_LIBS="$LIBS"
39041 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39042 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39043 LIBS="$LIBS $SDL_LIBS"
39044 rm -f conf.sdltest
39045 if test "$cross_compiling" = yes; then
39046 echo $ac_n "cross compiling; assumed OK... $ac_c"
39047else
39048 cat >conftest.$ac_ext <<_ACEOF
39049/* confdefs.h. */
39050_ACEOF
39051cat confdefs.h >>conftest.$ac_ext
39052cat >>conftest.$ac_ext <<_ACEOF
39053/* end confdefs.h. */
39054
39055#include <stdio.h>
39056#include <stdlib.h>
39057#include <string.h>
39058#include "SDL.h"
39059
39060char*
39061my_strdup (char *str)
39062{
39063 char *new_str;
39064
39065 if (str)
39066 {
39067 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
39068 strcpy (new_str, str);
39069 }
39070 else
39071 new_str = NULL;
39072
39073 return new_str;
39074}
39075
39076int main (int argc, char *argv[])
39077{
39078 int major, minor, micro;
39079 char *tmp_version;
39080
39081 /* This hangs on some systems (?)
39082 system ("touch conf.sdltest");
39083 */
39084 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
39085
39086 /* HP/UX 9 (%@#!) writes to sscanf strings */
39087 tmp_version = my_strdup("$min_sdl_version");
39088 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
39089 printf("%s, bad version string\n", "$min_sdl_version");
39090 exit(1);
39091 }
39092
39093 if (($sdl_major_version > major) ||
39094 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
39095 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
39096 {
39097 return 0;
39098 }
39099 else
39100 {
39101 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
39102 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
39103 printf("*** best to upgrade to the required version.\n");
39104 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
39105 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
39106 printf("*** config.cache before re-running configure\n");
39107 return 1;
39108 }
39109}
39110
39111
39112_ACEOF
39113rm -f conftest$ac_exeext
39114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39115 (eval $ac_link) 2>&5
39116 ac_status=$?
39117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39120 (eval $ac_try) 2>&5
39121 ac_status=$?
39122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123 (exit $ac_status); }; }; then
39124 :
39125else
39126 echo "$as_me: program exited with status $ac_status" >&5
39127echo "$as_me: failed program was:" >&5
39128sed 's/^/| /' conftest.$ac_ext >&5
39129
39130( exit $ac_status )
39131no_sdl=yes
39132fi
ac1cb8d3 39133rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39134fi
39135 CFLAGS="$ac_save_CFLAGS"
94acd38e 39136 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39137 LIBS="$ac_save_LIBS"
39138 fi
39139 fi
39140 if test "x$no_sdl" = x ; then
39141 echo "$as_me:$LINENO: result: yes" >&5
39142echo "${ECHO_T}yes" >&6
39143
39144 EXTRALIBS_SDL="$SDL_LIBS"
39145 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39146 cat >>confdefs.h <<\_ACEOF
39147#define wxUSE_LIBSDL 1
39148_ACEOF
39149
39150
39151 else
39152 echo "$as_me:$LINENO: result: no" >&5
39153echo "${ECHO_T}no" >&6
39154 if test "$SDL_CONFIG" = "no" ; then
39155 echo "*** The sdl-config script installed by SDL could not be found"
39156 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
39157 echo "*** your path, or set the SDL_CONFIG environment variable to the"
39158 echo "*** full path to sdl-config."
39159 else
39160 if test -f conf.sdltest ; then
39161 :
39162 else
39163 echo "*** Could not run SDL test program, checking why..."
39164 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39165 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39166 LIBS="$LIBS $SDL_LIBS"
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 <stdio.h>
39175#include "SDL.h"
39176
39177int main(int argc, char *argv[])
39178{ return 0; }
39179#undef main
39180#define main K_and_R_C_main
39181
39182int
39183main ()
39184{
39185 return 0;
39186 ;
39187 return 0;
39188}
39189_ACEOF
39190rm -f conftest.$ac_objext conftest$ac_exeext
39191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39192 (eval $ac_link) 2>conftest.er1
a848cd7e 39193 ac_status=$?
ac1cb8d3
VS
39194 grep -v '^ *+' conftest.er1 >conftest.err
39195 rm -f conftest.er1
39196 cat conftest.err >&5
a848cd7e
SC
39197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198 (exit $ac_status); } &&
dee1a63f
MB
39199 { ac_try='test -z "$ac_c_werror_flag"
39200 || test ! -s conftest.err'
ac1cb8d3
VS
39201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39202 (eval $ac_try) 2>&5
39203 ac_status=$?
39204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39205 (exit $ac_status); }; } &&
39206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39208 (eval $ac_try) 2>&5
39209 ac_status=$?
39210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39211 (exit $ac_status); }; }; then
39212 echo "*** The test program compiled, but did not run. This usually means"
39213 echo "*** that the run-time linker is not finding SDL or finding the wrong"
39214 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
39215 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
39216 echo "*** to the installed location Also, make sure you have run ldconfig if that"
39217 echo "*** is required on your system"
39218 echo "***"
39219 echo "*** If you have an old version installed, it is best to remove it, although"
39220 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
39221else
39222 echo "$as_me: failed program was:" >&5
39223sed 's/^/| /' conftest.$ac_ext >&5
39224
39225 echo "*** The test program failed to compile or link. See the file config.log for the"
39226 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
39227 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
39228 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
39229fi
ac1cb8d3
VS
39230rm -f conftest.err conftest.$ac_objext \
39231 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39232 CFLAGS="$ac_save_CFLAGS"
94acd38e 39233 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39234 LIBS="$ac_save_LIBS"
39235 fi
39236 fi
39237 SDL_CFLAGS=""
39238 SDL_LIBS=""
39239 wxUSE_LIBSDL="no"
39240 fi
39241
39242
39243 rm -f conf.sdltest
39244
39245 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
39246 WITH_PLUGIN_SDL=1
39247 fi
39248 fi
39249 fi
39250
39251 cat >>confdefs.h <<\_ACEOF
39252#define wxUSE_SOUND 1
39253_ACEOF
39254
39255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
39256fi
39257
d1c38808
VZ
39258if test "$WXGTK20" = 1; then
39259 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39260 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
39261
39262
39263 succeeded=no
39264
39265 if test -z "$PKG_CONFIG"; then
39266 # Extract the first word of "pkg-config", so it can be a program name with args.
39267set dummy pkg-config; ac_word=$2
39268echo "$as_me:$LINENO: checking for $ac_word" >&5
39269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39270if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39271 echo $ECHO_N "(cached) $ECHO_C" >&6
39272else
39273 case $PKG_CONFIG in
39274 [\\/]* | ?:[\\/]*)
39275 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39276 ;;
39277 *)
39278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39279for as_dir in $PATH
39280do
39281 IFS=$as_save_IFS
39282 test -z "$as_dir" && as_dir=.
39283 for ac_exec_ext in '' $ac_executable_extensions; do
39284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39285 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39287 break 2
39288 fi
39289done
39290done
39291
39292 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39293 ;;
39294esac
39295fi
39296PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39297
39298if test -n "$PKG_CONFIG"; then
39299 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39300echo "${ECHO_T}$PKG_CONFIG" >&6
39301else
39302 echo "$as_me:$LINENO: result: no" >&5
39303echo "${ECHO_T}no" >&6
39304fi
39305
39306 fi
39307
39308 if test "$PKG_CONFIG" = "no" ; then
39309 echo "*** The pkg-config script could not be found. Make sure it is"
39310 echo "*** in your path, or set the PKG_CONFIG environment variable"
39311 echo "*** to the full path to pkg-config."
39312 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39313 else
39314 PKG_CONFIG_MIN_VERSION=0.9.0
39315 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
39316 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
39317echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 39318
ffa762ff 39319 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
39320 echo "$as_me:$LINENO: result: yes" >&5
39321echo "${ECHO_T}yes" >&6
39322 succeeded=yes
39323
39324 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
39325echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 39326 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39327 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
39328echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
39329
39330 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
39331echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 39332 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39333 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
39334echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
39335 else
39336 LIBGNOMEPRINTUI_CFLAGS=""
39337 LIBGNOMEPRINTUI_LIBS=""
39338 ## If we have a custom action on failure, don't print errors, but
39339 ## do set a variable so people can do so.
ffa762ff 39340 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39341
39342 fi
39343
39344
39345
39346 else
39347 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39348 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39349 fi
39350 fi
39351
39352 if test $succeeded = yes; then
39353
d1c38808
VZ
39354 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
39355 cat >>confdefs.h <<\_ACEOF
39356#define wxUSE_LIBGNOMEPRINT 1
39357_ACEOF
39358
39359
39360 else
39361
39362 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
39363echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
39364 wxUSE_LIBGNOMEPRINT="no"
39365
39366
39367 fi
39368
39369 fi
39370 fi
39371fi
39372
39373
a848cd7e
SC
39374if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
39375 cat >>confdefs.h <<\_ACEOF
39376#define wxUSE_CMDLINE_PARSER 1
39377_ACEOF
39378
39379fi
39380
39381if test "$wxUSE_STOPWATCH" = "yes"; then
39382 cat >>confdefs.h <<\_ACEOF
39383#define wxUSE_STOPWATCH 1
39384_ACEOF
39385
39386fi
39387
39388if test "$wxUSE_DATETIME" = "yes"; then
39389 cat >>confdefs.h <<\_ACEOF
39390#define wxUSE_DATETIME 1
39391_ACEOF
39392
39393fi
39394
39395if test "$wxUSE_FILE" = "yes"; then
39396 cat >>confdefs.h <<\_ACEOF
39397#define wxUSE_FILE 1
39398_ACEOF
39399
39400fi
39401
39402if test "$wxUSE_FFILE" = "yes"; then
39403 cat >>confdefs.h <<\_ACEOF
39404#define wxUSE_FFILE 1
39405_ACEOF
39406
39407fi
39408
39409if test "$wxUSE_FILESYSTEM" = "yes"; then
39410 cat >>confdefs.h <<\_ACEOF
39411#define wxUSE_FILESYSTEM 1
39412_ACEOF
39413
39414fi
39415
39416if test "$wxUSE_FS_ZIP" = "yes"; then
39417 cat >>confdefs.h <<\_ACEOF
39418#define wxUSE_FS_ZIP 1
39419_ACEOF
39420
39421fi
39422
9e8e867f 39423if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 39424 cat >>confdefs.h <<\_ACEOF
9e8e867f 39425#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
39426_ACEOF
39427
39428fi
39429
39430if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 39431 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
39432 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
39433echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
39434 elif test "$wxUSE_ZLIB" = "no"; then
39435 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
39436echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
39437 else
39438 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39439#define wxUSE_ZIPSTREAM 1
39440_ACEOF
39441
81f90336 39442 fi
a848cd7e
SC
39443fi
39444
a848cd7e 39445if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
39446 if test "$USE_UNIX" != 1; then
39447 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
39448echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
39449 wxUSE_ON_FATAL_EXCEPTION=no
39450 else
39451 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39452#define wxUSE_ON_FATAL_EXCEPTION 1
39453_ACEOF
39454
18228ab4 39455 fi
a848cd7e
SC
39456fi
39457
eaff0f0d
VZ
39458if test "$wxUSE_STACKWALKER" = "yes"; then
39459 cat >>confdefs.h <<\_ACEOF
39460#define wxUSE_STACKWALKER 1
39461_ACEOF
39462
39463fi
39464
36b6448c 39465if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
39466 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
39467 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
39468echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
39469 wxUSE_DEBUGREPORT=no
39470 else
39471 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
39472#define wxUSE_DEBUGREPORT 1
39473_ACEOF
39474
21dfc162
MW
39475 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
39477 fi
dfe0c803 39478 fi
36b6448c
VZ
39479fi
39480
a848cd7e
SC
39481if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39482 cat >>confdefs.h <<\_ACEOF
39483#define wxUSE_SNGLINST_CHECKER 1
39484_ACEOF
39485
39486fi
39487
39488if test "$wxUSE_BUSYINFO" = "yes"; then
39489 cat >>confdefs.h <<\_ACEOF
39490#define wxUSE_BUSYINFO 1
39491_ACEOF
39492
39493fi
39494
39495if test "$wxUSE_STD_IOSTREAM" = "yes"; then
39496 cat >>confdefs.h <<\_ACEOF
39497#define wxUSE_STD_IOSTREAM 1
39498_ACEOF
39499
39500fi
39501
59746b65
MW
39502if test "$wxUSE_STD_STRING" = "yes"; then
39503 cat >>confdefs.h <<\_ACEOF
39504#define wxUSE_STD_STRING 1
39505_ACEOF
39506
39507fi
39508
07158944
VZ
39509if test "$wxUSE_STDPATHS" = "yes"; then
39510 cat >>confdefs.h <<\_ACEOF
39511#define wxUSE_STDPATHS 1
39512_ACEOF
39513
39514fi
39515
a848cd7e
SC
39516if test "$wxUSE_TEXTBUFFER" = "yes"; then
39517 cat >>confdefs.h <<\_ACEOF
39518#define wxUSE_TEXTBUFFER 1
39519_ACEOF
39520
39521fi
39522
39523if test "$wxUSE_TEXTFILE" = "yes"; then
39524 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
39525 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
39526echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
39527 else
39528 cat >>confdefs.h <<\_ACEOF
39529#define wxUSE_TEXTFILE 1
39530_ACEOF
39531
39532 fi
39533fi
39534
39535if test "$wxUSE_CONFIG" = "yes" ; then
39536 if test "$wxUSE_TEXTFILE" != "yes"; then
39537 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
39538echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
39539 else
39540 cat >>confdefs.h <<\_ACEOF
39541#define wxUSE_CONFIG 1
89be85c2
VS
39542_ACEOF
39543
39544 cat >>confdefs.h <<\_ACEOF
39545#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
39546_ACEOF
39547
39548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
39549 fi
39550fi
39551
39552if test "$wxUSE_INTL" = "yes" ; then
39553 if test "$wxUSE_FILE" != "yes"; then
39554 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
39555echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
39556 else
39557 cat >>confdefs.h <<\_ACEOF
39558#define wxUSE_INTL 1
39559_ACEOF
39560
39561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
39562 GUIDIST="$GUIDIST INTL_DIST"
39563 fi
39564fi
39565
39566if test "$wxUSE_LOG" = "yes"; then
39567 cat >>confdefs.h <<\_ACEOF
39568#define wxUSE_LOG 1
39569_ACEOF
39570
39571
39572 if test "$wxUSE_LOGGUI" = "yes"; then
39573 cat >>confdefs.h <<\_ACEOF
39574#define wxUSE_LOGGUI 1
39575_ACEOF
39576
39577 fi
39578
39579 if test "$wxUSE_LOGWINDOW" = "yes"; then
39580 cat >>confdefs.h <<\_ACEOF
39581#define wxUSE_LOGWINDOW 1
39582_ACEOF
39583
39584 fi
39585
39586 if test "$wxUSE_LOGDIALOG" = "yes"; then
39587 cat >>confdefs.h <<\_ACEOF
39588#define wxUSE_LOG_DIALOG 1
39589_ACEOF
39590
39591 fi
0b78747f
MW
39592
39593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
39594fi
39595
39596if test "$wxUSE_LONGLONG" = "yes"; then
39597 cat >>confdefs.h <<\_ACEOF
39598#define wxUSE_LONGLONG 1
39599_ACEOF
39600
39601fi
39602
39603if test "$wxUSE_GEOMETRY" = "yes"; then
39604 cat >>confdefs.h <<\_ACEOF
39605#define wxUSE_GEOMETRY 1
39606_ACEOF
39607
39608fi
39609
a848cd7e
SC
39610if test "$wxUSE_STREAMS" = "yes" ; then
39611 cat >>confdefs.h <<\_ACEOF
39612#define wxUSE_STREAMS 1
39613_ACEOF
39614
39615fi
39616
39617
39618if test "$wxUSE_DATETIME" = "yes"; then
39619
39620for ac_func in strptime
39621do
39622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39623echo "$as_me:$LINENO: checking for $ac_func" >&5
39624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39625if eval "test \"\${$as_ac_var+set}\" = set"; then
39626 echo $ECHO_N "(cached) $ECHO_C" >&6
39627else
39628 cat >conftest.$ac_ext <<_ACEOF
39629/* confdefs.h. */
39630_ACEOF
39631cat confdefs.h >>conftest.$ac_ext
39632cat >>conftest.$ac_ext <<_ACEOF
39633/* end confdefs.h. */
ac1cb8d3
VS
39634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39636#define $ac_func innocuous_$ac_func
39637
a848cd7e
SC
39638/* System header to define __stub macros and hopefully few prototypes,
39639 which can conflict with char $ac_func (); below.
39640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39642
a848cd7e
SC
39643#ifdef __STDC__
39644# include <limits.h>
39645#else
39646# include <assert.h>
39647#endif
ac1cb8d3
VS
39648
39649#undef $ac_func
39650
a848cd7e
SC
39651/* Override any gcc2 internal prototype to avoid an error. */
39652#ifdef __cplusplus
39653extern "C"
39654{
39655#endif
39656/* We use char because int might match the return type of a gcc2
39657 builtin and then its argument prototype would still apply. */
39658char $ac_func ();
39659/* The GNU C library defines this for functions which it implements
39660 to always fail with ENOSYS. Some functions are actually named
39661 something starting with __ and the normal name is an alias. */
39662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39663choke me
39664#else
39665char (*f) () = $ac_func;
39666#endif
39667#ifdef __cplusplus
39668}
39669#endif
39670
39671int
39672main ()
39673{
39674return f != $ac_func;
39675 ;
39676 return 0;
39677}
39678_ACEOF
39679rm -f conftest.$ac_objext conftest$ac_exeext
39680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39681 (eval $ac_link) 2>conftest.er1
a848cd7e 39682 ac_status=$?
ac1cb8d3
VS
39683 grep -v '^ *+' conftest.er1 >conftest.err
39684 rm -f conftest.er1
39685 cat conftest.err >&5
a848cd7e
SC
39686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 (exit $ac_status); } &&
dee1a63f
MB
39688 { ac_try='test -z "$ac_c_werror_flag"
39689 || test ! -s conftest.err'
ac1cb8d3
VS
39690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39691 (eval $ac_try) 2>&5
39692 ac_status=$?
39693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694 (exit $ac_status); }; } &&
39695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39697 (eval $ac_try) 2>&5
39698 ac_status=$?
39699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39700 (exit $ac_status); }; }; then
39701 eval "$as_ac_var=yes"
39702else
39703 echo "$as_me: failed program was:" >&5
39704sed 's/^/| /' conftest.$ac_ext >&5
39705
39706eval "$as_ac_var=no"
39707fi
ac1cb8d3
VS
39708rm -f conftest.err conftest.$ac_objext \
39709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39710fi
39711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39712echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39713if test `eval echo '${'$as_ac_var'}'` = yes; then
39714 cat >>confdefs.h <<_ACEOF
39715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39716_ACEOF
39717
39718fi
39719done
39720
f536f005
VZ
39721 if test "$ac_cv_func_strptime" = "yes"; then
39722 echo "$as_me:$LINENO: checking for strptime declaration" >&5
39723echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39724if test "${wx_cv_func_strptime_decl+set}" = set; then
39725 echo $ECHO_N "(cached) $ECHO_C" >&6
39726else
39727
39728
39729
39730 ac_ext=cc
39731ac_cpp='$CXXCPP $CPPFLAGS'
39732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39735
39736 cat >conftest.$ac_ext <<_ACEOF
39737/* confdefs.h. */
39738_ACEOF
39739cat confdefs.h >>conftest.$ac_ext
39740cat >>conftest.$ac_ext <<_ACEOF
39741/* end confdefs.h. */
39742
39743 #include <time.h>
39744
39745int
39746main ()
39747{
39748
39749 struct tm t;
39750 strptime("foo", "bar", &t);
39751
39752 ;
39753 return 0;
39754}
39755_ACEOF
39756rm -f conftest.$ac_objext
39757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39758 (eval $ac_compile) 2>conftest.er1
39759 ac_status=$?
39760 grep -v '^ *+' conftest.er1 >conftest.err
39761 rm -f conftest.er1
39762 cat conftest.err >&5
39763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764 (exit $ac_status); } &&
dee1a63f
MB
39765 { ac_try='test -z "$ac_cxx_werror_flag"
39766 || test ! -s conftest.err'
f536f005
VZ
39767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39768 (eval $ac_try) 2>&5
39769 ac_status=$?
39770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771 (exit $ac_status); }; } &&
39772 { ac_try='test -s conftest.$ac_objext'
39773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39774 (eval $ac_try) 2>&5
39775 ac_status=$?
39776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777 (exit $ac_status); }; }; then
39778 wx_cv_func_strptime_decl=yes
39779else
39780 echo "$as_me: failed program was:" >&5
39781sed 's/^/| /' conftest.$ac_ext >&5
39782
39783wx_cv_func_strptime_decl=no
39784
39785fi
39786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39787 ac_ext=c
39788ac_cpp='$CPP $CPPFLAGS'
39789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39791ac_compiler_gnu=$ac_cv_c_compiler_gnu
39792
39793
39794
39795fi
39796echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39797echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39798 fi
39799 if test "$wx_cv_func_strptime_decl" = "yes"; then
39800 cat >>confdefs.h <<\_ACEOF
39801#define HAVE_STRPTIME_DECL 1
39802_ACEOF
39803
39804 fi
a848cd7e
SC
39805
39806 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39807echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39808if test "${wx_cv_var_timezone+set}" = set; then
39809 echo $ECHO_N "(cached) $ECHO_C" >&6
39810else
39811
39812 cat >conftest.$ac_ext <<_ACEOF
39813/* confdefs.h. */
39814_ACEOF
39815cat confdefs.h >>conftest.$ac_ext
39816cat >>conftest.$ac_ext <<_ACEOF
39817/* end confdefs.h. */
39818
39819 #include <time.h>
39820
39821int
39822main ()
39823{
39824
39825 int tz;
39826 tz = timezone;
39827
39828 ;
39829 return 0;
39830}
39831_ACEOF
39832rm -f conftest.$ac_objext
39833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39834 (eval $ac_compile) 2>conftest.er1
a848cd7e 39835 ac_status=$?
ac1cb8d3
VS
39836 grep -v '^ *+' conftest.er1 >conftest.err
39837 rm -f conftest.er1
39838 cat conftest.err >&5
a848cd7e
SC
39839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39840 (exit $ac_status); } &&
dee1a63f
MB
39841 { ac_try='test -z "$ac_c_werror_flag"
39842 || test ! -s conftest.err'
ac1cb8d3
VS
39843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39844 (eval $ac_try) 2>&5
39845 ac_status=$?
39846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39847 (exit $ac_status); }; } &&
39848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39850 (eval $ac_try) 2>&5
39851 ac_status=$?
39852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39853 (exit $ac_status); }; }; then
39854
39855 wx_cv_var_timezone=timezone
39856
39857else
39858 echo "$as_me: failed program was:" >&5
39859sed 's/^/| /' conftest.$ac_ext >&5
39860
39861
39862 cat >conftest.$ac_ext <<_ACEOF
39863/* confdefs.h. */
39864_ACEOF
39865cat confdefs.h >>conftest.$ac_ext
39866cat >>conftest.$ac_ext <<_ACEOF
39867/* end confdefs.h. */
39868
39869 #include <time.h>
39870
39871int
39872main ()
39873{
39874
39875 int tz;
39876 tz = _timezone;
39877
39878 ;
39879 return 0;
39880}
39881_ACEOF
39882rm -f conftest.$ac_objext
39883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39884 (eval $ac_compile) 2>conftest.er1
a848cd7e 39885 ac_status=$?
ac1cb8d3
VS
39886 grep -v '^ *+' conftest.er1 >conftest.err
39887 rm -f conftest.er1
39888 cat conftest.err >&5
a848cd7e
SC
39889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39890 (exit $ac_status); } &&
dee1a63f
MB
39891 { ac_try='test -z "$ac_c_werror_flag"
39892 || test ! -s conftest.err'
ac1cb8d3
VS
39893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894 (eval $ac_try) 2>&5
39895 ac_status=$?
39896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897 (exit $ac_status); }; } &&
39898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39900 (eval $ac_try) 2>&5
39901 ac_status=$?
39902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903 (exit $ac_status); }; }; then
39904
39905 wx_cv_var_timezone=_timezone
39906
39907else
39908 echo "$as_me: failed program was:" >&5
39909sed 's/^/| /' conftest.$ac_ext >&5
39910
39911
39912 cat >conftest.$ac_ext <<_ACEOF
39913/* confdefs.h. */
39914_ACEOF
39915cat confdefs.h >>conftest.$ac_ext
39916cat >>conftest.$ac_ext <<_ACEOF
39917/* end confdefs.h. */
39918
39919 #include <time.h>
39920
39921int
39922main ()
39923{
39924
39925 int tz;
39926 tz = __timezone;
39927
39928 ;
39929 return 0;
39930}
39931_ACEOF
39932rm -f conftest.$ac_objext
39933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39934 (eval $ac_compile) 2>conftest.er1
a848cd7e 39935 ac_status=$?
ac1cb8d3
VS
39936 grep -v '^ *+' conftest.er1 >conftest.err
39937 rm -f conftest.er1
39938 cat conftest.err >&5
a848cd7e
SC
39939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39940 (exit $ac_status); } &&
dee1a63f
MB
39941 { ac_try='test -z "$ac_c_werror_flag"
39942 || test ! -s conftest.err'
ac1cb8d3
VS
39943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39944 (eval $ac_try) 2>&5
39945 ac_status=$?
39946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947 (exit $ac_status); }; } &&
39948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39950 (eval $ac_try) 2>&5
39951 ac_status=$?
39952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953 (exit $ac_status); }; }; then
39954
39955 wx_cv_var_timezone=__timezone
39956
39957else
39958 echo "$as_me: failed program was:" >&5
39959sed 's/^/| /' conftest.$ac_ext >&5
39960
39961
39962 if test "$USE_DOS" = 0 ; then
39963 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39964echo "$as_me: WARNING: no timezone variable" >&2;}
39965 fi
39966
39967
39968fi
ac1cb8d3 39969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39970
39971
39972fi
ac1cb8d3 39973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39974
39975
39976fi
ac1cb8d3 39977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39978
39979
39980fi
39981echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39982echo "${ECHO_T}$wx_cv_var_timezone" >&6
39983
39984 if test "x$wx_cv_var_timezone" != x ; then
39985 cat >>confdefs.h <<_ACEOF
39986#define WX_TIMEZONE $wx_cv_var_timezone
39987_ACEOF
39988
39989 fi
39990
39991
39992for ac_func in localtime
39993do
39994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39995echo "$as_me:$LINENO: checking for $ac_func" >&5
39996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39997if eval "test \"\${$as_ac_var+set}\" = set"; then
39998 echo $ECHO_N "(cached) $ECHO_C" >&6
39999else
40000 cat >conftest.$ac_ext <<_ACEOF
40001/* confdefs.h. */
40002_ACEOF
40003cat confdefs.h >>conftest.$ac_ext
40004cat >>conftest.$ac_ext <<_ACEOF
40005/* end confdefs.h. */
ac1cb8d3
VS
40006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40008#define $ac_func innocuous_$ac_func
40009
a848cd7e
SC
40010/* System header to define __stub macros and hopefully few prototypes,
40011 which can conflict with char $ac_func (); below.
40012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40013 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40014
a848cd7e
SC
40015#ifdef __STDC__
40016# include <limits.h>
40017#else
40018# include <assert.h>
40019#endif
ac1cb8d3
VS
40020
40021#undef $ac_func
40022
a848cd7e
SC
40023/* Override any gcc2 internal prototype to avoid an error. */
40024#ifdef __cplusplus
40025extern "C"
40026{
40027#endif
40028/* We use char because int might match the return type of a gcc2
40029 builtin and then its argument prototype would still apply. */
40030char $ac_func ();
40031/* The GNU C library defines this for functions which it implements
40032 to always fail with ENOSYS. Some functions are actually named
40033 something starting with __ and the normal name is an alias. */
40034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40035choke me
40036#else
40037char (*f) () = $ac_func;
40038#endif
40039#ifdef __cplusplus
40040}
40041#endif
40042
40043int
40044main ()
40045{
40046return f != $ac_func;
40047 ;
40048 return 0;
40049}
40050_ACEOF
40051rm -f conftest.$ac_objext conftest$ac_exeext
40052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40053 (eval $ac_link) 2>conftest.er1
a848cd7e 40054 ac_status=$?
ac1cb8d3
VS
40055 grep -v '^ *+' conftest.er1 >conftest.err
40056 rm -f conftest.er1
40057 cat conftest.err >&5
a848cd7e
SC
40058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40059 (exit $ac_status); } &&
dee1a63f
MB
40060 { ac_try='test -z "$ac_c_werror_flag"
40061 || test ! -s conftest.err'
ac1cb8d3
VS
40062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40063 (eval $ac_try) 2>&5
40064 ac_status=$?
40065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40066 (exit $ac_status); }; } &&
40067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40069 (eval $ac_try) 2>&5
40070 ac_status=$?
40071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40072 (exit $ac_status); }; }; then
40073 eval "$as_ac_var=yes"
40074else
40075 echo "$as_me: failed program was:" >&5
40076sed 's/^/| /' conftest.$ac_ext >&5
40077
40078eval "$as_ac_var=no"
40079fi
ac1cb8d3
VS
40080rm -f conftest.err conftest.$ac_objext \
40081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40082fi
40083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40085if test `eval echo '${'$as_ac_var'}'` = yes; then
40086 cat >>confdefs.h <<_ACEOF
40087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40088_ACEOF
40089
40090fi
40091done
40092
40093
40094 if test "$ac_cv_func_localtime" = "yes"; then
40095 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
40096echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
40097if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
40098 echo $ECHO_N "(cached) $ECHO_C" >&6
40099else
40100
40101 cat >conftest.$ac_ext <<_ACEOF
40102/* confdefs.h. */
40103_ACEOF
40104cat confdefs.h >>conftest.$ac_ext
40105cat >>conftest.$ac_ext <<_ACEOF
40106/* end confdefs.h. */
40107
40108 #include <time.h>
40109
40110int
40111main ()
40112{
40113
40114 struct tm tm;
40115 tm.tm_gmtoff++;
40116
40117 ;
40118 return 0;
40119}
40120_ACEOF
40121rm -f conftest.$ac_objext
40122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40123 (eval $ac_compile) 2>conftest.er1
a848cd7e 40124 ac_status=$?
ac1cb8d3
VS
40125 grep -v '^ *+' conftest.er1 >conftest.err
40126 rm -f conftest.er1
40127 cat conftest.err >&5
a848cd7e
SC
40128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129 (exit $ac_status); } &&
dee1a63f
MB
40130 { ac_try='test -z "$ac_c_werror_flag"
40131 || test ! -s conftest.err'
ac1cb8d3
VS
40132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40133 (eval $ac_try) 2>&5
40134 ac_status=$?
40135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136 (exit $ac_status); }; } &&
40137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40139 (eval $ac_try) 2>&5
40140 ac_status=$?
40141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40142 (exit $ac_status); }; }; then
40143
40144 wx_cv_struct_tm_has_gmtoff=yes
40145
40146else
40147 echo "$as_me: failed program was:" >&5
40148sed 's/^/| /' conftest.$ac_ext >&5
40149
40150wx_cv_struct_tm_has_gmtoff=no
40151
40152fi
ac1cb8d3 40153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40154
40155fi
40156echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
40157echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
40158 fi
40159
40160 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
40161 cat >>confdefs.h <<\_ACEOF
40162#define WX_GMTOFF_IN_TM 1
40163_ACEOF
40164
40165 fi
40166
40167
40168
40169for ac_func in gettimeofday ftime
40170do
40171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40172echo "$as_me:$LINENO: checking for $ac_func" >&5
40173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40174if eval "test \"\${$as_ac_var+set}\" = set"; then
40175 echo $ECHO_N "(cached) $ECHO_C" >&6
40176else
40177 cat >conftest.$ac_ext <<_ACEOF
40178/* confdefs.h. */
40179_ACEOF
40180cat confdefs.h >>conftest.$ac_ext
40181cat >>conftest.$ac_ext <<_ACEOF
40182/* end confdefs.h. */
ac1cb8d3
VS
40183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40185#define $ac_func innocuous_$ac_func
40186
a848cd7e
SC
40187/* System header to define __stub macros and hopefully few prototypes,
40188 which can conflict with char $ac_func (); below.
40189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40190 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40191
a848cd7e
SC
40192#ifdef __STDC__
40193# include <limits.h>
40194#else
40195# include <assert.h>
40196#endif
ac1cb8d3
VS
40197
40198#undef $ac_func
40199
a848cd7e
SC
40200/* Override any gcc2 internal prototype to avoid an error. */
40201#ifdef __cplusplus
40202extern "C"
40203{
40204#endif
40205/* We use char because int might match the return type of a gcc2
40206 builtin and then its argument prototype would still apply. */
40207char $ac_func ();
40208/* The GNU C library defines this for functions which it implements
40209 to always fail with ENOSYS. Some functions are actually named
40210 something starting with __ and the normal name is an alias. */
40211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40212choke me
40213#else
40214char (*f) () = $ac_func;
40215#endif
40216#ifdef __cplusplus
40217}
40218#endif
40219
40220int
40221main ()
40222{
40223return f != $ac_func;
40224 ;
40225 return 0;
40226}
40227_ACEOF
40228rm -f conftest.$ac_objext conftest$ac_exeext
40229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40230 (eval $ac_link) 2>conftest.er1
a848cd7e 40231 ac_status=$?
ac1cb8d3
VS
40232 grep -v '^ *+' conftest.er1 >conftest.err
40233 rm -f conftest.er1
40234 cat conftest.err >&5
a848cd7e
SC
40235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); } &&
dee1a63f
MB
40237 { ac_try='test -z "$ac_c_werror_flag"
40238 || test ! -s conftest.err'
ac1cb8d3
VS
40239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40240 (eval $ac_try) 2>&5
40241 ac_status=$?
40242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40243 (exit $ac_status); }; } &&
40244 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40246 (eval $ac_try) 2>&5
40247 ac_status=$?
40248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249 (exit $ac_status); }; }; then
40250 eval "$as_ac_var=yes"
40251else
40252 echo "$as_me: failed program was:" >&5
40253sed 's/^/| /' conftest.$ac_ext >&5
40254
40255eval "$as_ac_var=no"
40256fi
ac1cb8d3
VS
40257rm -f conftest.err conftest.$ac_objext \
40258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40259fi
40260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40262if test `eval echo '${'$as_ac_var'}'` = yes; then
40263 cat >>confdefs.h <<_ACEOF
40264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40265_ACEOF
40266 break
40267fi
40268done
40269
40270
40271 if test "$ac_cv_func_gettimeofday" = "yes"; then
40272 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
40273echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
40274if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
40275 echo $ECHO_N "(cached) $ECHO_C" >&6
40276else
40277
40278
40279
40280 ac_ext=cc
40281ac_cpp='$CXXCPP $CPPFLAGS'
40282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40285
40286
40287 cat >conftest.$ac_ext <<_ACEOF
40288/* confdefs.h. */
40289_ACEOF
40290cat confdefs.h >>conftest.$ac_ext
40291cat >>conftest.$ac_ext <<_ACEOF
40292/* end confdefs.h. */
40293
40294 #include <sys/time.h>
40295 #include <unistd.h>
40296
40297int
40298main ()
40299{
40300
40301 struct timeval tv;
40302 gettimeofday(&tv, NULL);
40303
40304 ;
40305 return 0;
40306}
40307_ACEOF
40308rm -f conftest.$ac_objext
40309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40310 (eval $ac_compile) 2>conftest.er1
a848cd7e 40311 ac_status=$?
ac1cb8d3
VS
40312 grep -v '^ *+' conftest.er1 >conftest.err
40313 rm -f conftest.er1
40314 cat conftest.err >&5
a848cd7e
SC
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); } &&
dee1a63f
MB
40317 { ac_try='test -z "$ac_cxx_werror_flag"
40318 || test ! -s conftest.err'
ac1cb8d3
VS
40319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40320 (eval $ac_try) 2>&5
40321 ac_status=$?
40322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40323 (exit $ac_status); }; } &&
40324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40326 (eval $ac_try) 2>&5
40327 ac_status=$?
40328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329 (exit $ac_status); }; }; then
40330 wx_cv_func_gettimeofday_has_2_args=yes
40331else
40332 echo "$as_me: failed program was:" >&5
40333sed 's/^/| /' conftest.$ac_ext >&5
40334
40335cat >conftest.$ac_ext <<_ACEOF
40336/* confdefs.h. */
40337_ACEOF
40338cat confdefs.h >>conftest.$ac_ext
40339cat >>conftest.$ac_ext <<_ACEOF
40340/* end confdefs.h. */
40341
40342 #include <sys/time.h>
40343 #include <unistd.h>
40344
40345int
40346main ()
40347{
40348
40349 struct timeval tv;
40350 gettimeofday(&tv);
40351
40352 ;
40353 return 0;
40354}
40355_ACEOF
40356rm -f conftest.$ac_objext
40357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40358 (eval $ac_compile) 2>conftest.er1
a848cd7e 40359 ac_status=$?
ac1cb8d3
VS
40360 grep -v '^ *+' conftest.er1 >conftest.err
40361 rm -f conftest.er1
40362 cat conftest.err >&5
a848cd7e
SC
40363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40364 (exit $ac_status); } &&
dee1a63f
MB
40365 { ac_try='test -z "$ac_cxx_werror_flag"
40366 || test ! -s conftest.err'
ac1cb8d3
VS
40367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40368 (eval $ac_try) 2>&5
40369 ac_status=$?
40370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40371 (exit $ac_status); }; } &&
40372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40374 (eval $ac_try) 2>&5
40375 ac_status=$?
40376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377 (exit $ac_status); }; }; then
40378 wx_cv_func_gettimeofday_has_2_args=no
40379else
40380 echo "$as_me: failed program was:" >&5
40381sed 's/^/| /' conftest.$ac_ext >&5
40382
40383
40384 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
40385echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
40386 wx_cv_func_gettimeofday_has_2_args=unknown
40387
40388
40389fi
ac1cb8d3 40390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40391
40392fi
ac1cb8d3 40393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40394 ac_ext=c
40395ac_cpp='$CPP $CPPFLAGS'
40396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40398ac_compiler_gnu=$ac_cv_c_compiler_gnu
40399
40400
40401fi
40402echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
40403echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
40404
40405 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
40406 cat >>confdefs.h <<\_ACEOF
40407#define WX_GETTIMEOFDAY_NO_TZ 1
40408_ACEOF
40409
40410 fi
40411 fi
40412
40413 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
40414fi
40415
40416
40417if test "$wxUSE_SOCKETS" = "yes"; then
40418 if test "$wxUSE_MGL" = "1"; then
40419 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
40420echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
40421 wxUSE_SOCKETS="no"
40422 fi
40423fi
40424
40425if test "$wxUSE_SOCKETS" = "yes"; then
40426 if test "$TOOLKIT" != "MSW"; then
40427 echo "$as_me:$LINENO: checking for socket" >&5
40428echo $ECHO_N "checking for socket... $ECHO_C" >&6
40429if test "${ac_cv_func_socket+set}" = set; then
40430 echo $ECHO_N "(cached) $ECHO_C" >&6
40431else
40432 cat >conftest.$ac_ext <<_ACEOF
40433/* confdefs.h. */
40434_ACEOF
40435cat confdefs.h >>conftest.$ac_ext
40436cat >>conftest.$ac_ext <<_ACEOF
40437/* end confdefs.h. */
ac1cb8d3
VS
40438/* Define socket to an innocuous variant, in case <limits.h> declares socket.
40439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40440#define socket innocuous_socket
40441
a848cd7e
SC
40442/* System header to define __stub macros and hopefully few prototypes,
40443 which can conflict with char socket (); below.
40444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40445 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40446
a848cd7e
SC
40447#ifdef __STDC__
40448# include <limits.h>
40449#else
40450# include <assert.h>
40451#endif
ac1cb8d3
VS
40452
40453#undef socket
40454
a848cd7e
SC
40455/* Override any gcc2 internal prototype to avoid an error. */
40456#ifdef __cplusplus
40457extern "C"
40458{
40459#endif
40460/* We use char because int might match the return type of a gcc2
40461 builtin and then its argument prototype would still apply. */
40462char socket ();
40463/* The GNU C library defines this for functions which it implements
40464 to always fail with ENOSYS. Some functions are actually named
40465 something starting with __ and the normal name is an alias. */
40466#if defined (__stub_socket) || defined (__stub___socket)
40467choke me
40468#else
40469char (*f) () = socket;
40470#endif
40471#ifdef __cplusplus
40472}
40473#endif
40474
40475int
40476main ()
40477{
40478return f != socket;
40479 ;
40480 return 0;
40481}
40482_ACEOF
40483rm -f conftest.$ac_objext conftest$ac_exeext
40484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40485 (eval $ac_link) 2>conftest.er1
a848cd7e 40486 ac_status=$?
ac1cb8d3
VS
40487 grep -v '^ *+' conftest.er1 >conftest.err
40488 rm -f conftest.er1
40489 cat conftest.err >&5
a848cd7e
SC
40490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40491 (exit $ac_status); } &&
dee1a63f
MB
40492 { ac_try='test -z "$ac_c_werror_flag"
40493 || test ! -s conftest.err'
ac1cb8d3
VS
40494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40495 (eval $ac_try) 2>&5
40496 ac_status=$?
40497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40498 (exit $ac_status); }; } &&
40499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40501 (eval $ac_try) 2>&5
40502 ac_status=$?
40503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40504 (exit $ac_status); }; }; then
40505 ac_cv_func_socket=yes
40506else
40507 echo "$as_me: failed program was:" >&5
40508sed 's/^/| /' conftest.$ac_ext >&5
40509
40510ac_cv_func_socket=no
40511fi
ac1cb8d3
VS
40512rm -f conftest.err conftest.$ac_objext \
40513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40514fi
40515echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
40516echo "${ECHO_T}$ac_cv_func_socket" >&6
40517if test $ac_cv_func_socket = yes; then
40518 :
40519else
40520
40521 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
40522echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
40523if test "${ac_cv_lib_socket_socket+set}" = set; then
40524 echo $ECHO_N "(cached) $ECHO_C" >&6
40525else
40526 ac_check_lib_save_LIBS=$LIBS
40527LIBS="-lsocket $LIBS"
40528cat >conftest.$ac_ext <<_ACEOF
40529/* confdefs.h. */
40530_ACEOF
40531cat confdefs.h >>conftest.$ac_ext
40532cat >>conftest.$ac_ext <<_ACEOF
40533/* end confdefs.h. */
40534
40535/* Override any gcc2 internal prototype to avoid an error. */
40536#ifdef __cplusplus
40537extern "C"
40538#endif
40539/* We use char because int might match the return type of a gcc2
40540 builtin and then its argument prototype would still apply. */
40541char socket ();
40542int
40543main ()
40544{
40545socket ();
40546 ;
40547 return 0;
40548}
40549_ACEOF
40550rm -f conftest.$ac_objext conftest$ac_exeext
40551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40552 (eval $ac_link) 2>conftest.er1
a848cd7e 40553 ac_status=$?
ac1cb8d3
VS
40554 grep -v '^ *+' conftest.er1 >conftest.err
40555 rm -f conftest.er1
40556 cat conftest.err >&5
a848cd7e
SC
40557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40558 (exit $ac_status); } &&
dee1a63f
MB
40559 { ac_try='test -z "$ac_c_werror_flag"
40560 || test ! -s conftest.err'
ac1cb8d3
VS
40561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40562 (eval $ac_try) 2>&5
40563 ac_status=$?
40564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40565 (exit $ac_status); }; } &&
40566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40568 (eval $ac_try) 2>&5
40569 ac_status=$?
40570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40571 (exit $ac_status); }; }; then
40572 ac_cv_lib_socket_socket=yes
40573else
40574 echo "$as_me: failed program was:" >&5
40575sed 's/^/| /' conftest.$ac_ext >&5
40576
40577ac_cv_lib_socket_socket=no
40578fi
ac1cb8d3
VS
40579rm -f conftest.err conftest.$ac_objext \
40580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40581LIBS=$ac_check_lib_save_LIBS
40582fi
40583echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
40584echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
40585if test $ac_cv_lib_socket_socket = yes; then
40586 if test "$INET_LINK" != " -lsocket"; then
40587 INET_LINK="$INET_LINK -lsocket"
40588 fi
40589else
40590
40591 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
40592echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
40593 wxUSE_SOCKETS=no
40594
40595
40596fi
40597
40598
40599
40600fi
40601
40602 fi
40603fi
40604
40605if test "$wxUSE_SOCKETS" = "yes" ; then
40606 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
40607 ac_ext=cc
40608ac_cpp='$CXXCPP $CPPFLAGS'
40609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40612
40613 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
40614echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
40615if test "${wx_cv_type_getsockname3+set}" = set; then
40616 echo $ECHO_N "(cached) $ECHO_C" >&6
40617else
40618
40619 cat >conftest.$ac_ext <<_ACEOF
40620/* confdefs.h. */
40621_ACEOF
40622cat confdefs.h >>conftest.$ac_ext
40623cat >>conftest.$ac_ext <<_ACEOF
40624/* end confdefs.h. */
40625
40626 #include <sys/types.h>
40627 #include <sys/socket.h>
40628
40629int
40630main ()
40631{
40632
40633 socklen_t len;
40634 getsockname(0, 0, &len);
40635
40636 ;
40637 return 0;
40638}
40639_ACEOF
40640rm -f conftest.$ac_objext
40641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40642 (eval $ac_compile) 2>conftest.er1
a848cd7e 40643 ac_status=$?
ac1cb8d3
VS
40644 grep -v '^ *+' conftest.er1 >conftest.err
40645 rm -f conftest.er1
40646 cat conftest.err >&5
a848cd7e
SC
40647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40648 (exit $ac_status); } &&
dee1a63f
MB
40649 { ac_try='test -z "$ac_cxx_werror_flag"
40650 || test ! -s conftest.err'
ac1cb8d3
VS
40651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40652 (eval $ac_try) 2>&5
40653 ac_status=$?
40654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40655 (exit $ac_status); }; } &&
40656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40658 (eval $ac_try) 2>&5
40659 ac_status=$?
40660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40661 (exit $ac_status); }; }; then
40662 wx_cv_type_getsockname3=socklen_t
40663else
40664 echo "$as_me: failed program was:" >&5
40665sed 's/^/| /' conftest.$ac_ext >&5
40666
40667
6459a506 40668 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 40669 if test "$GCC" = yes ; then
6459a506 40670 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
40671 fi
40672
40673 cat >conftest.$ac_ext <<_ACEOF
40674/* confdefs.h. */
40675_ACEOF
40676cat confdefs.h >>conftest.$ac_ext
40677cat >>conftest.$ac_ext <<_ACEOF
40678/* end confdefs.h. */
40679
40680 #include <sys/types.h>
40681 #include <sys/socket.h>
40682
40683int
40684main ()
40685{
40686
40687 size_t len;
40688 getsockname(0, 0, &len);
40689
40690 ;
40691 return 0;
40692}
40693_ACEOF
40694rm -f conftest.$ac_objext
40695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40696 (eval $ac_compile) 2>conftest.er1
a848cd7e 40697 ac_status=$?
ac1cb8d3
VS
40698 grep -v '^ *+' conftest.er1 >conftest.err
40699 rm -f conftest.er1
40700 cat conftest.err >&5
a848cd7e
SC
40701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702 (exit $ac_status); } &&
dee1a63f
MB
40703 { ac_try='test -z "$ac_cxx_werror_flag"
40704 || test ! -s conftest.err'
ac1cb8d3
VS
40705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40706 (eval $ac_try) 2>&5
40707 ac_status=$?
40708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709 (exit $ac_status); }; } &&
40710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40712 (eval $ac_try) 2>&5
40713 ac_status=$?
40714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40715 (exit $ac_status); }; }; then
40716 wx_cv_type_getsockname3=size_t
40717else
40718 echo "$as_me: failed program was:" >&5
40719sed 's/^/| /' conftest.$ac_ext >&5
40720
40721cat >conftest.$ac_ext <<_ACEOF
40722/* confdefs.h. */
40723_ACEOF
40724cat confdefs.h >>conftest.$ac_ext
40725cat >>conftest.$ac_ext <<_ACEOF
40726/* end confdefs.h. */
40727
40728 #include <sys/types.h>
40729 #include <sys/socket.h>
40730
40731int
40732main ()
40733{
40734
40735 int len;
40736 getsockname(0, 0, &len);
40737
40738 ;
40739 return 0;
40740}
40741_ACEOF
40742rm -f conftest.$ac_objext
40743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40744 (eval $ac_compile) 2>conftest.er1
a848cd7e 40745 ac_status=$?
ac1cb8d3
VS
40746 grep -v '^ *+' conftest.er1 >conftest.err
40747 rm -f conftest.er1
40748 cat conftest.err >&5
a848cd7e
SC
40749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40750 (exit $ac_status); } &&
dee1a63f
MB
40751 { ac_try='test -z "$ac_cxx_werror_flag"
40752 || test ! -s conftest.err'
ac1cb8d3
VS
40753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754 (eval $ac_try) 2>&5
40755 ac_status=$?
40756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757 (exit $ac_status); }; } &&
40758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40760 (eval $ac_try) 2>&5
40761 ac_status=$?
40762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763 (exit $ac_status); }; }; then
40764 wx_cv_type_getsockname3=int
40765else
40766 echo "$as_me: failed program was:" >&5
40767sed 's/^/| /' conftest.$ac_ext >&5
40768
40769wx_cv_type_getsockname3=unknown
40770
40771fi
ac1cb8d3 40772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40773
40774fi
ac1cb8d3 40775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40776
6459a506 40777 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40778
40779
40780fi
ac1cb8d3 40781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40782
40783fi
40784echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40785echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40786
40787 if test "$wx_cv_type_getsockname3" = "unknown"; then
40788 wxUSE_SOCKETS=no
40789 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40790echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40791 else
40792 cat >>confdefs.h <<_ACEOF
9e03e02d 40793#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
40794_ACEOF
40795
40796 fi
40797 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40798echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40799if test "${wx_cv_type_getsockopt5+set}" = set; then
40800 echo $ECHO_N "(cached) $ECHO_C" >&6
40801else
40802
40803 cat >conftest.$ac_ext <<_ACEOF
40804/* confdefs.h. */
40805_ACEOF
40806cat confdefs.h >>conftest.$ac_ext
40807cat >>conftest.$ac_ext <<_ACEOF
40808/* end confdefs.h. */
40809
40810 #include <sys/types.h>
40811 #include <sys/socket.h>
40812
40813int
40814main ()
40815{
40816
40817 socklen_t len;
40818 getsockopt(0, 0, 0, 0, &len);
40819
40820 ;
40821 return 0;
40822}
40823_ACEOF
40824rm -f conftest.$ac_objext
40825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40826 (eval $ac_compile) 2>conftest.er1
40827 ac_status=$?
40828 grep -v '^ *+' conftest.er1 >conftest.err
40829 rm -f conftest.er1
40830 cat conftest.err >&5
40831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40832 (exit $ac_status); } &&
dee1a63f
MB
40833 { ac_try='test -z "$ac_cxx_werror_flag"
40834 || test ! -s conftest.err'
5b674b9d
DE
40835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40836 (eval $ac_try) 2>&5
40837 ac_status=$?
40838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40839 (exit $ac_status); }; } &&
40840 { ac_try='test -s conftest.$ac_objext'
40841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40842 (eval $ac_try) 2>&5
40843 ac_status=$?
40844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40845 (exit $ac_status); }; }; then
40846 wx_cv_type_getsockopt5=socklen_t
40847else
40848 echo "$as_me: failed program was:" >&5
40849sed 's/^/| /' conftest.$ac_ext >&5
40850
40851
6459a506 40852 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40853 if test "$GCC" = yes ; then
6459a506 40854 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40855 fi
40856
40857 cat >conftest.$ac_ext <<_ACEOF
40858/* confdefs.h. */
40859_ACEOF
40860cat confdefs.h >>conftest.$ac_ext
40861cat >>conftest.$ac_ext <<_ACEOF
40862/* end confdefs.h. */
40863
40864 #include <sys/types.h>
40865 #include <sys/socket.h>
40866
40867int
40868main ()
40869{
40870
40871 size_t len;
40872 getsockopt(0, 0, 0, 0, &len);
40873
40874 ;
40875 return 0;
40876}
40877_ACEOF
40878rm -f conftest.$ac_objext
40879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40880 (eval $ac_compile) 2>conftest.er1
40881 ac_status=$?
40882 grep -v '^ *+' conftest.er1 >conftest.err
40883 rm -f conftest.er1
40884 cat conftest.err >&5
40885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40886 (exit $ac_status); } &&
dee1a63f
MB
40887 { ac_try='test -z "$ac_cxx_werror_flag"
40888 || test ! -s conftest.err'
5b674b9d
DE
40889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40890 (eval $ac_try) 2>&5
40891 ac_status=$?
40892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40893 (exit $ac_status); }; } &&
40894 { ac_try='test -s conftest.$ac_objext'
40895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40896 (eval $ac_try) 2>&5
40897 ac_status=$?
40898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40899 (exit $ac_status); }; }; then
40900 wx_cv_type_getsockopt5=size_t
40901else
40902 echo "$as_me: failed program was:" >&5
40903sed 's/^/| /' conftest.$ac_ext >&5
40904
40905cat >conftest.$ac_ext <<_ACEOF
40906/* confdefs.h. */
40907_ACEOF
40908cat confdefs.h >>conftest.$ac_ext
40909cat >>conftest.$ac_ext <<_ACEOF
40910/* end confdefs.h. */
40911
40912 #include <sys/types.h>
40913 #include <sys/socket.h>
40914
40915int
40916main ()
40917{
40918
40919 int len;
40920 getsockopt(0, 0, 0, 0, &len);
40921
40922 ;
40923 return 0;
40924}
40925_ACEOF
40926rm -f conftest.$ac_objext
40927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40928 (eval $ac_compile) 2>conftest.er1
40929 ac_status=$?
40930 grep -v '^ *+' conftest.er1 >conftest.err
40931 rm -f conftest.er1
40932 cat conftest.err >&5
40933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40934 (exit $ac_status); } &&
dee1a63f
MB
40935 { ac_try='test -z "$ac_cxx_werror_flag"
40936 || test ! -s conftest.err'
5b674b9d
DE
40937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40938 (eval $ac_try) 2>&5
40939 ac_status=$?
40940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40941 (exit $ac_status); }; } &&
40942 { ac_try='test -s conftest.$ac_objext'
40943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40944 (eval $ac_try) 2>&5
40945 ac_status=$?
40946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40947 (exit $ac_status); }; }; then
40948 wx_cv_type_getsockopt5=int
40949else
40950 echo "$as_me: failed program was:" >&5
40951sed 's/^/| /' conftest.$ac_ext >&5
40952
40953wx_cv_type_getsockopt5=unknown
40954
40955fi
40956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40957
40958fi
40959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40960
6459a506 40961 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40962
40963
40964fi
40965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40966
40967fi
40968echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40969echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40970
40971 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40972 wxUSE_SOCKETS=no
40973 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40974echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40975 else
40976 cat >>confdefs.h <<_ACEOF
40977#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40978_ACEOF
40979
40980 fi
4d4ff94c
VZ
40981 ac_ext=c
40982ac_cpp='$CPP $CPPFLAGS'
40983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40985ac_compiler_gnu=$ac_cv_c_compiler_gnu
40986
a848cd7e
SC
40987 fi
40988fi
40989
40990if test "$wxUSE_SOCKETS" = "yes" ; then
40991 cat >>confdefs.h <<\_ACEOF
40992#define wxUSE_SOCKETS 1
40993_ACEOF
40994
40995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40996fi
40997
40998if test "$wxUSE_PROTOCOL" = "yes"; then
40999 if test "$wxUSE_SOCKETS" != "yes"; then
41000 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
41001echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
41002 wxUSE_PROTOCOL=no
41003 fi
41004fi
41005
41006if test "$wxUSE_PROTOCOL" = "yes"; then
41007 cat >>confdefs.h <<\_ACEOF
41008#define wxUSE_PROTOCOL 1
41009_ACEOF
41010
41011
41012 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
41013 cat >>confdefs.h <<\_ACEOF
41014#define wxUSE_PROTOCOL_HTTP 1
41015_ACEOF
41016
41017 fi
41018 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
41019 cat >>confdefs.h <<\_ACEOF
41020#define wxUSE_PROTOCOL_FTP 1
41021_ACEOF
41022
41023 fi
41024 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
41025 cat >>confdefs.h <<\_ACEOF
41026#define wxUSE_PROTOCOL_FILE 1
41027_ACEOF
41028
41029 fi
41030else
41031 if test "$wxUSE_FS_INET" = "yes"; then
41032 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
41033echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
41034 wxUSE_FS_INET="no"
41035 fi
41036fi
41037
41038if test "$wxUSE_URL" = "yes"; then
41039 if test "$wxUSE_PROTOCOL" != "yes"; then
41040 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
41041echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
41042 wxUSE_URL=no
41043 fi
41044 if test "$wxUSE_URL" = "yes"; then
41045 cat >>confdefs.h <<\_ACEOF
41046#define wxUSE_URL 1
41047_ACEOF
41048
41049 fi
41050fi
41051
41052if test "$wxUSE_FS_INET" = "yes"; then
41053 cat >>confdefs.h <<\_ACEOF
41054#define wxUSE_FS_INET 1
41055_ACEOF
41056
41057fi
41058
41059
ee45c548
MW
41060if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
41061 wxUSE_JOYSTICK=no
41062
41063 if test "$TOOLKIT" = "MSW"; then
41064 wxUSE_JOYSTICK=yes
41065
41066 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
41067 if test "$USE_DARWIN" = 1; then
41068 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
41069echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
41070 ac_ext=cc
41071ac_cpp='$CXXCPP $CPPFLAGS'
41072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41075
41076 cat >conftest.$ac_ext <<_ACEOF
41077/* confdefs.h. */
41078_ACEOF
41079cat confdefs.h >>conftest.$ac_ext
41080cat >>conftest.$ac_ext <<_ACEOF
41081/* end confdefs.h. */
41082 #include <IOKit/hid/IOHIDLib.h>
41083int
41084main ()
41085{
41086 IOHIDQueueInterface *qi = NULL;
41087 IOHIDCallbackFunction cb = NULL;
41088 qi->setEventCallout(NULL, cb, NULL, NULL);
41089 ;
41090 return 0;
41091}
41092_ACEOF
41093rm -f conftest.$ac_objext
41094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41095 (eval $ac_compile) 2>conftest.er1
41096 ac_status=$?
41097 grep -v '^ *+' conftest.er1 >conftest.err
41098 rm -f conftest.er1
41099 cat conftest.err >&5
41100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41101 (exit $ac_status); } &&
dee1a63f
MB
41102 { ac_try='test -z "$ac_cxx_werror_flag"
41103 || test ! -s conftest.err'
ee45c548
MW
41104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41105 (eval $ac_try) 2>&5
41106 ac_status=$?
41107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41108 (exit $ac_status); }; } &&
41109 { ac_try='test -s conftest.$ac_objext'
41110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41111 (eval $ac_try) 2>&5
41112 ac_status=$?
41113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41114 (exit $ac_status); }; }; then
41115 wxUSE_JOYSTICK=yes
a848cd7e 41116
ee45c548
MW
41117else
41118 echo "$as_me: failed program was:" >&5
41119sed 's/^/| /' conftest.$ac_ext >&5
41120
41121fi
41122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41123 ac_ext=c
41124ac_cpp='$CPP $CPPFLAGS'
41125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41127ac_compiler_gnu=$ac_cv_c_compiler_gnu
41128
41129 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
41130echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
41131 fi
41132
41133 else
a848cd7e
SC
41134
41135for ac_header in linux/joystick.h
41136do
41137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41138if eval "test \"\${$as_ac_Header+set}\" = set"; then
41139 echo "$as_me:$LINENO: checking for $ac_header" >&5
41140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41141if eval "test \"\${$as_ac_Header+set}\" = set"; then
41142 echo $ECHO_N "(cached) $ECHO_C" >&6
41143fi
41144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41146else
41147 # Is the header compilable?
41148echo "$as_me:$LINENO: checking $ac_header usability" >&5
41149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41150cat >conftest.$ac_ext <<_ACEOF
41151/* confdefs.h. */
41152_ACEOF
41153cat confdefs.h >>conftest.$ac_ext
41154cat >>conftest.$ac_ext <<_ACEOF
41155/* end confdefs.h. */
41156$ac_includes_default
41157#include <$ac_header>
41158_ACEOF
41159rm -f conftest.$ac_objext
41160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41161 (eval $ac_compile) 2>conftest.er1
a848cd7e 41162 ac_status=$?
ac1cb8d3
VS
41163 grep -v '^ *+' conftest.er1 >conftest.err
41164 rm -f conftest.er1
41165 cat conftest.err >&5
a848cd7e
SC
41166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41167 (exit $ac_status); } &&
dee1a63f
MB
41168 { ac_try='test -z "$ac_c_werror_flag"
41169 || test ! -s conftest.err'
ac1cb8d3
VS
41170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41171 (eval $ac_try) 2>&5
41172 ac_status=$?
41173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41174 (exit $ac_status); }; } &&
41175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41177 (eval $ac_try) 2>&5
41178 ac_status=$?
41179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41180 (exit $ac_status); }; }; then
41181 ac_header_compiler=yes
41182else
41183 echo "$as_me: failed program was:" >&5
41184sed 's/^/| /' conftest.$ac_ext >&5
41185
41186ac_header_compiler=no
41187fi
ac1cb8d3 41188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41189echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41190echo "${ECHO_T}$ac_header_compiler" >&6
41191
41192# Is the header present?
41193echo "$as_me:$LINENO: checking $ac_header presence" >&5
41194echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41195cat >conftest.$ac_ext <<_ACEOF
41196/* confdefs.h. */
41197_ACEOF
41198cat confdefs.h >>conftest.$ac_ext
41199cat >>conftest.$ac_ext <<_ACEOF
41200/* end confdefs.h. */
41201#include <$ac_header>
41202_ACEOF
41203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41205 ac_status=$?
41206 grep -v '^ *+' conftest.er1 >conftest.err
41207 rm -f conftest.er1
41208 cat conftest.err >&5
41209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41210 (exit $ac_status); } >/dev/null; then
41211 if test -s conftest.err; then
41212 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41214 else
41215 ac_cpp_err=
41216 fi
41217else
41218 ac_cpp_err=yes
41219fi
41220if test -z "$ac_cpp_err"; then
41221 ac_header_preproc=yes
41222else
41223 echo "$as_me: failed program was:" >&5
41224sed 's/^/| /' conftest.$ac_ext >&5
41225
41226 ac_header_preproc=no
41227fi
41228rm -f conftest.err conftest.$ac_ext
41229echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41230echo "${ECHO_T}$ac_header_preproc" >&6
41231
41232# So? What about this header?
ac1cb8d3
VS
41233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41234 yes:no: )
a848cd7e
SC
41235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41236echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41238echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41239 ac_header_preproc=yes
a848cd7e 41240 ;;
ac1cb8d3 41241 no:yes:* )
a848cd7e
SC
41242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41243echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41245echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41247echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41249echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41253echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41254 (
41255 cat <<\_ASBOX
ac1cb8d3
VS
41256## ----------------------------------------- ##
41257## Report this to wx-dev@lists.wxwidgets.org ##
41258## ----------------------------------------- ##
a848cd7e
SC
41259_ASBOX
41260 ) |
41261 sed "s/^/$as_me: WARNING: /" >&2
41262 ;;
41263esac
41264echo "$as_me:$LINENO: checking for $ac_header" >&5
41265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41266if eval "test \"\${$as_ac_Header+set}\" = set"; then
41267 echo $ECHO_N "(cached) $ECHO_C" >&6
41268else
ac1cb8d3 41269 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41270fi
41271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41273
41274fi
41275if test `eval echo '${'$as_ac_Header'}'` = yes; then
41276 cat >>confdefs.h <<_ACEOF
41277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41278_ACEOF
ee45c548 41279 wxUSE_JOYSTICK=yes
a848cd7e
SC
41280fi
41281
41282done
41283
ee45c548 41284 fi
4cb1d3da 41285
ee45c548
MW
41286 if test "$wxUSE_JOYSTICK" = "yes"; then
41287 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41288#define wxUSE_JOYSTICK 1
41289_ACEOF
41290
ee45c548
MW
41291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
41292 else
41293 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
41294echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
41295 fi
41296fi
41297
41298
41299
41300if test "$wxUSE_FONTMAP" = "yes" ; then
41301 cat >>confdefs.h <<\_ACEOF
41302#define wxUSE_FONTMAP 1
41303_ACEOF
41304
41305fi
41306
41307if test "$wxUSE_UNICODE" = "yes" ; then
41308 cat >>confdefs.h <<\_ACEOF
41309#define wxUSE_UNICODE 1
41310_ACEOF
41311
41312
41313 if test "$USE_WIN32" != 1; then
41314 wxUSE_UNICODE_MSLU=no
41315 fi
41316
41317 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
41318 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
41319echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
41320if test "${ac_cv_lib_unicows_main+set}" = set; then
41321 echo $ECHO_N "(cached) $ECHO_C" >&6
41322else
41323 ac_check_lib_save_LIBS=$LIBS
41324LIBS="-lunicows $LIBS"
41325cat >conftest.$ac_ext <<_ACEOF
41326/* confdefs.h. */
41327_ACEOF
41328cat confdefs.h >>conftest.$ac_ext
41329cat >>conftest.$ac_ext <<_ACEOF
41330/* end confdefs.h. */
41331
41332
41333int
41334main ()
41335{
41336main ();
41337 ;
41338 return 0;
41339}
41340_ACEOF
41341rm -f conftest.$ac_objext conftest$ac_exeext
41342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41343 (eval $ac_link) 2>conftest.er1
a848cd7e 41344 ac_status=$?
ac1cb8d3
VS
41345 grep -v '^ *+' conftest.er1 >conftest.err
41346 rm -f conftest.er1
41347 cat conftest.err >&5
a848cd7e
SC
41348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41349 (exit $ac_status); } &&
dee1a63f
MB
41350 { ac_try='test -z "$ac_c_werror_flag"
41351 || test ! -s conftest.err'
ac1cb8d3
VS
41352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41353 (eval $ac_try) 2>&5
41354 ac_status=$?
41355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41356 (exit $ac_status); }; } &&
41357 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41359 (eval $ac_try) 2>&5
41360 ac_status=$?
41361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362 (exit $ac_status); }; }; then
41363 ac_cv_lib_unicows_main=yes
41364else
41365 echo "$as_me: failed program was:" >&5
41366sed 's/^/| /' conftest.$ac_ext >&5
41367
41368ac_cv_lib_unicows_main=no
41369fi
ac1cb8d3
VS
41370rm -f conftest.err conftest.$ac_objext \
41371 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41372LIBS=$ac_check_lib_save_LIBS
41373fi
41374echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
41375echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
41376if test $ac_cv_lib_unicows_main = yes; then
41377
41378 cat >>confdefs.h <<\_ACEOF
41379#define wxUSE_UNICODE_MSLU 1
41380_ACEOF
41381
41382
41383else
41384
41385 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41386 Applications will only run on Windows NT/2000/XP!" >&5
41387echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41388 Applications will only run on Windows NT/2000/XP!" >&2;}
41389 wxUSE_UNICODE_MSLU=no
41390
41391fi
41392
41393 fi
41394fi
41395
41396if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
41397 cat >>confdefs.h <<\_ACEOF
41398#define wxUSE_EXPERIMENTAL_PRINTF 1
41399_ACEOF
41400
41401fi
41402
41403
41404if test "$wxUSE_POSTSCRIPT" = "yes" ; then
41405 cat >>confdefs.h <<\_ACEOF
41406#define wxUSE_POSTSCRIPT 1
41407_ACEOF
41408
41409fi
41410
41411cat >>confdefs.h <<\_ACEOF
41412#define wxUSE_AFM_FOR_POSTSCRIPT 1
41413_ACEOF
41414
41415
41416cat >>confdefs.h <<\_ACEOF
41417#define wxUSE_NORMALIZED_PS_FONTS 1
41418_ACEOF
41419
41420
41421
41422if test "$wxUSE_CONSTRAINTS" = "yes"; then
41423 cat >>confdefs.h <<\_ACEOF
41424#define wxUSE_CONSTRAINTS 1
41425_ACEOF
41426
41427 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
41428fi
41429
8a7b1113
VZ
41430if test "$wxUSE_MDI" = "yes"; then
41431 cat >>confdefs.h <<\_ACEOF
41432#define wxUSE_MDI 1
41433_ACEOF
41434
41435
41436 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41437 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41438#define wxUSE_MDI_ARCHITECTURE 1
41439_ACEOF
41440
8a7b1113
VZ
41441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
41442 fi
a848cd7e
SC
41443fi
41444
41445if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
41446 cat >>confdefs.h <<\_ACEOF
41447#define wxUSE_DOC_VIEW_ARCHITECTURE 1
41448_ACEOF
41449
41450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
41451 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
41453 fi
41454fi
41455
41456if test "$wxUSE_HELP" = "yes"; then
41457 cat >>confdefs.h <<\_ACEOF
41458#define wxUSE_HELP 1
41459_ACEOF
41460
41461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
41462
41463 if test "$wxUSE_MSW" = 1; then
41464 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
41465 cat >>confdefs.h <<\_ACEOF
41466#define wxUSE_MS_HTML_HELP 1
41467_ACEOF
41468
41469 fi
41470 fi
41471
41472 if test "$wxUSE_WXHTML_HELP" = "yes"; then
41473 if test "$wxUSE_HTML" = "yes"; then
41474 cat >>confdefs.h <<\_ACEOF
41475#define wxUSE_WXHTML_HELP 1
41476_ACEOF
41477
41478 else
41479 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
41480echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
41481 wxUSE_WXHTML_HELP=no
41482 fi
41483 fi
41484fi
41485
41486if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41487 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41488 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
41489echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
41490 else
41491 cat >>confdefs.h <<\_ACEOF
41492#define wxUSE_PRINTING_ARCHITECTURE 1
41493_ACEOF
41494
41495 fi
41496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
41497fi
41498
41499if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
41500 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
41501echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
41502 { (exit 1); exit 1; }; }
41503fi
41504
41505
efdf6afe
VZ
41506if test "$wxUSE_METAFILE" = "yes"; then
41507 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
41508 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
41509echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
41510 wxUSE_METAFILE=no
41511 fi
41512fi
41513
41514
a848cd7e
SC
41515if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
41516 -o "$wxUSE_CLIPBOARD" = "yes" \
41517 -o "$wxUSE_OLE" = "yes" \
41518 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
41519
41520for ac_header in ole2.h
41521do
41522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41523if eval "test \"\${$as_ac_Header+set}\" = set"; then
41524 echo "$as_me:$LINENO: checking for $ac_header" >&5
41525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41526if eval "test \"\${$as_ac_Header+set}\" = set"; then
41527 echo $ECHO_N "(cached) $ECHO_C" >&6
41528fi
41529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41531else
41532 # Is the header compilable?
41533echo "$as_me:$LINENO: checking $ac_header usability" >&5
41534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41535cat >conftest.$ac_ext <<_ACEOF
41536/* confdefs.h. */
41537_ACEOF
41538cat confdefs.h >>conftest.$ac_ext
41539cat >>conftest.$ac_ext <<_ACEOF
41540/* end confdefs.h. */
41541$ac_includes_default
41542#include <$ac_header>
41543_ACEOF
41544rm -f conftest.$ac_objext
41545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41546 (eval $ac_compile) 2>conftest.er1
a848cd7e 41547 ac_status=$?
ac1cb8d3
VS
41548 grep -v '^ *+' conftest.er1 >conftest.err
41549 rm -f conftest.er1
41550 cat conftest.err >&5
a848cd7e
SC
41551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41552 (exit $ac_status); } &&
dee1a63f
MB
41553 { ac_try='test -z "$ac_c_werror_flag"
41554 || test ! -s conftest.err'
ac1cb8d3
VS
41555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41556 (eval $ac_try) 2>&5
41557 ac_status=$?
41558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41559 (exit $ac_status); }; } &&
41560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41562 (eval $ac_try) 2>&5
41563 ac_status=$?
41564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41565 (exit $ac_status); }; }; then
41566 ac_header_compiler=yes
41567else
41568 echo "$as_me: failed program was:" >&5
41569sed 's/^/| /' conftest.$ac_ext >&5
41570
41571ac_header_compiler=no
41572fi
ac1cb8d3 41573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41575echo "${ECHO_T}$ac_header_compiler" >&6
41576
41577# Is the header present?
41578echo "$as_me:$LINENO: checking $ac_header presence" >&5
41579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41580cat >conftest.$ac_ext <<_ACEOF
41581/* confdefs.h. */
41582_ACEOF
41583cat confdefs.h >>conftest.$ac_ext
41584cat >>conftest.$ac_ext <<_ACEOF
41585/* end confdefs.h. */
41586#include <$ac_header>
41587_ACEOF
41588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41590 ac_status=$?
41591 grep -v '^ *+' conftest.er1 >conftest.err
41592 rm -f conftest.er1
41593 cat conftest.err >&5
41594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41595 (exit $ac_status); } >/dev/null; then
41596 if test -s conftest.err; then
41597 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41599 else
41600 ac_cpp_err=
41601 fi
41602else
41603 ac_cpp_err=yes
41604fi
41605if test -z "$ac_cpp_err"; then
41606 ac_header_preproc=yes
41607else
41608 echo "$as_me: failed program was:" >&5
41609sed 's/^/| /' conftest.$ac_ext >&5
41610
41611 ac_header_preproc=no
41612fi
41613rm -f conftest.err conftest.$ac_ext
41614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41615echo "${ECHO_T}$ac_header_preproc" >&6
41616
41617# So? What about this header?
ac1cb8d3
VS
41618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41619 yes:no: )
a848cd7e
SC
41620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41624 ac_header_preproc=yes
a848cd7e 41625 ;;
ac1cb8d3 41626 no:yes:* )
a848cd7e
SC
41627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41639 (
41640 cat <<\_ASBOX
ac1cb8d3
VS
41641## ----------------------------------------- ##
41642## Report this to wx-dev@lists.wxwidgets.org ##
41643## ----------------------------------------- ##
a848cd7e
SC
41644_ASBOX
41645 ) |
41646 sed "s/^/$as_me: WARNING: /" >&2
41647 ;;
41648esac
41649echo "$as_me:$LINENO: checking for $ac_header" >&5
41650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41651if eval "test \"\${$as_ac_Header+set}\" = set"; then
41652 echo $ECHO_N "(cached) $ECHO_C" >&6
41653else
ac1cb8d3 41654 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41655fi
41656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41658
41659fi
41660if test `eval echo '${'$as_ac_Header'}'` = yes; then
41661 cat >>confdefs.h <<_ACEOF
41662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41663_ACEOF
41664
41665fi
41666
41667done
41668
41669
41670 if test "$ac_cv_header_ole2_h" = "yes" ; then
41671 if test "$GCC" = yes ; then
41672
41673
41674 ac_ext=cc
41675ac_cpp='$CXXCPP $CPPFLAGS'
41676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41679
41680
41681 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41682echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41683 cat >conftest.$ac_ext <<_ACEOF
41684/* confdefs.h. */
41685_ACEOF
41686cat confdefs.h >>conftest.$ac_ext
41687cat >>conftest.$ac_ext <<_ACEOF
41688/* end confdefs.h. */
41689#include <windows.h>
41690 #include <ole2.h>
41691int
41692main ()
41693{
41694
41695 ;
41696 return 0;
41697}
41698_ACEOF
41699rm -f conftest.$ac_objext
41700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41701 (eval $ac_compile) 2>conftest.er1
a848cd7e 41702 ac_status=$?
ac1cb8d3
VS
41703 grep -v '^ *+' conftest.er1 >conftest.err
41704 rm -f conftest.er1
41705 cat conftest.err >&5
a848cd7e
SC
41706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41707 (exit $ac_status); } &&
dee1a63f
MB
41708 { ac_try='test -z "$ac_cxx_werror_flag"
41709 || test ! -s conftest.err'
ac1cb8d3
VS
41710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41711 (eval $ac_try) 2>&5
41712 ac_status=$?
41713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41714 (exit $ac_status); }; } &&
41715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41717 (eval $ac_try) 2>&5
41718 ac_status=$?
41719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720 (exit $ac_status); }; }; then
41721 echo "$as_me:$LINENO: result: no" >&5
41722echo "${ECHO_T}no" >&6
41723else
41724 echo "$as_me: failed program was:" >&5
41725sed 's/^/| /' conftest.$ac_ext >&5
41726
41727echo "$as_me:$LINENO: result: yes" >&5
41728echo "${ECHO_T}yes" >&6
41729 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
41730fi
ac1cb8d3 41731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41732 ac_ext=c
41733ac_cpp='$CPP $CPPFLAGS'
41734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41736ac_compiler_gnu=$ac_cv_c_compiler_gnu
41737
a848cd7e
SC
41738 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41739 if test "$wxUSE_OLE" = "yes" ; then
41740 cat >>confdefs.h <<\_ACEOF
41741#define wxUSE_OLE 1
41742_ACEOF
41743
0b78747f 41744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
41745 fi
41746 fi
41747
41748 if test "$wxUSE_DATAOBJ" = "yes" ; then
41749 cat >>confdefs.h <<\_ACEOF
41750#define wxUSE_DATAOBJ 1
41751_ACEOF
41752
41753 fi
41754 else
41755 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41756echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41757
41758 wxUSE_CLIPBOARD=no
41759 wxUSE_DRAG_AND_DROP=no
41760 wxUSE_DATAOBJ=no
41761 wxUSE_OLE=no
41762 fi
41763
41764 if test "$wxUSE_METAFILE" = "yes"; then
41765 cat >>confdefs.h <<\_ACEOF
41766#define wxUSE_METAFILE 1
41767_ACEOF
41768
41769
41770 cat >>confdefs.h <<\_ACEOF
41771#define wxUSE_ENH_METAFILE 1
41772_ACEOF
41773
41774 fi
41775fi
41776
41777if test "$wxUSE_IPC" = "yes"; then
0b78747f 41778 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
41779 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41780echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 41781 wxUSE_IPC=no
a848cd7e
SC
41782 fi
41783
0b78747f
MW
41784 if test "$wxUSE_IPC" = "yes"; then
41785 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41786#define wxUSE_IPC 1
41787_ACEOF
41788
0b78747f
MW
41789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41790 fi
a848cd7e
SC
41791fi
41792
eb730a0c 41793if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
41794 if test "$wxUSE_MGL" = 1; then
41795 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41796echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41797 wxUSE_DATAOBJ=no
41798 else
41799 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
41800#define wxUSE_DATAOBJ 1
41801_ACEOF
41802
2113bc77 41803 fi
eb730a0c
JS
41804else
41805 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41806echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41807 wxUSE_CLIPBOARD=no
41808 wxUSE_DRAG_AND_DROP=no
41809fi
41810
a848cd7e
SC
41811if test "$wxUSE_CLIPBOARD" = "yes"; then
41812 if test "$wxUSE_MGL" = 1; then
41813 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41814echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41815 wxUSE_CLIPBOARD=no
41816 fi
41817
41818 if test "$wxUSE_CLIPBOARD" = "yes"; then
41819 cat >>confdefs.h <<\_ACEOF
41820#define wxUSE_CLIPBOARD 1
41821_ACEOF
41822
a848cd7e
SC
41823 fi
41824fi
41825
41826if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41827 if test "$wxUSE_GTK" = 1; then
41828 if test "$WXGTK12" != 1; then
41829 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41830echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41831 wxUSE_DRAG_AND_DROP=no
41832 fi
41833 fi
41834
41835 if test "$wxUSE_MOTIF" = 1; then
41836 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41837echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41838 wxUSE_DRAG_AND_DROP=no
41839 fi
41840
41841 if test "$wxUSE_X11" = 1; then
41842 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41843echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41844 wxUSE_DRAG_AND_DROP=no
41845 fi
41846
41847 if test "$wxUSE_MGL" = 1; then
41848 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41849echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41850 wxUSE_DRAG_AND_DROP=no
41851 fi
41852
41853 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41854 cat >>confdefs.h <<\_ACEOF
41855#define wxUSE_DRAG_AND_DROP 1
41856_ACEOF
41857
41858 fi
41859
41860fi
41861
41862if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41864fi
41865
41866if test "$wxUSE_SPLINES" = "yes" ; then
41867 cat >>confdefs.h <<\_ACEOF
41868#define wxUSE_SPLINES 1
41869_ACEOF
41870
41871fi
41872
fbe2ca43
SN
41873if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41874 cat >>confdefs.h <<\_ACEOF
41875#define wxUSE_MOUSEWHEEL 1
41876_ACEOF
41877
41878fi
41879
a848cd7e
SC
41880
41881USES_CONTROLS=0
41882if test "$wxUSE_CONTROLS" = "yes"; then
41883 USES_CONTROLS=1
41884fi
41885
41886if test "$wxUSE_ACCEL" = "yes"; then
41887 cat >>confdefs.h <<\_ACEOF
41888#define wxUSE_ACCEL 1
41889_ACEOF
41890
41891 USES_CONTROLS=1
41892fi
41893
41894if test "$wxUSE_BUTTON" = "yes"; then
41895 cat >>confdefs.h <<\_ACEOF
41896#define wxUSE_BUTTON 1
41897_ACEOF
41898
41899 USES_CONTROLS=1
41900fi
41901
41902if test "$wxUSE_BMPBUTTON" = "yes"; then
41903 cat >>confdefs.h <<\_ACEOF
41904#define wxUSE_BMPBUTTON 1
41905_ACEOF
41906
41907 USES_CONTROLS=1
41908fi
41909
41910if test "$wxUSE_CALCTRL" = "yes"; then
41911 cat >>confdefs.h <<\_ACEOF
41912#define wxUSE_CALENDARCTRL 1
41913_ACEOF
41914
41915 USES_CONTROLS=1
41916 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41917fi
41918
41919if test "$wxUSE_CARET" = "yes"; then
41920 cat >>confdefs.h <<\_ACEOF
41921#define wxUSE_CARET 1
41922_ACEOF
41923
41924 USES_CONTROLS=1
41925 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41926fi
41927
41928if test "$wxUSE_COMBOBOX" = "yes"; then
41929 cat >>confdefs.h <<\_ACEOF
41930#define wxUSE_COMBOBOX 1
41931_ACEOF
41932
41933 USES_CONTROLS=1
41934fi
41935
41936if test "$wxUSE_CHOICE" = "yes"; then
41937 cat >>confdefs.h <<\_ACEOF
41938#define wxUSE_CHOICE 1
41939_ACEOF
41940
41941 USES_CONTROLS=1
41942fi
41943
92bbdbcd
WS
41944if test "$wxUSE_CHOICEBOOK" = "yes"; then
41945 cat >>confdefs.h <<\_ACEOF
41946#define wxUSE_CHOICEBOOK 1
41947_ACEOF
41948
41949 USES_CONTROLS=1
41950fi
41951
a848cd7e
SC
41952if test "$wxUSE_CHECKBOX" = "yes"; then
41953 cat >>confdefs.h <<\_ACEOF
41954#define wxUSE_CHECKBOX 1
41955_ACEOF
41956
41957 USES_CONTROLS=1
41958fi
41959
41960if test "$wxUSE_CHECKLST" = "yes"; then
41961 cat >>confdefs.h <<\_ACEOF
41962#define wxUSE_CHECKLISTBOX 1
41963_ACEOF
41964
41965 USES_CONTROLS=1
41966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41967fi
41968
da98e9be
VZ
41969if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41970 cat >>confdefs.h <<\_ACEOF
41971#define wxUSE_DATEPICKCTRL 1
41972_ACEOF
41973
41974 USES_CONTROLS=1
41975fi
41976
a848cd7e
SC
41977if test "$wxUSE_DISPLAY" = "yes"; then
41978 cat >>confdefs.h <<\_ACEOF
41979#define wxUSE_DISPLAY 1
41980_ACEOF
41981
0b78747f 41982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41983fi
41984
41985if test "$wxUSE_GAUGE" = "yes"; then
41986 cat >>confdefs.h <<\_ACEOF
41987#define wxUSE_GAUGE 1
41988_ACEOF
41989
41990 USES_CONTROLS=1
41991fi
41992
41993if test "$wxUSE_GRID" = "yes"; then
41994 cat >>confdefs.h <<\_ACEOF
41995#define wxUSE_GRID 1
41996_ACEOF
41997
41998 USES_CONTROLS=1
41999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
42000fi
42001
42002if test "$wxUSE_IMAGLIST" = "yes"; then
42003 cat >>confdefs.h <<\_ACEOF
42004#define wxUSE_IMAGLIST 1
42005_ACEOF
42006
42007fi
42008
42009if test "$wxUSE_LISTBOOK" = "yes"; then
42010 cat >>confdefs.h <<\_ACEOF
42011#define wxUSE_LISTBOOK 1
42012_ACEOF
42013
42014 USES_CONTROLS=1
42015fi
42016
42017if test "$wxUSE_LISTBOX" = "yes"; then
42018 cat >>confdefs.h <<\_ACEOF
42019#define wxUSE_LISTBOX 1
42020_ACEOF
42021
42022 USES_CONTROLS=1
0b78747f 42023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
42024fi
42025
42026if test "$wxUSE_LISTCTRL" = "yes"; then
42027 if test "$wxUSE_IMAGLIST" = "yes"; then
42028 cat >>confdefs.h <<\_ACEOF
42029#define wxUSE_LISTCTRL 1
42030_ACEOF
42031
42032 USES_CONTROLS=1
42033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
42034 else
42035 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
42036echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
42037 fi
42038fi
42039
42040if test "$wxUSE_NOTEBOOK" = "yes"; then
42041 cat >>confdefs.h <<\_ACEOF
42042#define wxUSE_NOTEBOOK 1
42043_ACEOF
42044
42045 USES_CONTROLS=1
42046 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
42047fi
42048
42049
42050if test "$wxUSE_RADIOBOX" = "yes"; then
42051 cat >>confdefs.h <<\_ACEOF
42052#define wxUSE_RADIOBOX 1
42053_ACEOF
42054
42055 USES_CONTROLS=1
42056fi
42057
42058if test "$wxUSE_RADIOBTN" = "yes"; then
42059 cat >>confdefs.h <<\_ACEOF
42060#define wxUSE_RADIOBTN 1
42061_ACEOF
42062
42063 USES_CONTROLS=1
42064fi
42065
42066if test "$wxUSE_SASH" = "yes"; then
42067 cat >>confdefs.h <<\_ACEOF
42068#define wxUSE_SASH 1
42069_ACEOF
42070
42071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
42072fi
42073
42074if test "$wxUSE_SCROLLBAR" = "yes"; then
42075 cat >>confdefs.h <<\_ACEOF
42076#define wxUSE_SCROLLBAR 1
42077_ACEOF
42078
42079 USES_CONTROLS=1
42080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
42081fi
42082
42083if test "$wxUSE_SLIDER" = "yes"; then
42084 cat >>confdefs.h <<\_ACEOF
42085#define wxUSE_SLIDER 1
42086_ACEOF
42087
42088 USES_CONTROLS=1
42089fi
42090
42091if test "$wxUSE_SPINBTN" = "yes"; then
42092 cat >>confdefs.h <<\_ACEOF
42093#define wxUSE_SPINBTN 1
42094_ACEOF
42095
42096 USES_CONTROLS=1
42097fi
42098
42099if test "$wxUSE_SPINCTRL" = "yes"; then
42100 cat >>confdefs.h <<\_ACEOF
42101#define wxUSE_SPINCTRL 1
42102_ACEOF
42103
42104 USES_CONTROLS=1
42105fi
42106
42107if test "$wxUSE_SPLITTER" = "yes"; then
42108 cat >>confdefs.h <<\_ACEOF
42109#define wxUSE_SPLITTER 1
42110_ACEOF
42111
42112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
42113fi
42114
42115if test "$wxUSE_STATBMP" = "yes"; then
42116 cat >>confdefs.h <<\_ACEOF
42117#define wxUSE_STATBMP 1
42118_ACEOF
42119
42120 USES_CONTROLS=1
42121fi
42122
42123if test "$wxUSE_STATBOX" = "yes"; then
42124 cat >>confdefs.h <<\_ACEOF
42125#define wxUSE_STATBOX 1
42126_ACEOF
42127
42128 USES_CONTROLS=1
42129fi
42130
42131if test "$wxUSE_STATTEXT" = "yes"; then
42132 cat >>confdefs.h <<\_ACEOF
42133#define wxUSE_STATTEXT 1
42134_ACEOF
42135
42136 USES_CONTROLS=1
42137fi
42138
42139if test "$wxUSE_STATLINE" = "yes"; then
42140 cat >>confdefs.h <<\_ACEOF
42141#define wxUSE_STATLINE 1
42142_ACEOF
42143
42144 USES_CONTROLS=1
42145fi
42146
42147if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
42148 cat >>confdefs.h <<\_ACEOF
42149#define wxUSE_NATIVE_STATUSBAR 1
42150_ACEOF
42151
a848cd7e
SC
42152 cat >>confdefs.h <<\_ACEOF
42153#define wxUSE_STATUSBAR 1
42154_ACEOF
42155
42156 USES_CONTROLS=1
42157
42158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
42159fi
42160
42161if test "$wxUSE_TABDIALOG" = "yes"; then
42162 cat >>confdefs.h <<\_ACEOF
42163#define wxUSE_TAB_DIALOG 1
42164_ACEOF
42165
a848cd7e
SC
42166fi
42167
42168if test "$wxUSE_TEXTCTRL" = "yes"; then
42169 cat >>confdefs.h <<\_ACEOF
42170#define wxUSE_TEXTCTRL 1
42171_ACEOF
42172
42173 USES_CONTROLS=1
42174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
42175fi
42176
42177if test "$wxUSE_TOGGLEBTN" = "yes"; then
42178 if test "$wxUSE_COCOA" = 1 ; then
42179 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
42180echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
42181 wxUSE_TOGGLEBTN=no
42182 fi
42183 if test "$wxUSE_UNIVERSAL" = "yes"; then
42184 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
42185echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
42186 wxUSE_TOGGLEBTN=no
42187 fi
42188
42189 if test "$wxUSE_TOGGLEBTN" = "yes"; then
42190 cat >>confdefs.h <<\_ACEOF
42191#define wxUSE_TOGGLEBTN 1
42192_ACEOF
42193
42194 USES_CONTROLS=1
42195 fi
42196fi
42197
42198if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
42199 cat >>confdefs.h <<\_ACEOF
42200#define wxUSE_TOOLBAR_SIMPLE 1
42201_ACEOF
42202
42203 wxUSE_TOOLBAR="yes"
42204 USES_CONTROLS=1
42205fi
42206
42207if test "$wxUSE_TOOLBAR" = "yes"; then
42208 cat >>confdefs.h <<\_ACEOF
42209#define wxUSE_TOOLBAR 1
42210_ACEOF
42211
42212 USES_CONTROLS=1
42213
42214 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
42215 wxUSE_TOOLBAR_NATIVE="yes"
42216 fi
42217
42218 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
42219 cat >>confdefs.h <<\_ACEOF
42220#define wxUSE_TOOLBAR_NATIVE 1
42221_ACEOF
42222
42223 USES_CONTROLS=1
42224 fi
42225
42226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
42227fi
42228
42229if test "$wxUSE_TOOLTIPS" = "yes"; then
42230 if test "$wxUSE_MOTIF" = 1; then
42231 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
42232echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
42233 else
42234 if test "$wxUSE_UNIVERSAL" = "yes"; then
42235 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
42236echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
42237 else
42238 cat >>confdefs.h <<\_ACEOF
42239#define wxUSE_TOOLTIPS 1
42240_ACEOF
42241
42242 fi
42243 fi
42244fi
42245
42246if test "$wxUSE_TREECTRL" = "yes"; then
42247 if test "$wxUSE_IMAGLIST" = "yes"; then
42248 cat >>confdefs.h <<\_ACEOF
42249#define wxUSE_TREECTRL 1
42250_ACEOF
42251
42252 USES_CONTROLS=1
42253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
42254 else
42255 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
42256echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
42257 fi
42258fi
42259
42260if test "$wxUSE_POPUPWIN" = "yes"; then
42261 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42262 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
42263echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
42264 else
42265 if test "$wxUSE_PM" = 1; then
42266 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
42267echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
42268 else
42269 cat >>confdefs.h <<\_ACEOF
42270#define wxUSE_POPUPWIN 1
42271_ACEOF
42272
0b78747f 42273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
42274
42275 USES_CONTROLS=1
42276 fi
42277 fi
42278fi
42279
0dcd06dd 42280if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
42281 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42282 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
42283echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
42284 else
42285 cat >>confdefs.h <<\_ACEOF
42286#define wxUSE_DIALUP_MANAGER 1
42287_ACEOF
42288
42289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
42290 fi
42291fi
42292
a848cd7e
SC
42293if test "$wxUSE_TIPWINDOW" = "yes"; then
42294 if test "$wxUSE_PM" = 1; then
42295 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
42296echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
42297 else
42298 cat >>confdefs.h <<\_ACEOF
42299#define wxUSE_TIPWINDOW 1
42300_ACEOF
42301
42302 fi
42303fi
42304
42305if test "$USES_CONTROLS" = 1; then
42306 cat >>confdefs.h <<\_ACEOF
42307#define wxUSE_CONTROLS 1
42308_ACEOF
42309
42310fi
42311
42312
42313if test "$wxUSE_ACCESSIBILITY" = "yes"; then
42314 cat >>confdefs.h <<\_ACEOF
42315#define wxUSE_ACCESSIBILITY 1
42316_ACEOF
42317
42318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
42319fi
42320
38b4a946
VZ
42321if test "$wxUSE_DC_CACHEING" = "yes"; then
42322 cat >>confdefs.h <<\_ACEOF
42323#define wxUSE_DC_CACHEING 1
42324_ACEOF
42325
42326fi
42327
a848cd7e
SC
42328if test "$wxUSE_DRAGIMAGE" = "yes"; then
42329 cat >>confdefs.h <<\_ACEOF
42330#define wxUSE_DRAGIMAGE 1
42331_ACEOF
42332
42333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
42334fi
42335
42336if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
42337 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42338 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
42339echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
42340 else
42341 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42342#define wxUSE_EXCEPTIONS 1
42343_ACEOF
42344
07bea8f0
VS
42345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
42346 fi
a848cd7e
SC
42347fi
42348
42349USE_HTML=0
42350if test "$wxUSE_HTML" = "yes"; then
42351 cat >>confdefs.h <<\_ACEOF
42352#define wxUSE_HTML 1
42353_ACEOF
42354
42355 USE_HTML=1
42356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
42357 if test "$wxUSE_MAC" = 1; then
42358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
42359 fi
a848cd7e 42360fi
646b6ec1 42361if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 42362 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
42363 old_CPPFLAGS="$CPPFLAGS"
42364 CPPFLAGS="$CPPFLAGS -x objective-c++"
42365 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
42366echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
42367if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
42368 echo $ECHO_N "(cached) $ECHO_C" >&6
42369else
42370 cat >conftest.$ac_ext <<_ACEOF
42371/* confdefs.h. */
42372_ACEOF
42373cat confdefs.h >>conftest.$ac_ext
42374cat >>conftest.$ac_ext <<_ACEOF
42375/* end confdefs.h. */
42376#include <Carbon/Carbon.h>
42377
42378#include <WebKit/HIWebView.h>
42379_ACEOF
42380rm -f conftest.$ac_objext
42381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42382 (eval $ac_compile) 2>conftest.er1
42383 ac_status=$?
42384 grep -v '^ *+' conftest.er1 >conftest.err
42385 rm -f conftest.er1
42386 cat conftest.err >&5
42387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42388 (exit $ac_status); } &&
dee1a63f
MB
42389 { ac_try='test -z "$ac_c_werror_flag"
42390 || test ! -s conftest.err'
07bea8f0
VS
42391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42392 (eval $ac_try) 2>&5
42393 ac_status=$?
42394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42395 (exit $ac_status); }; } &&
42396 { ac_try='test -s conftest.$ac_objext'
42397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42398 (eval $ac_try) 2>&5
42399 ac_status=$?
42400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42401 (exit $ac_status); }; }; then
42402 ac_cv_header_WebKit_HIWebView_h=yes
42403else
42404 echo "$as_me: failed program was:" >&5
42405sed 's/^/| /' conftest.$ac_ext >&5
42406
42407ac_cv_header_WebKit_HIWebView_h=no
42408fi
42409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42410fi
42411echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
42412echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
42413if test $ac_cv_header_WebKit_HIWebView_h = yes; then
42414
42415 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
42416#define wxUSE_WEBKIT 1
42417_ACEOF
42418
07bea8f0
VS
42419 WEBKIT_LINK="-framework WebKit"
42420
42421else
42422
42423 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
42424echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
42425 wxUSE_WEBKIT=no
42426
646b6ec1
VS
42427fi
42428
07bea8f0
VS
42429
42430 CPPFLAGS="$old_CPPFLAGS"
42431 elif test "$wxUSE_COCOA" = 1; then
42432 cat >>confdefs.h <<\_ACEOF
42433#define wxUSE_WEBKIT 1
42434_ACEOF
42435
42436 else
42437 wxUSE_WEBKIT=no
42438 fi
42439fi
42440
9a8f0513
VS
42441USE_XRC=0
42442if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
42443 if test "$wxUSE_XML" != "yes"; then
42444 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
42445echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
42446 wxUSE_XRC=no
42447 else
42448 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
42449#define wxUSE_XRC 1
42450_ACEOF
42451
d2ebf0b7
VS
42452 USE_XRC=1
42453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
42454 fi
9a8f0513 42455fi
07bea8f0 42456
a848cd7e
SC
42457if test "$wxUSE_MENUS" = "yes"; then
42458 cat >>confdefs.h <<\_ACEOF
42459#define wxUSE_MENUS 1
42460_ACEOF
42461
42462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
42463fi
42464
42465if test "$wxUSE_METAFILE" = "yes"; then
42466 cat >>confdefs.h <<\_ACEOF
42467#define wxUSE_METAFILE 1
42468_ACEOF
42469
42470fi
42471
42472if test "$wxUSE_MIMETYPE" = "yes"; then
42473 cat >>confdefs.h <<\_ACEOF
42474#define wxUSE_MIMETYPE 1
42475_ACEOF
42476
42477fi
42478
42479if test "$wxUSE_MINIFRAME" = "yes"; then
42480 cat >>confdefs.h <<\_ACEOF
42481#define wxUSE_MINIFRAME 1
42482_ACEOF
42483
42484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
42485fi
42486
42487if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
42488 cat >>confdefs.h <<\_ACEOF
42489#define wxUSE_SYSTEM_OPTIONS 1
42490_ACEOF
42491
42492 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 42493 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
42494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
42495 fi
42496fi
42497
42498
42499if test "$wxUSE_VALIDATORS" = "yes"; then
42500 cat >>confdefs.h <<\_ACEOF
42501#define wxUSE_VALIDATORS 1
42502_ACEOF
42503
42504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
42505fi
42506
42507if test "$wxUSE_PALETTE" = "yes" ; then
42508 cat >>confdefs.h <<\_ACEOF
42509#define wxUSE_PALETTE 1
42510_ACEOF
42511
42512fi
42513
42514if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
42515 LIBS=" -lunicows $LIBS"
42516fi
42517
42518
42519if test "$wxUSE_IMAGE" = "yes" ; then
42520 cat >>confdefs.h <<\_ACEOF
42521#define wxUSE_IMAGE 1
42522_ACEOF
42523
42524
42525 if test "$wxUSE_GIF" = "yes" ; then
42526 cat >>confdefs.h <<\_ACEOF
42527#define wxUSE_GIF 1
42528_ACEOF
42529
42530 fi
42531
42532 if test "$wxUSE_PCX" = "yes" ; then
42533 cat >>confdefs.h <<\_ACEOF
42534#define wxUSE_PCX 1
42535_ACEOF
42536
42537 fi
42538
42539 if test "$wxUSE_IFF" = "yes" ; then
42540 cat >>confdefs.h <<\_ACEOF
42541#define wxUSE_IFF 1
42542_ACEOF
42543
42544 fi
42545
42546 if test "$wxUSE_PNM" = "yes" ; then
42547 cat >>confdefs.h <<\_ACEOF
42548#define wxUSE_PNM 1
42549_ACEOF
42550
42551 fi
42552
42553 if test "$wxUSE_XPM" = "yes" ; then
42554 cat >>confdefs.h <<\_ACEOF
42555#define wxUSE_XPM 1
42556_ACEOF
42557
42558 fi
42559
42560 if test "$wxUSE_ICO_CUR" = "yes" ; then
42561 cat >>confdefs.h <<\_ACEOF
42562#define wxUSE_ICO_CUR 1
42563_ACEOF
42564
42565 fi
42566fi
42567
42568
42569if test "$wxUSE_CHOICEDLG" = "yes"; then
42570 cat >>confdefs.h <<\_ACEOF
42571#define wxUSE_CHOICEDLG 1
42572_ACEOF
42573
42574fi
42575
42576if test "$wxUSE_COLOURDLG" = "yes"; then
42577 cat >>confdefs.h <<\_ACEOF
42578#define wxUSE_COLOURDLG 1
42579_ACEOF
42580
42581fi
42582
42583if test "$wxUSE_FILEDLG" = "yes"; then
42584 cat >>confdefs.h <<\_ACEOF
42585#define wxUSE_FILEDLG 1
42586_ACEOF
42587
42588fi
42589
42590if test "$wxUSE_FINDREPLDLG" = "yes"; then
42591 cat >>confdefs.h <<\_ACEOF
42592#define wxUSE_FINDREPLDLG 1
42593_ACEOF
42594
42595fi
42596
42597if test "$wxUSE_FONTDLG" = "yes"; then
42598 cat >>confdefs.h <<\_ACEOF
42599#define wxUSE_FONTDLG 1
42600_ACEOF
42601
42602fi
42603
42604if test "$wxUSE_DIRDLG" = "yes"; then
42605 if test "$wxUSE_TREECTRL" != "yes"; then
42606 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
42607echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
42608 else
42609 cat >>confdefs.h <<\_ACEOF
42610#define wxUSE_DIRDLG 1
42611_ACEOF
42612
42613 fi
42614fi
42615
42616if test "$wxUSE_MSGDLG" = "yes"; then
42617 cat >>confdefs.h <<\_ACEOF
42618#define wxUSE_MSGDLG 1
42619_ACEOF
42620
42621fi
42622
42623if test "$wxUSE_NUMBERDLG" = "yes"; then
42624 cat >>confdefs.h <<\_ACEOF
42625#define wxUSE_NUMBERDLG 1
42626_ACEOF
42627
42628fi
42629
42630if test "$wxUSE_PROGRESSDLG" = "yes"; then
42631 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42632 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
42633echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
42634 else
42635 cat >>confdefs.h <<\_ACEOF
42636#define wxUSE_PROGRESSDLG 1
42637_ACEOF
42638
42639 fi
42640fi
42641
42642if test "$wxUSE_SPLASH" = "yes"; then
42643 cat >>confdefs.h <<\_ACEOF
42644#define wxUSE_SPLASH 1
42645_ACEOF
42646
2057db16 42647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
42648fi
42649
42650if test "$wxUSE_STARTUP_TIPS" = "yes"; then
42651 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42652 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
42653echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
42654 else
42655 cat >>confdefs.h <<\_ACEOF
42656#define wxUSE_STARTUP_TIPS 1
42657_ACEOF
42658
42659 fi
42660fi
42661
42662if test "$wxUSE_TEXTDLG" = "yes"; then
42663 cat >>confdefs.h <<\_ACEOF
42664#define wxUSE_TEXTDLG 1
42665_ACEOF
42666
42667fi
42668
42669if test "$wxUSE_WIZARDDLG" = "yes"; then
42670 cat >>confdefs.h <<\_ACEOF
42671#define wxUSE_WIZARDDLG 1
42672_ACEOF
42673
42674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42675fi
42676
42677
ce756cb0 42678if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
42679 if test "$wxUSE_GTK" = 1; then
42680 wxUSE_GSTREAMER="yes"
42681
ce756cb0 42682
dae87f93 42683 succeeded=no
ce756cb0 42684
dae87f93
RN
42685 if test -z "$PKG_CONFIG"; then
42686 # Extract the first word of "pkg-config", so it can be a program name with args.
42687set dummy pkg-config; ac_word=$2
42688echo "$as_me:$LINENO: checking for $ac_word" >&5
42689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42690if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42691 echo $ECHO_N "(cached) $ECHO_C" >&6
42692else
42693 case $PKG_CONFIG in
42694 [\\/]* | ?:[\\/]*)
42695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42696 ;;
42697 *)
42698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42699for as_dir in $PATH
42700do
42701 IFS=$as_save_IFS
42702 test -z "$as_dir" && as_dir=.
42703 for ac_exec_ext in '' $ac_executable_extensions; do
42704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42707 break 2
42708 fi
42709done
42710done
42711
42712 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
42713 ;;
42714esac
42715fi
42716PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42717
42718if test -n "$PKG_CONFIG"; then
42719 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42720echo "${ECHO_T}$PKG_CONFIG" >&6
42721else
42722 echo "$as_me:$LINENO: result: no" >&5
42723echo "${ECHO_T}no" >&6
42724fi
42725
42726 fi
42727
42728 if test "$PKG_CONFIG" = "no" ; then
42729 echo "*** The pkg-config script could not be found. Make sure it is"
42730 echo "*** in your path, or set the PKG_CONFIG environment variable"
42731 echo "*** to the full path to pkg-config."
42732 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42733 else
42734 PKG_CONFIG_MIN_VERSION=0.9.0
42735 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42736 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42737echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42738
42739 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42740 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42741echo "${ECHO_T}yes" >&6
dae87f93 42742 succeeded=yes
ce756cb0 42743
dae87f93
RN
42744 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42745echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42746 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42747 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42748echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42749
42750 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42751echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42752 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42753 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42754echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42755 else
42756 GSTREAMER_CFLAGS=""
42757 GSTREAMER_LIBS=""
42758 ## If we have a custom action on failure, don't print errors, but
42759 ## do set a variable so people can do so.
42760 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 42761
dae87f93
RN
42762 fi
42763
42764
42765
42766 else
42767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
42769 fi
42770 fi
42771
42772 if test $succeeded = yes; then
42773
42774 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42775 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 42776
ce756cb0 42777 else
dae87f93
RN
42778
42779 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42780echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42781 wxUSE_GSTREAMER="no"
42782
42783 fi
42784
42785
42786
42787
42788
42789 if test "x$GST_INSPECT" == "x"; then
42790 # Extract the first word of "gst-inspect", so it can be a program name with args.
42791set dummy gst-inspect; ac_word=$2
42792echo "$as_me:$LINENO: checking for $ac_word" >&5
42793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42794if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42795 echo $ECHO_N "(cached) $ECHO_C" >&6
42796else
42797 if test -n "$GST_INSPECT"; then
42798 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42799else
42800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42801for as_dir in $PATH
42802do
42803 IFS=$as_save_IFS
42804 test -z "$as_dir" && as_dir=.
42805 for ac_exec_ext in '' $ac_executable_extensions; do
42806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42807 ac_cv_prog_GST_INSPECT="gst-inspect"
42808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42809 break 2
ce756cb0 42810 fi
dae87f93
RN
42811done
42812done
42813
42814fi
42815fi
42816GST_INSPECT=$ac_cv_prog_GST_INSPECT
42817if test -n "$GST_INSPECT"; then
42818 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42819echo "${ECHO_T}$GST_INSPECT" >&6
42820else
42821 echo "$as_me:$LINENO: result: no" >&5
42822echo "${ECHO_T}no" >&6
42823fi
42824
42825 fi
42826
42827 if test "x$GST_INSPECT" != "x"; then
42828 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42829echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42830 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42831 echo "$as_me:$LINENO: result: found." >&5
42832echo "${ECHO_T}found." >&6
ce756cb0 42833
ce756cb0 42834 else
dae87f93
RN
42835 echo "$as_me:$LINENO: result: not found." >&5
42836echo "${ECHO_T}not found." >&6
42837
42838 wxUSE_GSTREAMER="no"
42839 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42840echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42841
42842 fi
42843 fi
42844
42845
42846 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42847echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42848if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42849 echo $ECHO_N "(cached) $ECHO_C" >&6
42850else
42851 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
42852/* confdefs.h. */
42853_ACEOF
42854cat confdefs.h >>conftest.$ac_ext
42855cat >>conftest.$ac_ext <<_ACEOF
42856/* end confdefs.h. */
dae87f93 42857#include <gst/gst.h>
ce756cb0 42858
dae87f93 42859#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42860_ACEOF
42861rm -f conftest.$ac_objext
42862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42863 (eval $ac_compile) 2>conftest.er1
42864 ac_status=$?
42865 grep -v '^ *+' conftest.er1 >conftest.err
42866 rm -f conftest.er1
42867 cat conftest.err >&5
42868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869 (exit $ac_status); } &&
dee1a63f
MB
42870 { ac_try='test -z "$ac_c_werror_flag"
42871 || test ! -s conftest.err'
ce756cb0
RN
42872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42873 (eval $ac_try) 2>&5
42874 ac_status=$?
42875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42876 (exit $ac_status); }; } &&
42877 { ac_try='test -s conftest.$ac_objext'
42878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42879 (eval $ac_try) 2>&5
42880 ac_status=$?
42881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42882 (exit $ac_status); }; }; then
dae87f93 42883 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42884else
42885 echo "$as_me: failed program was:" >&5
42886sed 's/^/| /' conftest.$ac_ext >&5
42887
dae87f93 42888ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42889fi
42890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42891fi
42892echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42893echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42894if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42895 :
42896else
ce756cb0 42897
dae87f93
RN
42898 wxUSE_GSTREAMER="no"
42899 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42900echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42901
dae87f93 42902fi
ce756cb0 42903
dae87f93
RN
42904
42905
42906 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42907echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42908
0ad5d837
VZ
42909 ac_find_libraries=
42910 for ac_dir in $SEARCH_LIB;
ce756cb0 42911 do
3eca31dc 42912 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42913 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42914 ac_find_libraries=$ac_dir
42915 break 2
42916 fi
42917 done
42918 done
42919
ce756cb0 42920
dae87f93
RN
42921 if test "$ac_find_libraries" = "" ; then
42922 echo "$as_me:$LINENO: result: no" >&5
42923echo "${ECHO_T}no" >&6
42924 wxUSE_GSTREAMER="no"
42925 else
42926 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42927echo "${ECHO_T}yes" >&6
dae87f93 42928 fi
ce756cb0 42929
dae87f93
RN
42930 if test "$wxUSE_GSTREAMER" = "yes"; then
42931 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42932#define wxUSE_GSTREAMER 1
42933_ACEOF
42934
dae87f93
RN
42935 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42936echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42937 fi
42938 fi
42939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42940 cat >>confdefs.h <<\_ACEOF
42941#define wxUSE_MEDIACTRL 1
42942_ACEOF
42943
42944fi
42945
42946
a848cd7e
SC
42947if test "$cross_compiling" = "yes"; then
42948 OSINFO="\"$host\""
42949else
42950 OSINFO=`uname -s -r -m`
42951 OSINFO="\"$OSINFO\""
42952fi
42953
42954cat >>confdefs.h <<_ACEOF
42955#define WXWIN_OS_DESCRIPTION $OSINFO
42956_ACEOF
42957
42958
42959
42960if test "x$prefix" != "xNONE"; then
42961 wxPREFIX=$prefix
42962else
42963 wxPREFIX=$ac_default_prefix
42964fi
42965
42966cat >>confdefs.h <<_ACEOF
42967#define wxINSTALL_PREFIX "$wxPREFIX"
42968_ACEOF
42969
42970
a848cd7e
SC
42971
42972
42973CORE_BASE_LIBS="net base"
42974CORE_GUI_LIBS="adv core"
42975
42976if test "$wxUSE_XML" = "yes" ; then
42977 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42978fi
42979if test "$wxUSE_ODBC" != "no" ; then
42980 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42981 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42982fi
42983if test "$wxUSE_HTML" = "yes" ; then
42984 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42985fi
61639efb
VZ
42986if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42987 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42988fi
9a8f0513
VS
42989if test "$wxUSE_XRC" = "yes" ; then
42990 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42991fi
a848cd7e
SC
42992
42993if test "$wxUSE_GUI" != "yes"; then
42994 CORE_GUI_LIBS=""
42995fi
42996
42997
42998
42999
43000
43001
43002
43003
43004if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 43005 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
43006 if test "$USE_DARWIN" = 1; then
43007 LDFLAGS="$LDFLAGS -framework QuickTime"
43008 else
43009 LDFLAGS="$LDFLAGS -lQuickTimeLib"
43010 fi
07bea8f0 43011 fi
5dcf30a0 43012 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
43013 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
43014 else
43015 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 43016 fi
a848cd7e
SC
43017fi
43018if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 43019 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
43020 if test "$wxUSE_MEDIACTRL" = "yes"; then
43021 LDFLAGS="$LDFLAGS -framework QuickTime"
43022 fi
a848cd7e 43023fi
19b27e78
MW
43024if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
43025 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
43026fi
a848cd7e
SC
43027
43028
43029LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
43030
43031have_cos=0
43032have_floor=0
43033
43034for ac_func in cos
43035do
43036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43037echo "$as_me:$LINENO: checking for $ac_func" >&5
43038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43039if eval "test \"\${$as_ac_var+set}\" = set"; then
43040 echo $ECHO_N "(cached) $ECHO_C" >&6
43041else
43042 cat >conftest.$ac_ext <<_ACEOF
43043/* confdefs.h. */
43044_ACEOF
43045cat confdefs.h >>conftest.$ac_ext
43046cat >>conftest.$ac_ext <<_ACEOF
43047/* end confdefs.h. */
ac1cb8d3
VS
43048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43050#define $ac_func innocuous_$ac_func
43051
a848cd7e
SC
43052/* System header to define __stub macros and hopefully few prototypes,
43053 which can conflict with char $ac_func (); below.
43054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43055 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43056
a848cd7e
SC
43057#ifdef __STDC__
43058# include <limits.h>
43059#else
43060# include <assert.h>
43061#endif
ac1cb8d3
VS
43062
43063#undef $ac_func
43064
a848cd7e
SC
43065/* Override any gcc2 internal prototype to avoid an error. */
43066#ifdef __cplusplus
43067extern "C"
43068{
43069#endif
43070/* We use char because int might match the return type of a gcc2
43071 builtin and then its argument prototype would still apply. */
43072char $ac_func ();
43073/* The GNU C library defines this for functions which it implements
43074 to always fail with ENOSYS. Some functions are actually named
43075 something starting with __ and the normal name is an alias. */
43076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43077choke me
43078#else
43079char (*f) () = $ac_func;
43080#endif
43081#ifdef __cplusplus
43082}
43083#endif
43084
43085int
43086main ()
43087{
43088return f != $ac_func;
43089 ;
43090 return 0;
43091}
43092_ACEOF
43093rm -f conftest.$ac_objext conftest$ac_exeext
43094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43095 (eval $ac_link) 2>conftest.er1
a848cd7e 43096 ac_status=$?
ac1cb8d3
VS
43097 grep -v '^ *+' conftest.er1 >conftest.err
43098 rm -f conftest.er1
43099 cat conftest.err >&5
a848cd7e
SC
43100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43101 (exit $ac_status); } &&
dee1a63f
MB
43102 { ac_try='test -z "$ac_c_werror_flag"
43103 || test ! -s conftest.err'
ac1cb8d3
VS
43104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43105 (eval $ac_try) 2>&5
43106 ac_status=$?
43107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43108 (exit $ac_status); }; } &&
43109 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43111 (eval $ac_try) 2>&5
43112 ac_status=$?
43113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43114 (exit $ac_status); }; }; then
43115 eval "$as_ac_var=yes"
43116else
43117 echo "$as_me: failed program was:" >&5
43118sed 's/^/| /' conftest.$ac_ext >&5
43119
43120eval "$as_ac_var=no"
43121fi
ac1cb8d3
VS
43122rm -f conftest.err conftest.$ac_objext \
43123 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43124fi
43125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43126echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43127if test `eval echo '${'$as_ac_var'}'` = yes; then
43128 cat >>confdefs.h <<_ACEOF
43129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43130_ACEOF
43131 have_cos=1
43132fi
43133done
43134
43135
43136for ac_func in floor
43137do
43138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43139echo "$as_me:$LINENO: checking for $ac_func" >&5
43140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43141if eval "test \"\${$as_ac_var+set}\" = set"; then
43142 echo $ECHO_N "(cached) $ECHO_C" >&6
43143else
43144 cat >conftest.$ac_ext <<_ACEOF
43145/* confdefs.h. */
43146_ACEOF
43147cat confdefs.h >>conftest.$ac_ext
43148cat >>conftest.$ac_ext <<_ACEOF
43149/* end confdefs.h. */
ac1cb8d3
VS
43150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43152#define $ac_func innocuous_$ac_func
43153
a848cd7e
SC
43154/* System header to define __stub macros and hopefully few prototypes,
43155 which can conflict with char $ac_func (); below.
43156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43157 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43158
a848cd7e
SC
43159#ifdef __STDC__
43160# include <limits.h>
43161#else
43162# include <assert.h>
43163#endif
ac1cb8d3
VS
43164
43165#undef $ac_func
43166
a848cd7e
SC
43167/* Override any gcc2 internal prototype to avoid an error. */
43168#ifdef __cplusplus
43169extern "C"
43170{
43171#endif
43172/* We use char because int might match the return type of a gcc2
43173 builtin and then its argument prototype would still apply. */
43174char $ac_func ();
43175/* The GNU C library defines this for functions which it implements
43176 to always fail with ENOSYS. Some functions are actually named
43177 something starting with __ and the normal name is an alias. */
43178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43179choke me
43180#else
43181char (*f) () = $ac_func;
43182#endif
43183#ifdef __cplusplus
43184}
43185#endif
43186
43187int
43188main ()
43189{
43190return f != $ac_func;
43191 ;
43192 return 0;
43193}
43194_ACEOF
43195rm -f conftest.$ac_objext conftest$ac_exeext
43196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43197 (eval $ac_link) 2>conftest.er1
a848cd7e 43198 ac_status=$?
ac1cb8d3
VS
43199 grep -v '^ *+' conftest.er1 >conftest.err
43200 rm -f conftest.er1
43201 cat conftest.err >&5
a848cd7e
SC
43202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43203 (exit $ac_status); } &&
dee1a63f
MB
43204 { ac_try='test -z "$ac_c_werror_flag"
43205 || test ! -s conftest.err'
ac1cb8d3
VS
43206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43207 (eval $ac_try) 2>&5
43208 ac_status=$?
43209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43210 (exit $ac_status); }; } &&
43211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43213 (eval $ac_try) 2>&5
43214 ac_status=$?
43215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43216 (exit $ac_status); }; }; then
43217 eval "$as_ac_var=yes"
43218else
43219 echo "$as_me: failed program was:" >&5
43220sed 's/^/| /' conftest.$ac_ext >&5
43221
43222eval "$as_ac_var=no"
43223fi
ac1cb8d3
VS
43224rm -f conftest.err conftest.$ac_objext \
43225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43226fi
43227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43228echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43229if test `eval echo '${'$as_ac_var'}'` = yes; then
43230 cat >>confdefs.h <<_ACEOF
43231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43232_ACEOF
43233 have_floor=1
43234fi
43235done
43236
43237echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
43238echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
43239if test "$have_cos" = 1 -a "$have_floor" = 1; then
43240 echo "$as_me:$LINENO: result: yes" >&5
43241echo "${ECHO_T}yes" >&6
43242else
43243 echo "$as_me:$LINENO: result: no" >&5
43244echo "${ECHO_T}no" >&6
43245 LIBS="$LIBS -lm"
43246 # use different functions to avoid configure caching
43247 have_sin=0
43248 have_ceil=0
43249
43250for ac_func in sin
43251do
43252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43253echo "$as_me:$LINENO: checking for $ac_func" >&5
43254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43255if eval "test \"\${$as_ac_var+set}\" = set"; then
43256 echo $ECHO_N "(cached) $ECHO_C" >&6
43257else
43258 cat >conftest.$ac_ext <<_ACEOF
43259/* confdefs.h. */
43260_ACEOF
43261cat confdefs.h >>conftest.$ac_ext
43262cat >>conftest.$ac_ext <<_ACEOF
43263/* end confdefs.h. */
ac1cb8d3
VS
43264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43266#define $ac_func innocuous_$ac_func
43267
a848cd7e
SC
43268/* System header to define __stub macros and hopefully few prototypes,
43269 which can conflict with char $ac_func (); below.
43270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43271 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43272
a848cd7e
SC
43273#ifdef __STDC__
43274# include <limits.h>
43275#else
43276# include <assert.h>
43277#endif
ac1cb8d3
VS
43278
43279#undef $ac_func
43280
a848cd7e
SC
43281/* Override any gcc2 internal prototype to avoid an error. */
43282#ifdef __cplusplus
43283extern "C"
43284{
43285#endif
43286/* We use char because int might match the return type of a gcc2
43287 builtin and then its argument prototype would still apply. */
43288char $ac_func ();
43289/* The GNU C library defines this for functions which it implements
43290 to always fail with ENOSYS. Some functions are actually named
43291 something starting with __ and the normal name is an alias. */
43292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43293choke me
43294#else
43295char (*f) () = $ac_func;
43296#endif
43297#ifdef __cplusplus
43298}
43299#endif
43300
43301int
43302main ()
43303{
43304return f != $ac_func;
43305 ;
43306 return 0;
43307}
43308_ACEOF
43309rm -f conftest.$ac_objext conftest$ac_exeext
43310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43311 (eval $ac_link) 2>conftest.er1
a848cd7e 43312 ac_status=$?
ac1cb8d3
VS
43313 grep -v '^ *+' conftest.er1 >conftest.err
43314 rm -f conftest.er1
43315 cat conftest.err >&5
a848cd7e
SC
43316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43317 (exit $ac_status); } &&
dee1a63f
MB
43318 { ac_try='test -z "$ac_c_werror_flag"
43319 || test ! -s conftest.err'
ac1cb8d3
VS
43320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43321 (eval $ac_try) 2>&5
43322 ac_status=$?
43323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43324 (exit $ac_status); }; } &&
43325 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43327 (eval $ac_try) 2>&5
43328 ac_status=$?
43329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43330 (exit $ac_status); }; }; then
43331 eval "$as_ac_var=yes"
43332else
43333 echo "$as_me: failed program was:" >&5
43334sed 's/^/| /' conftest.$ac_ext >&5
43335
43336eval "$as_ac_var=no"
43337fi
ac1cb8d3
VS
43338rm -f conftest.err conftest.$ac_objext \
43339 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43340fi
43341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43342echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43343if test `eval echo '${'$as_ac_var'}'` = yes; then
43344 cat >>confdefs.h <<_ACEOF
43345#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43346_ACEOF
43347 have_sin=1
43348fi
43349done
43350
43351
43352for ac_func in ceil
43353do
43354as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43355echo "$as_me:$LINENO: checking for $ac_func" >&5
43356echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43357if eval "test \"\${$as_ac_var+set}\" = set"; then
43358 echo $ECHO_N "(cached) $ECHO_C" >&6
43359else
43360 cat >conftest.$ac_ext <<_ACEOF
43361/* confdefs.h. */
43362_ACEOF
43363cat confdefs.h >>conftest.$ac_ext
43364cat >>conftest.$ac_ext <<_ACEOF
43365/* end confdefs.h. */
ac1cb8d3
VS
43366/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43368#define $ac_func innocuous_$ac_func
43369
a848cd7e
SC
43370/* System header to define __stub macros and hopefully few prototypes,
43371 which can conflict with char $ac_func (); below.
43372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43373 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43374
a848cd7e
SC
43375#ifdef __STDC__
43376# include <limits.h>
43377#else
43378# include <assert.h>
43379#endif
ac1cb8d3
VS
43380
43381#undef $ac_func
43382
a848cd7e
SC
43383/* Override any gcc2 internal prototype to avoid an error. */
43384#ifdef __cplusplus
43385extern "C"
43386{
43387#endif
43388/* We use char because int might match the return type of a gcc2
43389 builtin and then its argument prototype would still apply. */
43390char $ac_func ();
43391/* The GNU C library defines this for functions which it implements
43392 to always fail with ENOSYS. Some functions are actually named
43393 something starting with __ and the normal name is an alias. */
43394#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43395choke me
43396#else
43397char (*f) () = $ac_func;
43398#endif
43399#ifdef __cplusplus
43400}
43401#endif
43402
43403int
43404main ()
43405{
43406return f != $ac_func;
43407 ;
43408 return 0;
43409}
43410_ACEOF
43411rm -f conftest.$ac_objext conftest$ac_exeext
43412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43413 (eval $ac_link) 2>conftest.er1
a848cd7e 43414 ac_status=$?
ac1cb8d3
VS
43415 grep -v '^ *+' conftest.er1 >conftest.err
43416 rm -f conftest.er1
43417 cat conftest.err >&5
a848cd7e
SC
43418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43419 (exit $ac_status); } &&
dee1a63f
MB
43420 { ac_try='test -z "$ac_c_werror_flag"
43421 || test ! -s conftest.err'
ac1cb8d3
VS
43422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43423 (eval $ac_try) 2>&5
43424 ac_status=$?
43425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43426 (exit $ac_status); }; } &&
43427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43429 (eval $ac_try) 2>&5
43430 ac_status=$?
43431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43432 (exit $ac_status); }; }; then
43433 eval "$as_ac_var=yes"
43434else
43435 echo "$as_me: failed program was:" >&5
43436sed 's/^/| /' conftest.$ac_ext >&5
43437
43438eval "$as_ac_var=no"
43439fi
ac1cb8d3
VS
43440rm -f conftest.err conftest.$ac_objext \
43441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43442fi
43443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43445if test `eval echo '${'$as_ac_var'}'` = yes; then
43446 cat >>confdefs.h <<_ACEOF
43447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43448_ACEOF
43449 have_ceil=1
43450fi
43451done
43452
43453 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
43454echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
43455 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
43456 echo "$as_me:$LINENO: result: yes" >&5
43457echo "${ECHO_T}yes" >&6
43458 else
43459 echo "$as_me:$LINENO: result: no" >&5
43460echo "${ECHO_T}no" >&6
43461 # not sure we should warn the user, crash, etc.
43462 fi
43463fi
43464
43465if test "$wxUSE_GUI" = "yes"; then
43466
43467
8bce5cda
MW
43468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
43469 dynamic erase event exec font image minimal mobile \
43470 mobile/wxedit mobile/styles propsize render \
43471 richedit rotate shaped vscroll widgets"
a848cd7e
SC
43472
43473 if test "$wxUSE_MONOLITHIC" != "yes"; then
43474 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
43475 fi
0b78747f 43476 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
43477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
43478 if test "$wxUSE_UNIVERSAL" != "yes"; then
43479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
43480 fi
43481 fi
43482 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
43483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 43484 fi
a848cd7e
SC
43485else
43486 SAMPLES_SUBDIRS="console"
43487fi
43488
43489
ceec2216 43490INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
43491-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
43492
48f625bc 43493if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
43494 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
43495elif test "$GCC" = yes ; then
43496 CWARNINGS="-Wall -Wundef"
43497fi
43498
48f625bc 43499if test "x$INTELCXX" = "xyes" ; then
7f47faf4 43500 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
43501elif test "$GXX" = yes ; then
43502 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 43503fi
a848cd7e
SC
43504
43505EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
43506
0c3c69fc 43507CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 43508CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 43509CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 43510
95986553
DE
43511if test "x$MWCC" = "xyes"; then
43512
43513 CC="$CC -cwd source -I-"
43514 CXX="$CXX -cwd source -I-"
43515fi
43516
a848cd7e 43517
0c3c69fc 43518LIBS=`echo $LIBS`
a848cd7e
SC
43519EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
43520EXTRALIBS_XML="$EXPAT_LINK"
43521EXTRALIBS_HTML="$MSPACK_LINK"
43522EXTRALIBS_ODBC="$ODBC_LINK"
43523if test "$wxUSE_GUI" = "yes"; then
2e350179 43524 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
43525fi
43526if test "$wxUSE_OPENGL" = "yes"; then
43527 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
43528fi
43529
43530LDFLAGS="$LDFLAGS $PROFILE"
43531
43532if test "$wxUSE_GTK" = 1; then
43533 WXCONFIG_INCLUDE=
43534else
43535 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
43536fi
43537
43538WXCONFIG_EXTRALIBS="$LIBS"
43539
43540if test "$wxUSE_REGEX" = "builtin" ; then
74802184 43541 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
43542fi
43543if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 43544 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
43545fi
43546if test "$wxUSE_ODBC" = "builtin" ; then
74802184 43547 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
43548fi
43549if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 43550 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
43551fi
43552if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 43553 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
43554fi
43555if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 43556 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
43557fi
43558if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 43559 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
43560fi
43561
43562for i in $wxconfig_3rdparty ; do
74802184 43563 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
43564done
43565
43566
43567if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
43568 WXUNIV=1
43569else
43570 WXUNIV=0
43571fi
43572
43573
43574
43575
43576
43577
43578
43579
43580
43581if test $wxUSE_MONOLITHIC = "yes" ; then
43582 MONOLITHIC=1
43583else
43584 MONOLITHIC=0
43585fi
43586
43587if test $wxUSE_PLUGINS = "yes" ; then
43588 USE_PLUGINS=1
43589else
43590 USE_PLUGINS=0
43591fi
43592
43593if test $wxUSE_ODBC != "no" ; then
43594 USE_ODBC=1
43595else
43596 USE_ODBC=0
43597fi
43598
16358932
VZ
43599if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43600 USE_QA=1
43601else
43602 USE_QA=0
43603fi
43604
a848cd7e
SC
43605if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
43606 OFFICIAL_BUILD=1
43607else
43608 OFFICIAL_BUILD=0
43609fi
43610
43611
43612
43613
43614
43615
43616
43617
43618
43619
43620
43621
43622
43623
43624
43625
43626
43627
43628
ceec2216 43629
d1c38808 43630
a848cd7e
SC
43631
43632
43633TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
43634
43635
43636
43637
43638
43639
43640
43641
4d4ff94c
VZ
43642case "$TOOLKIT" in
43643 GTK)
43644 TOOLKIT_USER="GTK+"
43645 if test "$WXGTK20" = 1; then
43646 TOOLKIT_USER="$TOOLKIT_USER 2"
43647 fi
9a8f0513 43648 ;;
4d4ff94c
VZ
43649
43650 *)
43651 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 43652 ;;
4d4ff94c 43653esac
a848cd7e 43654
fb00f58d
JS
43655if test "$wxUSE_WINE" = "yes"; then
43656 BAKEFILE_FORCE_PLATFORM=win32
43657fi
43658
9a8f0513 43659
1e9e8aba
DE
43660
43661
a848cd7e
SC
43662 if test "x$BAKEFILE_HOST" = "x"; then
43663 BAKEFILE_HOST="${host}"
43664 fi
43665
43666 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
43667
43668 if test -n "$ac_tool_prefix"; then
43669 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43670set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43671echo "$as_me:$LINENO: checking for $ac_word" >&5
43672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43673if test "${ac_cv_prog_RANLIB+set}" = set; then
43674 echo $ECHO_N "(cached) $ECHO_C" >&6
43675else
43676 if test -n "$RANLIB"; then
43677 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43678else
43679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43680for as_dir in $PATH
43681do
43682 IFS=$as_save_IFS
43683 test -z "$as_dir" && as_dir=.
43684 for ac_exec_ext in '' $ac_executable_extensions; do
43685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43686 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43688 break 2
43689 fi
43690done
43691done
43692
43693fi
43694fi
43695RANLIB=$ac_cv_prog_RANLIB
43696if test -n "$RANLIB"; then
43697 echo "$as_me:$LINENO: result: $RANLIB" >&5
43698echo "${ECHO_T}$RANLIB" >&6
43699else
43700 echo "$as_me:$LINENO: result: no" >&5
43701echo "${ECHO_T}no" >&6
43702fi
43703
43704fi
43705if test -z "$ac_cv_prog_RANLIB"; then
43706 ac_ct_RANLIB=$RANLIB
43707 # Extract the first word of "ranlib", so it can be a program name with args.
43708set dummy ranlib; ac_word=$2
43709echo "$as_me:$LINENO: checking for $ac_word" >&5
43710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43711if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43712 echo $ECHO_N "(cached) $ECHO_C" >&6
43713else
43714 if test -n "$ac_ct_RANLIB"; then
43715 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43716else
43717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43718for as_dir in $PATH
43719do
43720 IFS=$as_save_IFS
43721 test -z "$as_dir" && as_dir=.
43722 for ac_exec_ext in '' $ac_executable_extensions; do
43723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43724 ac_cv_prog_ac_ct_RANLIB="ranlib"
43725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43726 break 2
43727 fi
43728done
43729done
43730
43731 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43732fi
43733fi
43734ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43735if test -n "$ac_ct_RANLIB"; then
43736 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43737echo "${ECHO_T}$ac_ct_RANLIB" >&6
43738else
43739 echo "$as_me:$LINENO: result: no" >&5
43740echo "${ECHO_T}no" >&6
43741fi
43742
43743 RANLIB=$ac_ct_RANLIB
43744else
43745 RANLIB="$ac_cv_prog_RANLIB"
43746fi
43747
43748 # Find a good install program. We prefer a C program (faster),
43749# so one script is as good as another. But avoid the broken or
43750# incompatible versions:
43751# SysV /etc/install, /usr/sbin/install
43752# SunOS /usr/etc/install
43753# IRIX /sbin/install
43754# AIX /bin/install
43755# AmigaOS /C/install, which installs bootblocks on floppy discs
43756# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43757# AFS /usr/afsws/bin/install, which mishandles nonexistent args
43758# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 43759# OS/2's system install, which has a completely different semantic
a848cd7e
SC
43760# ./install, which can be erroneously created by make from ./install.sh.
43761echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43762echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43763if test -z "$INSTALL"; then
43764if test "${ac_cv_path_install+set}" = set; then
43765 echo $ECHO_N "(cached) $ECHO_C" >&6
43766else
43767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43768for as_dir in $PATH
43769do
43770 IFS=$as_save_IFS
43771 test -z "$as_dir" && as_dir=.
43772 # Account for people who put trailing slashes in PATH elements.
43773case $as_dir/ in
43774 ./ | .// | /cC/* | \
43775 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 43776 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
43777 /usr/ucb/* ) ;;
43778 *)
43779 # OSF1 and SCO ODT 3.0 have their own names for install.
43780 # Don't use installbsd from OSF since it installs stuff as root
43781 # by default.
43782 for ac_prog in ginstall scoinst install; do
43783 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
43784 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43785 if test $ac_prog = install &&
43786 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43787 # AIX install. It has an incompatible calling convention.
43788 :
43789 elif test $ac_prog = install &&
43790 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43791 # program-specific install script used by HP pwplus--don't use.
43792 :
43793 else
43794 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43795 break 3
43796 fi
43797 fi
a848cd7e
SC
43798 done
43799 done
43800 ;;
43801esac
43802done
43803
43804
43805fi
43806 if test "${ac_cv_path_install+set}" = set; then
43807 INSTALL=$ac_cv_path_install
43808 else
43809 # As a last resort, use the slow shell script. We don't cache a
43810 # path for INSTALL within a source directory, because that will
43811 # break other packages using the cache if that directory is
43812 # removed, or if the path is relative.
43813 INSTALL=$ac_install_sh
43814 fi
43815fi
43816echo "$as_me:$LINENO: result: $INSTALL" >&5
43817echo "${ECHO_T}$INSTALL" >&6
43818
43819# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43820# It thinks the first close brace ends the variable substitution.
43821test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43822
43823test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43824
43825test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43826
43827 echo "$as_me:$LINENO: checking whether ln -s works" >&5
43828echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43829LN_S=$as_ln_s
43830if test "$LN_S" = "ln -s"; then
43831 echo "$as_me:$LINENO: result: yes" >&5
43832echo "${ECHO_T}yes" >&6
43833else
43834 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43835echo "${ECHO_T}no, using $LN_S" >&6
43836fi
43837
43838
43839 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43840echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43841set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43842if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43843 echo $ECHO_N "(cached) $ECHO_C" >&6
43844else
43845 cat >conftest.make <<\_ACEOF
43846all:
43847 @echo 'ac_maketemp="$(MAKE)"'
43848_ACEOF
43849# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43850eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43851if test -n "$ac_maketemp"; then
43852 eval ac_cv_prog_make_${ac_make}_set=yes
43853else
43854 eval ac_cv_prog_make_${ac_make}_set=no
43855fi
43856rm -f conftest.make
43857fi
43858if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43859 echo "$as_me:$LINENO: result: yes" >&5
43860echo "${ECHO_T}yes" >&6
43861 SET_MAKE=
43862else
43863 echo "$as_me:$LINENO: result: no" >&5
43864echo "${ECHO_T}no" >&6
43865 SET_MAKE="MAKE=${MAKE-make}"
43866fi
43867
43868
43869
43870 if test -n "$ac_tool_prefix"; then
43871 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43872set dummy ${ac_tool_prefix}ar; ac_word=$2
43873echo "$as_me:$LINENO: checking for $ac_word" >&5
43874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43875if test "${ac_cv_prog_AR+set}" = set; then
43876 echo $ECHO_N "(cached) $ECHO_C" >&6
43877else
43878 if test -n "$AR"; then
43879 ac_cv_prog_AR="$AR" # Let the user override the test.
43880else
43881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43882for as_dir in $PATH
43883do
43884 IFS=$as_save_IFS
43885 test -z "$as_dir" && as_dir=.
43886 for ac_exec_ext in '' $ac_executable_extensions; do
43887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43888 ac_cv_prog_AR="${ac_tool_prefix}ar"
43889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43890 break 2
43891 fi
43892done
43893done
43894
43895fi
43896fi
43897AR=$ac_cv_prog_AR
43898if test -n "$AR"; then
43899 echo "$as_me:$LINENO: result: $AR" >&5
43900echo "${ECHO_T}$AR" >&6
43901else
43902 echo "$as_me:$LINENO: result: no" >&5
43903echo "${ECHO_T}no" >&6
43904fi
43905
43906fi
43907if test -z "$ac_cv_prog_AR"; then
43908 ac_ct_AR=$AR
43909 # Extract the first word of "ar", so it can be a program name with args.
43910set dummy ar; ac_word=$2
43911echo "$as_me:$LINENO: checking for $ac_word" >&5
43912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43913if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43914 echo $ECHO_N "(cached) $ECHO_C" >&6
43915else
43916 if test -n "$ac_ct_AR"; then
43917 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43918else
43919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43920for as_dir in $PATH
43921do
43922 IFS=$as_save_IFS
43923 test -z "$as_dir" && as_dir=.
43924 for ac_exec_ext in '' $ac_executable_extensions; do
43925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43926 ac_cv_prog_ac_ct_AR="ar"
43927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43928 break 2
43929 fi
43930done
43931done
43932
43933 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43934fi
43935fi
43936ac_ct_AR=$ac_cv_prog_ac_ct_AR
43937if test -n "$ac_ct_AR"; then
43938 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43939echo "${ECHO_T}$ac_ct_AR" >&6
43940else
43941 echo "$as_me:$LINENO: result: no" >&5
43942echo "${ECHO_T}no" >&6
43943fi
43944
43945 AR=$ac_ct_AR
43946else
43947 AR="$ac_cv_prog_AR"
43948fi
43949
43950 if test -n "$ac_tool_prefix"; then
43951 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43952set dummy ${ac_tool_prefix}strip; ac_word=$2
43953echo "$as_me:$LINENO: checking for $ac_word" >&5
43954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43955if test "${ac_cv_prog_STRIP+set}" = set; then
43956 echo $ECHO_N "(cached) $ECHO_C" >&6
43957else
43958 if test -n "$STRIP"; then
43959 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43960else
43961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43962for as_dir in $PATH
43963do
43964 IFS=$as_save_IFS
43965 test -z "$as_dir" && as_dir=.
43966 for ac_exec_ext in '' $ac_executable_extensions; do
43967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43968 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43970 break 2
43971 fi
43972done
43973done
43974
43975fi
43976fi
43977STRIP=$ac_cv_prog_STRIP
43978if test -n "$STRIP"; then
43979 echo "$as_me:$LINENO: result: $STRIP" >&5
43980echo "${ECHO_T}$STRIP" >&6
43981else
43982 echo "$as_me:$LINENO: result: no" >&5
43983echo "${ECHO_T}no" >&6
43984fi
43985
43986fi
43987if test -z "$ac_cv_prog_STRIP"; then
43988 ac_ct_STRIP=$STRIP
43989 # Extract the first word of "strip", so it can be a program name with args.
43990set dummy strip; ac_word=$2
43991echo "$as_me:$LINENO: checking for $ac_word" >&5
43992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43993if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43994 echo $ECHO_N "(cached) $ECHO_C" >&6
43995else
43996 if test -n "$ac_ct_STRIP"; then
43997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43998else
43999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44000for as_dir in $PATH
44001do
44002 IFS=$as_save_IFS
44003 test -z "$as_dir" && as_dir=.
44004 for ac_exec_ext in '' $ac_executable_extensions; do
44005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44006 ac_cv_prog_ac_ct_STRIP="strip"
44007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44008 break 2
44009 fi
44010done
44011done
44012
44013 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
44014fi
44015fi
44016ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
44017if test -n "$ac_ct_STRIP"; then
44018 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
44019echo "${ECHO_T}$ac_ct_STRIP" >&6
44020else
44021 echo "$as_me:$LINENO: result: no" >&5
44022echo "${ECHO_T}no" >&6
44023fi
44024
44025 STRIP=$ac_ct_STRIP
44026else
44027 STRIP="$ac_cv_prog_STRIP"
44028fi
44029
44030 if test -n "$ac_tool_prefix"; then
44031 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
44032set dummy ${ac_tool_prefix}nm; ac_word=$2
44033echo "$as_me:$LINENO: checking for $ac_word" >&5
44034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44035if test "${ac_cv_prog_NM+set}" = set; then
44036 echo $ECHO_N "(cached) $ECHO_C" >&6
44037else
44038 if test -n "$NM"; then
44039 ac_cv_prog_NM="$NM" # Let the user override the test.
44040else
44041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44042for as_dir in $PATH
44043do
44044 IFS=$as_save_IFS
44045 test -z "$as_dir" && as_dir=.
44046 for ac_exec_ext in '' $ac_executable_extensions; do
44047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44048 ac_cv_prog_NM="${ac_tool_prefix}nm"
44049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44050 break 2
44051 fi
44052done
44053done
44054
44055fi
44056fi
44057NM=$ac_cv_prog_NM
44058if test -n "$NM"; then
44059 echo "$as_me:$LINENO: result: $NM" >&5
44060echo "${ECHO_T}$NM" >&6
44061else
44062 echo "$as_me:$LINENO: result: no" >&5
44063echo "${ECHO_T}no" >&6
44064fi
44065
44066fi
44067if test -z "$ac_cv_prog_NM"; then
44068 ac_ct_NM=$NM
44069 # Extract the first word of "nm", so it can be a program name with args.
44070set dummy nm; ac_word=$2
44071echo "$as_me:$LINENO: checking for $ac_word" >&5
44072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44073if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
44074 echo $ECHO_N "(cached) $ECHO_C" >&6
44075else
44076 if test -n "$ac_ct_NM"; then
44077 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
44078else
44079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44080for as_dir in $PATH
44081do
44082 IFS=$as_save_IFS
44083 test -z "$as_dir" && as_dir=.
44084 for ac_exec_ext in '' $ac_executable_extensions; do
44085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44086 ac_cv_prog_ac_ct_NM="nm"
44087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44088 break 2
44089 fi
44090done
44091done
44092
44093 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
44094fi
44095fi
44096ac_ct_NM=$ac_cv_prog_ac_ct_NM
44097if test -n "$ac_ct_NM"; then
44098 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
44099echo "${ECHO_T}$ac_ct_NM" >&6
44100else
44101 echo "$as_me:$LINENO: result: no" >&5
44102echo "${ECHO_T}no" >&6
44103fi
44104
44105 NM=$ac_ct_NM
44106else
44107 NM="$ac_cv_prog_NM"
44108fi
44109
44110
44111 case ${BAKEFILE_HOST} in
44112 *-hp-hpux* )
1e9e8aba 44113 INSTALL_DIR="mkdir -p"
a848cd7e
SC
44114 ;;
44115 *) INSTALL_DIR="$INSTALL -d"
44116 ;;
44117 esac
44118
44119
44120 LDFLAGS_GUI=
44121 case ${BAKEFILE_HOST} in
44122 *-*-cygwin* | *-*-mingw32* )
44123 LDFLAGS_GUI="-mwindows"
44124 esac
44125
44126
44127 fi
44128
44129 echo "$as_me:$LINENO: checking if make is GNU make" >&5
44130echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
44131if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
44132 echo $ECHO_N "(cached) $ECHO_C" >&6
44133else
44134
44135 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
44136 egrep -s GNU > /dev/null); then
44137 bakefile_cv_prog_makeisgnu="yes"
44138 else
44139 bakefile_cv_prog_makeisgnu="no"
44140 fi
44141
44142fi
44143echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
44144echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
44145
44146 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
44147 IF_GNU_MAKE=""
44148 else
44149 IF_GNU_MAKE="#"
44150 fi
44151
44152
44153
44154 PLATFORM_UNIX=0
44155 PLATFORM_WIN32=0
44156 PLATFORM_MSDOS=0
44157 PLATFORM_MAC=0
1e9e8aba 44158 PLATFORM_MACOS=0
a848cd7e
SC
44159 PLATFORM_MACOSX=0
44160 PLATFORM_OS2=0
1e9e8aba 44161 PLATFORM_BEOS=0
a848cd7e
SC
44162
44163 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
44164 case "${BAKEFILE_HOST}" in
810b94f0 44165 *-*-mingw32* )
a848cd7e
SC
44166 PLATFORM_WIN32=1
44167 ;;
44168 *-pc-msdosdjgpp )
44169 PLATFORM_MSDOS=1
44170 ;;
44171 *-pc-os2_emx | *-pc-os2-emx )
44172 PLATFORM_OS2=1
44173 ;;
47bd5406 44174 *-*-darwin* )
a848cd7e
SC
44175 PLATFORM_MAC=1
44176 PLATFORM_MACOSX=1
44177 ;;
1e9e8aba
DE
44178 *-*-beos* )
44179 PLATFORM_BEOS=1
44180 ;;
44181 powerpc-apple-macos* )
44182 PLATFORM_MAC=1
44183 PLATFORM_MACOS=1
44184 ;;
a848cd7e
SC
44185 * )
44186 PLATFORM_UNIX=1
44187 ;;
44188 esac
44189 else
44190 case "$BAKEFILE_FORCE_PLATFORM" in
44191 win32 )
44192 PLATFORM_WIN32=1
44193 ;;
44194 msdos )
44195 PLATFORM_MSDOS=1
44196 ;;
44197 os2 )
44198 PLATFORM_OS2=1
44199 ;;
44200 darwin )
44201 PLATFORM_MAC=1
44202 PLATFORM_MACOSX=1
44203 ;;
44204 unix )
44205 PLATFORM_UNIX=1
44206 ;;
1e9e8aba
DE
44207 beos )
44208 PLATFORM_BEOS=1
44209 ;;
a848cd7e
SC
44210 * )
44211 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
44212echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
44213 { (exit 1); exit 1; }; }
44214 ;;
44215 esac
44216 fi
44217
44218
44219
44220
44221
44222
44223
44224
44225
1e9e8aba
DE
44226
44227
a848cd7e
SC
44228 # Check whether --enable-omf or --disable-omf was given.
44229if test "${enable_omf+set}" = set; then
44230 enableval="$enable_omf"
44231 bk_os2_use_omf="$enableval"
44232fi;
44233
44234 case "${BAKEFILE_HOST}" in
44235 *-*-darwin* )
47bd5406
VZ
44236 if test "x$GCC" = "xyes"; then
44237 CFLAGS="$CFLAGS -fno-common"
44238 CXXFLAGS="$CXXFLAGS -fno-common"
44239 fi
44240 if test "x$XLCC" = "xyes"; then
44241 CFLAGS="$CFLAGS -qnocommon"
44242 CXXFLAGS="$CXXFLAGS -qnocommon"
44243 fi
a848cd7e
SC
44244 ;;
44245
44246 *-pc-os2_emx | *-pc-os2-emx )
44247 if test "x$bk_os2_use_omf" = "xyes" ; then
44248 AR=emxomfar
44249 RANLIB=:
44250 LDFLAGS="-Zomf $LDFLAGS"
44251 CFLAGS="-Zomf $CFLAGS"
44252 CXXFLAGS="-Zomf $CXXFLAGS"
44253 OS2_LIBEXT="lib"
44254 else
44255 OS2_LIBEXT="a"
44256 fi
44257 ;;
1e9e8aba
DE
44258
44259 i*86-*-beos* )
44260 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
44261 ;;
a848cd7e
SC
44262 esac
44263
44264
44265 SO_SUFFIX="so"
44266 SO_SUFFIX_MODULE="so"
44267 EXEEXT=""
44268 LIBPREFIX="lib"
44269 LIBEXT=".a"
44270 DLLPREFIX="lib"
44271 DLLPREFIX_MODULE=""
44272 DLLIMP_SUFFIX=""
810b94f0 44273 dlldir="$libdir"
a848cd7e
SC
44274
44275 case "${BAKEFILE_HOST}" in
44276 *-hp-hpux* )
44277 SO_SUFFIX="sl"
44278 SO_SUFFIX_MODULE="sl"
44279 ;;
44280 *-*-aix* )
44281 SO_SUFFIX="a"
44282 SO_SUFFIX_MODULE="a"
44283 ;;
810b94f0
MW
44284 *-*-cygwin* )
44285 SO_SUFFIX="dll"
44286 SO_SUFFIX_MODULE="dll"
44287 DLLIMP_SUFFIX="dll.a"
44288 EXEEXT=".exe"
44289 DLLPREFIX="cyg"
44290 dlldir="$bindir"
44291 ;;
44292 *-*-mingw32* )
a848cd7e
SC
44293 SO_SUFFIX="dll"
44294 SO_SUFFIX_MODULE="dll"
44295 DLLIMP_SUFFIX="dll.a"
44296 EXEEXT=".exe"
44297 DLLPREFIX=""
810b94f0 44298 dlldir="$bindir"
a848cd7e
SC
44299 ;;
44300 *-pc-msdosdjgpp )
44301 EXEEXT=".exe"
44302 DLLPREFIX=""
810b94f0 44303 dlldir="$bindir"
a848cd7e
SC
44304 ;;
44305 *-pc-os2_emx | *-pc-os2-emx )
44306 SO_SUFFIX="dll"
44307 SO_SUFFIX_MODULE="dll"
44308 DLLIMP_SUFFIX=$OS2_LIBEXT
44309 EXEEXT=".exe"
44310 DLLPREFIX=""
44311 LIBPREFIX=""
44312 LIBEXT=".$OS2_LIBEXT"
810b94f0 44313 dlldir="$bindir"
a848cd7e 44314 ;;
47bd5406 44315 *-*-darwin* )
a848cd7e
SC
44316 SO_SUFFIX="dylib"
44317 SO_SUFFIX_MODULE="bundle"
44318 ;;
44319 esac
44320
44321 if test "x$DLLIMP_SUFFIX" = "x" ; then
44322 DLLIMP_SUFFIX="$SO_SUFFIX"
44323 fi
44324
44325
44326
44327
44328
44329
44330
44331
44332
44333
44334
810b94f0 44335
1e9e8aba
DE
44336 PIC_FLAG=""
44337 if test "x$GCC" = "xyes"; then
a848cd7e
SC
44338 PIC_FLAG="-fPIC"
44339 fi
44340
1e9e8aba
DE
44341 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
44342 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 44343 WINDOWS_IMPLIB=0
1e9e8aba 44344
a848cd7e
SC
44345 case "${BAKEFILE_HOST}" in
44346 *-hp-hpux* )
1e9e8aba 44347 if test "x$GCC" != "xyes"; then
a848cd7e
SC
44348 LDFLAGS="$LDFLAGS -L/usr/lib"
44349
44350 SHARED_LD_CC="${CC} -b -o"
44351 SHARED_LD_CXX="${CXX} -b -o"
44352 PIC_FLAG="+Z"
44353 fi
44354 ;;
44355
44356 *-*-linux* )
44357 if test "x$GCC" != "xyes"; then
44358 echo "$as_me:$LINENO: checking for Intel compiler" >&5
44359echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
44360if test "${bakefile_cv_prog_icc+set}" = set; then
44361 echo $ECHO_N "(cached) $ECHO_C" >&6
44362else
44363
44364 cat >conftest.$ac_ext <<_ACEOF
44365/* confdefs.h. */
44366_ACEOF
44367cat confdefs.h >>conftest.$ac_ext
44368cat >>conftest.$ac_ext <<_ACEOF
44369/* end confdefs.h. */
44370
44371int
44372main ()
44373{
44374
44375 #ifndef __INTEL_COMPILER
44376 #error Not icc
44377 #endif
44378
44379 ;
44380 return 0;
44381}
44382_ACEOF
44383rm -f conftest.$ac_objext
44384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44385 (eval $ac_compile) 2>conftest.er1
a848cd7e 44386 ac_status=$?
ac1cb8d3
VS
44387 grep -v '^ *+' conftest.er1 >conftest.err
44388 rm -f conftest.er1
44389 cat conftest.err >&5
a848cd7e
SC
44390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44391 (exit $ac_status); } &&
dee1a63f
MB
44392 { ac_try='test -z "$ac_c_werror_flag"
44393 || test ! -s conftest.err'
ac1cb8d3
VS
44394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44395 (eval $ac_try) 2>&5
44396 ac_status=$?
44397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44398 (exit $ac_status); }; } &&
44399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44401 (eval $ac_try) 2>&5
44402 ac_status=$?
44403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44404 (exit $ac_status); }; }; then
44405 bakefile_cv_prog_icc=yes
44406else
44407 echo "$as_me: failed program was:" >&5
44408sed 's/^/| /' conftest.$ac_ext >&5
44409
44410bakefile_cv_prog_icc=no
44411
44412fi
ac1cb8d3 44413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44414
44415fi
44416echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
44417echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
44418 if test "$bakefile_cv_prog_icc" = "yes"; then
44419 PIC_FLAG="-KPIC"
44420 fi
44421 fi
44422 ;;
44423
44424 *-*-solaris2* )
44425 if test "x$GCC" != xyes ; then
44426 SHARED_LD_CC="${CC} -G -o"
44427 SHARED_LD_CXX="${CXX} -G -o"
44428 PIC_FLAG="-KPIC"
44429 fi
44430 ;;
44431
44432 *-*-darwin* )
44433
2eef8513
VZ
44434 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
44435 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
44436
a848cd7e
SC
44437 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
44438echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
a1aa0349 44439if test "${bakefile_cv_gcc31+set}" = set; then
a848cd7e
SC
44440 echo $ECHO_N "(cached) $ECHO_C" >&6
44441else
44442
44443 cat >conftest.$ac_ext <<_ACEOF
44444/* confdefs.h. */
44445_ACEOF
44446cat confdefs.h >>conftest.$ac_ext
44447cat >>conftest.$ac_ext <<_ACEOF
44448/* end confdefs.h. */
44449
44450int
44451main ()
44452{
44453
44454 #if (__GNUC__ < 3) || \
44455 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
44456 #error old gcc
44457 #endif
44458
44459 ;
44460 return 0;
44461}
44462_ACEOF
44463rm -f conftest.$ac_objext
44464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44465 (eval $ac_compile) 2>conftest.er1
a848cd7e 44466 ac_status=$?
ac1cb8d3
VS
44467 grep -v '^ *+' conftest.er1 >conftest.err
44468 rm -f conftest.er1
44469 cat conftest.err >&5
a848cd7e
SC
44470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44471 (exit $ac_status); } &&
dee1a63f
MB
44472 { ac_try='test -z "$ac_c_werror_flag"
44473 || test ! -s conftest.err'
ac1cb8d3
VS
44474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44475 (eval $ac_try) 2>&5
44476 ac_status=$?
44477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44478 (exit $ac_status); }; } &&
44479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44481 (eval $ac_try) 2>&5
44482 ac_status=$?
44483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484 (exit $ac_status); }; }; then
44485
a1aa0349 44486 bakefile_cv_gcc31=yes
a848cd7e
SC
44487
44488else
44489 echo "$as_me: failed program was:" >&5
44490sed 's/^/| /' conftest.$ac_ext >&5
44491
44492
a1aa0349 44493 bakefile_cv_gcc31=no
a848cd7e
SC
44494
44495
44496fi
ac1cb8d3 44497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44498
44499fi
a1aa0349
VZ
44500echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
44501echo "${ECHO_T}$bakefile_cv_gcc31" >&6
44502 if test "$bakefile_cv_gcc31" = "no"; then
473276a9
VS
44503
44504D='$'
44505cat <<EOF >shared-ld-sh
a848cd7e
SC
44506#!/bin/sh
44507#-----------------------------------------------------------------------------
44508#-- Name: distrib/mac/shared-ld-sh
44509#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
44510#-- Author: Gilles Depeyrot
44511#-- Copyright: (c) 2002 Gilles Depeyrot
44512#-- Licence: any use permitted
44513#-----------------------------------------------------------------------------
44514
44515verbose=0
44516args=""
44517objects=""
44518linking_flag="-dynamiclib"
810b94f0 44519ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 44520
473276a9
VS
44521while test ${D}# -gt 0; do
44522 case ${D}1 in
a848cd7e
SC
44523
44524 -v)
44525 verbose=1
44526 ;;
44527
44528 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
44529 # collect these options and values
473276a9 44530 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
44531 shift
44532 ;;
44533
810b94f0
MW
44534 -s|-Wl,*)
44535 # collect these load args
44536 ldargs="${D}{ldargs} ${D}1"
2113bc77 44537 ;;
810b94f0
MW
44538
44539 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 44540 # collect these options
473276a9 44541 args="${D}{args} ${D}1"
a848cd7e
SC
44542 ;;
44543
44544 -dynamiclib|-bundle)
473276a9 44545 linking_flag="${D}1"
a848cd7e
SC
44546 ;;
44547
44548 -*)
473276a9 44549 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
44550 exit 1
44551 ;;
44552
44553 *.o | *.a | *.dylib)
44554 # collect object files
473276a9 44555 objects="${D}{objects} ${D}1"
a848cd7e
SC
44556 ;;
44557
44558 *)
473276a9 44559 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
44560 exit 1
44561 ;;
44562
44563 esac
44564 shift
44565done
44566
810b94f0
MW
44567status=0
44568
a848cd7e
SC
44569#
44570# Link one module containing all the others
44571#
473276a9 44572if test ${D}{verbose} = 1; then
810b94f0 44573 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 44574fi
810b94f0 44575c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 44576status=${D}?
a848cd7e
SC
44577
44578#
810b94f0
MW
44579# Link the shared library from the single module created, but only if the
44580# previous command didn't fail:
a848cd7e 44581#
810b94f0
MW
44582if test ${D}{status} = 0; then
44583 if test ${D}{verbose} = 1; then
44584 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
44585 fi
44586 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
44587 status=${D}?
a848cd7e
SC
44588fi
44589
44590#
44591# Remove intermediate module
44592#
473276a9 44593rm -f master.${D}${D}.o
a848cd7e 44594
810b94f0 44595exit ${D}status
a848cd7e 44596EOF
473276a9 44597
a848cd7e
SC
44598 chmod +x shared-ld-sh
44599
44600 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 44601 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
44602 else
44603 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 44604 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
44605 fi
44606
47bd5406
VZ
44607 if test "x$GCC" == "xyes"; then
44608 PIC_FLAG="-dynamic -fPIC"
44609 fi
44610 if test "x$XLCC" = "xyes"; then
44611 PIC_FLAG="-dynamic -DPIC"
44612 fi
a848cd7e
SC
44613 ;;
44614
44615 *-*-aix* )
f6b50c59
VZ
44616 if test "x$GCC" = "xyes"; then
44617 PIC_FLAG=""
44618
44619 case "${BAKEFILE_HOST}" in
44620 *-*-aix5* )
44621 LD_EXPFULL="-Wl,-bexpfull"
44622 ;;
44623 esac
44624
7b94a67c
VZ
44625 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
44626 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
0ad5d837 44627 else
f6b50c59 44628 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
44629set dummy makeC++SharedLib; ac_word=$2
44630echo "$as_me:$LINENO: checking for $ac_word" >&5
44631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44632if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
44633 echo $ECHO_N "(cached) $ECHO_C" >&6
44634else
44635 if test -n "$AIX_CXX_LD"; then
44636 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
44637else
44638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44639for as_dir in $PATH
44640do
44641 IFS=$as_save_IFS
44642 test -z "$as_dir" && as_dir=.
44643 for ac_exec_ext in '' $ac_executable_extensions; do
44644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44645 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
44646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44647 break 2
44648 fi
44649done
44650done
44651
44652 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
44653fi
44654fi
44655AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
44656if test -n "$AIX_CXX_LD"; then
44657 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
44658echo "${ECHO_T}$AIX_CXX_LD" >&6
44659else
44660 echo "$as_me:$LINENO: result: no" >&5
44661echo "${ECHO_T}no" >&6
44662fi
44663
f6b50c59 44664 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
44665 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
44666 fi
44667 ;;
44668
44669 *-*-beos* )
1e9e8aba
DE
44670 SHARED_LD_CC="${LD} -nostart -o"
44671 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
44672 ;;
44673
44674 *-*-irix* )
44675 if test "x$GCC" != "xyes"; then
44676 PIC_FLAG="-KPIC"
44677 fi
44678 ;;
44679
44680 *-*-cygwin* | *-*-mingw32* )
44681 PIC_FLAG=""
1e9e8aba
DE
44682 SHARED_LD_CC="\$(CC) -shared -o"
44683 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 44684 WINDOWS_IMPLIB=1
a848cd7e
SC
44685 ;;
44686
44687 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
44688 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44689 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 44690 PIC_FLAG=""
473276a9
VS
44691
44692D='$'
44693cat <<EOF >dllar.sh
44694#!/bin/sh
44695#
44696# dllar - a tool to build both a .dll and an .a file
44697# from a set of object (.o) files for EMX/OS2.
44698#
44699# Written by Andrew Zabolotny, bit@freya.etu.ru
44700# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
44701#
44702# This script will accept a set of files on the command line.
44703# All the public symbols from the .o files will be exported into
44704# a .DEF file, then linker will be run (through gcc) against them to
44705# build a shared library consisting of all given .o files. All libraries
44706# (.a) will be first decompressed into component .o files then act as
44707# described above. You can optionally give a description (-d "description")
44708# which will be put into .DLL. To see the list of accepted options (as well
44709# as command-line format) simply run this program without options. The .DLL
44710# is built to be imported by name (there is no guarantee that new versions
44711# of the library you build will have same ordinals for same symbols).
44712#
44713# dllar is free software; you can redistribute it and/or modify
44714# it under the terms of the GNU General Public License as published by
44715# the Free Software Foundation; either version 2, or (at your option)
44716# any later version.
44717#
44718# dllar is distributed in the hope that it will be useful,
44719# but WITHOUT ANY WARRANTY; without even the implied warranty of
44720# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44721# GNU General Public License for more details.
44722#
44723# You should have received a copy of the GNU General Public License
44724# along with dllar; see the file COPYING. If not, write to the Free
44725# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44726# 02111-1307, USA.
44727
44728# To successfuly run this program you will need:
44729# - Current drive should have LFN support (HPFS, ext2, network, etc)
44730# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44731# - gcc
44732# (used to build the .dll)
44733# - emxexp
44734# (used to create .def file from .o files)
44735# - emximp
44736# (used to create .a file from .def file)
44737# - GNU text utilites (cat, sort, uniq)
44738# used to process emxexp output
44739# - GNU file utilities (mv, rm)
44740# - GNU sed
44741# - lxlite (optional, see flag below)
44742# (used for general .dll cleanup)
44743#
44744
44745flag_USE_LXLITE=1;
44746
44747#
44748# helper functions
44749# basnam, variant of basename, which does _not_ remove the path, _iff_
44750# second argument (suffix to remove) is given
44751basnam(){
44752 case ${D}# in
44753 1)
1e9e8aba 44754 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
44755 ;;
44756 2)
44757 echo ${D}1 | sed 's/'${D}2'${D}//'
44758 ;;
44759 *)
44760 echo "error in basnam ${D}*"
44761 exit 8
44762 ;;
44763 esac
44764}
44765
44766# Cleanup temporary files and output
44767CleanUp() {
44768 cd ${D}curDir
44769 for i in ${D}inputFiles ; do
44770 case ${D}i in
44771 *!)
44772 rm -rf \`basnam ${D}i !\`
44773 ;;
44774 *)
44775 ;;
44776 esac
44777 done
44778
44779 # Kill result in case of failure as there is just to many stupid make/nmake
44780 # things out there which doesn't do this.
1e9e8aba 44781 if [ ${D}# -eq 0 ]; then
473276a9
VS
44782 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44783 fi
44784}
44785
44786# Print usage and exit script with rc=1.
44787PrintHelp() {
b1d22ded
DE
44788 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44789 echo ' [-name-mangler-script script.sh]'
44790 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44791 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
44792 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 44793 echo ' [*.o] [*.a]'
473276a9
VS
44794 echo '*> "output_file" should have no extension.'
44795 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
44796 echo ' The import library name is derived from this and is set to "name".a,'
44797 echo ' unless overridden by -import'
44798 echo '*> "importlib_name" should have no extension.'
44799 echo ' If it has the .o, or .a extension, it is automatically removed.'
44800 echo ' This name is used as the import library name and may be longer and'
44801 echo ' more descriptive than the DLL name which has to follow the old '
44802 echo ' 8.3 convention of FAT.'
b1d22ded
DE
44803 echo '*> "script.sh may be given to override the output_file name by a'
44804 echo ' different name. It is mainly useful if the regular make process'
44805 echo ' of some package does not take into account OS/2 restriction of'
44806 echo ' DLL name lengths. It takes the importlib name as input and is'
44807 echo ' supposed to procude a shorter name as output. The script should'
44808 echo ' expect to get importlib_name without extension and should produce'
44809 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
44810 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
44811 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44812 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
44813 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44814 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
44815 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44816 echo ' If the last character of a symbol is "*", all symbols beginning'
44817 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 44818 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 44819 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 44820 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 44821 echo ' C runtime DLLs.'
b1d22ded 44822 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
44823 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44824 echo ' unchanged to GCC at the end of command line.'
44825 echo '*> If you create a DLL from a library and you do not specify -o,'
44826 echo ' the basename for DLL and import library will be set to library name,'
44827 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
44828 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44829 echo ' library will be renamed into gcc_s.a.'
44830 echo '--------'
44831 echo 'Example:'
44832 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44833 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44834 CleanUp
44835 exit 1
44836}
44837
44838# Execute a command.
44839# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44840# @Uses Whatever CleanUp() uses.
44841doCommand() {
44842 echo "${D}*"
44843 eval ${D}*
44844 rcCmd=${D}?
44845
1e9e8aba 44846 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
44847 echo "command failed, exit code="${D}rcCmd
44848 CleanUp
44849 exit ${D}rcCmd
44850 fi
44851}
44852
44853# main routine
44854# setup globals
44855cmdLine=${D}*
44856outFile=""
44857outimpFile=""
44858inputFiles=""
b1d22ded 44859renameScript=""
473276a9
VS
44860description=""
44861CC=gcc.exe
44862CFLAGS="-s -Zcrtdll"
44863EXTRA_CFLAGS=""
44864EXPORT_BY_ORDINALS=0
44865exclude_symbols=""
44866library_flags=""
44867curDir=\`pwd\`
44868curDirS=curDir
44869case ${D}curDirS in
44870*/)
44871 ;;
44872*)
44873 curDirS=${D}{curDirS}"/"
44874 ;;
44875esac
44876# Parse commandline
44877libsToLink=0
b1d22ded 44878omfLinking=0
1e9e8aba 44879while [ ${D}1 ]; do
473276a9
VS
44880 case ${D}1 in
44881 -ord*)
44882 EXPORT_BY_ORDINALS=1;
44883 ;;
44884 -o*)
44885 shift
44886 outFile=${D}1
44887 ;;
44888 -i*)
44889 shift
44890 outimpFile=${D}1
44891 ;;
b1d22ded
DE
44892 -name-mangler-script)
44893 shift
44894 renameScript=${D}1
44895 ;;
473276a9
VS
44896 -d*)
44897 shift
44898 description=${D}1
44899 ;;
44900 -f*)
44901 shift
44902 CFLAGS=${D}1
44903 ;;
44904 -c*)
44905 shift
44906 CC=${D}1
44907 ;;
44908 -h*)
44909 PrintHelp
44910 ;;
44911 -ex*)
44912 shift
44913 exclude_symbols=${D}{exclude_symbols}${D}1" "
44914 ;;
44915 -libf*)
44916 shift
44917 library_flags=${D}{library_flags}${D}1" "
44918 ;;
44919 -nocrt*)
44920 CFLAGS="-s"
44921 ;;
44922 -nolxl*)
44923 flag_USE_LXLITE=0
44924 ;;
44925 -* | /*)
44926 case ${D}1 in
44927 -L* | -l*)
44928 libsToLink=1
44929 ;;
b1d22ded
DE
44930 -Zomf)
44931 omfLinking=1
44932 ;;
473276a9
VS
44933 *)
44934 ;;
44935 esac
44936 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44937 ;;
b1d22ded
DE
44938 *.dll)
44939 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44940 if [ ${D}omfLinking -eq 1 ]; then
44941 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44942 else
44943 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44944 fi
44945 ;;
473276a9
VS
44946 *)
44947 found=0;
1e9e8aba 44948 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44949 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44950 else
44951 for file in ${D}1 ; do
1e9e8aba 44952 if [ -f ${D}file ]; then
473276a9
VS
44953 inputFiles="${D}{inputFiles} ${D}file"
44954 found=1
44955 fi
44956 done
1e9e8aba 44957 if [ ${D}found -eq 0 ]; then
473276a9
VS
44958 echo "ERROR: No file(s) found: "${D}1
44959 exit 8
44960 fi
44961 fi
44962 ;;
44963 esac
44964 shift
44965done # iterate cmdline words
44966
44967#
1e9e8aba 44968if [ -z "${D}inputFiles" ]; then
473276a9
VS
44969 echo "dllar: no input files"
44970 PrintHelp
44971fi
44972
44973# Now extract all .o files from .a files
44974newInputFiles=""
44975for file in ${D}inputFiles ; do
44976 case ${D}file in
44977 *.a | *.lib)
44978 case ${D}file in
44979 *.a)
44980 suffix=".a"
44981 AR="ar"
44982 ;;
44983 *.lib)
44984 suffix=".lib"
44985 AR="emxomfar"
44986 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44987 ;;
44988 *)
44989 ;;
44990 esac
44991 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44992 mkdir ${D}dirname
1e9e8aba 44993 if [ ${D}? -ne 0 ]; then
473276a9
VS
44994 echo "Failed to create subdirectory ./${D}dirname"
44995 CleanUp
44996 exit 8;
44997 fi
44998 # Append '!' to indicate archive
44999 newInputFiles="${D}newInputFiles ${D}{dirname}!"
45000 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
45001 cd ${D}curDir
45002 found=0;
45003 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 45004 if [ -f ${D}subfile ]; then
473276a9 45005 found=1
1e9e8aba 45006 if [ -s ${D}subfile ]; then
473276a9
VS
45007 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
45008 newInputFiles="${D}newInputFiles ${D}subfile"
45009 fi
45010 fi
45011 done
1e9e8aba
DE
45012 if [ ${D}found -eq 0 ]; then
45013 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
45014 fi
45015 ;;
45016 *)
45017 newInputFiles="${D}{newInputFiles} ${D}file"
45018 ;;
45019 esac
45020done
45021inputFiles="${D}newInputFiles"
45022
45023# Output filename(s).
45024do_backup=0;
1e9e8aba 45025if [ -z ${D}outFile ]; then
473276a9
VS
45026 do_backup=1;
45027 set outFile ${D}inputFiles; outFile=${D}2
45028fi
45029
45030# If it is an archive, remove the '!' and the '_%' suffixes
45031case ${D}outFile in
45032*_%!)
45033 outFile=\`basnam ${D}outFile _%!\`
45034 ;;
45035*)
45036 ;;
45037esac
45038case ${D}outFile in
45039*.dll)
45040 outFile=\`basnam ${D}outFile .dll\`
45041 ;;
45042*.DLL)
45043 outFile=\`basnam ${D}outFile .DLL\`
45044 ;;
45045*.o)
45046 outFile=\`basnam ${D}outFile .o\`
45047 ;;
45048*.obj)
45049 outFile=\`basnam ${D}outFile .obj\`
45050 ;;
45051*.a)
45052 outFile=\`basnam ${D}outFile .a\`
45053 ;;
45054*.lib)
45055 outFile=\`basnam ${D}outFile .lib\`
45056 ;;
45057*)
45058 ;;
45059esac
45060case ${D}outimpFile in
45061*.a)
45062 outimpFile=\`basnam ${D}outimpFile .a\`
45063 ;;
45064*.lib)
45065 outimpFile=\`basnam ${D}outimpFile .lib\`
45066 ;;
45067*)
45068 ;;
45069esac
1e9e8aba 45070if [ -z ${D}outimpFile ]; then
473276a9
VS
45071 outimpFile=${D}outFile
45072fi
45073defFile="${D}{outFile}.def"
45074arcFile="${D}{outimpFile}.a"
45075arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
45076
45077#create ${D}dllFile as something matching 8.3 restrictions,
45078if [ -z ${D}renameScript ] ; then
45079 dllFile="${D}outFile"
45080else
45081 dllFile=\`${D}renameScript ${D}outimpFile\`
45082fi
473276a9 45083
1e9e8aba
DE
45084if [ ${D}do_backup -ne 0 ] ; then
45085 if [ -f ${D}arcFile ] ; then
473276a9
VS
45086 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
45087 fi
1e9e8aba 45088 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
45089 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
45090 fi
45091fi
45092
45093# Extract public symbols from all the object files.
45094tmpdefFile=${D}{defFile}_%
45095rm -f ${D}tmpdefFile
45096for file in ${D}inputFiles ; do
45097 case ${D}file in
45098 *!)
45099 ;;
45100 *)
45101 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
45102 ;;
45103 esac
45104done
45105
45106# Create the def file.
45107rm -f ${D}defFile
45108echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
45109dllFile="${D}{dllFile}.dll"
45110if [ ! -z ${D}description ]; then
1e9e8aba 45111 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
45112fi
45113echo "EXPORTS" >> ${D}defFile
45114
45115doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
45116grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
45117
45118# Checks if the export is ok or not.
45119for word in ${D}exclude_symbols; do
45120 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
45121 mv ${D}{tmpdefFile}% ${D}tmpdefFile
45122done
45123
45124
1e9e8aba
DE
45125if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
45126 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
45127 sed '
45128 N
45129 : loop
1e9e8aba 45130 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
45131 t loop
45132 ' > ${D}{tmpdefFile}%
45133 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
45134else
45135 rm -f ${D}{tmpdefFile}%
45136fi
45137cat ${D}tmpdefFile >> ${D}defFile
45138rm -f ${D}tmpdefFile
45139
45140# Do linking, create implib, and apply lxlite.
45141gccCmdl="";
45142for file in ${D}inputFiles ; do
45143 case ${D}file in
45144 *!)
45145 ;;
45146 *)
45147 gccCmdl="${D}gccCmdl ${D}file"
45148 ;;
45149 esac
45150done
45151doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
45152touch "${D}{outFile}.dll"
45153
45154doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 45155if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 45156 add_flags="";
1e9e8aba 45157 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
45158 add_flags="-ynd"
45159 fi
45160 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
45161fi
45162doCommand "emxomf -s -l ${D}arcFile"
45163
45164# Successful exit.
45165CleanUp 1
45166exit 0
45167EOF
45168
45169 chmod +x dllar.sh
a848cd7e
SC
45170 ;;
45171
1e9e8aba 45172 powerpc-apple-macos* | \
0ad5d837 45173 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
45174 *-*-sunos4* | \
45175 *-*-osf* | \
45176 *-*-dgux5* | \
47a7e797
MW
45177 *-*-sysv5* | \
45178 *-pc-msdosdjgpp )
a848cd7e
SC
45179 ;;
45180
45181 *)
45182 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
45183echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
45184 { (exit 1); exit 1; }; }
45185 esac
45186
2057db16
VS
45187 if test "x$PIC_FLAG" != "x" ; then
45188 PIC_FLAG="$PIC_FLAG -DPIC"
45189 fi
45190
a848cd7e
SC
45191 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
45192 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
45193 fi
45194 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
45195 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
45196 fi
45197
45198
45199
45200
45201
45202
45203
45204
810b94f0 45205
a848cd7e
SC
45206 USE_SOVERSION=0
45207 USE_SOVERLINUX=0
45208 USE_SOVERSOLARIS=0
810b94f0 45209 USE_SOVERCYGWIN=0
a848cd7e
SC
45210 USE_SOSYMLINKS=0
45211 USE_MACVERSION=0
45212 SONAME_FLAG=
45213
45214 case "${BAKEFILE_HOST}" in
0ad5d837 45215 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
45216 SONAME_FLAG="-Wl,-soname,"
45217 USE_SOVERSION=1
45218 USE_SOVERLINUX=1
45219 USE_SOSYMLINKS=1
45220 ;;
45221
a848cd7e
SC
45222 *-*-solaris2* )
45223 SONAME_FLAG="-h "
45224 USE_SOVERSION=1
45225 USE_SOVERSOLARIS=1
45226 USE_SOSYMLINKS=1
45227 ;;
45228
45229 *-*-darwin* )
45230 USE_MACVERSION=1
45231 USE_SOVERSION=1
45232 USE_SOSYMLINKS=1
45233 ;;
810b94f0
MW
45234
45235 *-*-cygwin* )
45236 USE_SOVERSION=1
45237 USE_SOVERCYGWIN=1
45238 ;;
a848cd7e
SC
45239 esac
45240
45241
45242
45243
45244
45245
45246
45247
45248
810b94f0 45249
a848cd7e
SC
45250 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
45251echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 45252 DEPS_TRACKING=1
a848cd7e
SC
45253
45254 if test "x$GCC" = "xyes"; then
45255 DEPSMODE=gcc
a848cd7e 45256 case "${BAKEFILE_HOST}" in
47bd5406 45257 *-*-darwin* )
0ad5d837 45258 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
45259 ;;
45260 * )
0ad5d837 45261 DEPSFLAG="-MMD"
a848cd7e
SC
45262 ;;
45263 esac
45264 echo "$as_me:$LINENO: result: gcc" >&5
45265echo "${ECHO_T}gcc" >&6
b1d22ded 45266 elif test "x$MWCC" = "xyes"; then
81f90336 45267 DEPSMODE=mwcc
0ad5d837 45268 DEPSFLAG="-MM"
b1d22ded
DE
45269 echo "$as_me:$LINENO: result: mwcc" >&5
45270echo "${ECHO_T}mwcc" >&6
a9e5b1f0 45271 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
45272 DEPSMODE=unixcc
45273 DEPSFLAG="-xM1"
45274 echo "$as_me:$LINENO: result: Sun cc" >&5
45275echo "${ECHO_T}Sun cc" >&6
45276 elif test "x$SGICC" = "xyes"; then
45277 DEPSMODE=unixcc
45278 DEPSFLAG="-M"
45279 echo "$as_me:$LINENO: result: SGI cc" >&5
45280echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
45281 elif test "x$HPCC" = "xyes"; then
45282 DEPSMODE=unixcc
45283 DEPSFLAG="+make"
45284 echo "$as_me:$LINENO: result: HP cc" >&5
45285echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
45286 elif test "x$COMPAQCC" = "xyes"; then
45287 DEPSMODE=gcc
45288 DEPSFLAG="-MD"
45289 echo "$as_me:$LINENO: result: Compaq cc" >&5
45290echo "${ECHO_T}Compaq cc" >&6
a848cd7e 45291 else
3006edc0 45292 DEPS_TRACKING=0
a848cd7e
SC
45293 echo "$as_me:$LINENO: result: none" >&5
45294echo "${ECHO_T}none" >&6
45295 fi
45296
45297 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
45298
45299D='$'
45300cat <<EOF >bk-deps
a848cd7e
SC
45301#!/bin/sh
45302
45303# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45304# script. It is used to track C/C++ files dependencies in portable way.
45305#
45306# Permission is given to use this file in any way.
45307
473276a9 45308DEPSMODE=${DEPSMODE}
a848cd7e 45309DEPSDIR=.deps
0ad5d837 45310DEPSFLAG="${DEPSFLAG}"
a848cd7e 45311
473276a9 45312mkdir -p ${D}DEPSDIR
a848cd7e 45313
473276a9 45314if test ${D}DEPSMODE = gcc ; then
0ad5d837 45315 ${D}* ${D}{DEPSFLAG}
473276a9
VS
45316 status=${D}?
45317 if test ${D}{status} != 0 ; then
45318 exit ${D}{status}
a848cd7e
SC
45319 fi
45320 # move created file to the location we want it in:
473276a9
VS
45321 while test ${D}# -gt 0; do
45322 case "${D}1" in
a848cd7e
SC
45323 -o )
45324 shift
473276a9 45325 objfile=${D}1
a848cd7e
SC
45326 ;;
45327 -* )
45328 ;;
45329 * )
473276a9 45330 srcfile=${D}1
a848cd7e
SC
45331 ;;
45332 esac
45333 shift
45334 done
1e9e8aba
DE
45335 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
45336 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
45337 if test -f ${D}depfile ; then
45338 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45339 rm -f ${D}depfile
a848cd7e 45340 else
a1aa0349 45341 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 45342 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
45343 if test ! -f ${D}depfile ; then
45344 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
45345 depfile="${D}objfile.d"
45346 fi
473276a9
VS
45347 if test -f ${D}depfile ; then
45348 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45349 rm -f ${D}depfile
a848cd7e
SC
45350 fi
45351 fi
45352 exit 0
81f90336 45353elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 45354 ${D}* || exit ${D}?
81f90336
MW
45355 # Run mwcc again with -MM and redirect into the dep file we want
45356 # NOTE: We can't use shift here because we need ${D}* to be valid
45357 prevarg=
45358 for arg in ${D}* ; do
45359 if test "${D}prevarg" = "-o"; then
45360 objfile=${D}arg
45361 else
45362 case "${D}arg" in
45363 -* )
45364 ;;
45365 * )
45366 srcfile=${D}arg
45367 ;;
45368 esac
45369 fi
45370 prevarg="${D}arg"
45371 done
0ad5d837 45372 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 45373 exit 0
0ad5d837 45374elif test ${D}DEPSMODE = unixcc; then
f6b50c59 45375 ${D}* || exit ${D}?
a9e5b1f0
MW
45376 # Run compiler again with deps flag and redirect into the dep file.
45377 # It doesn't work if the '-o FILE' option is used, but without it the
45378 # dependency file will contain the wrong name for the object. So it is
45379 # removed from the command line, and the dep file is fixed with sed.
45380 cmd=""
45381 while test ${D}# -gt 0; do
45382 case "${D}1" in
45383 -o )
45384 shift
45385 objfile=${D}1
45386 ;;
45387 * )
45388 eval arg${D}#=\\${D}1
45389 cmd="${D}cmd \\${D}arg${D}#"
45390 ;;
45391 esac
45392 shift
45393 done
0ad5d837 45394 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 45395 exit 0
a848cd7e 45396else
473276a9
VS
45397 ${D}*
45398 exit ${D}?
a848cd7e
SC
45399fi
45400EOF
473276a9 45401
a848cd7e
SC
45402 chmod +x bk-deps
45403 fi
45404
45405
45406
45407
45408 RESCOMP=
45409 SETFILE=
45410
45411 case ${BAKEFILE_HOST} in
45412 *-*-cygwin* | *-*-mingw32* )
45413 if test "$build" != "$host" ; then
45414 RESCOMP=$host_alias-windres
45415 else
45416 # Extract the first word of "windres", so it can be a program name with args.
45417set dummy windres; ac_word=$2
45418echo "$as_me:$LINENO: checking for $ac_word" >&5
45419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45420if test "${ac_cv_prog_RESCOMP+set}" = set; then
45421 echo $ECHO_N "(cached) $ECHO_C" >&6
45422else
45423 if test -n "$RESCOMP"; then
45424 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45425else
45426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45427for as_dir in $PATH
45428do
45429 IFS=$as_save_IFS
45430 test -z "$as_dir" && as_dir=.
45431 for ac_exec_ext in '' $ac_executable_extensions; do
45432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45433 ac_cv_prog_RESCOMP="windres"
45434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45435 break 2
45436 fi
45437done
45438done
45439
45440 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
45441fi
45442fi
45443RESCOMP=$ac_cv_prog_RESCOMP
45444if test -n "$RESCOMP"; then
45445 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45446echo "${ECHO_T}$RESCOMP" >&6
45447else
45448 echo "$as_me:$LINENO: result: no" >&5
45449echo "${ECHO_T}no" >&6
45450fi
45451
45452 fi
45453 ;;
45454
1e9e8aba 45455 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
45456 # Extract the first word of "Rez", so it can be a program name with args.
45457set dummy Rez; ac_word=$2
45458echo "$as_me:$LINENO: checking for $ac_word" >&5
45459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45460if test "${ac_cv_prog_RESCOMP+set}" = set; then
45461 echo $ECHO_N "(cached) $ECHO_C" >&6
45462else
45463 if test -n "$RESCOMP"; then
45464 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45465else
45466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45467for as_dir in $PATH
45468do
45469 IFS=$as_save_IFS
45470 test -z "$as_dir" && as_dir=.
45471 for ac_exec_ext in '' $ac_executable_extensions; do
45472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45473 ac_cv_prog_RESCOMP="Rez"
45474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45475 break 2
45476 fi
45477done
45478done
45479
45480 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
45481fi
45482fi
45483RESCOMP=$ac_cv_prog_RESCOMP
45484if test -n "$RESCOMP"; then
45485 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45486echo "${ECHO_T}$RESCOMP" >&6
45487else
45488 echo "$as_me:$LINENO: result: no" >&5
45489echo "${ECHO_T}no" >&6
45490fi
45491
45492 # Extract the first word of "SetFile", so it can be a program name with args.
45493set dummy SetFile; ac_word=$2
45494echo "$as_me:$LINENO: checking for $ac_word" >&5
45495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45496if test "${ac_cv_prog_SETFILE+set}" = set; then
45497 echo $ECHO_N "(cached) $ECHO_C" >&6
45498else
45499 if test -n "$SETFILE"; then
45500 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
45501else
45502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45503for as_dir in $PATH
45504do
45505 IFS=$as_save_IFS
45506 test -z "$as_dir" && as_dir=.
45507 for ac_exec_ext in '' $ac_executable_extensions; do
45508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45509 ac_cv_prog_SETFILE="SetFile"
45510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45511 break 2
45512 fi
45513done
45514done
45515
45516 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
45517fi
45518fi
45519SETFILE=$ac_cv_prog_SETFILE
45520if test -n "$SETFILE"; then
45521 echo "$as_me:$LINENO: result: $SETFILE" >&5
45522echo "${ECHO_T}$SETFILE" >&6
45523else
45524 echo "$as_me:$LINENO: result: no" >&5
45525echo "${ECHO_T}no" >&6
45526fi
45527
45528 ;;
45529 esac
45530
45531
45532
45533
45534
c9469659 45535 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 45536
dcc1b6ad 45537
c9469659 45538BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 45539
646b6ec1 45540
74b84332 45541
a848cd7e
SC
45542 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
45543if test "${enable_precomp_headers+set}" = set; then
45544 enableval="$enable_precomp_headers"
45545 bk_use_pch="$enableval"
45546fi;
45547
45548 GCC_PCH=0
45549
45550 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
45551 if test "x$GCC" = "xyes"; then
45552 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
45553echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
45554 cat >conftest.$ac_ext <<_ACEOF
45555/* confdefs.h. */
45556_ACEOF
45557cat confdefs.h >>conftest.$ac_ext
45558cat >>conftest.$ac_ext <<_ACEOF
45559/* end confdefs.h. */
45560
45561int
45562main ()
45563{
45564
45565 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
45566 #error "no pch support"
45567 #endif
45568 #if (__GNUC__ < 3)
45569 #error "no pch support"
45570 #endif
45571 #if (__GNUC__ == 3) && \
45572 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
45573 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
45574 #error "no pch support"
45575 #endif
45576
45577 ;
45578 return 0;
45579}
45580_ACEOF
45581rm -f conftest.$ac_objext
45582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45583 (eval $ac_compile) 2>conftest.er1
a848cd7e 45584 ac_status=$?
ac1cb8d3
VS
45585 grep -v '^ *+' conftest.er1 >conftest.err
45586 rm -f conftest.er1
45587 cat conftest.err >&5
a848cd7e
SC
45588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45589 (exit $ac_status); } &&
dee1a63f
MB
45590 { ac_try='test -z "$ac_c_werror_flag"
45591 || test ! -s conftest.err'
ac1cb8d3
VS
45592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45593 (eval $ac_try) 2>&5
45594 ac_status=$?
45595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45596 (exit $ac_status); }; } &&
45597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45599 (eval $ac_try) 2>&5
45600 ac_status=$?
45601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45602 (exit $ac_status); }; }; then
45603
45604 echo "$as_me:$LINENO: result: yes" >&5
45605echo "${ECHO_T}yes" >&6
a848cd7e
SC
45606 GCC_PCH=1
45607
45608else
45609 echo "$as_me: failed program was:" >&5
45610sed 's/^/| /' conftest.$ac_ext >&5
45611
45612
45613 echo "$as_me:$LINENO: result: no" >&5
45614echo "${ECHO_T}no" >&6
45615
45616fi
ac1cb8d3 45617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45618 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
45619
45620D='$'
45621cat <<EOF >bk-make-pch
a848cd7e
SC
45622#!/bin/sh
45623
45624# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45625# script. It is used to generated precompiled headers.
45626#
45627# Permission is given to use this file in any way.
45628
1e9e8aba
DE
45629outfile="${D}{1}"
45630header="${D}{2}"
a848cd7e
SC
45631shift
45632shift
45633
45634compiler=
45635headerfile=
1e9e8aba
DE
45636while test ${D}{#} -gt 0; do
45637 case "${D}{1}" in
a848cd7e 45638 -I* )
1e9e8aba
DE
45639 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
45640 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
45641 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
45642 fi
45643 ;;
45644 esac
1e9e8aba 45645 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
45646 shift
45647done
45648
1e9e8aba
DE
45649if test "x${D}{headerfile}" = "x" ; then
45650 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 45651else
1e9e8aba
DE
45652 if test -f ${D}{outfile} ; then
45653 rm -f ${D}{outfile}
a848cd7e 45654 else
1e9e8aba 45655 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 45656 fi
1e9e8aba 45657 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
45658 mkdir -p .deps
45659 # can do this because gcc is >= 3.4:
1e9e8aba
DE
45660 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
45661 exit ${D}{?}
a848cd7e
SC
45662fi
45663EOF
1e9e8aba 45664
a848cd7e
SC
45665 chmod +x bk-make-pch
45666 fi
45667 fi
45668 fi
45669
45670
45671
a848cd7e
SC
45672 COND_BUILD_DEBUG="#"
45673 if test "x$BUILD" = "xdebug" ; then
45674 COND_BUILD_DEBUG=""
45675 fi
45676
45677 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
45678 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
45679 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
45680 fi
45681
45682 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
45683 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
45684 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
45685 fi
45686
45687 COND_BUILD_DEBUG_UNICODE_0="#"
45688 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
45689 COND_BUILD_DEBUG_UNICODE_0=""
45690 fi
45691
45692 COND_BUILD_DEBUG_UNICODE_1="#"
45693 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
45694 COND_BUILD_DEBUG_UNICODE_1=""
45695 fi
45696
45697 COND_BUILD_RELEASE="#"
45698 if test "x$BUILD" = "xrelease" ; then
45699 COND_BUILD_RELEASE=""
45700 fi
45701
45702 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
45703 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
45704 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
45705 fi
45706
45707 COND_BUILD_RELEASE_UNICODE_0="#"
45708 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
45709 COND_BUILD_RELEASE_UNICODE_0=""
45710 fi
45711
45712 COND_BUILD_RELEASE_UNICODE_1="#"
45713 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
45714 COND_BUILD_RELEASE_UNICODE_1=""
45715 fi
45716
45717 COND_DEBUG_FLAG_1="#"
45718 if test "x$DEBUG_FLAG" = "x1" ; then
45719 COND_DEBUG_FLAG_1=""
45720 fi
45721
45722 COND_DEBUG_INFO_0="#"
45723 if test "x$DEBUG_INFO" = "x0" ; then
45724 COND_DEBUG_INFO_0=""
45725 fi
45726
45727 COND_DEBUG_INFO_1="#"
45728 if test "x$DEBUG_INFO" = "x1" ; then
45729 COND_DEBUG_INFO_1=""
45730 fi
45731
45732 COND_DEPS_TRACKING_0="#"
45733 if test "x$DEPS_TRACKING" = "x0" ; then
45734 COND_DEPS_TRACKING_0=""
45735 fi
45736
45737 COND_DEPS_TRACKING_1="#"
45738 if test "x$DEPS_TRACKING" = "x1" ; then
45739 COND_DEPS_TRACKING_1=""
45740 fi
45741
45742 COND_GCC_PCH_1="#"
45743 if test "x$GCC_PCH" = "x1" ; then
45744 COND_GCC_PCH_1=""
45745 fi
45746
45747 COND_MONOLITHIC_0="#"
45748 if test "x$MONOLITHIC" = "x0" ; then
45749 COND_MONOLITHIC_0=""
45750 fi
45751
45752 COND_MONOLITHIC_0_SHARED_0="#"
45753 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45754 COND_MONOLITHIC_0_SHARED_0=""
45755 fi
45756
45757 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45758 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45759 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45760 fi
45761
90970d69
DE
45762 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45763 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45764 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45765 fi
45766
a848cd7e
SC
45767 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45768 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45769 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45770 fi
45771
6671c68b
VZ
45772 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45773 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45774 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45775 fi
45776
a848cd7e
SC
45777 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45778 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45779 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45780 fi
45781
ceec2216
RL
45782 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45783 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45784 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45785 fi
45786
a848cd7e
SC
45787 COND_MONOLITHIC_0_SHARED_1="#"
45788 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45789 COND_MONOLITHIC_0_SHARED_1=""
45790 fi
45791
45792 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45793 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45794 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45795 fi
45796
90970d69
DE
45797 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45798 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45799 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45800 fi
45801
a848cd7e
SC
45802 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45803 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45804 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45805 fi
45806
6671c68b
VZ
45807 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45808 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45809 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45810 fi
45811
a848cd7e
SC
45812 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45813 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45814 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45815 fi
45816
ceec2216
RL
45817 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45818 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45819 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45820 fi
45821
a848cd7e
SC
45822 COND_MONOLITHIC_0_USE_ODBC_1="#"
45823 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45824 COND_MONOLITHIC_0_USE_ODBC_1=""
45825 fi
45826
45827 COND_MONOLITHIC_1="#"
45828 if test "x$MONOLITHIC" = "x1" ; then
45829 COND_MONOLITHIC_1=""
45830 fi
45831
45832 COND_MONOLITHIC_1_SHARED_0="#"
45833 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45834 COND_MONOLITHIC_1_SHARED_0=""
45835 fi
45836
45837 COND_MONOLITHIC_1_SHARED_1="#"
45838 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45839 COND_MONOLITHIC_1_SHARED_1=""
45840 fi
45841
45842 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45843 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45844 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45845 fi
45846
45847 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45848 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45849 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45850 fi
45851
eb730a0c
JS
45852 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45853 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45854 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45855 fi
45856
a848cd7e
SC
45857 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45858 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45859 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45860 fi
45861
45862 COND_PLATFORM_MACOSX_1="#"
45863 if test "x$PLATFORM_MACOSX" = "x1" ; then
45864 COND_PLATFORM_MACOSX_1=""
45865 fi
45866
a30f955f
VS
45867 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45868 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45869 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45870 fi
45871
a848cd7e
SC
45872 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45873 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45874 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45875 fi
45876
45877 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45878 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45879 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45880 fi
45881
45882 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45883 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45884 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45885 fi
45886
fc480dc1
DE
45887 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45888 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45889 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45890 fi
45891
1e9e8aba
DE
45892 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45893 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45894 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45895 fi
45896
ebee3cd0
VS
45897 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45898 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45899 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45900 fi
45901
45902 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45903 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45904 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45905 fi
45906
a848cd7e
SC
45907 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45908 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45909 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45910 fi
45911
45912 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45913 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45914 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45915 fi
45916
b48a2016
DE
45917 COND_PLATFORM_MACOS_1="#"
45918 if test "x$PLATFORM_MACOS" = "x1" ; then
45919 COND_PLATFORM_MACOS_1=""
45920 fi
45921
083508af
MW
45922 COND_PLATFORM_MAC_1="#"
45923 if test "x$PLATFORM_MAC" = "x1" ; then
45924 COND_PLATFORM_MAC_1=""
45925 fi
45926
83d8eb47
MW
45927 COND_PLATFORM_MSDOS_1="#"
45928 if test "x$PLATFORM_MSDOS" = "x1" ; then
45929 COND_PLATFORM_MSDOS_1=""
45930 fi
45931
a848cd7e
SC
45932 COND_PLATFORM_OS2_1="#"
45933 if test "x$PLATFORM_OS2" = "x1" ; then
45934 COND_PLATFORM_OS2_1=""
45935 fi
45936
45937 COND_PLATFORM_UNIX_0="#"
45938 if test "x$PLATFORM_UNIX" = "x0" ; then
45939 COND_PLATFORM_UNIX_0=""
45940 fi
45941
45942 COND_PLATFORM_UNIX_1="#"
45943 if test "x$PLATFORM_UNIX" = "x1" ; then
45944 COND_PLATFORM_UNIX_1=""
45945 fi
45946
45947 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45948 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45949 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45950 fi
45951
45952 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45953 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45954 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45955 fi
45956
45957 COND_PLATFORM_WIN32_0="#"
45958 if test "x$PLATFORM_WIN32" = "x0" ; then
45959 COND_PLATFORM_WIN32_0=""
45960 fi
45961
45962 COND_PLATFORM_WIN32_1="#"
45963 if test "x$PLATFORM_WIN32" = "x1" ; then
45964 COND_PLATFORM_WIN32_1=""
45965 fi
45966
45967 COND_SHARED_0="#"
45968 if test "x$SHARED" = "x0" ; then
45969 COND_SHARED_0=""
45970 fi
45971
083508af
MW
45972 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45973 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45974 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45975 fi
45976
45977 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45978 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45979 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45980 fi
45981
45982 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45983 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45984 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45985 fi
45986
a848cd7e
SC
45987 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45988 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45989 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45990 fi
45991
45992 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45993 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45994 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45995 fi
45996
45997 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45998 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45999 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46000 fi
46001
46002 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46003 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46004 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46005 fi
46006
083508af
MW
46007 COND_SHARED_0_USE_XRC_1="#"
46008 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
46009 COND_SHARED_0_USE_XRC_1=""
46010 fi
46011
a848cd7e
SC
46012 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
46013 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
46014 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
46015 fi
46016
46017 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
46018 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
46019 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
46020 fi
46021
46022 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
46023 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
46024 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
46025 fi
46026
46027 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
46028 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
46029 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
46030 fi
46031
46032 COND_SHARED_1="#"
46033 if test "x$SHARED" = "x1" ; then
46034 COND_SHARED_1=""
46035 fi
46036
46037 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
46038 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
46039 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
46040 fi
46041
083508af
MW
46042 COND_SHARED_1_USE_XRC_1="#"
46043 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
46044 COND_SHARED_1_USE_XRC_1=""
46045 fi
46046
a30f955f
VS
46047 COND_TOOLKIT_="#"
46048 if test "x$TOOLKIT" = "x" ; then
46049 COND_TOOLKIT_=""
46050 fi
46051
a848cd7e
SC
46052 COND_TOOLKIT_COCOA="#"
46053 if test "x$TOOLKIT" = "xCOCOA" ; then
46054 COND_TOOLKIT_COCOA=""
46055 fi
46056
a49baeab
DE
46057 COND_TOOLKIT_COCOA_USE_GUI_1="#"
46058 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
46059 COND_TOOLKIT_COCOA_USE_GUI_1=""
46060 fi
46061
a848cd7e
SC
46062 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
46063 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46064 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
46065 fi
46066
46067 COND_TOOLKIT_GTK="#"
46068 if test "x$TOOLKIT" = "xGTK" ; then
46069 COND_TOOLKIT_GTK=""
46070 fi
46071
46072 COND_TOOLKIT_GTK_USE_GUI_1="#"
46073 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
46074 COND_TOOLKIT_GTK_USE_GUI_1=""
46075 fi
46076
46077 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
46078 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46079 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
46080 fi
46081
46082 COND_TOOLKIT_MAC="#"
46083 if test "x$TOOLKIT" = "xMAC" ; then
46084 COND_TOOLKIT_MAC=""
46085 fi
46086
46087 COND_TOOLKIT_MAC_USE_GUI_1="#"
46088 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
46089 COND_TOOLKIT_MAC_USE_GUI_1=""
46090 fi
46091
46092 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
46093 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46094 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
46095 fi
46096
46097 COND_TOOLKIT_MGL="#"
46098 if test "x$TOOLKIT" = "xMGL" ; then
46099 COND_TOOLKIT_MGL=""
46100 fi
46101
46102 COND_TOOLKIT_MGL_USE_GUI_1="#"
46103 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
46104 COND_TOOLKIT_MGL_USE_GUI_1=""
46105 fi
46106
46107 COND_TOOLKIT_MOTIF="#"
46108 if test "x$TOOLKIT" = "xMOTIF" ; then
46109 COND_TOOLKIT_MOTIF=""
46110 fi
46111
46112 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
46113 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
46114 COND_TOOLKIT_MOTIF_USE_GUI_1=""
46115 fi
46116
46117 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
46118 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46119 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
46120 fi
46121
46122 COND_TOOLKIT_MSW="#"
46123 if test "x$TOOLKIT" = "xMSW" ; then
46124 COND_TOOLKIT_MSW=""
46125 fi
46126
46127 COND_TOOLKIT_MSW_USE_GUI_1="#"
46128 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
46129 COND_TOOLKIT_MSW_USE_GUI_1=""
46130 fi
46131
46132 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
46133 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46134 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
46135 fi
46136
0ee4059d
DE
46137 COND_TOOLKIT_MSW_WXUNIV_0="#"
46138 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
46139 COND_TOOLKIT_MSW_WXUNIV_0=""
46140 fi
46141
a848cd7e
SC
46142 COND_TOOLKIT_PM="#"
46143 if test "x$TOOLKIT" = "xPM" ; then
46144 COND_TOOLKIT_PM=""
46145 fi
46146
46147 COND_TOOLKIT_PM_USE_GUI_1="#"
46148 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
46149 COND_TOOLKIT_PM_USE_GUI_1=""
46150 fi
46151
46152 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
46153 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46154 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
46155 fi
46156
3fd9c298
DE
46157 COND_TOOLKIT_WINCE="#"
46158 if test "x$TOOLKIT" = "xWINCE" ; then
46159 COND_TOOLKIT_WINCE=""
46160 fi
46161
46162 COND_TOOLKIT_WINCE_USE_GUI_1="#"
46163 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
46164 COND_TOOLKIT_WINCE_USE_GUI_1=""
46165 fi
46166
46167 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
46168 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46169 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
46170 fi
46171
0ee4059d
DE
46172 COND_TOOLKIT_WINCE_WXUNIV_0="#"
46173 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
46174 COND_TOOLKIT_WINCE_WXUNIV_0=""
46175 fi
46176
a848cd7e
SC
46177 COND_TOOLKIT_X11="#"
46178 if test "x$TOOLKIT" = "xX11" ; then
46179 COND_TOOLKIT_X11=""
46180 fi
46181
46182 COND_TOOLKIT_X11_USE_GUI_1="#"
46183 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
46184 COND_TOOLKIT_X11_USE_GUI_1=""
46185 fi
46186
46187 COND_UNICODE_1="#"
46188 if test "x$UNICODE" = "x1" ; then
46189 COND_UNICODE_1=""
46190 fi
46191
46192 COND_USE_EXCEPTIONS_0="#"
46193 if test "x$USE_EXCEPTIONS" = "x0" ; then
46194 COND_USE_EXCEPTIONS_0=""
46195 fi
46196
46197 COND_USE_EXCEPTIONS_1="#"
46198 if test "x$USE_EXCEPTIONS" = "x1" ; then
46199 COND_USE_EXCEPTIONS_1=""
46200 fi
46201
46202 COND_USE_GUI_0="#"
46203 if test "x$USE_GUI" = "x0" ; then
46204 COND_USE_GUI_0=""
46205 fi
46206
46207 COND_USE_GUI_1="#"
46208 if test "x$USE_GUI" = "x1" ; then
46209 COND_USE_GUI_1=""
46210 fi
46211
46212 COND_USE_GUI_1_WXUNIV_0="#"
46213 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46214 COND_USE_GUI_1_WXUNIV_0=""
46215 fi
46216
46217 COND_USE_GUI_1_WXUNIV_1="#"
46218 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
46219 COND_USE_GUI_1_WXUNIV_1=""
46220 fi
46221
46222 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
46223 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46224 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
46225 fi
46226
46227 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
46228 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46229 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46230 fi
46231
46232 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46233 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46234 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46235 fi
46236
083508af
MW
46237 COND_USE_ODBC_1="#"
46238 if test "x$USE_ODBC" = "x1" ; then
46239 COND_USE_ODBC_1=""
46240 fi
46241
46242 COND_USE_OPENGL_1="#"
46243 if test "x$USE_OPENGL" = "x1" ; then
46244 COND_USE_OPENGL_1=""
46245 fi
46246
a848cd7e
SC
46247 COND_USE_PLUGINS_0="#"
46248 if test "x$USE_PLUGINS" = "x0" ; then
46249 COND_USE_PLUGINS_0=""
46250 fi
46251
0b78747f
MW
46252 COND_USE_RTTI_0="#"
46253 if test "x$USE_RTTI" = "x0" ; then
46254 COND_USE_RTTI_0=""
46255 fi
46256
46257 COND_USE_RTTI_1="#"
46258 if test "x$USE_RTTI" = "x1" ; then
46259 COND_USE_RTTI_1=""
46260 fi
46261
a848cd7e
SC
46262 COND_USE_SOSYMLINKS_1="#"
46263 if test "x$USE_SOSYMLINKS" = "x1" ; then
46264 COND_USE_SOSYMLINKS_1=""
46265 fi
46266
eb730a0c
JS
46267 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
46268 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
46269 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
46270 fi
46271
a848cd7e
SC
46272 COND_USE_SOVERLINUX_1="#"
46273 if test "x$USE_SOVERLINUX" = "x1" ; then
46274 COND_USE_SOVERLINUX_1=""
46275 fi
46276
46277 COND_USE_SOVERSION_0="#"
46278 if test "x$USE_SOVERSION" = "x0" ; then
46279 COND_USE_SOVERSION_0=""
46280 fi
46281
46282 COND_USE_SOVERSOLARIS_1="#"
46283 if test "x$USE_SOVERSOLARIS" = "x1" ; then
46284 COND_USE_SOVERSOLARIS_1=""
46285 fi
46286
0b78747f
MW
46287 COND_USE_THREADS_0="#"
46288 if test "x$USE_THREADS" = "x0" ; then
46289 COND_USE_THREADS_0=""
46290 fi
46291
46292 COND_USE_THREADS_1="#"
46293 if test "x$USE_THREADS" = "x1" ; then
46294 COND_USE_THREADS_1=""
46295 fi
46296
a13a7f89
RL
46297 COND_USE_XRC_1="#"
46298 if test "x$USE_XRC" = "x1" ; then
46299 COND_USE_XRC_1=""
46300 fi
46301
eb730a0c
JS
46302 COND_WINDOWS_IMPLIB_1="#"
46303 if test "x$WINDOWS_IMPLIB" = "x1" ; then
46304 COND_WINDOWS_IMPLIB_1=""
46305 fi
46306
a848cd7e
SC
46307 COND_WITH_PLUGIN_SDL_1="#"
46308 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
46309 COND_WITH_PLUGIN_SDL_1=""
46310 fi
46311
1e6eb025
VZ
46312 COND_WXUNIV_0="#"
46313 if test "x$WXUNIV" = "x0" ; then
46314 COND_WXUNIV_0=""
46315 fi
46316
a848cd7e
SC
46317 COND_WXUNIV_1="#"
46318 if test "x$WXUNIV" = "x1" ; then
46319 COND_WXUNIV_1=""
46320 fi
46321
46322 COND_WXUSE_EXPAT_BUILTIN="#"
46323 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
46324 COND_WXUSE_EXPAT_BUILTIN=""
46325 fi
46326
46327 COND_WXUSE_LIBJPEG_BUILTIN="#"
46328 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46329 COND_WXUSE_LIBJPEG_BUILTIN=""
46330 fi
46331
46332 COND_WXUSE_LIBPNG_BUILTIN="#"
46333 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46334 COND_WXUSE_LIBPNG_BUILTIN=""
46335 fi
46336
46337 COND_WXUSE_LIBTIFF_BUILTIN="#"
46338 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46339 COND_WXUSE_LIBTIFF_BUILTIN=""
46340 fi
46341
46342 COND_WXUSE_ODBC_BUILTIN="#"
46343 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
46344 COND_WXUSE_ODBC_BUILTIN=""
46345 fi
46346
46347 COND_WXUSE_REGEX_BUILTIN="#"
46348 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
46349 COND_WXUSE_REGEX_BUILTIN=""
46350 fi
46351
46352 COND_WXUSE_ZLIB_BUILTIN="#"
46353 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
46354 COND_WXUSE_ZLIB_BUILTIN=""
46355 fi
46356
46357
46358
810b94f0
MW
46359 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
46360 { { 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
46361echo "$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;}
46362 { (exit 1); exit 1; }; }
46363 fi
46364
2057db16
VS
46365 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
46366 { { 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
46367echo "$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;}
46368 { (exit 1); exit 1; }; }
46369 fi
46370
a848cd7e 46371
ceec2216
RL
46372if test "$wxUSE_SHARED" = "yes"; then
46373
46374 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
46375 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
46376
5b674b9d
DE
46377 case "${host}" in
46378 *-pc-os2_emx | *-pc-os2-emx )
46379 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46380 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46381 cp -p ${srcdir}/src/os2/dllnames.sh .
46382 cp -p ${srcdir}/src/os2/dllar.sh .
46383 ;;
46384 esac
ceec2216
RL
46385else
46386
46387 EXE_LINKER="$CXX -o"
46388
46389fi
69120ee4
VZ
46390if test "$wxUSE_OMF" = "yes"; then
46391 case "${host}" in
46392 *-pc-os2_emx | *-pc-os2-emx )
46393 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
46394 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46395 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46396 ;;
46397 esac
46398fi
a848cd7e 46399
c08ebc62 46400if test $GCC_PCH = 1 ; then
254e8e29 46401 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 46402fi
a848cd7e 46403
2eef8513 46404CPPFLAGS="$CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
46405
46406SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
46407
46408
46409
46410
46411
46412
46413
46414
46415
46416
46417
46418
46419
46420
46421
46422
46423
46424
46425
46426
46427
46428
46429
46430
46431
46432
46433
46434
46435
46436
46437
46438
46439
46440
46441
46442
46443
46444
46445
46446
46447
46448
a848cd7e
SC
46449
46450
46451
46452
46453
46454
46455
46456
46457
46458
46459
46460
46461
46462
46463
46464
46465
46466
ddd14b14 46467
a848cd7e
SC
46468
46469
46470echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46471echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46472set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46473if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46474 echo $ECHO_N "(cached) $ECHO_C" >&6
46475else
46476 cat >conftest.make <<\_ACEOF
46477all:
46478 @echo 'ac_maketemp="$(MAKE)"'
46479_ACEOF
46480# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46481eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46482if test -n "$ac_maketemp"; then
46483 eval ac_cv_prog_make_${ac_make}_set=yes
46484else
46485 eval ac_cv_prog_make_${ac_make}_set=no
46486fi
46487rm -f conftest.make
46488fi
46489if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46490 echo "$as_me:$LINENO: result: yes" >&5
46491echo "${ECHO_T}yes" >&6
46492 SET_MAKE=
46493else
46494 echo "$as_me:$LINENO: result: no" >&5
46495echo "${ECHO_T}no" >&6
46496 SET_MAKE="MAKE=${MAKE-make}"
46497fi
46498
46499
a848cd7e 46500
ceec2216
RL
46501 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
46502
a848cd7e 46503
ceec2216 46504 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 46505
a848cd7e 46506
ceec2216 46507 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 46508
ceec2216
RL
46509
46510 ac_config_files="$ac_config_files version-script Makefile"
46511
46512
46513 ac_config_commands="$ac_config_commands wx-config
46514 "
a848cd7e
SC
46515
46516
9103d280 46517
1c14217d 46518if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
46519if test "$wxUSE_GUI" = "yes"; then
46520 SUBDIRS="samples demos utils contrib"
46521else SUBDIRS="samples utils"
46522fi
46523
46524
46525
46526# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
46527if test "${with_cppunit_prefix+set}" = set; then
46528 withval="$with_cppunit_prefix"
46529 cppunit_config_prefix="$withval"
46530else
46531 cppunit_config_prefix=""
46532fi;
46533
46534# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
46535if test "${with_cppunit_exec_prefix+set}" = set; then
46536 withval="$with_cppunit_exec_prefix"
46537 cppunit_config_exec_prefix="$withval"
46538else
46539 cppunit_config_exec_prefix=""
46540fi;
46541
46542 if test x$cppunit_config_exec_prefix != x ; then
46543 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
46544 if test x${CPPUNIT_CONFIG+set} != xset ; then
46545 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
46546 fi
46547 fi
46548 if test x$cppunit_config_prefix != x ; then
46549 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
46550 if test x${CPPUNIT_CONFIG+set} != xset ; then
46551 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
46552 fi
46553 fi
46554
46555 # Extract the first word of "cppunit-config", so it can be a program name with args.
46556set dummy cppunit-config; ac_word=$2
46557echo "$as_me:$LINENO: checking for $ac_word" >&5
46558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46559if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
46560 echo $ECHO_N "(cached) $ECHO_C" >&6
46561else
46562 case $CPPUNIT_CONFIG in
46563 [\\/]* | ?:[\\/]*)
46564 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
46565 ;;
46566 *)
46567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46568for as_dir in $PATH
46569do
46570 IFS=$as_save_IFS
46571 test -z "$as_dir" && as_dir=.
46572 for ac_exec_ext in '' $ac_executable_extensions; do
46573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46574 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46576 break 2
46577 fi
46578done
46579done
46580
46581 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
46582 ;;
46583esac
46584fi
46585CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
46586
46587if test -n "$CPPUNIT_CONFIG"; then
46588 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
46589echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
46590else
46591 echo "$as_me:$LINENO: result: no" >&5
46592echo "${ECHO_T}no" >&6
46593fi
46594
46595 cppunit_version_min=1.8.0
46596
46597 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
46598echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
46599 no_cppunit=""
46600 if test "$CPPUNIT_CONFIG" = "no" ; then
46601 no_cppunit=yes
46602 else
46603 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
46604 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
46605 cppunit_version=`$CPPUNIT_CONFIG --version`
46606
46607 cppunit_major_version=`echo $cppunit_version | \
46608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46609 cppunit_minor_version=`echo $cppunit_version | \
46610 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46611 cppunit_micro_version=`echo $cppunit_version | \
46612 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46613
46614 cppunit_major_min=`echo $cppunit_version_min | \
46615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46616 cppunit_minor_min=`echo $cppunit_version_min | \
46617 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46618 cppunit_micro_min=`echo $cppunit_version_min | \
46619 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46620
46621 cppunit_version_proper=`expr \
46622 $cppunit_major_version \> $cppunit_major_min \| \
46623 $cppunit_major_version \= $cppunit_major_min \& \
46624 $cppunit_minor_version \> $cppunit_minor_min \| \
46625 $cppunit_major_version \= $cppunit_major_min \& \
46626 $cppunit_minor_version \= $cppunit_minor_min \& \
46627 $cppunit_micro_version \>= $cppunit_micro_min `
46628
46629 if test "$cppunit_version_proper" = "1" ; then
46630 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
46631echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
46632 else
46633 echo "$as_me:$LINENO: result: no" >&5
46634echo "${ECHO_T}no" >&6
46635 no_cppunit=yes
46636 fi
46637 fi
46638
46639 if test "x$no_cppunit" = x ; then
c2218763 46640 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
46641 else
46642 CPPUNIT_CFLAGS=""
46643 CPPUNIT_LIBS=""
c2218763 46644 :
a848cd7e
SC
46645 fi
46646
46647
46648
46649
46650
46651for subdir in `echo $SUBDIRS`; do
46652 if test -d ${srcdir}/${subdir} ; then
46653 if test "$wxUSE_GUI" = "yes"; then
46654 if test ${subdir} = "samples"; then
46655 makefiles="samples/Makefile.in $makefiles"
46656 for sample in `echo $SAMPLES_SUBDIRS`; do
46657 if test -d $srcdir/samples/$sample; then
46658 makefiles="samples/$sample/Makefile.in $makefiles"
46659 fi
46660 done
9c112555
MW
46661 else
46662 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
46663 eval "disabled=\$$disabled_var"
46664 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
46665 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
46666 fi
46667 else if test ${subdir} = "samples"; then
46668 makefiles="samples/Makefile.in samples/console/Makefile.in"
46669 elif test ${subdir} = "utils"; then
6537ccf8
VS
46670 makefiles=""
46671 for util in HelpGen tex2rtf ; do
46672 if test -d $srcdir/utils/$util ; then
46673 makefiles="utils/$util/Makefile.in \
46674 utils/$util/src/Makefile.in \
46675 $makefiles"
46676 fi
46677 done
a848cd7e
SC
46678 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
46679 fi
46680 fi
46681
46682 for mkin in $makefiles ; do
46683 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
46684 ac_config_files="$ac_config_files $mk"
46685
46686 done
46687 fi
46688done
1c14217d 46689fi
a848cd7e
SC
46690cat >confcache <<\_ACEOF
46691# This file is a shell script that caches the results of configure
46692# tests run on this system so they can be shared between configure
46693# scripts and configure runs, see configure's option --config-cache.
46694# It is not useful on other systems. If it contains results you don't
46695# want to keep, you may remove or edit it.
46696#
46697# config.status only pays attention to the cache file if you give it
46698# the --recheck option to rerun configure.
46699#
46700# `ac_cv_env_foo' variables (set or unset) will be overridden when
46701# loading this file, other *unset* `ac_cv_foo' will be assigned the
46702# following values.
46703
46704_ACEOF
46705
46706# The following way of writing the cache mishandles newlines in values,
46707# but we know of no workaround that is simple, portable, and efficient.
46708# So, don't put newlines in cache variables' values.
46709# Ultrix sh set writes to stderr and can't be redirected directly,
46710# and sets the high bit in the cache file unless we assign to the vars.
46711{
46712 (set) 2>&1 |
46713 case `(ac_space=' '; set | grep ac_space) 2>&1` in
46714 *ac_space=\ *)
46715 # `set' does not quote correctly, so add quotes (double-quote
46716 # substitution turns \\\\ into \\, and sed turns \\ into \).
46717 sed -n \
ac1cb8d3
VS
46718 "s/'/'\\\\''/g;
46719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
46720 ;;
46721 *)
46722 # `set' quotes correctly as required by POSIX, so do not add quotes.
46723 sed -n \
ac1cb8d3 46724 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
46725 ;;
46726 esac;
46727} |
46728 sed '
46729 t clear
46730 : clear
46731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46732 t end
46733 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46734 : end' >>confcache
46735if diff $cache_file confcache >/dev/null 2>&1; then :; else
46736 if test -w $cache_file; then
46737 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46738 cat confcache >$cache_file
46739 else
46740 echo "not updating unwritable cache $cache_file"
46741 fi
46742fi
46743rm -f confcache
46744
46745test "x$prefix" = xNONE && prefix=$ac_default_prefix
46746# Let make expand exec_prefix.
46747test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46748
46749# VPATH may cause trouble with some makes, so we remove $(srcdir),
46750# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46751# trailing colons and then remove the whole line if VPATH becomes empty
46752# (actually we leave an empty line to preserve line numbers).
46753if test "x$srcdir" = x.; then
ac1cb8d3 46754 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
46755s/:*\$(srcdir):*/:/;
46756s/:*\${srcdir}:*/:/;
46757s/:*@srcdir@:*/:/;
ac1cb8d3 46758s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 46759s/:*$//;
ac1cb8d3 46760s/^[^=]*=[ ]*$//;
a848cd7e
SC
46761}'
46762fi
46763
46764DEFS=-DHAVE_CONFIG_H
46765
46766ac_libobjs=
46767ac_ltlibobjs=
46768for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46769 # 1. Remove the extension, and $U if already installed.
46770 ac_i=`echo "$ac_i" |
ac1cb8d3 46771 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
46772 # 2. Add them.
46773 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46774 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46775done
46776LIBOBJS=$ac_libobjs
46777
46778LTLIBOBJS=$ac_ltlibobjs
46779
46780
46781
46782: ${CONFIG_STATUS=./config.status}
46783ac_clean_files_save=$ac_clean_files
46784ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46785{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46786echo "$as_me: creating $CONFIG_STATUS" >&6;}
46787cat >$CONFIG_STATUS <<_ACEOF
46788#! $SHELL
46789# Generated by $as_me.
46790# Run this file to recreate the current configuration.
46791# Compiler output produced by configure, useful for debugging
46792# configure, is in config.log if it exists.
46793
46794debug=false
46795ac_cs_recheck=false
46796ac_cs_silent=false
46797SHELL=\${CONFIG_SHELL-$SHELL}
46798_ACEOF
46799
46800cat >>$CONFIG_STATUS <<\_ACEOF
46801## --------------------- ##
46802## M4sh Initialization. ##
46803## --------------------- ##
46804
46805# Be Bourne compatible
46806if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46807 emulate sh
46808 NULLCMD=:
46809 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46810 # is contrary to our usage. Disable this feature.
46811 alias -g '${1+"$@"}'='"$@"'
46812elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46813 set -o posix
46814fi
ac1cb8d3 46815DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
46816
46817# Support unset when possible.
ac1cb8d3 46818if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
46819 as_unset=unset
46820else
46821 as_unset=false
46822fi
46823
46824
46825# Work around bugs in pre-3.0 UWIN ksh.
46826$as_unset ENV MAIL MAILPATH
46827PS1='$ '
46828PS2='> '
46829PS4='+ '
46830
46831# NLS nuisances.
46832for as_var in \
46833 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46834 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46835 LC_TELEPHONE LC_TIME
46836do
ac1cb8d3 46837 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
46838 eval $as_var=C; export $as_var
46839 else
46840 $as_unset $as_var
46841 fi
46842done
46843
46844# Required to use basename.
46845if expr a : '\(a\)' >/dev/null 2>&1; then
46846 as_expr=expr
46847else
46848 as_expr=false
46849fi
46850
46851if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46852 as_basename=basename
46853else
46854 as_basename=false
46855fi
46856
46857
46858# Name of the executable.
46859as_me=`$as_basename "$0" ||
46860$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46861 X"$0" : 'X\(//\)$' \| \
46862 X"$0" : 'X\(/\)$' \| \
46863 . : '\(.\)' 2>/dev/null ||
46864echo X/"$0" |
46865 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46866 /^X\/\(\/\/\)$/{ s//\1/; q; }
46867 /^X\/\(\/\).*/{ s//\1/; q; }
46868 s/.*/./; q'`
46869
46870
46871# PATH needs CR, and LINENO needs CR and PATH.
46872# Avoid depending upon Character Ranges.
46873as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46874as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46875as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46876as_cr_digits='0123456789'
46877as_cr_alnum=$as_cr_Letters$as_cr_digits
46878
46879# The user is always right.
46880if test "${PATH_SEPARATOR+set}" != set; then
46881 echo "#! /bin/sh" >conf$$.sh
46882 echo "exit 0" >>conf$$.sh
46883 chmod +x conf$$.sh
46884 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46885 PATH_SEPARATOR=';'
46886 else
46887 PATH_SEPARATOR=:
46888 fi
46889 rm -f conf$$.sh
46890fi
46891
46892
46893 as_lineno_1=$LINENO
46894 as_lineno_2=$LINENO
46895 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46896 test "x$as_lineno_1" != "x$as_lineno_2" &&
46897 test "x$as_lineno_3" = "x$as_lineno_2" || {
46898 # Find who we are. Look in the path if we contain no path at all
46899 # relative or not.
46900 case $0 in
46901 *[\\/]* ) as_myself=$0 ;;
46902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46903for as_dir in $PATH
46904do
46905 IFS=$as_save_IFS
46906 test -z "$as_dir" && as_dir=.
46907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46908done
46909
46910 ;;
46911 esac
46912 # We did not find ourselves, most probably we were run as `sh COMMAND'
46913 # in which case we are not to be found in the path.
46914 if test "x$as_myself" = x; then
46915 as_myself=$0
46916 fi
46917 if test ! -f "$as_myself"; then
46918 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46919echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46920 { (exit 1); exit 1; }; }
46921 fi
46922 case $CONFIG_SHELL in
46923 '')
46924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46925for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46926do
46927 IFS=$as_save_IFS
46928 test -z "$as_dir" && as_dir=.
46929 for as_base in sh bash ksh sh5; do
46930 case $as_dir in
46931 /*)
46932 if ("$as_dir/$as_base" -c '
46933 as_lineno_1=$LINENO
46934 as_lineno_2=$LINENO
46935 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46936 test "x$as_lineno_1" != "x$as_lineno_2" &&
46937 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46938 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46939 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46940 CONFIG_SHELL=$as_dir/$as_base
46941 export CONFIG_SHELL
46942 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46943 fi;;
46944 esac
46945 done
46946done
46947;;
46948 esac
46949
46950 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46951 # uniformly replaced by the line number. The first 'sed' inserts a
46952 # line-number line before each line; the second 'sed' does the real
46953 # work. The second script uses 'N' to pair each line-number line
46954 # with the numbered line, and appends trailing '-' during
46955 # substitution so that $LINENO is not a special case at line end.
46956 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46957 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46958 sed '=' <$as_myself |
46959 sed '
46960 N
46961 s,$,-,
46962 : loop
46963 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46964 t loop
46965 s,-$,,
46966 s,^['$as_cr_digits']*\n,,
46967 ' >$as_me.lineno &&
46968 chmod +x $as_me.lineno ||
46969 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46970echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46971 { (exit 1); exit 1; }; }
46972
46973 # Don't try to exec as it changes $[0], causing all sort of problems
46974 # (the dirname of $[0] is not the place where we might find the
46975 # original and so on. Autoconf is especially sensible to this).
46976 . ./$as_me.lineno
46977 # Exit status is that of the last command.
46978 exit
46979}
46980
46981
46982case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46983 *c*,-n*) ECHO_N= ECHO_C='
46984' ECHO_T=' ' ;;
46985 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46986 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46987esac
46988
46989if expr a : '\(a\)' >/dev/null 2>&1; then
46990 as_expr=expr
46991else
46992 as_expr=false
46993fi
46994
46995rm -f conf$$ conf$$.exe conf$$.file
46996echo >conf$$.file
46997if ln -s conf$$.file conf$$ 2>/dev/null; then
46998 # We could just check for DJGPP; but this test a) works b) is more generic
46999 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47000 if test -f conf$$.exe; then
47001 # Don't use ln at all; we don't have any links
47002 as_ln_s='cp -p'
47003 else
47004 as_ln_s='ln -s'
47005 fi
47006elif ln conf$$.file conf$$ 2>/dev/null; then
47007 as_ln_s=ln
47008else
47009 as_ln_s='cp -p'
47010fi
47011rm -f conf$$ conf$$.exe conf$$.file
47012
47013if mkdir -p . 2>/dev/null; then
47014 as_mkdir_p=:
47015else
ac1cb8d3 47016 test -d ./-p && rmdir ./-p
a848cd7e
SC
47017 as_mkdir_p=false
47018fi
47019
47020as_executable_p="test -f"
47021
47022# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 47023as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
47024
47025# Sed expression to map a string onto a valid variable name.
ac1cb8d3 47026as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
47027
47028
47029# IFS
47030# We need space, tab and new line, in precisely that order.
47031as_nl='
47032'
47033IFS=" $as_nl"
47034
47035# CDPATH.
47036$as_unset CDPATH
47037
47038exec 6>&1
47039
47040# Open the log real soon, to keep \$[0] and so on meaningful, and to
47041# report actual input values of CONFIG_FILES etc. instead of their
47042# values after options handling. Logging --version etc. is OK.
47043exec 5>>config.log
47044{
47045 echo
47046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47047## Running $as_me. ##
47048_ASBOX
47049} >&5
47050cat >&5 <<_CSEOF
47051
dd8df4fc 47052This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 47053generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
47054
47055 CONFIG_FILES = $CONFIG_FILES
47056 CONFIG_HEADERS = $CONFIG_HEADERS
47057 CONFIG_LINKS = $CONFIG_LINKS
47058 CONFIG_COMMANDS = $CONFIG_COMMANDS
47059 $ $0 $@
47060
47061_CSEOF
47062echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
47063echo >&5
47064_ACEOF
47065
47066# Files that config.status was made for.
47067if test -n "$ac_config_files"; then
47068 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
47069fi
47070
47071if test -n "$ac_config_headers"; then
47072 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
47073fi
47074
47075if test -n "$ac_config_links"; then
47076 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
47077fi
47078
47079if test -n "$ac_config_commands"; then
47080 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
47081fi
47082
47083cat >>$CONFIG_STATUS <<\_ACEOF
47084
47085ac_cs_usage="\
47086\`$as_me' instantiates files from templates according to the
47087current configuration.
47088
47089Usage: $0 [OPTIONS] [FILE]...
47090
47091 -h, --help print this help, then exit
47092 -V, --version print version number, then exit
47093 -q, --quiet do not print progress messages
47094 -d, --debug don't remove temporary files
47095 --recheck update $as_me by reconfiguring in the same conditions
47096 --file=FILE[:TEMPLATE]
ac1cb8d3 47097 instantiate the configuration file FILE
a848cd7e 47098 --header=FILE[:TEMPLATE]
ac1cb8d3 47099 instantiate the configuration header FILE
a848cd7e
SC
47100
47101Configuration files:
47102$config_files
47103
47104Configuration headers:
47105$config_headers
47106
47107Configuration commands:
47108$config_commands
47109
47110Report bugs to <bug-autoconf@gnu.org>."
47111_ACEOF
47112
47113cat >>$CONFIG_STATUS <<_ACEOF
47114ac_cs_version="\\
dd8df4fc 47115wxWidgets config.status 2.7.0
ac1cb8d3 47116configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
47117 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
47118
ac1cb8d3 47119Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
47120This config.status script is free software; the Free Software Foundation
47121gives unlimited permission to copy, distribute and modify it."
47122srcdir=$srcdir
47123INSTALL="$INSTALL"
47124_ACEOF
47125
47126cat >>$CONFIG_STATUS <<\_ACEOF
47127# If no file are specified by the user, then we need to provide default
47128# value. By we need to know if files were specified by the user.
47129ac_need_defaults=:
47130while test $# != 0
47131do
47132 case $1 in
47133 --*=*)
47134 ac_option=`expr "x$1" : 'x\([^=]*\)='`
47135 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
47136 ac_shift=:
47137 ;;
47138 -*)
47139 ac_option=$1
47140 ac_optarg=$2
47141 ac_shift=shift
47142 ;;
47143 *) # This is not an option, so the user has probably given explicit
47144 # arguments.
47145 ac_option=$1
47146 ac_need_defaults=false;;
47147 esac
47148
47149 case $ac_option in
47150 # Handling of the options.
47151_ACEOF
47152cat >>$CONFIG_STATUS <<\_ACEOF
47153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47154 ac_cs_recheck=: ;;
47155 --version | --vers* | -V )
47156 echo "$ac_cs_version"; exit 0 ;;
47157 --he | --h)
47158 # Conflict between --help and --header
47159 { { echo "$as_me:$LINENO: error: ambiguous option: $1
47160Try \`$0 --help' for more information." >&5
47161echo "$as_me: error: ambiguous option: $1
47162Try \`$0 --help' for more information." >&2;}
47163 { (exit 1); exit 1; }; };;
47164 --help | --hel | -h )
47165 echo "$ac_cs_usage"; exit 0 ;;
47166 --debug | --d* | -d )
47167 debug=: ;;
47168 --file | --fil | --fi | --f )
47169 $ac_shift
47170 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
47171 ac_need_defaults=false;;
47172 --header | --heade | --head | --hea )
47173 $ac_shift
47174 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
47175 ac_need_defaults=false;;
47176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47177 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47178 ac_cs_silent=: ;;
47179
47180 # This is an error.
47181 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
47182Try \`$0 --help' for more information." >&5
47183echo "$as_me: error: unrecognized option: $1
47184Try \`$0 --help' for more information." >&2;}
47185 { (exit 1); exit 1; }; } ;;
47186
47187 *) ac_config_targets="$ac_config_targets $1" ;;
47188
47189 esac
47190 shift
47191done
47192
47193ac_configure_extra_args=
47194
47195if $ac_cs_silent; then
47196 exec 6>/dev/null
47197 ac_configure_extra_args="$ac_configure_extra_args --silent"
47198fi
47199
47200_ACEOF
47201cat >>$CONFIG_STATUS <<_ACEOF
47202if \$ac_cs_recheck; then
47203 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
47204 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47205fi
47206
47207_ACEOF
47208
47209cat >>$CONFIG_STATUS <<_ACEOF
47210#
47211# INIT-COMMANDS section.
47212#
47213
ceec2216
RL
47214 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47215 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47216 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47217 LN_S="${LN_S}"
a848cd7e
SC
47218
47219
47220_ACEOF
47221
47222
47223
47224cat >>$CONFIG_STATUS <<\_ACEOF
47225for ac_config_target in $ac_config_targets
47226do
47227 case "$ac_config_target" in
47228 # Handling of arguments.
ceec2216
RL
47229 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
47230 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
47231 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
47232 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47233 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
47234 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
47235 "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
47236 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47237echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47238 { (exit 1); exit 1; }; };;
47239 esac
47240done
47241
47242# If the user did not use the arguments to specify the items to instantiate,
47243# then the envvar interface is used. Set only those that are not.
47244# We use the long form for the default assignment because of an extremely
47245# bizarre bug on SunOS 4.1.3.
47246if $ac_need_defaults; then
47247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47249 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47250fi
47251
47252# Have a temporary directory for convenience. Make it in the build tree
47253# simply because there is no reason to put it here, and in addition,
47254# creating and moving files from /tmp can sometimes cause problems.
47255# Create a temporary directory, and hook for its removal unless debugging.
47256$debug ||
47257{
47258 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47259 trap '{ (exit 1); exit 1; }' 1 2 13 15
47260}
47261
47262# Create a (secure) tmp directory for tmp files.
47263
47264{
47265 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47266 test -n "$tmp" && test -d "$tmp"
47267} ||
47268{
47269 tmp=./confstat$$-$RANDOM
47270 (umask 077 && mkdir $tmp)
47271} ||
47272{
47273 echo "$me: cannot create a temporary directory in ." >&2
47274 { (exit 1); exit 1; }
47275}
47276
47277_ACEOF
47278
47279cat >>$CONFIG_STATUS <<_ACEOF
47280
47281#
47282# CONFIG_FILES section.
47283#
47284
47285# No need to generate the scripts if there are no CONFIG_FILES.
47286# This happens for instance when ./config.status config.h
47287if test -n "\$CONFIG_FILES"; then
47288 # Protect against being on the right side of a sed subst in config.status.
47289 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
47290 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
47291s,@SHELL@,$SHELL,;t t
47292s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
47293s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
47294s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
47295s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
47296s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
47297s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
47298s,@exec_prefix@,$exec_prefix,;t t
47299s,@prefix@,$prefix,;t t
47300s,@program_transform_name@,$program_transform_name,;t t
47301s,@bindir@,$bindir,;t t
47302s,@sbindir@,$sbindir,;t t
47303s,@libexecdir@,$libexecdir,;t t
47304s,@datadir@,$datadir,;t t
47305s,@sysconfdir@,$sysconfdir,;t t
47306s,@sharedstatedir@,$sharedstatedir,;t t
47307s,@localstatedir@,$localstatedir,;t t
47308s,@libdir@,$libdir,;t t
47309s,@includedir@,$includedir,;t t
47310s,@oldincludedir@,$oldincludedir,;t t
47311s,@infodir@,$infodir,;t t
47312s,@mandir@,$mandir,;t t
47313s,@build_alias@,$build_alias,;t t
47314s,@host_alias@,$host_alias,;t t
47315s,@target_alias@,$target_alias,;t t
47316s,@DEFS@,$DEFS,;t t
47317s,@ECHO_C@,$ECHO_C,;t t
47318s,@ECHO_N@,$ECHO_N,;t t
47319s,@ECHO_T@,$ECHO_T,;t t
47320s,@LIBS@,$LIBS,;t t
47321s,@build@,$build,;t t
47322s,@build_cpu@,$build_cpu,;t t
47323s,@build_vendor@,$build_vendor,;t t
47324s,@build_os@,$build_os,;t t
47325s,@host@,$host,;t t
47326s,@host_cpu@,$host_cpu,;t t
47327s,@host_vendor@,$host_vendor,;t t
47328s,@host_os@,$host_os,;t t
47329s,@target@,$target,;t t
47330s,@target_cpu@,$target_cpu,;t t
47331s,@target_vendor@,$target_vendor,;t t
47332s,@target_os@,$target_os,;t t
47333s,@CC@,$CC,;t t
47334s,@CFLAGS@,$CFLAGS,;t t
47335s,@LDFLAGS@,$LDFLAGS,;t t
47336s,@CPPFLAGS@,$CPPFLAGS,;t t
47337s,@ac_ct_CC@,$ac_ct_CC,;t t
47338s,@EXEEXT@,$EXEEXT,;t t
47339s,@OBJEXT@,$OBJEXT,;t t
47340s,@CPP@,$CPP,;t t
47341s,@EGREP@,$EGREP,;t t
47342s,@CXX@,$CXX,;t t
47343s,@CXXFLAGS@,$CXXFLAGS,;t t
47344s,@ac_ct_CXX@,$ac_ct_CXX,;t t
47345s,@RANLIB@,$RANLIB,;t t
47346s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47347s,@AR@,$AR,;t t
8c80d384 47348s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
47349s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47350s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47351s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47352s,@STRIP@,$STRIP,;t t
8c80d384
DE
47353s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
47354s,@RESCOMP@,$RESCOMP,;t t
47355s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
47356s,@DLLTOOL@,$DLLTOOL,;t t
47357s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
47358s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
47359s,@LN_S@,$LN_S,;t t
47360s,@CXXCPP@,$CXXCPP,;t t
47361s,@subdirs@,$subdirs,;t t
47362s,@PKG_CONFIG@,$PKG_CONFIG,;t t
47363s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
47364s,@GTK_LIBS@,$GTK_LIBS,;t t
47365s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
47366s,@X_CFLAGS@,$X_CFLAGS,;t t
47367s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
47368s,@X_LIBS@,$X_LIBS,;t t
47369s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
47370s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
47371s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
47372s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
47373s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
47374s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
47375s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
47376s,@DEREZ@,$DEREZ,;t t
47377s,@SETFILE@,$SETFILE,;t t
47378s,@LIBICONV@,$LIBICONV,;t t
47379s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
47380s,@SDL_CONFIG@,$SDL_CONFIG,;t t
47381s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
47382s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
47383s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
47384s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
47385s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
47386s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
47387s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
47388s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
47389s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
47390s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
47391s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
47392s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
47393s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
47394s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
47395s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
47396s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
47397s,@VENDOR@,$VENDOR,;t t
47398s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
47399s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
47400s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
47401s,@WXUNIV@,$WXUNIV,;t t
47402s,@MONOLITHIC@,$MONOLITHIC,;t t
47403s,@USE_PLUGINS@,$USE_PLUGINS,;t t
47404s,@EXTRALIBS@,$EXTRALIBS,;t t
47405s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
47406s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
47407s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
47408s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
47409s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
47410s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
47411s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 47412s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
47413s,@UNICODE@,$UNICODE,;t t
47414s,@BUILD@,$BUILD,;t t
47415s,@DEBUG_INFO@,$DEBUG_INFO,;t t
47416s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
47417s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
47418s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
47419s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
47420s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
47421s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
47422s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
47423s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
47424s,@SET_MAKE@,$SET_MAKE,;t t
47425s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
47426s,@NM@,$NM,;t t
47427s,@ac_ct_NM@,$ac_ct_NM,;t t
47428s,@INSTALL_DIR@,$INSTALL_DIR,;t t
47429s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
47430s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
47431s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
47432s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
47433s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 47434s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
47435s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
47436s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 47437s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
47438s,@SO_SUFFIX@,$SO_SUFFIX,;t t
47439s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
47440s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
47441s,@LIBPREFIX@,$LIBPREFIX,;t t
47442s,@LIBEXT@,$LIBEXT,;t t
47443s,@DLLPREFIX@,$DLLPREFIX,;t t
47444s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 47445s,@dlldir@,$dlldir,;t t
a848cd7e
SC
47446s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
47447s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
47448s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
47449s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
47450s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
47451s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 47452s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
47453s,@USE_SOVERSION@,$USE_SOVERSION,;t t
47454s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
47455s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 47456s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
47457s,@USE_MACVERSION@,$USE_MACVERSION,;t t
47458s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
47459s,@SONAME_FLAG@,$SONAME_FLAG,;t t
47460s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
47461s,@GCC_PCH@,$GCC_PCH,;t t
47462s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
47463s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
47464s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
47465s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
47466s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
47467s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
47468s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
47469s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
47470s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
47471s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
47472s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
47473s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
47474s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
47475s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
47476s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
47477s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
47478s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
47479s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 47480s,@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 47481s,@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 47482s,@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 47483s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 47484s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47485s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
47486s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 47487s,@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 47488s,@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 47489s,@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 47490s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 47491s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
47492s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
47493s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
47494s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
47495s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
47496s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
47497s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 47498s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
47499s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
47500s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 47501s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
47502s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
47503s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
47504s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 47505s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 47506s,@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
47507s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
47508s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
47509s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
47510s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 47511s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 47512s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 47513s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
47514s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
47515s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
47516s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
47517s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
47518s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
47519s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
47520s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
47521s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
47522s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
47523s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
47524s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
47525s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
47526s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47527s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47528s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 47529s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47530s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
47531s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
47532s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
47533s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
47534s,@COND_SHARED_1@,$COND_SHARED_1,;t t
47535s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 47536s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 47537s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 47538s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 47539s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
47540s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
47541s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
47542s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
47543s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
47544s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
47545s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
47546s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47547s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
47548s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
47549s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
47550s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
47551s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
47552s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
47553s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
47554s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47555s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
47556s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
47557s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
47558s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
47559s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
47560s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
47561s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47562s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
47563s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
47564s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
47565s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
47566s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
47567s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
47568s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
47569s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
47570s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
47571s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
47572s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47573s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47574s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
47575s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
47576s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 47577s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
47578s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
47579s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 47580s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 47581s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
47582s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
47583s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
47584s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
47585s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
47586s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 47587s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 47588s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 47589s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 47590s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
47591s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
47592s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
47593s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
47594s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
47595s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
47596s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
47597s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
47598s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 47599s,@SHARED@,$SHARED,;t t
a848cd7e
SC
47600s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
47601s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
47602s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
47603s,@USE_GUI@,$USE_GUI,;t t
47604s,@AFMINSTALL@,$AFMINSTALL,;t t
47605s,@WIN32INSTALL@,$WIN32INSTALL,;t t
47606s,@TOOLKIT@,$TOOLKIT,;t t
47607s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 47608s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 47609s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
47610s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
47611s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 47612s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
47613s,@WIDGET_SET@,$WIDGET_SET,;t t
47614s,@WX_RELEASE@,$WX_RELEASE,;t t
47615s,@WX_VERSION@,$WX_VERSION,;t t
47616s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
47617s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
47618s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 47619s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
47620s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
47621s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
47622s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
47623s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 47624s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
47625s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
47626s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 47627s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 47628s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
47629s,@DISTDIR@,$DISTDIR,;t t
47630s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
47631s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
47632s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
47633s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
47634s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
47635s,@RESFLAGS@,$RESFLAGS,;t t
47636s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
47637s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
47638s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
47639s,@LIBWXMACRES@,$LIBWXMACRES,;t t
47640s,@MACRESCOMP@,$MACRESCOMP,;t t
47641s,@MACSETFILE@,$MACSETFILE,;t t
47642s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
47643s,@GCC@,$GCC,;t t
a848cd7e
SC
47644s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
47645s,@LIBOBJS@,$LIBOBJS,;t t
47646s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47647CEOF
47648
47649_ACEOF
47650
47651 cat >>$CONFIG_STATUS <<\_ACEOF
47652 # Split the substitutions into bite-sized pieces for seds with
47653 # small command number limits, like on Digital OSF/1 and HP-UX.
47654 ac_max_sed_lines=48
47655 ac_sed_frag=1 # Number of current file.
47656 ac_beg=1 # First line for current file.
47657 ac_end=$ac_max_sed_lines # Line after last line for current file.
47658 ac_more_lines=:
47659 ac_sed_cmds=
47660 while $ac_more_lines; do
47661 if test $ac_beg -gt 1; then
47662 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47663 else
47664 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47665 fi
47666 if test ! -s $tmp/subs.frag; then
47667 ac_more_lines=false
47668 else
47669 # The purpose of the label and of the branching condition is to
47670 # speed up the sed processing (if there are no `@' at all, there
47671 # is no need to browse any of the substitutions).
47672 # These are the two extra sed commands mentioned above.
47673 (echo ':t
47674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
47675 if test -z "$ac_sed_cmds"; then
ac1cb8d3 47676 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 47677 else
ac1cb8d3 47678 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
47679 fi
47680 ac_sed_frag=`expr $ac_sed_frag + 1`
47681 ac_beg=$ac_end
47682 ac_end=`expr $ac_end + $ac_max_sed_lines`
47683 fi
47684 done
47685 if test -z "$ac_sed_cmds"; then
47686 ac_sed_cmds=cat
47687 fi
47688fi # test -n "$CONFIG_FILES"
47689
47690_ACEOF
47691cat >>$CONFIG_STATUS <<\_ACEOF
47692for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47693 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47694 case $ac_file in
47695 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47696 cat >$tmp/stdin
47697 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47699 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47701 * ) ac_file_in=$ac_file.in ;;
47702 esac
47703
47704 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47705 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47706$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47707 X"$ac_file" : 'X\(//\)[^/]' \| \
47708 X"$ac_file" : 'X\(//\)$' \| \
47709 X"$ac_file" : 'X\(/\)' \| \
47710 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47711echo X"$ac_file" |
47712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47714 /^X\(\/\/\)$/{ s//\1/; q; }
47715 /^X\(\/\).*/{ s//\1/; q; }
47716 s/.*/./; q'`
47717 { if $as_mkdir_p; then
47718 mkdir -p "$ac_dir"
47719 else
47720 as_dir="$ac_dir"
47721 as_dirs=
47722 while test ! -d "$as_dir"; do
47723 as_dirs="$as_dir $as_dirs"
47724 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47725$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47726 X"$as_dir" : 'X\(//\)[^/]' \| \
47727 X"$as_dir" : 'X\(//\)$' \| \
47728 X"$as_dir" : 'X\(/\)' \| \
47729 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47730echo X"$as_dir" |
47731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47733 /^X\(\/\/\)$/{ s//\1/; q; }
47734 /^X\(\/\).*/{ s//\1/; q; }
47735 s/.*/./; q'`
47736 done
47737 test ! -n "$as_dirs" || mkdir $as_dirs
47738 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47739echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47740 { (exit 1); exit 1; }; }; }
47741
47742 ac_builddir=.
47743
47744if test "$ac_dir" != .; then
47745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47746 # A "../" for each directory in $ac_dir_suffix.
47747 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47748else
47749 ac_dir_suffix= ac_top_builddir=
47750fi
47751
47752case $srcdir in
47753 .) # No --srcdir option. We are building in place.
47754 ac_srcdir=.
47755 if test -z "$ac_top_builddir"; then
47756 ac_top_srcdir=.
47757 else
47758 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47759 fi ;;
47760 [\\/]* | ?:[\\/]* ) # Absolute path.
47761 ac_srcdir=$srcdir$ac_dir_suffix;
47762 ac_top_srcdir=$srcdir ;;
47763 *) # Relative path.
47764 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47765 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47766esac
ac1cb8d3
VS
47767
47768# Do not use `cd foo && pwd` to compute absolute paths, because
47769# the directories may not exist.
47770case `pwd` in
47771.) ac_abs_builddir="$ac_dir";;
47772*)
47773 case "$ac_dir" in
47774 .) ac_abs_builddir=`pwd`;;
47775 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47776 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47777 esac;;
47778esac
47779case $ac_abs_builddir in
47780.) ac_abs_top_builddir=${ac_top_builddir}.;;
47781*)
47782 case ${ac_top_builddir}. in
47783 .) ac_abs_top_builddir=$ac_abs_builddir;;
47784 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47785 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47786 esac;;
47787esac
47788case $ac_abs_builddir in
47789.) ac_abs_srcdir=$ac_srcdir;;
47790*)
47791 case $ac_srcdir in
47792 .) ac_abs_srcdir=$ac_abs_builddir;;
47793 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47794 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47795 esac;;
47796esac
47797case $ac_abs_builddir in
47798.) ac_abs_top_srcdir=$ac_top_srcdir;;
47799*)
47800 case $ac_top_srcdir in
47801 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47802 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47803 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47804 esac;;
47805esac
a848cd7e
SC
47806
47807
47808 case $INSTALL in
47809 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47810 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47811 esac
47812
dee1a63f
MB
47813 if test x"$ac_file" != x-; then
47814 { echo "$as_me:$LINENO: creating $ac_file" >&5
47815echo "$as_me: creating $ac_file" >&6;}
47816 rm -f "$ac_file"
47817 fi
a848cd7e
SC
47818 # Let's still pretend it is `configure' which instantiates (i.e., don't
47819 # use $as_me), people would be surprised to read:
47820 # /* config.h. Generated by config.status. */
47821 if test x"$ac_file" = x-; then
47822 configure_input=
47823 else
47824 configure_input="$ac_file. "
47825 fi
47826 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 47827 sed 's,.*/,,'` by configure."
a848cd7e
SC
47828
47829 # First look for the input files in the build tree, otherwise in the
47830 # src tree.
47831 ac_file_inputs=`IFS=:
47832 for f in $ac_file_in; do
47833 case $f in
47834 -) echo $tmp/stdin ;;
47835 [\\/$]*)
ac1cb8d3
VS
47836 # Absolute (can't be DOS-style, as IFS=:)
47837 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47838echo "$as_me: error: cannot find input file: $f" >&2;}
47839 { (exit 1); exit 1; }; }
ac1cb8d3 47840 echo "$f";;
a848cd7e 47841 *) # Relative
ac1cb8d3
VS
47842 if test -f "$f"; then
47843 # Build tree
47844 echo "$f"
47845 elif test -f "$srcdir/$f"; then
47846 # Source tree
47847 echo "$srcdir/$f"
47848 else
47849 # /dev/null tree
47850 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47851echo "$as_me: error: cannot find input file: $f" >&2;}
47852 { (exit 1); exit 1; }; }
ac1cb8d3 47853 fi;;
a848cd7e
SC
47854 esac
47855 done` || { (exit 1); exit 1; }
47856_ACEOF
47857cat >>$CONFIG_STATUS <<_ACEOF
47858 sed "$ac_vpsub
47859$extrasub
47860_ACEOF
47861cat >>$CONFIG_STATUS <<\_ACEOF
47862:t
47863/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47864s,@configure_input@,$configure_input,;t t
47865s,@srcdir@,$ac_srcdir,;t t
47866s,@abs_srcdir@,$ac_abs_srcdir,;t t
47867s,@top_srcdir@,$ac_top_srcdir,;t t
47868s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47869s,@builddir@,$ac_builddir,;t t
47870s,@abs_builddir@,$ac_abs_builddir,;t t
47871s,@top_builddir@,$ac_top_builddir,;t t
47872s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47873s,@INSTALL@,$ac_INSTALL,;t t
47874" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47875 rm -f $tmp/stdin
47876 if test x"$ac_file" != x-; then
47877 mv $tmp/out $ac_file
47878 else
47879 cat $tmp/out
47880 rm -f $tmp/out
47881 fi
47882
ceec2216
RL
47883 # Run the commands associated with the file.
47884 case $ac_file in
47885 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47886 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47887 esac
a848cd7e
SC
47888done
47889_ACEOF
47890cat >>$CONFIG_STATUS <<\_ACEOF
47891
47892#
47893# CONFIG_HEADER section.
47894#
47895
47896# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47897# NAME is the cpp macro being defined and VALUE is the value it is being given.
47898#
47899# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47900ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47901ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47902ac_dC=' '
47903ac_dD=',;t'
47904# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47905ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47906ac_uB='$,\1#\2define\3'
47907ac_uC=' '
47908ac_uD=',;t'
47909
47910for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47912 case $ac_file in
47913 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47914 cat >$tmp/stdin
47915 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47917 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47919 * ) ac_file_in=$ac_file.in ;;
47920 esac
47921
47922 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47923echo "$as_me: creating $ac_file" >&6;}
47924
47925 # First look for the input files in the build tree, otherwise in the
47926 # src tree.
47927 ac_file_inputs=`IFS=:
47928 for f in $ac_file_in; do
47929 case $f in
47930 -) echo $tmp/stdin ;;
47931 [\\/$]*)
ac1cb8d3
VS
47932 # Absolute (can't be DOS-style, as IFS=:)
47933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47934echo "$as_me: error: cannot find input file: $f" >&2;}
47935 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47936 # Do quote $f, to prevent DOS paths from being IFS'd.
47937 echo "$f";;
a848cd7e 47938 *) # Relative
ac1cb8d3
VS
47939 if test -f "$f"; then
47940 # Build tree
47941 echo "$f"
47942 elif test -f "$srcdir/$f"; then
47943 # Source tree
47944 echo "$srcdir/$f"
47945 else
47946 # /dev/null tree
47947 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47948echo "$as_me: error: cannot find input file: $f" >&2;}
47949 { (exit 1); exit 1; }; }
ac1cb8d3 47950 fi;;
a848cd7e
SC
47951 esac
47952 done` || { (exit 1); exit 1; }
47953 # Remove the trailing spaces.
ac1cb8d3 47954 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47955
47956_ACEOF
47957
47958# Transform confdefs.h into two sed scripts, `conftest.defines' and
47959# `conftest.undefs', that substitutes the proper values into
47960# config.h.in to produce config.h. The first handles `#define'
47961# templates, and the second `#undef' templates.
47962# And first: Protect against being on the right side of a sed subst in
47963# config.status. Protect against being in an unquoted here document
47964# in config.status.
47965rm -f conftest.defines conftest.undefs
47966# Using a here document instead of a string reduces the quoting nightmare.
47967# Putting comments in sed scripts is not portable.
47968#
47969# `end' is used to avoid that the second main sed command (meant for
47970# 0-ary CPP macros) applies to n-ary macro definitions.
47971# See the Autoconf documentation for `clear'.
47972cat >confdef2sed.sed <<\_ACEOF
47973s/[\\&,]/\\&/g
47974s,[\\$`],\\&,g
47975t clear
47976: clear
ac1cb8d3 47977s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47978t end
ac1cb8d3 47979s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47980: end
47981_ACEOF
47982# If some macros were called several times there might be several times
47983# the same #defines, which is useless. Nevertheless, we may not want to
47984# sort them, since we want the *last* AC-DEFINE to be honored.
47985uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47986sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47987rm -f confdef2sed.sed
47988
47989# This sed command replaces #undef with comments. This is necessary, for
47990# example, in the case of _POSIX_SOURCE, which is predefined and required
47991# on some systems where configure will not decide to define it.
47992cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47993s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47994_ACEOF
47995
47996# Break up conftest.defines because some shells have a limit on the size
47997# of here documents, and old seds have small limits too (100 cmds).
47998echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47999echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
48000echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
48001echo ' :' >>$CONFIG_STATUS
48002rm -f conftest.tail
48003while grep . conftest.defines >/dev/null
48004do
48005 # Write a limited-size here document to $tmp/defines.sed.
48006 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
48007 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 48008 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
48009 # Work around the forget-to-reset-the-flag bug.
48010 echo 't clr' >>$CONFIG_STATUS
48011 echo ': clr' >>$CONFIG_STATUS
48012 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
48013 echo 'CEOF
48014 sed -f $tmp/defines.sed $tmp/in >$tmp/out
48015 rm -f $tmp/in
48016 mv $tmp/out $tmp/in
48017' >>$CONFIG_STATUS
48018 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
48019 rm -f conftest.defines
48020 mv conftest.tail conftest.defines
48021done
48022rm -f conftest.defines
48023echo ' fi # grep' >>$CONFIG_STATUS
48024echo >>$CONFIG_STATUS
48025
48026# Break up conftest.undefs because some shells have a limit on the size
48027# of here documents, and old seds have small limits too (100 cmds).
48028echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
48029rm -f conftest.tail
48030while grep . conftest.undefs >/dev/null
48031do
48032 # Write a limited-size here document to $tmp/undefs.sed.
48033 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
48034 # Speed up: don't consider the non `#undef'
ac1cb8d3 48035 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
48036 # Work around the forget-to-reset-the-flag bug.
48037 echo 't clr' >>$CONFIG_STATUS
48038 echo ': clr' >>$CONFIG_STATUS
48039 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
48040 echo 'CEOF
48041 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
48042 rm -f $tmp/in
48043 mv $tmp/out $tmp/in
48044' >>$CONFIG_STATUS
48045 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
48046 rm -f conftest.undefs
48047 mv conftest.tail conftest.undefs
48048done
48049rm -f conftest.undefs
48050
48051cat >>$CONFIG_STATUS <<\_ACEOF
48052 # Let's still pretend it is `configure' which instantiates (i.e., don't
48053 # use $as_me), people would be surprised to read:
48054 # /* config.h. Generated by config.status. */
48055 if test x"$ac_file" = x-; then
48056 echo "/* Generated by configure. */" >$tmp/config.h
48057 else
48058 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
48059 fi
48060 cat $tmp/in >>$tmp/config.h
48061 rm -f $tmp/in
48062 if test x"$ac_file" != x-; then
48063 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
48064 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48065echo "$as_me: $ac_file is unchanged" >&6;}
48066 else
48067 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
48068$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48069 X"$ac_file" : 'X\(//\)[^/]' \| \
48070 X"$ac_file" : 'X\(//\)$' \| \
48071 X"$ac_file" : 'X\(/\)' \| \
48072 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48073echo X"$ac_file" |
48074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48076 /^X\(\/\/\)$/{ s//\1/; q; }
48077 /^X\(\/\).*/{ s//\1/; q; }
48078 s/.*/./; q'`
48079 { if $as_mkdir_p; then
48080 mkdir -p "$ac_dir"
48081 else
48082 as_dir="$ac_dir"
48083 as_dirs=
48084 while test ! -d "$as_dir"; do
48085 as_dirs="$as_dir $as_dirs"
48086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48088 X"$as_dir" : 'X\(//\)[^/]' \| \
48089 X"$as_dir" : 'X\(//\)$' \| \
48090 X"$as_dir" : 'X\(/\)' \| \
48091 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48092echo X"$as_dir" |
48093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48095 /^X\(\/\/\)$/{ s//\1/; q; }
48096 /^X\(\/\).*/{ s//\1/; q; }
48097 s/.*/./; q'`
48098 done
48099 test ! -n "$as_dirs" || mkdir $as_dirs
48100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48101echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48102 { (exit 1); exit 1; }; }; }
48103
48104 rm -f $ac_file
48105 mv $tmp/config.h $ac_file
48106 fi
48107 else
48108 cat $tmp/config.h
48109 rm -f $tmp/config.h
48110 fi
48111done
48112_ACEOF
48113cat >>$CONFIG_STATUS <<\_ACEOF
48114
48115#
48116# CONFIG_COMMANDS section.
48117#
48118for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
48119 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
48120 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
48121 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
48122$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48123 X"$ac_dest" : 'X\(//\)[^/]' \| \
48124 X"$ac_dest" : 'X\(//\)$' \| \
48125 X"$ac_dest" : 'X\(/\)' \| \
48126 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48127echo X"$ac_dest" |
48128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48130 /^X\(\/\/\)$/{ s//\1/; q; }
48131 /^X\(\/\).*/{ s//\1/; q; }
48132 s/.*/./; q'`
ac1cb8d3
VS
48133 { if $as_mkdir_p; then
48134 mkdir -p "$ac_dir"
48135 else
48136 as_dir="$ac_dir"
48137 as_dirs=
48138 while test ! -d "$as_dir"; do
48139 as_dirs="$as_dir $as_dirs"
48140 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48141$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48142 X"$as_dir" : 'X\(//\)[^/]' \| \
48143 X"$as_dir" : 'X\(//\)$' \| \
48144 X"$as_dir" : 'X\(/\)' \| \
48145 . : '\(.\)' 2>/dev/null ||
48146echo X"$as_dir" |
48147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48149 /^X\(\/\/\)$/{ s//\1/; q; }
48150 /^X\(\/\).*/{ s//\1/; q; }
48151 s/.*/./; q'`
48152 done
48153 test ! -n "$as_dirs" || mkdir $as_dirs
48154 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48155echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48156 { (exit 1); exit 1; }; }; }
48157
a848cd7e
SC
48158 ac_builddir=.
48159
48160if test "$ac_dir" != .; then
48161 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48162 # A "../" for each directory in $ac_dir_suffix.
48163 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48164else
48165 ac_dir_suffix= ac_top_builddir=
48166fi
48167
48168case $srcdir in
48169 .) # No --srcdir option. We are building in place.
48170 ac_srcdir=.
48171 if test -z "$ac_top_builddir"; then
48172 ac_top_srcdir=.
48173 else
48174 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48175 fi ;;
48176 [\\/]* | ?:[\\/]* ) # Absolute path.
48177 ac_srcdir=$srcdir$ac_dir_suffix;
48178 ac_top_srcdir=$srcdir ;;
48179 *) # Relative path.
48180 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48181 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48182esac
ac1cb8d3
VS
48183
48184# Do not use `cd foo && pwd` to compute absolute paths, because
48185# the directories may not exist.
48186case `pwd` in
48187.) ac_abs_builddir="$ac_dir";;
48188*)
48189 case "$ac_dir" in
48190 .) ac_abs_builddir=`pwd`;;
48191 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48192 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48193 esac;;
48194esac
48195case $ac_abs_builddir in
48196.) ac_abs_top_builddir=${ac_top_builddir}.;;
48197*)
48198 case ${ac_top_builddir}. in
48199 .) ac_abs_top_builddir=$ac_abs_builddir;;
48200 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48201 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48202 esac;;
48203esac
48204case $ac_abs_builddir in
48205.) ac_abs_srcdir=$ac_srcdir;;
48206*)
48207 case $ac_srcdir in
48208 .) ac_abs_srcdir=$ac_abs_builddir;;
48209 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48210 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48211 esac;;
48212esac
48213case $ac_abs_builddir in
48214.) ac_abs_top_srcdir=$ac_top_srcdir;;
48215*)
48216 case $ac_top_srcdir in
48217 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48218 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48219 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48220 esac;;
48221esac
a848cd7e
SC
48222
48223
48224 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
48225echo "$as_me: executing $ac_dest commands" >&6;}
48226 case $ac_dest in
ceec2216
RL
48227 wx-config ) rm -f wx-config
48228 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
48229 ;;
a848cd7e
SC
48230 esac
48231done
48232_ACEOF
48233
48234cat >>$CONFIG_STATUS <<\_ACEOF
48235
48236{ (exit 0); exit 0; }
48237_ACEOF
48238chmod +x $CONFIG_STATUS
48239ac_clean_files=$ac_clean_files_save
48240
48241
48242# configure is writing to config.log, and then calls config.status.
48243# config.status does its own redirection, appending to config.log.
48244# Unfortunately, on DOS this fails, as config.log is still kept open
48245# by configure, so config.status won't be able to write to it; its
48246# output is simply discarded. So we exec the FD to /dev/null,
48247# effectively closing config.log, so it can be properly (re)opened and
48248# appended to by config.status. When coming back to configure, we
48249# need to make the FD available again.
48250if test "$no_create" != yes; then
48251 ac_cs_success=:
48252 ac_config_status_args=
48253 test "$silent" = yes &&
48254 ac_config_status_args="$ac_config_status_args --quiet"
48255 exec 5>/dev/null
48256 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48257 exec 5>>config.log
48258 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48259 # would make configure fail if this is the last instruction.
48260 $ac_cs_success || { (exit 1); exit 1; }
48261fi
48262
48263#
48264# CONFIG_SUBDIRS section.
48265#
48266if test "$no_recursion" != yes; then
48267
48268 # Remove --cache-file and --srcdir arguments so they do not pile up.
48269 ac_sub_configure_args=
48270 ac_prev=
48271 for ac_arg in $ac_configure_args; do
48272 if test -n "$ac_prev"; then
48273 ac_prev=
48274 continue
48275 fi
48276 case $ac_arg in
48277 -cache-file | --cache-file | --cache-fil | --cache-fi \
48278 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48279 ac_prev=cache_file ;;
48280 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48281 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48282 | --c=*)
48283 ;;
48284 --config-cache | -C)
48285 ;;
48286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48287 ac_prev=srcdir ;;
48288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48289 ;;
48290 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48291 ac_prev=prefix ;;
48292 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48293 ;;
48294 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
48295 esac
48296 done
48297
48298 # Always prepend --prefix to ensure using the same prefix
48299 # in subdir configurations.
48300 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
48301
48302 ac_popdir=`pwd`
48303 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48304
48305 # Do not complain, so a configure script can configure whichever
48306 # parts of a large source tree are present.
48307 test -d $srcdir/$ac_dir || continue
48308
48309 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
48310echo "$as_me: configuring in $ac_dir" >&6;}
48311 { if $as_mkdir_p; then
48312 mkdir -p "$ac_dir"
48313 else
48314 as_dir="$ac_dir"
48315 as_dirs=
48316 while test ! -d "$as_dir"; do
48317 as_dirs="$as_dir $as_dirs"
48318 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48319$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48320 X"$as_dir" : 'X\(//\)[^/]' \| \
48321 X"$as_dir" : 'X\(//\)$' \| \
48322 X"$as_dir" : 'X\(/\)' \| \
48323 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48324echo X"$as_dir" |
48325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48327 /^X\(\/\/\)$/{ s//\1/; q; }
48328 /^X\(\/\).*/{ s//\1/; q; }
48329 s/.*/./; q'`
48330 done
48331 test ! -n "$as_dirs" || mkdir $as_dirs
48332 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48333echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48334 { (exit 1); exit 1; }; }; }
48335
48336 ac_builddir=.
48337
48338if test "$ac_dir" != .; then
48339 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48340 # A "../" for each directory in $ac_dir_suffix.
48341 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48342else
48343 ac_dir_suffix= ac_top_builddir=
48344fi
48345
48346case $srcdir in
48347 .) # No --srcdir option. We are building in place.
48348 ac_srcdir=.
48349 if test -z "$ac_top_builddir"; then
48350 ac_top_srcdir=.
48351 else
48352 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48353 fi ;;
48354 [\\/]* | ?:[\\/]* ) # Absolute path.
48355 ac_srcdir=$srcdir$ac_dir_suffix;
48356 ac_top_srcdir=$srcdir ;;
48357 *) # Relative path.
48358 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48359 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48360esac
ac1cb8d3
VS
48361
48362# Do not use `cd foo && pwd` to compute absolute paths, because
48363# the directories may not exist.
48364case `pwd` in
48365.) ac_abs_builddir="$ac_dir";;
48366*)
48367 case "$ac_dir" in
48368 .) ac_abs_builddir=`pwd`;;
48369 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48370 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48371 esac;;
48372esac
48373case $ac_abs_builddir in
48374.) ac_abs_top_builddir=${ac_top_builddir}.;;
48375*)
48376 case ${ac_top_builddir}. in
48377 .) ac_abs_top_builddir=$ac_abs_builddir;;
48378 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48379 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48380 esac;;
48381esac
48382case $ac_abs_builddir in
48383.) ac_abs_srcdir=$ac_srcdir;;
48384*)
48385 case $ac_srcdir in
48386 .) ac_abs_srcdir=$ac_abs_builddir;;
48387 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48388 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48389 esac;;
48390esac
48391case $ac_abs_builddir in
48392.) ac_abs_top_srcdir=$ac_top_srcdir;;
48393*)
48394 case $ac_top_srcdir in
48395 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48396 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48397 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48398 esac;;
48399esac
a848cd7e
SC
48400
48401
48402 cd $ac_dir
48403
48404 # Check for guested configure; otherwise get Cygnus style configure.
48405 if test -f $ac_srcdir/configure.gnu; then
48406 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48407 elif test -f $ac_srcdir/configure; then
48408 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48409 elif test -f $ac_srcdir/configure.in; then
48410 ac_sub_configure=$ac_configure
48411 else
48412 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48413echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48414 ac_sub_configure=
48415 fi
48416
48417 # The recursion is here.
48418 if test -n "$ac_sub_configure"; then
48419 # Make the cache file name correct relative to the subdirectory.
48420 case $cache_file in
48421 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48422 *) # Relative path.
ac1cb8d3 48423 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
48424 esac
48425
48426 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48427echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48428 # The eval makes quoting arguments work.
48429 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
48430 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48431 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
48432echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48433 { (exit 1); exit 1; }; }
48434 fi
48435
dee1a63f 48436 cd $ac_popdir
a848cd7e
SC
48437 done
48438fi
48439
48440
48441echo
77ffb593 48442echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 48443echo ""
4d4ff94c 48444echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 48445echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 48446
77ffb593
JS
48447echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
48448echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
48449echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 48450
77ffb593 48451echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
48452echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
48453echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 48454
77ffb593 48455echo " Which libraries should wxWidgets use?"
a848cd7e
SC
48456echo " jpeg ${wxUSE_LIBJPEG-none}"
48457echo " png ${wxUSE_LIBPNG-none}"
48458echo " regex ${wxUSE_REGEX}"
48459echo " tiff ${wxUSE_LIBTIFF-none}"
48460if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
48461echo " xpm ${wxUSE_LIBXPM-none}"
48462fi
48463echo " zlib ${wxUSE_ZLIB}"
48464echo " odbc ${wxUSE_ODBC}"
48465echo " expat ${wxUSE_EXPAT}"
48466echo " libmspack ${wxUSE_LIBMSPACK}"
48467echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 48468echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
48469
48470echo ""
48471