]> git.saurik.com Git - wxWidgets.git/blame - configure
added test for snprintf() which may not be present in system headers, treat it simila...
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
eb730a0c 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
eb730a0c
JS
273PACKAGE_VERSION='2.6.2'
274PACKAGE_STRING='wxWidgets 2.6.2'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
083508af 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
eb730a0c 797\`configure' configures wxWidgets 2.6.2 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
eb730a0c 863 short | recursive ) echo "Configuration of wxWidgets 2.6.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
38b4a946 1032 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
38b4a946 1035 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1036 --enable-palette use wxPalette class
1037 --enable-image use wxImage class
1038 --enable-gif use gif images (GIF file format)
1039 --enable-pcx use pcx images (PCX file format)
1040 --enable-iff use iff images (IFF file format)
1041 --enable-pnm use pnm images (PNM file format)
1042 --enable-xpm use xpm images (XPM file format)
1043 --enable-icocur use Windows ICO and CUR formats
77ffb593 1044 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1045 --enable-vendor=VENDOR vendor name (win32 DLL only)
1046 --disable-largefile omit support for large files
1047 --disable-gtktest do not try to compile and run a test GTK+ program
1048 --disable-gtktest Do not try to compile and run a test GTK program
1049 --disable-sdltest Do not try to compile and run a test SDL program
1050 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1051 --disable-precomp-headers
1052 don't use precompiled headers even if compiler can
a848cd7e
SC
1053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1057 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1058 --with-motif use Motif/Lesstif
1059 --with-mac use Mac OS X
1060 --with-cocoa use Cocoa
1061 --with-wine use Wine
1062 --with-msw use MS-Windows
1063 --with-pm use OS/2 Presentation Manager
1064 --with-mgl use SciTech MGL
1065 --with-microwin use MicroWindows
1066 --with-x11 use X11
1067 --with-libpng use libpng (PNG image format)
1068 --with-libjpeg use libjpeg (JPEG file format)
1069 --with-libtiff use libtiff (TIFF file format)
1070 --with-libxpm use libxpm (XPM file format)
1071 --with-libmspack use libmspack (CHM help files loading)
1072 --with-sdl use SDL for audio on Unix
d51253e8 1073 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1074 --with-opengl use OpenGL (or Mesa)
1075 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1076 --with-regex enable support for wxRegEx class
1077 --with-zlib use zlib for LZW compression
1078 --with-odbc use the IODBC and wxODBC classes
1079 --with-expat enable XML support using expat parser
ceec2216 1080 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1081 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1082 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1083 --with-x use the X Window System
1084 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1085 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1086 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1087 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1088 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1089
1090Some influential environment variables:
dcc1b6ad
VS
1091 CC C compiler command
1092 CFLAGS C compiler flags
1093 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1094 nonstandard directory <lib dir>
1095 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1096 headers in a nonstandard directory <include dir>
1097 CPP C preprocessor
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1100 CXXCPP C++ preprocessor
a848cd7e
SC
1101
1102Use these variables to override the choices made by `configure' or to help
1103it to find libraries and programs with nonstandard names/locations.
1104
77ffb593 1105Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1106_ACEOF
1107fi
1108
1109if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1115
1116if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120else
1121 ac_dir_suffix= ac_top_builddir=
1122fi
1123
1124case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative path.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138esac
ac1cb8d3
VS
1139
1140# Do not use `cd foo && pwd` to compute absolute paths, because
1141# the directories may not exist.
1142case `pwd` in
1143.) ac_abs_builddir="$ac_dir";;
1144*)
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_builddir=${ac_top_builddir}.;;
1153*)
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_srcdir=$ac_srcdir;;
1162*)
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_srcdir=$ac_top_srcdir;;
1171*)
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177esac
a848cd7e
SC
1178
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1188 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 fi
6ebeb4c7 1194 cd "$ac_popdir"
a848cd7e
SC
1195 done
1196fi
1197
1198test -n "$ac_init_help" && exit 0
1199if $ac_init_version; then
1200 cat <<\_ACEOF
eb730a0c 1201wxWidgets configure 2.6.2
ac1cb8d3 1202generated by GNU Autoconf 2.59
a848cd7e 1203
ac1cb8d3 1204Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1205This configure script is free software; the Free Software Foundation
1206gives unlimited permission to copy, distribute and modify it.
1207_ACEOF
1208 exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
eb730a0c 1215It was created by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 1216generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1217
1218 $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235
1236/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1237/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1240/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1241/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1242/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249 IFS=$as_save_IFS
1250 test -z "$as_dir" && as_dir=.
1251 echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278 for ac_arg
1279 do
1280 case $ac_arg in
1281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1284 continue ;;
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 esac
1288 case $ac_pass in
1289 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 2)
1291 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292 if test $ac_must_keep_next = true; then
ac1cb8d3 1293 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1294 else
ac1cb8d3
VS
1295 case $ac_arg in
1296 *=* | --config-cache | -C | -disable-* | --disable-* \
1297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299 | -with-* | --with-* | -without-* | --without-* | --x)
1300 case "$ac_configure_args0 " in
1301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 esac
1303 ;;
1304 -* ) ac_must_keep_next=true ;;
1305 esac
a848cd7e
SC
1306 fi
1307 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308 # Get rid of the leading space.
1309 ac_sep=" "
1310 ;;
1311 esac
1312 done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log. We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323 # Save into config.log some information that might help in debugging.
1324 {
1325 echo
1326
1327 cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332 echo
1333 # The following way of writing the cache mishandles newlines in values,
1334{
1335 (set) 2>&1 |
1336 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 *ac_space=\ *)
1338 sed -n \
ac1cb8d3
VS
1339 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1341 ;;
1342 *)
1343 sed -n \
ac1cb8d3 1344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1345 ;;
1346 esac;
1347}
1348 echo
1349
1350 cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_vars
1357 do
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1360 done | sort
1361 echo
1362
1363 if test -n "$ac_subst_files"; then
1364 cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369 echo
1370 for ac_var in $ac_subst_files
1371 do
1372 eval ac_val=$`echo $ac_var`
ac1cb8d3 1373 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1374 done | sort
1375 echo
1376 fi
1377
1378 if test -s confdefs.h; then
1379 cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384 echo
1385 sed "/^$/d" confdefs.h | sort
1386 echo
1387 fi
1388 test "$ac_signal" != 0 &&
1389 echo "$as_me: caught signal $ac_signal"
1390 echo "$as_me: exit $exit_status"
1391 } >&5
ac1cb8d3 1392 rm -f core *.core &&
a848cd7e
SC
1393 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 exit $exit_status
1395 ' 0
1396for ac_signal in 1 2 13 15; do
1397 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436 if test "x$prefix" != xNONE; then
1437 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 else
1439 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443 if test -r "$ac_site_file"; then
1444 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446 sed 's/^/| /' "$ac_site_file" >&5
1447 . "$ac_site_file"
1448 fi
1449done
1450
1451if test -r "$cache_file"; then
1452 # Some versions of bash will fail to source /dev/null (special
1453 # files actually), so we avoid doing that.
1454 if test -f "$cache_file"; then
1455 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457 case $cache_file in
1458 [\\/]* | ?:[\\/]* ) . $cache_file;;
1459 *) . ./$cache_file;;
1460 esac
1461 fi
1462else
1463 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465 >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
ac1cb8d3 1472 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474 eval ac_new_set=\$ac_env_${ac_var}_set
1475 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476 eval ac_new_val="\$ac_env_${ac_var}_value"
1477 case $ac_old_set,$ac_new_set in
1478 set,)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,set)
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1486 ,);;
1487 *)
1488 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1489 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1491 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1492echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1493 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1494echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1495 ac_cache_corrupted=:
a848cd7e
SC
1496 fi;;
1497 esac
1498 # Pass precious variables to config.status.
1499 if test "$ac_new_set" = set; then
1500 case $ac_new_val in
1501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503 *) ac_arg=$ac_var=$ac_new_val ;;
1504 esac
1505 case " $ac_configure_args " in
1506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1507 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508 esac
1509 fi
1510done
1511if $ac_cache_corrupted; then
1512 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516 { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554ac_aux_dir=
1555for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556 if test -f $ac_dir/install-sh; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 break
1560 elif test -f $ac_dir/install.sh; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 break
1564 elif test -f $ac_dir/shtool; then
1565 ac_aux_dir=$ac_dir
1566 ac_install_sh="$ac_aux_dir/shtool install -c"
1567 break
1568 fi
1569done
1570if test -z "$ac_aux_dir"; then
1571 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573 { (exit 1); exit 1; }; }
1574fi
1575ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579# Make sure we can run config.sub.
1580$ac_config_sub sun4 >/dev/null 2>&1 ||
1581 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1582echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585echo "$as_me:$LINENO: checking build system type" >&5
1586echo $ECHO_N "checking build system type... $ECHO_C" >&6
1587if test "${ac_cv_build+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_build_alias=$build_alias
1591test -z "$ac_cv_build_alias" &&
1592 ac_cv_build_alias=`$ac_config_guess`
1593test -z "$ac_cv_build_alias" &&
1594 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1595echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1596 { (exit 1); exit 1; }; }
1597ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1604echo "${ECHO_T}$ac_cv_build" >&6
1605build=$ac_cv_build
1606build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611echo "$as_me:$LINENO: checking host system type" >&5
1612echo $ECHO_N "checking host system type... $ECHO_C" >&6
1613if test "${ac_cv_host+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 ac_cv_host_alias=$host_alias
1617test -z "$ac_cv_host_alias" &&
1618 ac_cv_host_alias=$ac_cv_build_alias
1619ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624fi
1625echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1626echo "${ECHO_T}$ac_cv_host" >&6
1627host=$ac_cv_host
1628host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633echo "$as_me:$LINENO: checking target system type" >&5
1634echo $ECHO_N "checking target system type... $ECHO_C" >&6
1635if test "${ac_cv_target+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 ac_cv_target_alias=$target_alias
1639test "x$ac_cv_target_alias" = "x" &&
1640 ac_cv_target_alias=$ac_cv_host_alias
1641ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1648echo "${ECHO_T}$ac_cv_target" >&6
1649target=$ac_cv_target
1650target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655# The aliases save the names the user supplied, while $host etc.
1656# will get canonicalized.
1657test -n "$target_alias" &&
1658 test "$program_prefix$program_suffix$program_transform_name" = \
1659 NONENONEs,x,x, &&
1660 program_prefix=${target_alias}-
1661
1662
1663
ceec2216 1664wx_major_version_number=2
e0d84535 1665wx_minor_version_number=6
eb730a0c 1666wx_release_number=2
063c96c1 1667wx_subrelease_number=1
a848cd7e 1668
ceec2216
RL
1669WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1670WX_VERSION=$WX_RELEASE.$wx_release_number
1671WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1672
ceec2216 1673WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1674
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
a03b8b04
RD
1727DEFAULT_STD_FLAG=yes
1728
a848cd7e
SC
1729case "${host}" in
1730 *-hp-hpux* )
1731 USE_HPUX=1
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734 SO_SUFFIX=sl
1735 cat >>confdefs.h <<\_ACEOF
1736#define __HPUX__ 1
1737_ACEOF
1738
1739 ;;
1740 *-*-linux* )
1741 USE_LINUX=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __LINUX__ 1
1744_ACEOF
1745
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-gnu* | *-*-k*bsd*-gnu )
1757 USE_GNU=1
1758 TMP=`uname -m`
1759 if test "x$TMP" = "xalpha"; then
1760 USE_ALPHA=1
1761 cat >>confdefs.h <<\_ACEOF
1762#define __ALPHA__ 1
1763_ACEOF
1764
1765 fi
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-irix5* | *-*-irix6* )
1769 USE_SGI=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SGI__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SVR4__ 1
1777_ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780 ;;
1781 *-*-solaris2* )
1782 USE_SUN=1
1783 USE_SOLARIS=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SUN__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SOLARIS__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SVR4__ 1
1795_ACEOF
1796
1797 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799 ;;
1800 *-*-sunos4* )
1801 USE_SUN=1
1802 USE_SUNOS=1
1803 USE_BSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUN__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUNOS__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817 ;;
1818 *-*-freebsd*)
1819 USE_BSD=1
1820 USE_FREEBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __FREEBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-openbsd*)
1832 USE_BSD=1
1833 USE_OPENBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __OPENBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-netbsd*)
1845 USE_BSD=1
1846 USE_NETBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __NETBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-osf* )
1858 USE_ALPHA=1
1859 USE_OSF=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __OSF__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 ;;
1871 *-*-dgux5* )
1872 USE_ALPHA=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-sysv5* )
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SYSV__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SVR4__ 1
1893_ACEOF
1894
1895 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896 ;;
1897 *-*-aix* )
1898 USE_AIX=1
1899 USE_SYSV=1
1900 USE_SVR4=1
1901 SO_SUFFIX=a
1902 cat >>confdefs.h <<\_ACEOF
1903#define __AIX__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SYSV__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SVR4__ 1
1912_ACEOF
1913
1914 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915 ;;
1916
1917 *-*-*UnixWare*)
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 USE_UNIXWARE=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __UNIXWARE__ 1
1923_ACEOF
1924
1925 ;;
1926
1927 *-*-cygwin* | *-*-mingw32* )
1928 SO_SUFFIX=dll
1929 PROGRAM_EXT=".exe"
1930 RESCOMP=windres
1931 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1932 DEFAULT_STD_FLAG=no
a848cd7e
SC
1933 ;;
1934
1935 *-pc-msdosdjgpp )
1936 USE_UNIX=0
1937 USE_DOS=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __DOS__ 1
1940_ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1944 ;;
1945
1946 *-pc-os2_emx | *-pc-os2-emx )
1947 cat >>confdefs.h <<\_ACEOF
1948#define __EMX__ 1
1949_ACEOF
1950
1951 USE_OS2=1
1952 cat >>confdefs.h <<\_ACEOF
1953#define __OS2__ 1
1954_ACEOF
1955
1956 PROGRAM_EXT=".exe"
1957 DEFAULT_DEFAULT_wxUSE_PM=1
1958 CXX=gcc
1959 LDFLAGS="$LDFLAGS -Zcrtdll"
1960 ac_executable_extensions=".exe"
1961 export ac_executable_extensions
1962 ac_save_IFS="$IFS"
1963 IFS='\\'
1964 ac_TEMP_PATH=
1965 for ac_dir in $PATH; do
1966 IFS=$ac_save_IFS
1967 if test -z "$ac_TEMP_PATH"; then
1968 ac_TEMP_PATH="$ac_dir"
1969 else
1970 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1971 fi
1972 done
1973 export PATH="$ac_TEMP_PATH"
1974 unset ac_TEMP_PATH
a03b8b04 1975 DEFAULT_STD_FLAG=no
a848cd7e
SC
1976 ;;
1977
cfda0ea8 1978 *-*-darwin* )
a848cd7e
SC
1979 USE_BSD=1
1980 USE_DARWIN=1
1981 SO_SUFFIX=dylib
1982 cat >>confdefs.h <<\_ACEOF
1983#define __BSD__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define __DARWIN__ 1
a848cd7e
SC
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define TARGET_CARBON 1
1992_ACEOF
1993
1994 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1995 DEFAULT_STD_FLAG=no
a848cd7e 1996 ;;
1e9e8aba
DE
1997 powerpc-apple-macos* )
1998 USE_UNIX=0
1999 ac_cv_c_bigendian=yes
2000 SO_SUFFIX=shlib
2001 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2002 DEFAULT_STD_FLAG=no
1e9e8aba 2003 ;;
a848cd7e
SC
2004
2005 *-*-beos* )
2006 USE_BEOS=1
2007 cat >>confdefs.h <<\_ACEOF
2008#define __BEOS__ 1
2009_ACEOF
2010
2011 ;;
2012
2013 *)
2014 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2015echo "$as_me: error: unknown system type ${host}." >&2;}
2016 { (exit 1); exit 1; }; }
2017esac
2018
2019
2020
2021
2022 wx_arg_cache_file="configarg.cache"
2023 echo "loading argument cache $wx_arg_cache_file"
2024 rm -f ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}.tmp
2026 touch ${wx_arg_cache_file}
2027
2028
2029DEBUG_CONFIGURE=0
2030if test $DEBUG_CONFIGURE = 1; then
2031 DEFAULT_wxUSE_UNIVERSAL=no
2032 DEFAULT_wxUSE_STL=no
2033
2034 DEFAULT_wxUSE_NANOX=no
2035
2036 DEFAULT_wxUSE_THREADS=yes
2037
2038 DEFAULT_wxUSE_SHARED=yes
2039 DEFAULT_wxUSE_OPTIMISE=no
2040 DEFAULT_wxUSE_PROFILE=no
2041 DEFAULT_wxUSE_NO_DEPS=no
2042 DEFAULT_wxUSE_NO_RTTI=no
2043 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2044 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2045 DEFAULT_wxUSE_PERMISSIVE=no
2046 DEFAULT_wxUSE_DEBUG_FLAG=yes
2047 DEFAULT_wxUSE_DEBUG_INFO=yes
2048 DEFAULT_wxUSE_DEBUG_GDB=yes
2049 DEFAULT_wxUSE_MEM_TRACING=no
2050 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2051 DEFAULT_wxUSE_DMALLOC=no
2052 DEFAULT_wxUSE_APPLE_IEEE=no
2053
2054 DEFAULT_wxUSE_EXCEPTIONS=no
2055 DEFAULT_wxUSE_LOG=yes
2056 DEFAULT_wxUSE_LOGWINDOW=no
2057 DEFAULT_wxUSE_LOGGUI=no
2058 DEFAULT_wxUSE_LOGDIALOG=no
2059
2060 DEFAULT_wxUSE_GUI=yes
2061 DEFAULT_wxUSE_CONTROLS=no
2062
2063 DEFAULT_wxUSE_REGEX=no
2064 DEFAULT_wxUSE_XML=no
2065 DEFAULT_wxUSE_EXPAT=no
2066 DEFAULT_wxUSE_ZLIB=no
2067 DEFAULT_wxUSE_LIBPNG=no
2068 DEFAULT_wxUSE_LIBJPEG=no
2069 DEFAULT_wxUSE_LIBTIFF=no
2070 DEFAULT_wxUSE_LIBXPM=no
2071 DEFAULT_wxUSE_LIBMSPACK=no
2072 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2073 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2074 DEFAULT_wxUSE_ODBC=no
2075 DEFAULT_wxUSE_OPENGL=no
2076
2077 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2078 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2079 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2080 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2081 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2082 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2083 DEFAULT_wxUSE_CMDLINE_PARSER=no
2084 DEFAULT_wxUSE_DATETIME=no
2085 DEFAULT_wxUSE_TIMER=no
2086 DEFAULT_wxUSE_STOPWATCH=no
2087 DEFAULT_wxUSE_FILE=no
2088 DEFAULT_wxUSE_FFILE=no
07158944 2089 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2090 DEFAULT_wxUSE_TEXTBUFFER=no
2091 DEFAULT_wxUSE_TEXTFILE=no
2092 DEFAULT_wxUSE_SOUND=no
3b57de8b 2093 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2094 DEFAULT_wxUSE_INTL=no
2095 DEFAULT_wxUSE_CONFIG=no
2096 DEFAULT_wxUSE_FONTMAP=no
2097 DEFAULT_wxUSE_STREAMS=no
2098 DEFAULT_wxUSE_SOCKETS=no
2099 DEFAULT_wxUSE_OLE=no
2100 DEFAULT_wxUSE_DATAOBJ=no
2101 DEFAULT_wxUSE_DIALUP_MANAGER=no
2102 DEFAULT_wxUSE_JOYSTICK=no
2103 DEFAULT_wxUSE_DYNLIB_CLASS=no
2104 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2105 DEFAULT_wxUSE_LONGLONG=no
2106 DEFAULT_wxUSE_GEOMETRY=no
2107
2108 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2109 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2110 DEFAULT_wxUSE_POSTSCRIPT=no
2111
2112 DEFAULT_wxUSE_CLIPBOARD=no
2113 DEFAULT_wxUSE_TOOLTIPS=no
2114 DEFAULT_wxUSE_DRAG_AND_DROP=no
2115 DEFAULT_wxUSE_DRAGIMAGE=no
2116 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2117 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2118
8a7b1113 2119 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2120 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2121 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2122 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2123
2124 DEFAULT_wxUSE_RESOURCES=no
2125 DEFAULT_wxUSE_CONSTRAINTS=no
2126 DEFAULT_wxUSE_IPC=no
2127 DEFAULT_wxUSE_HELP=no
2128 DEFAULT_wxUSE_MS_HTML_HELP=no
2129 DEFAULT_wxUSE_WXHTML_HELP=no
2130 DEFAULT_wxUSE_TREELAYOUT=no
2131 DEFAULT_wxUSE_METAFILE=no
2132 DEFAULT_wxUSE_MIMETYPE=no
2133 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2134 DEFAULT_wxUSE_PROTOCOL=no
2135 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FTP=no
2137 DEFAULT_wxUSE_PROTOCOL_FILE=no
2138 DEFAULT_wxUSE_URL=no
2139
2140 DEFAULT_wxUSE_COMMONDLGS=no
2141 DEFAULT_wxUSE_CHOICEDLG=no
2142 DEFAULT_wxUSE_COLOURDLG=no
2143 DEFAULT_wxUSE_DIRDLG=no
2144 DEFAULT_wxUSE_FILEDLG=no
2145 DEFAULT_wxUSE_FINDREPLDLG=no
2146 DEFAULT_wxUSE_FONTDLG=no
2147 DEFAULT_wxUSE_MSGDLG=no
2148 DEFAULT_wxUSE_NUMBERDLG=no
2149 DEFAULT_wxUSE_TEXTDLG=no
2150 DEFAULT_wxUSE_SPLASH=no
2151 DEFAULT_wxUSE_STARTUP_TIPS=no
2152 DEFAULT_wxUSE_PROGRESSDLG=no
2153 DEFAULT_wxUSE_WIZARDDLG=no
2154
2155 DEFAULT_wxUSE_MENUS=no
2156 DEFAULT_wxUSE_MINIFRAME=no
2157 DEFAULT_wxUSE_HTML=no
9a8f0513 2158 DEFAULT_wxUSE_XRC=no
646b6ec1 2159 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2160 DEFAULT_wxUSE_FILESYSTEM=no
2161 DEFAULT_wxUSE_FS_INET=no
2162 DEFAULT_wxUSE_FS_ZIP=no
2163 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2164 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2165 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2166 DEFAULT_wxUSE_VALIDATORS=no
2167
2168 DEFAULT_wxUSE_ACCEL=no
2169 DEFAULT_wxUSE_BUTTON=no
2170 DEFAULT_wxUSE_BMPBUTTON=no
2171 DEFAULT_wxUSE_CALCTRL=no
2172 DEFAULT_wxUSE_CARET=no
2173 DEFAULT_wxUSE_CHECKBOX=no
2174 DEFAULT_wxUSE_CHECKLST=no
2175 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2176 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2177 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2178 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2179 DEFAULT_wxUSE_DISPLAY=no
2180 DEFAULT_wxUSE_GAUGE=no
2181 DEFAULT_wxUSE_GRID=no
2182 DEFAULT_wxUSE_IMAGLIST=no
2183 DEFAULT_wxUSE_LISTBOOK=no
2184 DEFAULT_wxUSE_LISTBOX=no
2185 DEFAULT_wxUSE_LISTCTRL=no
2186 DEFAULT_wxUSE_NOTEBOOK=no
2187 DEFAULT_wxUSE_RADIOBOX=no
2188 DEFAULT_wxUSE_RADIOBTN=no
2189 DEFAULT_wxUSE_SASH=no
2190 DEFAULT_wxUSE_SCROLLBAR=no
2191 DEFAULT_wxUSE_SLIDER=no
2192 DEFAULT_wxUSE_SPINBTN=no
2193 DEFAULT_wxUSE_SPINCTRL=no
2194 DEFAULT_wxUSE_SPLITTER=no
2195 DEFAULT_wxUSE_STATBMP=no
2196 DEFAULT_wxUSE_STATBOX=no
2197 DEFAULT_wxUSE_STATLINE=no
2198 DEFAULT_wxUSE_STATTEXT=no
2199 DEFAULT_wxUSE_STATUSBAR=yes
2200 DEFAULT_wxUSE_TABDIALOG=no
2201 DEFAULT_wxUSE_TEXTCTRL=no
2202 DEFAULT_wxUSE_TOGGLEBTN=no
2203 DEFAULT_wxUSE_TOOLBAR=no
2204 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2205 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2206 DEFAULT_wxUSE_TREECTRL=no
2207 DEFAULT_wxUSE_POPUPWIN=no
2208 DEFAULT_wxUSE_TIPWINDOW=no
2209
2210 DEFAULT_wxUSE_UNICODE=no
2211 DEFAULT_wxUSE_UNICODE_MSLU=no
2212 DEFAULT_wxUSE_WCSRTOMBS=no
2213
2214 DEFAULT_wxUSE_PALETTE=no
2215 DEFAULT_wxUSE_IMAGE=no
2216 DEFAULT_wxUSE_GIF=no
2217 DEFAULT_wxUSE_PCX=no
2218 DEFAULT_wxUSE_PNM=no
2219 DEFAULT_wxUSE_IFF=no
2220 DEFAULT_wxUSE_XPM=no
2221 DEFAULT_wxUSE_ICO_CUR=no
2222 DEFAULT_wxUSE_ACCESSIBILITY=no
2223
2224 DEFAULT_wxUSE_MONOLITHIC=no
2225 DEFAULT_wxUSE_PLUGINS=no
2226 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2227else
2228 DEFAULT_wxUSE_UNIVERSAL=no
2229 DEFAULT_wxUSE_STL=no
2230
2231 DEFAULT_wxUSE_NANOX=no
2232
2233 DEFAULT_wxUSE_THREADS=yes
2234
2235 DEFAULT_wxUSE_SHARED=yes
2236 DEFAULT_wxUSE_OPTIMISE=yes
2237 DEFAULT_wxUSE_PROFILE=no
2238 DEFAULT_wxUSE_NO_DEPS=no
2239 DEFAULT_wxUSE_NO_RTTI=no
2240 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2241 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2242 DEFAULT_wxUSE_PERMISSIVE=no
2243 DEFAULT_wxUSE_DEBUG_FLAG=no
2244 DEFAULT_wxUSE_DEBUG_INFO=no
2245 DEFAULT_wxUSE_DEBUG_GDB=no
2246 DEFAULT_wxUSE_MEM_TRACING=no
2247 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2248 DEFAULT_wxUSE_DMALLOC=no
2249 DEFAULT_wxUSE_APPLE_IEEE=yes
2250
2251 DEFAULT_wxUSE_EXCEPTIONS=yes
2252 DEFAULT_wxUSE_LOG=yes
2253 DEFAULT_wxUSE_LOGWINDOW=yes
2254 DEFAULT_wxUSE_LOGGUI=yes
2255 DEFAULT_wxUSE_LOGDIALOG=yes
2256
2257 DEFAULT_wxUSE_GUI=yes
2258
2259 DEFAULT_wxUSE_REGEX=yes
2260 DEFAULT_wxUSE_XML=yes
2261 DEFAULT_wxUSE_EXPAT=yes
2262 DEFAULT_wxUSE_ZLIB=yes
2263 DEFAULT_wxUSE_LIBPNG=yes
2264 DEFAULT_wxUSE_LIBJPEG=yes
2265 DEFAULT_wxUSE_LIBTIFF=yes
2266 DEFAULT_wxUSE_LIBXPM=yes
2267 DEFAULT_wxUSE_LIBMSPACK=yes
2268 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2269 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2270 DEFAULT_wxUSE_ODBC=no
52cb607e 2271 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2272
2273 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2274 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2275 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2276 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2277 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2278 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2279 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2280 DEFAULT_wxUSE_DATETIME=yes
2281 DEFAULT_wxUSE_TIMER=yes
2282 DEFAULT_wxUSE_STOPWATCH=yes
2283 DEFAULT_wxUSE_FILE=yes
2284 DEFAULT_wxUSE_FFILE=yes
07158944 2285 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2286 DEFAULT_wxUSE_TEXTBUFFER=yes
2287 DEFAULT_wxUSE_TEXTFILE=yes
2288 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2289 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2290 DEFAULT_wxUSE_INTL=yes
2291 DEFAULT_wxUSE_CONFIG=yes
2292 DEFAULT_wxUSE_FONTMAP=yes
2293 DEFAULT_wxUSE_STREAMS=yes
2294 DEFAULT_wxUSE_SOCKETS=yes
2295 DEFAULT_wxUSE_OLE=yes
2296 DEFAULT_wxUSE_DATAOBJ=yes
2297 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2298 DEFAULT_wxUSE_JOYSTICK=yes
2299 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2300 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2301 DEFAULT_wxUSE_LONGLONG=yes
2302 DEFAULT_wxUSE_GEOMETRY=yes
2303
2304 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2305 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2306 DEFAULT_wxUSE_POSTSCRIPT=yes
2307
2308 DEFAULT_wxUSE_CLIPBOARD=yes
2309 DEFAULT_wxUSE_TOOLTIPS=yes
2310 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2311 DEFAULT_wxUSE_DRAGIMAGE=yes
2312 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2313 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2314
8a7b1113 2315 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2316 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2318 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2319
2320 DEFAULT_wxUSE_RESOURCES=no
2321 DEFAULT_wxUSE_CONSTRAINTS=yes
2322 DEFAULT_wxUSE_IPC=yes
2323 DEFAULT_wxUSE_HELP=yes
2324 DEFAULT_wxUSE_MS_HTML_HELP=yes
2325 DEFAULT_wxUSE_WXHTML_HELP=yes
2326 DEFAULT_wxUSE_TREELAYOUT=yes
2327 DEFAULT_wxUSE_METAFILE=yes
2328 DEFAULT_wxUSE_MIMETYPE=yes
2329 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2330 DEFAULT_wxUSE_PROTOCOL=yes
2331 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2333 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2334 DEFAULT_wxUSE_URL=yes
2335
2336 DEFAULT_wxUSE_COMMONDLGS=yes
2337 DEFAULT_wxUSE_CHOICEDLG=yes
2338 DEFAULT_wxUSE_COLOURDLG=yes
2339 DEFAULT_wxUSE_DIRDLG=yes
2340 DEFAULT_wxUSE_FILEDLG=yes
2341 DEFAULT_wxUSE_FINDREPLDLG=yes
2342 DEFAULT_wxUSE_FONTDLG=yes
2343 DEFAULT_wxUSE_MSGDLG=yes
2344 DEFAULT_wxUSE_NUMBERDLG=yes
2345 DEFAULT_wxUSE_TEXTDLG=yes
2346 DEFAULT_wxUSE_SPLASH=yes
2347 DEFAULT_wxUSE_STARTUP_TIPS=yes
2348 DEFAULT_wxUSE_PROGRESSDLG=yes
2349 DEFAULT_wxUSE_WIZARDDLG=yes
2350
2351 DEFAULT_wxUSE_MENUS=yes
2352 DEFAULT_wxUSE_MINIFRAME=yes
2353 DEFAULT_wxUSE_HTML=yes
9a8f0513 2354 DEFAULT_wxUSE_XRC=yes
646b6ec1 2355 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2356 DEFAULT_wxUSE_FILESYSTEM=yes
2357 DEFAULT_wxUSE_FS_INET=yes
2358 DEFAULT_wxUSE_FS_ZIP=yes
2359 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2360 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2361 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2362 DEFAULT_wxUSE_VALIDATORS=yes
2363
2364 DEFAULT_wxUSE_ACCEL=yes
2365 DEFAULT_wxUSE_BUTTON=yes
2366 DEFAULT_wxUSE_BMPBUTTON=yes
2367 DEFAULT_wxUSE_CALCTRL=yes
2368 DEFAULT_wxUSE_CARET=yes
2369 DEFAULT_wxUSE_CHECKBOX=yes
2370 DEFAULT_wxUSE_CHECKLST=yes
2371 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2372 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2373 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2374 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2375 DEFAULT_wxUSE_DISPLAY=yes
2376 DEFAULT_wxUSE_GAUGE=yes
2377 DEFAULT_wxUSE_GRID=yes
2378 DEFAULT_wxUSE_IMAGLIST=yes
2379 DEFAULT_wxUSE_LISTBOOK=yes
2380 DEFAULT_wxUSE_LISTBOX=yes
2381 DEFAULT_wxUSE_LISTCTRL=yes
2382 DEFAULT_wxUSE_NOTEBOOK=yes
2383 DEFAULT_wxUSE_RADIOBOX=yes
2384 DEFAULT_wxUSE_RADIOBTN=yes
2385 DEFAULT_wxUSE_SASH=yes
2386 DEFAULT_wxUSE_SCROLLBAR=yes
2387 DEFAULT_wxUSE_SLIDER=yes
2388 DEFAULT_wxUSE_SPINBTN=yes
2389 DEFAULT_wxUSE_SPINCTRL=yes
2390 DEFAULT_wxUSE_SPLITTER=yes
2391 DEFAULT_wxUSE_STATBMP=yes
2392 DEFAULT_wxUSE_STATBOX=yes
2393 DEFAULT_wxUSE_STATLINE=yes
2394 DEFAULT_wxUSE_STATTEXT=yes
2395 DEFAULT_wxUSE_STATUSBAR=yes
2396 DEFAULT_wxUSE_TABDIALOG=no
2397 DEFAULT_wxUSE_TEXTCTRL=yes
2398 DEFAULT_wxUSE_TOGGLEBTN=yes
2399 DEFAULT_wxUSE_TOOLBAR=yes
2400 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2401 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2402 DEFAULT_wxUSE_TREECTRL=yes
2403 DEFAULT_wxUSE_POPUPWIN=yes
2404 DEFAULT_wxUSE_TIPWINDOW=yes
2405
78de529b 2406 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2407 DEFAULT_wxUSE_UNICODE_MSLU=yes
2408 DEFAULT_wxUSE_WCSRTOMBS=no
2409
2410 DEFAULT_wxUSE_PALETTE=yes
2411 DEFAULT_wxUSE_IMAGE=yes
2412 DEFAULT_wxUSE_GIF=yes
2413 DEFAULT_wxUSE_PCX=yes
2414 DEFAULT_wxUSE_IFF=no
2415 DEFAULT_wxUSE_PNM=yes
2416 DEFAULT_wxUSE_XPM=yes
2417 DEFAULT_wxUSE_ICO_CUR=yes
2418 DEFAULT_wxUSE_ACCESSIBILITY=no
2419
2420 DEFAULT_wxUSE_MONOLITHIC=no
2421 DEFAULT_wxUSE_PLUGINS=no
2422 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2423
f34ca037 2424 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2425fi
2426
2427
2428
f34ca037 2429
a848cd7e
SC
2430for toolkit in `echo $ALL_TOOLKITS`; do
2431 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2432 if test "x$LINE" != "x" ; then
2433 has_toolkit_in_cache=1
2434 eval "DEFAULT_$LINE"
2435 eval "CACHE_$toolkit=1"
f34ca037
MW
2436
2437 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2438 if test "x$LINE" != "x" ; then
2439 eval "DEFAULT_$LINE"
2440 fi
a848cd7e
SC
2441 fi
2442done
2443
2444
2445
2446 enablestring=
2447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2448echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2449 no_cache=0
2450 # Check whether --enable-gui or --disable-gui was given.
2451if test "${enable_gui+set}" = set; then
2452 enableval="$enable_gui"
2453
2454 if test "$enableval" = yes; then
2455 ac_cv_use_gui='wxUSE_GUI=yes'
2456 else
2457 ac_cv_use_gui='wxUSE_GUI=no'
2458 fi
2459
2460else
2461
2462 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2463 if test "x$LINE" != x ; then
2464 eval "DEFAULT_$LINE"
2465 else
2466 no_cache=1
2467 fi
2468
2469 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2470
2471fi;
2472
2473 eval "$ac_cv_use_gui"
2474 if test "$no_cache" != 1; then
2475 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2476 fi
2477
2478 if test "$wxUSE_GUI" = yes; then
2479 echo "$as_me:$LINENO: result: yes" >&5
2480echo "${ECHO_T}yes" >&6
2481 else
2482 echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6
2484 fi
2485
2486
2487 enablestring=
2488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2489echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2490 no_cache=0
2491 # Check whether --enable-monolithic or --disable-monolithic was given.
2492if test "${enable_monolithic+set}" = set; then
2493 enableval="$enable_monolithic"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2497 else
2498 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2499 fi
2500
2501else
2502
2503 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2511
2512fi;
2513
2514 eval "$ac_cv_use_monolithic"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_MONOLITHIC" = yes; then
2520 echo "$as_me:$LINENO: result: yes" >&5
2521echo "${ECHO_T}yes" >&6
2522 else
2523 echo "$as_me:$LINENO: result: no" >&5
2524echo "${ECHO_T}no" >&6
2525 fi
2526
2527
2528 enablestring=
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2531 no_cache=0
2532 # Check whether --enable-plugins or --disable-plugins was given.
2533if test "${enable_plugins+set}" = set; then
2534 enableval="$enable_plugins"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2538 else
2539 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2540 fi
2541
2542else
2543
2544 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2552
2553fi;
2554
2555 eval "$ac_cv_use_plugins"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_PLUGINS" = yes; then
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
2563 else
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
2566 fi
2567
2568
2569if test "$wxUSE_GUI" = "yes"; then
2570
2571
2572 enablestring=
2573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2574echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2575 no_cache=0
2576 # Check whether --enable-universal or --disable-universal was given.
2577if test "${enable_universal+set}" = set; then
2578 enableval="$enable_universal"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2582 else
2583 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2596
2597fi;
2598
2599 eval "$ac_cv_use_universal"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_UNIVERSAL" = yes; then
2605 echo "$as_me:$LINENO: result: yes" >&5
2606echo "${ECHO_T}yes" >&6
2607 else
2608 echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6
2610 fi
2611
2612
2613# Check whether --with-gtk or --without-gtk was given.
2614if test "${with_gtk+set}" = set; then
2615 withval="$with_gtk"
2616 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2617fi;
2618
2619# Check whether --with-motif or --without-motif was given.
2620if test "${with_motif+set}" = set; then
2621 withval="$with_motif"
2622 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-mac or --without-mac was given.
2626if test "${with_mac+set}" = set; then
2627 withval="$with_mac"
c228d3a4 2628 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2629fi;
2630
2631# Check whether --with-cocoa or --without-cocoa was given.
2632if test "${with_cocoa+set}" = set; then
2633 withval="$with_cocoa"
c228d3a4 2634 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2635fi;
2636
2637# Check whether --with-wine or --without-wine was given.
2638if test "${with_wine+set}" = set; then
2639 withval="$with_wine"
2640 wxUSE_WINE="$withval" CACHE_WINE=1
2641fi;
2642
2643# Check whether --with-msw or --without-msw was given.
2644if test "${with_msw+set}" = set; then
2645 withval="$with_msw"
2646 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649# Check whether --with-pm or --without-pm was given.
2650if test "${with_pm+set}" = set; then
2651 withval="$with_pm"
2652 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2653fi;
2654
2655# Check whether --with-mgl or --without-mgl was given.
2656if test "${with_mgl+set}" = set; then
2657 withval="$with_mgl"
2658 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2659fi;
2660
2661# Check whether --with-microwin or --without-microwin was given.
2662if test "${with_microwin+set}" = set; then
2663 withval="$with_microwin"
2664 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2665fi;
2666
2667# Check whether --with-x11 or --without-x11 was given.
2668if test "${with_x11+set}" = set; then
2669 withval="$with_x11"
2670 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2671fi;
2672
2673 enablestring=
2674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2675echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2676 no_cache=0
2677 # Check whether --enable-nanox or --disable-nanox was given.
2678if test "${enable_nanox+set}" = set; then
2679 enableval="$enable_nanox"
2680
2681 if test "$enableval" = yes; then
2682 ac_cv_use_nanox='wxUSE_NANOX=yes'
2683 else
2684 ac_cv_use_nanox='wxUSE_NANOX=no'
2685 fi
2686
2687else
2688
2689 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2697
2698fi;
2699
2700 eval "$ac_cv_use_nanox"
2701 if test "$no_cache" != 1; then
2702 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2703 fi
2704
2705 if test "$wxUSE_NANOX" = yes; then
2706 echo "$as_me:$LINENO: result: yes" >&5
2707echo "${ECHO_T}yes" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711 fi
2712
2713
f34ca037
MW
2714# Check whether --enable-gtk2 or --disable-gtk2 was given.
2715if test "${enable_gtk2+set}" = set; then
2716 enableval="$enable_gtk2"
2717 wxUSE_GTK2="$enableval"
2718fi;
a848cd7e 2719
a848cd7e
SC
2720 enablestring=
2721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2722echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2723 no_cache=0
2724 # Check whether --enable-gpe or --disable-gpe was given.
2725if test "${enable_gpe+set}" = set; then
2726 enableval="$enable_gpe"
2727
2728 if test "$enableval" = yes; then
2729 ac_cv_use_gpe='wxUSE_GPE=yes'
2730 else
2731 ac_cv_use_gpe='wxUSE_GPE=no'
2732 fi
2733
2734else
2735
2736 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2737 if test "x$LINE" != x ; then
2738 eval "DEFAULT_$LINE"
2739 else
2740 no_cache=1
2741 fi
2742
2743 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2744
2745fi;
2746
2747 eval "$ac_cv_use_gpe"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_GPE" = yes; then
2753 echo "$as_me:$LINENO: result: yes" >&5
2754echo "${ECHO_T}yes" >&6
2755 else
2756 echo "$as_me:$LINENO: result: no" >&5
2757echo "${ECHO_T}no" >&6
2758 fi
2759
2760
2761
2762 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2763echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2764 no_cache=0
2765
2766# Check whether --with-libpng or --without-libpng was given.
2767if test "${with_libpng+set}" = set; then
2768 withval="$with_libpng"
2769
2770 if test "$withval" = yes; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2772 elif test "$withval" = no; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2774 elif test "$withval" = sys; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2776 elif test "$withval" = builtin; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2778 else
2779 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2780echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2781 { (exit 1); exit 1; }; }
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2794
2795fi;
2796
2797 eval "$ac_cv_use_libpng"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_LIBPNG" = yes; then
2803 echo "$as_me:$LINENO: result: yes" >&5
2804echo "${ECHO_T}yes" >&6
2805 elif test "$wxUSE_LIBPNG" = no; then
2806 echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808 elif test "$wxUSE_LIBPNG" = sys; then
2809 echo "$as_me:$LINENO: result: system version" >&5
2810echo "${ECHO_T}system version" >&6
2811 elif test "$wxUSE_LIBPNG" = builtin; then
2812 echo "$as_me:$LINENO: result: builtin version" >&5
2813echo "${ECHO_T}builtin version" >&6
2814 else
2815 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2816echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2817 { (exit 1); exit 1; }; }
2818 fi
2819
2820
2821 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2822echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2823 no_cache=0
2824
2825# Check whether --with-libjpeg or --without-libjpeg was given.
2826if test "${with_libjpeg+set}" = set; then
2827 withval="$with_libjpeg"
2828
2829 if test "$withval" = yes; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2831 elif test "$withval" = no; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2833 elif test "$withval" = sys; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2835 elif test "$withval" = builtin; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843else
2844
2845 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2846 if test "x$LINE" != x ; then
2847 eval "DEFAULT_$LINE"
2848 else
2849 no_cache=1
2850 fi
2851
2852 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2853
2854fi;
2855
2856 eval "$ac_cv_use_libjpeg"
2857 if test "$no_cache" != 1; then
2858 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2859 fi
2860
2861 if test "$wxUSE_LIBJPEG" = yes; then
2862 echo "$as_me:$LINENO: result: yes" >&5
2863echo "${ECHO_T}yes" >&6
2864 elif test "$wxUSE_LIBJPEG" = no; then
2865 echo "$as_me:$LINENO: result: no" >&5
2866echo "${ECHO_T}no" >&6
2867 elif test "$wxUSE_LIBJPEG" = sys; then
2868 echo "$as_me:$LINENO: result: system version" >&5
2869echo "${ECHO_T}system version" >&6
2870 elif test "$wxUSE_LIBJPEG" = builtin; then
2871 echo "$as_me:$LINENO: result: builtin version" >&5
2872echo "${ECHO_T}builtin version" >&6
2873 else
2874 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2875echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2876 { (exit 1); exit 1; }; }
2877 fi
2878
2879
2880 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2881echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2882 no_cache=0
2883
2884# Check whether --with-libtiff or --without-libtiff was given.
2885if test "${with_libtiff+set}" = set; then
2886 withval="$with_libtiff"
2887
2888 if test "$withval" = yes; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2890 elif test "$withval" = no; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2892 elif test "$withval" = sys; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2894 elif test "$withval" = builtin; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902else
2903
2904 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2905 if test "x$LINE" != x ; then
2906 eval "DEFAULT_$LINE"
2907 else
2908 no_cache=1
2909 fi
2910
2911 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2912
2913fi;
2914
2915 eval "$ac_cv_use_libtiff"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_LIBTIFF" = yes; then
2921 echo "$as_me:$LINENO: result: yes" >&5
2922echo "${ECHO_T}yes" >&6
2923 elif test "$wxUSE_LIBTIFF" = no; then
2924 echo "$as_me:$LINENO: result: no" >&5
2925echo "${ECHO_T}no" >&6
2926 elif test "$wxUSE_LIBTIFF" = sys; then
2927 echo "$as_me:$LINENO: result: system version" >&5
2928echo "${ECHO_T}system version" >&6
2929 elif test "$wxUSE_LIBTIFF" = builtin; then
2930 echo "$as_me:$LINENO: result: builtin version" >&5
2931echo "${ECHO_T}builtin version" >&6
2932 else
2933 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2934echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938
2939 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2940echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2941 no_cache=0
2942
2943# Check whether --with-libxpm or --without-libxpm was given.
2944if test "${with_libxpm+set}" = set; then
2945 withval="$with_libxpm"
2946
2947 if test "$withval" = yes; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2949 elif test "$withval" = no; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2951 elif test "$withval" = sys; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2953 elif test "$withval" = builtin; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961else
2962
2963 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2964 if test "x$LINE" != x ; then
2965 eval "DEFAULT_$LINE"
2966 else
2967 no_cache=1
2968 fi
2969
2970 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2971
2972fi;
2973
2974 eval "$ac_cv_use_libxpm"
2975 if test "$no_cache" != 1; then
2976 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2977 fi
2978
2979 if test "$wxUSE_LIBXPM" = yes; then
2980 echo "$as_me:$LINENO: result: yes" >&5
2981echo "${ECHO_T}yes" >&6
2982 elif test "$wxUSE_LIBXPM" = no; then
2983 echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6
2985 elif test "$wxUSE_LIBXPM" = sys; then
2986 echo "$as_me:$LINENO: result: system version" >&5
2987echo "${ECHO_T}system version" >&6
2988 elif test "$wxUSE_LIBXPM" = builtin; then
2989 echo "$as_me:$LINENO: result: builtin version" >&5
2990echo "${ECHO_T}builtin version" >&6
2991 else
2992 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2993echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2994 { (exit 1); exit 1; }; }
2995 fi
2996
2997
2998 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2999echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3000 no_cache=0
3001
3002# Check whether --with-libmspack or --without-libmspack was given.
3003if test "${with_libmspack+set}" = set; then
3004 withval="$with_libmspack"
3005
3006 if test "$withval" = yes; then
3007 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3008 else
3009 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3010 fi
3011
3012else
3013
3014 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3022
3023fi;
3024
3025 eval "$ac_cv_use_libmspack"
3026 if test "$no_cache" != 1; then
3027 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3028 fi
3029
3030 if test "$wxUSE_LIBMSPACK" = yes; then
3031 echo "$as_me:$LINENO: result: yes" >&5
3032echo "${ECHO_T}yes" >&6
3033 else
3034 echo "$as_me:$LINENO: result: no" >&5
3035echo "${ECHO_T}no" >&6
3036 fi
3037
3038
3039 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3040echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3041 no_cache=0
3042
3043# Check whether --with-sdl or --without-sdl was given.
3044if test "${with_sdl+set}" = set; then
3045 withval="$with_sdl"
3046
3047 if test "$withval" = yes; then
3048 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3049 else
3050 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3051 fi
3052
3053else
3054
3055 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3063
3064fi;
3065
3066 eval "$ac_cv_use_sdl"
3067 if test "$no_cache" != 1; then
3068 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3069 fi
3070
3071 if test "$wxUSE_LIBSDL" = yes; then
3072 echo "$as_me:$LINENO: result: yes" >&5
3073echo "${ECHO_T}yes" >&6
3074 else
3075 echo "$as_me:$LINENO: result: no" >&5
3076echo "${ECHO_T}no" >&6
3077 fi
3078
3079
d1c38808
VZ
3080 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3081echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3082 no_cache=0
3083
3084# Check whether --with-gnomeprint or --without-gnomeprint was given.
3085if test "${with_gnomeprint+set}" = set; then
3086 withval="$with_gnomeprint"
3087
3088 if test "$withval" = yes; then
3089 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3090 else
3091 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3092 fi
3093
3094else
3095
3096 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3104
3105fi;
3106
3107 eval "$ac_cv_use_gnomeprint"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3113 echo "$as_me:$LINENO: result: yes" >&5
3114echo "${ECHO_T}yes" >&6
3115 else
3116 echo "$as_me:$LINENO: result: no" >&5
3117echo "${ECHO_T}no" >&6
3118 fi
3119
3120
a848cd7e
SC
3121 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3122echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3123 no_cache=0
3124
3125# Check whether --with-opengl or --without-opengl was given.
3126if test "${with_opengl+set}" = set; then
3127 withval="$with_opengl"
3128
3129 if test "$withval" = yes; then
3130 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3131 else
3132 ac_cv_use_opengl='wxUSE_OPENGL=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3145
3146fi;
3147
3148 eval "$ac_cv_use_opengl"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_OPENGL" = yes; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155echo "${ECHO_T}yes" >&6
3156 else
3157 echo "$as_me:$LINENO: result: no" >&5
3158echo "${ECHO_T}no" >&6
3159 fi
3160
3161
3162fi
3163
3164
3165 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3166echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3167 no_cache=0
3168
3169# Check whether --with-dmalloc or --without-dmalloc was given.
3170if test "${with_dmalloc+set}" = set; then
3171 withval="$with_dmalloc"
3172
3173 if test "$withval" = yes; then
3174 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3175 else
3176 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3177 fi
3178
3179else
3180
3181 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3189
3190fi;
3191
3192 eval "$ac_cv_use_dmalloc"
3193 if test "$no_cache" != 1; then
3194 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3195 fi
3196
3197 if test "$wxUSE_DMALLOC" = yes; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199echo "${ECHO_T}yes" >&6
3200 else
3201 echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203 fi
3204
3205
3206 echo "$as_me:$LINENO: checking for --with-regex" >&5
3207echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3208 no_cache=0
3209
3210# Check whether --with-regex or --without-regex was given.
3211if test "${with_regex+set}" = set; then
3212 withval="$with_regex"
3213
3214 if test "$withval" = yes; then
3215 ac_cv_use_regex='wxUSE_REGEX=yes'
3216 elif test "$withval" = no; then
3217 ac_cv_use_regex='wxUSE_REGEX=no'
3218 elif test "$withval" = sys; then
3219 ac_cv_use_regex='wxUSE_REGEX=sys'
3220 elif test "$withval" = builtin; then
3221 ac_cv_use_regex='wxUSE_REGEX=builtin'
3222 else
3223 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3224echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3225 { (exit 1); exit 1; }; }
3226 fi
3227
3228else
3229
3230 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3238
3239fi;
3240
3241 eval "$ac_cv_use_regex"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_REGEX" = yes; then
3247 echo "$as_me:$LINENO: result: yes" >&5
3248echo "${ECHO_T}yes" >&6
3249 elif test "$wxUSE_REGEX" = no; then
3250 echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6
3252 elif test "$wxUSE_REGEX" = sys; then
3253 echo "$as_me:$LINENO: result: system version" >&5
3254echo "${ECHO_T}system version" >&6
3255 elif test "$wxUSE_REGEX" = builtin; then
3256 echo "$as_me:$LINENO: result: builtin version" >&5
3257echo "${ECHO_T}builtin version" >&6
3258 else
3259 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3260echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3261 { (exit 1); exit 1; }; }
3262 fi
3263
3264
3265 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3266echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3267 no_cache=0
3268
3269# Check whether --with-zlib or --without-zlib was given.
3270if test "${with_zlib+set}" = set; then
3271 withval="$with_zlib"
3272
3273 if test "$withval" = yes; then
3274 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3275 elif test "$withval" = no; then
3276 ac_cv_use_zlib='wxUSE_ZLIB=no'
3277 elif test "$withval" = sys; then
3278 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3279 elif test "$withval" = builtin; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287else
3288
3289 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
3296 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3297
3298fi;
3299
3300 eval "$ac_cv_use_zlib"
3301 if test "$no_cache" != 1; then
3302 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3303 fi
3304
3305 if test "$wxUSE_ZLIB" = yes; then
3306 echo "$as_me:$LINENO: result: yes" >&5
3307echo "${ECHO_T}yes" >&6
3308 elif test "$wxUSE_ZLIB" = no; then
3309 echo "$as_me:$LINENO: result: no" >&5
3310echo "${ECHO_T}no" >&6
3311 elif test "$wxUSE_ZLIB" = sys; then
3312 echo "$as_me:$LINENO: result: system version" >&5
3313echo "${ECHO_T}system version" >&6
3314 elif test "$wxUSE_ZLIB" = builtin; then
3315 echo "$as_me:$LINENO: result: builtin version" >&5
3316echo "${ECHO_T}builtin version" >&6
3317 else
3318 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3319echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3320 { (exit 1); exit 1; }; }
3321 fi
3322
3323
3324 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3325echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3326 no_cache=0
3327
3328# Check whether --with-odbc or --without-odbc was given.
3329if test "${with_odbc+set}" = set; then
3330 withval="$with_odbc"
3331
3332 if test "$withval" = yes; then
3333 ac_cv_use_odbc='wxUSE_ODBC=yes'
3334 elif test "$withval" = no; then
3335 ac_cv_use_odbc='wxUSE_ODBC=no'
3336 elif test "$withval" = sys; then
3337 ac_cv_use_odbc='wxUSE_ODBC=sys'
3338 elif test "$withval" = builtin; then
3339 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346else
3347
3348 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3356
3357fi;
3358
3359 eval "$ac_cv_use_odbc"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_ODBC" = yes; then
3365 echo "$as_me:$LINENO: result: yes" >&5
3366echo "${ECHO_T}yes" >&6
3367 elif test "$wxUSE_ODBC" = no; then
3368 echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6
3370 elif test "$wxUSE_ODBC" = sys; then
3371 echo "$as_me:$LINENO: result: system version" >&5
3372echo "${ECHO_T}system version" >&6
3373 elif test "$wxUSE_ODBC" = builtin; then
3374 echo "$as_me:$LINENO: result: builtin version" >&5
3375echo "${ECHO_T}builtin version" >&6
3376 else
3377 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3378echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3379 { (exit 1); exit 1; }; }
3380 fi
3381
3382
3383 echo "$as_me:$LINENO: checking for --with-expat" >&5
3384echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3385 no_cache=0
3386
3387# Check whether --with-expat or --without-expat was given.
3388if test "${with_expat+set}" = set; then
3389 withval="$with_expat"
3390
3391 if test "$withval" = yes; then
3392 ac_cv_use_expat='wxUSE_EXPAT=yes'
3393 elif test "$withval" = no; then
3394 ac_cv_use_expat='wxUSE_EXPAT=no'
3395 elif test "$withval" = sys; then
3396 ac_cv_use_expat='wxUSE_EXPAT=sys'
3397 elif test "$withval" = builtin; then
3398 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3415
3416fi;
3417
3418 eval "$ac_cv_use_expat"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_EXPAT" = yes; then
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
3426 elif test "$wxUSE_EXPAT" = no; then
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429 elif test "$wxUSE_EXPAT" = sys; then
3430 echo "$as_me:$LINENO: result: system version" >&5
3431echo "${ECHO_T}system version" >&6
3432 elif test "$wxUSE_EXPAT" = builtin; then
3433 echo "$as_me:$LINENO: result: builtin version" >&5
3434echo "${ECHO_T}builtin version" >&6
3435 else
3436 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3437echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3438 { (exit 1); exit 1; }; }
3439 fi
3440
3441
3442
3443
3444 enablestring=
3445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3446echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3447 no_cache=0
3448 # Check whether --enable-shared or --disable-shared was given.
3449if test "${enable_shared+set}" = set; then
3450 enableval="$enable_shared"
3451
3452 if test "$enableval" = yes; then
3453 ac_cv_use_shared='wxUSE_SHARED=yes'
3454 else
3455 ac_cv_use_shared='wxUSE_SHARED=no'
3456 fi
3457
3458else
3459
3460 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3468
3469fi;
3470
3471 eval "$ac_cv_use_shared"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_SHARED" = yes; then
3477 echo "$as_me:$LINENO: result: yes" >&5
3478echo "${ECHO_T}yes" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
3482 fi
3483
3484
3485 enablestring=
3486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3487echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3488 no_cache=0
3489 # Check whether --enable-optimise or --disable-optimise was given.
3490if test "${enable_optimise+set}" = set; then
3491 enableval="$enable_optimise"
3492
3493 if test "$enableval" = yes; then
3494 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3495 else
3496 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3497 fi
3498
3499else
3500
3501 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3502 if test "x$LINE" != x ; then
3503 eval "DEFAULT_$LINE"
3504 else
3505 no_cache=1
3506 fi
3507
3508 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3509
3510fi;
3511
3512 eval "$ac_cv_use_optimise"
3513 if test "$no_cache" != 1; then
3514 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3515 fi
3516
3517 if test "$wxUSE_OPTIMISE" = yes; then
3518 echo "$as_me:$LINENO: result: yes" >&5
3519echo "${ECHO_T}yes" >&6
3520 else
3521 echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523 fi
3524
3525
3526 enablestring=
3527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3528echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3529 no_cache=0
3530 # Check whether --enable-debug or --disable-debug was given.
3531if test "${enable_debug+set}" = set; then
3532 enableval="$enable_debug"
3533
3534 if test "$enableval" = yes; then
3535 ac_cv_use_debug='wxUSE_DEBUG=yes'
3536 else
3537 ac_cv_use_debug='wxUSE_DEBUG=no'
3538 fi
3539
3540else
3541
3542 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3543 if test "x$LINE" != x ; then
3544 eval "DEFAULT_$LINE"
3545 else
3546 no_cache=1
3547 fi
3548
3549 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3550
3551fi;
3552
3553 eval "$ac_cv_use_debug"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_DEBUG" = yes; then
3559 echo "$as_me:$LINENO: result: yes" >&5
3560echo "${ECHO_T}yes" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
3564 fi
3565
3566
3567 enablestring=
3568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3569echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3570 no_cache=0
3571 # Check whether --enable-stl or --disable-stl was given.
3572if test "${enable_stl+set}" = set; then
3573 enableval="$enable_stl"
3574
3575 if test "$enableval" = yes; then
3576 ac_cv_use_stl='wxUSE_STL=yes'
3577 else
3578 ac_cv_use_stl='wxUSE_STL=no'
3579 fi
3580
3581else
3582
3583 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3584 if test "x$LINE" != x ; then
3585 eval "DEFAULT_$LINE"
3586 else
3587 no_cache=1
3588 fi
3589
3590 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3591
3592fi;
3593
3594 eval "$ac_cv_use_stl"
3595 if test "$no_cache" != 1; then
3596 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3597 fi
3598
3599 if test "$wxUSE_STL" = yes; then
3600 echo "$as_me:$LINENO: result: yes" >&5
3601echo "${ECHO_T}yes" >&6
3602 else
3603 echo "$as_me:$LINENO: result: no" >&5
3604echo "${ECHO_T}no" >&6
3605 fi
3606
3607if test "$USE_OS2" = "1"; then
69120ee4 3608 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3609
3610 enablestring=
3611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3612echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3613 no_cache=0
3614 # Check whether --enable-omf or --disable-omf was given.
3615if test "${enable_omf+set}" = set; then
3616 enableval="$enable_omf"
3617
3618 if test "$enableval" = yes; then
3619 ac_cv_use_omf='wxUSE_OMF=yes'
3620 else
3621 ac_cv_use_omf='wxUSE_OMF=no'
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3634
3635fi;
3636
3637 eval "$ac_cv_use_omf"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_OMF" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 fi
3649
3650fi
3651
3652if test "$wxUSE_DEBUG" = "yes"; then
3653 DEFAULT_wxUSE_DEBUG_FLAG=yes
3654 DEFAULT_wxUSE_DEBUG_INFO=yes
3655 BUILD=debug
3656elif test "$wxUSE_DEBUG" = "no"; then
3657 DEFAULT_wxUSE_DEBUG_FLAG=no
3658 DEFAULT_wxUSE_DEBUG_INFO=no
3659 BUILD=release
3660fi
3661
3662
3663 enablestring=
3664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3665echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3666 no_cache=0
3667 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3668if test "${enable_debug_flag+set}" = set; then
3669 enableval="$enable_debug_flag"
3670
3671 if test "$enableval" = yes; then
3672 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3673 else
3674 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3675 fi
3676
3677else
3678
3679 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3680 if test "x$LINE" != x ; then
3681 eval "DEFAULT_$LINE"
3682 else
3683 no_cache=1
3684 fi
3685
3686 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3687
3688fi;
3689
3690 eval "$ac_cv_use_debug_flag"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_DEBUG_FLAG" = yes; then
3696 echo "$as_me:$LINENO: result: yes" >&5
3697echo "${ECHO_T}yes" >&6
3698 else
3699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701 fi
3702
3703
3704 enablestring=
3705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3706echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3707 no_cache=0
3708 # Check whether --enable-debug_info or --disable-debug_info was given.
3709if test "${enable_debug_info+set}" = set; then
3710 enableval="$enable_debug_info"
3711
3712 if test "$enableval" = yes; then
3713 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3714 else
3715 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3716 fi
3717
3718else
3719
3720 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
3727 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3728
3729fi;
3730
3731 eval "$ac_cv_use_debug_info"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_DEBUG_INFO" = yes; then
3737 echo "$as_me:$LINENO: result: yes" >&5
3738echo "${ECHO_T}yes" >&6
3739 else
3740 echo "$as_me:$LINENO: result: no" >&5
3741echo "${ECHO_T}no" >&6
3742 fi
3743
3744
3745 enablestring=
3746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3747echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3748 no_cache=0
3749 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3750if test "${enable_debug_gdb+set}" = set; then
3751 enableval="$enable_debug_gdb"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3755 else
3756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3757 fi
3758
3759else
3760
3761 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3769
3770fi;
3771
3772 eval "$ac_cv_use_debug_gdb"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DEBUG_GDB" = yes; then
3778 echo "$as_me:$LINENO: result: yes" >&5
3779echo "${ECHO_T}yes" >&6
3780 else
3781 echo "$as_me:$LINENO: result: no" >&5
3782echo "${ECHO_T}no" >&6
3783 fi
3784
3785
3786 enablestring=
3787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3788echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3789 no_cache=0
3790 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3791if test "${enable_debug_cntxt+set}" = set; then
3792 enableval="$enable_debug_cntxt"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3796 else
3797 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3798 fi
3799
3800else
3801
3802 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3810
3811fi;
3812
3813 eval "$ac_cv_use_debug_cntxt"
3814 if test "$no_cache" != 1; then
3815 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3816 fi
3817
3818 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3819 echo "$as_me:$LINENO: result: yes" >&5
3820echo "${ECHO_T}yes" >&6
3821 else
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824 fi
3825
3826
3827 enablestring=
3828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3829echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3830 no_cache=0
3831 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3832if test "${enable_mem_tracing+set}" = set; then
3833 enableval="$enable_mem_tracing"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3837 else
3838 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3851
3852fi;
3853
3854 eval "$ac_cv_use_mem_tracing"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_MEM_TRACING" = yes; then
3860 echo "$as_me:$LINENO: result: yes" >&5
3861echo "${ECHO_T}yes" >&6
3862 else
3863 echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6
3865 fi
3866
3867
3868 enablestring=
3869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3870echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3871 no_cache=0
3872 # Check whether --enable-profile or --disable-profile was given.
3873if test "${enable_profile+set}" = set; then
3874 enableval="$enable_profile"
3875
3876 if test "$enableval" = yes; then
3877 ac_cv_use_profile='wxUSE_PROFILE=yes'
3878 else
3879 ac_cv_use_profile='wxUSE_PROFILE=no'
3880 fi
3881
3882else
3883
3884 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3885 if test "x$LINE" != x ; then
3886 eval "DEFAULT_$LINE"
3887 else
3888 no_cache=1
3889 fi
3890
3891 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3892
3893fi;
3894
3895 eval "$ac_cv_use_profile"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_PROFILE" = yes; then
3901 echo "$as_me:$LINENO: result: yes" >&5
3902echo "${ECHO_T}yes" >&6
3903 else
3904 echo "$as_me:$LINENO: result: no" >&5
3905echo "${ECHO_T}no" >&6
3906 fi
3907
3908
3909 enablestring=
3910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3911echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3912 no_cache=0
3913 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3914if test "${enable_no_rtti+set}" = set; then
3915 enableval="$enable_no_rtti"
3916
3917 if test "$enableval" = yes; then
3918 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3919 else
3920 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3921 fi
3922
3923else
3924
3925 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3926 if test "x$LINE" != x ; then
3927 eval "DEFAULT_$LINE"
3928 else
3929 no_cache=1
3930 fi
3931
3932 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3933
3934fi;
3935
3936 eval "$ac_cv_use_no_rtti"
3937 if test "$no_cache" != 1; then
3938 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3939 fi
3940
3941 if test "$wxUSE_NO_RTTI" = yes; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943echo "${ECHO_T}yes" >&6
3944 else
3945 echo "$as_me:$LINENO: result: no" >&5
3946echo "${ECHO_T}no" >&6
3947 fi
3948
3949
3950 enablestring=
3951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3952echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3953 no_cache=0
3954 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3955if test "${enable_no_exceptions+set}" = set; then
3956 enableval="$enable_no_exceptions"
3957
3958 if test "$enableval" = yes; then
3959 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3960 else
3961 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3962 fi
3963
3964else
3965
3966 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
3973 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3974
3975fi;
3976
3977 eval "$ac_cv_use_no_exceptions"
3978 if test "$no_cache" != 1; then
3979 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3980 fi
3981
3982 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3983 echo "$as_me:$LINENO: result: yes" >&5
3984echo "${ECHO_T}yes" >&6
3985 else
3986 echo "$as_me:$LINENO: result: no" >&5
3987echo "${ECHO_T}no" >&6
3988 fi
3989
3990
3991 enablestring=
3992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3993echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3994 no_cache=0
3995 # Check whether --enable-permissive or --disable-permissive was given.
3996if test "${enable_permissive+set}" = set; then
3997 enableval="$enable_permissive"
3998
3999 if test "$enableval" = yes; then
4000 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4001 else
4002 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4003 fi
4004
4005else
4006
4007 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4015
4016fi;
4017
4018 eval "$ac_cv_use_permissive"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_PERMISSIVE" = yes; then
4024 echo "$as_me:$LINENO: result: yes" >&5
4025echo "${ECHO_T}yes" >&6
4026 else
4027 echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029 fi
4030
4031
4032 enablestring=
4033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4034echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4035 no_cache=0
4036 # Check whether --enable-no_deps or --disable-no_deps was given.
4037if test "${enable_no_deps+set}" = set; then
4038 enableval="$enable_no_deps"
4039
4040 if test "$enableval" = yes; then
4041 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4042 else
4043 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4044 fi
4045
4046else
4047
4048 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4049 if test "x$LINE" != x ; then
4050 eval "DEFAULT_$LINE"
4051 else
4052 no_cache=1
4053 fi
4054
4055 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4056
4057fi;
4058
4059 eval "$ac_cv_use_no_deps"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_NO_DEPS" = yes; then
4065 echo "$as_me:$LINENO: result: yes" >&5
4066echo "${ECHO_T}yes" >&6
4067 else
4068 echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6
4070 fi
4071
4072
4073
4074 enablestring=
4075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4076echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4077 no_cache=0
4078 # Check whether --enable-compat22 or --disable-compat22 was given.
4079if test "${enable_compat22+set}" = set; then
4080 enableval="$enable_compat22"
4081
4082 if test "$enableval" = yes; then
4083 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4084 else
4085 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4086 fi
4087
4088else
4089
4090 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4091 if test "x$LINE" != x ; then
4092 eval "DEFAULT_$LINE"
4093 else
4094 no_cache=1
4095 fi
4096
4097 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4098
4099fi;
4100
4101 eval "$ac_cv_use_compat22"
4102 if test "$no_cache" != 1; then
4103 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4104 fi
4105
4106 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4107 echo "$as_me:$LINENO: result: yes" >&5
4108echo "${ECHO_T}yes" >&6
4109 else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112 fi
4113
4114
4115 enablestring=disable
4116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4117echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4118 no_cache=0
4119 # Check whether --enable-compat24 or --disable-compat24 was given.
4120if test "${enable_compat24+set}" = set; then
4121 enableval="$enable_compat24"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4125 else
4126 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4139
4140fi;
4141
4142 eval "$ac_cv_use_compat24"
4143 if test "$no_cache" != 1; then
4144 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4145 fi
4146
4147 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4148 echo "$as_me:$LINENO: result: yes" >&5
4149echo "${ECHO_T}yes" >&6
4150 else
4151 echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153 fi
4154
4155
ffa0583f
RL
4156
4157 enablestring=
4158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4159echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4160 no_cache=0
4161 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4162if test "${enable_rpath+set}" = set; then
4163 enableval="$enable_rpath"
ffa0583f
RL
4164
4165 if test "$enableval" = yes; then
4166 ac_cv_use_rpath='wxUSE_RPATH=yes'
4167 else
4168 ac_cv_use_rpath='wxUSE_RPATH=no'
4169 fi
4170
4171else
4172
4173 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4181
a848cd7e
SC
4182fi;
4183
ffa0583f
RL
4184 eval "$ac_cv_use_rpath"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_RPATH" = yes; then
4190 echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195 fi
4196
a848cd7e
SC
4197
4198
4199
4200
4201 enablestring=
4202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4203echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4204 no_cache=0
4205 # Check whether --enable-intl or --disable-intl was given.
4206if test "${enable_intl+set}" = set; then
4207 enableval="$enable_intl"
4208
4209 if test "$enableval" = yes; then
4210 ac_cv_use_intl='wxUSE_INTL=yes'
4211 else
4212 ac_cv_use_intl='wxUSE_INTL=no'
4213 fi
4214
4215else
4216
4217 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4225
4226fi;
4227
4228 eval "$ac_cv_use_intl"
4229 if test "$no_cache" != 1; then
4230 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4231 fi
4232
4233 if test "$wxUSE_INTL" = yes; then
4234 echo "$as_me:$LINENO: result: yes" >&5
4235echo "${ECHO_T}yes" >&6
4236 else
4237 echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239 fi
4240
4241
4242 enablestring=
4243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4244echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4245 no_cache=0
4246 # Check whether --enable-config or --disable-config was given.
4247if test "${enable_config+set}" = set; then
4248 enableval="$enable_config"
4249
4250 if test "$enableval" = yes; then
4251 ac_cv_use_config='wxUSE_CONFIG=yes'
4252 else
4253 ac_cv_use_config='wxUSE_CONFIG=no'
4254 fi
4255
4256else
4257
4258 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4259 if test "x$LINE" != x ; then
4260 eval "DEFAULT_$LINE"
4261 else
4262 no_cache=1
4263 fi
4264
4265 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4266
4267fi;
4268
4269 eval "$ac_cv_use_config"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_CONFIG" = yes; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276echo "${ECHO_T}yes" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6
4280 fi
4281
4282
4283
4284 enablestring=
4285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4286echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4287 no_cache=0
4288 # Check whether --enable-protocols or --disable-protocols was given.
4289if test "${enable_protocols+set}" = set; then
4290 enableval="$enable_protocols"
4291
4292 if test "$enableval" = yes; then
4293 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4294 else
4295 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4296 fi
4297
4298else
4299
4300 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4301 if test "x$LINE" != x ; then
4302 eval "DEFAULT_$LINE"
4303 else
4304 no_cache=1
4305 fi
4306
4307 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4308
4309fi;
4310
4311 eval "$ac_cv_use_protocols"
4312 if test "$no_cache" != 1; then
4313 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4314 fi
4315
4316 if test "$wxUSE_PROTOCOL" = yes; then
4317 echo "$as_me:$LINENO: result: yes" >&5
4318echo "${ECHO_T}yes" >&6
4319 else
4320 echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6
4322 fi
4323
4324
4325 enablestring=
4326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4327echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4328 no_cache=0
4329 # Check whether --enable-ftp or --disable-ftp was given.
4330if test "${enable_ftp+set}" = set; then
4331 enableval="$enable_ftp"
4332
4333 if test "$enableval" = yes; then
4334 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4335 else
4336 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4337 fi
4338
4339else
4340
4341 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4349
4350fi;
4351
4352 eval "$ac_cv_use_ftp"
4353 if test "$no_cache" != 1; then
4354 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4355 fi
4356
4357 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4358 echo "$as_me:$LINENO: result: yes" >&5
4359echo "${ECHO_T}yes" >&6
4360 else
4361 echo "$as_me:$LINENO: result: no" >&5
4362echo "${ECHO_T}no" >&6
4363 fi
4364
4365
4366 enablestring=
4367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4368echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4369 no_cache=0
4370 # Check whether --enable-http or --disable-http was given.
4371if test "${enable_http+set}" = set; then
4372 enableval="$enable_http"
4373
4374 if test "$enableval" = yes; then
4375 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4376 else
4377 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4378 fi
4379
4380else
4381
4382 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4383 if test "x$LINE" != x ; then
4384 eval "DEFAULT_$LINE"
4385 else
4386 no_cache=1
4387 fi
4388
4389 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4390
4391fi;
4392
4393 eval "$ac_cv_use_http"
4394 if test "$no_cache" != 1; then
4395 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4396 fi
4397
4398 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4399 echo "$as_me:$LINENO: result: yes" >&5
4400echo "${ECHO_T}yes" >&6
4401 else
4402 echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6
4404 fi
4405
4406
4407 enablestring=
4408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4409echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4410 no_cache=0
4411 # Check whether --enable-fileproto or --disable-fileproto was given.
4412if test "${enable_fileproto+set}" = set; then
4413 enableval="$enable_fileproto"
4414
4415 if test "$enableval" = yes; then
4416 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4417 else
4418 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4419 fi
4420
4421else
4422
4423 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4431
4432fi;
4433
4434 eval "$ac_cv_use_fileproto"
4435 if test "$no_cache" != 1; then
4436 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4437 fi
4438
4439 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4440 echo "$as_me:$LINENO: result: yes" >&5
4441echo "${ECHO_T}yes" >&6
4442 else
4443 echo "$as_me:$LINENO: result: no" >&5
4444echo "${ECHO_T}no" >&6
4445 fi
4446
4447
4448 enablestring=
4449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4450echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4451 no_cache=0
4452 # Check whether --enable-sockets or --disable-sockets was given.
4453if test "${enable_sockets+set}" = set; then
4454 enableval="$enable_sockets"
4455
4456 if test "$enableval" = yes; then
4457 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4458 else
4459 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4460 fi
4461
4462else
4463
4464 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4472
4473fi;
4474
4475 eval "$ac_cv_use_sockets"
4476 if test "$no_cache" != 1; then
4477 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4478 fi
4479
4480 if test "$wxUSE_SOCKETS" = yes; then
4481 echo "$as_me:$LINENO: result: yes" >&5
4482echo "${ECHO_T}yes" >&6
4483 else
4484 echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6
4486 fi
4487
4488
4489 enablestring=
4490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4491echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4492 no_cache=0
4493 # Check whether --enable-ole or --disable-ole was given.
4494if test "${enable_ole+set}" = set; then
4495 enableval="$enable_ole"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_ole='wxUSE_OLE=yes'
4499 else
4500 ac_cv_use_ole='wxUSE_OLE=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4513
4514fi;
4515
4516 eval "$ac_cv_use_ole"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_OLE" = yes; then
4522 echo "$as_me:$LINENO: result: yes" >&5
4523echo "${ECHO_T}yes" >&6
4524 else
4525 echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6
4527 fi
4528
4529
4530 enablestring=
4531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4532echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4533 no_cache=0
4534 # Check whether --enable-dataobj or --disable-dataobj was given.
4535if test "${enable_dataobj+set}" = set; then
4536 enableval="$enable_dataobj"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4540 else
4541 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4542 fi
4543
4544else
4545
4546 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4554
4555fi;
4556
4557 eval "$ac_cv_use_dataobj"
4558 if test "$no_cache" != 1; then
4559 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4560 fi
4561
4562 if test "$wxUSE_DATAOBJ" = yes; then
4563 echo "$as_me:$LINENO: result: yes" >&5
4564echo "${ECHO_T}yes" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568 fi
4569
4570
4571
4572 enablestring=
4573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4574echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4575 no_cache=0
4576 # Check whether --enable-ipc or --disable-ipc was given.
4577if test "${enable_ipc+set}" = set; then
4578 enableval="$enable_ipc"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_ipc='wxUSE_IPC=yes'
4582 else
4583 ac_cv_use_ipc='wxUSE_IPC=no'
4584 fi
4585
4586else
4587
4588 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4596
4597fi;
4598
4599 eval "$ac_cv_use_ipc"
4600 if test "$no_cache" != 1; then
4601 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4602 fi
4603
4604 if test "$wxUSE_IPC" = yes; then
4605 echo "$as_me:$LINENO: result: yes" >&5
4606echo "${ECHO_T}yes" >&6
4607 else
4608 echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6
4610 fi
4611
4612
4613
4614 enablestring=
4615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4616echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4617 no_cache=0
4618 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4619if test "${enable_apple_ieee+set}" = set; then
4620 enableval="$enable_apple_ieee"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4624 else
4625 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4638
4639fi;
4640
4641 eval "$ac_cv_use_apple_ieee"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_APPLE_IEEE" = yes; then
4647 echo "$as_me:$LINENO: result: yes" >&5
4648echo "${ECHO_T}yes" >&6
4649 else
4650 echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652 fi
4653
4654
81f90336
MW
4655 enablestring=
4656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4657echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4658 no_cache=0
4659 # Check whether --enable-arcstream or --disable-arcstream was given.
4660if test "${enable_arcstream+set}" = set; then
4661 enableval="$enable_arcstream"
4662
4663 if test "$enableval" = yes; then
9e8e867f 4664 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4665 else
9e8e867f 4666 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4667 fi
4668
4669else
4670
9e8e867f 4671 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
9e8e867f 4678 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4679
4680fi;
4681
4682 eval "$ac_cv_use_arcstream"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4685 fi
4686
9e8e867f 4687 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4688 echo "$as_me:$LINENO: result: yes" >&5
4689echo "${ECHO_T}yes" >&6
4690 else
4691 echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6
4693 fi
4694
4695
a848cd7e 4696 enablestring=
36b6448c
VZ
4697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4698echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4699 no_cache=0
36b6448c
VZ
4700 # Check whether --enable-backtrace or --disable-backtrace was given.
4701if test "${enable_backtrace+set}" = set; then
4702 enableval="$enable_backtrace"
a848cd7e
SC
4703
4704 if test "$enableval" = yes; then
36b6448c 4705 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4706 else
36b6448c 4707 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4708 fi
4709
4710else
4711
36b6448c 4712 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4713 if test "x$LINE" != x ; then
4714 eval "DEFAULT_$LINE"
4715 else
4716 no_cache=1
4717 fi
4718
36b6448c 4719 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4720
4721fi;
4722
36b6448c 4723 eval "$ac_cv_use_backtrace"
a848cd7e 4724 if test "$no_cache" != 1; then
36b6448c 4725 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4726 fi
4727
36b6448c 4728 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4729 echo "$as_me:$LINENO: result: yes" >&5
4730echo "${ECHO_T}yes" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734 fi
4735
4736
eaff0f0d 4737 enablestring=
36b6448c
VZ
4738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4739echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4740 no_cache=0
36b6448c
VZ
4741 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4742if test "${enable_catch_segvs+set}" = set; then
4743 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4744
4745 if test "$enableval" = yes; then
36b6448c 4746 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4747 else
36b6448c 4748 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4749 fi
4750
4751else
4752
36b6448c 4753 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
36b6448c 4760 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4761
4762fi;
4763
36b6448c 4764 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4765 if test "$no_cache" != 1; then
36b6448c 4766 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4767 fi
4768
36b6448c 4769 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4770 echo "$as_me:$LINENO: result: yes" >&5
4771echo "${ECHO_T}yes" >&6
4772 else
4773 echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775 fi
4776
4777
a848cd7e
SC
4778 enablestring=
4779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4780echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4781 no_cache=0
4782 # Check whether --enable-cmdline or --disable-cmdline was given.
4783if test "${enable_cmdline+set}" = set; then
4784 enableval="$enable_cmdline"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4788 else
4789 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4790 fi
4791
4792else
4793
4794 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4802
4803fi;
4804
4805 eval "$ac_cv_use_cmdline"
4806 if test "$no_cache" != 1; then
4807 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4808 fi
4809
4810 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4811 echo "$as_me:$LINENO: result: yes" >&5
4812echo "${ECHO_T}yes" >&6
4813 else
4814 echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6
4816 fi
4817
4818
4819 enablestring=
4820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4821echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4822 no_cache=0
4823 # Check whether --enable-datetime or --disable-datetime was given.
4824if test "${enable_datetime+set}" = set; then
4825 enableval="$enable_datetime"
4826
4827 if test "$enableval" = yes; then
4828 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4829 else
4830 ac_cv_use_datetime='wxUSE_DATETIME=no'
4831 fi
4832
4833else
4834
4835 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4836 if test "x$LINE" != x ; then
4837 eval "DEFAULT_$LINE"
4838 else
4839 no_cache=1
4840 fi
4841
4842 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4843
4844fi;
4845
4846 eval "$ac_cv_use_datetime"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_DATETIME" = yes; then
4852 echo "$as_me:$LINENO: result: yes" >&5
4853echo "${ECHO_T}yes" >&6
4854 else
4855 echo "$as_me:$LINENO: result: no" >&5
4856echo "${ECHO_T}no" >&6
4857 fi
4858
4859
36b6448c
VZ
4860 enablestring=
4861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4862echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4863 no_cache=0
4864 # Check whether --enable-debugreport or --disable-debugreport was given.
4865if test "${enable_debugreport+set}" = set; then
4866 enableval="$enable_debugreport"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4870 else
4871 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4872 fi
4873
4874else
4875
4876 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4884
4885fi;
4886
4887 eval "$ac_cv_use_debugreport"
4888 if test "$no_cache" != 1; then
4889 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4890 fi
4891
4892 if test "$wxUSE_DEBUGREPORT" = yes; then
4893 echo "$as_me:$LINENO: result: yes" >&5
4894echo "${ECHO_T}yes" >&6
4895 else
4896 echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898 fi
4899
4900
a848cd7e
SC
4901 enablestring=
4902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4903echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4904 no_cache=0
4905 # Check whether --enable-dialupman or --disable-dialupman was given.
4906if test "${enable_dialupman+set}" = set; then
4907 enableval="$enable_dialupman"
4908
4909 if test "$enableval" = yes; then
4910 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4911 else
4912 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4913 fi
4914
4915else
4916
4917 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4918 if test "x$LINE" != x ; then
4919 eval "DEFAULT_$LINE"
4920 else
4921 no_cache=1
4922 fi
4923
4924 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4925
4926fi;
4927
4928 eval "$ac_cv_use_dialupman"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4934 echo "$as_me:$LINENO: result: yes" >&5
4935echo "${ECHO_T}yes" >&6
4936 else
4937 echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6
4939 fi
4940
4941
4942 enablestring=
4943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4944echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4945 no_cache=0
4946 # Check whether --enable-dynlib or --disable-dynlib was given.
4947if test "${enable_dynlib+set}" = set; then
4948 enableval="$enable_dynlib"
4949
4950 if test "$enableval" = yes; then
4951 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4952 else
4953 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4954 fi
4955
4956else
4957
4958 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4959 if test "x$LINE" != x ; then
4960 eval "DEFAULT_$LINE"
4961 else
4962 no_cache=1
4963 fi
4964
4965 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4966
4967fi;
4968
4969 eval "$ac_cv_use_dynlib"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4975 echo "$as_me:$LINENO: result: yes" >&5
4976echo "${ECHO_T}yes" >&6
4977 else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980 fi
4981
4982
4983 enablestring=
4984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4985echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4986 no_cache=0
4987 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4988if test "${enable_dynamicloader+set}" = set; then
4989 enableval="$enable_dynamicloader"
4990
4991 if test "$enableval" = yes; then
4992 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4993 else
4994 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4995 fi
4996
4997else
4998
4999 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5007
5008fi;
5009
5010 eval "$ac_cv_use_dynamicloader"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5016 echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018 else
5019 echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021 fi
5022
5023
5024 enablestring=
5025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5026echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5027 no_cache=0
5028 # Check whether --enable-exceptions or --disable-exceptions was given.
5029if test "${enable_exceptions+set}" = set; then
5030 enableval="$enable_exceptions"
5031
5032 if test "$enableval" = yes; then
5033 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5034 else
5035 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5036 fi
5037
5038else
5039
5040 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5041 if test "x$LINE" != x ; then
5042 eval "DEFAULT_$LINE"
5043 else
5044 no_cache=1
5045 fi
5046
5047 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5048
5049fi;
5050
5051 eval "$ac_cv_use_exceptions"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5054 fi
5055
5056 if test "$wxUSE_EXCEPTIONS" = yes; then
5057 echo "$as_me:$LINENO: result: yes" >&5
5058echo "${ECHO_T}yes" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062 fi
5063
5064
5065 enablestring=
5066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5067echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5068 no_cache=0
5069 # Check whether --enable-ffile or --disable-ffile was given.
5070if test "${enable_ffile+set}" = set; then
5071 enableval="$enable_ffile"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_ffile='wxUSE_FFILE=yes'
5075 else
5076 ac_cv_use_ffile='wxUSE_FFILE=no'
5077 fi
5078
5079else
5080
5081 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5089
5090fi;
5091
5092 eval "$ac_cv_use_ffile"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_FFILE" = yes; then
5098 echo "$as_me:$LINENO: result: yes" >&5
5099echo "${ECHO_T}yes" >&6
5100 else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103 fi
5104
5105
5106 enablestring=
5107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5108echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5109 no_cache=0
5110 # Check whether --enable-file or --disable-file was given.
5111if test "${enable_file+set}" = set; then
5112 enableval="$enable_file"
5113
5114 if test "$enableval" = yes; then
5115 ac_cv_use_file='wxUSE_FILE=yes'
5116 else
5117 ac_cv_use_file='wxUSE_FILE=no'
5118 fi
5119
5120else
5121
5122 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5123 if test "x$LINE" != x ; then
5124 eval "DEFAULT_$LINE"
5125 else
5126 no_cache=1
5127 fi
5128
5129 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5130
5131fi;
5132
5133 eval "$ac_cv_use_file"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_FILE" = yes; then
5139 echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143echo "${ECHO_T}no" >&6
5144 fi
5145
5146
5147 enablestring=
5148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5149echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5150 no_cache=0
5151 # Check whether --enable-filesystem or --disable-filesystem was given.
5152if test "${enable_filesystem+set}" = set; then
5153 enableval="$enable_filesystem"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5157 else
5158 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5171
5172fi;
5173
5174 eval "$ac_cv_use_filesystem"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_FILESYSTEM" = yes; then
5180 echo "$as_me:$LINENO: result: yes" >&5
5181echo "${ECHO_T}yes" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185 fi
5186
5187
5188 enablestring=
5189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5190echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5191 no_cache=0
5192 # Check whether --enable-fontmap or --disable-fontmap was given.
5193if test "${enable_fontmap+set}" = set; then
5194 enableval="$enable_fontmap"
5195
5196 if test "$enableval" = yes; then
5197 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5198 else
5199 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5200 fi
5201
5202else
5203
5204 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5205 if test "x$LINE" != x ; then
5206 eval "DEFAULT_$LINE"
5207 else
5208 no_cache=1
5209 fi
5210
5211 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5212
5213fi;
5214
5215 eval "$ac_cv_use_fontmap"
5216 if test "$no_cache" != 1; then
5217 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5218 fi
5219
5220 if test "$wxUSE_FONTMAP" = yes; then
5221 echo "$as_me:$LINENO: result: yes" >&5
5222echo "${ECHO_T}yes" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226 fi
5227
5228
5229 enablestring=
5230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5231echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5232 no_cache=0
5233 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5234if test "${enable_fs_inet+set}" = set; then
5235 enableval="$enable_fs_inet"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5239 else
5240 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5253
5254fi;
5255
5256 eval "$ac_cv_use_fs_inet"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_FS_INET" = yes; then
5262 echo "$as_me:$LINENO: result: yes" >&5
5263echo "${ECHO_T}yes" >&6
5264 else
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267 fi
5268
5269
5270 enablestring=
5271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5272echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5273 no_cache=0
5274 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5275if test "${enable_fs_zip+set}" = set; then
5276 enableval="$enable_fs_zip"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5280 else
5281 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5282 fi
5283
5284else
5285
5286 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5294
5295fi;
5296
5297 eval "$ac_cv_use_fs_zip"
5298 if test "$no_cache" != 1; then
5299 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5300 fi
5301
5302 if test "$wxUSE_FS_ZIP" = yes; then
5303 echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305 else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308 fi
5309
5310
5311 enablestring=
5312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5313echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5314 no_cache=0
5315 # Check whether --enable-geometry or --disable-geometry was given.
5316if test "${enable_geometry+set}" = set; then
5317 enableval="$enable_geometry"
5318
5319 if test "$enableval" = yes; then
5320 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5321 else
5322 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5323 fi
5324
5325else
5326
5327 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5328 if test "x$LINE" != x ; then
5329 eval "DEFAULT_$LINE"
5330 else
5331 no_cache=1
5332 fi
5333
5334 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5335
5336fi;
5337
5338 eval "$ac_cv_use_geometry"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_GEOMETRY" = yes; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345echo "${ECHO_T}yes" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349 fi
5350
5351
5352 enablestring=
5353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5354echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5355 no_cache=0
5356 # Check whether --enable-log or --disable-log was given.
5357if test "${enable_log+set}" = set; then
5358 enableval="$enable_log"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_log='wxUSE_LOG=yes'
5362 else
5363 ac_cv_use_log='wxUSE_LOG=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5376
5377fi;
5378
5379 eval "$ac_cv_use_log"
5380 if test "$no_cache" != 1; then
5381 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5382 fi
5383
5384 if test "$wxUSE_LOG" = yes; then
5385 echo "$as_me:$LINENO: result: yes" >&5
5386echo "${ECHO_T}yes" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390 fi
5391
5392
5393 enablestring=
5394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5395echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5396 no_cache=0
5397 # Check whether --enable-longlong or --disable-longlong was given.
5398if test "${enable_longlong+set}" = set; then
5399 enableval="$enable_longlong"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5403 else
5404 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5417
5418fi;
5419
5420 eval "$ac_cv_use_longlong"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_LONGLONG" = yes; then
5426 echo "$as_me:$LINENO: result: yes" >&5
5427echo "${ECHO_T}yes" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431 fi
5432
5433
5434 enablestring=
5435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5436echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5437 no_cache=0
5438 # Check whether --enable-mimetype or --disable-mimetype was given.
5439if test "${enable_mimetype+set}" = set; then
5440 enableval="$enable_mimetype"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5444 else
5445 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5458
5459fi;
5460
5461 eval "$ac_cv_use_mimetype"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_MIMETYPE" = yes; then
5467 echo "$as_me:$LINENO: result: yes" >&5
5468echo "${ECHO_T}yes" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472 fi
5473
5474
5475 enablestring=
5476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5477echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5478 no_cache=0
5479 # Check whether --enable-mslu or --disable-mslu was given.
5480if test "${enable_mslu+set}" = set; then
5481 enableval="$enable_mslu"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5485 else
5486 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5499
5500fi;
5501
5502 eval "$ac_cv_use_mslu"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_UNICODE_MSLU" = yes; then
5508 echo "$as_me:$LINENO: result: yes" >&5
5509echo "${ECHO_T}yes" >&6
5510 else
5511 echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6
5513 fi
5514
5515
5516 enablestring=
5517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5518echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5519 no_cache=0
5520 # Check whether --enable-snglinst or --disable-snglinst was given.
5521if test "${enable_snglinst+set}" = set; then
5522 enableval="$enable_snglinst"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5526 else
5527 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5528 fi
5529
5530else
5531
5532 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5540
5541fi;
5542
5543 eval "$ac_cv_use_snglinst"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550echo "${ECHO_T}yes" >&6
5551 else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554 fi
5555
5556
5557 enablestring=
07158944
VZ
5558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5559echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5560 no_cache=0
07158944
VZ
5561 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5562if test "${enable_std_iostreams+set}" = set; then
5563 enableval="$enable_std_iostreams"
a848cd7e
SC
5564
5565 if test "$enableval" = yes; then
07158944 5566 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5567 else
07158944 5568 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5569 fi
5570
5571else
5572
07158944 5573 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
07158944 5580 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5581
5582fi;
5583
07158944 5584 eval "$ac_cv_use_std_iostreams"
a848cd7e 5585 if test "$no_cache" != 1; then
07158944 5586 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5587 fi
5588
07158944 5589 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5590 echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595 fi
5596
5597
59746b65
MW
5598 enablestring=
5599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5600echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5601 no_cache=0
5602 # Check whether --enable-std_string or --disable-std_string was given.
5603if test "${enable_std_string+set}" = set; then
5604 enableval="$enable_std_string"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5608 else
5609 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5610 fi
5611
5612else
5613
5614 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5622
5623fi;
5624
5625 eval "$ac_cv_use_std_string"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_STD_STRING" = yes; then
5631 echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633 else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636 fi
5637
5638
a848cd7e 5639 enablestring=
07158944
VZ
5640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5641echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5642 no_cache=0
07158944
VZ
5643 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5644if test "${enable_stdpaths+set}" = set; then
5645 enableval="$enable_stdpaths"
a848cd7e
SC
5646
5647 if test "$enableval" = yes; then
07158944 5648 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5649 else
07158944 5650 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5651 fi
5652
5653else
5654
07158944 5655 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
07158944 5662 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5663
5664fi;
5665
07158944 5666 eval "$ac_cv_use_stdpaths"
a848cd7e 5667 if test "$no_cache" != 1; then
07158944 5668 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5669 fi
5670
07158944 5671 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5672 echo "$as_me:$LINENO: result: yes" >&5
5673echo "${ECHO_T}yes" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677 fi
5678
5679
5680 enablestring=
5681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5682echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5683 no_cache=0
5684 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5685if test "${enable_stopwatch+set}" = set; then
5686 enableval="$enable_stopwatch"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5690 else
5691 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5692 fi
5693
5694else
5695
5696 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5704
5705fi;
5706
5707 eval "$ac_cv_use_stopwatch"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_STOPWATCH" = yes; then
5713 echo "$as_me:$LINENO: result: yes" >&5
5714echo "${ECHO_T}yes" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718 fi
5719
5720
07158944
VZ
5721 enablestring=
5722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5723echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5724 no_cache=0
5725 # Check whether --enable-streams or --disable-streams was given.
5726if test "${enable_streams+set}" = set; then
5727 enableval="$enable_streams"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_streams='wxUSE_STREAMS=yes'
5731 else
5732 ac_cv_use_streams='wxUSE_STREAMS=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5745
5746fi;
5747
5748 eval "$ac_cv_use_streams"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_STREAMS" = yes; then
5754 echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756 else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759 fi
5760
5761
a848cd7e
SC
5762 enablestring=
5763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5764echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5765 no_cache=0
5766 # Check whether --enable-system_options or --disable-system_options was given.
5767if test "${enable_system_options+set}" = set; then
5768 enableval="$enable_system_options"
5769
5770 if test "$enableval" = yes; then
5771 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5772 else
5773 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5774 fi
5775
5776else
5777
5778 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5786
5787fi;
5788
5789 eval "$ac_cv_use_system_options"
5790 if test "$no_cache" != 1; then
5791 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5792 fi
5793
5794 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797 else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800 fi
5801
5802
5803 enablestring=
5804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5805echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5806 no_cache=0
5807 # Check whether --enable-textbuf or --disable-textbuf was given.
5808if test "${enable_textbuf+set}" = set; then
5809 enableval="$enable_textbuf"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5813 else
5814 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5827
5828fi;
5829
5830 eval "$ac_cv_use_textbuf"
5831 if test "$no_cache" != 1; then
5832 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5833 fi
5834
5835 if test "$wxUSE_TEXTBUFFER" = yes; then
5836 echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841 fi
5842
5843
5844 enablestring=
5845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5846echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5847 no_cache=0
5848 # Check whether --enable-textfile or --disable-textfile was given.
5849if test "${enable_textfile+set}" = set; then
5850 enableval="$enable_textfile"
5851
5852 if test "$enableval" = yes; then
5853 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5854 else
5855 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5856 fi
5857
5858else
5859
5860 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5868
5869fi;
5870
5871 eval "$ac_cv_use_textfile"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_TEXTFILE" = yes; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6
5879 else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882 fi
5883
5884
5885 enablestring=
5886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5887echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5888 no_cache=0
5889 # Check whether --enable-timer or --disable-timer was given.
5890if test "${enable_timer+set}" = set; then
5891 enableval="$enable_timer"
5892
5893 if test "$enableval" = yes; then
5894 ac_cv_use_timer='wxUSE_TIMER=yes'
5895 else
5896 ac_cv_use_timer='wxUSE_TIMER=no'
5897 fi
5898
5899else
5900
5901 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
5908 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5909
5910fi;
5911
5912 eval "$ac_cv_use_timer"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_TIMER" = yes; then
5918 echo "$as_me:$LINENO: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
5920 else
5921 echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
5923 fi
5924
5925
5926 enablestring=
5927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5928echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5929 no_cache=0
5930 # Check whether --enable-unicode or --disable-unicode was given.
5931if test "${enable_unicode+set}" = set; then
5932 enableval="$enable_unicode"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5936 else
5937 ac_cv_use_unicode='wxUSE_UNICODE=no'
5938 fi
5939
5940else
5941
5942 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5943 if test "x$LINE" != x ; then
5944 eval "DEFAULT_$LINE"
5945 else
5946 no_cache=1
5947 fi
5948
5949 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5950
5951fi;
5952
5953 eval "$ac_cv_use_unicode"
5954 if test "$no_cache" != 1; then
5955 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5956 fi
5957
5958 if test "$wxUSE_UNICODE" = yes; then
5959 echo "$as_me:$LINENO: result: yes" >&5
5960echo "${ECHO_T}yes" >&6
5961 else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964 fi
5965
5966
5967 enablestring=
5968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5969echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5970 no_cache=0
5971 # Check whether --enable-sound or --disable-sound was given.
5972if test "${enable_sound+set}" = set; then
5973 enableval="$enable_sound"
5974
5975 if test "$enableval" = yes; then
5976 ac_cv_use_sound='wxUSE_SOUND=yes'
5977 else
5978 ac_cv_use_sound='wxUSE_SOUND=no'
5979 fi
5980
5981else
5982
5983 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
5990 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5991
5992fi;
5993
5994 eval "$ac_cv_use_sound"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_SOUND" = yes; then
6000 echo "$as_me:$LINENO: result: yes" >&5
6001echo "${ECHO_T}yes" >&6
6002 else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005 fi
6006
6007
3b57de8b
RL
6008 enablestring=
6009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6010echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6011 no_cache=0
6012 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6013if test "${enable_mediactrl+set}" = set; then
6014 enableval="$enable_mediactrl"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6018 else
6019 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6032
6033fi;
6034
6035 eval "$ac_cv_use_mediactrl"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_MEDIACTRL" = yes; then
6041 echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043 else
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046 fi
6047
6048
a848cd7e
SC
6049 enablestring=
6050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6051echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6052 no_cache=0
6053 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6054if test "${enable_wxprintfv+set}" = set; then
6055 enableval="$enable_wxprintfv"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6059 else
6060 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6061 fi
6062
6063else
6064
6065 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6073
6074fi;
6075
6076 eval "$ac_cv_use_wxprintfv"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6082 echo "$as_me:$LINENO: result: yes" >&5
6083echo "${ECHO_T}yes" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088
6089
6090 enablestring=
6091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6092echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6093 no_cache=0
6094 # Check whether --enable-zipstream or --disable-zipstream was given.
6095if test "${enable_zipstream+set}" = set; then
6096 enableval="$enable_zipstream"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6100 else
6101 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6114
6115fi;
6116
6117 eval "$ac_cv_use_zipstream"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_ZIPSTREAM" = yes; then
6123 echo "$as_me:$LINENO: result: yes" >&5
6124echo "${ECHO_T}yes" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128 fi
6129
6130
a848cd7e
SC
6131
6132 enablestring=
6133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6134echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6135 no_cache=0
6136 # Check whether --enable-url or --disable-url was given.
6137if test "${enable_url+set}" = set; then
6138 enableval="$enable_url"
6139
6140 if test "$enableval" = yes; then
6141 ac_cv_use_url='wxUSE_URL=yes'
6142 else
6143 ac_cv_use_url='wxUSE_URL=no'
6144 fi
6145
6146else
6147
6148 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6156
6157fi;
6158
6159 eval "$ac_cv_use_url"
6160 if test "$no_cache" != 1; then
6161 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6162 fi
6163
6164 if test "$wxUSE_URL" = yes; then
6165 echo "$as_me:$LINENO: result: yes" >&5
6166echo "${ECHO_T}yes" >&6
6167 else
6168 echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6
6170 fi
6171
6172
6173 enablestring=
6174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6175echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6176 no_cache=0
6177 # Check whether --enable-protocol or --disable-protocol was given.
6178if test "${enable_protocol+set}" = set; then
6179 enableval="$enable_protocol"
6180
6181 if test "$enableval" = yes; then
6182 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6183 else
6184 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6185 fi
6186
6187else
6188
6189 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6190 if test "x$LINE" != x ; then
6191 eval "DEFAULT_$LINE"
6192 else
6193 no_cache=1
6194 fi
6195
6196 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6197
6198fi;
6199
6200 eval "$ac_cv_use_protocol"
6201 if test "$no_cache" != 1; then
6202 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6203 fi
6204
6205 if test "$wxUSE_PROTOCOL" = yes; then
6206 echo "$as_me:$LINENO: result: yes" >&5
6207echo "${ECHO_T}yes" >&6
6208 else
6209 echo "$as_me:$LINENO: result: no" >&5
6210echo "${ECHO_T}no" >&6
6211 fi
6212
6213
6214 enablestring=
6215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6216echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6217 no_cache=0
6218 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6219if test "${enable_protocol_http+set}" = set; then
6220 enableval="$enable_protocol_http"
6221
6222 if test "$enableval" = yes; then
6223 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6224 else
6225 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6226 fi
6227
6228else
6229
6230 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6231 if test "x$LINE" != x ; then
6232 eval "DEFAULT_$LINE"
6233 else
6234 no_cache=1
6235 fi
6236
6237 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6238
6239fi;
6240
6241 eval "$ac_cv_use_protocol_http"
6242 if test "$no_cache" != 1; then
6243 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6244 fi
6245
6246 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6247 echo "$as_me:$LINENO: result: yes" >&5
6248echo "${ECHO_T}yes" >&6
6249 else
6250 echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6
6252 fi
6253
6254
6255 enablestring=
6256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6257echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6258 no_cache=0
6259 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6260if test "${enable_protocol_ftp+set}" = set; then
6261 enableval="$enable_protocol_ftp"
6262
6263 if test "$enableval" = yes; then
6264 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6265 else
6266 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6267 fi
6268
6269else
6270
6271 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6272 if test "x$LINE" != x ; then
6273 eval "DEFAULT_$LINE"
6274 else
6275 no_cache=1
6276 fi
6277
6278 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6279
6280fi;
6281
6282 eval "$ac_cv_use_protocol_ftp"
6283 if test "$no_cache" != 1; then
6284 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6285 fi
6286
6287 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6288 echo "$as_me:$LINENO: result: yes" >&5
6289echo "${ECHO_T}yes" >&6
6290 else
6291 echo "$as_me:$LINENO: result: no" >&5
6292echo "${ECHO_T}no" >&6
6293 fi
6294
6295
6296 enablestring=
6297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6298echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6299 no_cache=0
6300 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6301if test "${enable_protocol_file+set}" = set; then
6302 enableval="$enable_protocol_file"
6303
6304 if test "$enableval" = yes; then
6305 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6306 else
6307 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6308 fi
6309
6310else
6311
6312 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6320
6321fi;
6322
6323 eval "$ac_cv_use_protocol_file"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6329 echo "$as_me:$LINENO: result: yes" >&5
6330echo "${ECHO_T}yes" >&6
6331 else
6332 echo "$as_me:$LINENO: result: no" >&5
6333echo "${ECHO_T}no" >&6
6334 fi
6335
6336
6337
6338
6339
6340 enablestring=
6341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6342echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6343 no_cache=0
6344 # Check whether --enable-threads or --disable-threads was given.
6345if test "${enable_threads+set}" = set; then
6346 enableval="$enable_threads"
6347
6348 if test "$enableval" = yes; then
6349 ac_cv_use_threads='wxUSE_THREADS=yes'
6350 else
6351 ac_cv_use_threads='wxUSE_THREADS=no'
6352 fi
6353
6354else
6355
6356 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6357 if test "x$LINE" != x ; then
6358 eval "DEFAULT_$LINE"
6359 else
6360 no_cache=1
6361 fi
6362
6363 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6364
6365fi;
6366
6367 eval "$ac_cv_use_threads"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6370 fi
6371
6372 if test "$wxUSE_THREADS" = yes; then
6373 echo "$as_me:$LINENO: result: yes" >&5
6374echo "${ECHO_T}yes" >&6
6375 else
6376 echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
6378 fi
6379
6380
6381if test "$wxUSE_GUI" = "yes"; then
6382
6383
6384
6385 enablestring=
6386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6387echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6388 no_cache=0
6389 # Check whether --enable-docview or --disable-docview was given.
6390if test "${enable_docview+set}" = set; then
6391 enableval="$enable_docview"
6392
6393 if test "$enableval" = yes; then
6394 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6395 else
6396 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6397 fi
6398
6399else
6400
6401 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6402 if test "x$LINE" != x ; then
6403 eval "DEFAULT_$LINE"
6404 else
6405 no_cache=1
6406 fi
6407
6408 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6409
6410fi;
6411
6412 eval "$ac_cv_use_docview"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6418 echo "$as_me:$LINENO: result: yes" >&5
6419echo "${ECHO_T}yes" >&6
6420 else
6421 echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6
6423 fi
6424
6425
6426 enablestring=
6427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6428echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6429 no_cache=0
6430 # Check whether --enable-help or --disable-help was given.
6431if test "${enable_help+set}" = set; then
6432 enableval="$enable_help"
6433
6434 if test "$enableval" = yes; then
6435 ac_cv_use_help='wxUSE_HELP=yes'
6436 else
6437 ac_cv_use_help='wxUSE_HELP=no'
6438 fi
6439
6440else
6441
6442 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6443 if test "x$LINE" != x ; then
6444 eval "DEFAULT_$LINE"
6445 else
6446 no_cache=1
6447 fi
6448
6449 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6450
6451fi;
6452
6453 eval "$ac_cv_use_help"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_HELP" = yes; then
6459 echo "$as_me:$LINENO: result: yes" >&5
6460echo "${ECHO_T}yes" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6464 fi
6465
6466
6467 enablestring=
6468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6469echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6470 no_cache=0
6471 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6472if test "${enable_mshtmlhelp+set}" = set; then
6473 enableval="$enable_mshtmlhelp"
6474
6475 if test "$enableval" = yes; then
6476 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6477 else
6478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6479 fi
6480
6481else
6482
6483 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6491
6492fi;
6493
6494 eval "$ac_cv_use_mshtmlhelp"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6497 fi
6498
6499 if test "$wxUSE_MS_HTML_HELP" = yes; then
6500 echo "$as_me:$LINENO: result: yes" >&5
6501echo "${ECHO_T}yes" >&6
6502 else
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505 fi
6506
6507
6508 enablestring=
6509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6510echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6511 no_cache=0
6512 # Check whether --enable-html or --disable-html was given.
6513if test "${enable_html+set}" = set; then
6514 enableval="$enable_html"
6515
6516 if test "$enableval" = yes; then
6517 ac_cv_use_html='wxUSE_HTML=yes'
6518 else
6519 ac_cv_use_html='wxUSE_HTML=no'
6520 fi
6521
6522else
6523
6524 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6532
6533fi;
6534
6535 eval "$ac_cv_use_html"
6536 if test "$no_cache" != 1; then
6537 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6538 fi
6539
6540 if test "$wxUSE_HTML" = yes; then
6541 echo "$as_me:$LINENO: result: yes" >&5
6542echo "${ECHO_T}yes" >&6
6543 else
6544 echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
6546 fi
6547
6548
6549 enablestring=
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6552 no_cache=0
6553 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6554if test "${enable_htmlhelp+set}" = set; then
6555 enableval="$enable_htmlhelp"
6556
6557 if test "$enableval" = yes; then
6558 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6559 else
6560 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6561 fi
6562
6563else
6564
6565 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
6572 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6573
6574fi;
6575
6576 eval "$ac_cv_use_htmlhelp"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_WXHTML_HELP" = yes; then
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
6587 fi
6588
6589
9a8f0513
VS
6590 enablestring=
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6593 no_cache=0
6594 # Check whether --enable-xrc or --disable-xrc was given.
6595if test "${enable_xrc+set}" = set; then
6596 enableval="$enable_xrc"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_xrc='wxUSE_XRC=yes'
6600 else
6601 ac_cv_use_xrc='wxUSE_XRC=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6614
6615fi;
6616
6617 eval "$ac_cv_use_xrc"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_XRC" = yes; then
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628 fi
6629
6630
a848cd7e
SC
6631 enablestring=
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6634 no_cache=0
6635 # Check whether --enable-constraints or --disable-constraints was given.
6636if test "${enable_constraints+set}" = set; then
6637 enableval="$enable_constraints"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6641 else
6642 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6643 fi
6644
6645else
6646
6647 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6655
6656fi;
6657
6658 eval "$ac_cv_use_constraints"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_CONSTRAINTS" = yes; then
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
6669 fi
6670
6671
6672 enablestring=
6673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6674echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6675 no_cache=0
6676 # Check whether --enable-printarch or --disable-printarch was given.
6677if test "${enable_printarch+set}" = set; then
6678 enableval="$enable_printarch"
6679
6680 if test "$enableval" = yes; then
6681 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6682 else
6683 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6684 fi
6685
6686else
6687
6688 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6689 if test "x$LINE" != x ; then
6690 eval "DEFAULT_$LINE"
6691 else
6692 no_cache=1
6693 fi
6694
6695 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6696
6697fi;
6698
6699 eval "$ac_cv_use_printarch"
6700 if test "$no_cache" != 1; then
6701 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6702 fi
6703
6704 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6705 echo "$as_me:$LINENO: result: yes" >&5
6706echo "${ECHO_T}yes" >&6
6707 else
6708 echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6
6710 fi
6711
6712
6713 enablestring=
6714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6715echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6716 no_cache=0
6717 # Check whether --enable-mdi or --disable-mdi was given.
6718if test "${enable_mdi+set}" = set; then
6719 enableval="$enable_mdi"
6720
6721 if test "$enableval" = yes; then
8a7b1113 6722 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6723 else
8a7b1113 6724 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6725 fi
6726
6727else
6728
8a7b1113 6729 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6730 if test "x$LINE" != x ; then
6731 eval "DEFAULT_$LINE"
6732 else
6733 no_cache=1
6734 fi
6735
8a7b1113 6736 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6737
6738fi;
6739
6740 eval "$ac_cv_use_mdi"
6741 if test "$no_cache" != 1; then
6742 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6743 fi
6744
8a7b1113
VZ
6745 if test "$wxUSE_MDI" = yes; then
6746 echo "$as_me:$LINENO: result: yes" >&5
6747echo "${ECHO_T}yes" >&6
6748 else
6749 echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
6751 fi
6752
6753
6754 enablestring=
6755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6756echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6757 no_cache=0
6758 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6759if test "${enable_mdidoc+set}" = set; then
6760 enableval="$enable_mdidoc"
6761
6762 if test "$enableval" = yes; then
6763 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6764 else
6765 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6766 fi
6767
6768else
6769
6770 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6771 if test "x$LINE" != x ; then
6772 eval "DEFAULT_$LINE"
6773 else
6774 no_cache=1
6775 fi
6776
6777 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6778
6779fi;
6780
6781 eval "$ac_cv_use_mdidoc"
6782 if test "$no_cache" != 1; then
6783 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6784 fi
6785
a848cd7e
SC
6786 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6787 echo "$as_me:$LINENO: result: yes" >&5
6788echo "${ECHO_T}yes" >&6
6789 else
6790 echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6
6792 fi
6793
6794
6795 enablestring=
6796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6797echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6798 no_cache=0
6799 # Check whether --enable-loggui or --disable-loggui was given.
6800if test "${enable_loggui+set}" = set; then
6801 enableval="$enable_loggui"
6802
6803 if test "$enableval" = yes; then
6804 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6805 else
6806 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6807 fi
6808
6809else
6810
6811 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6812 if test "x$LINE" != x ; then
6813 eval "DEFAULT_$LINE"
6814 else
6815 no_cache=1
6816 fi
6817
6818 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6819
6820fi;
6821
6822 eval "$ac_cv_use_loggui"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_LOGGUI" = yes; then
6828 echo "$as_me:$LINENO: result: yes" >&5
6829echo "${ECHO_T}yes" >&6
6830 else
6831 echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6
6833 fi
6834
6835
6836 enablestring=
6837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6838echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6839 no_cache=0
6840 # Check whether --enable-logwin or --disable-logwin was given.
6841if test "${enable_logwin+set}" = set; then
6842 enableval="$enable_logwin"
6843
6844 if test "$enableval" = yes; then
6845 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6846 else
6847 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6848 fi
6849
6850else
6851
6852 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6853 if test "x$LINE" != x ; then
6854 eval "DEFAULT_$LINE"
6855 else
6856 no_cache=1
6857 fi
6858
6859 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6860
6861fi;
6862
6863 eval "$ac_cv_use_logwin"
6864 if test "$no_cache" != 1; then
6865 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6866 fi
6867
6868 if test "$wxUSE_LOGWINDOW" = yes; then
6869 echo "$as_me:$LINENO: result: yes" >&5
6870echo "${ECHO_T}yes" >&6
6871 else
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
6874 fi
6875
6876
6877 enablestring=
6878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6879echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6880 no_cache=0
6881 # Check whether --enable-logdialog or --disable-logdialog was given.
6882if test "${enable_logdialog+set}" = set; then
6883 enableval="$enable_logdialog"
6884
6885 if test "$enableval" = yes; then
6886 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6887 else
6888 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6889 fi
6890
6891else
6892
6893 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6901
6902fi;
6903
6904 eval "$ac_cv_use_logdialog"
6905 if test "$no_cache" != 1; then
6906 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6907 fi
6908
6909 if test "$wxUSE_LOGDIALOG" = yes; then
6910 echo "$as_me:$LINENO: result: yes" >&5
6911echo "${ECHO_T}yes" >&6
6912 else
6913 echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
6915 fi
6916
6917
646b6ec1
VS
6918 enablestring=
6919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6920echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6921 no_cache=0
6922 # Check whether --enable-webkit or --disable-webkit was given.
6923if test "${enable_webkit+set}" = set; then
6924 enableval="$enable_webkit"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6928 else
6929 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6930 fi
6931
6932else
6933
6934 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6942
6943fi;
6944
6945 eval "$ac_cv_use_webkit"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_WEBKIT" = yes; then
6951 echo "$as_me:$LINENO: result: yes" >&5
6952echo "${ECHO_T}yes" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
6956 fi
6957
6958
a848cd7e
SC
6959
6960 enablestring=
6961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6962echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6963 no_cache=0
6964 # Check whether --enable-postscript or --disable-postscript was given.
6965if test "${enable_postscript+set}" = set; then
6966 enableval="$enable_postscript"
6967
6968 if test "$enableval" = yes; then
6969 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6970 else
6971 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6972 fi
6973
6974else
6975
6976 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6984
6985fi;
6986
6987 eval "$ac_cv_use_postscript"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_POSTSCRIPT" = yes; then
6993 echo "$as_me:$LINENO: result: yes" >&5
6994echo "${ECHO_T}yes" >&6
6995 else
6996 echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6
6998 fi
6999
7000
7001
7002
7003
7004 enablestring=
7005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7006echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7007 no_cache=0
7008 # Check whether --enable-prologio or --disable-prologio was given.
7009if test "${enable_prologio+set}" = set; then
7010 enableval="$enable_prologio"
7011
7012 if test "$enableval" = yes; then
7013 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7014 else
7015 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7016 fi
7017
7018else
7019
7020 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7028
7029fi;
7030
7031 eval "$ac_cv_use_prologio"
7032 if test "$no_cache" != 1; then
7033 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7034 fi
7035
7036 if test "$wxUSE_PROLOGIO" = yes; then
7037 echo "$as_me:$LINENO: result: yes" >&5
7038echo "${ECHO_T}yes" >&6
7039 else
7040 echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6
7042 fi
7043
7044
7045 enablestring=
7046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7047echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7048 no_cache=0
7049 # Check whether --enable-resources or --disable-resources was given.
7050if test "${enable_resources+set}" = set; then
7051 enableval="$enable_resources"
7052
7053 if test "$enableval" = yes; then
7054 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7055 else
7056 ac_cv_use_resources='wxUSE_RESOURCES=no'
7057 fi
7058
7059else
7060
7061 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7062 if test "x$LINE" != x ; then
7063 eval "DEFAULT_$LINE"
7064 else
7065 no_cache=1
7066 fi
7067
7068 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7069
7070fi;
7071
7072 eval "$ac_cv_use_resources"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_RESOURCES" = yes; then
7078 echo "$as_me:$LINENO: result: yes" >&5
7079echo "${ECHO_T}yes" >&6
7080 else
7081 echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6
7083 fi
7084
7085
7086
7087
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-clipboard or --disable-clipboard was given.
7093if test "${enable_clipboard+set}" = set; then
7094 enableval="$enable_clipboard"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7098 else
7099 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7112
7113fi;
7114
7115 eval "$ac_cv_use_clipboard"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_CLIPBOARD" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-dnd or --disable-dnd was given.
7134if test "${enable_dnd+set}" = set; then
7135 enableval="$enable_dnd"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7139 else
7140 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7153
7154fi;
7155
7156 eval "$ac_cv_use_dnd"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 fi
7168
7169
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-metafile or --disable-metafile was given.
7175if test "${enable_metafile+set}" = set; then
7176 enableval="$enable_metafile"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7180 else
7181 ac_cv_use_metafile='wxUSE_METAFILE=no'
7182 fi
7183
7184else
7185
7186 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7194
7195fi;
7196
7197 eval "$ac_cv_use_metafile"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_METAFILE" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208 fi
7209
7210
7211
7212
7213
7214 enablestring=
7215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7216echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7217 no_cache=0
7218 # Check whether --enable-controls or --disable-controls was given.
7219if test "${enable_controls+set}" = set; then
7220 enableval="$enable_controls"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7224 else
7225 ac_cv_use_controls='wxUSE_CONTROLS=no'
7226 fi
7227
7228else
7229
7230 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7238
7239fi;
7240
7241 eval "$ac_cv_use_controls"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_CONTROLS" = yes; then
7247 echo "$as_me:$LINENO: result: yes" >&5
7248echo "${ECHO_T}yes" >&6
7249 else
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
7252 fi
7253
7254
7255if test "$wxUSE_CONTROLS" = "yes"; then
7256 DEFAULT_wxUSE_ACCEL=yes
7257 DEFAULT_wxUSE_BMPBUTTON=yes
7258 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7259 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7260 DEFAULT_wxUSE_CARET=yes
7261 DEFAULT_wxUSE_COMBOBOX=yes
7262 DEFAULT_wxUSE_CHECKBOX=yes
7263 DEFAULT_wxUSE_CHECKLISTBOX=yes
7264 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7265 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7266 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7267 DEFAULT_wxUSE_GAUGE=yes
7268 DEFAULT_wxUSE_GRID=yes
7269 DEFAULT_wxUSE_IMAGLIST=yes
7270 DEFAULT_wxUSE_LISTBOOK=yes
7271 DEFAULT_wxUSE_LISTBOX=yes
7272 DEFAULT_wxUSE_LISTCTRL=yes
7273 DEFAULT_wxUSE_NOTEBOOK=yes
7274 DEFAULT_wxUSE_RADIOBOX=yes
7275 DEFAULT_wxUSE_RADIOBTN=yes
7276 DEFAULT_wxUSE_SASH=yes
7277 DEFAULT_wxUSE_SCROLLBAR=yes
7278 DEFAULT_wxUSE_SLIDER=yes
7279 DEFAULT_wxUSE_SPINBTN=yes
7280 DEFAULT_wxUSE_SPINCTRL=yes
7281 DEFAULT_wxUSE_SPLITTER=yes
7282 DEFAULT_wxUSE_STATBMP=yes
7283 DEFAULT_wxUSE_STATBOX=yes
7284 DEFAULT_wxUSE_STATLINE=yes
7285 DEFAULT_wxUSE_STATUSBAR=yes
7286 DEFAULT_wxUSE_TAB_DIALOG=yes
7287 DEFAULT_wxUSE_TOGGLEBTN=yes
7288 DEFAULT_wxUSE_TOOLBAR=yes
7289 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7290 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7291 DEFAULT_wxUSE_TOOLTIPS=yes
7292 DEFAULT_wxUSE_TREECTRL=yes
7293 DEFAULT_wxUSE_POPUPWIN=yes
7294 DEFAULT_wxUSE_TIPWINDOW=yes
7295elif test "$wxUSE_CONTROLS" = "no"; then
7296 DEFAULT_wxUSE_ACCEL=no
7297 DEFAULT_wxUSE_BMPBUTTON=no
7298 DEFAULT_wxUSE_BUTTON=no
7299 DEFAULT_wxUSE_CALCTRL=no
7300 DEFAULT_wxUSE_CARET=no
7301 DEFAULT_wxUSE_COMBOBOX=no
7302 DEFAULT_wxUSE_CHECKBOX=no
7303 DEFAULT_wxUSE_CHECKLISTBOX=no
7304 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7305 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7306 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7307 DEFAULT_wxUSE_GAUGE=no
7308 DEFAULT_wxUSE_GRID=no
7309 DEFAULT_wxUSE_IMAGLIST=no
7310 DEFAULT_wxUSE_LISTBOOK=no
7311 DEFAULT_wxUSE_LISTBOX=no
7312 DEFAULT_wxUSE_LISTCTRL=no
7313 DEFAULT_wxUSE_NOTEBOOK=no
7314 DEFAULT_wxUSE_RADIOBOX=no
7315 DEFAULT_wxUSE_RADIOBTN=no
7316 DEFAULT_wxUSE_SASH=no
7317 DEFAULT_wxUSE_SCROLLBAR=no
7318 DEFAULT_wxUSE_SLIDER=no
7319 DEFAULT_wxUSE_SPINBTN=no
7320 DEFAULT_wxUSE_SPINCTRL=no
7321 DEFAULT_wxUSE_SPLITTER=no
7322 DEFAULT_wxUSE_STATBMP=no
7323 DEFAULT_wxUSE_STATBOX=no
7324 DEFAULT_wxUSE_STATLINE=no
7325 DEFAULT_wxUSE_STATUSBAR=no
7326 DEFAULT_wxUSE_TAB_DIALOG=no
7327 DEFAULT_wxUSE_TOGGLEBTN=no
7328 DEFAULT_wxUSE_TOOLBAR=no
7329 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7330 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7331 DEFAULT_wxUSE_TOOLTIPS=no
7332 DEFAULT_wxUSE_TREECTRL=no
7333 DEFAULT_wxUSE_POPUPWIN=no
7334 DEFAULT_wxUSE_TIPWINDOW=no
7335fi
7336
a848cd7e
SC
7337
7338 enablestring=
7339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7340echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7341 no_cache=0
7342 # Check whether --enable-accel or --disable-accel was given.
7343if test "${enable_accel+set}" = set; then
7344 enableval="$enable_accel"
7345
7346 if test "$enableval" = yes; then
7347 ac_cv_use_accel='wxUSE_ACCEL=yes'
7348 else
7349 ac_cv_use_accel='wxUSE_ACCEL=no'
7350 fi
7351
7352else
7353
7354 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7355 if test "x$LINE" != x ; then
7356 eval "DEFAULT_$LINE"
7357 else
7358 no_cache=1
7359 fi
7360
7361 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7362
7363fi;
7364
7365 eval "$ac_cv_use_accel"
7366 if test "$no_cache" != 1; then
7367 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7368 fi
7369
7370 if test "$wxUSE_ACCEL" = yes; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372echo "${ECHO_T}yes" >&6
7373 else
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376 fi
7377
7378
7379 enablestring=
7380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7381echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7382 no_cache=0
7383 # Check whether --enable-button or --disable-button was given.
7384if test "${enable_button+set}" = set; then
7385 enableval="$enable_button"
7386
7387 if test "$enableval" = yes; then
7388 ac_cv_use_button='wxUSE_BUTTON=yes'
7389 else
7390 ac_cv_use_button='wxUSE_BUTTON=no'
7391 fi
7392
7393else
7394
7395 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7396 if test "x$LINE" != x ; then
7397 eval "DEFAULT_$LINE"
7398 else
7399 no_cache=1
7400 fi
7401
7402 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7403
7404fi;
7405
7406 eval "$ac_cv_use_button"
7407 if test "$no_cache" != 1; then
7408 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7409 fi
7410
7411 if test "$wxUSE_BUTTON" = yes; then
7412 echo "$as_me:$LINENO: result: yes" >&5
7413echo "${ECHO_T}yes" >&6
7414 else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417 fi
7418
7419
7420 enablestring=
7421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7422echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7423 no_cache=0
7424 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7425if test "${enable_bmpbutton+set}" = set; then
7426 enableval="$enable_bmpbutton"
7427
7428 if test "$enableval" = yes; then
7429 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7430 else
7431 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7432 fi
7433
7434else
7435
7436 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7437 if test "x$LINE" != x ; then
7438 eval "DEFAULT_$LINE"
7439 else
7440 no_cache=1
7441 fi
7442
7443 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7444
7445fi;
7446
7447 eval "$ac_cv_use_bmpbutton"
7448 if test "$no_cache" != 1; then
7449 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7450 fi
7451
7452 if test "$wxUSE_BMPBUTTON" = yes; then
7453 echo "$as_me:$LINENO: result: yes" >&5
7454echo "${ECHO_T}yes" >&6
7455 else
7456 echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6
7458 fi
7459
7460
7461 enablestring=
7462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7463echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7464 no_cache=0
7465 # Check whether --enable-calendar or --disable-calendar was given.
7466if test "${enable_calendar+set}" = set; then
7467 enableval="$enable_calendar"
7468
7469 if test "$enableval" = yes; then
7470 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7471 else
7472 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7473 fi
7474
7475else
7476
7477 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7478 if test "x$LINE" != x ; then
7479 eval "DEFAULT_$LINE"
7480 else
7481 no_cache=1
7482 fi
7483
7484 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7485
7486fi;
7487
7488 eval "$ac_cv_use_calendar"
7489 if test "$no_cache" != 1; then
7490 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7491 fi
7492
7493 if test "$wxUSE_CALCTRL" = yes; then
7494 echo "$as_me:$LINENO: result: yes" >&5
7495echo "${ECHO_T}yes" >&6
7496 else
7497 echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6
7499 fi
7500
7501
7502 enablestring=
7503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7504echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7505 no_cache=0
7506 # Check whether --enable-caret or --disable-caret was given.
7507if test "${enable_caret+set}" = set; then
7508 enableval="$enable_caret"
7509
7510 if test "$enableval" = yes; then
7511 ac_cv_use_caret='wxUSE_CARET=yes'
7512 else
7513 ac_cv_use_caret='wxUSE_CARET=no'
7514 fi
7515
7516else
7517
7518 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7519 if test "x$LINE" != x ; then
7520 eval "DEFAULT_$LINE"
7521 else
7522 no_cache=1
7523 fi
7524
7525 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7526
7527fi;
7528
7529 eval "$ac_cv_use_caret"
7530 if test "$no_cache" != 1; then
7531 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7532 fi
7533
7534 if test "$wxUSE_CARET" = yes; then
7535 echo "$as_me:$LINENO: result: yes" >&5
7536echo "${ECHO_T}yes" >&6
7537 else
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
7540 fi
7541
7542
7543 enablestring=
7544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7545echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7546 no_cache=0
7547 # Check whether --enable-checkbox or --disable-checkbox was given.
7548if test "${enable_checkbox+set}" = set; then
7549 enableval="$enable_checkbox"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7553 else
7554 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7555 fi
7556
7557else
7558
7559 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7567
7568fi;
7569
7570 eval "$ac_cv_use_checkbox"
7571 if test "$no_cache" != 1; then
7572 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7573 fi
7574
7575 if test "$wxUSE_CHECKBOX" = yes; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577echo "${ECHO_T}yes" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6
7581 fi
7582
7583
7584 enablestring=
7585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7586echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7587 no_cache=0
7588 # Check whether --enable-checklst or --disable-checklst was given.
7589if test "${enable_checklst+set}" = set; then
7590 enableval="$enable_checklst"
7591
7592 if test "$enableval" = yes; then
7593 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7594 else
7595 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7596 fi
7597
7598else
7599
7600 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7601 if test "x$LINE" != x ; then
7602 eval "DEFAULT_$LINE"
7603 else
7604 no_cache=1
7605 fi
7606
7607 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7608
7609fi;
7610
7611 eval "$ac_cv_use_checklst"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_CHECKLST" = yes; then
7617 echo "$as_me:$LINENO: result: yes" >&5
7618echo "${ECHO_T}yes" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6
7622 fi
7623
7624
7625 enablestring=
7626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7627echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7628 no_cache=0
7629 # Check whether --enable-choice or --disable-choice was given.
7630if test "${enable_choice+set}" = set; then
7631 enableval="$enable_choice"
7632
7633 if test "$enableval" = yes; then
7634 ac_cv_use_choice='wxUSE_CHOICE=yes'
7635 else
7636 ac_cv_use_choice='wxUSE_CHOICE=no'
7637 fi
7638
7639else
7640
7641 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7649
7650fi;
7651
7652 eval "$ac_cv_use_choice"
7653 if test "$no_cache" != 1; then
7654 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7655 fi
7656
7657 if test "$wxUSE_CHOICE" = yes; then
7658 echo "$as_me:$LINENO: result: yes" >&5
7659echo "${ECHO_T}yes" >&6
7660 else
7661 echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
7663 fi
7664
7665
92bbdbcd
WS
7666 enablestring=
7667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7668echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7669 no_cache=0
7670 # Check whether --enable-choicebook or --disable-choicebook was given.
7671if test "${enable_choicebook+set}" = set; then
7672 enableval="$enable_choicebook"
7673
7674 if test "$enableval" = yes; then
7675 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7676 else
7677 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7678 fi
7679
7680else
7681
7682 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7690
7691fi;
7692
7693 eval "$ac_cv_use_choicebook"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_CHOICEBOOK" = yes; then
7699 echo "$as_me:$LINENO: result: yes" >&5
7700echo "${ECHO_T}yes" >&6
7701 else
7702 echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6
7704 fi
7705
7706
a848cd7e
SC
7707 enablestring=
7708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7709echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7710 no_cache=0
7711 # Check whether --enable-combobox or --disable-combobox was given.
7712if test "${enable_combobox+set}" = set; then
7713 enableval="$enable_combobox"
7714
7715 if test "$enableval" = yes; then
7716 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7717 else
7718 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7719 fi
7720
7721else
7722
7723 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7724 if test "x$LINE" != x ; then
7725 eval "DEFAULT_$LINE"
7726 else
7727 no_cache=1
7728 fi
7729
7730 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7731
7732fi;
7733
7734 eval "$ac_cv_use_combobox"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_COMBOBOX" = yes; then
7740 echo "$as_me:$LINENO: result: yes" >&5
7741echo "${ECHO_T}yes" >&6
7742 else
7743 echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745 fi
7746
7747
da98e9be
VZ
7748 enablestring=
7749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7750echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7751 no_cache=0
7752 # Check whether --enable-datepick or --disable-datepick was given.
7753if test "${enable_datepick+set}" = set; then
7754 enableval="$enable_datepick"
7755
7756 if test "$enableval" = yes; then
7757 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7758 else
7759 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7760 fi
7761
7762else
7763
7764 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7765 if test "x$LINE" != x ; then
7766 eval "DEFAULT_$LINE"
7767 else
7768 no_cache=1
7769 fi
7770
7771 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7772
7773fi;
7774
7775 eval "$ac_cv_use_datepick"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_DATEPICKCTRL" = yes; then
7781 echo "$as_me:$LINENO: result: yes" >&5
7782echo "${ECHO_T}yes" >&6
7783 else
7784 echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786 fi
7787
7788
a848cd7e
SC
7789 enablestring=
7790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7791echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7792 no_cache=0
7793 # Check whether --enable-display or --disable-display was given.
7794if test "${enable_display+set}" = set; then
7795 enableval="$enable_display"
7796
7797 if test "$enableval" = yes; then
7798 ac_cv_use_display='wxUSE_DISPLAY=yes'
7799 else
7800 ac_cv_use_display='wxUSE_DISPLAY=no'
7801 fi
7802
7803else
7804
7805 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7813
7814fi;
7815
7816 eval "$ac_cv_use_display"
7817 if test "$no_cache" != 1; then
7818 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7819 fi
7820
7821 if test "$wxUSE_DISPLAY" = yes; then
7822 echo "$as_me:$LINENO: result: yes" >&5
7823echo "${ECHO_T}yes" >&6
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827 fi
7828
7829
7830 enablestring=
7831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7832echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7833 no_cache=0
7834 # Check whether --enable-gauge or --disable-gauge was given.
7835if test "${enable_gauge+set}" = set; then
7836 enableval="$enable_gauge"
7837
7838 if test "$enableval" = yes; then
7839 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7840 else
7841 ac_cv_use_gauge='wxUSE_GAUGE=no'
7842 fi
7843
7844else
7845
7846 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7847 if test "x$LINE" != x ; then
7848 eval "DEFAULT_$LINE"
7849 else
7850 no_cache=1
7851 fi
7852
7853 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7854
7855fi;
7856
7857 eval "$ac_cv_use_gauge"
7858 if test "$no_cache" != 1; then
7859 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7860 fi
7861
7862 if test "$wxUSE_GAUGE" = yes; then
7863 echo "$as_me:$LINENO: result: yes" >&5
7864echo "${ECHO_T}yes" >&6
7865 else
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868 fi
7869
7870
7871 enablestring=
7872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7873echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7874 no_cache=0
7875 # Check whether --enable-grid or --disable-grid was given.
7876if test "${enable_grid+set}" = set; then
7877 enableval="$enable_grid"
7878
7879 if test "$enableval" = yes; then
7880 ac_cv_use_grid='wxUSE_GRID=yes'
7881 else
7882 ac_cv_use_grid='wxUSE_GRID=no'
7883 fi
7884
7885else
7886
7887 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7888 if test "x$LINE" != x ; then
7889 eval "DEFAULT_$LINE"
7890 else
7891 no_cache=1
7892 fi
7893
7894 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7895
7896fi;
7897
7898 eval "$ac_cv_use_grid"
7899 if test "$no_cache" != 1; then
7900 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7901 fi
7902
7903 if test "$wxUSE_GRID" = yes; then
7904 echo "$as_me:$LINENO: result: yes" >&5
7905echo "${ECHO_T}yes" >&6
7906 else
7907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
7909 fi
7910
7911
7912 enablestring=
7913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7914echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7915 no_cache=0
7916 # Check whether --enable-imaglist or --disable-imaglist was given.
7917if test "${enable_imaglist+set}" = set; then
7918 enableval="$enable_imaglist"
7919
7920 if test "$enableval" = yes; then
7921 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7922 else
7923 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7924 fi
7925
7926else
7927
7928 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7929 if test "x$LINE" != x ; then
7930 eval "DEFAULT_$LINE"
7931 else
7932 no_cache=1
7933 fi
7934
7935 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7936
7937fi;
7938
7939 eval "$ac_cv_use_imaglist"
7940 if test "$no_cache" != 1; then
7941 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7942 fi
7943
7944 if test "$wxUSE_IMAGLIST" = yes; then
7945 echo "$as_me:$LINENO: result: yes" >&5
7946echo "${ECHO_T}yes" >&6
7947 else
7948 echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
7950 fi
7951
7952
7953 enablestring=
7954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7955echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7956 no_cache=0
7957 # Check whether --enable-listbook or --disable-listbook was given.
7958if test "${enable_listbook+set}" = set; then
7959 enableval="$enable_listbook"
7960
7961 if test "$enableval" = yes; then
7962 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7963 else
7964 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7965 fi
7966
7967else
7968
7969 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7970 if test "x$LINE" != x ; then
7971 eval "DEFAULT_$LINE"
7972 else
7973 no_cache=1
7974 fi
7975
7976 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7977
7978fi;
7979
7980 eval "$ac_cv_use_listbook"
7981 if test "$no_cache" != 1; then
7982 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7983 fi
7984
7985 if test "$wxUSE_LISTBOOK" = yes; then
7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
7988 else
7989 echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991 fi
7992
7993
7994 enablestring=
7995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7996echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7997 no_cache=0
7998 # Check whether --enable-listbox or --disable-listbox was given.
7999if test "${enable_listbox+set}" = set; then
8000 enableval="$enable_listbox"
8001
8002 if test "$enableval" = yes; then
8003 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8004 else
8005 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8006 fi
8007
8008else
8009
8010 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8018
8019fi;
8020
8021 eval "$ac_cv_use_listbox"
8022 if test "$no_cache" != 1; then
8023 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8024 fi
8025
8026 if test "$wxUSE_LISTBOX" = yes; then
8027 echo "$as_me:$LINENO: result: yes" >&5
8028echo "${ECHO_T}yes" >&6
8029 else
8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
8032 fi
8033
8034
8035 enablestring=
8036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8037echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8038 no_cache=0
8039 # Check whether --enable-listctrl or --disable-listctrl was given.
8040if test "${enable_listctrl+set}" = set; then
8041 enableval="$enable_listctrl"
8042
8043 if test "$enableval" = yes; then
8044 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8045 else
8046 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8047 fi
8048
8049else
8050
8051 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8052 if test "x$LINE" != x ; then
8053 eval "DEFAULT_$LINE"
8054 else
8055 no_cache=1
8056 fi
8057
8058 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8059
8060fi;
8061
8062 eval "$ac_cv_use_listctrl"
8063 if test "$no_cache" != 1; then
8064 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8065 fi
8066
8067 if test "$wxUSE_LISTCTRL" = yes; then
8068 echo "$as_me:$LINENO: result: yes" >&5
8069echo "${ECHO_T}yes" >&6
8070 else
8071 echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
8073 fi
8074
8075
8076 enablestring=
8077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8078echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8079 no_cache=0
8080 # Check whether --enable-notebook or --disable-notebook was given.
8081if test "${enable_notebook+set}" = set; then
8082 enableval="$enable_notebook"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8086 else
8087 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8093 if test "x$LINE" != x ; then
8094 eval "DEFAULT_$LINE"
8095 else
8096 no_cache=1
8097 fi
8098
8099 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8100
8101fi;
8102
8103 eval "$ac_cv_use_notebook"
8104 if test "$no_cache" != 1; then
8105 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8106 fi
8107
8108 if test "$wxUSE_NOTEBOOK" = yes; then
8109 echo "$as_me:$LINENO: result: yes" >&5
8110echo "${ECHO_T}yes" >&6
8111 else
8112 echo "$as_me:$LINENO: result: no" >&5
8113echo "${ECHO_T}no" >&6
8114 fi
8115
8116
8117 enablestring=
8118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8119echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8120 no_cache=0
8121 # Check whether --enable-radiobox or --disable-radiobox was given.
8122if test "${enable_radiobox+set}" = set; then
8123 enableval="$enable_radiobox"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8127 else
8128 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8129 fi
8130
8131else
8132
8133 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8141
8142fi;
8143
8144 eval "$ac_cv_use_radiobox"
8145 if test "$no_cache" != 1; then
8146 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8147 fi
8148
8149 if test "$wxUSE_RADIOBOX" = yes; then
8150 echo "$as_me:$LINENO: result: yes" >&5
8151echo "${ECHO_T}yes" >&6
8152 else
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
8155 fi
8156
8157
8158 enablestring=
8159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8160echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8161 no_cache=0
8162 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8163if test "${enable_radiobtn+set}" = set; then
8164 enableval="$enable_radiobtn"
8165
8166 if test "$enableval" = yes; then
8167 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8168 else
8169 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8170 fi
8171
8172else
8173
8174 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8175 if test "x$LINE" != x ; then
8176 eval "DEFAULT_$LINE"
8177 else
8178 no_cache=1
8179 fi
8180
8181 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8182
8183fi;
8184
8185 eval "$ac_cv_use_radiobtn"
8186 if test "$no_cache" != 1; then
8187 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8188 fi
8189
8190 if test "$wxUSE_RADIOBTN" = yes; then
8191 echo "$as_me:$LINENO: result: yes" >&5
8192echo "${ECHO_T}yes" >&6
8193 else
8194 echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6
8196 fi
8197
8198
8199 enablestring=
8200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8201echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8202 no_cache=0
8203 # Check whether --enable-sash or --disable-sash was given.
8204if test "${enable_sash+set}" = set; then
8205 enableval="$enable_sash"
8206
8207 if test "$enableval" = yes; then
8208 ac_cv_use_sash='wxUSE_SASH=yes'
8209 else
8210 ac_cv_use_sash='wxUSE_SASH=no'
8211 fi
8212
8213else
8214
8215 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8216 if test "x$LINE" != x ; then
8217 eval "DEFAULT_$LINE"
8218 else
8219 no_cache=1
8220 fi
8221
8222 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8223
8224fi;
8225
8226 eval "$ac_cv_use_sash"
8227 if test "$no_cache" != 1; then
8228 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8229 fi
8230
8231 if test "$wxUSE_SASH" = yes; then
8232 echo "$as_me:$LINENO: result: yes" >&5
8233echo "${ECHO_T}yes" >&6
8234 else
8235 echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
8237 fi
8238
8239
8240 enablestring=
8241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8242echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8243 no_cache=0
8244 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8245if test "${enable_scrollbar+set}" = set; then
8246 enableval="$enable_scrollbar"
8247
8248 if test "$enableval" = yes; then
8249 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8250 else
8251 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8252 fi
8253
8254else
8255
8256 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8257 if test "x$LINE" != x ; then
8258 eval "DEFAULT_$LINE"
8259 else
8260 no_cache=1
8261 fi
8262
8263 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8264
8265fi;
8266
8267 eval "$ac_cv_use_scrollbar"
8268 if test "$no_cache" != 1; then
8269 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8270 fi
8271
8272 if test "$wxUSE_SCROLLBAR" = yes; then
8273 echo "$as_me:$LINENO: result: yes" >&5
8274echo "${ECHO_T}yes" >&6
8275 else
8276 echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6
8278 fi
8279
8280
8281 enablestring=
8282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8283echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8284 no_cache=0
8285 # Check whether --enable-slider or --disable-slider was given.
8286if test "${enable_slider+set}" = set; then
8287 enableval="$enable_slider"
8288
8289 if test "$enableval" = yes; then
8290 ac_cv_use_slider='wxUSE_SLIDER=yes'
8291 else
8292 ac_cv_use_slider='wxUSE_SLIDER=no'
8293 fi
8294
8295else
8296
8297 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8298 if test "x$LINE" != x ; then
8299 eval "DEFAULT_$LINE"
8300 else
8301 no_cache=1
8302 fi
8303
8304 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8305
8306fi;
8307
8308 eval "$ac_cv_use_slider"
8309 if test "$no_cache" != 1; then
8310 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8311 fi
8312
8313 if test "$wxUSE_SLIDER" = yes; then
8314 echo "$as_me:$LINENO: result: yes" >&5
8315echo "${ECHO_T}yes" >&6
8316 else
8317 echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6
8319 fi
8320
8321
8322 enablestring=
8323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8324echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8325 no_cache=0
8326 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8327if test "${enable_spinbtn+set}" = set; then
8328 enableval="$enable_spinbtn"
8329
8330 if test "$enableval" = yes; then
8331 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8332 else
8333 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8334 fi
8335
8336else
8337
8338 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8339 if test "x$LINE" != x ; then
8340 eval "DEFAULT_$LINE"
8341 else
8342 no_cache=1
8343 fi
8344
8345 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8346
8347fi;
8348
8349 eval "$ac_cv_use_spinbtn"
8350 if test "$no_cache" != 1; then
8351 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8352 fi
8353
8354 if test "$wxUSE_SPINBTN" = yes; then
8355 echo "$as_me:$LINENO: result: yes" >&5
8356echo "${ECHO_T}yes" >&6
8357 else
8358 echo "$as_me:$LINENO: result: no" >&5
8359echo "${ECHO_T}no" >&6
8360 fi
8361
8362
8363 enablestring=
8364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8365echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8366 no_cache=0
8367 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8368if test "${enable_spinctrl+set}" = set; then
8369 enableval="$enable_spinctrl"
8370
8371 if test "$enableval" = yes; then
8372 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8373 else
8374 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8375 fi
8376
8377else
8378
8379 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8380 if test "x$LINE" != x ; then
8381 eval "DEFAULT_$LINE"
8382 else
8383 no_cache=1
8384 fi
8385
8386 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8387
8388fi;
8389
8390 eval "$ac_cv_use_spinctrl"
8391 if test "$no_cache" != 1; then
8392 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8393 fi
8394
8395 if test "$wxUSE_SPINCTRL" = yes; then
8396 echo "$as_me:$LINENO: result: yes" >&5
8397echo "${ECHO_T}yes" >&6
8398 else
8399 echo "$as_me:$LINENO: result: no" >&5
8400echo "${ECHO_T}no" >&6
8401 fi
8402
8403
8404 enablestring=
8405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8406echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8407 no_cache=0
8408 # Check whether --enable-splitter or --disable-splitter was given.
8409if test "${enable_splitter+set}" = set; then
8410 enableval="$enable_splitter"
8411
8412 if test "$enableval" = yes; then
8413 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8414 else
8415 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8416 fi
8417
8418else
8419
8420 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8421 if test "x$LINE" != x ; then
8422 eval "DEFAULT_$LINE"
8423 else
8424 no_cache=1
8425 fi
8426
8427 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8428
8429fi;
8430
8431 eval "$ac_cv_use_splitter"
8432 if test "$no_cache" != 1; then
8433 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8434 fi
8435
8436 if test "$wxUSE_SPLITTER" = yes; then
8437 echo "$as_me:$LINENO: result: yes" >&5
8438echo "${ECHO_T}yes" >&6
8439 else
8440 echo "$as_me:$LINENO: result: no" >&5
8441echo "${ECHO_T}no" >&6
8442 fi
8443
8444
8445 enablestring=
8446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8447echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8448 no_cache=0
8449 # Check whether --enable-statbmp or --disable-statbmp was given.
8450if test "${enable_statbmp+set}" = set; then
8451 enableval="$enable_statbmp"
8452
8453 if test "$enableval" = yes; then
8454 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8455 else
8456 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8457 fi
8458
8459else
8460
8461 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8462 if test "x$LINE" != x ; then
8463 eval "DEFAULT_$LINE"
8464 else
8465 no_cache=1
8466 fi
8467
8468 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8469
8470fi;
8471
8472 eval "$ac_cv_use_statbmp"
8473 if test "$no_cache" != 1; then
8474 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8475 fi
8476
8477 if test "$wxUSE_STATBMP" = yes; then
8478 echo "$as_me:$LINENO: result: yes" >&5
8479echo "${ECHO_T}yes" >&6
8480 else
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
8483 fi
8484
8485
8486 enablestring=
8487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8488echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8489 no_cache=0
8490 # Check whether --enable-statbox or --disable-statbox was given.
8491if test "${enable_statbox+set}" = set; then
8492 enableval="$enable_statbox"
8493
8494 if test "$enableval" = yes; then
8495 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8496 else
8497 ac_cv_use_statbox='wxUSE_STATBOX=no'
8498 fi
8499
8500else
8501
8502 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8503 if test "x$LINE" != x ; then
8504 eval "DEFAULT_$LINE"
8505 else
8506 no_cache=1
8507 fi
8508
8509 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8510
8511fi;
8512
8513 eval "$ac_cv_use_statbox"
8514 if test "$no_cache" != 1; then
8515 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8516 fi
8517
8518 if test "$wxUSE_STATBOX" = yes; then
8519 echo "$as_me:$LINENO: result: yes" >&5
8520echo "${ECHO_T}yes" >&6
8521 else
8522 echo "$as_me:$LINENO: result: no" >&5
8523echo "${ECHO_T}no" >&6
8524 fi
8525
8526
8527 enablestring=
8528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8529echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8530 no_cache=0
8531 # Check whether --enable-statline or --disable-statline was given.
8532if test "${enable_statline+set}" = set; then
8533 enableval="$enable_statline"
8534
8535 if test "$enableval" = yes; then
8536 ac_cv_use_statline='wxUSE_STATLINE=yes'
8537 else
8538 ac_cv_use_statline='wxUSE_STATLINE=no'
8539 fi
8540
8541else
8542
8543 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8544 if test "x$LINE" != x ; then
8545 eval "DEFAULT_$LINE"
8546 else
8547 no_cache=1
8548 fi
8549
8550 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8551
8552fi;
8553
8554 eval "$ac_cv_use_statline"
8555 if test "$no_cache" != 1; then
8556 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8557 fi
8558
8559 if test "$wxUSE_STATLINE" = yes; then
8560 echo "$as_me:$LINENO: result: yes" >&5
8561echo "${ECHO_T}yes" >&6
8562 else
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
8565 fi
8566
8567
8568 enablestring=
8569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8570echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8571 no_cache=0
8572 # Check whether --enable-stattext or --disable-stattext was given.
8573if test "${enable_stattext+set}" = set; then
8574 enableval="$enable_stattext"
8575
8576 if test "$enableval" = yes; then
8577 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8578 else
8579 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8580 fi
8581
8582else
8583
8584 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8585 if test "x$LINE" != x ; then
8586 eval "DEFAULT_$LINE"
8587 else
8588 no_cache=1
8589 fi
8590
8591 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8592
8593fi;
8594
8595 eval "$ac_cv_use_stattext"
8596 if test "$no_cache" != 1; then
8597 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8598 fi
8599
8600 if test "$wxUSE_STATTEXT" = yes; then
8601 echo "$as_me:$LINENO: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
8603 else
8604 echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6
8606 fi
8607
8608
8609 enablestring=
8610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8611echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8612 no_cache=0
8613 # Check whether --enable-statusbar or --disable-statusbar was given.
8614if test "${enable_statusbar+set}" = set; then
8615 enableval="$enable_statusbar"
8616
8617 if test "$enableval" = yes; then
8618 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8619 else
8620 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8621 fi
8622
8623else
8624
8625 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8626 if test "x$LINE" != x ; then
8627 eval "DEFAULT_$LINE"
8628 else
8629 no_cache=1
8630 fi
8631
8632 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8633
8634fi;
8635
8636 eval "$ac_cv_use_statusbar"
8637 if test "$no_cache" != 1; then
8638 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8639 fi
8640
8641 if test "$wxUSE_STATUSBAR" = yes; then
8642 echo "$as_me:$LINENO: result: yes" >&5
8643echo "${ECHO_T}yes" >&6
8644 else
8645 echo "$as_me:$LINENO: result: no" >&5
8646echo "${ECHO_T}no" >&6
8647 fi
8648
8649
8650 enablestring=
8651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8652echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8653 no_cache=0
8654 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8655if test "${enable_tabdialog+set}" = set; then
8656 enableval="$enable_tabdialog"
8657
8658 if test "$enableval" = yes; then
8659 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8660 else
8661 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8662 fi
8663
8664else
8665
8666 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8667 if test "x$LINE" != x ; then
8668 eval "DEFAULT_$LINE"
8669 else
8670 no_cache=1
8671 fi
8672
8673 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8674
8675fi;
8676
8677 eval "$ac_cv_use_tabdialog"
8678 if test "$no_cache" != 1; then
8679 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8680 fi
8681
8682 if test "$wxUSE_TABDIALOG" = yes; then
8683 echo "$as_me:$LINENO: result: yes" >&5
8684echo "${ECHO_T}yes" >&6
8685 else
8686 echo "$as_me:$LINENO: result: no" >&5
8687echo "${ECHO_T}no" >&6
8688 fi
8689
8690
8691 enablestring=
8692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8693echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8694 no_cache=0
8695 # Check whether --enable-textctrl or --disable-textctrl was given.
8696if test "${enable_textctrl+set}" = set; then
8697 enableval="$enable_textctrl"
8698
8699 if test "$enableval" = yes; then
8700 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8701 else
8702 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8703 fi
8704
8705else
8706
8707 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8708 if test "x$LINE" != x ; then
8709 eval "DEFAULT_$LINE"
8710 else
8711 no_cache=1
8712 fi
8713
8714 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8715
8716fi;
8717
8718 eval "$ac_cv_use_textctrl"
8719 if test "$no_cache" != 1; then
8720 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8721 fi
8722
8723 if test "$wxUSE_TEXTCTRL" = yes; then
8724 echo "$as_me:$LINENO: result: yes" >&5
8725echo "${ECHO_T}yes" >&6
8726 else
8727 echo "$as_me:$LINENO: result: no" >&5
8728echo "${ECHO_T}no" >&6
8729 fi
8730
8731
8732 enablestring=
8733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8734echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8735 no_cache=0
8736 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8737if test "${enable_togglebtn+set}" = set; then
8738 enableval="$enable_togglebtn"
8739
8740 if test "$enableval" = yes; then
8741 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8742 else
8743 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8744 fi
8745
8746else
8747
8748 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8749 if test "x$LINE" != x ; then
8750 eval "DEFAULT_$LINE"
8751 else
8752 no_cache=1
8753 fi
8754
8755 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8756
8757fi;
8758
8759 eval "$ac_cv_use_togglebtn"
8760 if test "$no_cache" != 1; then
8761 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8762 fi
8763
8764 if test "$wxUSE_TOGGLEBTN" = yes; then
8765 echo "$as_me:$LINENO: result: yes" >&5
8766echo "${ECHO_T}yes" >&6
8767 else
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
8770 fi
8771
8772
8773 enablestring=
8774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8775echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8776 no_cache=0
8777 # Check whether --enable-toolbar or --disable-toolbar was given.
8778if test "${enable_toolbar+set}" = set; then
8779 enableval="$enable_toolbar"
8780
8781 if test "$enableval" = yes; then
8782 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8783 else
8784 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8785 fi
8786
8787else
8788
8789 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8790 if test "x$LINE" != x ; then
8791 eval "DEFAULT_$LINE"
8792 else
8793 no_cache=1
8794 fi
8795
8796 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8797
8798fi;
8799
8800 eval "$ac_cv_use_toolbar"
8801 if test "$no_cache" != 1; then
8802 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8803 fi
8804
8805 if test "$wxUSE_TOOLBAR" = yes; then
8806 echo "$as_me:$LINENO: result: yes" >&5
8807echo "${ECHO_T}yes" >&6
8808 else
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
8811 fi
8812
8813
8814 enablestring=
8815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8816echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8817 no_cache=0
8818 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8819if test "${enable_tbarnative+set}" = set; then
8820 enableval="$enable_tbarnative"
8821
8822 if test "$enableval" = yes; then
8823 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8824 else
8825 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8826 fi
8827
8828else
8829
8830 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8831 if test "x$LINE" != x ; then
8832 eval "DEFAULT_$LINE"
8833 else
8834 no_cache=1
8835 fi
8836
8837 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8838
8839fi;
8840
8841 eval "$ac_cv_use_tbarnative"
8842 if test "$no_cache" != 1; then
8843 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8844 fi
8845
8846 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8847 echo "$as_me:$LINENO: result: yes" >&5
8848echo "${ECHO_T}yes" >&6
8849 else
8850 echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
8852 fi
8853
8854
8855 enablestring=
8856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8857echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8858 no_cache=0
8859 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8860if test "${enable_tbarsmpl+set}" = set; then
8861 enableval="$enable_tbarsmpl"
8862
8863 if test "$enableval" = yes; then
8864 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8865 else
8866 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8867 fi
8868
8869else
8870
8871 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8872 if test "x$LINE" != x ; then
8873 eval "DEFAULT_$LINE"
8874 else
8875 no_cache=1
8876 fi
8877
8878 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8879
8880fi;
8881
8882 eval "$ac_cv_use_tbarsmpl"
8883 if test "$no_cache" != 1; then
8884 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8885 fi
8886
8887 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8888 echo "$as_me:$LINENO: result: yes" >&5
8889echo "${ECHO_T}yes" >&6
8890 else
8891 echo "$as_me:$LINENO: result: no" >&5
8892echo "${ECHO_T}no" >&6
8893 fi
8894
8895
8896 enablestring=
8897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8898echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8899 no_cache=0
8900 # Check whether --enable-treectrl or --disable-treectrl was given.
8901if test "${enable_treectrl+set}" = set; then
8902 enableval="$enable_treectrl"
8903
8904 if test "$enableval" = yes; then
8905 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8906 else
8907 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8908 fi
8909
8910else
8911
8912 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8913 if test "x$LINE" != x ; then
8914 eval "DEFAULT_$LINE"
8915 else
8916 no_cache=1
8917 fi
8918
8919 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8920
8921fi;
8922
8923 eval "$ac_cv_use_treectrl"
8924 if test "$no_cache" != 1; then
8925 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8926 fi
8927
8928 if test "$wxUSE_TREECTRL" = yes; then
8929 echo "$as_me:$LINENO: result: yes" >&5
8930echo "${ECHO_T}yes" >&6
8931 else
8932 echo "$as_me:$LINENO: result: no" >&5
8933echo "${ECHO_T}no" >&6
8934 fi
8935
8936
8937 enablestring=
8938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8939echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8940 no_cache=0
8941 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8942if test "${enable_tipwindow+set}" = set; then
8943 enableval="$enable_tipwindow"
8944
8945 if test "$enableval" = yes; then
8946 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8947 else
8948 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8949 fi
8950
8951else
8952
8953 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8954 if test "x$LINE" != x ; then
8955 eval "DEFAULT_$LINE"
8956 else
8957 no_cache=1
8958 fi
8959
8960 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8961
8962fi;
8963
8964 eval "$ac_cv_use_tipwindow"
8965 if test "$no_cache" != 1; then
8966 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8967 fi
8968
8969 if test "$wxUSE_TIPWINDOW" = yes; then
8970 echo "$as_me:$LINENO: result: yes" >&5
8971echo "${ECHO_T}yes" >&6
8972 else
8973 echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
8975 fi
8976
8977
8978 enablestring=
8979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8980echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8981 no_cache=0
8982 # Check whether --enable-popupwin or --disable-popupwin was given.
8983if test "${enable_popupwin+set}" = set; then
8984 enableval="$enable_popupwin"
8985
8986 if test "$enableval" = yes; then
8987 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8988 else
8989 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8990 fi
8991
8992else
8993
8994 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8995 if test "x$LINE" != x ; then
8996 eval "DEFAULT_$LINE"
8997 else
8998 no_cache=1
8999 fi
9000
9001 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9002
9003fi;
9004
9005 eval "$ac_cv_use_popupwin"
9006 if test "$no_cache" != 1; then
9007 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9008 fi
9009
9010 if test "$wxUSE_POPUPWIN" = yes; then
9011 echo "$as_me:$LINENO: result: yes" >&5
9012echo "${ECHO_T}yes" >&6
9013 else
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016 fi
9017
9018
9019
9020
9021 enablestring=
9022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9023echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9024 no_cache=0
9025 # Check whether --enable-commondlg or --disable-commondlg was given.
9026if test "${enable_commondlg+set}" = set; then
9027 enableval="$enable_commondlg"
9028
9029 if test "$enableval" = yes; then
9030 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9031 else
9032 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9033 fi
9034
9035else
9036
9037 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9038 if test "x$LINE" != x ; then
9039 eval "DEFAULT_$LINE"
9040 else
9041 no_cache=1
9042 fi
9043
9044 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9045
9046fi;
9047
9048 eval "$ac_cv_use_commondlg"
9049 if test "$no_cache" != 1; then
9050 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9051 fi
9052
9053 if test "$wxUSE_COMMONDLGS" = yes; then
9054 echo "$as_me:$LINENO: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
9056 else
9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
9059 fi
9060
9061
9062 enablestring=
9063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9064echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9065 no_cache=0
9066 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9067if test "${enable_choicedlg+set}" = set; then
9068 enableval="$enable_choicedlg"
9069
9070 if test "$enableval" = yes; then
9071 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9072 else
9073 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9074 fi
9075
9076else
9077
9078 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9079 if test "x$LINE" != x ; then
9080 eval "DEFAULT_$LINE"
9081 else
9082 no_cache=1
9083 fi
9084
9085 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9086
9087fi;
9088
9089 eval "$ac_cv_use_choicedlg"
9090 if test "$no_cache" != 1; then
9091 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9092 fi
9093
9094 if test "$wxUSE_CHOICEDLG" = yes; then
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
9097 else
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
9100 fi
9101
9102
9103 enablestring=
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9106 no_cache=0
9107 # Check whether --enable-coldlg or --disable-coldlg was given.
9108if test "${enable_coldlg+set}" = set; then
9109 enableval="$enable_coldlg"
9110
9111 if test "$enableval" = yes; then
9112 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9113 else
9114 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9115 fi
9116
9117else
9118
9119 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9127
9128fi;
9129
9130 eval "$ac_cv_use_coldlg"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_COLOURDLG" = yes; then
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
9138 else
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
9141 fi
9142
9143
9144 enablestring=
9145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9146echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9147 no_cache=0
9148 # Check whether --enable-filedlg or --disable-filedlg was given.
9149if test "${enable_filedlg+set}" = set; then
9150 enableval="$enable_filedlg"
9151
9152 if test "$enableval" = yes; then
9153 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9154 else
9155 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9156 fi
9157
9158else
9159
9160 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9161 if test "x$LINE" != x ; then
9162 eval "DEFAULT_$LINE"
9163 else
9164 no_cache=1
9165 fi
9166
9167 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9168
9169fi;
9170
9171 eval "$ac_cv_use_filedlg"
9172 if test "$no_cache" != 1; then
9173 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9174 fi
9175
9176 if test "$wxUSE_FILEDLG" = yes; then
9177 echo "$as_me:$LINENO: result: yes" >&5
9178echo "${ECHO_T}yes" >&6
9179 else
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
9182 fi
9183
9184
9185 enablestring=
9186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9187echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9188 no_cache=0
9189 # Check whether --enable-finddlg or --disable-finddlg was given.
9190if test "${enable_finddlg+set}" = set; then
9191 enableval="$enable_finddlg"
9192
9193 if test "$enableval" = yes; then
9194 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9195 else
9196 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9197 fi
9198
9199else
9200
9201 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9202 if test "x$LINE" != x ; then
9203 eval "DEFAULT_$LINE"
9204 else
9205 no_cache=1
9206 fi
9207
9208 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9209
9210fi;
9211
9212 eval "$ac_cv_use_finddlg"
9213 if test "$no_cache" != 1; then
9214 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9215 fi
9216
9217 if test "$wxUSE_FINDREPLDLG" = yes; then
9218 echo "$as_me:$LINENO: result: yes" >&5
9219echo "${ECHO_T}yes" >&6
9220 else
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
9223 fi
9224
9225
9226 enablestring=
9227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9228echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9229 no_cache=0
9230 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9231if test "${enable_fontdlg+set}" = set; then
9232 enableval="$enable_fontdlg"
9233
9234 if test "$enableval" = yes; then
9235 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9236 else
9237 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9238 fi
9239
9240else
9241
9242 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9243 if test "x$LINE" != x ; then
9244 eval "DEFAULT_$LINE"
9245 else
9246 no_cache=1
9247 fi
9248
9249 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9250
9251fi;
9252
9253 eval "$ac_cv_use_fontdlg"
9254 if test "$no_cache" != 1; then
9255 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9256 fi
9257
9258 if test "$wxUSE_FONTDLG" = yes; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260echo "${ECHO_T}yes" >&6
9261 else
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
9264 fi
9265
9266
9267 enablestring=
9268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9269echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9270 no_cache=0
9271 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9272if test "${enable_dirdlg+set}" = set; then
9273 enableval="$enable_dirdlg"
9274
9275 if test "$enableval" = yes; then
9276 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9277 else
9278 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9279 fi
9280
9281else
9282
9283 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9284 if test "x$LINE" != x ; then
9285 eval "DEFAULT_$LINE"
9286 else
9287 no_cache=1
9288 fi
9289
9290 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9291
9292fi;
9293
9294 eval "$ac_cv_use_dirdlg"
9295 if test "$no_cache" != 1; then
9296 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9297 fi
9298
9299 if test "$wxUSE_DIRDLG" = yes; then
9300 echo "$as_me:$LINENO: result: yes" >&5
9301echo "${ECHO_T}yes" >&6
9302 else
9303 echo "$as_me:$LINENO: result: no" >&5
9304echo "${ECHO_T}no" >&6
9305 fi
9306
9307
9308 enablestring=
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9311 no_cache=0
9312 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9313if test "${enable_msgdlg+set}" = set; then
9314 enableval="$enable_msgdlg"
9315
9316 if test "$enableval" = yes; then
9317 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9318 else
9319 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9320 fi
9321
9322else
9323
9324 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
9331 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9332
9333fi;
9334
9335 eval "$ac_cv_use_msgdlg"
9336 if test "$no_cache" != 1; then
9337 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9338 fi
9339
9340 if test "$wxUSE_MSGDLG" = yes; then
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
9343 else
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346 fi
9347
9348
9349 enablestring=
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9352 no_cache=0
9353 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9354if test "${enable_numberdlg+set}" = set; then
9355 enableval="$enable_numberdlg"
9356
9357 if test "$enableval" = yes; then
9358 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9359 else
9360 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9361 fi
9362
9363else
9364
9365 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
9372 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9373
9374fi;
9375
9376 eval "$ac_cv_use_numberdlg"
9377 if test "$no_cache" != 1; then
9378 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9379 fi
9380
9381 if test "$wxUSE_NUMBERDLG" = yes; then
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
9384 else
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
9387 fi
9388
9389
9390 enablestring=
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9393 no_cache=0
9394 # Check whether --enable-splash or --disable-splash was given.
9395if test "${enable_splash+set}" = set; then
9396 enableval="$enable_splash"
9397
9398 if test "$enableval" = yes; then
9399 ac_cv_use_splash='wxUSE_SPLASH=yes'
9400 else
9401 ac_cv_use_splash='wxUSE_SPLASH=no'
9402 fi
9403
9404else
9405
9406 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
9413 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9414
9415fi;
9416
9417 eval "$ac_cv_use_splash"
9418 if test "$no_cache" != 1; then
9419 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9420 fi
9421
9422 if test "$wxUSE_SPLASH" = yes; then
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425 else
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
9428 fi
9429
9430
9431 enablestring=
9432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9433echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9434 no_cache=0
9435 # Check whether --enable-textdlg or --disable-textdlg was given.
9436if test "${enable_textdlg+set}" = set; then
9437 enableval="$enable_textdlg"
9438
9439 if test "$enableval" = yes; then
9440 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9441 else
9442 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9443 fi
9444
9445else
9446
9447 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9448 if test "x$LINE" != x ; then
9449 eval "DEFAULT_$LINE"
9450 else
9451 no_cache=1
9452 fi
9453
9454 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9455
9456fi;
9457
9458 eval "$ac_cv_use_textdlg"
9459 if test "$no_cache" != 1; then
9460 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9461 fi
9462
9463 if test "$wxUSE_TEXTDLG" = yes; then
9464 echo "$as_me:$LINENO: result: yes" >&5
9465echo "${ECHO_T}yes" >&6
9466 else
9467 echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6
9469 fi
9470
9471
9472 enablestring=
9473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9474echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9475 no_cache=0
9476 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9477if test "${enable_tipdlg+set}" = set; then
9478 enableval="$enable_tipdlg"
9479
9480 if test "$enableval" = yes; then
9481 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9482 else
9483 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9484 fi
9485
9486else
9487
9488 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9489 if test "x$LINE" != x ; then
9490 eval "DEFAULT_$LINE"
9491 else
9492 no_cache=1
9493 fi
9494
9495 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9496
9497fi;
9498
9499 eval "$ac_cv_use_tipdlg"
9500 if test "$no_cache" != 1; then
9501 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9502 fi
9503
9504 if test "$wxUSE_STARTUP_TIPS" = yes; then
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
9507 else
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
9510 fi
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9518if test "${enable_progressdlg+set}" = set; then
9519 enableval="$enable_progressdlg"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9523 else
9524 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9537
9538fi;
9539
9540 eval "$ac_cv_use_progressdlg"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_PROGRESSDLG" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9559if test "${enable_wizarddlg+set}" = set; then
9560 enableval="$enable_wizarddlg"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9564 else
9565 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9578
9579fi;
9580
9581 eval "$ac_cv_use_wizarddlg"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_WIZARDDLG" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595
9596
9597 enablestring=
9598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9599echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9600 no_cache=0
9601 # Check whether --enable-menus or --disable-menus was given.
9602if test "${enable_menus+set}" = set; then
9603 enableval="$enable_menus"
9604
9605 if test "$enableval" = yes; then
9606 ac_cv_use_menus='wxUSE_MENUS=yes'
9607 else
9608 ac_cv_use_menus='wxUSE_MENUS=no'
9609 fi
9610
9611else
9612
9613 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9614 if test "x$LINE" != x ; then
9615 eval "DEFAULT_$LINE"
9616 else
9617 no_cache=1
9618 fi
9619
9620 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9621
9622fi;
9623
9624 eval "$ac_cv_use_menus"
9625 if test "$no_cache" != 1; then
9626 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9627 fi
9628
9629 if test "$wxUSE_MENUS" = yes; then
9630 echo "$as_me:$LINENO: result: yes" >&5
9631echo "${ECHO_T}yes" >&6
9632 else
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
9635 fi
9636
9637
9638 enablestring=
9639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9640echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9641 no_cache=0
9642 # Check whether --enable-miniframe or --disable-miniframe was given.
9643if test "${enable_miniframe+set}" = set; then
9644 enableval="$enable_miniframe"
9645
9646 if test "$enableval" = yes; then
9647 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9648 else
9649 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9650 fi
9651
9652else
9653
9654 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9655 if test "x$LINE" != x ; then
9656 eval "DEFAULT_$LINE"
9657 else
9658 no_cache=1
9659 fi
9660
9661 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9662
9663fi;
9664
9665 eval "$ac_cv_use_miniframe"
9666 if test "$no_cache" != 1; then
9667 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9668 fi
9669
9670 if test "$wxUSE_MINIFRAME" = yes; then
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
9673 else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676 fi
9677
9678
9679 enablestring=
9680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9681echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9682 no_cache=0
9683 # Check whether --enable-tooltips or --disable-tooltips was given.
9684if test "${enable_tooltips+set}" = set; then
9685 enableval="$enable_tooltips"
9686
9687 if test "$enableval" = yes; then
9688 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9689 else
9690 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9691 fi
9692
9693else
9694
9695 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9696 if test "x$LINE" != x ; then
9697 eval "DEFAULT_$LINE"
9698 else
9699 no_cache=1
9700 fi
9701
9702 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9703
9704fi;
9705
9706 eval "$ac_cv_use_tooltips"
9707 if test "$no_cache" != 1; then
9708 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9709 fi
9710
9711 if test "$wxUSE_TOOLTIPS" = yes; then
9712 echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717 fi
9718
9719
9720 enablestring=
9721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9722echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9723 no_cache=0
9724 # Check whether --enable-splines or --disable-splines was given.
9725if test "${enable_splines+set}" = set; then
9726 enableval="$enable_splines"
9727
9728 if test "$enableval" = yes; then
9729 ac_cv_use_splines='wxUSE_SPLINES=yes'
9730 else
9731 ac_cv_use_splines='wxUSE_SPLINES=no'
9732 fi
9733
9734else
9735
9736 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9737 if test "x$LINE" != x ; then
9738 eval "DEFAULT_$LINE"
9739 else
9740 no_cache=1
9741 fi
9742
9743 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9744
9745fi;
9746
9747 eval "$ac_cv_use_splines"
9748 if test "$no_cache" != 1; then
9749 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9750 fi
9751
9752 if test "$wxUSE_SPLINES" = yes; then
9753 echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755 else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758 fi
9759
9760
fbe2ca43
SN
9761 enablestring=
9762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9763echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9764 no_cache=0
9765 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9766if test "${enable_mousewheel+set}" = set; then
9767 enableval="$enable_mousewheel"
9768
9769 if test "$enableval" = yes; then
9770 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9771 else
9772 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9773 fi
9774
9775else
9776
9777 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9778 if test "x$LINE" != x ; then
9779 eval "DEFAULT_$LINE"
9780 else
9781 no_cache=1
9782 fi
9783
9784 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9785
9786fi;
9787
9788 eval "$ac_cv_use_mousewheel"
9789 if test "$no_cache" != 1; then
9790 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9791 fi
9792
9793 if test "$wxUSE_MOUSEWHEEL" = yes; then
9794 echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799 fi
9800
9801
a848cd7e
SC
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-validators or --disable-validators was given.
9807if test "${enable_validators+set}" = set; then
9808 enableval="$enable_validators"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9812 else
9813 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9826
9827fi;
9828
9829 eval "$ac_cv_use_validators"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_VALIDATORS" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842
9843 enablestring=
9844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9845echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9846 no_cache=0
9847 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9848if test "${enable_busyinfo+set}" = set; then
9849 enableval="$enable_busyinfo"
9850
9851 if test "$enableval" = yes; then
9852 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9853 else
9854 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9855 fi
9856
9857else
9858
9859 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9860 if test "x$LINE" != x ; then
9861 eval "DEFAULT_$LINE"
9862 else
9863 no_cache=1
9864 fi
9865
9866 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9867
9868fi;
9869
9870 eval "$ac_cv_use_busyinfo"
9871 if test "$no_cache" != 1; then
9872 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9873 fi
9874
9875 if test "$wxUSE_BUSYINFO" = yes; then
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881 fi
9882
9883
9884 enablestring=
9885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9886echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9887 no_cache=0
9888 # Check whether --enable-joystick or --disable-joystick was given.
9889if test "${enable_joystick+set}" = set; then
9890 enableval="$enable_joystick"
9891
9892 if test "$enableval" = yes; then
9893 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9894 else
9895 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9896 fi
9897
9898else
9899
9900 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9901 if test "x$LINE" != x ; then
9902 eval "DEFAULT_$LINE"
9903 else
9904 no_cache=1
9905 fi
9906
9907 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9908
9909fi;
9910
9911 eval "$ac_cv_use_joystick"
9912 if test "$no_cache" != 1; then
9913 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9914 fi
9915
9916 if test "$wxUSE_JOYSTICK" = yes; then
9917 echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919 else
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
9922 fi
9923
9924
9925 enablestring=
9926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9927echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9928 no_cache=0
9929 # Check whether --enable-metafile or --disable-metafile was given.
9930if test "${enable_metafile+set}" = set; then
9931 enableval="$enable_metafile"
9932
9933 if test "$enableval" = yes; then
9934 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9935 else
9936 ac_cv_use_metafile='wxUSE_METAFILE=no'
9937 fi
9938
9939else
9940
9941 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9942 if test "x$LINE" != x ; then
9943 eval "DEFAULT_$LINE"
9944 else
9945 no_cache=1
9946 fi
9947
9948 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9949
9950fi;
9951
9952 eval "$ac_cv_use_metafile"
9953 if test "$no_cache" != 1; then
9954 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9955 fi
9956
9957 if test "$wxUSE_METAFILE" = yes; then
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963 fi
9964
9965
9966 enablestring=
9967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9969 no_cache=0
9970 # Check whether --enable-dragimage or --disable-dragimage was given.
9971if test "${enable_dragimage+set}" = set; then
9972 enableval="$enable_dragimage"
9973
9974 if test "$enableval" = yes; then
9975 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9976 else
9977 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9978 fi
9979
9980else
9981
9982 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9983 if test "x$LINE" != x ; then
9984 eval "DEFAULT_$LINE"
9985 else
9986 no_cache=1
9987 fi
9988
9989 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9990
9991fi;
9992
9993 eval "$ac_cv_use_dragimage"
9994 if test "$no_cache" != 1; then
9995 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9996 fi
9997
9998 if test "$wxUSE_DRAGIMAGE" = yes; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005
10006
10007 enablestring=
10008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10009echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10010 no_cache=0
10011 # Check whether --enable-accessibility or --disable-accessibility was given.
10012if test "${enable_accessibility+set}" = set; then
10013 enableval="$enable_accessibility"
10014
10015 if test "$enableval" = yes; then
10016 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10017 else
10018 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10019 fi
10020
10021else
10022
10023 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10024 if test "x$LINE" != x ; then
10025 eval "DEFAULT_$LINE"
10026 else
10027 no_cache=1
10028 fi
10029
10030 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10031
10032fi;
10033
10034 eval "$ac_cv_use_accessibility"
10035 if test "$no_cache" != 1; then
10036 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10037 fi
10038
10039 if test "$wxUSE_ACCESSIBILITY" = yes; then
10040 echo "$as_me:$LINENO: result: yes" >&5
10041echo "${ECHO_T}yes" >&6
10042 else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045 fi
10046
10047
38b4a946
VZ
10048if test "$wxUSE_MSW" = "1"; then
10049
10050 enablestring=
10051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10052echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10053 no_cache=0
10054 # Check whether --enable-dccache or --disable-dccache was given.
10055if test "${enable_dccache+set}" = set; then
10056 enableval="$enable_dccache"
10057
10058 if test "$enableval" = yes; then
10059 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10060 else
10061 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10062 fi
10063
10064else
10065
10066 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10067 if test "x$LINE" != x ; then
10068 eval "DEFAULT_$LINE"
10069 else
10070 no_cache=1
10071 fi
10072
10073 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10074
10075fi;
10076
10077 eval "$ac_cv_use_dccache"
10078 if test "$no_cache" != 1; then
10079 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10080 fi
10081
10082 if test "$wxUSE_DC_CACHEING" = yes; then
10083 echo "$as_me:$LINENO: result: yes" >&5
10084echo "${ECHO_T}yes" >&6
10085 else
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
10088 fi
10089
10090fi
10091
a848cd7e
SC
10092
10093
10094 enablestring=
10095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10096echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10097 no_cache=0
10098 # Check whether --enable-palette or --disable-palette was given.
10099if test "${enable_palette+set}" = set; then
10100 enableval="$enable_palette"
10101
10102 if test "$enableval" = yes; then
10103 ac_cv_use_palette='wxUSE_PALETTE=yes'
10104 else
10105 ac_cv_use_palette='wxUSE_PALETTE=no'
10106 fi
10107
10108else
10109
10110 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10111 if test "x$LINE" != x ; then
10112 eval "DEFAULT_$LINE"
10113 else
10114 no_cache=1
10115 fi
10116
10117 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10118
10119fi;
10120
10121 eval "$ac_cv_use_palette"
10122 if test "$no_cache" != 1; then
10123 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10124 fi
10125
10126 if test "$wxUSE_PALETTE" = yes; then
10127 echo "$as_me:$LINENO: result: yes" >&5
10128echo "${ECHO_T}yes" >&6
10129 else
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
10132 fi
10133
10134
10135 enablestring=
10136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10137echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10138 no_cache=0
10139 # Check whether --enable-image or --disable-image was given.
10140if test "${enable_image+set}" = set; then
10141 enableval="$enable_image"
10142
10143 if test "$enableval" = yes; then
10144 ac_cv_use_image='wxUSE_IMAGE=yes'
10145 else
10146 ac_cv_use_image='wxUSE_IMAGE=no'
10147 fi
10148
10149else
10150
10151 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10152 if test "x$LINE" != x ; then
10153 eval "DEFAULT_$LINE"
10154 else
10155 no_cache=1
10156 fi
10157
10158 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10159
10160fi;
10161
10162 eval "$ac_cv_use_image"
10163 if test "$no_cache" != 1; then
10164 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10165 fi
10166
10167 if test "$wxUSE_IMAGE" = yes; then
10168 echo "$as_me:$LINENO: result: yes" >&5
10169echo "${ECHO_T}yes" >&6
10170 else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173 fi
10174
10175
10176 enablestring=
10177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10178echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10179 no_cache=0
10180 # Check whether --enable-gif or --disable-gif was given.
10181if test "${enable_gif+set}" = set; then
10182 enableval="$enable_gif"
10183
10184 if test "$enableval" = yes; then
10185 ac_cv_use_gif='wxUSE_GIF=yes'
10186 else
10187 ac_cv_use_gif='wxUSE_GIF=no'
10188 fi
10189
10190else
10191
10192 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10193 if test "x$LINE" != x ; then
10194 eval "DEFAULT_$LINE"
10195 else
10196 no_cache=1
10197 fi
10198
10199 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10200
10201fi;
10202
10203 eval "$ac_cv_use_gif"
10204 if test "$no_cache" != 1; then
10205 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10206 fi
10207
10208 if test "$wxUSE_GIF" = yes; then
10209 echo "$as_me:$LINENO: result: yes" >&5
10210echo "${ECHO_T}yes" >&6
10211 else
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
10214 fi
10215
10216
10217 enablestring=
10218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10219echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10220 no_cache=0
10221 # Check whether --enable-pcx or --disable-pcx was given.
10222if test "${enable_pcx+set}" = set; then
10223 enableval="$enable_pcx"
10224
10225 if test "$enableval" = yes; then
10226 ac_cv_use_pcx='wxUSE_PCX=yes'
10227 else
10228 ac_cv_use_pcx='wxUSE_PCX=no'
10229 fi
10230
10231else
10232
10233 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10234 if test "x$LINE" != x ; then
10235 eval "DEFAULT_$LINE"
10236 else
10237 no_cache=1
10238 fi
10239
10240 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10241
10242fi;
10243
10244 eval "$ac_cv_use_pcx"
10245 if test "$no_cache" != 1; then
10246 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10247 fi
10248
10249 if test "$wxUSE_PCX" = yes; then
10250 echo "$as_me:$LINENO: result: yes" >&5
10251echo "${ECHO_T}yes" >&6
10252 else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255 fi
10256
10257
10258 enablestring=
10259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10260echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10261 no_cache=0
10262 # Check whether --enable-iff or --disable-iff was given.
10263if test "${enable_iff+set}" = set; then
10264 enableval="$enable_iff"
10265
10266 if test "$enableval" = yes; then
10267 ac_cv_use_iff='wxUSE_IFF=yes'
10268 else
10269 ac_cv_use_iff='wxUSE_IFF=no'
10270 fi
10271
10272else
10273
10274 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10275 if test "x$LINE" != x ; then
10276 eval "DEFAULT_$LINE"
10277 else
10278 no_cache=1
10279 fi
10280
10281 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10282
10283fi;
10284
10285 eval "$ac_cv_use_iff"
10286 if test "$no_cache" != 1; then
10287 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10288 fi
10289
10290 if test "$wxUSE_IFF" = yes; then
10291 echo "$as_me:$LINENO: result: yes" >&5
10292echo "${ECHO_T}yes" >&6
10293 else
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
10296 fi
10297
10298
10299 enablestring=
10300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10301echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10302 no_cache=0
10303 # Check whether --enable-pnm or --disable-pnm was given.
10304if test "${enable_pnm+set}" = set; then
10305 enableval="$enable_pnm"
10306
10307 if test "$enableval" = yes; then
10308 ac_cv_use_pnm='wxUSE_PNM=yes'
10309 else
10310 ac_cv_use_pnm='wxUSE_PNM=no'
10311 fi
10312
10313else
10314
10315 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10316 if test "x$LINE" != x ; then
10317 eval "DEFAULT_$LINE"
10318 else
10319 no_cache=1
10320 fi
10321
10322 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10323
10324fi;
10325
10326 eval "$ac_cv_use_pnm"
10327 if test "$no_cache" != 1; then
10328 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10329 fi
10330
10331 if test "$wxUSE_PNM" = yes; then
10332 echo "$as_me:$LINENO: result: yes" >&5
10333echo "${ECHO_T}yes" >&6
10334 else
10335 echo "$as_me:$LINENO: result: no" >&5
10336echo "${ECHO_T}no" >&6
10337 fi
10338
10339
10340 enablestring=
10341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10342echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10343 no_cache=0
10344 # Check whether --enable-xpm or --disable-xpm was given.
10345if test "${enable_xpm+set}" = set; then
10346 enableval="$enable_xpm"
10347
10348 if test "$enableval" = yes; then
10349 ac_cv_use_xpm='wxUSE_XPM=yes'
10350 else
10351 ac_cv_use_xpm='wxUSE_XPM=no'
10352 fi
10353
10354else
10355
10356 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10357 if test "x$LINE" != x ; then
10358 eval "DEFAULT_$LINE"
10359 else
10360 no_cache=1
10361 fi
10362
10363 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10364
10365fi;
10366
10367 eval "$ac_cv_use_xpm"
10368 if test "$no_cache" != 1; then
10369 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10370 fi
10371
10372 if test "$wxUSE_XPM" = yes; then
10373 echo "$as_me:$LINENO: result: yes" >&5
10374echo "${ECHO_T}yes" >&6
10375 else
10376 echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6
10378 fi
10379
10380
10381 enablestring=
10382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10383echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10384 no_cache=0
10385 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10386if test "${enable_ico_cur+set}" = set; then
10387 enableval="$enable_ico_cur"
10388
10389 if test "$enableval" = yes; then
10390 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10391 else
10392 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10393 fi
10394
10395else
10396
10397 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10398 if test "x$LINE" != x ; then
10399 eval "DEFAULT_$LINE"
10400 else
10401 no_cache=1
10402 fi
10403
10404 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10405
10406fi;
10407
10408 eval "$ac_cv_use_ico_cur"
10409 if test "$no_cache" != 1; then
10410 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10411 fi
10412
10413 if test "$wxUSE_ICO_CUR" = yes; then
10414 echo "$as_me:$LINENO: result: yes" >&5
10415echo "${ECHO_T}yes" >&6
10416 else
10417 echo "$as_me:$LINENO: result: no" >&5
10418echo "${ECHO_T}no" >&6
10419 fi
10420
10421
10422fi
10423
10424
10425
ceec2216
RL
10426# Check whether --with-flavour or --without-flavour was given.
10427if test "${with_flavour+set}" = set; then
10428 withval="$with_flavour"
10429 WX_FLAVOUR="$withval"
10430fi;
10431
10432
10433
a848cd7e
SC
10434 enablestring=
10435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10436echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10437 no_cache=0
10438 # Check whether --enable-official_build or --disable-official_build was given.
10439if test "${enable_official_build+set}" = set; then
10440 enableval="$enable_official_build"
10441
10442 if test "$enableval" = yes; then
10443 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10444 else
10445 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10446 fi
10447
10448else
10449
10450 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10451 if test "x$LINE" != x ; then
10452 eval "DEFAULT_$LINE"
10453 else
10454 no_cache=1
10455 fi
10456
10457 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10458
10459fi;
10460
10461 eval "$ac_cv_use_official_build"
10462 if test "$no_cache" != 1; then
10463 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10464 fi
10465
10466 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10467 echo "$as_me:$LINENO: result: yes" >&5
10468echo "${ECHO_T}yes" >&6
10469 else
10470 echo "$as_me:$LINENO: result: no" >&5
10471echo "${ECHO_T}no" >&6
10472 fi
10473
10474# Check whether --enable-vendor or --disable-vendor was given.
10475if test "${enable_vendor+set}" = set; then
10476 enableval="$enable_vendor"
10477 VENDOR="$enableval"
10478fi;
10479if test "x$VENDOR" = "x"; then
10480 VENDOR="custom"
10481fi
10482
a848cd7e
SC
10483
10484
10485
10486 echo "saving argument cache $wx_arg_cache_file"
10487 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10488
10489
10490
10491echo "$as_me:$LINENO: checking for toolkit" >&5
10492echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10493
10494# In Wine, we need to default to MSW, not GTK or MOTIF
10495if test "$wxUSE_WINE" = "yes"; then
10496 DEFAULT_DEFAULT_wxUSE_GTK=0
10497 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10498 DEFAULT_DEFAULT_wxUSE_MSW=1
10499 wxUSE_SHARED=no
10500fi
10501
f597b41c 10502
a848cd7e
SC
10503if test "$wxUSE_GUI" = "yes"; then
10504
10505 if test "$USE_BEOS" = 1; then
10506 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10507echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10508 { (exit 1); exit 1; }; }
10509 fi
10510
10511 if test "$TOOLKIT_GIVEN" = 1; then
10512 for toolkit in `echo $ALL_TOOLKITS`; do
10513 var=wxUSE_$toolkit
10514 eval "value=\$${var}"
f34ca037
MW
10515 if test "x$value" = "xno"; then
10516 eval "$var=0"
10517 elif test "x$value" != "x"; then
10518 eval "$var=1"
10519 fi
10520
10521 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10522 eval "wx${toolkit}_VERSION=$value"
10523 fi
a848cd7e
SC
10524 done
10525 else
10526 for toolkit in `echo $ALL_TOOLKITS`; do
10527 if test "$has_toolkit_in_cache" != 1; then
10528 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10529 else
10530 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10531
10532 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10533 if test "x$version" != "x"; then
10534 eval "wx${toolkit}_VERSION=$version"
10535 fi
a848cd7e
SC
10536 fi
10537 eval "wxUSE_$toolkit=\$${var}"
10538 done
10539 fi
10540
10541 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10542 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10543 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10544
10545 case "${host}" in
10546 *-pc-os2_emx | *-pc-os2-emx )
10547 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10548 esac
10549
10550 case "$NUM_TOOLKITS" in
10551 1)
10552 ;;
10553 0)
10554 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10555echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10556 { (exit 1); exit 1; }; }
10557 ;;
10558 *)
10559 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10560echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10561 { (exit 1); exit 1; }; }
10562 esac
10563
f34ca037
MW
10564 # to be removed when --disable-gtk2 isn't needed
10565 if test "x$wxUSE_GTK2" = "xyes"; then
10566 wxGTK_VERSION=2
10567 elif test "x$wxUSE_GTK2" = "xno"; then
10568 wxGTK_VERSION=1
10569 fi
10570
a848cd7e
SC
10571 for toolkit in `echo $ALL_TOOLKITS`; do
10572 var=wxUSE_$toolkit
10573 eval "value=\$${var}"
10574 if test "x$value" != x; then
10575 cache_var=CACHE_$toolkit
10576 eval "cache=\$${cache_var}"
10577 if test "$cache" = 1; then
10578 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10579 eval "version=\$wx${toolkit}_VERSION"
10580 if test "x$version" != "x"; then
10581 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10582 fi
a848cd7e
SC
10583 fi
10584 if test "$value" = 1; then
10585 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10586 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10587echo "${ECHO_T}$toolkit_echo" >&6
10588 fi
10589 fi
10590 done
10591else
10592 if test "x$host_alias" != "x"; then
10593 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10594echo "${ECHO_T}base ($host_alias hosted) only" >&6
10595 else
10596 echo "$as_me:$LINENO: result: base only" >&5
10597echo "${ECHO_T}base only" >&6
10598 fi
10599fi
10600
10601wants_win32=0
10602doesnt_want_win32=0
10603case "${host}" in
10604 *-*-cygwin*)
10605 if test "$wxUSE_MSW" = 1 ; then
10606 wants_win32=1
7275146d 10607 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10608 else
10609 doesnt_want_win32=1
10610 fi
10611 ;;
10612 *-*-mingw*)
10613 wants_win32=1
10614 ;;
10615esac
10616
10617if test "$wxUSE_WINE" = "yes"; then
10618 wants_win32=1
10619 CC=winegcc
10620 CXX=wineg++
10621 RESCOMP=wrc
10622 LDFLAGS_GUI="-mwindows"
10623fi
10624
10625if test "$wants_win32" = 1 ; then
10626 USE_UNIX=0
10627 USE_WIN32=1
10628 cat >>confdefs.h <<\_ACEOF
10629#define __WIN32__ 1
10630_ACEOF
10631
10632 cat >>confdefs.h <<\_ACEOF
10633#define __WIN95__ 1
10634_ACEOF
10635
10636 cat >>confdefs.h <<\_ACEOF
10637#define __WINDOWS__ 1
10638_ACEOF
10639
10640 cat >>confdefs.h <<\_ACEOF
10641#define __GNUWIN32__ 1
10642_ACEOF
10643
10644 cat >>confdefs.h <<\_ACEOF
10645#define STRICT 1
10646_ACEOF
10647
10648 cat >>confdefs.h <<\_ACEOF
10649#define WINVER 0x0400
10650_ACEOF
10651
10652fi
10653if test "$doesnt_want_win32" = 1 ; then
10654 USE_UNIX=1
10655 USE_WIN32=0
10656fi
10657
10658if test "$USE_UNIX" = 1 ; then
10659 wxUSE_UNIX=yes
10660 cat >>confdefs.h <<\_ACEOF
10661#define __UNIX__ 1
10662_ACEOF
10663
10664fi
10665
10666
10667cat >confcache <<\_ACEOF
10668# This file is a shell script that caches the results of configure
10669# tests run on this system so they can be shared between configure
10670# scripts and configure runs, see configure's option --config-cache.
10671# It is not useful on other systems. If it contains results you don't
10672# want to keep, you may remove or edit it.
10673#
10674# config.status only pays attention to the cache file if you give it
10675# the --recheck option to rerun configure.
10676#
10677# `ac_cv_env_foo' variables (set or unset) will be overridden when
10678# loading this file, other *unset* `ac_cv_foo' will be assigned the
10679# following values.
10680
10681_ACEOF
10682
10683# The following way of writing the cache mishandles newlines in values,
10684# but we know of no workaround that is simple, portable, and efficient.
10685# So, don't put newlines in cache variables' values.
10686# Ultrix sh set writes to stderr and can't be redirected directly,
10687# and sets the high bit in the cache file unless we assign to the vars.
10688{
10689 (set) 2>&1 |
10690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10691 *ac_space=\ *)
10692 # `set' does not quote correctly, so add quotes (double-quote
10693 # substitution turns \\\\ into \\, and sed turns \\ into \).
10694 sed -n \
ac1cb8d3
VS
10695 "s/'/'\\\\''/g;
10696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10697 ;;
10698 *)
10699 # `set' quotes correctly as required by POSIX, so do not add quotes.
10700 sed -n \
ac1cb8d3 10701 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10702 ;;
10703 esac;
10704} |
10705 sed '
10706 t clear
10707 : clear
10708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10709 t end
10710 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10711 : end' >>confcache
10712if diff $cache_file confcache >/dev/null 2>&1; then :; else
10713 if test -w $cache_file; then
10714 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10715 cat confcache >$cache_file
10716 else
10717 echo "not updating unwritable cache $cache_file"
10718 fi
10719fi
10720rm -f confcache
10721
10722if test "$build" != "$host" ; then
1e9e8aba 10723 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10724 CC=$host_alias-gcc
10725 CXX=$host_alias-c++
10726 AR=$host_alias-ar
10727 RANLIB=$host_alias-ranlib
10728 DLLTOOL=$host_alias-dlltool
10729 RESCOMP=$host_alias-windres
a848cd7e 10730 STRIP=$host_alias-strip
1e9e8aba
DE
10731 elif test "x$CC" '!=' "x"; then
10732 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10733 else
10734 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10735echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10736 { (exit 1); exit 1; }; }
10737 fi
10738fi
10739
10740CFLAGS=${CFLAGS:=}
6dcfc289
DE
10741
10742
10743 ac_ext=c
a848cd7e
SC
10744ac_cpp='$CPP $CPPFLAGS'
10745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10747ac_compiler_gnu=$ac_cv_c_compiler_gnu
10748if test -n "$ac_tool_prefix"; then
10749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10750set dummy ${ac_tool_prefix}gcc; ac_word=$2
10751echo "$as_me:$LINENO: checking for $ac_word" >&5
10752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10753if test "${ac_cv_prog_CC+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755else
10756 if test -n "$CC"; then
10757 ac_cv_prog_CC="$CC" # Let the user override the test.
10758else
10759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770done
10771done
10772
10773fi
10774fi
10775CC=$ac_cv_prog_CC
10776if test -n "$CC"; then
10777 echo "$as_me:$LINENO: result: $CC" >&5
10778echo "${ECHO_T}$CC" >&6
10779else
10780 echo "$as_me:$LINENO: result: no" >&5
10781echo "${ECHO_T}no" >&6
10782fi
10783
10784fi
10785if test -z "$ac_cv_prog_CC"; then
10786 ac_ct_CC=$CC
10787 # Extract the first word of "gcc", so it can be a program name with args.
10788set dummy gcc; ac_word=$2
10789echo "$as_me:$LINENO: checking for $ac_word" >&5
10790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10791if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794 if test -n "$ac_ct_CC"; then
10795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_ac_ct_CC="gcc"
10805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10807 fi
10808done
10809done
10810
10811fi
10812fi
10813ac_ct_CC=$ac_cv_prog_ac_ct_CC
10814if test -n "$ac_ct_CC"; then
10815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10816echo "${ECHO_T}$ac_ct_CC" >&6
10817else
10818 echo "$as_me:$LINENO: result: no" >&5
10819echo "${ECHO_T}no" >&6
10820fi
10821
10822 CC=$ac_ct_CC
10823else
10824 CC="$ac_cv_prog_CC"
10825fi
10826
10827if test -z "$CC"; then
10828 if test -n "$ac_tool_prefix"; then
10829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10830set dummy ${ac_tool_prefix}cc; ac_word=$2
10831echo "$as_me:$LINENO: checking for $ac_word" >&5
10832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10833if test "${ac_cv_prog_CC+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836 if test -n "$CC"; then
10837 ac_cv_prog_CC="$CC" # Let the user override the test.
10838else
10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_prog_CC="${ac_tool_prefix}cc"
10847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850done
10851done
10852
10853fi
10854fi
10855CC=$ac_cv_prog_CC
10856if test -n "$CC"; then
10857 echo "$as_me:$LINENO: result: $CC" >&5
10858echo "${ECHO_T}$CC" >&6
10859else
10860 echo "$as_me:$LINENO: result: no" >&5
10861echo "${ECHO_T}no" >&6
10862fi
10863
10864fi
10865if test -z "$ac_cv_prog_CC"; then
10866 ac_ct_CC=$CC
10867 # Extract the first word of "cc", so it can be a program name with args.
10868set dummy cc; ac_word=$2
10869echo "$as_me:$LINENO: checking for $ac_word" >&5
10870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 if test -n "$ac_ct_CC"; then
10875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10876else
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_prog_ac_ct_CC="cc"
10885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10887 fi
10888done
10889done
10890
10891fi
10892fi
10893ac_ct_CC=$ac_cv_prog_ac_ct_CC
10894if test -n "$ac_ct_CC"; then
10895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10896echo "${ECHO_T}$ac_ct_CC" >&6
10897else
10898 echo "$as_me:$LINENO: result: no" >&5
10899echo "${ECHO_T}no" >&6
10900fi
10901
10902 CC=$ac_ct_CC
10903else
10904 CC="$ac_cv_prog_CC"
10905fi
10906
10907fi
10908if test -z "$CC"; then
10909 # Extract the first word of "cc", so it can be a program name with args.
10910set dummy cc; ac_word=$2
10911echo "$as_me:$LINENO: checking for $ac_word" >&5
10912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10913if test "${ac_cv_prog_CC+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
10916 if test -n "$CC"; then
10917 ac_cv_prog_CC="$CC" # Let the user override the test.
10918else
10919 ac_prog_rejected=no
10920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10928 ac_prog_rejected=yes
10929 continue
10930 fi
10931 ac_cv_prog_CC="cc"
10932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10934 fi
10935done
10936done
10937
10938if test $ac_prog_rejected = yes; then
10939 # We found a bogon in the path, so make sure we never use it.
10940 set dummy $ac_cv_prog_CC
10941 shift
10942 if test $# != 0; then
10943 # We chose a different compiler from the bogus one.
10944 # However, it has the same basename, so the bogon will be chosen
10945 # first if we set CC to just the basename; use the full file name.
10946 shift
10947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10948 fi
10949fi
10950fi
10951fi
10952CC=$ac_cv_prog_CC
10953if test -n "$CC"; then
10954 echo "$as_me:$LINENO: result: $CC" >&5
10955echo "${ECHO_T}$CC" >&6
10956else
10957 echo "$as_me:$LINENO: result: no" >&5
10958echo "${ECHO_T}no" >&6
10959fi
10960
10961fi
10962if test -z "$CC"; then
10963 if test -n "$ac_tool_prefix"; then
10964 for ac_prog in cl
10965 do
10966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10968echo "$as_me:$LINENO: checking for $ac_word" >&5
10969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10970if test "${ac_cv_prog_CC+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
10973 if test -n "$CC"; then
10974 ac_cv_prog_CC="$CC" # Let the user override the test.
10975else
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987done
10988done
10989
10990fi
10991fi
10992CC=$ac_cv_prog_CC
10993if test -n "$CC"; then
10994 echo "$as_me:$LINENO: result: $CC" >&5
10995echo "${ECHO_T}$CC" >&6
10996else
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
10999fi
11000
11001 test -n "$CC" && break
11002 done
11003fi
11004if test -z "$CC"; then
11005 ac_ct_CC=$CC
11006 for ac_prog in cl
11007do
11008 # Extract the first word of "$ac_prog", so it can be a program name with args.
11009set dummy $ac_prog; ac_word=$2
11010echo "$as_me:$LINENO: checking for $ac_word" >&5
11011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 if test -n "$ac_ct_CC"; then
11016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_ac_ct_CC="$ac_prog"
11026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030done
11031
11032fi
11033fi
11034ac_ct_CC=$ac_cv_prog_ac_ct_CC
11035if test -n "$ac_ct_CC"; then
11036 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11037echo "${ECHO_T}$ac_ct_CC" >&6
11038else
11039 echo "$as_me:$LINENO: result: no" >&5
11040echo "${ECHO_T}no" >&6
11041fi
11042
11043 test -n "$ac_ct_CC" && break
11044done
11045
11046 CC=$ac_ct_CC
11047fi
11048
11049fi
11050
11051
11052test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11053See \`config.log' for more details." >&5
11054echo "$as_me: error: no acceptable C compiler found in \$PATH
11055See \`config.log' for more details." >&2;}
11056 { (exit 1); exit 1; }; }
11057
11058# Provide some information about the compiler.
11059echo "$as_me:$LINENO:" \
11060 "checking for C compiler version" >&5
11061ac_compiler=`set X $ac_compile; echo $2`
11062{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11063 (eval $ac_compiler --version </dev/null >&5) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }
11067{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11068 (eval $ac_compiler -v </dev/null >&5) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }
11072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11073 (eval $ac_compiler -V </dev/null >&5) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }
11077
11078cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084
11085int
11086main ()
11087{
11088
11089 ;
11090 return 0;
11091}
11092_ACEOF
11093ac_clean_files_save=$ac_clean_files
11094ac_clean_files="$ac_clean_files a.out a.exe b.out"
11095# Try to create an executable without -o first, disregard a.out.
11096# It will help us diagnose broken compilers, and finding out an intuition
11097# of exeext.
ac1cb8d3
VS
11098echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11099echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11100ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11101if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11102 (eval $ac_link_default) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; then
11106 # Find the output, starting from the most likely. This scheme is
11107# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11108# resort.
11109
11110# Be careful to initialize this variable, since it used to be cached.
11111# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11112ac_cv_exeext=
11113# b.out is created by i960 compilers.
11114for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11115do
11116 test -f "$ac_file" || continue
11117 case $ac_file in
11118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11119 ;;
a848cd7e 11120 conftest.$ac_ext )
ac1cb8d3
VS
11121 # This is the source file.
11122 ;;
a848cd7e 11123 [ab].out )
ac1cb8d3
VS
11124 # We found the default executable, but exeext='' is most
11125 # certainly right.
11126 break;;
a848cd7e 11127 *.* )
ac1cb8d3
VS
11128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11129 # FIXME: I believe we export ac_cv_exeext for Libtool,
11130 # but it would be cool to find out if it's true. Does anybody
11131 # maintain Libtool? --akim.
11132 export ac_cv_exeext
11133 break;;
a848cd7e 11134 * )
ac1cb8d3 11135 break;;
a848cd7e
SC
11136 esac
11137done
11138else
11139 echo "$as_me: failed program was:" >&5
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
11142{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11143See \`config.log' for more details." >&5
11144echo "$as_me: error: C compiler cannot create executables
11145See \`config.log' for more details." >&2;}
11146 { (exit 77); exit 77; }; }
11147fi
11148
11149ac_exeext=$ac_cv_exeext
11150echo "$as_me:$LINENO: result: $ac_file" >&5
11151echo "${ECHO_T}$ac_file" >&6
11152
11153# Check the compiler produces executables we can run. If not, either
11154# the compiler is broken, or we cross compile.
11155echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11156echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11157# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11158# If not cross compiling, check that we can run a simple program.
11159if test "$cross_compiling" != yes; then
11160 if { ac_try='./$ac_file'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 cross_compiling=no
11167 else
11168 if test "$cross_compiling" = maybe; then
11169 cross_compiling=yes
11170 else
11171 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11172If you meant to cross compile, use \`--host'.
11173See \`config.log' for more details." >&5
11174echo "$as_me: error: cannot run C compiled programs.
11175If you meant to cross compile, use \`--host'.
11176See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178 fi
11179 fi
11180fi
11181echo "$as_me:$LINENO: result: yes" >&5
11182echo "${ECHO_T}yes" >&6
11183
11184rm -f a.out a.exe conftest$ac_cv_exeext b.out
11185ac_clean_files=$ac_clean_files_save
11186# Check the compiler produces executables we can run. If not, either
11187# the compiler is broken, or we cross compile.
11188echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11189echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11190echo "$as_me:$LINENO: result: $cross_compiling" >&5
11191echo "${ECHO_T}$cross_compiling" >&6
11192
11193echo "$as_me:$LINENO: checking for suffix of executables" >&5
11194echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196 (eval $ac_link) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; then
11200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11201# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11202# work properly (i.e., refer to `conftest.exe'), while it won't with
11203# `rm'.
11204for ac_file in conftest.exe conftest conftest.*; do
11205 test -f "$ac_file" || continue
11206 case $ac_file in
11207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11209 export ac_cv_exeext
11210 break;;
a848cd7e
SC
11211 * ) break;;
11212 esac
11213done
11214else
11215 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11216See \`config.log' for more details." >&5
11217echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11218See \`config.log' for more details." >&2;}
11219 { (exit 1); exit 1; }; }
11220fi
11221
11222rm -f conftest$ac_cv_exeext
11223echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11224echo "${ECHO_T}$ac_cv_exeext" >&6
11225
11226rm -f conftest.$ac_ext
11227EXEEXT=$ac_cv_exeext
11228ac_exeext=$EXEEXT
11229echo "$as_me:$LINENO: checking for suffix of object files" >&5
11230echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11231if test "${ac_cv_objext+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
11240
11241int
11242main ()
11243{
11244
11245 ;
11246 return 0;
11247}
11248_ACEOF
11249rm -f conftest.o conftest.obj
11250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; then
11255 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11256 case $ac_file in
11257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11259 break;;
11260 esac
11261done
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
11266{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11267See \`config.log' for more details." >&5
11268echo "$as_me: error: cannot compute suffix of object files: cannot compile
11269See \`config.log' for more details." >&2;}
11270 { (exit 1); exit 1; }; }
11271fi
11272
11273rm -f conftest.$ac_cv_objext conftest.$ac_ext
11274fi
11275echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11276echo "${ECHO_T}$ac_cv_objext" >&6
11277OBJEXT=$ac_cv_objext
11278ac_objext=$OBJEXT
11279echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11280echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11281if test "${ac_cv_c_compiler_gnu+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290
11291int
11292main ()
11293{
11294#ifndef __GNUC__
11295 choke me
11296#endif
11297
11298 ;
11299 return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11304 (eval $ac_compile) 2>conftest.er1
a848cd7e 11305 ac_status=$?
ac1cb8d3
VS
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
a848cd7e
SC
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
6ebeb4c7 11311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_compiler_gnu=yes
11324else
11325 echo "$as_me: failed program was:" >&5
11326sed 's/^/| /' conftest.$ac_ext >&5
11327
11328ac_compiler_gnu=no
11329fi
ac1cb8d3 11330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11331ac_cv_c_compiler_gnu=$ac_compiler_gnu
11332
11333fi
11334echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11335echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11336GCC=`test $ac_compiler_gnu = yes && echo yes`
11337ac_test_CFLAGS=${CFLAGS+set}
11338ac_save_CFLAGS=$CFLAGS
efdf6afe 11339CFLAGS="-g"
a848cd7e
SC
11340echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11341echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11342if test "${ac_cv_prog_cc_g+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344else
11345 cat >conftest.$ac_ext <<_ACEOF
11346/* confdefs.h. */
11347_ACEOF
11348cat confdefs.h >>conftest.$ac_ext
11349cat >>conftest.$ac_ext <<_ACEOF
11350/* end confdefs.h. */
11351
11352int
11353main ()
11354{
11355
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11362 (eval $ac_compile) 2>conftest.er1
a848cd7e 11363 ac_status=$?
ac1cb8d3
VS
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
a848cd7e
SC
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
6ebeb4c7 11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_prog_cc_g=yes
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386ac_cv_prog_cc_g=no
11387fi
ac1cb8d3 11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11389fi
11390echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11391echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11392if test "$ac_test_CFLAGS" = set; then
11393 CFLAGS=$ac_save_CFLAGS
11394elif test $ac_cv_prog_cc_g = yes; then
11395 if test "$GCC" = yes; then
11396 CFLAGS="-g -O2"
11397 else
11398 CFLAGS="-g"
11399 fi
11400else
11401 if test "$GCC" = yes; then
11402 CFLAGS="-O2"
11403 else
11404 CFLAGS=
11405 fi
11406fi
11407echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11408echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11409if test "${ac_cv_prog_cc_stdc+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 ac_cv_prog_cc_stdc=no
11413ac_save_CC=$CC
11414cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
11420#include <stdarg.h>
11421#include <stdio.h>
11422#include <sys/types.h>
11423#include <sys/stat.h>
11424/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11425struct buf { int x; };
11426FILE * (*rcsopen) (struct buf *, struct stat *, int);
11427static char *e (p, i)
11428 char **p;
11429 int i;
11430{
11431 return p[i];
11432}
11433static char *f (char * (*g) (char **, int), char **p, ...)
11434{
11435 char *s;
11436 va_list v;
11437 va_start (v,p);
11438 s = g (p, va_arg (v,int));
11439 va_end (v);
11440 return s;
11441}
ac1cb8d3
VS
11442
11443/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11444 function prototypes and stuff, but not '\xHH' hex character constants.
11445 These don't provoke an error unfortunately, instead are silently treated
11446 as 'x'. The following induces an error, until -std1 is added to get
11447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11448 array size at least. It's necessary to write '\x00'==0 to get something
11449 that's true only with -std1. */
11450int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11451
a848cd7e
SC
11452int test (int i, double x);
11453struct s1 {int (*f) (int a);};
11454struct s2 {int (*f) (double a);};
11455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11456int argc;
11457char **argv;
11458int
11459main ()
11460{
11461return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11462 ;
11463 return 0;
11464}
11465_ACEOF
11466# Don't try gcc -ansi; that turns off useful extensions and
11467# breaks some systems' header files.
11468# AIX -qlanglvl=ansi
11469# Ultrix and OSF/1 -std1
11470# HP-UX 10.20 and later -Ae
11471# HP-UX older versions -Aa -D_HPUX_SOURCE
11472# SVR4 -Xc -D__EXTENSIONS__
11473for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11474do
11475 CC="$ac_save_CC $ac_arg"
11476 rm -f conftest.$ac_objext
11477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11478 (eval $ac_compile) 2>conftest.er1
a848cd7e 11479 ac_status=$?
ac1cb8d3
VS
11480 grep -v '^ *+' conftest.er1 >conftest.err
11481 rm -f conftest.er1
11482 cat conftest.err >&5
a848cd7e
SC
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
6ebeb4c7 11485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_prog_cc_stdc=$ac_arg
11498break
11499else
11500 echo "$as_me: failed program was:" >&5
11501sed 's/^/| /' conftest.$ac_ext >&5
11502
11503fi
ac1cb8d3 11504rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11505done
11506rm -f conftest.$ac_ext conftest.$ac_objext
11507CC=$ac_save_CC
11508
11509fi
11510
11511case "x$ac_cv_prog_cc_stdc" in
11512 x|xno)
11513 echo "$as_me:$LINENO: result: none needed" >&5
11514echo "${ECHO_T}none needed" >&6 ;;
11515 *)
11516 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11517echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11518 CC="$CC $ac_cv_prog_cc_stdc" ;;
11519esac
11520
11521# Some people use a C++ compiler to compile C. Since we use `exit',
11522# in C++ we need to declare it. In case someone uses the same compiler
11523# for both compiling C and C++ we need to have the C++ compiler decide
11524# the declaration of exit, since it's the most demanding environment.
11525cat >conftest.$ac_ext <<_ACEOF
11526#ifndef __cplusplus
11527 choke me
11528#endif
11529_ACEOF
11530rm -f conftest.$ac_objext
11531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11532 (eval $ac_compile) 2>conftest.er1
a848cd7e 11533 ac_status=$?
ac1cb8d3
VS
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
a848cd7e
SC
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
6ebeb4c7 11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 for ac_declaration in \
ac1cb8d3 11552 '' \
a848cd7e
SC
11553 'extern "C" void std::exit (int) throw (); using std::exit;' \
11554 'extern "C" void std::exit (int); using std::exit;' \
11555 'extern "C" void exit (int) throw ();' \
11556 'extern "C" void exit (int);' \
11557 'void exit (int);'
11558do
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
de59c161 11565$ac_declaration
ac1cb8d3 11566#include <stdlib.h>
a848cd7e
SC
11567int
11568main ()
11569{
11570exit (42);
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575rm -f conftest.$ac_objext
11576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11577 (eval $ac_compile) 2>conftest.er1
a848cd7e 11578 ac_status=$?
ac1cb8d3
VS
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
a848cd7e
SC
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
6ebeb4c7 11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 :
11597else
11598 echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601continue
11602fi
ac1cb8d3 11603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11604 cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_declaration
11611int
11612main ()
11613{
11614exit (42);
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619rm -f conftest.$ac_objext
11620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11621 (eval $ac_compile) 2>conftest.er1
a848cd7e 11622 ac_status=$?
ac1cb8d3
VS
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
a848cd7e
SC
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
6ebeb4c7 11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 break
11641else
11642 echo "$as_me: failed program was:" >&5
11643sed 's/^/| /' conftest.$ac_ext >&5
11644
11645fi
ac1cb8d3 11646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11647done
11648rm -f conftest*
11649if test -n "$ac_declaration"; then
11650 echo '#ifdef __cplusplus' >>confdefs.h
11651 echo $ac_declaration >>confdefs.h
11652 echo '#endif' >>confdefs.h
11653fi
11654
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659fi
ac1cb8d3 11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11661ac_ext=c
11662ac_cpp='$CPP $CPPFLAGS'
11663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11665ac_compiler_gnu=$ac_cv_c_compiler_gnu
11666
6dcfc289 11667 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11668echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11669if test "${wx_cv_c_exto+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671else
11672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
11678
11679int
11680main ()
11681{
11682
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687rm -f conftest.$ac_objext conftest.$ac_ext.o
11688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; then
11693 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11694 case $ac_file in
11695 conftest.$ac_ext.o)
11696 wx_cv_c_exto="-ext o"
11697 ;;
11698 *)
11699 ;;
11700 esac
11701done
11702else
11703 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11704See \`config.log' for more details." >&5
11705echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11706See \`config.log' for more details." >&2;}
11707 { (exit 1); exit 1; }; }
11708
11709fi
11710
11711rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11712
11713fi
11714echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11715echo "${ECHO_T}$wx_cv_c_exto" >&6
11716if test "x$wx_cv_c_exto" '!=' "x"; then
11717 if test "c" = "c"; then
11718 CFLAGS="$wx_cv_c_exto $CFLAGS"
11719 fi
11720 if test "c" = "cxx"; then
11721 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11722 fi
11723fi
11724
6dcfc289
DE
11725 if test "x$wx_cv_c_exto" '!=' "x"; then
11726 unset ac_cv_prog_cc_g
11727 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11728ac_save_CFLAGS=$CFLAGS
efdf6afe 11729CFLAGS="-g"
480ccd21
DE
11730echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11731echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11732if test "${ac_cv_prog_cc_g+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735 cat >conftest.$ac_ext <<_ACEOF
11736/* confdefs.h. */
11737_ACEOF
11738cat confdefs.h >>conftest.$ac_ext
11739cat >>conftest.$ac_ext <<_ACEOF
11740/* end confdefs.h. */
11741
11742int
11743main ()
11744{
11745
11746 ;
11747 return 0;
11748}
11749_ACEOF
11750rm -f conftest.$ac_objext
11751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
6ebeb4c7 11759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_prog_cc_g=yes
11772else
11773 echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
11776ac_cv_prog_cc_g=no
11777fi
11778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11779fi
11780echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11781echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11782if test "$ac_test_CFLAGS" = set; then
11783 CFLAGS=$ac_save_CFLAGS
11784elif test $ac_cv_prog_cc_g = yes; then
11785 if test "$GCC" = yes; then
11786 CFLAGS="-g -O2"
11787 else
11788 CFLAGS="-g"
11789 fi
11790else
11791 if test "$GCC" = yes; then
11792 CFLAGS="-O2"
11793 else
11794 CFLAGS=
11795 fi
11796fi
6dcfc289
DE
11797 fi
11798 ac_ext=c
95986553
DE
11799ac_cpp='$CPP $CPPFLAGS'
11800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803
11804echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11805echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11806if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815
11816int
11817main ()
11818{
11819#ifndef __MWERKS__
11820 choke me
11821#endif
11822
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext
11828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
6ebeb4c7 11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 bakefile_compiler_mwerks=yes
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853bakefile_compiler_mwerks=no
11854fi
11855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11856 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11857
11858fi
11859echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11860echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11861
0e6fa1d9 11862MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11863ac_ext=c
11864ac_cpp='$CPP $CPPFLAGS'
11865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11867ac_compiler_gnu=$ac_cv_c_compiler_gnu
11868
11869
6dcfc289 11870 ac_ext=c
9273ffba
DE
11871ac_cpp='$CPP $CPPFLAGS'
11872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874ac_compiler_gnu=$ac_cv_c_compiler_gnu
11875
11876echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11877echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11878if test "${wx_cv_c_compiler_xlc+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887
11888int
11889main ()
11890{
11891#ifndef __xlC__
11892 choke me
11893#endif
11894
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext
11900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
6ebeb4c7 11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 wx_compiler_xlc=yes
11921else
11922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925wx_compiler_xlc=no
11926fi
11927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11929
11930fi
11931echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11932echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11933
0e6fa1d9 11934XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11935ac_ext=c
11936ac_cpp='$CPP $CPPFLAGS'
11937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11939ac_compiler_gnu=$ac_cv_c_compiler_gnu
11940
11941
a848cd7e 11942
6dcfc289 11943
a9e5b1f0
MW
11944 ac_ext=c
11945ac_cpp='$CPP $CPPFLAGS'
11946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11951echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11952if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955 cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
11961
11962int
11963main ()
11964{
11965
11966 #ifndef __SUNPRO_C
11967 choke me
11968 #endif
11969
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext
11975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
6ebeb4c7 11983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 bakefile_cv_c_compiler___SUNPRO_C=yes
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000bakefile_cv_c_compiler___SUNPRO_C=no
12001
12002fi
12003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12004
12005
12006fi
12007echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12008echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12009 ac_ext=c
12010ac_cpp='$CPP $CPPFLAGS'
12011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12013ac_compiler_gnu=$ac_cv_c_compiler_gnu
12014
12015 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12016 :; SUNCC=yes
12017 else
12018 :;
12019 fi
12020
12021
12022
12023
a848cd7e
SC
12024ac_ext=c
12025ac_cpp='$CPP $CPPFLAGS'
12026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12028ac_compiler_gnu=$ac_cv_c_compiler_gnu
12029echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12030echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12031# On Suns, sometimes $CPP names a directory.
12032if test -n "$CPP" && test -d "$CPP"; then
12033 CPP=
12034fi
12035if test -z "$CPP"; then
12036 if test "${ac_cv_prog_CPP+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039 # Double quotes because CPP needs to be expanded
12040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12041 do
12042 ac_preproc_ok=false
12043for ac_c_preproc_warn_flag in '' yes
12044do
12045 # Use a header file that comes with gcc, so configuring glibc
12046 # with a fresh cross-compiler works.
12047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048 # <limits.h> exists even on freestanding compilers.
12049 # On the NeXT, cc -E runs the code through the compiler's parser,
12050 # not just through cpp. "Syntax error" is here to catch this case.
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */
12057#ifdef __STDC__
12058# include <limits.h>
12059#else
12060# include <assert.h>
12061#endif
ac1cb8d3 12062 Syntax error
a848cd7e
SC
12063_ACEOF
12064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } >/dev/null; then
12072 if test -s conftest.err; then
12073 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12075 else
12076 ac_cpp_err=
12077 fi
12078else
12079 ac_cpp_err=yes
12080fi
12081if test -z "$ac_cpp_err"; then
12082 :
12083else
12084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 # Broken: fails on valid input.
12088continue
12089fi
12090rm -f conftest.err conftest.$ac_ext
12091
12092 # OK, works on sane cases. Now check whether non-existent headers
12093 # can be detected and how.
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100#include <ac_nonexistent.h>
12101_ACEOF
12102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev/null; then
12110 if test -s conftest.err; then
12111 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12113 else
12114 ac_cpp_err=
12115 fi
12116else
12117 ac_cpp_err=yes
12118fi
12119if test -z "$ac_cpp_err"; then
12120 # Broken: success on invalid input.
12121continue
12122else
12123 echo "$as_me: failed program was:" >&5
12124sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 # Passes both tests.
12127ac_preproc_ok=:
12128break
12129fi
12130rm -f conftest.err conftest.$ac_ext
12131
12132done
12133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12134rm -f conftest.err conftest.$ac_ext
12135if $ac_preproc_ok; then
12136 break
12137fi
12138
12139 done
12140 ac_cv_prog_CPP=$CPP
12141
12142fi
12143 CPP=$ac_cv_prog_CPP
12144else
12145 ac_cv_prog_CPP=$CPP
12146fi
12147echo "$as_me:$LINENO: result: $CPP" >&5
12148echo "${ECHO_T}$CPP" >&6
12149ac_preproc_ok=false
12150for ac_c_preproc_warn_flag in '' yes
12151do
12152 # Use a header file that comes with gcc, so configuring glibc
12153 # with a fresh cross-compiler works.
12154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12155 # <limits.h> exists even on freestanding compilers.
12156 # On the NeXT, cc -E runs the code through the compiler's parser,
12157 # not just through cpp. "Syntax error" is here to catch this case.
12158 cat >conftest.$ac_ext <<_ACEOF
12159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
12164#ifdef __STDC__
12165# include <limits.h>
12166#else
12167# include <assert.h>
12168#endif
ac1cb8d3 12169 Syntax error
a848cd7e
SC
12170_ACEOF
12171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } >/dev/null; then
12179 if test -s conftest.err; then
12180 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12182 else
12183 ac_cpp_err=
12184 fi
12185else
12186 ac_cpp_err=yes
12187fi
12188if test -z "$ac_cpp_err"; then
12189 :
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 # Broken: fails on valid input.
12195continue
12196fi
12197rm -f conftest.err conftest.$ac_ext
12198
12199 # OK, works on sane cases. Now check whether non-existent headers
12200 # can be detected and how.
12201 cat >conftest.$ac_ext <<_ACEOF
12202/* confdefs.h. */
12203_ACEOF
12204cat confdefs.h >>conftest.$ac_ext
12205cat >>conftest.$ac_ext <<_ACEOF
12206/* end confdefs.h. */
12207#include <ac_nonexistent.h>
12208_ACEOF
12209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } >/dev/null; then
12217 if test -s conftest.err; then
12218 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12220 else
12221 ac_cpp_err=
12222 fi
12223else
12224 ac_cpp_err=yes
12225fi
12226if test -z "$ac_cpp_err"; then
12227 # Broken: success on invalid input.
12228continue
12229else
12230 echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 # Passes both tests.
12234ac_preproc_ok=:
12235break
12236fi
12237rm -f conftest.err conftest.$ac_ext
12238
12239done
12240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12241rm -f conftest.err conftest.$ac_ext
12242if $ac_preproc_ok; then
12243 :
12244else
12245 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12246See \`config.log' for more details." >&5
12247echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12248See \`config.log' for more details." >&2;}
12249 { (exit 1); exit 1; }; }
12250fi
12251
12252ac_ext=c
12253ac_cpp='$CPP $CPPFLAGS'
12254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12256ac_compiler_gnu=$ac_cv_c_compiler_gnu
12257
12258
12259echo "$as_me:$LINENO: checking for egrep" >&5
12260echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12261if test "${ac_cv_prog_egrep+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12265 then ac_cv_prog_egrep='grep -E'
12266 else ac_cv_prog_egrep='egrep'
12267 fi
12268fi
12269echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12270echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12271 EGREP=$ac_cv_prog_egrep
12272
12273
12274if test $ac_cv_c_compiler_gnu = yes; then
12275 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12276echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12277if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279else
12280 ac_pattern="Autoconf.*'x'"
12281 cat >conftest.$ac_ext <<_ACEOF
12282/* confdefs.h. */
12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
12286/* end confdefs.h. */
12287#include <sgtty.h>
12288Autoconf TIOCGETP
12289_ACEOF
12290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12291 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12292 ac_cv_prog_gcc_traditional=yes
12293else
12294 ac_cv_prog_gcc_traditional=no
12295fi
12296rm -f conftest*
12297
12298
12299 if test $ac_cv_prog_gcc_traditional = no; then
12300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306#include <termio.h>
12307Autoconf TCGETA
12308_ACEOF
12309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12310 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12311 ac_cv_prog_gcc_traditional=yes
12312fi
12313rm -f conftest*
12314
12315 fi
12316fi
12317echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12318echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12319 if test $ac_cv_prog_gcc_traditional = yes; then
12320 CC="$CC -traditional"
12321 fi
12322fi
12323
12324
12325
12326
12327ac_ext=cc
12328ac_cpp='$CXXCPP $CPPFLAGS'
12329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12332
12333
12334CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12335
12336
12337 ac_ext=cc
a848cd7e
SC
12338ac_cpp='$CXXCPP $CPPFLAGS'
12339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12342if test -n "$ac_tool_prefix"; then
12343 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12344 do
12345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12347echo "$as_me:$LINENO: checking for $ac_word" >&5
12348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12349if test "${ac_cv_prog_CXX+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
12352 if test -n "$CXX"; then
12353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12354else
12355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356for as_dir in $PATH
12357do
12358 IFS=$as_save_IFS
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 break 2
12365 fi
12366done
12367done
12368
12369fi
12370fi
12371CXX=$ac_cv_prog_CXX
12372if test -n "$CXX"; then
12373 echo "$as_me:$LINENO: result: $CXX" >&5
12374echo "${ECHO_T}$CXX" >&6
12375else
12376 echo "$as_me:$LINENO: result: no" >&5
12377echo "${ECHO_T}no" >&6
12378fi
12379
12380 test -n "$CXX" && break
12381 done
12382fi
12383if test -z "$CXX"; then
12384 ac_ct_CXX=$CXX
12385 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12386do
12387 # Extract the first word of "$ac_prog", so it can be a program name with args.
12388set dummy $ac_prog; ac_word=$2
12389echo "$as_me:$LINENO: checking for $ac_word" >&5
12390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12391if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 if test -n "$ac_ct_CXX"; then
12395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12396else
12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398for as_dir in $PATH
12399do
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12404 ac_cv_prog_ac_ct_CXX="$ac_prog"
12405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12407 fi
12408done
12409done
12410
12411fi
12412fi
12413ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12414if test -n "$ac_ct_CXX"; then
12415 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12416echo "${ECHO_T}$ac_ct_CXX" >&6
12417else
12418 echo "$as_me:$LINENO: result: no" >&5
12419echo "${ECHO_T}no" >&6
12420fi
12421
12422 test -n "$ac_ct_CXX" && break
12423done
12424test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12425
12426 CXX=$ac_ct_CXX
12427fi
12428
12429
12430# Provide some information about the compiler.
12431echo "$as_me:$LINENO:" \
12432 "checking for C++ compiler version" >&5
12433ac_compiler=`set X $ac_compile; echo $2`
12434{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12435 (eval $ac_compiler --version </dev/null >&5) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }
12439{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12440 (eval $ac_compiler -v </dev/null >&5) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }
12444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12445 (eval $ac_compiler -V </dev/null >&5) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }
12449
12450echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12451echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12452if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12454else
12455 cat >conftest.$ac_ext <<_ACEOF
12456/* confdefs.h. */
12457_ACEOF
12458cat confdefs.h >>conftest.$ac_ext
12459cat >>conftest.$ac_ext <<_ACEOF
12460/* end confdefs.h. */
12461
12462int
12463main ()
12464{
12465#ifndef __GNUC__
12466 choke me
12467#endif
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12475 (eval $ac_compile) 2>conftest.er1
a848cd7e 12476 ac_status=$?
ac1cb8d3
VS
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
a848cd7e
SC
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
6ebeb4c7 12482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_compiler_gnu=yes
12495else
12496 echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499ac_compiler_gnu=no
12500fi
ac1cb8d3 12501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12502ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12503
12504fi
12505echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12506echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12507GXX=`test $ac_compiler_gnu = yes && echo yes`
12508ac_test_CXXFLAGS=${CXXFLAGS+set}
12509ac_save_CXXFLAGS=$CXXFLAGS
12510CXXFLAGS="-g"
12511echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12512echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12513if test "${ac_cv_prog_cxx_g+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522
12523int
12524main ()
12525{
12526
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531rm -f conftest.$ac_objext
12532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12533 (eval $ac_compile) 2>conftest.er1
a848cd7e 12534 ac_status=$?
ac1cb8d3
VS
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
a848cd7e
SC
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
6ebeb4c7 12540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_prog_cxx_g=yes
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557ac_cv_prog_cxx_g=no
12558fi
ac1cb8d3 12559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12560fi
12561echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12562echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12563if test "$ac_test_CXXFLAGS" = set; then
12564 CXXFLAGS=$ac_save_CXXFLAGS
12565elif test $ac_cv_prog_cxx_g = yes; then
12566 if test "$GXX" = yes; then
efdf6afe 12567 CXXFLAGS="-g -O2"
a848cd7e 12568 else
efdf6afe 12569 CXXFLAGS="-g"
a848cd7e
SC
12570 fi
12571else
12572 if test "$GXX" = yes; then
12573 CXXFLAGS="-O2"
12574 else
12575 CXXFLAGS=
12576 fi
12577fi
12578for ac_declaration in \
ac1cb8d3 12579 '' \
a848cd7e
SC
12580 'extern "C" void std::exit (int) throw (); using std::exit;' \
12581 'extern "C" void std::exit (int); using std::exit;' \
12582 'extern "C" void exit (int) throw ();' \
12583 'extern "C" void exit (int);' \
12584 'void exit (int);'
12585do
12586 cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
de59c161 12592$ac_declaration
ac1cb8d3 12593#include <stdlib.h>
a848cd7e
SC
12594int
12595main ()
12596{
12597exit (42);
12598 ;
12599 return 0;
12600}
12601_ACEOF
12602rm -f conftest.$ac_objext
12603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12604 (eval $ac_compile) 2>conftest.er1
a848cd7e 12605 ac_status=$?
ac1cb8d3
VS
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
a848cd7e
SC
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
6ebeb4c7 12611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 :
12624else
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
12628continue
12629fi
ac1cb8d3 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12631 cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637$ac_declaration
12638int
12639main ()
12640{
12641exit (42);
12642 ;
12643 return 0;
12644}
12645_ACEOF
12646rm -f conftest.$ac_objext
12647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12648 (eval $ac_compile) 2>conftest.er1
a848cd7e 12649 ac_status=$?
ac1cb8d3
VS
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
a848cd7e
SC
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
6ebeb4c7 12655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 break
12668else
12669 echo "$as_me: failed program was:" >&5
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
12672fi
ac1cb8d3 12673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12674done
12675rm -f conftest*
12676if test -n "$ac_declaration"; then
12677 echo '#ifdef __cplusplus' >>confdefs.h
12678 echo $ac_declaration >>confdefs.h
12679 echo '#endif' >>confdefs.h
12680fi
12681
12682ac_ext=cc
12683ac_cpp='$CXXCPP $CPPFLAGS'
12684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12687
6dcfc289 12688 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12689echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12690if test "${wx_cv_cxx_exto+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699
12700int
12701main ()
12702{
12703
12704 ;
12705 return 0;
12706}
12707_ACEOF
12708rm -f conftest.$ac_objext conftest.$ac_ext.o
12709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12710 (eval $ac_compile) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; then
12714 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12715 case $ac_file in
12716 conftest.$ac_ext.o)
12717 wx_cv_cxx_exto="-ext o"
12718 ;;
12719 *)
12720 ;;
12721 esac
12722done
12723else
12724 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12725See \`config.log' for more details." >&5
12726echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12727See \`config.log' for more details." >&2;}
12728 { (exit 1); exit 1; }; }
12729
12730fi
12731
12732rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12733
12734fi
12735echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12736echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12737if test "x$wx_cv_cxx_exto" '!=' "x"; then
12738 if test "cxx" = "c"; then
12739 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12740 fi
12741 if test "cxx" = "cxx"; then
12742 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12743 fi
12744fi
12745
6dcfc289
DE
12746 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12747 unset ac_cv_prog_cxx_g
12748 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12749ac_save_CXXFLAGS=$CXXFLAGS
12750CXXFLAGS="-g"
12751echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12752echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12753if test "${ac_cv_prog_cxx_g+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756 cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762
12763int
12764main ()
12765{
12766
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
6ebeb4c7 12780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest.$ac_objext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_prog_cxx_g=yes
12793else
12794 echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
12797ac_cv_prog_cxx_g=no
12798fi
12799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12800fi
12801echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12802echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12803if test "$ac_test_CXXFLAGS" = set; then
12804 CXXFLAGS=$ac_save_CXXFLAGS
12805elif test $ac_cv_prog_cxx_g = yes; then
12806 if test "$GXX" = yes; then
efdf6afe 12807 CXXFLAGS="-g -O2"
480ccd21 12808 else
efdf6afe 12809 CXXFLAGS="-g"
480ccd21
DE
12810 fi
12811else
12812 if test "$GXX" = yes; then
12813 CXXFLAGS="-O2"
12814 else
12815 CXXFLAGS=
12816 fi
12817fi
6dcfc289
DE
12818 fi
12819 ac_ext=cc
95986553
DE
12820ac_cpp='$CXXCPP $CPPFLAGS'
12821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12824
12825echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12826echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12827if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829else
12830 cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
12836
12837int
12838main ()
12839{
12840#ifndef __MWERKS__
12841 choke me
12842#endif
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
6ebeb4c7 12857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 bakefile_compiler_mwerks=yes
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874bakefile_compiler_mwerks=no
12875fi
12876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12878
12879fi
12880echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12881echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12882
0e6fa1d9 12883MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12884ac_ext=cc
12885ac_cpp='$CXXCPP $CPPFLAGS'
12886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12889
12890
6dcfc289 12891 ac_ext=cc
9273ffba
DE
12892ac_cpp='$CXXCPP $CPPFLAGS'
12893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12896
12897echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12898echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12899if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901else
12902 cat >conftest.$ac_ext <<_ACEOF
12903/* confdefs.h. */
12904_ACEOF
12905cat confdefs.h >>conftest.$ac_ext
12906cat >>conftest.$ac_ext <<_ACEOF
12907/* end confdefs.h. */
12908
12909int
12910main ()
12911{
12912#ifndef __xlC__
12913 choke me
12914#endif
12915
12916 ;
12917 return 0;
12918}
12919_ACEOF
12920rm -f conftest.$ac_objext
12921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922 (eval $ac_compile) 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
6ebeb4c7 12929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; } &&
12935 { ac_try='test -s conftest.$ac_objext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 wx_compiler_xlc=yes
12942else
12943 echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946wx_compiler_xlc=no
12947fi
12948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12949 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12950
12951fi
12952echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12953echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12954
0e6fa1d9 12955XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12956ac_ext=cc
12957ac_cpp='$CXXCPP $CPPFLAGS'
12958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12961
12962
95986553 12963
6dcfc289 12964
a9e5b1f0
MW
12965 ac_ext=cc
12966ac_cpp='$CXXCPP $CPPFLAGS'
12967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12970
12971 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12972echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12973if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12975else
12976 cat >conftest.$ac_ext <<_ACEOF
12977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h. */
12982
12983int
12984main ()
12985{
12986
12987 #ifndef __SUNPRO_CC
12988 choke me
12989 #endif
12990
12991 ;
12992 return 0;
12993}
12994_ACEOF
12995rm -f conftest.$ac_objext
12996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997 (eval $ac_compile) 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
6ebeb4c7 13004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest.$ac_objext'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13017else
13018 echo "$as_me: failed program was:" >&5
13019sed 's/^/| /' conftest.$ac_ext >&5
13020
13021bakefile_cv_cxx_compiler___SUNPRO_CC=no
13022
13023fi
13024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13025
13026
13027fi
13028echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13029echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13030 ac_ext=cc
13031ac_cpp='$CXXCPP $CPPFLAGS'
13032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13035
13036 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13037 :; SUNCXX=yes
13038 else
13039 :;
13040 fi
13041
13042
13043
13044
a848cd7e
SC
13045ac_ext=c
13046ac_cpp='$CPP $CPPFLAGS'
13047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050
13051
a848cd7e
SC
13052if test -n "$ac_tool_prefix"; then
13053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13054set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13055echo "$as_me:$LINENO: checking for $ac_word" >&5
13056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13057if test "${ac_cv_prog_RANLIB+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
13060 if test -n "$RANLIB"; then
13061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13062else
13063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064for as_dir in $PATH
13065do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13073 fi
13074done
13075done
13076
13077fi
13078fi
13079RANLIB=$ac_cv_prog_RANLIB
13080if test -n "$RANLIB"; then
13081 echo "$as_me:$LINENO: result: $RANLIB" >&5
13082echo "${ECHO_T}$RANLIB" >&6
13083else
13084 echo "$as_me:$LINENO: result: no" >&5
13085echo "${ECHO_T}no" >&6
13086fi
13087
13088fi
13089if test -z "$ac_cv_prog_RANLIB"; then
13090 ac_ct_RANLIB=$RANLIB
13091 # Extract the first word of "ranlib", so it can be a program name with args.
13092set dummy ranlib; ac_word=$2
13093echo "$as_me:$LINENO: checking for $ac_word" >&5
13094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13095if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 if test -n "$ac_ct_RANLIB"; then
13099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13100else
13101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102for as_dir in $PATH
13103do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_ac_ct_RANLIB="ranlib"
13109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112done
13113done
13114
13115 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13116fi
13117fi
13118ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13119if test -n "$ac_ct_RANLIB"; then
13120 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13121echo "${ECHO_T}$ac_ct_RANLIB" >&6
13122else
13123 echo "$as_me:$LINENO: result: no" >&5
13124echo "${ECHO_T}no" >&6
13125fi
13126
13127 RANLIB=$ac_ct_RANLIB
13128else
13129 RANLIB="$ac_cv_prog_RANLIB"
13130fi
13131
13132
13133# Extract the first word of "ar", so it can be a program name with args.
13134set dummy ar; ac_word=$2
13135echo "$as_me:$LINENO: checking for $ac_word" >&5
13136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13137if test "${ac_cv_prog_AR+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139else
13140 if test -n "$AR"; then
13141 ac_cv_prog_AR="$AR" # Let the user override the test.
13142else
13143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $PATH
13145do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13150 ac_cv_prog_AR="ar"
13151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154done
13155done
13156
13157fi
13158fi
13159AR=$ac_cv_prog_AR
13160if test -n "$AR"; then
13161 echo "$as_me:$LINENO: result: $AR" >&5
13162echo "${ECHO_T}$AR" >&6
13163else
13164 echo "$as_me:$LINENO: result: no" >&5
13165echo "${ECHO_T}no" >&6
13166fi
13167
13168if test "x$AR" = "x" ; then
77ffb593
JS
13169 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13170echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13171 { (exit 1); exit 1; }; }
13172fi
13173
13174# Find a good install program. We prefer a C program (faster),
13175# so one script is as good as another. But avoid the broken or
13176# incompatible versions:
13177# SysV /etc/install, /usr/sbin/install
13178# SunOS /usr/etc/install
13179# IRIX /sbin/install
13180# AIX /bin/install
13181# AmigaOS /C/install, which installs bootblocks on floppy discs
13182# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13183# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13184# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13185# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13186# ./install, which can be erroneously created by make from ./install.sh.
13187echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13188echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13189if test -z "$INSTALL"; then
13190if test "${ac_cv_path_install+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192else
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194for as_dir in $PATH
13195do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 # Account for people who put trailing slashes in PATH elements.
13199case $as_dir/ in
13200 ./ | .// | /cC/* | \
13201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13202 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13203 /usr/ucb/* ) ;;
13204 *)
13205 # OSF1 and SCO ODT 3.0 have their own names for install.
13206 # Don't use installbsd from OSF since it installs stuff as root
13207 # by default.
13208 for ac_prog in ginstall scoinst install; do
13209 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13210 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13211 if test $ac_prog = install &&
13212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13213 # AIX install. It has an incompatible calling convention.
13214 :
13215 elif test $ac_prog = install &&
13216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13217 # program-specific install script used by HP pwplus--don't use.
13218 :
13219 else
13220 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13221 break 3
13222 fi
13223 fi
a848cd7e
SC
13224 done
13225 done
13226 ;;
13227esac
13228done
13229
13230
13231fi
13232 if test "${ac_cv_path_install+set}" = set; then
13233 INSTALL=$ac_cv_path_install
13234 else
13235 # As a last resort, use the slow shell script. We don't cache a
13236 # path for INSTALL within a source directory, because that will
13237 # break other packages using the cache if that directory is
13238 # removed, or if the path is relative.
13239 INSTALL=$ac_install_sh
13240 fi
13241fi
13242echo "$as_me:$LINENO: result: $INSTALL" >&5
13243echo "${ECHO_T}$INSTALL" >&6
13244
13245# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13246# It thinks the first close brace ends the variable substitution.
13247test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13248
13249test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13250
13251test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13252
13253
13254case ${INSTALL} in
13255 /* ) # Absolute
13256 ;;
13257 ?:* ) # Drive letter, considered as absolute.
13258 ;;
13259 *)
13260 INSTALL=`pwd`/${INSTALL} ;;
13261esac
13262
a848cd7e
SC
13263
13264case "${host}" in
13265
cfda0ea8 13266 *-*-darwin* )
a848cd7e
SC
13267 INSTALL_PROGRAM="cp -fp"
13268 INSTALL_DATA="cp -fp"
13269 ;;
13270 *)
13271 ;;
13272esac
13273
13274# Extract the first word of "strip", so it can be a program name with args.
13275set dummy strip; ac_word=$2
13276echo "$as_me:$LINENO: checking for $ac_word" >&5
13277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13278if test "${ac_cv_prog_STRIP+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 if test -n "$STRIP"; then
13282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291 ac_cv_prog_STRIP="strip"
13292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295done
13296done
13297
13298 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13299fi
13300fi
13301STRIP=$ac_cv_prog_STRIP
13302if test -n "$STRIP"; then
13303 echo "$as_me:$LINENO: result: $STRIP" >&5
13304echo "${ECHO_T}$STRIP" >&6
13305else
13306 echo "$as_me:$LINENO: result: no" >&5
13307echo "${ECHO_T}no" >&6
13308fi
13309
13310
13311echo "$as_me:$LINENO: checking if make is GNU make" >&5
13312echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13313if test "${wx_cv_prog_makeisgnu+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316
13317 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13318 egrep -s GNU > /dev/null); then
13319 wx_cv_prog_makeisgnu="yes"
13320 else
13321 wx_cv_prog_makeisgnu="no"
13322 fi
13323
13324fi
13325echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13326echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13327
13328if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13329 IF_GNU_MAKE=""
13330else
13331 IF_GNU_MAKE="#"
13332fi
13333
13334
13335
13336if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13337echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13338echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13339if test "${wx_cv_prog_makevpath+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341else
13342
13343cat - << EOF > confMake
13344check : file
13345 cp \$? \$@
13346 cp \$? final_file
13347EOF
13348
13349if test ! -d sub ; then
13350 mkdir sub
13351fi
13352echo dummy > sub/file
13353${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13354RESULT=$?
13355rm -f sub/file check final_file confMake
13356rmdir sub
13357if test "$RESULT" = 0; then
13358 wx_cv_prog_makevpath="yes"
13359else
13360 wx_cv_prog_makevpath="no"
13361fi
13362
13363fi
13364echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13365echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13366
13367if test "x$wx_cv_prog_makevpath" != "xyes"; then
13368{ { echo "$as_me:$LINENO: error:
13369You need a make-utility that is able to use the variable
13370VPATH correctly.
13371If your version of make does not support VPATH correctly,
13372please install GNU-make (possibly as gmake), and start
13373configure with the following command:
13374export MAKE=gmake; ./configure for sh-type shells
13375setenv MAKE gmake; ./configure for csh-type shells
13376Also please do remember to use gmake in this case every time
13377you are trying to compile.
13378" >&5
13379echo "$as_me: error:
13380You need a make-utility that is able to use the variable
13381VPATH correctly.
13382If your version of make does not support VPATH correctly,
13383please install GNU-make (possibly as gmake), and start
13384configure with the following command:
13385export MAKE=gmake; ./configure for sh-type shells
13386setenv MAKE gmake; ./configure for csh-type shells
13387Also please do remember to use gmake in this case every time
13388you are trying to compile.
13389" >&2;}
13390 { (exit 1); exit 1; }; }
13391fi fi
13392echo "$as_me:$LINENO: checking whether ln -s works" >&5
13393echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13394LN_S=$as_ln_s
13395if test "$LN_S" = "ln -s"; then
13396 echo "$as_me:$LINENO: result: yes" >&5
13397echo "${ECHO_T}yes" >&6
13398else
13399 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13400echo "${ECHO_T}no, using $LN_S" >&6
13401fi
13402
13403
13404
2113bc77 13405if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
13406 CXXFLAGS="$CXXFLAGS -qunique"
13407fi
13408
13409
4d7ec9f1
DE
13410case "${host}" in
13411 powerpc-*-darwin* )
13412 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13413echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420
13421int
13422main ()
13423{
13424#ifndef __POWERPC__
13425 choke me for lack of PowerPC
13426#endif
13427
13428 ;
13429 return 0;
13430}
13431_ACEOF
13432rm -f conftest.$ac_objext
13433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>conftest.er1
13435 ac_status=$?
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
6ebeb4c7 13441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 echo "$as_me:$LINENO: result: yes" >&5
13454echo "${ECHO_T}yes" >&6
13455else
13456 echo "$as_me: failed program was:" >&5
13457sed 's/^/| /' conftest.$ac_ext >&5
13458
13459echo "$as_me:$LINENO: result: no" >&5
13460echo "${ECHO_T}no" >&6
13461 cat >>confdefs.h <<\_ACEOF
13462#define __POWERPC__ 1
13463_ACEOF
13464
13465
13466fi
13467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
13468 ;;
13469esac
13470
13471case "${host}" in
13472 *-*-darwin* )
4d7ec9f1
DE
13473 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13474echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13475 cat >conftest.$ac_ext <<_ACEOF
13476/* confdefs.h. */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
13480/* end confdefs.h. */
13481#include <CoreFoundation/CFBase.h>
13482
13483int
13484main ()
13485{
13486
13487 ;
13488 return 0;
13489}
13490_ACEOF
13491rm -f conftest.$ac_objext
13492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
6ebeb4c7 13500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 echo "$as_me:$LINENO: result: yes" >&5
13513echo "${ECHO_T}yes" >&6
13514else
13515 echo "$as_me: failed program was:" >&5
13516sed 's/^/| /' conftest.$ac_ext >&5
13517
13518echo "$as_me:$LINENO: result: no" >&5
13519echo "${ECHO_T}no" >&6
13520 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13521echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13522 cat >conftest.$ac_ext <<_ACEOF
13523/* confdefs.h. */
13524_ACEOF
13525cat confdefs.h >>conftest.$ac_ext
13526cat >>conftest.$ac_ext <<_ACEOF
13527/* end confdefs.h. */
13528#define __CF_USE_FRAMEWORK_INCLUDES__
13529#include <CoreFoundation/CFBase.h>
13530
13531int
13532main ()
13533{
13534
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext
13540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
6ebeb4c7 13548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 echo "$as_me:$LINENO: result: yes" >&5
13561echo "${ECHO_T}yes" >&6
13562 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13563else
13564 echo "$as_me: failed program was:" >&5
13565sed 's/^/| /' conftest.$ac_ext >&5
13566
13567{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13568See \`config.log' for more details." >&5
13569echo "$as_me: error: no. CoreFoundation not available.
13570See \`config.log' for more details." >&2;}
13571 { (exit 1); exit 1; }; }
13572
13573fi
13574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13575
13576
13577fi
13578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13579 ;;
13580esac
13581
a848cd7e
SC
13582case "${host}" in
13583 *-pc-os2_emx | *-pc-os2-emx )
13584 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13585 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13586echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13587if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589else
13590 ac_check_lib_save_LIBS=$LIBS
13591LIBS="-lcExt $LIBS"
13592cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h. */
13598
13599/* Override any gcc2 internal prototype to avoid an error. */
13600#ifdef __cplusplus
13601extern "C"
13602#endif
13603/* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13605char drand48 ();
13606int
13607main ()
13608{
13609drand48 ();
13610 ;
13611 return 0;
13612}
13613_ACEOF
13614rm -f conftest.$ac_objext conftest$ac_exeext
13615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13616 (eval $ac_link) 2>conftest.er1
a848cd7e 13617 ac_status=$?
ac1cb8d3
VS
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
a848cd7e
SC
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
6ebeb4c7 13623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 ac_cv_lib_cExt_drand48=yes
13636else
13637 echo "$as_me: failed program was:" >&5
13638sed 's/^/| /' conftest.$ac_ext >&5
13639
13640ac_cv_lib_cExt_drand48=no
13641fi
ac1cb8d3
VS
13642rm -f conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13644LIBS=$ac_check_lib_save_LIBS
13645fi
13646echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13647echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13648if test $ac_cv_lib_cExt_drand48 = yes; then
13649 LIBS="$LIBS -lcExt"
13650fi
13651
13652 else
13653 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13654 fi
69120ee4
VZ
13655 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13656echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13657if test "${wx_cv_gccversion+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659else
13660
391a765e
VS
13661 if test "$cross_compiling" = yes; then
13662 wx_cv_gccversion="EMX2"
13663
13664else
13665 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h. */
13671
391a765e 13672 #include <stdio.h>
a848cd7e 13673
391a765e
VS
13674 int main()
13675 {
13676 FILE *f=fopen("conftestval", "w");
13677 if (!f) exit(1);
13678 fprintf(f,
a848cd7e 13679 #if (__GNUC__ < 3)
391a765e
VS
13680 "EMX2"
13681 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13682 "EMX3"
13683 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13684 "Innotek5"
13685 #else
13686 "Innotek6"
a848cd7e 13687 #endif
391a765e
VS
13688 );
13689 exit(0);
13690 }
a848cd7e 13691
a848cd7e 13692_ACEOF
391a765e
VS
13693rm -f conftest$ac_exeext
13694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>&5
ac1cb8d3
VS
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
391a765e 13704 wx_cv_gccversion=`cat conftestval`
a848cd7e 13705else
391a765e
VS
13706 echo "$as_me: program exited with status $ac_status" >&5
13707echo "$as_me: failed program was:" >&5
a848cd7e
SC
13708sed 's/^/| /' conftest.$ac_ext >&5
13709
391a765e
VS
13710( exit $ac_status )
13711wx_cv_gccversion="EMX2"
a848cd7e 13712fi
391a765e 13713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13714fi
a848cd7e
SC
13715
13716fi
13717echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13718echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13719 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13720 LIBS="$LIBS -lstdcpp"
13721 LDFLAGS="$LDFLAGS -Zsysv-signals"
13722 else
391a765e 13723 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 13724 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
13725 LDFLAGS="$LDFLAGS -Zsysv-signals"
13726 else
13727 LIBS="$LIBS -lstdc++"
13728 fi
13729 fi
94acd38e
DE
13730 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13731 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13732echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13733 wxUSE_OMF=yes
2da0c077 13734 enable_omf=yes
a848cd7e
SC
13735 fi
13736 ;;
13737 *)
13738
13739
13740
13741 ac_ext=cc
13742ac_cpp='$CXXCPP $CPPFLAGS'
13743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13746
13747
95986553 13748 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13749echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13750if test "${ac_cv_string_strcasecmp+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
13753
13754 cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
13760
13761 #include <string.h>
13762
13763int
13764main ()
13765{
13766
13767 strcasecmp("foo", "bar");
13768
13769 ;
13770 return 0;
13771}
13772_ACEOF
13773rm -f conftest.$ac_objext conftest$ac_exeext
13774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13775 (eval $ac_link) 2>conftest.er1
a848cd7e 13776 ac_status=$?
ac1cb8d3
VS
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
a848cd7e
SC
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
6ebeb4c7 13782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_cv_string_strcasecmp=yes
13795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799ac_cv_string_strcasecmp=no
13800
13801fi
ac1cb8d3
VS
13802rm -f conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13804
13805fi
13806echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13807echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13808
13809 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13810 cat >>confdefs.h <<\_ACEOF
13811#define HAVE_STRCASECMP_IN_STRING_H 1
13812_ACEOF
13813
13814 else
13815 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13816echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13817if test "${ac_cv_strings_strcasecmp+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819else
13820
13821 cat >conftest.$ac_ext <<_ACEOF
13822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h. */
13827
13828 #include <strings.h>
13829
13830int
13831main ()
13832{
13833
13834 strcasecmp("foo", "bar");
13835
13836 ;
13837 return 0;
13838}
13839_ACEOF
13840rm -f conftest.$ac_objext conftest$ac_exeext
13841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13842 (eval $ac_link) 2>conftest.er1
a848cd7e 13843 ac_status=$?
ac1cb8d3
VS
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
a848cd7e
SC
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
6ebeb4c7 13849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_strings_strcasecmp=yes
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866ac_cv_strings_strcasecmp=no
13867
13868fi
ac1cb8d3
VS
13869rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13871
13872fi
13873echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13874echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13875
0c3c69fc 13876 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13877 cat >>confdefs.h <<\_ACEOF
13878#define HAVE_STRCASECMP_IN_STRINGS_H 1
13879_ACEOF
13880
13881 else
13882 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13883echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13884 { (exit 1); exit 1; }; }
13885 fi
13886 fi
13887
13888 ac_ext=c
13889ac_cpp='$CPP $CPPFLAGS'
13890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13892ac_compiler_gnu=$ac_cv_c_compiler_gnu
13893
13894 ;;
13895esac
13896
13897
13898echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13899echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13900if test "${ac_cv_header_stdc+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h. */
13909#include <stdlib.h>
13910#include <stdarg.h>
13911#include <string.h>
13912#include <float.h>
13913
13914int
13915main ()
13916{
13917
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext
13923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13924 (eval $ac_compile) 2>conftest.er1
a848cd7e 13925 ac_status=$?
ac1cb8d3
VS
13926 grep -v '^ *+' conftest.er1 >conftest.err
13927 rm -f conftest.er1
13928 cat conftest.err >&5
a848cd7e
SC
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } &&
6ebeb4c7 13931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_header_stdc=yes
13944else
13945 echo "$as_me: failed program was:" >&5
13946sed 's/^/| /' conftest.$ac_ext >&5
13947
13948ac_cv_header_stdc=no
13949fi
ac1cb8d3 13950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13951
13952if test $ac_cv_header_stdc = yes; then
13953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13954 cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960#include <string.h>
13961
13962_ACEOF
13963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13964 $EGREP "memchr" >/dev/null 2>&1; then
13965 :
13966else
13967 ac_cv_header_stdc=no
13968fi
13969rm -f conftest*
13970
13971fi
13972
13973if test $ac_cv_header_stdc = yes; then
13974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13975 cat >conftest.$ac_ext <<_ACEOF
13976/* confdefs.h. */
13977_ACEOF
13978cat confdefs.h >>conftest.$ac_ext
13979cat >>conftest.$ac_ext <<_ACEOF
13980/* end confdefs.h. */
13981#include <stdlib.h>
13982
13983_ACEOF
13984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13985 $EGREP "free" >/dev/null 2>&1; then
13986 :
13987else
13988 ac_cv_header_stdc=no
13989fi
13990rm -f conftest*
13991
13992fi
13993
13994if test $ac_cv_header_stdc = yes; then
13995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13996 if test "$cross_compiling" = yes; then
13997 :
13998else
13999 cat >conftest.$ac_ext <<_ACEOF
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h. */
14005#include <ctype.h>
14006#if ((' ' & 0x0FF) == 0x020)
14007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14009#else
14010# define ISLOWER(c) \
ac1cb8d3
VS
14011 (('a' <= (c) && (c) <= 'i') \
14012 || ('j' <= (c) && (c) <= 'r') \
14013 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14015#endif
14016
14017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14018int
14019main ()
14020{
14021 int i;
14022 for (i = 0; i < 256; i++)
14023 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14024 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14025 exit(2);
14026 exit (0);
14027}
14028_ACEOF
14029rm -f conftest$ac_exeext
14030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031 (eval $ac_link) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 :
14041else
14042 echo "$as_me: program exited with status $ac_status" >&5
14043echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
14045
14046( exit $ac_status )
14047ac_cv_header_stdc=no
14048fi
ac1cb8d3 14049rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14050fi
14051fi
14052fi
14053echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14054echo "${ECHO_T}$ac_cv_header_stdc" >&6
14055if test $ac_cv_header_stdc = yes; then
14056
14057cat >>confdefs.h <<\_ACEOF
14058#define STDC_HEADERS 1
14059_ACEOF
14060
14061fi
14062
14063# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14074 inttypes.h stdint.h unistd.h
a848cd7e
SC
14075do
14076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14077echo "$as_me:$LINENO: checking for $ac_header" >&5
14078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14079if eval "test \"\${$as_ac_Header+set}\" = set"; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082 cat >conftest.$ac_ext <<_ACEOF
14083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h. */
14088$ac_includes_default
14089
14090#include <$ac_header>
14091_ACEOF
14092rm -f conftest.$ac_objext
14093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14094 (eval $ac_compile) 2>conftest.er1
a848cd7e 14095 ac_status=$?
ac1cb8d3
VS
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
a848cd7e
SC
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
6ebeb4c7 14101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 eval "$as_ac_Header=yes"
14114else
14115 echo "$as_me: failed program was:" >&5
14116sed 's/^/| /' conftest.$ac_ext >&5
14117
14118eval "$as_ac_Header=no"
14119fi
ac1cb8d3 14120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14121fi
14122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14124if test `eval echo '${'$as_ac_Header'}'` = yes; then
14125 cat >>confdefs.h <<_ACEOF
14126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14127_ACEOF
14128
14129fi
14130
14131done
14132
14133
14134
14135for ac_header in stdlib.h
14136do
14137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14138if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo "$as_me:$LINENO: checking for $ac_header" >&5
14140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14141if eval "test \"\${$as_ac_Header+set}\" = set"; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143fi
14144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14146else
14147 # Is the header compilable?
14148echo "$as_me:$LINENO: checking $ac_header usability" >&5
14149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14150cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156$ac_includes_default
14157#include <$ac_header>
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14161 (eval $ac_compile) 2>conftest.er1
a848cd7e 14162 ac_status=$?
ac1cb8d3
VS
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
a848cd7e
SC
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
6ebeb4c7 14168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_header_compiler=yes
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185ac_header_compiler=no
14186fi
ac1cb8d3 14187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14189echo "${ECHO_T}$ac_header_compiler" >&6
14190
14191# Is the header present?
14192echo "$as_me:$LINENO: checking $ac_header presence" >&5
14193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14194cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
14200#include <$ac_header>
14201_ACEOF
14202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } >/dev/null; then
14210 if test -s conftest.err; then
14211 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14213 else
14214 ac_cpp_err=
14215 fi
14216else
14217 ac_cpp_err=yes
14218fi
14219if test -z "$ac_cpp_err"; then
14220 ac_header_preproc=yes
14221else
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 ac_header_preproc=no
14226fi
14227rm -f conftest.err conftest.$ac_ext
14228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229echo "${ECHO_T}$ac_header_preproc" >&6
14230
14231# So? What about this header?
ac1cb8d3
VS
14232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
a848cd7e
SC
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
a848cd7e 14239 ;;
ac1cb8d3 14240 no:yes:* )
a848cd7e
SC
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14253 (
14254 cat <<\_ASBOX
ac1cb8d3
VS
14255## ----------------------------------------- ##
14256## Report this to wx-dev@lists.wxwidgets.org ##
14257## ----------------------------------------- ##
a848cd7e
SC
14258_ASBOX
14259 ) |
14260 sed "s/^/$as_me: WARNING: /" >&2
14261 ;;
14262esac
14263echo "$as_me:$LINENO: checking for $ac_header" >&5
14264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14265if eval "test \"\${$as_ac_Header+set}\" = set"; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267else
ac1cb8d3 14268 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14269fi
14270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272
14273fi
14274if test `eval echo '${'$as_ac_Header'}'` = yes; then
14275 cat >>confdefs.h <<_ACEOF
14276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14277_ACEOF
14278
14279fi
14280
14281done
14282
14283
14284for ac_header in malloc.h
14285do
14286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14287if eval "test \"\${$as_ac_Header+set}\" = set"; then
14288 echo "$as_me:$LINENO: checking for $ac_header" >&5
14289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14290if eval "test \"\${$as_ac_Header+set}\" = set"; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292fi
14293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14295else
14296 # Is the header compilable?
14297echo "$as_me:$LINENO: checking $ac_header usability" >&5
14298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14299cat >conftest.$ac_ext <<_ACEOF
14300/* confdefs.h. */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h. */
14305$ac_includes_default
14306#include <$ac_header>
14307_ACEOF
14308rm -f conftest.$ac_objext
14309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14310 (eval $ac_compile) 2>conftest.er1
a848cd7e 14311 ac_status=$?
ac1cb8d3
VS
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
a848cd7e
SC
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
6ebeb4c7 14317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; } &&
14323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 ac_header_compiler=yes
14330else
14331 echo "$as_me: failed program was:" >&5
14332sed 's/^/| /' conftest.$ac_ext >&5
14333
14334ac_header_compiler=no
14335fi
ac1cb8d3 14336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14338echo "${ECHO_T}$ac_header_compiler" >&6
14339
14340# Is the header present?
14341echo "$as_me:$LINENO: checking $ac_header presence" >&5
14342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14343cat >conftest.$ac_ext <<_ACEOF
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349#include <$ac_header>
14350_ACEOF
14351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14353 ac_status=$?
14354 grep -v '^ *+' conftest.er1 >conftest.err
14355 rm -f conftest.er1
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } >/dev/null; then
14359 if test -s conftest.err; then
14360 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14362 else
14363 ac_cpp_err=
14364 fi
14365else
14366 ac_cpp_err=yes
14367fi
14368if test -z "$ac_cpp_err"; then
14369 ac_header_preproc=yes
14370else
14371 echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 ac_header_preproc=no
14375fi
14376rm -f conftest.err conftest.$ac_ext
14377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14378echo "${ECHO_T}$ac_header_preproc" >&6
14379
14380# So? What about this header?
ac1cb8d3
VS
14381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14382 yes:no: )
a848cd7e
SC
14383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14387 ac_header_preproc=yes
a848cd7e 14388 ;;
ac1cb8d3 14389 no:yes:* )
a848cd7e
SC
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14402 (
14403 cat <<\_ASBOX
ac1cb8d3
VS
14404## ----------------------------------------- ##
14405## Report this to wx-dev@lists.wxwidgets.org ##
14406## ----------------------------------------- ##
a848cd7e
SC
14407_ASBOX
14408 ) |
14409 sed "s/^/$as_me: WARNING: /" >&2
14410 ;;
14411esac
14412echo "$as_me:$LINENO: checking for $ac_header" >&5
14413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14414if eval "test \"\${$as_ac_Header+set}\" = set"; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416else
ac1cb8d3 14417 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14418fi
14419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14421
14422fi
14423if test `eval echo '${'$as_ac_Header'}'` = yes; then
14424 cat >>confdefs.h <<_ACEOF
14425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14426_ACEOF
14427
14428fi
14429
14430done
14431
14432
14433for ac_header in unistd.h
14434do
14435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14436if eval "test \"\${$as_ac_Header+set}\" = set"; then
14437 echo "$as_me:$LINENO: checking for $ac_header" >&5
14438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14439if eval "test \"\${$as_ac_Header+set}\" = set"; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441fi
14442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14444else
14445 # Is the header compilable?
14446echo "$as_me:$LINENO: checking $ac_header usability" >&5
14447echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14448cat >conftest.$ac_ext <<_ACEOF
14449/* confdefs.h. */
14450_ACEOF
14451cat confdefs.h >>conftest.$ac_ext
14452cat >>conftest.$ac_ext <<_ACEOF
14453/* end confdefs.h. */
14454$ac_includes_default
14455#include <$ac_header>
14456_ACEOF
14457rm -f conftest.$ac_objext
14458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14459 (eval $ac_compile) 2>conftest.er1
a848cd7e 14460 ac_status=$?
ac1cb8d3
VS
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
a848cd7e
SC
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
6ebeb4c7 14466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_header_compiler=yes
14479else
14480 echo "$as_me: failed program was:" >&5
14481sed 's/^/| /' conftest.$ac_ext >&5
14482
14483ac_header_compiler=no
14484fi
ac1cb8d3 14485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14486echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14487echo "${ECHO_T}$ac_header_compiler" >&6
14488
14489# Is the header present?
14490echo "$as_me:$LINENO: checking $ac_header presence" >&5
14491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14492cat >conftest.$ac_ext <<_ACEOF
14493/* confdefs.h. */
14494_ACEOF
14495cat confdefs.h >>conftest.$ac_ext
14496cat >>conftest.$ac_ext <<_ACEOF
14497/* end confdefs.h. */
14498#include <$ac_header>
14499_ACEOF
14500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } >/dev/null; then
14508 if test -s conftest.err; then
14509 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14511 else
14512 ac_cpp_err=
14513 fi
14514else
14515 ac_cpp_err=yes
14516fi
14517if test -z "$ac_cpp_err"; then
14518 ac_header_preproc=yes
14519else
14520 echo "$as_me: failed program was:" >&5
14521sed 's/^/| /' conftest.$ac_ext >&5
14522
14523 ac_header_preproc=no
14524fi
14525rm -f conftest.err conftest.$ac_ext
14526echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14527echo "${ECHO_T}$ac_header_preproc" >&6
14528
14529# So? What about this header?
ac1cb8d3
VS
14530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14531 yes:no: )
a848cd7e
SC
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14535echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14536 ac_header_preproc=yes
a848cd7e 14537 ;;
ac1cb8d3 14538 no:yes:* )
a848cd7e
SC
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14544echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14546echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14548echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14550echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14551 (
14552 cat <<\_ASBOX
ac1cb8d3
VS
14553## ----------------------------------------- ##
14554## Report this to wx-dev@lists.wxwidgets.org ##
14555## ----------------------------------------- ##
a848cd7e
SC
14556_ASBOX
14557 ) |
14558 sed "s/^/$as_me: WARNING: /" >&2
14559 ;;
14560esac
14561echo "$as_me:$LINENO: checking for $ac_header" >&5
14562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14563if eval "test \"\${$as_ac_Header+set}\" = set"; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565else
ac1cb8d3 14566 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14567fi
14568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14570
14571fi
14572if test `eval echo '${'$as_ac_Header'}'` = yes; then
14573 cat >>confdefs.h <<_ACEOF
14574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14575_ACEOF
14576
14577fi
14578
14579done
14580
14581
14582for ac_header in wchar.h
14583do
14584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14585if eval "test \"\${$as_ac_Header+set}\" = set"; then
14586 echo "$as_me:$LINENO: checking for $ac_header" >&5
14587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14588if eval "test \"\${$as_ac_Header+set}\" = set"; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590fi
14591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14593else
14594 # Is the header compilable?
14595echo "$as_me:$LINENO: checking $ac_header usability" >&5
14596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14597cat >conftest.$ac_ext <<_ACEOF
14598/* confdefs.h. */
14599_ACEOF
14600cat confdefs.h >>conftest.$ac_ext
14601cat >>conftest.$ac_ext <<_ACEOF
14602/* end confdefs.h. */
14603$ac_includes_default
14604#include <$ac_header>
14605_ACEOF
14606rm -f conftest.$ac_objext
14607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14608 (eval $ac_compile) 2>conftest.er1
a848cd7e 14609 ac_status=$?
ac1cb8d3
VS
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
a848cd7e
SC
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
6ebeb4c7 14615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_header_compiler=yes
14628else
14629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632ac_header_compiler=no
14633fi
ac1cb8d3 14634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14636echo "${ECHO_T}$ac_header_compiler" >&6
14637
14638# Is the header present?
14639echo "$as_me:$LINENO: checking $ac_header presence" >&5
14640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14641cat >conftest.$ac_ext <<_ACEOF
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
14647#include <$ac_header>
14648_ACEOF
14649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14651 ac_status=$?
14652 grep -v '^ *+' conftest.er1 >conftest.err
14653 rm -f conftest.er1
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } >/dev/null; then
14657 if test -s conftest.err; then
14658 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14660 else
14661 ac_cpp_err=
14662 fi
14663else
14664 ac_cpp_err=yes
14665fi
14666if test -z "$ac_cpp_err"; then
14667 ac_header_preproc=yes
14668else
14669 echo "$as_me: failed program was:" >&5
14670sed 's/^/| /' conftest.$ac_ext >&5
14671
14672 ac_header_preproc=no
14673fi
14674rm -f conftest.err conftest.$ac_ext
14675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14676echo "${ECHO_T}$ac_header_preproc" >&6
14677
14678# So? What about this header?
ac1cb8d3
VS
14679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14680 yes:no: )
a848cd7e
SC
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14685 ac_header_preproc=yes
a848cd7e 14686 ;;
ac1cb8d3 14687 no:yes:* )
a848cd7e
SC
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14700 (
14701 cat <<\_ASBOX
ac1cb8d3
VS
14702## ----------------------------------------- ##
14703## Report this to wx-dev@lists.wxwidgets.org ##
14704## ----------------------------------------- ##
a848cd7e
SC
14705_ASBOX
14706 ) |
14707 sed "s/^/$as_me: WARNING: /" >&2
14708 ;;
14709esac
14710echo "$as_me:$LINENO: checking for $ac_header" >&5
14711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14712if eval "test \"\${$as_ac_Header+set}\" = set"; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714else
ac1cb8d3 14715 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14716fi
14717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14719
14720fi
14721if test `eval echo '${'$as_ac_Header'}'` = yes; then
14722 cat >>confdefs.h <<_ACEOF
14723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14724_ACEOF
14725
14726fi
14727
14728done
14729
14730
14731if test "$ac_cv_header_wchar_h" != "yes"; then
14732
14733for ac_header in wcstr.h
14734do
14735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14736if eval "test \"\${$as_ac_Header+set}\" = set"; then
14737 echo "$as_me:$LINENO: checking for $ac_header" >&5
14738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14739if eval "test \"\${$as_ac_Header+set}\" = set"; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741fi
14742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14744else
14745 # Is the header compilable?
14746echo "$as_me:$LINENO: checking $ac_header usability" >&5
14747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14748cat >conftest.$ac_ext <<_ACEOF
14749/* confdefs.h. */
14750_ACEOF
14751cat confdefs.h >>conftest.$ac_ext
14752cat >>conftest.$ac_ext <<_ACEOF
14753/* end confdefs.h. */
14754$ac_includes_default
14755#include <$ac_header>
14756_ACEOF
14757rm -f conftest.$ac_objext
14758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14759 (eval $ac_compile) 2>conftest.er1
a848cd7e 14760 ac_status=$?
ac1cb8d3
VS
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
a848cd7e
SC
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
6ebeb4c7 14766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_header_compiler=yes
14779else
14780 echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783ac_header_compiler=no
14784fi
ac1cb8d3 14785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14787echo "${ECHO_T}$ac_header_compiler" >&6
14788
14789# Is the header present?
14790echo "$as_me:$LINENO: checking $ac_header presence" >&5
14791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14792cat >conftest.$ac_ext <<_ACEOF
14793/* confdefs.h. */
14794_ACEOF
14795cat confdefs.h >>conftest.$ac_ext
14796cat >>conftest.$ac_ext <<_ACEOF
14797/* end confdefs.h. */
14798#include <$ac_header>
14799_ACEOF
14800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } >/dev/null; then
14808 if test -s conftest.err; then
14809 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14811 else
14812 ac_cpp_err=
14813 fi
14814else
14815 ac_cpp_err=yes
14816fi
14817if test -z "$ac_cpp_err"; then
14818 ac_header_preproc=yes
14819else
14820 echo "$as_me: failed program was:" >&5
14821sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 ac_header_preproc=no
14824fi
14825rm -f conftest.err conftest.$ac_ext
14826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14827echo "${ECHO_T}$ac_header_preproc" >&6
14828
14829# So? What about this header?
ac1cb8d3
VS
14830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14831 yes:no: )
a848cd7e
SC
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14836 ac_header_preproc=yes
a848cd7e 14837 ;;
ac1cb8d3 14838 no:yes:* )
a848cd7e
SC
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14851 (
14852 cat <<\_ASBOX
ac1cb8d3
VS
14853## ----------------------------------------- ##
14854## Report this to wx-dev@lists.wxwidgets.org ##
14855## ----------------------------------------- ##
a848cd7e
SC
14856_ASBOX
14857 ) |
14858 sed "s/^/$as_me: WARNING: /" >&2
14859 ;;
14860esac
14861echo "$as_me:$LINENO: checking for $ac_header" >&5
14862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14863if eval "test \"\${$as_ac_Header+set}\" = set"; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865else
ac1cb8d3 14866 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14867fi
14868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14870
14871fi
14872if test `eval echo '${'$as_ac_Header'}'` = yes; then
14873 cat >>confdefs.h <<_ACEOF
14874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14875_ACEOF
14876
14877fi
14878
14879done
14880
14881fi
14882
14883
14884for ac_header in fnmatch.h
14885do
14886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14887if eval "test \"\${$as_ac_Header+set}\" = set"; then
14888 echo "$as_me:$LINENO: checking for $ac_header" >&5
14889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14890if eval "test \"\${$as_ac_Header+set}\" = set"; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14892fi
14893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14895else
14896 # Is the header compilable?
14897echo "$as_me:$LINENO: checking $ac_header usability" >&5
14898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14899cat >conftest.$ac_ext <<_ACEOF
14900/* confdefs.h. */
14901_ACEOF
14902cat confdefs.h >>conftest.$ac_ext
14903cat >>conftest.$ac_ext <<_ACEOF
14904/* end confdefs.h. */
14905$ac_includes_default
14906#include <$ac_header>
14907_ACEOF
14908rm -f conftest.$ac_objext
14909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14910 (eval $ac_compile) 2>conftest.er1
a848cd7e 14911 ac_status=$?
ac1cb8d3
VS
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
a848cd7e
SC
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
6ebeb4c7 14917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 ac_header_compiler=yes
14930else
14931 echo "$as_me: failed program was:" >&5
14932sed 's/^/| /' conftest.$ac_ext >&5
14933
14934ac_header_compiler=no
14935fi
ac1cb8d3 14936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14938echo "${ECHO_T}$ac_header_compiler" >&6
14939
14940# Is the header present?
14941echo "$as_me:$LINENO: checking $ac_header presence" >&5
14942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14943cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949#include <$ac_header>
14950_ACEOF
14951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } >/dev/null; then
14959 if test -s conftest.err; then
14960 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14962 else
14963 ac_cpp_err=
14964 fi
14965else
14966 ac_cpp_err=yes
14967fi
14968if test -z "$ac_cpp_err"; then
14969 ac_header_preproc=yes
14970else
14971 echo "$as_me: failed program was:" >&5
14972sed 's/^/| /' conftest.$ac_ext >&5
14973
14974 ac_header_preproc=no
14975fi
14976rm -f conftest.err conftest.$ac_ext
14977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978echo "${ECHO_T}$ac_header_preproc" >&6
14979
14980# So? What about this header?
ac1cb8d3
VS
14981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982 yes:no: )
a848cd7e
SC
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc=yes
a848cd7e 14988 ;;
ac1cb8d3 14989 no:yes:* )
a848cd7e
SC
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15002 (
15003 cat <<\_ASBOX
ac1cb8d3
VS
15004## ----------------------------------------- ##
15005## Report this to wx-dev@lists.wxwidgets.org ##
15006## ----------------------------------------- ##
a848cd7e
SC
15007_ASBOX
15008 ) |
15009 sed "s/^/$as_me: WARNING: /" >&2
15010 ;;
15011esac
15012echo "$as_me:$LINENO: checking for $ac_header" >&5
15013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15014if eval "test \"\${$as_ac_Header+set}\" = set"; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016else
ac1cb8d3 15017 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15018fi
15019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15021
15022fi
15023if test `eval echo '${'$as_ac_Header'}'` = yes; then
15024 cat >>confdefs.h <<_ACEOF
15025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15026_ACEOF
15027
15028fi
15029
15030done
15031
15032
a848cd7e
SC
15033
15034for ac_header in langinfo.h
15035do
15036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15037if eval "test \"\${$as_ac_Header+set}\" = set"; then
15038 echo "$as_me:$LINENO: checking for $ac_header" >&5
15039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15040if eval "test \"\${$as_ac_Header+set}\" = set"; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042fi
15043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15045else
15046 # Is the header compilable?
15047echo "$as_me:$LINENO: checking $ac_header usability" >&5
15048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15049cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h. */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
15054/* end confdefs.h. */
15055$ac_includes_default
15056#include <$ac_header>
15057_ACEOF
15058rm -f conftest.$ac_objext
15059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15060 (eval $ac_compile) 2>conftest.er1
a848cd7e 15061 ac_status=$?
ac1cb8d3
VS
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
a848cd7e
SC
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
6ebeb4c7 15067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; } &&
15073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15079 ac_header_compiler=yes
15080else
15081 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084ac_header_compiler=no
15085fi
ac1cb8d3 15086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15088echo "${ECHO_T}$ac_header_compiler" >&6
15089
15090# Is the header present?
15091echo "$as_me:$LINENO: checking $ac_header presence" >&5
15092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15093cat >conftest.$ac_ext <<_ACEOF
15094/* confdefs.h. */
15095_ACEOF
15096cat confdefs.h >>conftest.$ac_ext
15097cat >>conftest.$ac_ext <<_ACEOF
15098/* end confdefs.h. */
15099#include <$ac_header>
15100_ACEOF
15101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } >/dev/null; then
15109 if test -s conftest.err; then
15110 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15112 else
15113 ac_cpp_err=
15114 fi
15115else
15116 ac_cpp_err=yes
15117fi
15118if test -z "$ac_cpp_err"; then
15119 ac_header_preproc=yes
15120else
15121 echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_header_preproc=no
15125fi
15126rm -f conftest.err conftest.$ac_ext
15127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15128echo "${ECHO_T}$ac_header_preproc" >&6
15129
15130# So? What about this header?
ac1cb8d3
VS
15131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15132 yes:no: )
a848cd7e
SC
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15137 ac_header_preproc=yes
a848cd7e 15138 ;;
ac1cb8d3 15139 no:yes:* )
a848cd7e
SC
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15152 (
15153 cat <<\_ASBOX
ac1cb8d3
VS
15154## ----------------------------------------- ##
15155## Report this to wx-dev@lists.wxwidgets.org ##
15156## ----------------------------------------- ##
a848cd7e
SC
15157_ASBOX
15158 ) |
15159 sed "s/^/$as_me: WARNING: /" >&2
15160 ;;
15161esac
15162echo "$as_me:$LINENO: checking for $ac_header" >&5
15163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15164if eval "test \"\${$as_ac_Header+set}\" = set"; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166else
ac1cb8d3 15167 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15168fi
15169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15171
15172fi
15173if test `eval echo '${'$as_ac_Header'}'` = yes; then
15174 cat >>confdefs.h <<_ACEOF
15175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15176_ACEOF
15177
15178fi
15179
15180done
15181
15182
15183case "${host}" in
15184 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15185 if test $ac_cv_header_langinfo_h = "yes" \
15186 -a \( "$wx_cv_gccversion" = "EMX2" \
15187 -o "$wx_cv_gccversion" = "EMX3" \
15188 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15189 LIBS="$LIBS -lintl"
15190 fi
15191 ;;
15192esac
15193
15194if test "$wxUSE_GUI" = "yes"; then
15195 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15196
15197for ac_header in X11/Xlib.h
15198do
15199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15200if eval "test \"\${$as_ac_Header+set}\" = set"; then
15201 echo "$as_me:$LINENO: checking for $ac_header" >&5
15202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15203if eval "test \"\${$as_ac_Header+set}\" = set"; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15205fi
15206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15208else
15209 # Is the header compilable?
15210echo "$as_me:$LINENO: checking $ac_header usability" >&5
15211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15212cat >conftest.$ac_ext <<_ACEOF
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218$ac_includes_default
15219#include <$ac_header>
15220_ACEOF
15221rm -f conftest.$ac_objext
15222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15223 (eval $ac_compile) 2>conftest.er1
a848cd7e 15224 ac_status=$?
ac1cb8d3
VS
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
a848cd7e
SC
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
6ebeb4c7 15230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_header_compiler=yes
15243else
15244 echo "$as_me: failed program was:" >&5
15245sed 's/^/| /' conftest.$ac_ext >&5
15246
15247ac_header_compiler=no
15248fi
ac1cb8d3 15249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15250echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15251echo "${ECHO_T}$ac_header_compiler" >&6
15252
15253# Is the header present?
15254echo "$as_me:$LINENO: checking $ac_header presence" >&5
15255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15256cat >conftest.$ac_ext <<_ACEOF
15257/* confdefs.h. */
15258_ACEOF
15259cat confdefs.h >>conftest.$ac_ext
15260cat >>conftest.$ac_ext <<_ACEOF
15261/* end confdefs.h. */
15262#include <$ac_header>
15263_ACEOF
15264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } >/dev/null; then
15272 if test -s conftest.err; then
15273 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15275 else
15276 ac_cpp_err=
15277 fi
15278else
15279 ac_cpp_err=yes
15280fi
15281if test -z "$ac_cpp_err"; then
15282 ac_header_preproc=yes
15283else
15284 echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287 ac_header_preproc=no
15288fi
15289rm -f conftest.err conftest.$ac_ext
15290echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15291echo "${ECHO_T}$ac_header_preproc" >&6
15292
15293# So? What about this header?
ac1cb8d3
VS
15294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15295 yes:no: )
a848cd7e
SC
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15297echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15299echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15300 ac_header_preproc=yes
a848cd7e 15301 ;;
ac1cb8d3 15302 no:yes:* )
a848cd7e
SC
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15308echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15310echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15312echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15314echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15315 (
15316 cat <<\_ASBOX
ac1cb8d3
VS
15317## ----------------------------------------- ##
15318## Report this to wx-dev@lists.wxwidgets.org ##
15319## ----------------------------------------- ##
a848cd7e
SC
15320_ASBOX
15321 ) |
15322 sed "s/^/$as_me: WARNING: /" >&2
15323 ;;
15324esac
15325echo "$as_me:$LINENO: checking for $ac_header" >&5
15326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15327if eval "test \"\${$as_ac_Header+set}\" = set"; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15329else
ac1cb8d3 15330 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15331fi
15332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15334
15335fi
15336if test `eval echo '${'$as_ac_Header'}'` = yes; then
15337 cat >>confdefs.h <<_ACEOF
15338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15339_ACEOF
15340
15341fi
15342
15343done
15344
15345
15346for ac_header in X11/XKBlib.h
15347do
15348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15349echo "$as_me:$LINENO: checking for $ac_header" >&5
15350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15351if eval "test \"\${$as_ac_Header+set}\" = set"; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353else
15354 cat >conftest.$ac_ext <<_ACEOF
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360
15361 #if HAVE_X11_XLIB_H
15362 #include <X11/Xlib.h>
15363 #endif
15364
15365
15366#include <$ac_header>
15367_ACEOF
15368rm -f conftest.$ac_objext
15369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15370 (eval $ac_compile) 2>conftest.er1
a848cd7e 15371 ac_status=$?
ac1cb8d3
VS
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
a848cd7e
SC
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
6ebeb4c7 15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 eval "$as_ac_Header=yes"
15390else
15391 echo "$as_me: failed program was:" >&5
15392sed 's/^/| /' conftest.$ac_ext >&5
15393
15394eval "$as_ac_Header=no"
15395fi
ac1cb8d3 15396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15397fi
15398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15400if test `eval echo '${'$as_ac_Header'}'` = yes; then
15401 cat >>confdefs.h <<_ACEOF
15402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15403_ACEOF
15404
15405fi
15406
15407done
15408
15409 fi
15410fi
15411
15412
15413echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15414echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15415if test "${ac_cv_c_const+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15417else
15418 cat >conftest.$ac_ext <<_ACEOF
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
15423/* end confdefs.h. */
15424
15425int
15426main ()
15427{
15428/* FIXME: Include the comments suggested by Paul. */
15429#ifndef __cplusplus
15430 /* Ultrix mips cc rejects this. */
15431 typedef int charset[2];
15432 const charset x;
15433 /* SunOS 4.1.1 cc rejects this. */
15434 char const *const *ccp;
15435 char **p;
15436 /* NEC SVR4.0.2 mips cc rejects this. */
15437 struct point {int x, y;};
15438 static struct point const zero = {0,0};
15439 /* AIX XL C 1.02.0.0 rejects this.
15440 It does not let you subtract one const X* pointer from another in
15441 an arm of an if-expression whose if-part is not a constant
15442 expression */
15443 const char *g = "string";
15444 ccp = &g + (g ? g-g : 0);
15445 /* HPUX 7.0 cc rejects these. */
15446 ++ccp;
15447 p = (char**) ccp;
15448 ccp = (char const *const *) p;
15449 { /* SCO 3.2v4 cc rejects this. */
15450 char *t;
15451 char const *s = 0 ? (char *) 0 : (char const *) 0;
15452
15453 *t++ = 0;
15454 }
15455 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15456 int x[] = {25, 17};
15457 const int *foo = &x[0];
15458 ++foo;
15459 }
15460 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15461 typedef const int *iptr;
15462 iptr p = 0;
15463 ++p;
15464 }
15465 { /* AIX XL C 1.02.0.0 rejects this saying
15466 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15467 struct s { int j; const int *ap[3]; };
15468 struct s *b; b->j = 5;
15469 }
15470 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15471 const int foo = 10;
15472 }
15473#endif
15474
15475 ;
15476 return 0;
15477}
15478_ACEOF
15479rm -f conftest.$ac_objext
15480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15481 (eval $ac_compile) 2>conftest.er1
a848cd7e 15482 ac_status=$?
ac1cb8d3
VS
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
a848cd7e
SC
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
6ebeb4c7 15488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_cv_c_const=yes
15501else
15502 echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505ac_cv_c_const=no
15506fi
ac1cb8d3 15507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15508fi
15509echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15510echo "${ECHO_T}$ac_cv_c_const" >&6
15511if test $ac_cv_c_const = no; then
15512
15513cat >>confdefs.h <<\_ACEOF
15514#define const
15515_ACEOF
15516
15517fi
15518
15519echo "$as_me:$LINENO: checking for inline" >&5
15520echo $ECHO_N "checking for inline... $ECHO_C" >&6
15521if test "${ac_cv_c_inline+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523else
15524 ac_cv_c_inline=no
15525for ac_kw in inline __inline__ __inline; do
15526 cat >conftest.$ac_ext <<_ACEOF
15527/* confdefs.h. */
15528_ACEOF
15529cat confdefs.h >>conftest.$ac_ext
15530cat >>conftest.$ac_ext <<_ACEOF
15531/* end confdefs.h. */
15532#ifndef __cplusplus
15533typedef int foo_t;
15534static $ac_kw foo_t static_foo () {return 0; }
15535$ac_kw foo_t foo () {return 0; }
15536#endif
15537
15538_ACEOF
15539rm -f conftest.$ac_objext
15540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15541 (eval $ac_compile) 2>conftest.er1
a848cd7e 15542 ac_status=$?
ac1cb8d3
VS
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
a848cd7e
SC
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
6ebeb4c7 15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; } &&
15554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_cv_c_inline=$ac_kw; break
15561else
15562 echo "$as_me: failed program was:" >&5
15563sed 's/^/| /' conftest.$ac_ext >&5
15564
15565fi
ac1cb8d3 15566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15567done
15568
15569fi
15570echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15571echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15572
15573
a848cd7e
SC
15574case $ac_cv_c_inline in
15575 inline | yes) ;;
ac1cb8d3
VS
15576 *)
15577 case $ac_cv_c_inline in
15578 no) ac_val=;;
15579 *) ac_val=$ac_cv_c_inline;;
15580 esac
15581 cat >>confdefs.h <<_ACEOF
15582#ifndef __cplusplus
15583#define inline $ac_val
15584#endif
de59c161 15585_ACEOF
ac1cb8d3 15586 ;;
a848cd7e
SC
15587esac
15588
15589
15590echo "$as_me:$LINENO: checking for char" >&5
15591echo $ECHO_N "checking for char... $ECHO_C" >&6
15592if test "${ac_cv_type_char+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594else
15595 cat >conftest.$ac_ext <<_ACEOF
15596/* confdefs.h. */
15597_ACEOF
15598cat confdefs.h >>conftest.$ac_ext
15599cat >>conftest.$ac_ext <<_ACEOF
15600/* end confdefs.h. */
15601$ac_includes_default
15602int
15603main ()
15604{
15605if ((char *) 0)
15606 return 0;
15607if (sizeof (char))
15608 return 0;
15609 ;
15610 return 0;
15611}
15612_ACEOF
15613rm -f conftest.$ac_objext
15614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15615 (eval $ac_compile) 2>conftest.er1
a848cd7e 15616 ac_status=$?
ac1cb8d3
VS
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
a848cd7e
SC
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
6ebeb4c7 15622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_cv_type_char=yes
15635else
15636 echo "$as_me: failed program was:" >&5
15637sed 's/^/| /' conftest.$ac_ext >&5
15638
15639ac_cv_type_char=no
15640fi
ac1cb8d3 15641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15642fi
15643echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15644echo "${ECHO_T}$ac_cv_type_char" >&6
15645
15646echo "$as_me:$LINENO: checking size of char" >&5
15647echo $ECHO_N "checking size of char... $ECHO_C" >&6
15648if test "${ac_cv_sizeof_char+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650else
15651 if test "$ac_cv_type_char" = yes; then
15652 # The cast to unsigned long works around a bug in the HP C Compiler
15653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15655 # This bug is HP SR number 8606223364.
15656 if test "$cross_compiling" = yes; then
15657 # Depending upon the size, compute the lo and hi bounds.
15658cat >conftest.$ac_ext <<_ACEOF
15659/* confdefs.h. */
15660_ACEOF
15661cat confdefs.h >>conftest.$ac_ext
15662cat >>conftest.$ac_ext <<_ACEOF
15663/* end confdefs.h. */
15664$ac_includes_default
15665int
15666main ()
15667{
15668static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15669test_array [0] = 0
15670
15671 ;
15672 return 0;
15673}
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); } &&
6ebeb4c7 15684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696 ac_lo=0 ac_mid=0
15697 while :; do
15698 cat >conftest.$ac_ext <<_ACEOF
15699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
15704$ac_includes_default
15705int
15706main ()
15707{
15708static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15709test_array [0] = 0
15710
15711 ;
15712 return 0;
15713}
15714_ACEOF
15715rm -f conftest.$ac_objext
15716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15717 (eval $ac_compile) 2>conftest.er1
a848cd7e 15718 ac_status=$?
ac1cb8d3
VS
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
a848cd7e
SC
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
6ebeb4c7 15724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_hi=$ac_mid; break
15737else
15738 echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15742 if test $ac_lo -le $ac_mid; then
15743 ac_lo= ac_hi=
15744 break
15745 fi
15746 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15747fi
ac1cb8d3 15748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15749 done
15750else
15751 echo "$as_me: failed program was:" >&5
15752sed 's/^/| /' conftest.$ac_ext >&5
15753
15754cat >conftest.$ac_ext <<_ACEOF
15755/* confdefs.h. */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h. */
15760$ac_includes_default
15761int
15762main ()
15763{
15764static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15765test_array [0] = 0
15766
15767 ;
15768 return 0;
15769}
15770_ACEOF
15771rm -f conftest.$ac_objext
15772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15773 (eval $ac_compile) 2>conftest.er1
a848cd7e 15774 ac_status=$?
ac1cb8d3
VS
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
a848cd7e
SC
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
6ebeb4c7 15780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; } &&
15786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 ac_hi=-1 ac_mid=-1
15793 while :; do
15794 cat >conftest.$ac_ext <<_ACEOF
15795/* confdefs.h. */
15796_ACEOF
15797cat confdefs.h >>conftest.$ac_ext
15798cat >>conftest.$ac_ext <<_ACEOF
15799/* end confdefs.h. */
15800$ac_includes_default
15801int
15802main ()
15803{
15804static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15805test_array [0] = 0
15806
15807 ;
15808 return 0;
15809}
15810_ACEOF
15811rm -f conftest.$ac_objext
15812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15813 (eval $ac_compile) 2>conftest.er1
a848cd7e 15814 ac_status=$?
ac1cb8d3
VS
15815 grep -v '^ *+' conftest.er1 >conftest.err
15816 rm -f conftest.er1
15817 cat conftest.err >&5
a848cd7e
SC
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
6ebeb4c7 15820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; } &&
15826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15832 ac_lo=$ac_mid; break
15833else
15834 echo "$as_me: failed program was:" >&5
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
15837ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15838 if test $ac_mid -le $ac_hi; then
15839 ac_lo= ac_hi=
15840 break
15841 fi
15842 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15843fi
ac1cb8d3 15844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15845 done
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850ac_lo= ac_hi=
15851fi
ac1cb8d3 15852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15853fi
ac1cb8d3 15854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15855# Binary search between lo and hi bounds.
15856while test "x$ac_lo" != "x$ac_hi"; do
15857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15858 cat >conftest.$ac_ext <<_ACEOF
15859/* confdefs.h. */
15860_ACEOF
15861cat confdefs.h >>conftest.$ac_ext
15862cat >>conftest.$ac_ext <<_ACEOF
15863/* end confdefs.h. */
15864$ac_includes_default
15865int
15866main ()
15867{
15868static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15869test_array [0] = 0
15870
15871 ;
15872 return 0;
15873}
15874_ACEOF
15875rm -f conftest.$ac_objext
15876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15877 (eval $ac_compile) 2>conftest.er1
a848cd7e 15878 ac_status=$?
ac1cb8d3
VS
15879 grep -v '^ *+' conftest.er1 >conftest.err
15880 rm -f conftest.er1
15881 cat conftest.err >&5
a848cd7e
SC
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } &&
6ebeb4c7 15884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; } &&
15890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_hi=$ac_mid
15897else
15898 echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5
15900
15901ac_lo=`expr '(' $ac_mid ')' + 1`
15902fi
ac1cb8d3 15903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15904done
15905case $ac_lo in
15906?*) ac_cv_sizeof_char=$ac_lo;;
15907'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15908See \`config.log' for more details." >&5
15909echo "$as_me: error: cannot compute sizeof (char), 77
15910See \`config.log' for more details." >&2;}
15911 { (exit 1); exit 1; }; } ;;
15912esac
15913else
15914 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
15915 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15916echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15917 { (exit 1); exit 1; }; }
15918else
15919 cat >conftest.$ac_ext <<_ACEOF
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925$ac_includes_default
15926long longval () { return (long) (sizeof (char)); }
15927unsigned long ulongval () { return (long) (sizeof (char)); }
15928#include <stdio.h>
15929#include <stdlib.h>
15930int
15931main ()
15932{
15933
15934 FILE *f = fopen ("conftest.val", "w");
15935 if (! f)
15936 exit (1);
15937 if (((long) (sizeof (char))) < 0)
15938 {
15939 long i = longval ();
15940 if (i != ((long) (sizeof (char))))
15941 exit (1);
15942 fprintf (f, "%ld\n", i);
15943 }
15944 else
15945 {
15946 unsigned long i = ulongval ();
15947 if (i != ((long) (sizeof (char))))
15948 exit (1);
15949 fprintf (f, "%lu\n", i);
15950 }
15951 exit (ferror (f) || fclose (f) != 0);
15952
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest$ac_exeext
15958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15959 (eval $ac_link) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_cv_sizeof_char=`cat conftest.val`
15969else
15970 echo "$as_me: program exited with status $ac_status" >&5
15971echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974( exit $ac_status )
15975{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15976See \`config.log' for more details." >&5
15977echo "$as_me: error: cannot compute sizeof (char), 77
15978See \`config.log' for more details." >&2;}
15979 { (exit 1); exit 1; }; }
15980fi
ac1cb8d3 15981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15982fi
15983fi
15984rm -f conftest.val
15985else
15986 ac_cv_sizeof_char=0
15987fi
15988fi
15989echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15990echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15991cat >>confdefs.h <<_ACEOF
15992#define SIZEOF_CHAR $ac_cv_sizeof_char
15993_ACEOF
15994
15995
15996echo "$as_me:$LINENO: checking for short" >&5
15997echo $ECHO_N "checking for short... $ECHO_C" >&6
15998if test "${ac_cv_type_short+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000else
16001 cat >conftest.$ac_ext <<_ACEOF
16002/* confdefs.h. */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h. */
16007$ac_includes_default
16008int
16009main ()
16010{
16011if ((short *) 0)
16012 return 0;
16013if (sizeof (short))
16014 return 0;
16015 ;
16016 return 0;
16017}
16018_ACEOF
16019rm -f conftest.$ac_objext
16020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16021 (eval $ac_compile) 2>conftest.er1
a848cd7e 16022 ac_status=$?
ac1cb8d3
VS
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
a848cd7e
SC
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
6ebeb4c7 16028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_cv_type_short=yes
16041else
16042 echo "$as_me: failed program was:" >&5
16043sed 's/^/| /' conftest.$ac_ext >&5
16044
16045ac_cv_type_short=no
16046fi
ac1cb8d3 16047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16048fi
16049echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16050echo "${ECHO_T}$ac_cv_type_short" >&6
16051
16052echo "$as_me:$LINENO: checking size of short" >&5
16053echo $ECHO_N "checking size of short... $ECHO_C" >&6
16054if test "${ac_cv_sizeof_short+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056else
16057 if test "$ac_cv_type_short" = yes; then
16058 # The cast to unsigned long works around a bug in the HP C Compiler
16059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16061 # This bug is HP SR number 8606223364.
16062 if test "$cross_compiling" = yes; then
16063 # Depending upon the size, compute the lo and hi bounds.
16064cat >conftest.$ac_ext <<_ACEOF
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
16070$ac_includes_default
16071int
16072main ()
16073{
16074static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16075test_array [0] = 0
16076
16077 ;
16078 return 0;
16079}
16080_ACEOF
16081rm -f conftest.$ac_objext
16082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16083 (eval $ac_compile) 2>conftest.er1
a848cd7e 16084 ac_status=$?
ac1cb8d3
VS
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
a848cd7e
SC
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
6ebeb4c7 16090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; } &&
16096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; }; then
16102 ac_lo=0 ac_mid=0
16103 while :; do
16104 cat >conftest.$ac_ext <<_ACEOF
16105/* confdefs.h. */
16106_ACEOF
16107cat confdefs.h >>conftest.$ac_ext
16108cat >>conftest.$ac_ext <<_ACEOF
16109/* end confdefs.h. */
16110$ac_includes_default
16111int
16112main ()
16113{
16114static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16115test_array [0] = 0
16116
16117 ;
16118 return 0;
16119}
16120_ACEOF
16121rm -f conftest.$ac_objext
16122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16123 (eval $ac_compile) 2>conftest.er1
a848cd7e 16124 ac_status=$?
ac1cb8d3
VS
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
a848cd7e
SC
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
6ebeb4c7 16130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } &&
16136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 ac_hi=$ac_mid; break
16143else
16144 echo "$as_me: failed program was:" >&5
16145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16148 if test $ac_lo -le $ac_mid; then
16149 ac_lo= ac_hi=
16150 break
16151 fi
16152 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16153fi
ac1cb8d3 16154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16155 done
16156else
16157 echo "$as_me: failed program was:" >&5
16158sed 's/^/| /' conftest.$ac_ext >&5
16159
16160cat >conftest.$ac_ext <<_ACEOF
16161/* confdefs.h. */
16162_ACEOF
16163cat confdefs.h >>conftest.$ac_ext
16164cat >>conftest.$ac_ext <<_ACEOF
16165/* end confdefs.h. */
16166$ac_includes_default
16167int
16168main ()
16169{
16170static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16171test_array [0] = 0
16172
16173 ;
16174 return 0;
16175}
16176_ACEOF
16177rm -f conftest.$ac_objext
16178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16179 (eval $ac_compile) 2>conftest.er1
a848cd7e 16180 ac_status=$?
ac1cb8d3
VS
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
a848cd7e
SC
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
6ebeb4c7 16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; } &&
16192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_hi=-1 ac_mid=-1
16199 while :; do
16200 cat >conftest.$ac_ext <<_ACEOF
16201/* confdefs.h. */
16202_ACEOF
16203cat confdefs.h >>conftest.$ac_ext
16204cat >>conftest.$ac_ext <<_ACEOF
16205/* end confdefs.h. */
16206$ac_includes_default
16207int
16208main ()
16209{
16210static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16211test_array [0] = 0
16212
16213 ;
16214 return 0;
16215}
16216_ACEOF
16217rm -f conftest.$ac_objext
16218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16219 (eval $ac_compile) 2>conftest.er1
a848cd7e 16220 ac_status=$?
ac1cb8d3
VS
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
a848cd7e
SC
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
6ebeb4c7 16226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_lo=$ac_mid; break
16239else
16240 echo "$as_me: failed program was:" >&5
16241sed 's/^/| /' conftest.$ac_ext >&5
16242
16243ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16244 if test $ac_mid -le $ac_hi; then
16245 ac_lo= ac_hi=
16246 break
16247 fi
16248 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16249fi
ac1cb8d3 16250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16251 done
16252else
16253 echo "$as_me: failed program was:" >&5
16254sed 's/^/| /' conftest.$ac_ext >&5
16255
16256ac_lo= ac_hi=
16257fi
ac1cb8d3 16258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16259fi
ac1cb8d3 16260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16261# Binary search between lo and hi bounds.
16262while test "x$ac_lo" != "x$ac_hi"; do
16263 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16264 cat >conftest.$ac_ext <<_ACEOF
16265/* confdefs.h. */
16266_ACEOF
16267cat confdefs.h >>conftest.$ac_ext
16268cat >>conftest.$ac_ext <<_ACEOF
16269/* end confdefs.h. */
16270$ac_includes_default
16271int
16272main ()
16273{
16274static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16275test_array [0] = 0
16276
16277 ;
16278 return 0;
16279}
16280_ACEOF
16281rm -f conftest.$ac_objext
16282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16283 (eval $ac_compile) 2>conftest.er1
a848cd7e 16284 ac_status=$?
ac1cb8d3
VS
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
a848cd7e
SC
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } &&
6ebeb4c7 16290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } &&
16296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_hi=$ac_mid
16303else
16304 echo "$as_me: failed program was:" >&5
16305sed 's/^/| /' conftest.$ac_ext >&5
16306
16307ac_lo=`expr '(' $ac_mid ')' + 1`
16308fi
ac1cb8d3 16309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16310done
16311case $ac_lo in
16312?*) ac_cv_sizeof_short=$ac_lo;;
16313'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16314See \`config.log' for more details." >&5
16315echo "$as_me: error: cannot compute sizeof (short), 77
16316See \`config.log' for more details." >&2;}
16317 { (exit 1); exit 1; }; } ;;
16318esac
16319else
16320 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16321 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16322echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16323 { (exit 1); exit 1; }; }
16324else
16325 cat >conftest.$ac_ext <<_ACEOF
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331$ac_includes_default
16332long longval () { return (long) (sizeof (short)); }
16333unsigned long ulongval () { return (long) (sizeof (short)); }
16334#include <stdio.h>
16335#include <stdlib.h>
16336int
16337main ()
16338{
16339
16340 FILE *f = fopen ("conftest.val", "w");
16341 if (! f)
16342 exit (1);
16343 if (((long) (sizeof (short))) < 0)
16344 {
16345 long i = longval ();
16346 if (i != ((long) (sizeof (short))))
16347 exit (1);
16348 fprintf (f, "%ld\n", i);
16349 }
16350 else
16351 {
16352 unsigned long i = ulongval ();
16353 if (i != ((long) (sizeof (short))))
16354 exit (1);
16355 fprintf (f, "%lu\n", i);
16356 }
16357 exit (ferror (f) || fclose (f) != 0);
16358
16359 ;
16360 return 0;
16361}
16362_ACEOF
16363rm -f conftest$ac_exeext
16364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16365 (eval $ac_link) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16374 ac_cv_sizeof_short=`cat conftest.val`
16375else
16376 echo "$as_me: program exited with status $ac_status" >&5
16377echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
16380( exit $ac_status )
16381{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16382See \`config.log' for more details." >&5
16383echo "$as_me: error: cannot compute sizeof (short), 77
16384See \`config.log' for more details." >&2;}
16385 { (exit 1); exit 1; }; }
16386fi
ac1cb8d3 16387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16388fi
16389fi
16390rm -f conftest.val
16391else
16392 ac_cv_sizeof_short=0
16393fi
16394fi
16395echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16396echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16397cat >>confdefs.h <<_ACEOF
16398#define SIZEOF_SHORT $ac_cv_sizeof_short
16399_ACEOF
16400
16401
16402echo "$as_me:$LINENO: checking for void *" >&5
16403echo $ECHO_N "checking for void *... $ECHO_C" >&6
16404if test "${ac_cv_type_void_p+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16406else
16407 cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413$ac_includes_default
16414int
16415main ()
16416{
16417if ((void * *) 0)
16418 return 0;
16419if (sizeof (void *))
16420 return 0;
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16427 (eval $ac_compile) 2>conftest.er1
a848cd7e 16428 ac_status=$?
ac1cb8d3
VS
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
a848cd7e
SC
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
6ebeb4c7 16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_type_void_p=yes
16447else
16448 echo "$as_me: failed program was:" >&5
16449sed 's/^/| /' conftest.$ac_ext >&5
16450
16451ac_cv_type_void_p=no
16452fi
ac1cb8d3 16453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16454fi
16455echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16456echo "${ECHO_T}$ac_cv_type_void_p" >&6
16457
16458echo "$as_me:$LINENO: checking size of void *" >&5
16459echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16460if test "${ac_cv_sizeof_void_p+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462else
16463 if test "$ac_cv_type_void_p" = yes; then
16464 # The cast to unsigned long works around a bug in the HP C Compiler
16465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16467 # This bug is HP SR number 8606223364.
16468 if test "$cross_compiling" = yes; then
16469 # Depending upon the size, compute the lo and hi bounds.
16470cat >conftest.$ac_ext <<_ACEOF
16471/* confdefs.h. */
16472_ACEOF
16473cat confdefs.h >>conftest.$ac_ext
16474cat >>conftest.$ac_ext <<_ACEOF
16475/* end confdefs.h. */
16476$ac_includes_default
16477int
16478main ()
16479{
16480static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16481test_array [0] = 0
16482
16483 ;
16484 return 0;
16485}
16486_ACEOF
16487rm -f conftest.$ac_objext
16488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16489 (eval $ac_compile) 2>conftest.er1
a848cd7e 16490 ac_status=$?
ac1cb8d3
VS
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
a848cd7e
SC
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
6ebeb4c7 16496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_lo=0 ac_mid=0
16509 while :; do
16510 cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516$ac_includes_default
16517int
16518main ()
16519{
16520static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16521test_array [0] = 0
16522
16523 ;
16524 return 0;
16525}
16526_ACEOF
16527rm -f conftest.$ac_objext
16528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16529 (eval $ac_compile) 2>conftest.er1
a848cd7e 16530 ac_status=$?
ac1cb8d3
VS
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
a848cd7e
SC
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
6ebeb4c7 16536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_hi=$ac_mid; break
16549else
16550 echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
16553ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16554 if test $ac_lo -le $ac_mid; then
16555 ac_lo= ac_hi=
16556 break
16557 fi
16558 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16559fi
ac1cb8d3 16560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16561 done
16562else
16563 echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572$ac_includes_default
16573int
16574main ()
16575{
16576static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16577test_array [0] = 0
16578
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16585 (eval $ac_compile) 2>conftest.er1
a848cd7e 16586 ac_status=$?
ac1cb8d3
VS
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
a848cd7e
SC
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
6ebeb4c7 16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 ac_hi=-1 ac_mid=-1
16605 while :; do
16606 cat >conftest.$ac_ext <<_ACEOF
16607/* confdefs.h. */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h. */
16612$ac_includes_default
16613int
16614main ()
16615{
16616static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16617test_array [0] = 0
16618
16619 ;
16620 return 0;
16621}
16622_ACEOF
16623rm -f conftest.$ac_objext
16624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16625 (eval $ac_compile) 2>conftest.er1
a848cd7e 16626 ac_status=$?
ac1cb8d3
VS
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
a848cd7e
SC
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
6ebeb4c7 16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_lo=$ac_mid; break
16645else
16646 echo "$as_me: failed program was:" >&5
16647sed 's/^/| /' conftest.$ac_ext >&5
16648
16649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16650 if test $ac_mid -le $ac_hi; then
16651 ac_lo= ac_hi=
16652 break
16653 fi
16654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16655fi
ac1cb8d3 16656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16657 done
16658else
16659 echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662ac_lo= ac_hi=
16663fi
ac1cb8d3 16664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16665fi
ac1cb8d3 16666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16667# Binary search between lo and hi bounds.
16668while test "x$ac_lo" != "x$ac_hi"; do
16669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16670 cat >conftest.$ac_ext <<_ACEOF
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676$ac_includes_default
16677int
16678main ()
16679{
16680static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16681test_array [0] = 0
16682
16683 ;
16684 return 0;
16685}
16686_ACEOF
16687rm -f conftest.$ac_objext
16688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16689 (eval $ac_compile) 2>conftest.er1
a848cd7e 16690 ac_status=$?
ac1cb8d3
VS
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
a848cd7e
SC
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
6ebeb4c7 16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 ac_hi=$ac_mid
16709else
16710 echo "$as_me: failed program was:" >&5
16711sed 's/^/| /' conftest.$ac_ext >&5
16712
16713ac_lo=`expr '(' $ac_mid ')' + 1`
16714fi
ac1cb8d3 16715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16716done
16717case $ac_lo in
16718?*) ac_cv_sizeof_void_p=$ac_lo;;
16719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16720See \`config.log' for more details." >&5
16721echo "$as_me: error: cannot compute sizeof (void *), 77
16722See \`config.log' for more details." >&2;}
16723 { (exit 1); exit 1; }; } ;;
16724esac
16725else
16726 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16727 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16728echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16729 { (exit 1); exit 1; }; }
16730else
16731 cat >conftest.$ac_ext <<_ACEOF
16732/* confdefs.h. */
16733_ACEOF
16734cat confdefs.h >>conftest.$ac_ext
16735cat >>conftest.$ac_ext <<_ACEOF
16736/* end confdefs.h. */
16737$ac_includes_default
16738long longval () { return (long) (sizeof (void *)); }
16739unsigned long ulongval () { return (long) (sizeof (void *)); }
16740#include <stdio.h>
16741#include <stdlib.h>
16742int
16743main ()
16744{
16745
16746 FILE *f = fopen ("conftest.val", "w");
16747 if (! f)
16748 exit (1);
16749 if (((long) (sizeof (void *))) < 0)
16750 {
16751 long i = longval ();
16752 if (i != ((long) (sizeof (void *))))
16753 exit (1);
16754 fprintf (f, "%ld\n", i);
16755 }
16756 else
16757 {
16758 unsigned long i = ulongval ();
16759 if (i != ((long) (sizeof (void *))))
16760 exit (1);
16761 fprintf (f, "%lu\n", i);
16762 }
16763 exit (ferror (f) || fclose (f) != 0);
16764
16765 ;
16766 return 0;
16767}
16768_ACEOF
16769rm -f conftest$ac_exeext
16770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16771 (eval $ac_link) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_sizeof_void_p=`cat conftest.val`
16781else
16782 echo "$as_me: program exited with status $ac_status" >&5
16783echo "$as_me: failed program was:" >&5
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
16786( exit $ac_status )
16787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16788See \`config.log' for more details." >&5
16789echo "$as_me: error: cannot compute sizeof (void *), 77
16790See \`config.log' for more details." >&2;}
16791 { (exit 1); exit 1; }; }
16792fi
ac1cb8d3 16793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16794fi
16795fi
16796rm -f conftest.val
16797else
16798 ac_cv_sizeof_void_p=0
16799fi
16800fi
16801echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16802echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16803cat >>confdefs.h <<_ACEOF
16804#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16805_ACEOF
16806
16807
16808echo "$as_me:$LINENO: checking for int" >&5
16809echo $ECHO_N "checking for int... $ECHO_C" >&6
16810if test "${ac_cv_type_int+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812else
16813 cat >conftest.$ac_ext <<_ACEOF
16814/* confdefs.h. */
16815_ACEOF
16816cat confdefs.h >>conftest.$ac_ext
16817cat >>conftest.$ac_ext <<_ACEOF
16818/* end confdefs.h. */
16819$ac_includes_default
16820int
16821main ()
16822{
16823if ((int *) 0)
16824 return 0;
16825if (sizeof (int))
16826 return 0;
16827 ;
16828 return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16833 (eval $ac_compile) 2>conftest.er1
a848cd7e 16834 ac_status=$?
ac1cb8d3
VS
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
a848cd7e
SC
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
6ebeb4c7 16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_cv_type_int=yes
16853else
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857ac_cv_type_int=no
16858fi
ac1cb8d3 16859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16860fi
16861echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16862echo "${ECHO_T}$ac_cv_type_int" >&6
16863
16864echo "$as_me:$LINENO: checking size of int" >&5
16865echo $ECHO_N "checking size of int... $ECHO_C" >&6
16866if test "${ac_cv_sizeof_int+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868else
16869 if test "$ac_cv_type_int" = yes; then
16870 # The cast to unsigned long works around a bug in the HP C Compiler
16871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16873 # This bug is HP SR number 8606223364.
16874 if test "$cross_compiling" = yes; then
16875 # Depending upon the size, compute the lo and hi bounds.
16876cat >conftest.$ac_ext <<_ACEOF
16877/* confdefs.h. */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h. */
16882$ac_includes_default
16883int
16884main ()
16885{
16886static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16887test_array [0] = 0
16888
16889 ;
16890 return 0;
16891}
16892_ACEOF
16893rm -f conftest.$ac_objext
16894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16895 (eval $ac_compile) 2>conftest.er1
a848cd7e 16896 ac_status=$?
ac1cb8d3
VS
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
a848cd7e
SC
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
6ebeb4c7 16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_lo=0 ac_mid=0
16915 while :; do
16916 cat >conftest.$ac_ext <<_ACEOF
16917/* confdefs.h. */
16918_ACEOF
16919cat confdefs.h >>conftest.$ac_ext
16920cat >>conftest.$ac_ext <<_ACEOF
16921/* end confdefs.h. */
16922$ac_includes_default
16923int
16924main ()
16925{
16926static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16927test_array [0] = 0
16928
16929 ;
16930 return 0;
16931}
16932_ACEOF
16933rm -f conftest.$ac_objext
16934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16935 (eval $ac_compile) 2>conftest.er1
a848cd7e 16936 ac_status=$?
ac1cb8d3
VS
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
a848cd7e
SC
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
6ebeb4c7 16942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_hi=$ac_mid; break
16955else
16956 echo "$as_me: failed program was:" >&5
16957sed 's/^/| /' conftest.$ac_ext >&5
16958
16959ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16960 if test $ac_lo -le $ac_mid; then
16961 ac_lo= ac_hi=
16962 break
16963 fi
16964 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16965fi
ac1cb8d3 16966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16967 done
16968else
16969 echo "$as_me: failed program was:" >&5
16970sed 's/^/| /' conftest.$ac_ext >&5
16971
16972cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978$ac_includes_default
16979int
16980main ()
16981{
16982static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16983test_array [0] = 0
16984
16985 ;
16986 return 0;
16987}
16988_ACEOF
16989rm -f conftest.$ac_objext
16990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16991 (eval $ac_compile) 2>conftest.er1
a848cd7e 16992 ac_status=$?
ac1cb8d3
VS
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
a848cd7e
SC
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
6ebeb4c7 16998 { ac_try='test -z "$ac_c_werror_flag" || 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=-1 ac_mid=-1
17011 while :; do
17012 cat >conftest.$ac_ext <<_ACEOF
17013/* confdefs.h. */
17014_ACEOF
17015cat confdefs.h >>conftest.$ac_ext
17016cat >>conftest.$ac_ext <<_ACEOF
17017/* end confdefs.h. */
17018$ac_includes_default
17019int
17020main ()
17021{
17022static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17023test_array [0] = 0
17024
17025 ;
17026 return 0;
17027}
17028_ACEOF
17029rm -f conftest.$ac_objext
17030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17031 (eval $ac_compile) 2>conftest.er1
a848cd7e 17032 ac_status=$?
ac1cb8d3
VS
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
a848cd7e
SC
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
6ebeb4c7 17038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_lo=$ac_mid; break
17051else
17052 echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17056 if test $ac_mid -le $ac_hi; then
17057 ac_lo= ac_hi=
17058 break
17059 fi
17060 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17061fi
ac1cb8d3 17062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17063 done
17064else
17065 echo "$as_me: failed program was:" >&5
17066sed 's/^/| /' conftest.$ac_ext >&5
17067
17068ac_lo= ac_hi=
17069fi
ac1cb8d3 17070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17071fi
ac1cb8d3 17072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17073# Binary search between lo and hi bounds.
17074while test "x$ac_lo" != "x$ac_hi"; do
17075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17076 cat >conftest.$ac_ext <<_ACEOF
17077/* confdefs.h. */
17078_ACEOF
17079cat confdefs.h >>conftest.$ac_ext
17080cat >>conftest.$ac_ext <<_ACEOF
17081/* end confdefs.h. */
17082$ac_includes_default
17083int
17084main ()
17085{
17086static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17087test_array [0] = 0
17088
17089 ;
17090 return 0;
17091}
17092_ACEOF
17093rm -f conftest.$ac_objext
17094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17095 (eval $ac_compile) 2>conftest.er1
a848cd7e 17096 ac_status=$?
ac1cb8d3
VS
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
a848cd7e
SC
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
6ebeb4c7 17102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_hi=$ac_mid
17115else
17116 echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119ac_lo=`expr '(' $ac_mid ')' + 1`
17120fi
ac1cb8d3 17121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17122done
17123case $ac_lo in
17124?*) ac_cv_sizeof_int=$ac_lo;;
17125'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17126See \`config.log' for more details." >&5
17127echo "$as_me: error: cannot compute sizeof (int), 77
17128See \`config.log' for more details." >&2;}
17129 { (exit 1); exit 1; }; } ;;
17130esac
17131else
17132 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17133 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17134echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17135 { (exit 1); exit 1; }; }
17136else
17137 cat >conftest.$ac_ext <<_ACEOF
17138/* confdefs.h. */
17139_ACEOF
17140cat confdefs.h >>conftest.$ac_ext
17141cat >>conftest.$ac_ext <<_ACEOF
17142/* end confdefs.h. */
17143$ac_includes_default
17144long longval () { return (long) (sizeof (int)); }
17145unsigned long ulongval () { return (long) (sizeof (int)); }
17146#include <stdio.h>
17147#include <stdlib.h>
17148int
17149main ()
17150{
17151
17152 FILE *f = fopen ("conftest.val", "w");
17153 if (! f)
17154 exit (1);
17155 if (((long) (sizeof (int))) < 0)
17156 {
17157 long i = longval ();
17158 if (i != ((long) (sizeof (int))))
17159 exit (1);
17160 fprintf (f, "%ld\n", i);
17161 }
17162 else
17163 {
17164 unsigned long i = ulongval ();
17165 if (i != ((long) (sizeof (int))))
17166 exit (1);
17167 fprintf (f, "%lu\n", i);
17168 }
17169 exit (ferror (f) || fclose (f) != 0);
17170
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest$ac_exeext
17176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_cv_sizeof_int=`cat conftest.val`
17187else
17188 echo "$as_me: program exited with status $ac_status" >&5
17189echo "$as_me: failed program was:" >&5
17190sed 's/^/| /' conftest.$ac_ext >&5
17191
17192( exit $ac_status )
17193{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17194See \`config.log' for more details." >&5
17195echo "$as_me: error: cannot compute sizeof (int), 77
17196See \`config.log' for more details." >&2;}
17197 { (exit 1); exit 1; }; }
17198fi
ac1cb8d3 17199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17200fi
17201fi
17202rm -f conftest.val
17203else
17204 ac_cv_sizeof_int=0
17205fi
17206fi
17207echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17208echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17209cat >>confdefs.h <<_ACEOF
17210#define SIZEOF_INT $ac_cv_sizeof_int
17211_ACEOF
17212
17213
17214echo "$as_me:$LINENO: checking for long" >&5
17215echo $ECHO_N "checking for long... $ECHO_C" >&6
17216if test "${ac_cv_type_long+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17218else
17219 cat >conftest.$ac_ext <<_ACEOF
17220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
17225$ac_includes_default
17226int
17227main ()
17228{
17229if ((long *) 0)
17230 return 0;
17231if (sizeof (long))
17232 return 0;
17233 ;
17234 return 0;
17235}
17236_ACEOF
17237rm -f conftest.$ac_objext
17238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17239 (eval $ac_compile) 2>conftest.er1
a848cd7e 17240 ac_status=$?
ac1cb8d3
VS
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
a848cd7e
SC
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
6ebeb4c7 17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_type_long=yes
17259else
17260 echo "$as_me: failed program was:" >&5
17261sed 's/^/| /' conftest.$ac_ext >&5
17262
17263ac_cv_type_long=no
17264fi
ac1cb8d3 17265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17266fi
17267echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17268echo "${ECHO_T}$ac_cv_type_long" >&6
17269
17270echo "$as_me:$LINENO: checking size of long" >&5
17271echo $ECHO_N "checking size of long... $ECHO_C" >&6
17272if test "${ac_cv_sizeof_long+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274else
17275 if test "$ac_cv_type_long" = yes; then
17276 # The cast to unsigned long works around a bug in the HP C Compiler
17277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17279 # This bug is HP SR number 8606223364.
17280 if test "$cross_compiling" = yes; then
17281 # Depending upon the size, compute the lo and hi bounds.
17282cat >conftest.$ac_ext <<_ACEOF
17283/* confdefs.h. */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h. */
17288$ac_includes_default
17289int
17290main ()
17291{
17292static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17293test_array [0] = 0
17294
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext
17300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17301 (eval $ac_compile) 2>conftest.er1
a848cd7e 17302 ac_status=$?
ac1cb8d3
VS
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
a848cd7e
SC
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
6ebeb4c7 17308 { ac_try='test -z "$ac_c_werror_flag" || 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_lo=0 ac_mid=0
17321 while :; do
17322 cat >conftest.$ac_ext <<_ACEOF
17323/* confdefs.h. */
17324_ACEOF
17325cat confdefs.h >>conftest.$ac_ext
17326cat >>conftest.$ac_ext <<_ACEOF
17327/* end confdefs.h. */
17328$ac_includes_default
17329int
17330main ()
17331{
17332static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17333test_array [0] = 0
17334
17335 ;
17336 return 0;
17337}
17338_ACEOF
17339rm -f conftest.$ac_objext
17340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17341 (eval $ac_compile) 2>conftest.er1
a848cd7e 17342 ac_status=$?
ac1cb8d3
VS
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
a848cd7e
SC
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
6ebeb4c7 17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ac_hi=$ac_mid; break
17361else
17362 echo "$as_me: failed program was:" >&5
17363sed 's/^/| /' conftest.$ac_ext >&5
17364
17365ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17366 if test $ac_lo -le $ac_mid; then
17367 ac_lo= ac_hi=
17368 break
17369 fi
17370 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17371fi
ac1cb8d3 17372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17373 done
17374else
17375 echo "$as_me: failed program was:" >&5
17376sed 's/^/| /' conftest.$ac_ext >&5
17377
17378cat >conftest.$ac_ext <<_ACEOF
17379/* confdefs.h. */
17380_ACEOF
17381cat confdefs.h >>conftest.$ac_ext
17382cat >>conftest.$ac_ext <<_ACEOF
17383/* end confdefs.h. */
17384$ac_includes_default
17385int
17386main ()
17387{
17388static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17389test_array [0] = 0
17390
17391 ;
17392 return 0;
17393}
17394_ACEOF
17395rm -f conftest.$ac_objext
17396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17397 (eval $ac_compile) 2>conftest.er1
a848cd7e 17398 ac_status=$?
ac1cb8d3
VS
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
a848cd7e
SC
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
6ebeb4c7 17404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_hi=-1 ac_mid=-1
17417 while :; do
17418 cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
17424$ac_includes_default
17425int
17426main ()
17427{
17428static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17429test_array [0] = 0
17430
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext
17436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17437 (eval $ac_compile) 2>conftest.er1
a848cd7e 17438 ac_status=$?
ac1cb8d3
VS
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
a848cd7e
SC
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
6ebeb4c7 17444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; } &&
17450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 ac_lo=$ac_mid; break
17457else
17458 echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17462 if test $ac_mid -le $ac_hi; then
17463 ac_lo= ac_hi=
17464 break
17465 fi
17466 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17467fi
ac1cb8d3 17468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17469 done
17470else
17471 echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474ac_lo= ac_hi=
17475fi
ac1cb8d3 17476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17477fi
ac1cb8d3 17478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17479# Binary search between lo and hi bounds.
17480while test "x$ac_lo" != "x$ac_hi"; do
17481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17482 cat >conftest.$ac_ext <<_ACEOF
17483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
17488$ac_includes_default
17489int
17490main ()
17491{
17492static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17493test_array [0] = 0
17494
17495 ;
17496 return 0;
17497}
17498_ACEOF
17499rm -f conftest.$ac_objext
17500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17501 (eval $ac_compile) 2>conftest.er1
a848cd7e 17502 ac_status=$?
ac1cb8d3
VS
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
a848cd7e
SC
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
6ebeb4c7 17508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_hi=$ac_mid
17521else
17522 echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
17524
17525ac_lo=`expr '(' $ac_mid ')' + 1`
17526fi
ac1cb8d3 17527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17528done
17529case $ac_lo in
17530?*) ac_cv_sizeof_long=$ac_lo;;
17531'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17532See \`config.log' for more details." >&5
17533echo "$as_me: error: cannot compute sizeof (long), 77
17534See \`config.log' for more details." >&2;}
17535 { (exit 1); exit 1; }; } ;;
17536esac
17537else
17538 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17539 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17540echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17541 { (exit 1); exit 1; }; }
17542else
17543 cat >conftest.$ac_ext <<_ACEOF
17544/* confdefs.h. */
17545_ACEOF
17546cat confdefs.h >>conftest.$ac_ext
17547cat >>conftest.$ac_ext <<_ACEOF
17548/* end confdefs.h. */
17549$ac_includes_default
17550long longval () { return (long) (sizeof (long)); }
17551unsigned long ulongval () { return (long) (sizeof (long)); }
17552#include <stdio.h>
17553#include <stdlib.h>
17554int
17555main ()
17556{
17557
17558 FILE *f = fopen ("conftest.val", "w");
17559 if (! f)
17560 exit (1);
17561 if (((long) (sizeof (long))) < 0)
17562 {
17563 long i = longval ();
17564 if (i != ((long) (sizeof (long))))
17565 exit (1);
17566 fprintf (f, "%ld\n", i);
17567 }
17568 else
17569 {
17570 unsigned long i = ulongval ();
17571 if (i != ((long) (sizeof (long))))
17572 exit (1);
17573 fprintf (f, "%lu\n", i);
17574 }
17575 exit (ferror (f) || fclose (f) != 0);
17576
17577 ;
17578 return 0;
17579}
17580_ACEOF
17581rm -f conftest$ac_exeext
17582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17583 (eval $ac_link) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_sizeof_long=`cat conftest.val`
17593else
17594 echo "$as_me: program exited with status $ac_status" >&5
17595echo "$as_me: failed program was:" >&5
17596sed 's/^/| /' conftest.$ac_ext >&5
17597
17598( exit $ac_status )
17599{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17600See \`config.log' for more details." >&5
17601echo "$as_me: error: cannot compute sizeof (long), 77
17602See \`config.log' for more details." >&2;}
17603 { (exit 1); exit 1; }; }
17604fi
ac1cb8d3 17605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17606fi
17607fi
17608rm -f conftest.val
17609else
17610 ac_cv_sizeof_long=0
17611fi
17612fi
17613echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17614echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17615cat >>confdefs.h <<_ACEOF
17616#define SIZEOF_LONG $ac_cv_sizeof_long
17617_ACEOF
17618
17619
17620echo "$as_me:$LINENO: checking for size_t" >&5
17621echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17622if test "${ac_cv_type_size_t+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624else
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631$ac_includes_default
17632int
17633main ()
17634{
17635if ((size_t *) 0)
17636 return 0;
17637if (sizeof (size_t))
17638 return 0;
17639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17645 (eval $ac_compile) 2>conftest.er1
a848cd7e 17646 ac_status=$?
ac1cb8d3
VS
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
a848cd7e
SC
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
6ebeb4c7 17652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_cv_type_size_t=yes
17665else
17666 echo "$as_me: failed program was:" >&5
17667sed 's/^/| /' conftest.$ac_ext >&5
17668
17669ac_cv_type_size_t=no
17670fi
ac1cb8d3 17671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17672fi
17673echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17674echo "${ECHO_T}$ac_cv_type_size_t" >&6
17675
17676echo "$as_me:$LINENO: checking size of size_t" >&5
17677echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17678if test "${ac_cv_sizeof_size_t+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680else
17681 if test "$ac_cv_type_size_t" = yes; then
17682 # The cast to unsigned long works around a bug in the HP C Compiler
17683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17685 # This bug is HP SR number 8606223364.
17686 if test "$cross_compiling" = yes; then
17687 # Depending upon the size, compute the lo and hi bounds.
17688cat >conftest.$ac_ext <<_ACEOF
17689/* confdefs.h. */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h. */
17694$ac_includes_default
17695int
17696main ()
17697{
17698static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17699test_array [0] = 0
17700
17701 ;
17702 return 0;
17703}
17704_ACEOF
17705rm -f conftest.$ac_objext
17706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17707 (eval $ac_compile) 2>conftest.er1
a848cd7e 17708 ac_status=$?
ac1cb8d3
VS
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
a848cd7e
SC
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
6ebeb4c7 17714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_lo=0 ac_mid=0
17727 while :; do
17728 cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
17734$ac_includes_default
17735int
17736main ()
17737{
17738static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17739test_array [0] = 0
17740
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext
17746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17747 (eval $ac_compile) 2>conftest.er1
a848cd7e 17748 ac_status=$?
ac1cb8d3
VS
17749 grep -v '^ *+' conftest.er1 >conftest.err
17750 rm -f conftest.er1
17751 cat conftest.err >&5
a848cd7e
SC
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
6ebeb4c7 17754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_hi=$ac_mid; break
17767else
17768 echo "$as_me: failed program was:" >&5
17769sed 's/^/| /' conftest.$ac_ext >&5
17770
17771ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17772 if test $ac_lo -le $ac_mid; then
17773 ac_lo= ac_hi=
17774 break
17775 fi
17776 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17777fi
ac1cb8d3 17778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17779 done
17780else
17781 echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
17790$ac_includes_default
17791int
17792main ()
17793{
17794static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17795test_array [0] = 0
17796
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext
17802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17803 (eval $ac_compile) 2>conftest.er1
a848cd7e 17804 ac_status=$?
ac1cb8d3
VS
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
a848cd7e
SC
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
6ebeb4c7 17810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_hi=-1 ac_mid=-1
17823 while :; do
17824 cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
17830$ac_includes_default
17831int
17832main ()
17833{
17834static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17835test_array [0] = 0
17836
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17843 (eval $ac_compile) 2>conftest.er1
a848cd7e 17844 ac_status=$?
ac1cb8d3
VS
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
a848cd7e
SC
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
6ebeb4c7 17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 ac_lo=$ac_mid; break
17863else
17864 echo "$as_me: failed program was:" >&5
17865sed 's/^/| /' conftest.$ac_ext >&5
17866
17867ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17868 if test $ac_mid -le $ac_hi; then
17869 ac_lo= ac_hi=
17870 break
17871 fi
17872 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17873fi
ac1cb8d3 17874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17875 done
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880ac_lo= ac_hi=
17881fi
ac1cb8d3 17882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17883fi
ac1cb8d3 17884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17885# Binary search between lo and hi bounds.
17886while test "x$ac_lo" != "x$ac_hi"; do
17887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17888 cat >conftest.$ac_ext <<_ACEOF
17889/* confdefs.h. */
17890_ACEOF
17891cat confdefs.h >>conftest.$ac_ext
17892cat >>conftest.$ac_ext <<_ACEOF
17893/* end confdefs.h. */
17894$ac_includes_default
17895int
17896main ()
17897{
17898static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17899test_array [0] = 0
17900
17901 ;
17902 return 0;
17903}
17904_ACEOF
17905rm -f conftest.$ac_objext
17906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17907 (eval $ac_compile) 2>conftest.er1
a848cd7e 17908 ac_status=$?
ac1cb8d3
VS
17909 grep -v '^ *+' conftest.er1 >conftest.err
17910 rm -f conftest.er1
17911 cat conftest.err >&5
a848cd7e
SC
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
6ebeb4c7 17914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_hi=$ac_mid
17927else
17928 echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931ac_lo=`expr '(' $ac_mid ')' + 1`
17932fi
ac1cb8d3 17933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17934done
17935case $ac_lo in
17936?*) ac_cv_sizeof_size_t=$ac_lo;;
17937'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17938See \`config.log' for more details." >&5
17939echo "$as_me: error: cannot compute sizeof (size_t), 77
17940See \`config.log' for more details." >&2;}
17941 { (exit 1); exit 1; }; } ;;
17942esac
17943else
17944 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17945 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17946echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17947 { (exit 1); exit 1; }; }
17948else
17949 cat >conftest.$ac_ext <<_ACEOF
17950/* confdefs.h. */
17951_ACEOF
17952cat confdefs.h >>conftest.$ac_ext
17953cat >>conftest.$ac_ext <<_ACEOF
17954/* end confdefs.h. */
17955$ac_includes_default
17956long longval () { return (long) (sizeof (size_t)); }
17957unsigned long ulongval () { return (long) (sizeof (size_t)); }
17958#include <stdio.h>
17959#include <stdlib.h>
17960int
17961main ()
17962{
17963
17964 FILE *f = fopen ("conftest.val", "w");
17965 if (! f)
17966 exit (1);
17967 if (((long) (sizeof (size_t))) < 0)
17968 {
17969 long i = longval ();
17970 if (i != ((long) (sizeof (size_t))))
17971 exit (1);
17972 fprintf (f, "%ld\n", i);
17973 }
17974 else
17975 {
17976 unsigned long i = ulongval ();
17977 if (i != ((long) (sizeof (size_t))))
17978 exit (1);
17979 fprintf (f, "%lu\n", i);
17980 }
17981 exit (ferror (f) || fclose (f) != 0);
17982
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987rm -f conftest$ac_exeext
17988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17989 (eval $ac_link) 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 ac_cv_sizeof_size_t=`cat conftest.val`
17999else
18000 echo "$as_me: program exited with status $ac_status" >&5
18001echo "$as_me: failed program was:" >&5
18002sed 's/^/| /' conftest.$ac_ext >&5
18003
18004( exit $ac_status )
18005{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18006See \`config.log' for more details." >&5
18007echo "$as_me: error: cannot compute sizeof (size_t), 77
18008See \`config.log' for more details." >&2;}
18009 { (exit 1); exit 1; }; }
18010fi
ac1cb8d3 18011rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18012fi
18013fi
18014rm -f conftest.val
18015else
18016 ac_cv_sizeof_size_t=0
18017fi
18018fi
18019echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18020echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18021cat >>confdefs.h <<_ACEOF
18022#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18023_ACEOF
18024
18025
18026
18027case "${host}" in
18028 arm-*-linux* )
18029 echo "$as_me:$LINENO: checking for long long" >&5
18030echo $ECHO_N "checking for long long... $ECHO_C" >&6
18031if test "${ac_cv_type_long_long+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18033else
18034 cat >conftest.$ac_ext <<_ACEOF
18035/* confdefs.h. */
18036_ACEOF
18037cat confdefs.h >>conftest.$ac_ext
18038cat >>conftest.$ac_ext <<_ACEOF
18039/* end confdefs.h. */
18040$ac_includes_default
18041int
18042main ()
18043{
18044if ((long long *) 0)
18045 return 0;
18046if (sizeof (long long))
18047 return 0;
18048 ;
18049 return 0;
18050}
18051_ACEOF
18052rm -f conftest.$ac_objext
18053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18054 (eval $ac_compile) 2>conftest.er1
a848cd7e 18055 ac_status=$?
ac1cb8d3
VS
18056 grep -v '^ *+' conftest.er1 >conftest.err
18057 rm -f conftest.er1
18058 cat conftest.err >&5
a848cd7e
SC
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
6ebeb4c7 18061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; } &&
18067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 ac_cv_type_long_long=yes
18074else
18075 echo "$as_me: failed program was:" >&5
18076sed 's/^/| /' conftest.$ac_ext >&5
18077
18078ac_cv_type_long_long=no
18079fi
ac1cb8d3 18080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18081fi
18082echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18083echo "${ECHO_T}$ac_cv_type_long_long" >&6
18084
18085echo "$as_me:$LINENO: checking size of long long" >&5
18086echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18087if test "${ac_cv_sizeof_long_long+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18089else
18090 if test "$ac_cv_type_long_long" = yes; then
18091 # The cast to unsigned long works around a bug in the HP C Compiler
18092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18094 # This bug is HP SR number 8606223364.
18095 if test "$cross_compiling" = yes; then
18096 # Depending upon the size, compute the lo and hi bounds.
18097cat >conftest.$ac_ext <<_ACEOF
18098/* confdefs.h. */
18099_ACEOF
18100cat confdefs.h >>conftest.$ac_ext
18101cat >>conftest.$ac_ext <<_ACEOF
18102/* end confdefs.h. */
18103$ac_includes_default
18104int
18105main ()
18106{
18107static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18108test_array [0] = 0
18109
18110 ;
18111 return 0;
18112}
18113_ACEOF
18114rm -f conftest.$ac_objext
18115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18116 (eval $ac_compile) 2>conftest.er1
a848cd7e 18117 ac_status=$?
ac1cb8d3
VS
18118 grep -v '^ *+' conftest.er1 >conftest.err
18119 rm -f conftest.er1
18120 cat conftest.err >&5
a848cd7e
SC
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
6ebeb4c7 18123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_lo=0 ac_mid=0
18136 while :; do
18137 cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h. */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h. */
18143$ac_includes_default
18144int
18145main ()
18146{
18147static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18148test_array [0] = 0
18149
18150 ;
18151 return 0;
18152}
18153_ACEOF
18154rm -f conftest.$ac_objext
18155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18156 (eval $ac_compile) 2>conftest.er1
a848cd7e 18157 ac_status=$?
ac1cb8d3
VS
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
a848cd7e
SC
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
6ebeb4c7 18163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_hi=$ac_mid; break
18176else
18177 echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18181 if test $ac_lo -le $ac_mid; then
18182 ac_lo= ac_hi=
18183 break
18184 fi
18185 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18186fi
ac1cb8d3 18187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18188 done
18189else
18190 echo "$as_me: failed program was:" >&5
18191sed 's/^/| /' conftest.$ac_ext >&5
18192
18193cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
18199$ac_includes_default
18200int
18201main ()
18202{
18203static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18204test_array [0] = 0
18205
18206 ;
18207 return 0;
18208}
18209_ACEOF
18210rm -f conftest.$ac_objext
18211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18212 (eval $ac_compile) 2>conftest.er1
a848cd7e 18213 ac_status=$?
ac1cb8d3
VS
18214 grep -v '^ *+' conftest.er1 >conftest.err
18215 rm -f conftest.er1
18216 cat conftest.err >&5
a848cd7e
SC
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } &&
6ebeb4c7 18219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 ac_hi=-1 ac_mid=-1
18232 while :; do
18233 cat >conftest.$ac_ext <<_ACEOF
18234/* confdefs.h. */
18235_ACEOF
18236cat confdefs.h >>conftest.$ac_ext
18237cat >>conftest.$ac_ext <<_ACEOF
18238/* end confdefs.h. */
18239$ac_includes_default
18240int
18241main ()
18242{
18243static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18244test_array [0] = 0
18245
18246 ;
18247 return 0;
18248}
18249_ACEOF
18250rm -f conftest.$ac_objext
18251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18252 (eval $ac_compile) 2>conftest.er1
a848cd7e 18253 ac_status=$?
ac1cb8d3
VS
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
a848cd7e
SC
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } &&
6ebeb4c7 18259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; } &&
18265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 ac_lo=$ac_mid; break
18272else
18273 echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18277 if test $ac_mid -le $ac_hi; then
18278 ac_lo= ac_hi=
18279 break
18280 fi
18281 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18282fi
ac1cb8d3 18283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18284 done
18285else
18286 echo "$as_me: failed program was:" >&5
18287sed 's/^/| /' conftest.$ac_ext >&5
18288
18289ac_lo= ac_hi=
18290fi
ac1cb8d3 18291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18292fi
ac1cb8d3 18293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18294# Binary search between lo and hi bounds.
18295while test "x$ac_lo" != "x$ac_hi"; do
18296 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18297 cat >conftest.$ac_ext <<_ACEOF
18298/* confdefs.h. */
18299_ACEOF
18300cat confdefs.h >>conftest.$ac_ext
18301cat >>conftest.$ac_ext <<_ACEOF
18302/* end confdefs.h. */
18303$ac_includes_default
18304int
18305main ()
18306{
18307static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18308test_array [0] = 0
18309
18310 ;
18311 return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext
18315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18316 (eval $ac_compile) 2>conftest.er1
a848cd7e 18317 ac_status=$?
ac1cb8d3
VS
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
a848cd7e
SC
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
6ebeb4c7 18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_hi=$ac_mid
18336else
18337 echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340ac_lo=`expr '(' $ac_mid ')' + 1`
18341fi
ac1cb8d3 18342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18343done
18344case $ac_lo in
18345?*) ac_cv_sizeof_long_long=$ac_lo;;
18346'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18347See \`config.log' for more details." >&5
18348echo "$as_me: error: cannot compute sizeof (long long), 77
18349See \`config.log' for more details." >&2;}
18350 { (exit 1); exit 1; }; } ;;
18351esac
18352else
18353 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18354 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18355echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18356 { (exit 1); exit 1; }; }
18357else
18358 cat >conftest.$ac_ext <<_ACEOF
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
18363/* end confdefs.h. */
18364$ac_includes_default
18365long longval () { return (long) (sizeof (long long)); }
18366unsigned long ulongval () { return (long) (sizeof (long long)); }
18367#include <stdio.h>
18368#include <stdlib.h>
18369int
18370main ()
18371{
18372
18373 FILE *f = fopen ("conftest.val", "w");
18374 if (! f)
18375 exit (1);
18376 if (((long) (sizeof (long long))) < 0)
18377 {
18378 long i = longval ();
18379 if (i != ((long) (sizeof (long long))))
18380 exit (1);
18381 fprintf (f, "%ld\n", i);
18382 }
18383 else
18384 {
18385 unsigned long i = ulongval ();
18386 if (i != ((long) (sizeof (long long))))
18387 exit (1);
18388 fprintf (f, "%lu\n", i);
18389 }
18390 exit (ferror (f) || fclose (f) != 0);
18391
18392 ;
18393 return 0;
18394}
18395_ACEOF
18396rm -f conftest$ac_exeext
18397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18398 (eval $ac_link) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_sizeof_long_long=`cat conftest.val`
18408else
18409 echo "$as_me: program exited with status $ac_status" >&5
18410echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413( exit $ac_status )
18414{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18415See \`config.log' for more details." >&5
18416echo "$as_me: error: cannot compute sizeof (long long), 77
18417See \`config.log' for more details." >&2;}
18418 { (exit 1); exit 1; }; }
18419fi
ac1cb8d3 18420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18421fi
18422fi
18423rm -f conftest.val
18424else
18425 ac_cv_sizeof_long_long=0
18426fi
18427fi
18428echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18429echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18430cat >>confdefs.h <<_ACEOF
18431#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18432_ACEOF
18433
18434
18435 ;;
18436 *-hp-hpux* )
18437 echo "$as_me:$LINENO: checking for long long" >&5
18438echo $ECHO_N "checking for long long... $ECHO_C" >&6
18439if test "${ac_cv_type_long_long+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18441else
18442 cat >conftest.$ac_ext <<_ACEOF
18443/* confdefs.h. */
18444_ACEOF
18445cat confdefs.h >>conftest.$ac_ext
18446cat >>conftest.$ac_ext <<_ACEOF
18447/* end confdefs.h. */
18448$ac_includes_default
18449int
18450main ()
18451{
18452if ((long long *) 0)
18453 return 0;
18454if (sizeof (long long))
18455 return 0;
18456 ;
18457 return 0;
18458}
18459_ACEOF
18460rm -f conftest.$ac_objext
18461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18462 (eval $ac_compile) 2>conftest.er1
a848cd7e 18463 ac_status=$?
ac1cb8d3
VS
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
a848cd7e
SC
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
6ebeb4c7 18469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 ac_cv_type_long_long=yes
18482else
18483 echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486ac_cv_type_long_long=no
18487fi
ac1cb8d3 18488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18489fi
18490echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18491echo "${ECHO_T}$ac_cv_type_long_long" >&6
18492
18493echo "$as_me:$LINENO: checking size of long long" >&5
18494echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18495if test "${ac_cv_sizeof_long_long+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497else
18498 if test "$ac_cv_type_long_long" = yes; then
18499 # The cast to unsigned long works around a bug in the HP C Compiler
18500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18502 # This bug is HP SR number 8606223364.
18503 if test "$cross_compiling" = yes; then
18504 # Depending upon the size, compute the lo and hi bounds.
18505cat >conftest.$ac_ext <<_ACEOF
18506/* confdefs.h. */
18507_ACEOF
18508cat confdefs.h >>conftest.$ac_ext
18509cat >>conftest.$ac_ext <<_ACEOF
18510/* end confdefs.h. */
18511$ac_includes_default
18512int
18513main ()
18514{
18515static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18516test_array [0] = 0
18517
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522rm -f conftest.$ac_objext
18523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18524 (eval $ac_compile) 2>conftest.er1
a848cd7e 18525 ac_status=$?
ac1cb8d3
VS
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
a848cd7e
SC
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
6ebeb4c7 18531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_lo=0 ac_mid=0
18544 while :; do
18545 cat >conftest.$ac_ext <<_ACEOF
18546/* confdefs.h. */
18547_ACEOF
18548cat confdefs.h >>conftest.$ac_ext
18549cat >>conftest.$ac_ext <<_ACEOF
18550/* end confdefs.h. */
18551$ac_includes_default
18552int
18553main ()
18554{
18555static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18556test_array [0] = 0
18557
18558 ;
18559 return 0;
18560}
18561_ACEOF
18562rm -f conftest.$ac_objext
18563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18564 (eval $ac_compile) 2>conftest.er1
a848cd7e 18565 ac_status=$?
ac1cb8d3
VS
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
a848cd7e
SC
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
6ebeb4c7 18571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_hi=$ac_mid; break
18584else
18585 echo "$as_me: failed program was:" >&5
18586sed 's/^/| /' conftest.$ac_ext >&5
18587
18588ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18589 if test $ac_lo -le $ac_mid; then
18590 ac_lo= ac_hi=
18591 break
18592 fi
18593 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18594fi
ac1cb8d3 18595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18596 done
18597else
18598 echo "$as_me: failed program was:" >&5
18599sed 's/^/| /' conftest.$ac_ext >&5
18600
18601cat >conftest.$ac_ext <<_ACEOF
18602/* confdefs.h. */
18603_ACEOF
18604cat confdefs.h >>conftest.$ac_ext
18605cat >>conftest.$ac_ext <<_ACEOF
18606/* end confdefs.h. */
18607$ac_includes_default
18608int
18609main ()
18610{
18611static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18612test_array [0] = 0
18613
18614 ;
18615 return 0;
18616}
18617_ACEOF
18618rm -f conftest.$ac_objext
18619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18620 (eval $ac_compile) 2>conftest.er1
a848cd7e 18621 ac_status=$?
ac1cb8d3
VS
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
a848cd7e
SC
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
6ebeb4c7 18627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_hi=-1 ac_mid=-1
18640 while :; do
18641 cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647$ac_includes_default
18648int
18649main ()
18650{
18651static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18652test_array [0] = 0
18653
18654 ;
18655 return 0;
18656}
18657_ACEOF
18658rm -f conftest.$ac_objext
18659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18660 (eval $ac_compile) 2>conftest.er1
a848cd7e 18661 ac_status=$?
ac1cb8d3
VS
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
a848cd7e
SC
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
6ebeb4c7 18667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; } &&
18673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 ac_lo=$ac_mid; break
18680else
18681 echo "$as_me: failed program was:" >&5
18682sed 's/^/| /' conftest.$ac_ext >&5
18683
18684ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18685 if test $ac_mid -le $ac_hi; then
18686 ac_lo= ac_hi=
18687 break
18688 fi
18689 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18690fi
ac1cb8d3 18691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18692 done
18693else
18694 echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697ac_lo= ac_hi=
18698fi
ac1cb8d3 18699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18700fi
ac1cb8d3 18701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18702# Binary search between lo and hi bounds.
18703while test "x$ac_lo" != "x$ac_hi"; do
18704 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18705 cat >conftest.$ac_ext <<_ACEOF
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711$ac_includes_default
18712int
18713main ()
18714{
18715static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18716test_array [0] = 0
18717
18718 ;
18719 return 0;
18720}
18721_ACEOF
18722rm -f conftest.$ac_objext
18723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18724 (eval $ac_compile) 2>conftest.er1
a848cd7e 18725 ac_status=$?
ac1cb8d3
VS
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
a848cd7e
SC
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
6ebeb4c7 18731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18740 ac_status=$?
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; }; then
18743 ac_hi=$ac_mid
18744else
18745 echo "$as_me: failed program was:" >&5
18746sed 's/^/| /' conftest.$ac_ext >&5
18747
18748ac_lo=`expr '(' $ac_mid ')' + 1`
18749fi
ac1cb8d3 18750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18751done
18752case $ac_lo in
18753?*) ac_cv_sizeof_long_long=$ac_lo;;
18754'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18755See \`config.log' for more details." >&5
18756echo "$as_me: error: cannot compute sizeof (long long), 77
18757See \`config.log' for more details." >&2;}
18758 { (exit 1); exit 1; }; } ;;
18759esac
18760else
18761 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18762 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18763echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18764 { (exit 1); exit 1; }; }
18765else
18766 cat >conftest.$ac_ext <<_ACEOF
18767/* confdefs.h. */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h. */
18772$ac_includes_default
18773long longval () { return (long) (sizeof (long long)); }
18774unsigned long ulongval () { return (long) (sizeof (long long)); }
18775#include <stdio.h>
18776#include <stdlib.h>
18777int
18778main ()
18779{
18780
18781 FILE *f = fopen ("conftest.val", "w");
18782 if (! f)
18783 exit (1);
18784 if (((long) (sizeof (long long))) < 0)
18785 {
18786 long i = longval ();
18787 if (i != ((long) (sizeof (long long))))
18788 exit (1);
18789 fprintf (f, "%ld\n", i);
18790 }
18791 else
18792 {
18793 unsigned long i = ulongval ();
18794 if (i != ((long) (sizeof (long long))))
18795 exit (1);
18796 fprintf (f, "%lu\n", i);
18797 }
18798 exit (ferror (f) || fclose (f) != 0);
18799
18800 ;
18801 return 0;
18802}
18803_ACEOF
18804rm -f conftest$ac_exeext
18805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18806 (eval $ac_link) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 ac_cv_sizeof_long_long=`cat conftest.val`
18816else
18817 echo "$as_me: program exited with status $ac_status" >&5
18818echo "$as_me: failed program was:" >&5
18819sed 's/^/| /' conftest.$ac_ext >&5
18820
18821( exit $ac_status )
18822{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18823See \`config.log' for more details." >&5
18824echo "$as_me: error: cannot compute sizeof (long long), 77
18825See \`config.log' for more details." >&2;}
18826 { (exit 1); exit 1; }; }
18827fi
ac1cb8d3 18828rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18829fi
18830fi
18831rm -f conftest.val
18832else
18833 ac_cv_sizeof_long_long=0
18834fi
18835fi
18836echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18837echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18838cat >>confdefs.h <<_ACEOF
18839#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18840_ACEOF
18841
18842
18843 if test "$ac_cv_sizeof_long_long" != "0"; then
18844 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18845 fi
18846 ;;
18847 * )
18848 echo "$as_me:$LINENO: checking for long long" >&5
18849echo $ECHO_N "checking for long long... $ECHO_C" >&6
18850if test "${ac_cv_type_long_long+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852else
18853 cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
18859$ac_includes_default
18860int
18861main ()
18862{
18863if ((long long *) 0)
18864 return 0;
18865if (sizeof (long long))
18866 return 0;
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext
18872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18873 (eval $ac_compile) 2>conftest.er1
a848cd7e 18874 ac_status=$?
ac1cb8d3
VS
18875 grep -v '^ *+' conftest.er1 >conftest.err
18876 rm -f conftest.er1
18877 cat conftest.err >&5
a848cd7e
SC
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } &&
6ebeb4c7 18880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 ac_cv_type_long_long=yes
18893else
18894 echo "$as_me: failed program was:" >&5
18895sed 's/^/| /' conftest.$ac_ext >&5
18896
18897ac_cv_type_long_long=no
18898fi
ac1cb8d3 18899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18900fi
18901echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18902echo "${ECHO_T}$ac_cv_type_long_long" >&6
18903
18904echo "$as_me:$LINENO: checking size of long long" >&5
18905echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18906if test "${ac_cv_sizeof_long_long+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908else
18909 if test "$ac_cv_type_long_long" = yes; then
18910 # The cast to unsigned long works around a bug in the HP C Compiler
18911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18913 # This bug is HP SR number 8606223364.
18914 if test "$cross_compiling" = yes; then
18915 # Depending upon the size, compute the lo and hi bounds.
18916cat >conftest.$ac_ext <<_ACEOF
18917/* confdefs.h. */
18918_ACEOF
18919cat confdefs.h >>conftest.$ac_ext
18920cat >>conftest.$ac_ext <<_ACEOF
18921/* end confdefs.h. */
18922$ac_includes_default
18923int
18924main ()
18925{
18926static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18927test_array [0] = 0
18928
18929 ;
18930 return 0;
18931}
18932_ACEOF
18933rm -f conftest.$ac_objext
18934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18935 (eval $ac_compile) 2>conftest.er1
a848cd7e 18936 ac_status=$?
ac1cb8d3
VS
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
a848cd7e
SC
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
6ebeb4c7 18942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 ac_lo=0 ac_mid=0
18955 while :; do
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962$ac_includes_default
18963int
18964main ()
18965{
18966static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18967test_array [0] = 0
18968
18969 ;
18970 return 0;
18971}
18972_ACEOF
18973rm -f conftest.$ac_objext
18974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18975 (eval $ac_compile) 2>conftest.er1
a848cd7e 18976 ac_status=$?
ac1cb8d3
VS
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
a848cd7e
SC
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
6ebeb4c7 18982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; } &&
18988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 ac_hi=$ac_mid; break
18995else
18996 echo "$as_me: failed program was:" >&5
18997sed 's/^/| /' conftest.$ac_ext >&5
18998
18999ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19000 if test $ac_lo -le $ac_mid; then
19001 ac_lo= ac_hi=
19002 break
19003 fi
19004 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19005fi
ac1cb8d3 19006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19007 done
19008else
19009 echo "$as_me: failed program was:" >&5
19010sed 's/^/| /' conftest.$ac_ext >&5
19011
19012cat >conftest.$ac_ext <<_ACEOF
19013/* confdefs.h. */
19014_ACEOF
19015cat confdefs.h >>conftest.$ac_ext
19016cat >>conftest.$ac_ext <<_ACEOF
19017/* end confdefs.h. */
19018$ac_includes_default
19019int
19020main ()
19021{
19022static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19023test_array [0] = 0
19024
19025 ;
19026 return 0;
19027}
19028_ACEOF
19029rm -f conftest.$ac_objext
19030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19031 (eval $ac_compile) 2>conftest.er1
a848cd7e 19032 ac_status=$?
ac1cb8d3
VS
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
a848cd7e
SC
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } &&
6ebeb4c7 19038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_hi=-1 ac_mid=-1
19051 while :; do
19052 cat >conftest.$ac_ext <<_ACEOF
19053/* confdefs.h. */
19054_ACEOF
19055cat confdefs.h >>conftest.$ac_ext
19056cat >>conftest.$ac_ext <<_ACEOF
19057/* end confdefs.h. */
19058$ac_includes_default
19059int
19060main ()
19061{
19062static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19063test_array [0] = 0
19064
19065 ;
19066 return 0;
19067}
19068_ACEOF
19069rm -f conftest.$ac_objext
19070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19071 (eval $ac_compile) 2>conftest.er1
a848cd7e 19072 ac_status=$?
ac1cb8d3
VS
19073 grep -v '^ *+' conftest.er1 >conftest.err
19074 rm -f conftest.er1
19075 cat conftest.err >&5
a848cd7e
SC
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
6ebeb4c7 19078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_lo=$ac_mid; break
19091else
19092 echo "$as_me: failed program was:" >&5
19093sed 's/^/| /' conftest.$ac_ext >&5
19094
19095ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19096 if test $ac_mid -le $ac_hi; then
19097 ac_lo= ac_hi=
19098 break
19099 fi
19100 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19101fi
ac1cb8d3 19102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19103 done
19104else
19105 echo "$as_me: failed program was:" >&5
19106sed 's/^/| /' conftest.$ac_ext >&5
19107
19108ac_lo= ac_hi=
19109fi
ac1cb8d3 19110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19111fi
ac1cb8d3 19112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19113# Binary search between lo and hi bounds.
19114while test "x$ac_lo" != "x$ac_hi"; do
19115 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19116 cat >conftest.$ac_ext <<_ACEOF
19117/* confdefs.h. */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h. */
19122$ac_includes_default
19123int
19124main ()
19125{
19126static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19127test_array [0] = 0
19128
19129 ;
19130 return 0;
19131}
19132_ACEOF
19133rm -f conftest.$ac_objext
19134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19135 (eval $ac_compile) 2>conftest.er1
a848cd7e 19136 ac_status=$?
ac1cb8d3
VS
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
a848cd7e
SC
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
6ebeb4c7 19142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_hi=$ac_mid
19155else
19156 echo "$as_me: failed program was:" >&5
19157sed 's/^/| /' conftest.$ac_ext >&5
19158
19159ac_lo=`expr '(' $ac_mid ')' + 1`
19160fi
ac1cb8d3 19161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19162done
19163case $ac_lo in
19164?*) ac_cv_sizeof_long_long=$ac_lo;;
19165'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19166See \`config.log' for more details." >&5
19167echo "$as_me: error: cannot compute sizeof (long long), 77
19168See \`config.log' for more details." >&2;}
19169 { (exit 1); exit 1; }; } ;;
19170esac
19171else
19172 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19173 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19174echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19175 { (exit 1); exit 1; }; }
19176else
19177 cat >conftest.$ac_ext <<_ACEOF
19178/* confdefs.h. */
19179_ACEOF
19180cat confdefs.h >>conftest.$ac_ext
19181cat >>conftest.$ac_ext <<_ACEOF
19182/* end confdefs.h. */
19183$ac_includes_default
19184long longval () { return (long) (sizeof (long long)); }
19185unsigned long ulongval () { return (long) (sizeof (long long)); }
19186#include <stdio.h>
19187#include <stdlib.h>
19188int
19189main ()
19190{
19191
19192 FILE *f = fopen ("conftest.val", "w");
19193 if (! f)
19194 exit (1);
19195 if (((long) (sizeof (long long))) < 0)
19196 {
19197 long i = longval ();
19198 if (i != ((long) (sizeof (long long))))
19199 exit (1);
19200 fprintf (f, "%ld\n", i);
19201 }
19202 else
19203 {
19204 unsigned long i = ulongval ();
19205 if (i != ((long) (sizeof (long long))))
19206 exit (1);
19207 fprintf (f, "%lu\n", i);
19208 }
19209 exit (ferror (f) || fclose (f) != 0);
19210
19211 ;
19212 return 0;
19213}
19214_ACEOF
19215rm -f conftest$ac_exeext
19216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217 (eval $ac_link) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 ac_cv_sizeof_long_long=`cat conftest.val`
19227else
19228 echo "$as_me: program exited with status $ac_status" >&5
19229echo "$as_me: failed program was:" >&5
19230sed 's/^/| /' conftest.$ac_ext >&5
19231
19232( exit $ac_status )
19233{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19234See \`config.log' for more details." >&5
19235echo "$as_me: error: cannot compute sizeof (long long), 77
19236See \`config.log' for more details." >&2;}
19237 { (exit 1); exit 1; }; }
19238fi
ac1cb8d3 19239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19240fi
19241fi
19242rm -f conftest.val
19243else
19244 ac_cv_sizeof_long_long=0
19245fi
19246fi
19247echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19248echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19249cat >>confdefs.h <<_ACEOF
19250#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19251_ACEOF
19252
19253
19254esac
19255
238ecede
MW
19256echo "$as_me:$LINENO: checking for wchar_t" >&5
19257echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19258if test "${ac_cv_type_wchar_t+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260else
19261 cat >conftest.$ac_ext <<_ACEOF
19262/* confdefs.h. */
19263_ACEOF
19264cat confdefs.h >>conftest.$ac_ext
19265cat >>conftest.$ac_ext <<_ACEOF
19266/* end confdefs.h. */
19267
83d8eb47
MW
19268 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19269 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19270 # error "fake wchar_t"
19271 #endif
19272 #ifdef HAVE_WCHAR_H
19273 # ifdef __CYGWIN__
19274 # include <stddef.h>
19275 # endif
19276 # include <wchar.h>
19277 #endif
19278 #ifdef HAVE_STDLIB_H
19279 # include <stdlib.h>
19280 #endif
19281 #include <stdio.h>
19282
19283
19284
19285int
19286main ()
19287{
19288if ((wchar_t *) 0)
19289 return 0;
19290if (sizeof (wchar_t))
19291 return 0;
19292 ;
19293 return 0;
19294}
19295_ACEOF
19296rm -f conftest.$ac_objext
19297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19298 (eval $ac_compile) 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
6ebeb4c7 19305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; } &&
19311 { ac_try='test -s conftest.$ac_objext'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 ac_cv_type_wchar_t=yes
19318else
19319 echo "$as_me: failed program was:" >&5
19320sed 's/^/| /' conftest.$ac_ext >&5
19321
19322ac_cv_type_wchar_t=no
19323fi
19324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19325fi
19326echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19327echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19328
a848cd7e
SC
19329echo "$as_me:$LINENO: checking size of wchar_t" >&5
19330echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19331if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333else
238ecede
MW
19334 if test "$ac_cv_type_wchar_t" = yes; then
19335 # The cast to unsigned long works around a bug in the HP C Compiler
19336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19338 # This bug is HP SR number 8606223364.
19339 if test "$cross_compiling" = yes; then
19340 # Depending upon the size, compute the lo and hi bounds.
19341cat >conftest.$ac_ext <<_ACEOF
19342/* confdefs.h. */
19343_ACEOF
19344cat confdefs.h >>conftest.$ac_ext
19345cat >>conftest.$ac_ext <<_ACEOF
19346/* end confdefs.h. */
19347
83d8eb47
MW
19348 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19349 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19350 # error "fake wchar_t"
19351 #endif
19352 #ifdef HAVE_WCHAR_H
19353 # ifdef __CYGWIN__
19354 # include <stddef.h>
19355 # endif
19356 # include <wchar.h>
19357 #endif
19358 #ifdef HAVE_STDLIB_H
19359 # include <stdlib.h>
19360 #endif
19361 #include <stdio.h>
19362
19363
19364
19365int
19366main ()
19367{
19368static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19369test_array [0] = 0
19370
19371 ;
19372 return 0;
19373}
19374_ACEOF
19375rm -f conftest.$ac_objext
19376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>conftest.er1
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
6ebeb4c7 19384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_lo=0 ac_mid=0
19397 while :; do
19398 cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404
83d8eb47
MW
19405 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19406 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19407 # error "fake wchar_t"
19408 #endif
19409 #ifdef HAVE_WCHAR_H
19410 # ifdef __CYGWIN__
19411 # include <stddef.h>
19412 # endif
19413 # include <wchar.h>
19414 #endif
19415 #ifdef HAVE_STDLIB_H
19416 # include <stdlib.h>
19417 #endif
19418 #include <stdio.h>
19419
19420
19421
19422int
19423main ()
19424{
19425static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19426test_array [0] = 0
19427
19428 ;
19429 return 0;
19430}
19431_ACEOF
19432rm -f conftest.$ac_objext
19433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19434 (eval $ac_compile) 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
6ebeb4c7 19441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try='test -s conftest.$ac_objext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_hi=$ac_mid; break
19454else
19455 echo "$as_me: failed program was:" >&5
19456sed 's/^/| /' conftest.$ac_ext >&5
19457
19458ac_lo=`expr $ac_mid + 1`
19459 if test $ac_lo -le $ac_mid; then
19460 ac_lo= ac_hi=
19461 break
19462 fi
19463 ac_mid=`expr 2 '*' $ac_mid + 1`
19464fi
19465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19466 done
19467else
19468 echo "$as_me: failed program was:" >&5
19469sed 's/^/| /' conftest.$ac_ext >&5
19470
19471cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h. */
19477
83d8eb47
MW
19478 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19479 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19480 # error "fake wchar_t"
19481 #endif
19482 #ifdef HAVE_WCHAR_H
19483 # ifdef __CYGWIN__
19484 # include <stddef.h>
19485 # endif
19486 # include <wchar.h>
19487 #endif
19488 #ifdef HAVE_STDLIB_H
19489 # include <stdlib.h>
19490 #endif
19491 #include <stdio.h>
19492
19493
19494
19495int
19496main ()
19497{
19498static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19499test_array [0] = 0
19500
19501 ;
19502 return 0;
19503}
19504_ACEOF
19505rm -f conftest.$ac_objext
19506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19507 (eval $ac_compile) 2>conftest.er1
19508 ac_status=$?
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
6ebeb4c7 19514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; } &&
19520 { ac_try='test -s conftest.$ac_objext'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_hi=-1 ac_mid=-1
19527 while :; do
19528 cat >conftest.$ac_ext <<_ACEOF
19529/* confdefs.h. */
19530_ACEOF
19531cat confdefs.h >>conftest.$ac_ext
19532cat >>conftest.$ac_ext <<_ACEOF
19533/* end confdefs.h. */
19534
83d8eb47
MW
19535 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19536 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19537 # error "fake wchar_t"
19538 #endif
19539 #ifdef HAVE_WCHAR_H
19540 # ifdef __CYGWIN__
19541 # include <stddef.h>
19542 # endif
19543 # include <wchar.h>
19544 #endif
19545 #ifdef HAVE_STDLIB_H
19546 # include <stdlib.h>
19547 #endif
19548 #include <stdio.h>
19549
19550
19551
19552int
19553main ()
19554{
19555static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19556test_array [0] = 0
19557
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562rm -f conftest.$ac_objext
19563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
6ebeb4c7 19571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19574 ac_status=$?
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest.$ac_objext'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; }; then
19583 ac_lo=$ac_mid; break
19584else
19585 echo "$as_me: failed program was:" >&5
19586sed 's/^/| /' conftest.$ac_ext >&5
19587
19588ac_hi=`expr '(' $ac_mid ')' - 1`
19589 if test $ac_mid -le $ac_hi; then
19590 ac_lo= ac_hi=
19591 break
19592 fi
19593 ac_mid=`expr 2 '*' $ac_mid`
19594fi
19595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19596 done
19597else
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601ac_lo= ac_hi=
19602fi
19603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19604fi
19605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19606# Binary search between lo and hi bounds.
19607while test "x$ac_lo" != "x$ac_hi"; do
19608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19609 cat >conftest.$ac_ext <<_ACEOF
19610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
19614/* end confdefs.h. */
19615
83d8eb47
MW
19616 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19617 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19618 # error "fake wchar_t"
19619 #endif
19620 #ifdef HAVE_WCHAR_H
19621 # ifdef __CYGWIN__
19622 # include <stddef.h>
19623 # endif
19624 # include <wchar.h>
19625 #endif
19626 #ifdef HAVE_STDLIB_H
19627 # include <stdlib.h>
19628 #endif
19629 #include <stdio.h>
a848cd7e 19630
a848cd7e 19631
a848cd7e 19632
238ecede
MW
19633int
19634main ()
19635{
19636static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19637test_array [0] = 0
a848cd7e 19638
238ecede
MW
19639 ;
19640 return 0;
19641}
19642_ACEOF
19643rm -f conftest.$ac_objext
19644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645 (eval $ac_compile) 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
6ebeb4c7 19652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; } &&
19658 { ac_try='test -s conftest.$ac_objext'
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_hi=$ac_mid
19665else
19666 echo "$as_me: failed program was:" >&5
19667sed 's/^/| /' conftest.$ac_ext >&5
19668
19669ac_lo=`expr '(' $ac_mid ')' + 1`
19670fi
19671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19672done
19673case $ac_lo in
19674?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19676See \`config.log' for more details." >&5
19677echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19678See \`config.log' for more details." >&2;}
19679 { (exit 1); exit 1; }; } ;;
19680esac
19681else
19682 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19683 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19684echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19685 { (exit 1); exit 1; }; }
a848cd7e
SC
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
83d8eb47
MW
19694 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19695 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19696 # error "fake wchar_t"
19697 #endif
19698 #ifdef HAVE_WCHAR_H
19699 # ifdef __CYGWIN__
19700 # include <stddef.h>
19701 # endif
19702 # include <wchar.h>
19703 #endif
19704 #ifdef HAVE_STDLIB_H
19705 # include <stdlib.h>
19706 #endif
19707 #include <stdio.h>
19708
19709
19710
19711long longval () { return (long) (sizeof (wchar_t)); }
19712unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19713#include <stdio.h>
19714#include <stdlib.h>
19715int
19716main ()
19717{
a848cd7e 19718
238ecede
MW
19719 FILE *f = fopen ("conftest.val", "w");
19720 if (! f)
19721 exit (1);
19722 if (((long) (sizeof (wchar_t))) < 0)
19723 {
19724 long i = longval ();
19725 if (i != ((long) (sizeof (wchar_t))))
19726 exit (1);
19727 fprintf (f, "%ld\n", i);
19728 }
19729 else
19730 {
19731 unsigned long i = ulongval ();
19732 if (i != ((long) (sizeof (wchar_t))))
19733 exit (1);
19734 fprintf (f, "%lu\n", i);
19735 }
19736 exit (ferror (f) || fclose (f) != 0);
19737
19738 ;
19739 return 0;
19740}
a848cd7e
SC
19741_ACEOF
19742rm -f conftest$ac_exeext
19743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19744 (eval $ac_link) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
238ecede 19753 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19754else
19755 echo "$as_me: program exited with status $ac_status" >&5
19756echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759( exit $ac_status )
238ecede
MW
19760{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19761See \`config.log' for more details." >&5
19762echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19763See \`config.log' for more details." >&2;}
19764 { (exit 1); exit 1; }; }
a848cd7e 19765fi
ac1cb8d3 19766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19767fi
a848cd7e 19768fi
238ecede
MW
19769rm -f conftest.val
19770else
19771 ac_cv_sizeof_wchar_t=0
19772fi
19773fi
19774echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19775echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19776cat >>confdefs.h <<_ACEOF
238ecede 19777#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19778_ACEOF
19779
19780
47a7e797
MW
19781if test "$ac_cv_sizeof_wchar_t" != "0"; then
19782 wxUSE_WCHAR_T=yes
19783else
19784 wxUSE_WCHAR_T=no
19785fi
238ecede 19786
ba3d13e1
VZ
19787echo "$as_me:$LINENO: checking for va_copy" >&5
19788echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19789if test "${wx_cv_func_va_copy+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791else
19792
19793 cat >conftest.$ac_ext <<_ACEOF
19794
19795 #include <stdarg.h>
19796 void foo(char *f, ...)
19797 {
19798 va_list ap1, ap2;
19799 va_start(ap1, f);
19800 va_copy(ap2, ap1);
19801 va_end(ap2);
19802 va_end(ap1);
19803 }
5886b072
VZ
19804 int main()
19805 {
b902e639
VZ
19806 foo("hi", 17);
19807 return 0;
5886b072 19808 }
ba3d13e1
VZ
19809_ACEOF
19810rm -f conftest.$ac_objext conftest$ac_exeext
19811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812 (eval $ac_link) 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
6ebeb4c7 19819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest$ac_exeext'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 wx_cv_func_va_copy=yes
19832else
19833 echo "$as_me: failed program was:" >&5
19834sed 's/^/| /' conftest.$ac_ext >&5
19835
19836wx_cv_func_va_copy=no
19837
19838fi
19839rm -f conftest.err conftest.$ac_objext \
19840 conftest$ac_exeext conftest.$ac_ext
19841
19842
19843fi
19844echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19845echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19846
19847if test $wx_cv_func_va_copy = "yes"; then
19848 cat >>confdefs.h <<\_ACEOF
19849#define HAVE_VA_COPY 1
19850_ACEOF
19851
19852else
19853 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19854echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19855if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857else
19858
19859 if test "$cross_compiling" = yes; then
19860 wx_cv_type_va_list_lvalue=yes
19861
19862else
19863 cat >conftest.$ac_ext <<_ACEOF
19864
19865 #include <stdarg.h>
19866 int foo(char *f, ...)
19867 {
19868 va_list ap1, ap2;
19869 va_start(ap1, f);
19870 ap2 = ap1;
19871 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19872 return 1;
19873 va_end(ap2);
19874 va_end(ap1);
19875 return 0;
19876 }
19877 int main()
19878 {
19879 return foo("hi", 17);
19880 }
19881_ACEOF
19882rm -f conftest$ac_exeext
19883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19884 (eval $ac_link) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; }; then
19893 wx_cv_type_va_list_lvalue=yes
19894else
19895 echo "$as_me: program exited with status $ac_status" >&5
19896echo "$as_me: failed program was:" >&5
19897sed 's/^/| /' conftest.$ac_ext >&5
19898
19899( exit $ac_status )
19900wx_cv_type_va_list_lvalue=no
19901fi
19902rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19903fi
19904
19905
19906fi
19907echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19908echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19909
19910 if test $wx_cv_type_va_list_lvalue != "yes"; then
19911 cat >>confdefs.h <<\_ACEOF
19912#define VA_LIST_IS_ARRAY 1
19913_ACEOF
19914
19915 fi
19916fi
19917
a848cd7e
SC
19918# Check whether --enable-largefile or --disable-largefile was given.
19919if test "${enable_largefile+set}" = set; then
19920 enableval="$enable_largefile"
19921
19922fi;
19923if test "$enable_largefile" != no; then
19924 wx_largefile=no
19925
19926 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19927echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19928if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930else
19931
19932 cat >conftest.$ac_ext <<_ACEOF
19933/* confdefs.h. */
19934_ACEOF
19935cat confdefs.h >>conftest.$ac_ext
19936cat >>conftest.$ac_ext <<_ACEOF
19937/* end confdefs.h. */
19938#define _FILE_OFFSET_BITS 64
19939 #include <sys/types.h>
19940int
19941main ()
19942{
19943typedef struct {
19944 unsigned int field: sizeof(off_t) == 8;
19945} wxlf;
19946
19947 ;
19948 return 0;
19949}
19950_ACEOF
19951rm -f conftest.$ac_objext
19952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19953 (eval $ac_compile) 2>conftest.er1
a848cd7e 19954 ac_status=$?
ac1cb8d3
VS
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
a848cd7e
SC
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
6ebeb4c7 19960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_cv_sys_file_offset_bits=64
19973else
19974 echo "$as_me: failed program was:" >&5
19975sed 's/^/| /' conftest.$ac_ext >&5
19976
19977ac_cv_sys_file_offset_bits=no
19978fi
ac1cb8d3 19979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19980
19981
19982fi
19983echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19984echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19985
19986 if test "$ac_cv_sys_file_offset_bits" != no; then
19987 wx_largefile=yes
19988 cat >>confdefs.h <<_ACEOF
19989#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19990_ACEOF
19991
19992 fi
19993
19994 if test "x$wx_largefile" != "xyes"; then
19995
19996 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19997echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19998if test "${ac_cv_sys_large_files+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20000else
20001
20002 cat >conftest.$ac_ext <<_ACEOF
20003/* confdefs.h. */
20004_ACEOF
20005cat confdefs.h >>conftest.$ac_ext
20006cat >>conftest.$ac_ext <<_ACEOF
20007/* end confdefs.h. */
20008#define _LARGE_FILES 1
20009 #include <sys/types.h>
20010int
20011main ()
20012{
20013typedef struct {
20014 unsigned int field: sizeof(off_t) == 8;
20015} wxlf;
20016
20017 ;
20018 return 0;
20019}
20020_ACEOF
20021rm -f conftest.$ac_objext
20022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20023 (eval $ac_compile) 2>conftest.er1
a848cd7e 20024 ac_status=$?
ac1cb8d3
VS
20025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
a848cd7e
SC
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
6ebeb4c7 20030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 ac_cv_sys_large_files=1
20043else
20044 echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047ac_cv_sys_large_files=no
20048fi
ac1cb8d3 20049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20050
20051
20052fi
20053echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20054echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20055
20056 if test "$ac_cv_sys_large_files" != no; then
20057 wx_largefile=yes
20058 cat >>confdefs.h <<_ACEOF
20059#define _LARGE_FILES $ac_cv_sys_large_files
20060_ACEOF
20061
20062 fi
20063
20064 fi
20065
20066 echo "$as_me:$LINENO: checking if large file support is available" >&5
20067echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20068 if test "x$wx_largefile" = "xyes"; then
20069 cat >>confdefs.h <<\_ACEOF
20070#define HAVE_LARGEFILE_SUPPORT 1
20071_ACEOF
20072
20073 fi
20074 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20075echo "${ECHO_T}$wx_largefile" >&6
20076fi
20077
5b674b9d
DE
20078
20079if test "x$wx_largefile" = "xyes"; then
20080 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20081 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
20082 else
20083 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20084 fi
20085 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20086echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20087if test "${ac_cv_sys_largefile_source+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20089else
20090 while :; do
20091 ac_cv_sys_largefile_source=no
20092 cat >conftest.$ac_ext <<_ACEOF
20093/* confdefs.h. */
20094_ACEOF
20095cat confdefs.h >>conftest.$ac_ext
20096cat >>conftest.$ac_ext <<_ACEOF
20097/* end confdefs.h. */
20098#include <stdio.h>
20099int
20100main ()
20101{
20102return !fseeko;
20103 ;
20104 return 0;
20105}
20106_ACEOF
20107rm -f conftest.$ac_objext
20108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
6ebeb4c7 20116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest.$ac_objext'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 break
20129else
20130 echo "$as_me: failed program was:" >&5
20131sed 's/^/| /' conftest.$ac_ext >&5
20132
20133fi
20134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20135 cat >conftest.$ac_ext <<_ACEOF
20136/* confdefs.h. */
20137_ACEOF
20138cat confdefs.h >>conftest.$ac_ext
20139cat >>conftest.$ac_ext <<_ACEOF
20140/* end confdefs.h. */
20141#define _LARGEFILE_SOURCE 1
20142#include <stdio.h>
20143int
20144main ()
20145{
20146return !fseeko;
20147 ;
20148 return 0;
20149}
20150_ACEOF
20151rm -f conftest.$ac_objext
20152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20153 (eval $ac_compile) 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } &&
6ebeb4c7 20160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest.$ac_objext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 ac_cv_sys_largefile_source=1; break
20173else
20174 echo "$as_me: failed program was:" >&5
20175sed 's/^/| /' conftest.$ac_ext >&5
20176
20177fi
20178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20179 break
20180done
20181fi
20182echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20183echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20184if test "$ac_cv_sys_largefile_source" != no; then
20185
20186cat >>confdefs.h <<_ACEOF
20187#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20188_ACEOF
20189
20190fi
20191rm -f conftest*
20192
20193# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20194# in glibc 2.1.3, but that breaks too many other things.
20195# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20196echo "$as_me:$LINENO: checking for fseeko" >&5
20197echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20198if test "${ac_cv_func_fseeko+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20200else
20201 cat >conftest.$ac_ext <<_ACEOF
20202/* confdefs.h. */
20203_ACEOF
20204cat confdefs.h >>conftest.$ac_ext
20205cat >>conftest.$ac_ext <<_ACEOF
20206/* end confdefs.h. */
20207#include <stdio.h>
20208int
20209main ()
20210{
20211return fseeko && fseeko (stdin, 0, 0);
20212 ;
20213 return 0;
20214}
20215_ACEOF
20216rm -f conftest.$ac_objext conftest$ac_exeext
20217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20218 (eval $ac_link) 2>conftest.er1
20219 ac_status=$?
20220 grep -v '^ *+' conftest.er1 >conftest.err
20221 rm -f conftest.er1
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
6ebeb4c7 20225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; } &&
20231 { ac_try='test -s conftest$ac_exeext'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
20237 ac_cv_func_fseeko=yes
20238else
20239 echo "$as_me: failed program was:" >&5
20240sed 's/^/| /' conftest.$ac_ext >&5
20241
20242ac_cv_func_fseeko=no
20243fi
20244rm -f conftest.err conftest.$ac_objext \
20245 conftest$ac_exeext conftest.$ac_ext
20246fi
20247echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20248echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20249if test $ac_cv_func_fseeko = yes; then
20250
20251cat >>confdefs.h <<\_ACEOF
20252#define HAVE_FSEEKO 1
20253_ACEOF
20254
20255fi
20256
5b674b9d
DE
20257 if test "$ac_cv_sys_largefile_source" != no; then
20258 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20259 fi
20260 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20261fi
20262
20263echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20264echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20265if test "${ac_cv_c_bigendian+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20267else
20268 ac_cv_c_bigendian=unknown
20269# See if sys/param.h defines the BYTE_ORDER macro.
20270cat >conftest.$ac_ext <<_ACEOF
20271/* confdefs.h. */
20272_ACEOF
20273cat confdefs.h >>conftest.$ac_ext
20274cat >>conftest.$ac_ext <<_ACEOF
20275/* end confdefs.h. */
20276#include <sys/types.h>
20277#include <sys/param.h>
20278int
20279main ()
20280{
20281
20282#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20283 bogus endian macros
20284#endif
20285 ;
20286 return 0;
20287}
20288_ACEOF
20289rm -f conftest.$ac_objext
20290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20291 (eval $ac_compile) 2>conftest.er1
a848cd7e 20292 ac_status=$?
ac1cb8d3
VS
20293 grep -v '^ *+' conftest.er1 >conftest.err
20294 rm -f conftest.er1
20295 cat conftest.err >&5
a848cd7e
SC
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
6ebeb4c7 20298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; } &&
20304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; }; then
20310 # It does; now see whether it defined to BIG_ENDIAN or not.
20311cat >conftest.$ac_ext <<_ACEOF
20312/* confdefs.h. */
20313_ACEOF
20314cat confdefs.h >>conftest.$ac_ext
20315cat >>conftest.$ac_ext <<_ACEOF
20316/* end confdefs.h. */
20317#include <sys/types.h>
20318#include <sys/param.h>
20319int
20320main ()
20321{
20322
20323#if BYTE_ORDER != BIG_ENDIAN
20324 not big endian
20325#endif
20326 ;
20327 return 0;
20328}
20329_ACEOF
20330rm -f conftest.$ac_objext
20331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20332 (eval $ac_compile) 2>conftest.er1
a848cd7e 20333 ac_status=$?
ac1cb8d3
VS
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
a848cd7e
SC
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
6ebeb4c7 20339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 ac_cv_c_bigendian=yes
20352else
20353 echo "$as_me: failed program was:" >&5
20354sed 's/^/| /' conftest.$ac_ext >&5
20355
20356ac_cv_c_bigendian=no
20357fi
ac1cb8d3 20358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20359else
20360 echo "$as_me: failed program was:" >&5
20361sed 's/^/| /' conftest.$ac_ext >&5
20362
20363fi
ac1cb8d3 20364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20365if test $ac_cv_c_bigendian = unknown; then
20366if test "$cross_compiling" = yes; then
20367 ac_cv_c_bigendian=unknown
20368else
20369 cat >conftest.$ac_ext <<_ACEOF
20370/* confdefs.h. */
20371_ACEOF
20372cat confdefs.h >>conftest.$ac_ext
20373cat >>conftest.$ac_ext <<_ACEOF
20374/* end confdefs.h. */
20375main () {
20376 /* Are we little or big endian? From Harbison&Steele. */
20377 union
20378 {
20379 long l;
20380 char c[sizeof (long)];
20381 } u;
20382 u.l = 1;
20383 exit (u.c[sizeof (long) - 1] == 1);
20384}
20385_ACEOF
20386rm -f conftest$ac_exeext
20387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20388 (eval $ac_link) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 ac_cv_c_bigendian=no
20398else
20399 echo "$as_me: program exited with status $ac_status" >&5
20400echo "$as_me: failed program was:" >&5
20401sed 's/^/| /' conftest.$ac_ext >&5
20402
20403( exit $ac_status )
20404ac_cv_c_bigendian=yes
20405fi
ac1cb8d3 20406rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20407fi
20408fi
20409fi
20410echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20411echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20412if test $ac_cv_c_bigendian = unknown; then
20413 { 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
20414echo "$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;}
20415fi
20416if test $ac_cv_c_bigendian = yes; then
20417 cat >>confdefs.h <<\_ACEOF
20418#define WORDS_BIGENDIAN 1
20419_ACEOF
20420
20421fi
20422
20423
20424ac_ext=cc
20425ac_cpp='$CXXCPP $CPPFLAGS'
20426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20429echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20430echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20431if test -z "$CXXCPP"; then
20432 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20433 echo $ECHO_N "(cached) $ECHO_C" >&6
20434else
20435 # Double quotes because CXXCPP needs to be expanded
20436 for CXXCPP in "$CXX -E" "/lib/cpp"
20437 do
20438 ac_preproc_ok=false
20439for ac_cxx_preproc_warn_flag in '' yes
20440do
20441 # Use a header file that comes with gcc, so configuring glibc
20442 # with a fresh cross-compiler works.
20443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20444 # <limits.h> exists even on freestanding compilers.
20445 # On the NeXT, cc -E runs the code through the compiler's parser,
20446 # not just through cpp. "Syntax error" is here to catch this case.
20447 cat >conftest.$ac_ext <<_ACEOF
20448/* confdefs.h. */
20449_ACEOF
20450cat confdefs.h >>conftest.$ac_ext
20451cat >>conftest.$ac_ext <<_ACEOF
20452/* end confdefs.h. */
20453#ifdef __STDC__
20454# include <limits.h>
20455#else
20456# include <assert.h>
20457#endif
ac1cb8d3 20458 Syntax error
a848cd7e
SC
20459_ACEOF
20460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } >/dev/null; then
20468 if test -s conftest.err; then
20469 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20470 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20471 else
20472 ac_cpp_err=
20473 fi
20474else
20475 ac_cpp_err=yes
20476fi
20477if test -z "$ac_cpp_err"; then
20478 :
20479else
20480 echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 # Broken: fails on valid input.
20484continue
20485fi
20486rm -f conftest.err conftest.$ac_ext
20487
20488 # OK, works on sane cases. Now check whether non-existent headers
20489 # can be detected and how.
20490 cat >conftest.$ac_ext <<_ACEOF
20491/* confdefs.h. */
20492_ACEOF
20493cat confdefs.h >>conftest.$ac_ext
20494cat >>conftest.$ac_ext <<_ACEOF
20495/* end confdefs.h. */
20496#include <ac_nonexistent.h>
20497_ACEOF
20498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20500 ac_status=$?
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } >/dev/null; then
20506 if test -s conftest.err; then
20507 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20508 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20509 else
20510 ac_cpp_err=
20511 fi
20512else
20513 ac_cpp_err=yes
20514fi
20515if test -z "$ac_cpp_err"; then
20516 # Broken: success on invalid input.
20517continue
20518else
20519 echo "$as_me: failed program was:" >&5
20520sed 's/^/| /' conftest.$ac_ext >&5
20521
20522 # Passes both tests.
20523ac_preproc_ok=:
20524break
20525fi
20526rm -f conftest.err conftest.$ac_ext
20527
20528done
20529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20530rm -f conftest.err conftest.$ac_ext
20531if $ac_preproc_ok; then
20532 break
20533fi
20534
20535 done
20536 ac_cv_prog_CXXCPP=$CXXCPP
20537
20538fi
20539 CXXCPP=$ac_cv_prog_CXXCPP
20540else
20541 ac_cv_prog_CXXCPP=$CXXCPP
20542fi
20543echo "$as_me:$LINENO: result: $CXXCPP" >&5
20544echo "${ECHO_T}$CXXCPP" >&6
20545ac_preproc_ok=false
20546for ac_cxx_preproc_warn_flag in '' yes
20547do
20548 # Use a header file that comes with gcc, so configuring glibc
20549 # with a fresh cross-compiler works.
20550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20551 # <limits.h> exists even on freestanding compilers.
20552 # On the NeXT, cc -E runs the code through the compiler's parser,
20553 # not just through cpp. "Syntax error" is here to catch this case.
20554 cat >conftest.$ac_ext <<_ACEOF
20555/* confdefs.h. */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h. */
20560#ifdef __STDC__
20561# include <limits.h>
20562#else
20563# include <assert.h>
20564#endif
ac1cb8d3 20565 Syntax error
a848cd7e
SC
20566_ACEOF
20567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } >/dev/null; then
20575 if test -s conftest.err; then
20576 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20577 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20578 else
20579 ac_cpp_err=
20580 fi
20581else
20582 ac_cpp_err=yes
20583fi
20584if test -z "$ac_cpp_err"; then
20585 :
20586else
20587 echo "$as_me: failed program was:" >&5
20588sed 's/^/| /' conftest.$ac_ext >&5
20589
20590 # Broken: fails on valid input.
20591continue
20592fi
20593rm -f conftest.err conftest.$ac_ext
20594
20595 # OK, works on sane cases. Now check whether non-existent headers
20596 # can be detected and how.
20597 cat >conftest.$ac_ext <<_ACEOF
20598/* confdefs.h. */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
20602/* end confdefs.h. */
20603#include <ac_nonexistent.h>
20604_ACEOF
20605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } >/dev/null; then
20613 if test -s conftest.err; then
20614 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20615 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20616 else
20617 ac_cpp_err=
20618 fi
20619else
20620 ac_cpp_err=yes
20621fi
20622if test -z "$ac_cpp_err"; then
20623 # Broken: success on invalid input.
20624continue
20625else
20626 echo "$as_me: failed program was:" >&5
20627sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 # Passes both tests.
20630ac_preproc_ok=:
20631break
20632fi
20633rm -f conftest.err conftest.$ac_ext
20634
20635done
20636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20637rm -f conftest.err conftest.$ac_ext
20638if $ac_preproc_ok; then
20639 :
20640else
20641 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20642See \`config.log' for more details." >&5
20643echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20644See \`config.log' for more details." >&2;}
20645 { (exit 1); exit 1; }; }
20646fi
20647
20648ac_ext=cc
20649ac_cpp='$CXXCPP $CPPFLAGS'
20650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20653
20654
20655
20656
20657
20658 ac_ext=cc
20659ac_cpp='$CXXCPP $CPPFLAGS'
20660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20663
20664
20665
20666for ac_header in iostream
20667do
20668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20669if eval "test \"\${$as_ac_Header+set}\" = set"; then
20670 echo "$as_me:$LINENO: checking for $ac_header" >&5
20671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20672if eval "test \"\${$as_ac_Header+set}\" = set"; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20674fi
20675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20677else
20678 # Is the header compilable?
20679echo "$as_me:$LINENO: checking $ac_header usability" >&5
20680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20681cat >conftest.$ac_ext <<_ACEOF
20682/* confdefs.h. */
20683_ACEOF
20684cat confdefs.h >>conftest.$ac_ext
20685cat >>conftest.$ac_ext <<_ACEOF
20686/* end confdefs.h. */
20687$ac_includes_default
20688#include <$ac_header>
20689_ACEOF
20690rm -f conftest.$ac_objext
20691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20692 (eval $ac_compile) 2>conftest.er1
a848cd7e 20693 ac_status=$?
ac1cb8d3
VS
20694 grep -v '^ *+' conftest.er1 >conftest.err
20695 rm -f conftest.er1
20696 cat conftest.err >&5
a848cd7e
SC
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } &&
6ebeb4c7 20699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; } &&
20705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20708 ac_status=$?
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; }; then
20711 ac_header_compiler=yes
20712else
20713 echo "$as_me: failed program was:" >&5
20714sed 's/^/| /' conftest.$ac_ext >&5
20715
20716ac_header_compiler=no
20717fi
ac1cb8d3 20718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20720echo "${ECHO_T}$ac_header_compiler" >&6
20721
20722# Is the header present?
20723echo "$as_me:$LINENO: checking $ac_header presence" >&5
20724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20725cat >conftest.$ac_ext <<_ACEOF
20726/* confdefs.h. */
20727_ACEOF
20728cat confdefs.h >>conftest.$ac_ext
20729cat >>conftest.$ac_ext <<_ACEOF
20730/* end confdefs.h. */
20731#include <$ac_header>
20732_ACEOF
20733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20735 ac_status=$?
20736 grep -v '^ *+' conftest.er1 >conftest.err
20737 rm -f conftest.er1
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } >/dev/null; then
20741 if test -s conftest.err; then
20742 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20743 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20744 else
20745 ac_cpp_err=
20746 fi
20747else
20748 ac_cpp_err=yes
20749fi
20750if test -z "$ac_cpp_err"; then
20751 ac_header_preproc=yes
20752else
20753 echo "$as_me: failed program was:" >&5
20754sed 's/^/| /' conftest.$ac_ext >&5
20755
20756 ac_header_preproc=no
20757fi
20758rm -f conftest.err conftest.$ac_ext
20759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20760echo "${ECHO_T}$ac_header_preproc" >&6
20761
20762# So? What about this header?
ac1cb8d3
VS
20763case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20764 yes:no: )
a848cd7e
SC
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20769 ac_header_preproc=yes
a848cd7e 20770 ;;
ac1cb8d3 20771 no:yes:* )
a848cd7e
SC
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20784 (
20785 cat <<\_ASBOX
ac1cb8d3
VS
20786## ----------------------------------------- ##
20787## Report this to wx-dev@lists.wxwidgets.org ##
20788## ----------------------------------------- ##
a848cd7e
SC
20789_ASBOX
20790 ) |
20791 sed "s/^/$as_me: WARNING: /" >&2
20792 ;;
20793esac
20794echo "$as_me:$LINENO: checking for $ac_header" >&5
20795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20796if eval "test \"\${$as_ac_Header+set}\" = set"; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20798else
ac1cb8d3 20799 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20800fi
20801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20803
20804fi
20805if test `eval echo '${'$as_ac_Header'}'` = yes; then
20806 cat >>confdefs.h <<_ACEOF
20807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20808_ACEOF
20809
20810fi
20811
20812done
20813
20814
20815 if test "$ac_cv_header_iostream" = "yes" ; then
20816 :
20817 else
20818 cat >>confdefs.h <<\_ACEOF
20819#define wxUSE_IOSTREAMH 1
20820_ACEOF
20821
20822 fi
20823
20824 ac_ext=c
20825ac_cpp='$CPP $CPPFLAGS'
20826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828ac_compiler_gnu=$ac_cv_c_compiler_gnu
20829
20830
20831
20832
20833 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20834echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20835if test "${wx_cv_cpp_bool+set}" = set; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20837else
20838
20839
20840
20841 ac_ext=cc
20842ac_cpp='$CXXCPP $CPPFLAGS'
20843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20846
20847
20848 cat >conftest.$ac_ext <<_ACEOF
20849/* confdefs.h. */
20850_ACEOF
20851cat confdefs.h >>conftest.$ac_ext
20852cat >>conftest.$ac_ext <<_ACEOF
20853/* end confdefs.h. */
20854
20855
20856int
20857main ()
20858{
20859
20860 bool b = true;
20861
20862 return 0;
20863
20864 ;
20865 return 0;
20866}
20867_ACEOF
20868rm -f conftest.$ac_objext
20869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20870 (eval $ac_compile) 2>conftest.er1
a848cd7e 20871 ac_status=$?
ac1cb8d3
VS
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
a848cd7e
SC
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
6ebeb4c7 20877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889
20890 wx_cv_cpp_bool=yes
20891
20892else
20893 echo "$as_me: failed program was:" >&5
20894sed 's/^/| /' conftest.$ac_ext >&5
20895
20896
20897 wx_cv_cpp_bool=no
20898
20899
20900fi
ac1cb8d3 20901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20902
20903 ac_ext=c
20904ac_cpp='$CPP $CPPFLAGS'
20905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20907ac_compiler_gnu=$ac_cv_c_compiler_gnu
20908
20909
20910fi
20911echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20912echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20913
20914 if test "$wx_cv_cpp_bool" = "yes"; then
20915 cat >>confdefs.h <<\_ACEOF
20916#define HAVE_BOOL 1
20917_ACEOF
20918
20919 fi
20920
20921
20922
20923 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20924echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20925if test "${wx_cv_explicit+set}" = set; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20927else
20928
20929
20930
20931 ac_ext=cc
20932ac_cpp='$CXXCPP $CPPFLAGS'
20933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20936
20937
20938 cat >conftest.$ac_ext <<_ACEOF
20939/* confdefs.h. */
20940_ACEOF
20941cat confdefs.h >>conftest.$ac_ext
20942cat >>conftest.$ac_ext <<_ACEOF
20943/* end confdefs.h. */
20944
20945 class Foo { public: explicit Foo(int) {} };
20946
20947int
20948main ()
20949{
20950
20951 return 0;
20952
20953 ;
20954 return 0;
20955}
20956_ACEOF
20957rm -f conftest.$ac_objext
20958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20959 (eval $ac_compile) 2>conftest.er1
a848cd7e 20960 ac_status=$?
ac1cb8d3
VS
20961 grep -v '^ *+' conftest.er1 >conftest.err
20962 rm -f conftest.er1
20963 cat conftest.err >&5
a848cd7e
SC
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } &&
6ebeb4c7 20966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; } &&
20972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
20978
20979 cat >conftest.$ac_ext <<_ACEOF
20980/* confdefs.h. */
20981_ACEOF
20982cat confdefs.h >>conftest.$ac_ext
20983cat >>conftest.$ac_ext <<_ACEOF
20984/* end confdefs.h. */
20985
20986 class Foo { public: explicit Foo(int) {} };
20987 static void TakeFoo(const Foo& foo) { }
20988
20989int
20990main ()
20991{
20992
20993 TakeFoo(17);
20994 return 0;
20995
20996 ;
20997 return 0;
20998}
20999_ACEOF
21000rm -f conftest.$ac_objext
21001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21002 (eval $ac_compile) 2>conftest.er1
a848cd7e 21003 ac_status=$?
ac1cb8d3
VS
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
a848cd7e
SC
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
6ebeb4c7 21009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21021 wx_cv_explicit=no
21022else
21023 echo "$as_me: failed program was:" >&5
21024sed 's/^/| /' conftest.$ac_ext >&5
21025
21026wx_cv_explicit=yes
21027
21028fi
ac1cb8d3 21029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21030
21031else
21032 echo "$as_me: failed program was:" >&5
21033sed 's/^/| /' conftest.$ac_ext >&5
21034
21035wx_cv_explicit=no
21036
21037fi
ac1cb8d3 21038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21039
21040 ac_ext=c
21041ac_cpp='$CPP $CPPFLAGS'
21042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044ac_compiler_gnu=$ac_cv_c_compiler_gnu
21045
21046
21047fi
21048echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21049echo "${ECHO_T}$wx_cv_explicit" >&6
21050
21051 if test "$wx_cv_explicit" = "yes"; then
21052 cat >>confdefs.h <<\_ACEOF
21053#define HAVE_EXPLICIT 1
21054_ACEOF
21055
21056 fi
21057
21058
21059echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21060echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21061if test "${ac_cv_cxx_const_cast+set}" = set; then
21062 echo $ECHO_N "(cached) $ECHO_C" >&6
21063else
21064
21065
21066 ac_ext=cc
21067ac_cpp='$CXXCPP $CPPFLAGS'
21068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21071
21072 cat >conftest.$ac_ext <<_ACEOF
21073/* confdefs.h. */
21074_ACEOF
21075cat confdefs.h >>conftest.$ac_ext
21076cat >>conftest.$ac_ext <<_ACEOF
21077/* end confdefs.h. */
21078
21079int
21080main ()
21081{
21082int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21083 ;
21084 return 0;
21085}
21086_ACEOF
21087rm -f conftest.$ac_objext
21088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21089 (eval $ac_compile) 2>conftest.er1
a848cd7e 21090 ac_status=$?
ac1cb8d3
VS
21091 grep -v '^ *+' conftest.er1 >conftest.err
21092 rm -f conftest.er1
21093 cat conftest.err >&5
a848cd7e
SC
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
6ebeb4c7 21096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21099 ac_status=$?
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; } &&
21102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ac_cv_cxx_const_cast=yes
21109else
21110 echo "$as_me: failed program was:" >&5
21111sed 's/^/| /' conftest.$ac_ext >&5
21112
21113ac_cv_cxx_const_cast=no
21114fi
ac1cb8d3 21115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21116 ac_ext=c
21117ac_cpp='$CPP $CPPFLAGS'
21118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21120ac_compiler_gnu=$ac_cv_c_compiler_gnu
21121
21122
21123fi
21124echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21125echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21126if test "$ac_cv_cxx_const_cast" = yes; then
21127
21128cat >>confdefs.h <<\_ACEOF
21129#define HAVE_CONST_CAST
21130_ACEOF
21131
21132fi
21133
7714864e
RL
21134echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21135echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21136if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21138else
21139
21140
21141 ac_ext=cc
21142ac_cpp='$CXXCPP $CPPFLAGS'
21143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21146
21147 cat >conftest.$ac_ext <<_ACEOF
21148/* confdefs.h. */
21149_ACEOF
21150cat confdefs.h >>conftest.$ac_ext
21151cat >>conftest.$ac_ext <<_ACEOF
21152/* end confdefs.h. */
21153#include <typeinfo>
21154class Base { public : Base () {} virtual void f () = 0;};
21155class Derived : public Base { public : Derived () {} virtual void f () {} };
21156class Unrelated { public : Unrelated () {} };
21157int g (Unrelated&) { return 0; }
21158int
21159main ()
21160{
21161
21162Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21163 ;
21164 return 0;
21165}
21166_ACEOF
21167rm -f conftest.$ac_objext
21168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21169 (eval $ac_compile) 2>conftest.er1
21170 ac_status=$?
21171 grep -v '^ *+' conftest.er1 >conftest.err
21172 rm -f conftest.er1
21173 cat conftest.err >&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } &&
6ebeb4c7 21176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; } &&
21182 { ac_try='test -s conftest.$ac_objext'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; }; then
21188 ac_cv_cxx_reinterpret_cast=yes
21189else
21190 echo "$as_me: failed program was:" >&5
21191sed 's/^/| /' conftest.$ac_ext >&5
21192
21193ac_cv_cxx_reinterpret_cast=no
21194fi
21195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21196 ac_ext=c
21197ac_cpp='$CPP $CPPFLAGS'
21198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21200ac_compiler_gnu=$ac_cv_c_compiler_gnu
21201
21202
21203fi
21204echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21205echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21206if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21207
21208cat >>confdefs.h <<\_ACEOF
21209#define HAVE_REINTERPRET_CAST
21210_ACEOF
21211
21212fi
21213
a848cd7e
SC
21214echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21215echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21216if test "${ac_cv_cxx_static_cast+set}" = set; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21218else
21219
21220
21221 ac_ext=cc
21222ac_cpp='$CXXCPP $CPPFLAGS'
21223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21226
21227 cat >conftest.$ac_ext <<_ACEOF
21228/* confdefs.h. */
21229_ACEOF
21230cat confdefs.h >>conftest.$ac_ext
21231cat >>conftest.$ac_ext <<_ACEOF
21232/* end confdefs.h. */
21233#include <typeinfo>
21234class Base { public : Base () {} virtual void f () = 0; };
21235class Derived : public Base { public : Derived () {} virtual void f () {} };
21236int g (Derived&) { return 0; }
21237int
21238main ()
21239{
21240
21241Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21242 ;
21243 return 0;
21244}
21245_ACEOF
21246rm -f conftest.$ac_objext
21247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21248 (eval $ac_compile) 2>conftest.er1
a848cd7e 21249 ac_status=$?
ac1cb8d3
VS
21250 grep -v '^ *+' conftest.er1 >conftest.err
21251 rm -f conftest.er1
21252 cat conftest.err >&5
a848cd7e
SC
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } &&
6ebeb4c7 21255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
21261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 ac_cv_cxx_static_cast=yes
21268else
21269 echo "$as_me: failed program was:" >&5
21270sed 's/^/| /' conftest.$ac_ext >&5
21271
21272ac_cv_cxx_static_cast=no
21273fi
ac1cb8d3 21274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21275 ac_ext=c
21276ac_cpp='$CPP $CPPFLAGS'
21277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280
21281
21282fi
21283echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21284echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21285if test "$ac_cv_cxx_static_cast" = yes; then
21286
21287cat >>confdefs.h <<\_ACEOF
21288#define HAVE_STATIC_CAST
21289_ACEOF
21290
21291fi
21292
21293
3c28b7cb
MW
21294if test "x$SUNCXX" = xyes; then
21295 CXXFLAGS="$CXXFLAGS -features=tmplife"
21296fi
21297
f56c22b4 21298if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21299 ac_ext=cc
21300ac_cpp='$CXXCPP $CPPFLAGS'
21301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21304
21305
f56c22b4
MW
21306 if test "$wxUSE_UNICODE" = "yes"; then
21307 std_string="std::wstring"
21308 char_type="wchar_t"
21309 else
21310 std_string="std::string"
21311 char_type="char"
21312 fi
21313
21314 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21315echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21316 cat >conftest.$ac_ext <<_ACEOF
21317/* confdefs.h. */
21318_ACEOF
21319cat confdefs.h >>conftest.$ac_ext
21320cat >>conftest.$ac_ext <<_ACEOF
21321/* end confdefs.h. */
21322#include <string>
a848cd7e
SC
21323int
21324main ()
21325{
f56c22b4 21326$std_string foo;
a848cd7e
SC
21327 ;
21328 return 0;
21329}
21330_ACEOF
21331rm -f conftest.$ac_objext
21332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21333 (eval $ac_compile) 2>conftest.er1
a848cd7e 21334 ac_status=$?
ac1cb8d3
VS
21335 grep -v '^ *+' conftest.er1 >conftest.err
21336 rm -f conftest.er1
21337 cat conftest.err >&5
a848cd7e
SC
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } &&
6ebeb4c7 21340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; } &&
21346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21349 ac_status=$?
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352 echo "$as_me:$LINENO: result: yes" >&5
21353echo "${ECHO_T}yes" >&6
0a08f02a
MB
21354 cat >>confdefs.h <<\_ACEOF
21355#define HAVE_STD_WSTRING 1
21356_ACEOF
21357
a848cd7e
SC
21358else
21359 echo "$as_me: failed program was:" >&5
21360sed 's/^/| /' conftest.$ac_ext >&5
21361
21362echo "$as_me:$LINENO: result: no" >&5
21363echo "${ECHO_T}no" >&6
f56c22b4
MW
21364 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21365echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21366 cat >conftest.$ac_ext <<_ACEOF
21367/* confdefs.h. */
21368_ACEOF
21369cat confdefs.h >>conftest.$ac_ext
21370cat >>conftest.$ac_ext <<_ACEOF
21371/* end confdefs.h. */
21372
21373 #ifdef HAVE_WCHAR_H
21374 # ifdef __CYGWIN__
21375 # include <stddef.h>
21376 # endif
21377 # include <wchar.h>
21378 #endif
21379 #ifdef HAVE_STDLIB_H
21380 # include <stdlib.h>
21381 #endif
21382 #include <stdio.h>
21383 #include <string>
21384
21385int
21386main ()
21387{
f56c22b4
MW
21388std::basic_string<$char_type> foo;
21389 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21390 ;
21391 return 0;
21392}
21393_ACEOF
21394rm -f conftest.$ac_objext
21395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21396 (eval $ac_compile) 2>conftest.er1
21397 ac_status=$?
21398 grep -v '^ *+' conftest.er1 >conftest.err
21399 rm -f conftest.er1
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } &&
6ebeb4c7 21403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; } &&
21409 { ac_try='test -s conftest.$ac_objext'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; }; then
21415 echo "$as_me:$LINENO: result: yes" >&5
21416echo "${ECHO_T}yes" >&6
21417else
21418 echo "$as_me: failed program was:" >&5
21419sed 's/^/| /' conftest.$ac_ext >&5
21420
21421echo "$as_me:$LINENO: result: no" >&5
21422echo "${ECHO_T}no" >&6
f56c22b4 21423 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21424 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21425echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21426 { (exit 1); exit 1; }; }
21427 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21428 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21429echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21430 { (exit 1); exit 1; }; }
f56c22b4
MW
21431 else
21432 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21433echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21434 wxUSE_STD_STRING=no
21435 fi
21436
0a08f02a 21437
a848cd7e 21438fi
ac1cb8d3 21439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21440
0a08f02a
MB
21441fi
21442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21443
21444 ac_ext=c
21445ac_cpp='$CPP $CPPFLAGS'
21446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21448ac_compiler_gnu=$ac_cv_c_compiler_gnu
21449
21450fi
21451
21452if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21453 ac_ext=cc
21454ac_cpp='$CXXCPP $CPPFLAGS'
21455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21458
21459
21460 echo "$as_me:$LINENO: checking for std::istream" >&5
21461echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21462if test "${ac_cv_type_std__istream+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21464else
21465 cat >conftest.$ac_ext <<_ACEOF
21466/* confdefs.h. */
21467_ACEOF
21468cat confdefs.h >>conftest.$ac_ext
21469cat >>conftest.$ac_ext <<_ACEOF
21470/* end confdefs.h. */
21471#include <iostream>
21472
21473int
21474main ()
21475{
21476if ((std::istream *) 0)
21477 return 0;
21478if (sizeof (std::istream))
21479 return 0;
21480 ;
21481 return 0;
21482}
21483_ACEOF
21484rm -f conftest.$ac_objext
21485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21486 (eval $ac_compile) 2>conftest.er1
21487 ac_status=$?
21488 grep -v '^ *+' conftest.er1 >conftest.err
21489 rm -f conftest.er1
21490 cat conftest.err >&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
6ebeb4c7 21493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21496 ac_status=$?
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; } &&
21499 { ac_try='test -s conftest.$ac_objext'
21500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; }; then
21505 ac_cv_type_std__istream=yes
21506else
21507 echo "$as_me: failed program was:" >&5
21508sed 's/^/| /' conftest.$ac_ext >&5
21509
21510ac_cv_type_std__istream=no
21511fi
21512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21513fi
21514echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21515echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21516if test $ac_cv_type_std__istream = yes; then
21517
21518cat >>confdefs.h <<_ACEOF
21519#define HAVE_STD__ISTREAM 1
21520_ACEOF
21521
21522
21523else
21524 wxUSE_STD_IOSTREAM=no
21525fi
21526echo "$as_me:$LINENO: checking for std::ostream" >&5
21527echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21528if test "${ac_cv_type_std__ostream+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21530else
21531 cat >conftest.$ac_ext <<_ACEOF
21532/* confdefs.h. */
21533_ACEOF
21534cat confdefs.h >>conftest.$ac_ext
21535cat >>conftest.$ac_ext <<_ACEOF
21536/* end confdefs.h. */
21537#include <iostream>
21538
21539int
21540main ()
21541{
21542if ((std::ostream *) 0)
21543 return 0;
21544if (sizeof (std::ostream))
21545 return 0;
21546 ;
21547 return 0;
21548}
21549_ACEOF
21550rm -f conftest.$ac_objext
21551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21552 (eval $ac_compile) 2>conftest.er1
21553 ac_status=$?
21554 grep -v '^ *+' conftest.er1 >conftest.err
21555 rm -f conftest.er1
21556 cat conftest.err >&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } &&
6ebeb4c7 21559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try='test -s conftest.$ac_objext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_type_std__ostream=yes
21572else
21573 echo "$as_me: failed program was:" >&5
21574sed 's/^/| /' conftest.$ac_ext >&5
21575
21576ac_cv_type_std__ostream=no
21577fi
21578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21579fi
21580echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21581echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21582if test $ac_cv_type_std__ostream = yes; then
21583
21584cat >>confdefs.h <<_ACEOF
21585#define HAVE_STD__OSTREAM 1
21586_ACEOF
21587
21588
21589else
21590 wxUSE_STD_IOSTREAM=no
21591fi
21592
21593
21594 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21595 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21596 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21597echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21598 { (exit 1); exit 1; }; }
21599 else
21600 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21601echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21602 fi
f56c22b4
MW
21603 fi
21604
21605 ac_ext=c
21606ac_cpp='$CPP $CPPFLAGS'
21607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21609ac_compiler_gnu=$ac_cv_c_compiler_gnu
21610
21611fi
21612
21613if test "$wxUSE_STL" = "yes"; then
21614 ac_ext=cc
21615ac_cpp='$CXXCPP $CPPFLAGS'
21616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21619
21620
21621 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21622echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
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 <string>
0a08f02a
MB
21630 #include <functional>
21631 #include <algorithm>
21632 #include <vector>
21633 #include <list>
a848cd7e
SC
21634int
21635main ()
21636{
0a08f02a
MB
21637std::vector<int> moo;
21638 std::list<int> foo;
21639 std::vector<int>::iterator it =
21640 std::find_if(moo.begin(), moo.end(),
21641 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21642 ;
21643 return 0;
21644}
21645_ACEOF
21646rm -f conftest.$ac_objext
21647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21648 (eval $ac_compile) 2>conftest.er1
a848cd7e 21649 ac_status=$?
ac1cb8d3
VS
21650 grep -v '^ *+' conftest.er1 >conftest.err
21651 rm -f conftest.er1
21652 cat conftest.err >&5
a848cd7e
SC
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } &&
6ebeb4c7 21655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657 (eval $ac_try) 2>&5
21658 ac_status=$?
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); }; } &&
21661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 echo "$as_me:$LINENO: result: yes" >&5
21668echo "${ECHO_T}yes" >&6
a848cd7e
SC
21669else
21670 echo "$as_me: failed program was:" >&5
21671sed 's/^/| /' conftest.$ac_ext >&5
21672
21673echo "$as_me:$LINENO: result: no" >&5
21674echo "${ECHO_T}no" >&6
0a08f02a
MB
21675 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21676echo "$as_me: error: Basic STL functionality missing" >&2;}
21677 { (exit 1); exit 1; }; }
a848cd7e 21678fi
ac1cb8d3 21679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21680
21681 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21682echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21683 cat >conftest.$ac_ext <<_ACEOF
21684/* confdefs.h. */
21685_ACEOF
21686cat confdefs.h >>conftest.$ac_ext
21687cat >>conftest.$ac_ext <<_ACEOF
21688/* end confdefs.h. */
21689#include <string>
21690int
21691main ()
21692{
21693std::string foo, bar;
21694 foo.compare(bar);
21695 foo.compare(1, 1, bar);
21696 foo.compare(1, 1, bar, 1, 1);
21697 foo.compare("");
21698 foo.compare(1, 1, "");
21699 foo.compare(1, 1, "", 2);
21700 ;
21701 return 0;
21702}
21703_ACEOF
21704rm -f conftest.$ac_objext
21705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21706 (eval $ac_compile) 2>conftest.er1
a848cd7e 21707 ac_status=$?
ac1cb8d3
VS
21708 grep -v '^ *+' conftest.er1 >conftest.err
21709 rm -f conftest.er1
21710 cat conftest.err >&5
a848cd7e
SC
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } &&
6ebeb4c7 21713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; } &&
21719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21722 ac_status=$?
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725 echo "$as_me:$LINENO: result: yes" >&5
21726echo "${ECHO_T}yes" >&6
21727 cat >>confdefs.h <<\_ACEOF
21728#define HAVE_STD_STRING_COMPARE 1
21729_ACEOF
21730
21731else
21732 echo "$as_me: failed program was:" >&5
21733sed 's/^/| /' conftest.$ac_ext >&5
21734
21735echo "$as_me:$LINENO: result: no" >&5
21736echo "${ECHO_T}no" >&6
21737fi
ac1cb8d3 21738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21739
21740 if test "${ac_cv_header_hash_map+set}" = set; then
21741 echo "$as_me:$LINENO: checking for hash_map" >&5
21742echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21743if test "${ac_cv_header_hash_map+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21745fi
21746echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21747echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21748else
21749 # Is the header compilable?
21750echo "$as_me:$LINENO: checking hash_map usability" >&5
21751echo $ECHO_N "checking hash_map usability... $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$ac_includes_default
21759#include <hash_map>
21760_ACEOF
21761rm -f conftest.$ac_objext
21762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21763 (eval $ac_compile) 2>conftest.er1
bdcade0a 21764 ac_status=$?
ac1cb8d3
VS
21765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
bdcade0a
MB
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
6ebeb4c7 21770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21773 ac_status=$?
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; } &&
21776 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778 (eval $ac_try) 2>&5
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; }; then
21782 ac_header_compiler=yes
21783else
21784 echo "$as_me: failed program was:" >&5
21785sed 's/^/| /' conftest.$ac_ext >&5
21786
21787ac_header_compiler=no
21788fi
ac1cb8d3 21789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21790echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21791echo "${ECHO_T}$ac_header_compiler" >&6
21792
21793# Is the header present?
21794echo "$as_me:$LINENO: checking hash_map presence" >&5
21795echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21796cat >conftest.$ac_ext <<_ACEOF
21797/* confdefs.h. */
21798_ACEOF
21799cat confdefs.h >>conftest.$ac_ext
21800cat >>conftest.$ac_ext <<_ACEOF
21801/* end confdefs.h. */
21802#include <hash_map>
21803_ACEOF
21804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } >/dev/null; then
21812 if test -s conftest.err; then
21813 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21814 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21815 else
21816 ac_cpp_err=
21817 fi
21818else
21819 ac_cpp_err=yes
21820fi
21821if test -z "$ac_cpp_err"; then
21822 ac_header_preproc=yes
21823else
21824 echo "$as_me: failed program was:" >&5
21825sed 's/^/| /' conftest.$ac_ext >&5
21826
21827 ac_header_preproc=no
21828fi
21829rm -f conftest.err conftest.$ac_ext
21830echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21831echo "${ECHO_T}$ac_header_preproc" >&6
21832
21833# So? What about this header?
ac1cb8d3
VS
21834case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21835 yes:no: )
bdcade0a
MB
21836 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21837echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21838 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21839echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21840 ac_header_preproc=yes
bdcade0a 21841 ;;
ac1cb8d3 21842 no:yes:* )
bdcade0a
MB
21843 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21844echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21845 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21846echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21847 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21848echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21849 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21850echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21851 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21852echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21853 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21854echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21855 (
21856 cat <<\_ASBOX
ac1cb8d3
VS
21857## ----------------------------------------- ##
21858## Report this to wx-dev@lists.wxwidgets.org ##
21859## ----------------------------------------- ##
bdcade0a
MB
21860_ASBOX
21861 ) |
21862 sed "s/^/$as_me: WARNING: /" >&2
21863 ;;
21864esac
21865echo "$as_me:$LINENO: checking for hash_map" >&5
21866echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21867if test "${ac_cv_header_hash_map+set}" = set; then
21868 echo $ECHO_N "(cached) $ECHO_C" >&6
21869else
21870 ac_cv_header_hash_map=$ac_header_preproc
21871fi
21872echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21873echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21874
21875fi
21876if test $ac_cv_header_hash_map = yes; then
21877 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21878echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21879 cat >conftest.$ac_ext <<_ACEOF
21880/* confdefs.h. */
21881_ACEOF
21882cat confdefs.h >>conftest.$ac_ext
21883cat >>conftest.$ac_ext <<_ACEOF
21884/* end confdefs.h. */
21885#include <hash_map>
21886 #include <hash_set>
21887int
21888main ()
21889{
21890std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21891 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21892 ;
21893 return 0;
21894}
21895_ACEOF
21896rm -f conftest.$ac_objext
21897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21898 (eval $ac_compile) 2>conftest.er1
bdcade0a 21899 ac_status=$?
ac1cb8d3
VS
21900 grep -v '^ *+' conftest.er1 >conftest.err
21901 rm -f conftest.er1
21902 cat conftest.err >&5
bdcade0a
MB
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } &&
6ebeb4c7 21905 { ac_try='test -z "$ac_cxx_werror_flag" || 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'
bdcade0a
MB
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 echo "$as_me:$LINENO: result: yes" >&5
21918echo "${ECHO_T}yes" >&6
21919 cat >>confdefs.h <<\_ACEOF
21920#define HAVE_HASH_MAP 1
21921_ACEOF
21922
21923 cat >>confdefs.h <<\_ACEOF
21924#define HAVE_STD_HASH_MAP 1
21925_ACEOF
21926
21927else
21928 echo "$as_me: failed program was:" >&5
21929sed 's/^/| /' conftest.$ac_ext >&5
21930
21931echo "$as_me:$LINENO: result: no" >&5
21932echo "${ECHO_T}no" >&6
21933fi
ac1cb8d3 21934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21935
21936fi
21937
21938
21939
21940 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21941 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21942echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21943if test "${ac_cv_header_ext_hash_map+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21945fi
21946echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21947echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21948else
21949 # Is the header compilable?
21950echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21951echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21952cat >conftest.$ac_ext <<_ACEOF
21953/* confdefs.h. */
21954_ACEOF
21955cat confdefs.h >>conftest.$ac_ext
21956cat >>conftest.$ac_ext <<_ACEOF
21957/* end confdefs.h. */
21958$ac_includes_default
21959#include <ext/hash_map>
21960_ACEOF
21961rm -f conftest.$ac_objext
21962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21963 (eval $ac_compile) 2>conftest.er1
bdcade0a 21964 ac_status=$?
ac1cb8d3
VS
21965 grep -v '^ *+' conftest.er1 >conftest.err
21966 rm -f conftest.er1
21967 cat conftest.err >&5
bdcade0a
MB
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } &&
6ebeb4c7 21970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21973 ac_status=$?
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; } &&
21976 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21979 ac_status=$?
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; }; then
21982 ac_header_compiler=yes
21983else
21984 echo "$as_me: failed program was:" >&5
21985sed 's/^/| /' conftest.$ac_ext >&5
21986
21987ac_header_compiler=no
21988fi
ac1cb8d3 21989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21991echo "${ECHO_T}$ac_header_compiler" >&6
21992
21993# Is the header present?
21994echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21995echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21996cat >conftest.$ac_ext <<_ACEOF
21997/* confdefs.h. */
21998_ACEOF
21999cat confdefs.h >>conftest.$ac_ext
22000cat >>conftest.$ac_ext <<_ACEOF
22001/* end confdefs.h. */
22002#include <ext/hash_map>
22003_ACEOF
22004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22006 ac_status=$?
22007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } >/dev/null; then
22012 if test -s conftest.err; then
22013 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22014 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22015 else
22016 ac_cpp_err=
22017 fi
22018else
22019 ac_cpp_err=yes
22020fi
22021if test -z "$ac_cpp_err"; then
22022 ac_header_preproc=yes
22023else
22024 echo "$as_me: failed program was:" >&5
22025sed 's/^/| /' conftest.$ac_ext >&5
22026
22027 ac_header_preproc=no
22028fi
22029rm -f conftest.err conftest.$ac_ext
22030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22031echo "${ECHO_T}$ac_header_preproc" >&6
22032
22033# So? What about this header?
ac1cb8d3
VS
22034case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22035 yes:no: )
bdcade0a
MB
22036 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22037echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22038 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22039echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22040 ac_header_preproc=yes
bdcade0a 22041 ;;
ac1cb8d3 22042 no:yes:* )
bdcade0a
MB
22043 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22044echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22045 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22046echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22048echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22050echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22051 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22052echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22053 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22054echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22055 (
22056 cat <<\_ASBOX
ac1cb8d3
VS
22057## ----------------------------------------- ##
22058## Report this to wx-dev@lists.wxwidgets.org ##
22059## ----------------------------------------- ##
bdcade0a
MB
22060_ASBOX
22061 ) |
22062 sed "s/^/$as_me: WARNING: /" >&2
22063 ;;
22064esac
22065echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22066echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22067if test "${ac_cv_header_ext_hash_map+set}" = set; then
22068 echo $ECHO_N "(cached) $ECHO_C" >&6
22069else
22070 ac_cv_header_ext_hash_map=$ac_header_preproc
22071fi
22072echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22073echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22074
22075fi
22076if test $ac_cv_header_ext_hash_map = yes; then
22077 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22078echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22079 cat >conftest.$ac_ext <<_ACEOF
22080/* confdefs.h. */
22081_ACEOF
22082cat confdefs.h >>conftest.$ac_ext
22083cat >>conftest.$ac_ext <<_ACEOF
22084/* end confdefs.h. */
22085#include <ext/hash_map>
22086 #include <ext/hash_set>
22087int
22088main ()
22089{
22090__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22091 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22092 ;
22093 return 0;
22094}
22095_ACEOF
22096rm -f conftest.$ac_objext
22097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22098 (eval $ac_compile) 2>conftest.er1
bdcade0a 22099 ac_status=$?
ac1cb8d3
VS
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
bdcade0a
MB
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
6ebeb4c7 22105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22107 (eval $ac_try) 2>&5
22108 ac_status=$?
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); }; } &&
22111 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; }; then
22117 echo "$as_me:$LINENO: result: yes" >&5
22118echo "${ECHO_T}yes" >&6
22119 cat >>confdefs.h <<\_ACEOF
22120#define HAVE_EXT_HASH_MAP 1
22121_ACEOF
22122
22123 cat >>confdefs.h <<\_ACEOF
22124#define HAVE_GNU_CXX_HASH_MAP 1
22125_ACEOF
22126
22127else
22128 echo "$as_me: failed program was:" >&5
22129sed 's/^/| /' conftest.$ac_ext >&5
22130
22131echo "$as_me:$LINENO: result: no" >&5
22132echo "${ECHO_T}no" >&6
22133fi
ac1cb8d3 22134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22135
22136fi
22137
22138
a848cd7e
SC
22139
22140 ac_ext=c
22141ac_cpp='$CPP $CPPFLAGS'
22142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22144ac_compiler_gnu=$ac_cv_c_compiler_gnu
22145
22146fi
22147
22148
22149SEARCH_INCLUDE="\
22150 /usr/local/include \
22151 \
22152 /usr/Motif-2.1/include \
22153 /usr/Motif-1.2/include \
22154 /usr/include/Motif1.2 \
22155 /opt/xpm/include/X11 \
22156 /opt/GBxpm/include/ \
22157 /opt/GBxpm/X11/include/ \
22158 \
22159 /usr/dt/include \
22160 /usr/openwin/include \
22161 \
22162 /usr/include/Xm \
22163 \
22164 /usr/X11R6/include \
22165 /usr/X11R6.4/include \
22166 /usr/X11R5/include \
22167 /usr/X11R4/include \
22168 \
22169 /usr/include/X11R6 \
22170 /usr/include/X11R5 \
22171 /usr/include/X11R4 \
22172 \
22173 /usr/local/X11R6/include \
22174 /usr/local/X11R5/include \
22175 /usr/local/X11R4/include \
22176 \
22177 /usr/local/include/X11R6 \
22178 /usr/local/include/X11R5 \
22179 /usr/local/include/X11R4 \
22180 \
22181 /usr/X11/include \
22182 /usr/include/X11 \
22183 /usr/local/X11/include \
22184 /usr/local/include/X11 \
22185 \
22186 /usr/X386/include \
22187 /usr/x386/include \
22188 /usr/XFree86/include/X11 \
22189 \
22190 X:/XFree86/include \
22191 X:/XFree86/include/X11 \
22192 \
22193 /usr/include/gtk \
22194 /usr/local/include/gtk \
22195 /usr/include/glib \
22196 /usr/local/include/glib \
22197 \
22198 /usr/include/qt \
22199 /usr/local/include/qt \
22200 \
22201 /usr/local/arm/3.3.2/include \
22202 \
22203 /usr/include/windows \
22204 /usr/include/wine \
22205 /usr/local/include/wine \
22206 \
22207 /usr/unsupported/include \
22208 /usr/athena/include \
22209 /usr/local/x11r5/include \
22210 /usr/lpp/Xamples/include \
22211 \
22212 /usr/openwin/share/include"
22213
07158944 22214SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e 22215
3eca31dc
MW
22216if test "$build" != "$host" -a "$GCC" = yes; then
22217 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22218 cross_root=`dirname $cross_root`
22219 cross_root=`dirname $cross_root`
22220
22221 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22222 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22223
22224 if test -z "$PKG_CONFIG_PATH"; then
22225 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22226 export PKG_CONFIG_PATH
22227 fi
22228
22229 if test -z "$x_includes" -o "$x_includes" = NONE; then
22230
22231ac_find_includes=
22232for ac_dir in $SEARCH_INCLUDE /usr/include;
22233 do
22234 if test -f "$ac_dir/X11/Intrinsic.h"; then
22235 ac_find_includes=$ac_dir
22236 break
22237 fi
22238 done
22239
22240 x_includes=$ac_find_includes
22241 fi
22242 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22243
22244ac_find_libraries=
22245for ac_dir in $SEARCH_LIB /usr/lib;
22246 do
22247 for ac_extension in a so sl dylib dll.a; do
22248 if test -f "$ac_dir/libXt.$ac_extension"; then
22249 ac_find_libraries=$ac_dir
22250 break 2
22251 fi
22252 done
22253 done
22254
22255 x_libraries=$ac_find_libraries
22256 fi
22257 fi
22258fi
22259
a848cd7e
SC
22260
22261cat >confcache <<\_ACEOF
22262# This file is a shell script that caches the results of configure
22263# tests run on this system so they can be shared between configure
22264# scripts and configure runs, see configure's option --config-cache.
22265# It is not useful on other systems. If it contains results you don't
22266# want to keep, you may remove or edit it.
22267#
22268# config.status only pays attention to the cache file if you give it
22269# the --recheck option to rerun configure.
22270#
22271# `ac_cv_env_foo' variables (set or unset) will be overridden when
22272# loading this file, other *unset* `ac_cv_foo' will be assigned the
22273# following values.
22274
22275_ACEOF
22276
22277# The following way of writing the cache mishandles newlines in values,
22278# but we know of no workaround that is simple, portable, and efficient.
22279# So, don't put newlines in cache variables' values.
22280# Ultrix sh set writes to stderr and can't be redirected directly,
22281# and sets the high bit in the cache file unless we assign to the vars.
22282{
22283 (set) 2>&1 |
22284 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22285 *ac_space=\ *)
22286 # `set' does not quote correctly, so add quotes (double-quote
22287 # substitution turns \\\\ into \\, and sed turns \\ into \).
22288 sed -n \
ac1cb8d3
VS
22289 "s/'/'\\\\''/g;
22290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22291 ;;
22292 *)
22293 # `set' quotes correctly as required by POSIX, so do not add quotes.
22294 sed -n \
ac1cb8d3 22295 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22296 ;;
22297 esac;
22298} |
22299 sed '
22300 t clear
22301 : clear
22302 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22303 t end
22304 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22305 : end' >>confcache
22306if diff $cache_file confcache >/dev/null 2>&1; then :; else
22307 if test -w $cache_file; then
22308 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22309 cat confcache >$cache_file
22310 else
22311 echo "not updating unwritable cache $cache_file"
22312 fi
22313fi
22314rm -f confcache
22315
22316if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22317 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22318echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22319if test "${wx_cv_lib_glibc21+set}" = set; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22321else
22322
22323 cat >conftest.$ac_ext <<_ACEOF
22324/* confdefs.h. */
22325_ACEOF
22326cat confdefs.h >>conftest.$ac_ext
22327cat >>conftest.$ac_ext <<_ACEOF
22328/* end confdefs.h. */
22329#include <features.h>
22330int
22331main ()
22332{
22333
22334 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22335 #error not glibc2.1
22336 #endif
22337
22338 ;
22339 return 0;
22340}
22341_ACEOF
22342rm -f conftest.$ac_objext
22343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22344 (eval $ac_compile) 2>conftest.er1
a848cd7e 22345 ac_status=$?
ac1cb8d3
VS
22346 grep -v '^ *+' conftest.er1 >conftest.err
22347 rm -f conftest.er1
22348 cat conftest.err >&5
a848cd7e
SC
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } &&
6ebeb4c7 22351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22354 ac_status=$?
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; } &&
22357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22360 ac_status=$?
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; }; then
22363
22364 wx_cv_lib_glibc21=yes
22365
22366else
22367 echo "$as_me: failed program was:" >&5
22368sed 's/^/| /' conftest.$ac_ext >&5
22369
22370
22371 wx_cv_lib_glibc21=no
22372
22373
22374fi
ac1cb8d3 22375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22376
22377fi
22378echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22379echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22380 if test "$wx_cv_lib_glibc21" = "yes"; then
22381 cat >>confdefs.h <<\_ACEOF
22382#define wxHAVE_GLIBC2 1
22383_ACEOF
22384
22385 fi
22386fi
22387
22388if test "x$wx_cv_lib_glibc21" = "xyes"; then
22389 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22390 cat >>confdefs.h <<\_ACEOF
22391#define _GNU_SOURCE 1
22392_ACEOF
22393
22394 fi
22395fi
22396
22397
22398
22399if test "$wxUSE_REGEX" != "no"; then
22400 cat >>confdefs.h <<\_ACEOF
22401#define wxUSE_REGEX 1
22402_ACEOF
22403
22404
22405 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22406 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22407echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22408 wxUSE_REGEX=builtin
22409 fi
22410
22411 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22412 if test "${ac_cv_header_regex_h+set}" = set; then
22413 echo "$as_me:$LINENO: checking for regex.h" >&5
22414echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22415if test "${ac_cv_header_regex_h+set}" = set; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22417fi
22418echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22419echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22420else
22421 # Is the header compilable?
22422echo "$as_me:$LINENO: checking regex.h usability" >&5
22423echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22424cat >conftest.$ac_ext <<_ACEOF
22425/* confdefs.h. */
22426_ACEOF
22427cat confdefs.h >>conftest.$ac_ext
22428cat >>conftest.$ac_ext <<_ACEOF
22429/* end confdefs.h. */
22430$ac_includes_default
22431#include <regex.h>
22432_ACEOF
22433rm -f conftest.$ac_objext
22434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22435 (eval $ac_compile) 2>conftest.er1
a848cd7e 22436 ac_status=$?
ac1cb8d3
VS
22437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
a848cd7e
SC
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } &&
6ebeb4c7 22442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; } &&
22448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22451 ac_status=$?
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; }; then
22454 ac_header_compiler=yes
22455else
22456 echo "$as_me: failed program was:" >&5
22457sed 's/^/| /' conftest.$ac_ext >&5
22458
22459ac_header_compiler=no
22460fi
ac1cb8d3 22461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22462echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22463echo "${ECHO_T}$ac_header_compiler" >&6
22464
22465# Is the header present?
22466echo "$as_me:$LINENO: checking regex.h presence" >&5
22467echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22468cat >conftest.$ac_ext <<_ACEOF
22469/* confdefs.h. */
22470_ACEOF
22471cat confdefs.h >>conftest.$ac_ext
22472cat >>conftest.$ac_ext <<_ACEOF
22473/* end confdefs.h. */
22474#include <regex.h>
22475_ACEOF
22476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22478 ac_status=$?
22479 grep -v '^ *+' conftest.er1 >conftest.err
22480 rm -f conftest.er1
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } >/dev/null; then
22484 if test -s conftest.err; then
22485 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22487 else
22488 ac_cpp_err=
22489 fi
22490else
22491 ac_cpp_err=yes
22492fi
22493if test -z "$ac_cpp_err"; then
22494 ac_header_preproc=yes
22495else
22496 echo "$as_me: failed program was:" >&5
22497sed 's/^/| /' conftest.$ac_ext >&5
22498
22499 ac_header_preproc=no
22500fi
22501rm -f conftest.err conftest.$ac_ext
22502echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22503echo "${ECHO_T}$ac_header_preproc" >&6
22504
22505# So? What about this header?
ac1cb8d3
VS
22506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22507 yes:no: )
a848cd7e
SC
22508 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22509echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22510 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22511echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22512 ac_header_preproc=yes
a848cd7e 22513 ;;
ac1cb8d3 22514 no:yes:* )
a848cd7e
SC
22515 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22516echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22517 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22518echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22520echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22521 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22522echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22523 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22524echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22525 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22526echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22527 (
22528 cat <<\_ASBOX
ac1cb8d3
VS
22529## ----------------------------------------- ##
22530## Report this to wx-dev@lists.wxwidgets.org ##
22531## ----------------------------------------- ##
a848cd7e
SC
22532_ASBOX
22533 ) |
22534 sed "s/^/$as_me: WARNING: /" >&2
22535 ;;
22536esac
22537echo "$as_me:$LINENO: checking for regex.h" >&5
22538echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22539if test "${ac_cv_header_regex_h+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22541else
22542 ac_cv_header_regex_h=$ac_header_preproc
22543fi
22544echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22545echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22546
22547fi
22548if test $ac_cv_header_regex_h = yes; then
22549
22550for ac_func in regcomp
22551do
22552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22553echo "$as_me:$LINENO: checking for $ac_func" >&5
22554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22555if eval "test \"\${$as_ac_var+set}\" = set"; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557else
22558 cat >conftest.$ac_ext <<_ACEOF
22559/* confdefs.h. */
22560_ACEOF
22561cat confdefs.h >>conftest.$ac_ext
22562cat >>conftest.$ac_ext <<_ACEOF
22563/* end confdefs.h. */
ac1cb8d3
VS
22564/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22566#define $ac_func innocuous_$ac_func
22567
a848cd7e
SC
22568/* System header to define __stub macros and hopefully few prototypes,
22569 which can conflict with char $ac_func (); below.
22570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22571 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22572
a848cd7e
SC
22573#ifdef __STDC__
22574# include <limits.h>
22575#else
22576# include <assert.h>
22577#endif
ac1cb8d3
VS
22578
22579#undef $ac_func
22580
a848cd7e
SC
22581/* Override any gcc2 internal prototype to avoid an error. */
22582#ifdef __cplusplus
22583extern "C"
22584{
22585#endif
22586/* We use char because int might match the return type of a gcc2
22587 builtin and then its argument prototype would still apply. */
22588char $ac_func ();
22589/* The GNU C library defines this for functions which it implements
22590 to always fail with ENOSYS. Some functions are actually named
22591 something starting with __ and the normal name is an alias. */
22592#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22593choke me
22594#else
22595char (*f) () = $ac_func;
22596#endif
22597#ifdef __cplusplus
22598}
22599#endif
22600
22601int
22602main ()
22603{
22604return f != $ac_func;
22605 ;
22606 return 0;
22607}
22608_ACEOF
22609rm -f conftest.$ac_objext conftest$ac_exeext
22610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22611 (eval $ac_link) 2>conftest.er1
a848cd7e 22612 ac_status=$?
ac1cb8d3
VS
22613 grep -v '^ *+' conftest.er1 >conftest.err
22614 rm -f conftest.er1
22615 cat conftest.err >&5
a848cd7e
SC
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } &&
6ebeb4c7 22618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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_exeext'
a848cd7e
SC
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 eval "$as_ac_var=yes"
22631else
22632 echo "$as_me: failed program was:" >&5
22633sed 's/^/| /' conftest.$ac_ext >&5
22634
22635eval "$as_ac_var=no"
22636fi
ac1cb8d3
VS
22637rm -f conftest.err conftest.$ac_objext \
22638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22639fi
22640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22642if test `eval echo '${'$as_ac_var'}'` = yes; then
22643 cat >>confdefs.h <<_ACEOF
22644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22645_ACEOF
22646
22647fi
22648done
22649
22650fi
22651
22652
22653
22654 if test "x$ac_cv_func_regcomp" != "xyes"; then
22655 if test "$wxUSE_REGEX" = "sys" ; then
22656 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22657echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22658 { (exit 1); exit 1; }; }
22659 else
22660 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22661echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22662 wxUSE_REGEX=builtin
22663 fi
22664 else
22665 wxUSE_REGEX=sys
22666 cat >>confdefs.h <<\_ACEOF
22667#define WX_NO_REGEX_ADVANCED 1
22668_ACEOF
22669
22670 fi
22671 fi
22672fi
22673
22674
22675ZLIB_LINK=
22676if test "$wxUSE_ZLIB" != "no" ; then
22677 cat >>confdefs.h <<\_ACEOF
22678#define wxUSE_ZLIB 1
22679_ACEOF
22680
22681
22682 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22683 if test "$USE_DARWIN" = 1; then
22684 system_zlib_h_ok="yes"
22685 else
22686 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22687echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22688if test "${ac_cv_header_zlib_h+set}" = set; then
22689 echo $ECHO_N "(cached) $ECHO_C" >&6
22690else
22691 if test "$cross_compiling" = yes; then
22692 unset ac_cv_header_zlib_h
22693
22694else
22695 cat >conftest.$ac_ext <<_ACEOF
22696/* confdefs.h. */
22697_ACEOF
22698cat confdefs.h >>conftest.$ac_ext
22699cat >>conftest.$ac_ext <<_ACEOF
22700/* end confdefs.h. */
22701
22702 #include <zlib.h>
22703 #include <stdio.h>
22704
22705 int main()
22706 {
22707 FILE *f=fopen("conftestval", "w");
22708 if (!f) exit(1);
22709 fprintf(f, "%s",
22710 ZLIB_VERSION[0] == '1' &&
22711 (ZLIB_VERSION[2] > '1' ||
22712 (ZLIB_VERSION[2] == '1' &&
22713 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22714 exit(0);
22715 }
22716
22717_ACEOF
22718rm -f conftest$ac_exeext
22719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22720 (eval $ac_link) 2>&5
22721 ac_status=$?
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22725 (eval $ac_try) 2>&5
22726 ac_status=$?
22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); }; }; then
22729 ac_cv_header_zlib_h=`cat conftestval`
22730else
22731 echo "$as_me: program exited with status $ac_status" >&5
22732echo "$as_me: failed program was:" >&5
22733sed 's/^/| /' conftest.$ac_ext >&5
22734
22735( exit $ac_status )
22736ac_cv_header_zlib_h=no
22737fi
ac1cb8d3 22738rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22739fi
22740
22741fi
22742echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22743echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22744 if test "${ac_cv_header_zlib_h+set}" = set; then
22745 echo "$as_me:$LINENO: checking for zlib.h" >&5
22746echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22747if test "${ac_cv_header_zlib_h+set}" = set; then
22748 echo $ECHO_N "(cached) $ECHO_C" >&6
22749fi
22750echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22751echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22752else
22753 # Is the header compilable?
22754echo "$as_me:$LINENO: checking zlib.h usability" >&5
22755echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22756cat >conftest.$ac_ext <<_ACEOF
22757/* confdefs.h. */
22758_ACEOF
22759cat confdefs.h >>conftest.$ac_ext
22760cat >>conftest.$ac_ext <<_ACEOF
22761/* end confdefs.h. */
22762$ac_includes_default
22763#include <zlib.h>
22764_ACEOF
22765rm -f conftest.$ac_objext
22766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22767 (eval $ac_compile) 2>conftest.er1
a848cd7e 22768 ac_status=$?
ac1cb8d3
VS
22769 grep -v '^ *+' conftest.er1 >conftest.err
22770 rm -f conftest.er1
22771 cat conftest.err >&5
a848cd7e
SC
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } &&
6ebeb4c7 22774 { ac_try='test -z "$ac_c_werror_flag" || 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 ac_header_compiler=yes
22787else
22788 echo "$as_me: failed program was:" >&5
22789sed 's/^/| /' conftest.$ac_ext >&5
22790
22791ac_header_compiler=no
22792fi
ac1cb8d3 22793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22794echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22795echo "${ECHO_T}$ac_header_compiler" >&6
22796
22797# Is the header present?
22798echo "$as_me:$LINENO: checking zlib.h presence" >&5
22799echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22800cat >conftest.$ac_ext <<_ACEOF
22801/* confdefs.h. */
22802_ACEOF
22803cat confdefs.h >>conftest.$ac_ext
22804cat >>conftest.$ac_ext <<_ACEOF
22805/* end confdefs.h. */
22806#include <zlib.h>
22807_ACEOF
22808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22810 ac_status=$?
22811 grep -v '^ *+' conftest.er1 >conftest.err
22812 rm -f conftest.er1
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } >/dev/null; then
22816 if test -s conftest.err; then
22817 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22819 else
22820 ac_cpp_err=
22821 fi
22822else
22823 ac_cpp_err=yes
22824fi
22825if test -z "$ac_cpp_err"; then
22826 ac_header_preproc=yes
22827else
22828 echo "$as_me: failed program was:" >&5
22829sed 's/^/| /' conftest.$ac_ext >&5
22830
22831 ac_header_preproc=no
22832fi
22833rm -f conftest.err conftest.$ac_ext
22834echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22835echo "${ECHO_T}$ac_header_preproc" >&6
22836
22837# So? What about this header?
ac1cb8d3
VS
22838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22839 yes:no: )
a848cd7e
SC
22840 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22841echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22842 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22843echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22844 ac_header_preproc=yes
a848cd7e 22845 ;;
ac1cb8d3 22846 no:yes:* )
a848cd7e
SC
22847 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22848echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22849 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22850echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22851 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22852echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22853 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22854echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22855 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22856echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22857 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22858echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22859 (
22860 cat <<\_ASBOX
ac1cb8d3
VS
22861## ----------------------------------------- ##
22862## Report this to wx-dev@lists.wxwidgets.org ##
22863## ----------------------------------------- ##
a848cd7e
SC
22864_ASBOX
22865 ) |
22866 sed "s/^/$as_me: WARNING: /" >&2
22867 ;;
22868esac
22869echo "$as_me:$LINENO: checking for zlib.h" >&5
22870echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22871if test "${ac_cv_header_zlib_h+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22873else
22874 ac_cv_header_zlib_h=$ac_header_preproc
22875fi
22876echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22877echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22878
22879fi
22880
22881
22882
22883 system_zlib_h_ok=$ac_cv_header_zlib_h
22884 fi
22885
22886 if test "$system_zlib_h_ok" = "yes"; then
22887 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22888echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22889if test "${ac_cv_lib_z_deflate+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22891else
22892 ac_check_lib_save_LIBS=$LIBS
22893LIBS="-lz $LIBS"
22894cat >conftest.$ac_ext <<_ACEOF
22895/* confdefs.h. */
22896_ACEOF
22897cat confdefs.h >>conftest.$ac_ext
22898cat >>conftest.$ac_ext <<_ACEOF
22899/* end confdefs.h. */
22900
22901/* Override any gcc2 internal prototype to avoid an error. */
22902#ifdef __cplusplus
22903extern "C"
22904#endif
22905/* We use char because int might match the return type of a gcc2
22906 builtin and then its argument prototype would still apply. */
22907char deflate ();
22908int
22909main ()
22910{
22911deflate ();
22912 ;
22913 return 0;
22914}
22915_ACEOF
22916rm -f conftest.$ac_objext conftest$ac_exeext
22917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22918 (eval $ac_link) 2>conftest.er1
a848cd7e 22919 ac_status=$?
ac1cb8d3
VS
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
a848cd7e
SC
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } &&
6ebeb4c7 22925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22927 (eval $ac_try) 2>&5
22928 ac_status=$?
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; } &&
22931 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22933 (eval $ac_try) 2>&5
22934 ac_status=$?
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); }; }; then
22937 ac_cv_lib_z_deflate=yes
22938else
22939 echo "$as_me: failed program was:" >&5
22940sed 's/^/| /' conftest.$ac_ext >&5
22941
22942ac_cv_lib_z_deflate=no
22943fi
ac1cb8d3
VS
22944rm -f conftest.err conftest.$ac_objext \
22945 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22946LIBS=$ac_check_lib_save_LIBS
22947fi
22948echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22949echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22950if test $ac_cv_lib_z_deflate = yes; then
22951 ZLIB_LINK=" -lz"
22952fi
22953
22954 fi
22955
22956 if test "x$ZLIB_LINK" = "x" ; then
22957 if test "$wxUSE_ZLIB" = "sys" ; then
22958 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22959echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22960 { (exit 1); exit 1; }; }
22961 else
22962 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22963echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22964 wxUSE_ZLIB=builtin
22965 fi
22966 else
22967 wxUSE_ZLIB=sys
22968 fi
22969 fi
22970fi
22971
22972
22973PNG_LINK=
22974if test "$wxUSE_LIBPNG" != "no" ; then
22975 cat >>confdefs.h <<\_ACEOF
22976#define wxUSE_LIBPNG 1
22977_ACEOF
22978
22979
22980 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22981 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22982echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22983 wxUSE_LIBPNG=sys
22984 fi
22985
22986 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22987 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22988echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22989 wxUSE_LIBPNG=builtin
22990 fi
22991
22992 if test "$wxUSE_MGL" != 1 ; then
22993 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22994 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22995echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22996if test "${ac_cv_header_png_h+set}" = set; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
22998else
22999 if test "$cross_compiling" = yes; then
23000 unset ac_cv_header_png_h
23001
23002else
23003 cat >conftest.$ac_ext <<_ACEOF
23004/* confdefs.h. */
23005_ACEOF
23006cat confdefs.h >>conftest.$ac_ext
23007cat >>conftest.$ac_ext <<_ACEOF
23008/* end confdefs.h. */
23009
23010 #include <png.h>
23011 #include <stdio.h>
23012
23013 int main()
23014 {
23015 FILE *f=fopen("conftestval", "w");
23016 if (!f) exit(1);
23017 fprintf(f, "%s",
23018 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23019 exit(0);
23020 }
23021
23022_ACEOF
23023rm -f conftest$ac_exeext
23024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23025 (eval $ac_link) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23031 ac_status=$?
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; }; then
23034 ac_cv_header_png_h=`cat conftestval`
23035else
23036 echo "$as_me: program exited with status $ac_status" >&5
23037echo "$as_me: failed program was:" >&5
23038sed 's/^/| /' conftest.$ac_ext >&5
23039
23040( exit $ac_status )
23041ac_cv_header_png_h=no
23042fi
ac1cb8d3 23043rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23044fi
23045
23046fi
23047echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23048echo "${ECHO_T}$ac_cv_header_png_h" >&6
23049 if test "${ac_cv_header_png_h+set}" = set; then
23050 echo "$as_me:$LINENO: checking for png.h" >&5
23051echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23052if test "${ac_cv_header_png_h+set}" = set; then
23053 echo $ECHO_N "(cached) $ECHO_C" >&6
23054fi
23055echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23056echo "${ECHO_T}$ac_cv_header_png_h" >&6
23057else
23058 # Is the header compilable?
23059echo "$as_me:$LINENO: checking png.h usability" >&5
23060echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23061cat >conftest.$ac_ext <<_ACEOF
23062/* confdefs.h. */
23063_ACEOF
23064cat confdefs.h >>conftest.$ac_ext
23065cat >>conftest.$ac_ext <<_ACEOF
23066/* end confdefs.h. */
23067$ac_includes_default
23068#include <png.h>
23069_ACEOF
23070rm -f conftest.$ac_objext
23071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23072 (eval $ac_compile) 2>conftest.er1
a848cd7e 23073 ac_status=$?
ac1cb8d3
VS
23074 grep -v '^ *+' conftest.er1 >conftest.err
23075 rm -f conftest.er1
23076 cat conftest.err >&5
a848cd7e
SC
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } &&
6ebeb4c7 23079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23091 ac_header_compiler=yes
23092else
23093 echo "$as_me: failed program was:" >&5
23094sed 's/^/| /' conftest.$ac_ext >&5
23095
23096ac_header_compiler=no
23097fi
ac1cb8d3 23098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23100echo "${ECHO_T}$ac_header_compiler" >&6
23101
23102# Is the header present?
23103echo "$as_me:$LINENO: checking png.h presence" >&5
23104echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23105cat >conftest.$ac_ext <<_ACEOF
23106/* confdefs.h. */
23107_ACEOF
23108cat confdefs.h >>conftest.$ac_ext
23109cat >>conftest.$ac_ext <<_ACEOF
23110/* end confdefs.h. */
23111#include <png.h>
23112_ACEOF
23113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23115 ac_status=$?
23116 grep -v '^ *+' conftest.er1 >conftest.err
23117 rm -f conftest.er1
23118 cat conftest.err >&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } >/dev/null; then
23121 if test -s conftest.err; then
23122 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23124 else
23125 ac_cpp_err=
23126 fi
23127else
23128 ac_cpp_err=yes
23129fi
23130if test -z "$ac_cpp_err"; then
23131 ac_header_preproc=yes
23132else
23133 echo "$as_me: failed program was:" >&5
23134sed 's/^/| /' conftest.$ac_ext >&5
23135
23136 ac_header_preproc=no
23137fi
23138rm -f conftest.err conftest.$ac_ext
23139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23140echo "${ECHO_T}$ac_header_preproc" >&6
23141
23142# So? What about this header?
ac1cb8d3
VS
23143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23144 yes:no: )
a848cd7e
SC
23145 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23146echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23147 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23148echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23149 ac_header_preproc=yes
a848cd7e 23150 ;;
ac1cb8d3 23151 no:yes:* )
a848cd7e
SC
23152 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23153echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23154 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23155echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23156 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23157echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23158 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23159echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23160 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23161echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23162 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23163echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23164 (
23165 cat <<\_ASBOX
ac1cb8d3
VS
23166## ----------------------------------------- ##
23167## Report this to wx-dev@lists.wxwidgets.org ##
23168## ----------------------------------------- ##
a848cd7e
SC
23169_ASBOX
23170 ) |
23171 sed "s/^/$as_me: WARNING: /" >&2
23172 ;;
23173esac
23174echo "$as_me:$LINENO: checking for png.h" >&5
23175echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23176if test "${ac_cv_header_png_h+set}" = set; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23178else
23179 ac_cv_header_png_h=$ac_header_preproc
23180fi
23181echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23182echo "${ECHO_T}$ac_cv_header_png_h" >&6
23183
23184fi
23185
23186
23187
23188 if test "$ac_cv_header_png_h" = "yes"; then
23189 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23190echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23191if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23192 echo $ECHO_N "(cached) $ECHO_C" >&6
23193else
23194 ac_check_lib_save_LIBS=$LIBS
23195LIBS="-lpng -lz -lm $LIBS"
23196cat >conftest.$ac_ext <<_ACEOF
23197/* confdefs.h. */
23198_ACEOF
23199cat confdefs.h >>conftest.$ac_ext
23200cat >>conftest.$ac_ext <<_ACEOF
23201/* end confdefs.h. */
23202
23203/* Override any gcc2 internal prototype to avoid an error. */
23204#ifdef __cplusplus
23205extern "C"
23206#endif
23207/* We use char because int might match the return type of a gcc2
23208 builtin and then its argument prototype would still apply. */
23209char png_check_sig ();
23210int
23211main ()
23212{
23213png_check_sig ();
23214 ;
23215 return 0;
23216}
23217_ACEOF
23218rm -f conftest.$ac_objext conftest$ac_exeext
23219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23220 (eval $ac_link) 2>conftest.er1
a848cd7e 23221 ac_status=$?
ac1cb8d3
VS
23222 grep -v '^ *+' conftest.er1 >conftest.err
23223 rm -f conftest.er1
23224 cat conftest.err >&5
a848cd7e
SC
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } &&
6ebeb4c7 23227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229 (eval $ac_try) 2>&5
23230 ac_status=$?
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); }; } &&
23233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235 (eval $ac_try) 2>&5
23236 ac_status=$?
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); }; }; then
23239 ac_cv_lib_png_png_check_sig=yes
23240else
23241 echo "$as_me: failed program was:" >&5
23242sed 's/^/| /' conftest.$ac_ext >&5
23243
23244ac_cv_lib_png_png_check_sig=no
23245fi
ac1cb8d3
VS
23246rm -f conftest.err conftest.$ac_objext \
23247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23248LIBS=$ac_check_lib_save_LIBS
23249fi
23250echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23251echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23252if test $ac_cv_lib_png_png_check_sig = yes; then
23253 PNG_LINK=" -lpng -lz"
23254fi
23255
23256 fi
23257
23258 if test "x$PNG_LINK" = "x" ; then
23259 if test "$wxUSE_LIBPNG" = "sys" ; then
23260 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23261echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23262 { (exit 1); exit 1; }; }
23263 else
23264 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23265echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23266 wxUSE_LIBPNG=builtin
23267 fi
23268 else
23269 wxUSE_LIBPNG=sys
23270 fi
23271 fi
23272 fi
23273
23274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23275fi
23276
23277
23278JPEG_LINK=
23279if test "$wxUSE_LIBJPEG" != "no" ; then
23280 cat >>confdefs.h <<\_ACEOF
23281#define wxUSE_LIBJPEG 1
23282_ACEOF
23283
23284
23285 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23286 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23287echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23288 wxUSE_LIBJPEG=sys
23289 fi
23290
23291 if test "$wxUSE_MGL" != 1 ; then
23292 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23293 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23294echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23295 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23296 echo $ECHO_N "(cached) $ECHO_C" >&6
23297else
23298 cat >conftest.$ac_ext <<_ACEOF
23299/* confdefs.h. */
23300_ACEOF
23301cat confdefs.h >>conftest.$ac_ext
23302cat >>conftest.$ac_ext <<_ACEOF
23303/* end confdefs.h. */
23304
23305 #undef HAVE_STDLIB_H
23306 #include <stdio.h>
23307 #include <jpeglib.h>
23308
23309int
23310main ()
23311{
23312
23313
23314 ;
23315 return 0;
23316}
23317_ACEOF
23318rm -f conftest.$ac_objext
23319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23320 (eval $ac_compile) 2>conftest.er1
a848cd7e 23321 ac_status=$?
ac1cb8d3
VS
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
a848cd7e
SC
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } &&
6ebeb4c7 23327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329 (eval $ac_try) 2>&5
23330 ac_status=$?
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); }; } &&
23333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335 (eval $ac_try) 2>&5
23336 ac_status=$?
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; }; then
23339 ac_cv_header_jpeglib_h=yes
23340else
23341 echo "$as_me: failed program was:" >&5
23342sed 's/^/| /' conftest.$ac_ext >&5
23343
23344ac_cv_header_jpeglib_h=no
23345
23346fi
ac1cb8d3 23347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23348
23349fi
23350
23351 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23352echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23353
23354 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23355 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23356echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23357if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23358 echo $ECHO_N "(cached) $ECHO_C" >&6
23359else
23360 ac_check_lib_save_LIBS=$LIBS
23361LIBS="-ljpeg $LIBS"
23362cat >conftest.$ac_ext <<_ACEOF
23363/* confdefs.h. */
23364_ACEOF
23365cat confdefs.h >>conftest.$ac_ext
23366cat >>conftest.$ac_ext <<_ACEOF
23367/* end confdefs.h. */
23368
23369/* Override any gcc2 internal prototype to avoid an error. */
23370#ifdef __cplusplus
23371extern "C"
23372#endif
23373/* We use char because int might match the return type of a gcc2
23374 builtin and then its argument prototype would still apply. */
23375char jpeg_read_header ();
23376int
23377main ()
23378{
23379jpeg_read_header ();
23380 ;
23381 return 0;
23382}
23383_ACEOF
23384rm -f conftest.$ac_objext conftest$ac_exeext
23385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23386 (eval $ac_link) 2>conftest.er1
a848cd7e 23387 ac_status=$?
ac1cb8d3
VS
23388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
a848cd7e
SC
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } &&
6ebeb4c7 23393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; } &&
23399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23402 ac_status=$?
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; }; then
23405 ac_cv_lib_jpeg_jpeg_read_header=yes
23406else
23407 echo "$as_me: failed program was:" >&5
23408sed 's/^/| /' conftest.$ac_ext >&5
23409
23410ac_cv_lib_jpeg_jpeg_read_header=no
23411fi
ac1cb8d3
VS
23412rm -f conftest.err conftest.$ac_objext \
23413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23414LIBS=$ac_check_lib_save_LIBS
23415fi
23416echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23417echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23418if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23419 JPEG_LINK=" -ljpeg"
23420fi
23421
23422 fi
23423
23424 if test "x$JPEG_LINK" = "x" ; then
23425 if test "$wxUSE_LIBJPEG" = "sys" ; then
23426 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23427echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23428 { (exit 1); exit 1; }; }
23429 else
23430 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23431echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23432 wxUSE_LIBJPEG=builtin
23433 fi
23434 else
23435 wxUSE_LIBJPEG=sys
23436 fi
23437 fi
23438 fi
23439fi
23440
23441
23442TIFF_LINK=
23443TIFF_PREREQ_LINKS=-lm
23444if test "$wxUSE_LIBTIFF" != "no" ; then
23445 cat >>confdefs.h <<\_ACEOF
23446#define wxUSE_LIBTIFF 1
23447_ACEOF
23448
23449
23450 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23451 if test "$wxUSE_LIBJPEG" = "sys"; then
23452 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23453 fi
23454 if test "$wxUSE_ZLIB" = "sys"; then
23455 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23456 fi
23457 if test "${ac_cv_header_tiffio_h+set}" = set; then
23458 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23459echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23460if test "${ac_cv_header_tiffio_h+set}" = set; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23462fi
23463echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23464echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23465else
23466 # Is the header compilable?
23467echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23468echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23469cat >conftest.$ac_ext <<_ACEOF
23470/* confdefs.h. */
23471_ACEOF
23472cat confdefs.h >>conftest.$ac_ext
23473cat >>conftest.$ac_ext <<_ACEOF
23474/* end confdefs.h. */
23475$ac_includes_default
23476#include <tiffio.h>
23477_ACEOF
23478rm -f conftest.$ac_objext
23479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23480 (eval $ac_compile) 2>conftest.er1
a848cd7e 23481 ac_status=$?
ac1cb8d3
VS
23482 grep -v '^ *+' conftest.er1 >conftest.err
23483 rm -f conftest.er1
23484 cat conftest.err >&5
a848cd7e
SC
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } &&
6ebeb4c7 23487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489 (eval $ac_try) 2>&5
23490 ac_status=$?
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; } &&
23493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; }; then
23499 ac_header_compiler=yes
23500else
23501 echo "$as_me: failed program was:" >&5
23502sed 's/^/| /' conftest.$ac_ext >&5
23503
23504ac_header_compiler=no
23505fi
ac1cb8d3 23506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23507echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23508echo "${ECHO_T}$ac_header_compiler" >&6
23509
23510# Is the header present?
23511echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23512echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23513cat >conftest.$ac_ext <<_ACEOF
23514/* confdefs.h. */
23515_ACEOF
23516cat confdefs.h >>conftest.$ac_ext
23517cat >>conftest.$ac_ext <<_ACEOF
23518/* end confdefs.h. */
23519#include <tiffio.h>
23520_ACEOF
23521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23523 ac_status=$?
23524 grep -v '^ *+' conftest.er1 >conftest.err
23525 rm -f conftest.er1
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } >/dev/null; then
23529 if test -s conftest.err; then
23530 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23532 else
23533 ac_cpp_err=
23534 fi
23535else
23536 ac_cpp_err=yes
23537fi
23538if test -z "$ac_cpp_err"; then
23539 ac_header_preproc=yes
23540else
23541 echo "$as_me: failed program was:" >&5
23542sed 's/^/| /' conftest.$ac_ext >&5
23543
23544 ac_header_preproc=no
23545fi
23546rm -f conftest.err conftest.$ac_ext
23547echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23548echo "${ECHO_T}$ac_header_preproc" >&6
23549
23550# So? What about this header?
ac1cb8d3
VS
23551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23552 yes:no: )
a848cd7e
SC
23553 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23554echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23555 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23556echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23557 ac_header_preproc=yes
a848cd7e 23558 ;;
ac1cb8d3 23559 no:yes:* )
a848cd7e
SC
23560 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23561echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23562 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23563echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23564 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23565echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23566 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23567echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23568 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23569echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23570 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23571echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23572 (
23573 cat <<\_ASBOX
ac1cb8d3
VS
23574## ----------------------------------------- ##
23575## Report this to wx-dev@lists.wxwidgets.org ##
23576## ----------------------------------------- ##
a848cd7e
SC
23577_ASBOX
23578 ) |
23579 sed "s/^/$as_me: WARNING: /" >&2
23580 ;;
23581esac
23582echo "$as_me:$LINENO: checking for tiffio.h" >&5
23583echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23584if test "${ac_cv_header_tiffio_h+set}" = set; then
23585 echo $ECHO_N "(cached) $ECHO_C" >&6
23586else
23587 ac_cv_header_tiffio_h=$ac_header_preproc
23588fi
23589echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23590echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23591
23592fi
23593if test $ac_cv_header_tiffio_h = yes; then
23594
23595 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23596echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23597if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23598 echo $ECHO_N "(cached) $ECHO_C" >&6
23599else
23600 ac_check_lib_save_LIBS=$LIBS
23601LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23602cat >conftest.$ac_ext <<_ACEOF
23603/* confdefs.h. */
23604_ACEOF
23605cat confdefs.h >>conftest.$ac_ext
23606cat >>conftest.$ac_ext <<_ACEOF
23607/* end confdefs.h. */
23608
23609/* Override any gcc2 internal prototype to avoid an error. */
23610#ifdef __cplusplus
23611extern "C"
23612#endif
23613/* We use char because int might match the return type of a gcc2
23614 builtin and then its argument prototype would still apply. */
23615char TIFFError ();
23616int
23617main ()
23618{
23619TIFFError ();
23620 ;
23621 return 0;
23622}
23623_ACEOF
23624rm -f conftest.$ac_objext conftest$ac_exeext
23625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23626 (eval $ac_link) 2>conftest.er1
a848cd7e 23627 ac_status=$?
ac1cb8d3
VS
23628 grep -v '^ *+' conftest.er1 >conftest.err
23629 rm -f conftest.er1
23630 cat conftest.err >&5
a848cd7e
SC
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); } &&
6ebeb4c7 23633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23635 (eval $ac_try) 2>&5
23636 ac_status=$?
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); }; } &&
23639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); }; }; then
23645 ac_cv_lib_tiff_TIFFError=yes
23646else
23647 echo "$as_me: failed program was:" >&5
23648sed 's/^/| /' conftest.$ac_ext >&5
23649
23650ac_cv_lib_tiff_TIFFError=no
23651fi
ac1cb8d3
VS
23652rm -f conftest.err conftest.$ac_objext \
23653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23654LIBS=$ac_check_lib_save_LIBS
23655fi
23656echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23657echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23658if test $ac_cv_lib_tiff_TIFFError = yes; then
23659 TIFF_LINK=" -ltiff"
23660fi
23661
23662
23663
23664fi
23665
23666
23667
23668 if test "x$TIFF_LINK" = "x" ; then
23669 if test "$wxUSE_LIBTIFF" = "sys" ; then
23670 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23671echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23672 { (exit 1); exit 1; }; }
23673 else
23674 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23675echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23676 wxUSE_LIBTIFF=builtin
23677 fi
23678 else
23679 wxUSE_LIBTIFF=sys
23680 fi
23681 fi
23682fi
23683
23684
47a7e797
MW
23685if test "$wxUSE_WCHAR_T" != "yes"; then
23686 if test "$wxUSE_EXPAT" != "no"; then
23687 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23688echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23689 wxUSE_EXPAT=no
23690 fi
23691 if test "$wxUSE_XML" != "no"; then
23692 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23693echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23694 wxUSE_XML=no
23695 fi
23696fi
23697
a848cd7e
SC
23698if test "$wxUSE_EXPAT" != "no"; then
23699 wxUSE_XML=yes
23700 cat >>confdefs.h <<\_ACEOF
23701#define wxUSE_EXPAT 1
23702_ACEOF
23703
23704 cat >>confdefs.h <<\_ACEOF
23705#define wxUSE_XML 1
23706_ACEOF
23707
23708
23709 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23710 if test "${ac_cv_header_expat_h+set}" = set; then
23711 echo "$as_me:$LINENO: checking for expat.h" >&5
23712echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23713if test "${ac_cv_header_expat_h+set}" = set; then
23714 echo $ECHO_N "(cached) $ECHO_C" >&6
23715fi
23716echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23717echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23718else
23719 # Is the header compilable?
23720echo "$as_me:$LINENO: checking expat.h usability" >&5
23721echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23722cat >conftest.$ac_ext <<_ACEOF
23723/* confdefs.h. */
23724_ACEOF
23725cat confdefs.h >>conftest.$ac_ext
23726cat >>conftest.$ac_ext <<_ACEOF
23727/* end confdefs.h. */
23728$ac_includes_default
23729#include <expat.h>
23730_ACEOF
23731rm -f conftest.$ac_objext
23732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23733 (eval $ac_compile) 2>conftest.er1
a848cd7e 23734 ac_status=$?
ac1cb8d3
VS
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
a848cd7e
SC
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } &&
6ebeb4c7 23740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; } &&
23746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
23749 ac_status=$?
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; }; then
23752 ac_header_compiler=yes
23753else
23754 echo "$as_me: failed program was:" >&5
23755sed 's/^/| /' conftest.$ac_ext >&5
23756
23757ac_header_compiler=no
23758fi
ac1cb8d3 23759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23761echo "${ECHO_T}$ac_header_compiler" >&6
23762
23763# Is the header present?
23764echo "$as_me:$LINENO: checking expat.h presence" >&5
23765echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23766cat >conftest.$ac_ext <<_ACEOF
23767/* confdefs.h. */
23768_ACEOF
23769cat confdefs.h >>conftest.$ac_ext
23770cat >>conftest.$ac_ext <<_ACEOF
23771/* end confdefs.h. */
23772#include <expat.h>
23773_ACEOF
23774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23776 ac_status=$?
23777 grep -v '^ *+' conftest.er1 >conftest.err
23778 rm -f conftest.er1
23779 cat conftest.err >&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); } >/dev/null; then
23782 if test -s conftest.err; then
23783 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23785 else
23786 ac_cpp_err=
23787 fi
23788else
23789 ac_cpp_err=yes
23790fi
23791if test -z "$ac_cpp_err"; then
23792 ac_header_preproc=yes
23793else
23794 echo "$as_me: failed program was:" >&5
23795sed 's/^/| /' conftest.$ac_ext >&5
23796
23797 ac_header_preproc=no
23798fi
23799rm -f conftest.err conftest.$ac_ext
23800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23801echo "${ECHO_T}$ac_header_preproc" >&6
23802
23803# So? What about this header?
ac1cb8d3
VS
23804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23805 yes:no: )
a848cd7e
SC
23806 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23807echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23808 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23809echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23810 ac_header_preproc=yes
a848cd7e 23811 ;;
ac1cb8d3 23812 no:yes:* )
a848cd7e
SC
23813 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23814echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23815 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23816echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23817 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23818echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23819 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23820echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23821 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23822echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23823 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23824echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23825 (
23826 cat <<\_ASBOX
ac1cb8d3
VS
23827## ----------------------------------------- ##
23828## Report this to wx-dev@lists.wxwidgets.org ##
23829## ----------------------------------------- ##
a848cd7e
SC
23830_ASBOX
23831 ) |
23832 sed "s/^/$as_me: WARNING: /" >&2
23833 ;;
23834esac
23835echo "$as_me:$LINENO: checking for expat.h" >&5
23836echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23837if test "${ac_cv_header_expat_h+set}" = set; then
23838 echo $ECHO_N "(cached) $ECHO_C" >&6
23839else
23840 ac_cv_header_expat_h=$ac_header_preproc
23841fi
23842echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23843echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23844
23845fi
23846if test $ac_cv_header_expat_h = yes; then
23847 found_expat_h=1
23848fi
23849
23850
23851 if test "x$found_expat_h" = "x1"; then
23852 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23853echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23854if test "${wx_cv_expat_is_not_broken+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23856else
23857
23858
23859
23860 ac_ext=cc
23861ac_cpp='$CXXCPP $CPPFLAGS'
23862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23865
23866 cat >conftest.$ac_ext <<_ACEOF
23867/* confdefs.h. */
23868_ACEOF
23869cat confdefs.h >>conftest.$ac_ext
23870cat >>conftest.$ac_ext <<_ACEOF
23871/* end confdefs.h. */
23872#include <expat.h>
23873int
23874main ()
23875{
23876
23877 ;
23878 return 0;
23879}
23880_ACEOF
23881rm -f conftest.$ac_objext
23882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23883 (eval $ac_compile) 2>conftest.er1
a848cd7e 23884 ac_status=$?
ac1cb8d3
VS
23885 grep -v '^ *+' conftest.er1 >conftest.err
23886 rm -f conftest.er1
23887 cat conftest.err >&5
a848cd7e
SC
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } &&
6ebeb4c7 23890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23893 ac_status=$?
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; } &&
23896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23899 ac_status=$?
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; }; then
23902 wx_cv_expat_is_not_broken=yes
23903else
23904 echo "$as_me: failed program was:" >&5
23905sed 's/^/| /' conftest.$ac_ext >&5
23906
23907wx_cv_expat_is_not_broken=no
23908
23909fi
ac1cb8d3 23910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23911 ac_ext=c
23912ac_cpp='$CPP $CPPFLAGS'
23913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23915ac_compiler_gnu=$ac_cv_c_compiler_gnu
23916
23917
23918
23919fi
23920echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23921echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23922 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23923 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23924echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23925if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23926 echo $ECHO_N "(cached) $ECHO_C" >&6
23927else
23928 ac_check_lib_save_LIBS=$LIBS
23929LIBS="-lexpat $LIBS"
23930cat >conftest.$ac_ext <<_ACEOF
23931/* confdefs.h. */
23932_ACEOF
23933cat confdefs.h >>conftest.$ac_ext
23934cat >>conftest.$ac_ext <<_ACEOF
23935/* end confdefs.h. */
23936
23937/* Override any gcc2 internal prototype to avoid an error. */
23938#ifdef __cplusplus
23939extern "C"
23940#endif
23941/* We use char because int might match the return type of a gcc2
23942 builtin and then its argument prototype would still apply. */
23943char XML_ParserCreate ();
23944int
23945main ()
23946{
23947XML_ParserCreate ();
23948 ;
23949 return 0;
23950}
23951_ACEOF
23952rm -f conftest.$ac_objext conftest$ac_exeext
23953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23954 (eval $ac_link) 2>conftest.er1
a848cd7e 23955 ac_status=$?
ac1cb8d3
VS
23956 grep -v '^ *+' conftest.er1 >conftest.err
23957 rm -f conftest.er1
23958 cat conftest.err >&5
a848cd7e
SC
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); } &&
6ebeb4c7 23961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23963 (eval $ac_try) 2>&5
23964 ac_status=$?
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); }; } &&
23967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23969 (eval $ac_try) 2>&5
23970 ac_status=$?
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); }; }; then
23973 ac_cv_lib_expat_XML_ParserCreate=yes
23974else
23975 echo "$as_me: failed program was:" >&5
23976sed 's/^/| /' conftest.$ac_ext >&5
23977
23978ac_cv_lib_expat_XML_ParserCreate=no
23979fi
ac1cb8d3
VS
23980rm -f conftest.err conftest.$ac_objext \
23981 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23982LIBS=$ac_check_lib_save_LIBS
23983fi
23984echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23985echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23986if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23987 EXPAT_LINK=" -lexpat"
23988fi
23989
23990 fi
23991 fi
23992 if test "x$EXPAT_LINK" = "x" ; then
23993 if test "$wxUSE_EXPAT" = "sys" ; then
23994 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23995echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23996 { (exit 1); exit 1; }; }
23997 else
23998 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23999echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24000 wxUSE_EXPAT=builtin
24001 fi
24002 else
24003 wxUSE_EXPAT=sys
24004 fi
24005 fi
24006 if test "$wxUSE_EXPAT" = "builtin" ; then
24007
24008
24009subdirs="$subdirs src/expat"
24010
24011 fi
24012fi
24013
24014
24015
24016if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24017 if test "${ac_cv_header_mspack_h+set}" = set; then
24018 echo "$as_me:$LINENO: checking for mspack.h" >&5
24019echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24020if test "${ac_cv_header_mspack_h+set}" = set; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24022fi
24023echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24024echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24025else
24026 # Is the header compilable?
24027echo "$as_me:$LINENO: checking mspack.h usability" >&5
24028echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24029cat >conftest.$ac_ext <<_ACEOF
24030/* confdefs.h. */
24031_ACEOF
24032cat confdefs.h >>conftest.$ac_ext
24033cat >>conftest.$ac_ext <<_ACEOF
24034/* end confdefs.h. */
24035$ac_includes_default
24036#include <mspack.h>
24037_ACEOF
24038rm -f conftest.$ac_objext
24039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24040 (eval $ac_compile) 2>conftest.er1
a848cd7e 24041 ac_status=$?
ac1cb8d3
VS
24042 grep -v '^ *+' conftest.er1 >conftest.err
24043 rm -f conftest.er1
24044 cat conftest.err >&5
a848cd7e
SC
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); } &&
6ebeb4c7 24047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24049 (eval $ac_try) 2>&5
24050 ac_status=$?
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); }; } &&
24053 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24055 (eval $ac_try) 2>&5
24056 ac_status=$?
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); }; }; then
24059 ac_header_compiler=yes
24060else
24061 echo "$as_me: failed program was:" >&5
24062sed 's/^/| /' conftest.$ac_ext >&5
24063
24064ac_header_compiler=no
24065fi
ac1cb8d3 24066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24067echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24068echo "${ECHO_T}$ac_header_compiler" >&6
24069
24070# Is the header present?
24071echo "$as_me:$LINENO: checking mspack.h presence" >&5
24072echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24073cat >conftest.$ac_ext <<_ACEOF
24074/* confdefs.h. */
24075_ACEOF
24076cat confdefs.h >>conftest.$ac_ext
24077cat >>conftest.$ac_ext <<_ACEOF
24078/* end confdefs.h. */
24079#include <mspack.h>
24080_ACEOF
24081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24083 ac_status=$?
24084 grep -v '^ *+' conftest.er1 >conftest.err
24085 rm -f conftest.er1
24086 cat conftest.err >&5
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } >/dev/null; then
24089 if test -s conftest.err; then
24090 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24092 else
24093 ac_cpp_err=
24094 fi
24095else
24096 ac_cpp_err=yes
24097fi
24098if test -z "$ac_cpp_err"; then
24099 ac_header_preproc=yes
24100else
24101 echo "$as_me: failed program was:" >&5
24102sed 's/^/| /' conftest.$ac_ext >&5
24103
24104 ac_header_preproc=no
24105fi
24106rm -f conftest.err conftest.$ac_ext
24107echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24108echo "${ECHO_T}$ac_header_preproc" >&6
24109
24110# So? What about this header?
ac1cb8d3
VS
24111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24112 yes:no: )
a848cd7e
SC
24113 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24114echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24115 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24116echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24117 ac_header_preproc=yes
a848cd7e 24118 ;;
ac1cb8d3 24119 no:yes:* )
a848cd7e
SC
24120 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24121echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24122 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24123echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24124 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24125echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24126 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24127echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24128 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24129echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24130 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24131echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24132 (
24133 cat <<\_ASBOX
ac1cb8d3
VS
24134## ----------------------------------------- ##
24135## Report this to wx-dev@lists.wxwidgets.org ##
24136## ----------------------------------------- ##
a848cd7e
SC
24137_ASBOX
24138 ) |
24139 sed "s/^/$as_me: WARNING: /" >&2
24140 ;;
24141esac
24142echo "$as_me:$LINENO: checking for mspack.h" >&5
24143echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24144if test "${ac_cv_header_mspack_h+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24146else
24147 ac_cv_header_mspack_h=$ac_header_preproc
24148fi
24149echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24150echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24151
24152fi
24153if test $ac_cv_header_mspack_h = yes; then
24154 found_mspack_h=1
24155fi
24156
24157
24158 if test "x$found_mspack_h" = "x1"; then
24159 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24160echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24161if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24162 echo $ECHO_N "(cached) $ECHO_C" >&6
24163else
24164 ac_check_lib_save_LIBS=$LIBS
24165LIBS="-lmspack $LIBS"
24166cat >conftest.$ac_ext <<_ACEOF
24167/* confdefs.h. */
24168_ACEOF
24169cat confdefs.h >>conftest.$ac_ext
24170cat >>conftest.$ac_ext <<_ACEOF
24171/* end confdefs.h. */
24172
24173/* Override any gcc2 internal prototype to avoid an error. */
24174#ifdef __cplusplus
24175extern "C"
24176#endif
24177/* We use char because int might match the return type of a gcc2
24178 builtin and then its argument prototype would still apply. */
24179char mspack_create_chm_decompressor ();
24180int
24181main ()
24182{
24183mspack_create_chm_decompressor ();
24184 ;
24185 return 0;
24186}
24187_ACEOF
24188rm -f conftest.$ac_objext conftest$ac_exeext
24189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24190 (eval $ac_link) 2>conftest.er1
a848cd7e 24191 ac_status=$?
ac1cb8d3
VS
24192 grep -v '^ *+' conftest.er1 >conftest.err
24193 rm -f conftest.er1
24194 cat conftest.err >&5
a848cd7e
SC
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); } &&
6ebeb4c7 24197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24199 (eval $ac_try) 2>&5
24200 ac_status=$?
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); }; } &&
24203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24205 (eval $ac_try) 2>&5
24206 ac_status=$?
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); }; }; then
24209 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24210else
24211 echo "$as_me: failed program was:" >&5
24212sed 's/^/| /' conftest.$ac_ext >&5
24213
24214ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24215fi
ac1cb8d3
VS
24216rm -f conftest.err conftest.$ac_objext \
24217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24218LIBS=$ac_check_lib_save_LIBS
24219fi
24220echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24221echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24222if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24223 MSPACK_LINK=" -lmspack"
24224fi
24225
24226 fi
24227 if test "x$MSPACK_LINK" = "x" ; then
24228 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24229 fi
24230fi
24231
24232if test "$wxUSE_LIBMSPACK" != "no"; then
24233 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24234#define wxUSE_LIBMSPACK 1
24235_ACEOF
24236
a848cd7e
SC
24237fi
24238
24239
24240
24241AFMINSTALL=
24242WIN32INSTALL=
24243
24244TOOLKIT=
24245TOOLKIT_INCLUDE=
24246WIDGET_SET=
24247
24248if test "$USE_WIN32" = 1 ; then
24249
24250for ac_header in w32api.h
24251do
24252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24253if eval "test \"\${$as_ac_Header+set}\" = set"; then
24254 echo "$as_me:$LINENO: checking for $ac_header" >&5
24255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24256if eval "test \"\${$as_ac_Header+set}\" = set"; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24258fi
24259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24261else
24262 # Is the header compilable?
24263echo "$as_me:$LINENO: checking $ac_header usability" >&5
24264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24265cat >conftest.$ac_ext <<_ACEOF
24266/* confdefs.h. */
24267_ACEOF
24268cat confdefs.h >>conftest.$ac_ext
24269cat >>conftest.$ac_ext <<_ACEOF
24270/* end confdefs.h. */
24271$ac_includes_default
24272#include <$ac_header>
24273_ACEOF
24274rm -f conftest.$ac_objext
24275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24276 (eval $ac_compile) 2>conftest.er1
a848cd7e 24277 ac_status=$?
ac1cb8d3
VS
24278 grep -v '^ *+' conftest.er1 >conftest.err
24279 rm -f conftest.er1
24280 cat conftest.err >&5
a848cd7e
SC
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); } &&
6ebeb4c7 24283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24285 (eval $ac_try) 2>&5
24286 ac_status=$?
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); }; } &&
24289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24291 (eval $ac_try) 2>&5
24292 ac_status=$?
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); }; }; then
24295 ac_header_compiler=yes
24296else
24297 echo "$as_me: failed program was:" >&5
24298sed 's/^/| /' conftest.$ac_ext >&5
24299
24300ac_header_compiler=no
24301fi
ac1cb8d3 24302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24304echo "${ECHO_T}$ac_header_compiler" >&6
24305
24306# Is the header present?
24307echo "$as_me:$LINENO: checking $ac_header presence" >&5
24308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24309cat >conftest.$ac_ext <<_ACEOF
24310/* confdefs.h. */
24311_ACEOF
24312cat confdefs.h >>conftest.$ac_ext
24313cat >>conftest.$ac_ext <<_ACEOF
24314/* end confdefs.h. */
24315#include <$ac_header>
24316_ACEOF
24317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24319 ac_status=$?
24320 grep -v '^ *+' conftest.er1 >conftest.err
24321 rm -f conftest.er1
24322 cat conftest.err >&5
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); } >/dev/null; then
24325 if test -s conftest.err; then
24326 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24328 else
24329 ac_cpp_err=
24330 fi
24331else
24332 ac_cpp_err=yes
24333fi
24334if test -z "$ac_cpp_err"; then
24335 ac_header_preproc=yes
24336else
24337 echo "$as_me: failed program was:" >&5
24338sed 's/^/| /' conftest.$ac_ext >&5
24339
24340 ac_header_preproc=no
24341fi
24342rm -f conftest.err conftest.$ac_ext
24343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24344echo "${ECHO_T}$ac_header_preproc" >&6
24345
24346# So? What about this header?
ac1cb8d3
VS
24347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24348 yes:no: )
a848cd7e
SC
24349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24353 ac_header_preproc=yes
a848cd7e 24354 ;;
ac1cb8d3 24355 no:yes:* )
a848cd7e
SC
24356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24368 (
24369 cat <<\_ASBOX
ac1cb8d3
VS
24370## ----------------------------------------- ##
24371## Report this to wx-dev@lists.wxwidgets.org ##
24372## ----------------------------------------- ##
a848cd7e
SC
24373_ASBOX
24374 ) |
24375 sed "s/^/$as_me: WARNING: /" >&2
24376 ;;
24377esac
24378echo "$as_me:$LINENO: checking for $ac_header" >&5
24379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24380if eval "test \"\${$as_ac_Header+set}\" = set"; then
24381 echo $ECHO_N "(cached) $ECHO_C" >&6
24382else
ac1cb8d3 24383 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24384fi
24385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24387
24388fi
24389if test `eval echo '${'$as_ac_Header'}'` = yes; then
24390 cat >>confdefs.h <<_ACEOF
24391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24392_ACEOF
24393
24394fi
24395
24396done
24397
24398 if test "${ac_cv_header_windows_h+set}" = set; then
24399 echo "$as_me:$LINENO: checking for windows.h" >&5
24400echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24401if test "${ac_cv_header_windows_h+set}" = set; then
24402 echo $ECHO_N "(cached) $ECHO_C" >&6
24403fi
24404echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24405echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24406else
24407 # Is the header compilable?
24408echo "$as_me:$LINENO: checking windows.h usability" >&5
24409echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24410cat >conftest.$ac_ext <<_ACEOF
24411/* confdefs.h. */
24412_ACEOF
24413cat confdefs.h >>conftest.$ac_ext
24414cat >>conftest.$ac_ext <<_ACEOF
24415/* end confdefs.h. */
24416$ac_includes_default
24417#include <windows.h>
24418_ACEOF
24419rm -f conftest.$ac_objext
24420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24421 (eval $ac_compile) 2>conftest.er1
a848cd7e 24422 ac_status=$?
ac1cb8d3
VS
24423 grep -v '^ *+' conftest.er1 >conftest.err
24424 rm -f conftest.er1
24425 cat conftest.err >&5
a848cd7e
SC
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); } &&
6ebeb4c7 24428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430 (eval $ac_try) 2>&5
24431 ac_status=$?
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; } &&
24434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24437 ac_status=$?
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 ac_header_compiler=yes
24441else
24442 echo "$as_me: failed program was:" >&5
24443sed 's/^/| /' conftest.$ac_ext >&5
24444
24445ac_header_compiler=no
24446fi
ac1cb8d3 24447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24449echo "${ECHO_T}$ac_header_compiler" >&6
24450
24451# Is the header present?
24452echo "$as_me:$LINENO: checking windows.h presence" >&5
24453echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24454cat >conftest.$ac_ext <<_ACEOF
24455/* confdefs.h. */
24456_ACEOF
24457cat confdefs.h >>conftest.$ac_ext
24458cat >>conftest.$ac_ext <<_ACEOF
24459/* end confdefs.h. */
24460#include <windows.h>
24461_ACEOF
24462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24464 ac_status=$?
24465 grep -v '^ *+' conftest.er1 >conftest.err
24466 rm -f conftest.er1
24467 cat conftest.err >&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } >/dev/null; then
24470 if test -s conftest.err; then
24471 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24473 else
24474 ac_cpp_err=
24475 fi
24476else
24477 ac_cpp_err=yes
24478fi
24479if test -z "$ac_cpp_err"; then
24480 ac_header_preproc=yes
24481else
24482 echo "$as_me: failed program was:" >&5
24483sed 's/^/| /' conftest.$ac_ext >&5
24484
24485 ac_header_preproc=no
24486fi
24487rm -f conftest.err conftest.$ac_ext
24488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24489echo "${ECHO_T}$ac_header_preproc" >&6
24490
24491# So? What about this header?
ac1cb8d3
VS
24492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24493 yes:no: )
a848cd7e
SC
24494 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24495echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24496 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24497echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24498 ac_header_preproc=yes
a848cd7e 24499 ;;
ac1cb8d3 24500 no:yes:* )
a848cd7e
SC
24501 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24502echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24503 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24504echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24505 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24506echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24507 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24508echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24509 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24510echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24511 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24512echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24513 (
24514 cat <<\_ASBOX
ac1cb8d3
VS
24515## ----------------------------------------- ##
24516## Report this to wx-dev@lists.wxwidgets.org ##
24517## ----------------------------------------- ##
a848cd7e
SC
24518_ASBOX
24519 ) |
24520 sed "s/^/$as_me: WARNING: /" >&2
24521 ;;
24522esac
24523echo "$as_me:$LINENO: checking for windows.h" >&5
24524echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24525if test "${ac_cv_header_windows_h+set}" = set; then
24526 echo $ECHO_N "(cached) $ECHO_C" >&6
24527else
24528 ac_cv_header_windows_h=$ac_header_preproc
24529fi
24530echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24531echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24532
24533fi
24534if test $ac_cv_header_windows_h = yes; then
24535 :
24536else
24537
24538 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24539echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24540 { (exit 1); exit 1; }; }
24541
24542fi
24543
24544
24545
24546 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24547
24548 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24549 LIBS="$LIBS -loleacc"
24550 fi
24551
24552 case "${host}" in
24553 *-*-cygwin* )
24554 LIBS="$LIBS -lkernel32 -luser32"
24555 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24556 esac
24557
24558 if test "$wxUSE_ODBC" = "sys" ; then
24559 wxUSE_ODBC = "yes"
24560 fi
24561 if test "$wxUSE_ODBC" = "yes" ; then
24562 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24563 cat >>confdefs.h <<\_ACEOF
24564#define wxUSE_ODBC 1
24565_ACEOF
24566
24567 fi
24568
24569 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24570 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24571
24572 WIN32INSTALL=win32install
24573fi
24574
24575if test "$wxUSE_GUI" = "yes"; then
24576 USE_GUI=1
24577
24578 GUI_TK_LIBRARY=
24579
24580 WXGTK12=
24581 WXGTK127=
24582 WXGTK20=
24583 WXGPE=
24584
207bc66c
RN
24585 if test "$wxUSE_COCOA" = 1 ; then
24586 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24587 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24588echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24589 wxUSE_PRINTING_ARCHITECTURE=no
24590 fi
24591 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24592 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24593echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24594 wxUSE_DRAG_AND_DROP=no
24595 fi
24596 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24597 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24598echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24599 wxUSE_DRAGIMAGE=no
24600 fi
24601 fi
24602
a848cd7e
SC
24603 if test "$wxUSE_MSW" = 1 ; then
24604 TOOLKIT=MSW
24605 GUIDIST=MSW_DIST
24606
ceec2216 24607 case "${host}" in
a848cd7e
SC
24608 *-*-mingw32* )
24609 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24610 esac
24611 fi
24612
24613 if test "$wxUSE_GTK" = 1; then
24614 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24615echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24616
24617 gtk_version_cached=1
24618 if test "${wx_cv_lib_gtk+set}" = set; then
24619 echo $ECHO_N "(cached) $ECHO_C" >&6
24620else
24621
24622 gtk_version_cached=0
24623 echo "$as_me:$LINENO: result: " >&5
24624echo "${ECHO_T}" >&6
24625
24626 GTK_MODULES=
24627 if test "$wxUSE_THREADS" = "yes"; then
24628 GTK_MODULES=gthread
24629 fi
24630
f597b41c 24631 wx_cv_lib_gtk=
f34ca037 24632 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24633 # Check whether --enable-gtktest or --disable-gtktest was given.
24634if test "${enable_gtktest+set}" = set; then
24635 enableval="$enable_gtktest"
24636
24637else
24638 enable_gtktest=yes
24639fi;
24640
24641 pkg_config_args=gtk+-2.0
24642 for module in . $GTK_MODULES
24643 do
24644 case "$module" in
24645 gthread)
24646 pkg_config_args="$pkg_config_args gthread-2.0"
24647 ;;
24648 esac
24649 done
24650
24651 no_gtk=""
24652
24653 # Extract the first word of "pkg-config", so it can be a program name with args.
24654set dummy pkg-config; ac_word=$2
24655echo "$as_me:$LINENO: checking for $ac_word" >&5
24656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24657if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24658 echo $ECHO_N "(cached) $ECHO_C" >&6
24659else
24660 case $PKG_CONFIG in
24661 [\\/]* | ?:[\\/]*)
24662 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24663 ;;
24664 *)
24665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24666for as_dir in $PATH
24667do
24668 IFS=$as_save_IFS
24669 test -z "$as_dir" && as_dir=.
24670 for ac_exec_ext in '' $ac_executable_extensions; do
24671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24672 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24674 break 2
24675 fi
24676done
24677done
24678
24679 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24680 ;;
24681esac
24682fi
24683PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24684
24685if test -n "$PKG_CONFIG"; then
24686 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24687echo "${ECHO_T}$PKG_CONFIG" >&6
24688else
24689 echo "$as_me:$LINENO: result: no" >&5
24690echo "${ECHO_T}no" >&6
24691fi
24692
24693
24694 if test x$PKG_CONFIG != xno ; then
24695 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24696 :
24697 else
c2218763 24698 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24699 no_gtk=yes
24700 PKG_CONFIG=no
24701 fi
24702 else
24703 no_gtk=yes
24704 fi
24705
24706 min_gtk_version=2.0.0
24707 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24708echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24709
24710 if test x$PKG_CONFIG != xno ; then
24711 ## don't try to run the test against uninstalled libtool libs
24712 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24713 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24714 enable_gtktest=no
24715 fi
24716
24717 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24718 :
24719 else
24720 no_gtk=yes
24721 fi
24722 fi
24723
24724 if test x"$no_gtk" = x ; then
24725 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24726 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24727 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24729 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24730 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24731 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24732 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24733 if test "x$enable_gtktest" = "xyes" ; then
24734 ac_save_CFLAGS="$CFLAGS"
24735 ac_save_LIBS="$LIBS"
24736 CFLAGS="$CFLAGS $GTK_CFLAGS"
24737 LIBS="$GTK_LIBS $LIBS"
24738 rm -f conf.gtktest
24739 if test "$cross_compiling" = yes; then
24740 echo $ac_n "cross compiling; assumed OK... $ac_c"
24741else
24742 cat >conftest.$ac_ext <<_ACEOF
24743/* confdefs.h. */
24744_ACEOF
24745cat confdefs.h >>conftest.$ac_ext
24746cat >>conftest.$ac_ext <<_ACEOF
24747/* end confdefs.h. */
24748
24749#include <gtk/gtk.h>
24750#include <stdio.h>
24751#include <stdlib.h>
24752
24753int
24754main ()
24755{
24756 int major, minor, micro;
24757 char *tmp_version;
24758
24759 system ("touch conf.gtktest");
24760
24761 /* HP/UX 9 (%@#!) writes to sscanf strings */
24762 tmp_version = g_strdup("$min_gtk_version");
24763 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24764 printf("%s, bad version string\n", "$min_gtk_version");
24765 exit(1);
24766 }
24767
24768 if ((gtk_major_version != $gtk_config_major_version) ||
24769 (gtk_minor_version != $gtk_config_minor_version) ||
24770 (gtk_micro_version != $gtk_config_micro_version))
24771 {
24772 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24773 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24774 gtk_major_version, gtk_minor_version, gtk_micro_version);
24775 printf ("*** was found! If pkg-config was correct, then it is best\n");
24776 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24777 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24778 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24779 printf("*** required on your system.\n");
24780 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24781 printf("*** to point to the correct configuration files\n");
24782 }
24783 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24784 (gtk_minor_version != GTK_MINOR_VERSION) ||
24785 (gtk_micro_version != GTK_MICRO_VERSION))
24786 {
24787 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24788 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24789 printf("*** library (version %d.%d.%d)\n",
24790 gtk_major_version, gtk_minor_version, gtk_micro_version);
24791 }
24792 else
24793 {
24794 if ((gtk_major_version > major) ||
24795 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24796 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24797 {
24798 return 0;
24799 }
24800 else
24801 {
24802 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24803 gtk_major_version, gtk_minor_version, gtk_micro_version);
24804 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24805 major, minor, micro);
24806 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24807 printf("***\n");
24808 printf("*** If you have already installed a sufficiently new version, this error\n");
24809 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24810 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24811 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24812 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24813 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24814 printf("*** so that the correct libraries are found at run-time))\n");
24815 }
24816 }
24817 return 1;
24818}
24819
24820_ACEOF
24821rm -f conftest$ac_exeext
24822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24823 (eval $ac_link) 2>&5
24824 ac_status=$?
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24828 (eval $ac_try) 2>&5
24829 ac_status=$?
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); }; }; then
24832 :
24833else
24834 echo "$as_me: program exited with status $ac_status" >&5
24835echo "$as_me: failed program was:" >&5
24836sed 's/^/| /' conftest.$ac_ext >&5
24837
24838( exit $ac_status )
24839no_gtk=yes
24840fi
ac1cb8d3 24841rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24842fi
24843 CFLAGS="$ac_save_CFLAGS"
24844 LIBS="$ac_save_LIBS"
24845 fi
24846 fi
24847 if test "x$no_gtk" = x ; then
24848 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24849echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24850 wx_cv_lib_gtk=2.0
24851 else
24852 echo "$as_me:$LINENO: result: no" >&5
24853echo "${ECHO_T}no" >&6
24854 if test "$PKG_CONFIG" = "no" ; then
24855 echo "*** A new enough version of pkg-config was not found."
24856 echo "*** See http://pkgconfig.sourceforge.net"
24857 else
24858 if test -f conf.gtktest ; then
24859 :
24860 else
24861 echo "*** Could not run GTK+ test program, checking why..."
24862 ac_save_CFLAGS="$CFLAGS"
24863 ac_save_LIBS="$LIBS"
24864 CFLAGS="$CFLAGS $GTK_CFLAGS"
24865 LIBS="$LIBS $GTK_LIBS"
24866 cat >conftest.$ac_ext <<_ACEOF
24867/* confdefs.h. */
24868_ACEOF
24869cat confdefs.h >>conftest.$ac_ext
24870cat >>conftest.$ac_ext <<_ACEOF
24871/* end confdefs.h. */
24872
24873#include <gtk/gtk.h>
24874#include <stdio.h>
24875
24876int
24877main ()
24878{
24879 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24880 ;
24881 return 0;
24882}
24883_ACEOF
24884rm -f conftest.$ac_objext conftest$ac_exeext
24885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24886 (eval $ac_link) 2>conftest.er1
a848cd7e 24887 ac_status=$?
ac1cb8d3
VS
24888 grep -v '^ *+' conftest.er1 >conftest.err
24889 rm -f conftest.er1
24890 cat conftest.err >&5
a848cd7e
SC
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } &&
6ebeb4c7 24893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24895 (eval $ac_try) 2>&5
24896 ac_status=$?
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); }; } &&
24899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24901 (eval $ac_try) 2>&5
24902 ac_status=$?
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); }; }; then
24905 echo "*** The test program compiled, but did not run. This usually means"
24906 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24907 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24908 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24909 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24910 echo "*** is required on your system"
24911 echo "***"
24912 echo "*** If you have an old version installed, it is best to remove it, although"
24913 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24914else
24915 echo "$as_me: failed program was:" >&5
24916sed 's/^/| /' conftest.$ac_ext >&5
24917
24918 echo "*** The test program failed to compile or link. See the file config.log for the"
24919 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24920fi
ac1cb8d3
VS
24921rm -f conftest.err conftest.$ac_objext \
24922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24923 CFLAGS="$ac_save_CFLAGS"
24924 LIBS="$ac_save_LIBS"
24925 fi
24926 fi
24927 GTK_CFLAGS=""
24928 GTK_LIBS=""
24929 :
24930 fi
24931
24932
24933 rm -f conf.gtktest
24934
f597b41c
MW
24935 fi
24936
f34ca037
MW
24937 if test -z "$wx_cv_lib_gtk"; then
24938 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24939
24940# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24941if test "${with_gtk_prefix+set}" = set; then
24942 withval="$with_gtk_prefix"
24943 gtk_config_prefix="$withval"
24944else
24945 gtk_config_prefix=""
24946fi;
24947
24948# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24949if test "${with_gtk_exec_prefix+set}" = set; then
24950 withval="$with_gtk_exec_prefix"
24951 gtk_config_exec_prefix="$withval"
24952else
24953 gtk_config_exec_prefix=""
24954fi;
24955# Check whether --enable-gtktest or --disable-gtktest was given.
24956if test "${enable_gtktest+set}" = set; then
24957 enableval="$enable_gtktest"
24958
24959else
24960 enable_gtktest=yes
24961fi;
24962
24963 for module in . $GTK_MODULES
24964 do
24965 case "$module" in
24966 gthread)
24967 gtk_config_args="$gtk_config_args gthread"
24968 ;;
24969 esac
24970 done
24971
24972 if test x$gtk_config_exec_prefix != x ; then
24973 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24974 if test x${GTK_CONFIG+set} != xset ; then
24975 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24976 fi
24977 fi
24978 if test x$gtk_config_prefix != x ; then
24979 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24980 if test x${GTK_CONFIG+set} != xset ; then
24981 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24982 fi
24983 fi
24984
24985 # Extract the first word of "gtk-config", so it can be a program name with args.
24986set dummy gtk-config; ac_word=$2
24987echo "$as_me:$LINENO: checking for $ac_word" >&5
24988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24989if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
24991else
24992 case $GTK_CONFIG in
24993 [\\/]* | ?:[\\/]*)
24994 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24995 ;;
24996 *)
24997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24998for as_dir in $PATH
24999do
25000 IFS=$as_save_IFS
25001 test -z "$as_dir" && as_dir=.
25002 for ac_exec_ext in '' $ac_executable_extensions; do
25003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25004 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25006 break 2
25007 fi
25008done
25009done
25010
25011 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25012 ;;
25013esac
25014fi
25015GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25016
25017if test -n "$GTK_CONFIG"; then
25018 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25019echo "${ECHO_T}$GTK_CONFIG" >&6
25020else
25021 echo "$as_me:$LINENO: result: no" >&5
25022echo "${ECHO_T}no" >&6
25023fi
25024
25025 min_gtk_version=1.2.7
25026 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25027echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25028 no_gtk=""
25029 if test "$GTK_CONFIG" = "no" ; then
25030 no_gtk=yes
25031 else
25032 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25033 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25034 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25036 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25037 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25038 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25039 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25040 if test "x$enable_gtktest" = "xyes" ; then
25041 ac_save_CFLAGS="$CFLAGS"
25042 ac_save_LIBS="$LIBS"
25043 CFLAGS="$CFLAGS $GTK_CFLAGS"
25044 LIBS="$GTK_LIBS $LIBS"
25045 rm -f conf.gtktest
25046 if test "$cross_compiling" = yes; then
25047 echo $ac_n "cross compiling; assumed OK... $ac_c"
25048else
25049 cat >conftest.$ac_ext <<_ACEOF
25050/* confdefs.h. */
25051_ACEOF
25052cat confdefs.h >>conftest.$ac_ext
25053cat >>conftest.$ac_ext <<_ACEOF
25054/* end confdefs.h. */
25055
25056#include <gtk/gtk.h>
25057#include <stdio.h>
25058#include <stdlib.h>
25059
25060int
25061main ()
25062{
25063 int major, minor, micro;
25064 char *tmp_version;
25065
25066 system ("touch conf.gtktest");
25067
25068 /* HP/UX 9 (%@#!) writes to sscanf strings */
25069 tmp_version = g_strdup("$min_gtk_version");
25070 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25071 printf("%s, bad version string\n", "$min_gtk_version");
25072 exit(1);
25073 }
25074
25075 if ((gtk_major_version != $gtk_config_major_version) ||
25076 (gtk_minor_version != $gtk_config_minor_version) ||
25077 (gtk_micro_version != $gtk_config_micro_version))
25078 {
25079 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25080 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25081 gtk_major_version, gtk_minor_version, gtk_micro_version);
25082 printf ("*** was found! If gtk-config was correct, then it is best\n");
25083 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25084 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25085 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25086 printf("*** required on your system.\n");
25087 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25088 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25089 printf("*** before re-running configure\n");
25090 }
25091#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25092 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25093 (gtk_minor_version != GTK_MINOR_VERSION) ||
25094 (gtk_micro_version != GTK_MICRO_VERSION))
25095 {
25096 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25097 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25098 printf("*** library (version %d.%d.%d)\n",
25099 gtk_major_version, gtk_minor_version, gtk_micro_version);
25100 }
25101#endif /* defined (GTK_MAJOR_VERSION) ... */
25102 else
25103 {
25104 if ((gtk_major_version > major) ||
25105 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25106 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25107 {
25108 return 0;
25109 }
25110 else
25111 {
25112 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25113 gtk_major_version, gtk_minor_version, gtk_micro_version);
25114 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25115 major, minor, micro);
25116 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25117 printf("***\n");
25118 printf("*** If you have already installed a sufficiently new version, this error\n");
25119 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25120 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25121 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25122 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25123 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25124 printf("*** so that the correct libraries are found at run-time))\n");
25125 }
25126 }
25127 return 1;
25128}
25129
25130_ACEOF
25131rm -f conftest$ac_exeext
25132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25133 (eval $ac_link) 2>&5
25134 ac_status=$?
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25138 (eval $ac_try) 2>&5
25139 ac_status=$?
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); }; }; then
25142 :
25143else
25144 echo "$as_me: program exited with status $ac_status" >&5
25145echo "$as_me: failed program was:" >&5
25146sed 's/^/| /' conftest.$ac_ext >&5
25147
25148( exit $ac_status )
25149no_gtk=yes
25150fi
ac1cb8d3 25151rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25152fi
25153 CFLAGS="$ac_save_CFLAGS"
25154 LIBS="$ac_save_LIBS"
25155 fi
25156 fi
25157 if test "x$no_gtk" = x ; then
25158 echo "$as_me:$LINENO: result: yes" >&5
25159echo "${ECHO_T}yes" >&6
25160 wx_cv_lib_gtk=1.2.7
25161 else
25162 echo "$as_me:$LINENO: result: no" >&5
25163echo "${ECHO_T}no" >&6
25164 if test "$GTK_CONFIG" = "no" ; then
25165 echo "*** The gtk-config script installed by GTK could not be found"
25166 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25167 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25168 echo "*** full path to gtk-config."
25169 else
25170 if test -f conf.gtktest ; then
25171 :
25172 else
25173 echo "*** Could not run GTK test program, checking why..."
25174 CFLAGS="$CFLAGS $GTK_CFLAGS"
25175 LIBS="$LIBS $GTK_LIBS"
25176 cat >conftest.$ac_ext <<_ACEOF
25177/* confdefs.h. */
25178_ACEOF
25179cat confdefs.h >>conftest.$ac_ext
25180cat >>conftest.$ac_ext <<_ACEOF
25181/* end confdefs.h. */
25182
25183#include <gtk/gtk.h>
25184#include <stdio.h>
25185
25186int
25187main ()
25188{
25189 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25190 ;
25191 return 0;
25192}
25193_ACEOF
25194rm -f conftest.$ac_objext conftest$ac_exeext
25195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25196 (eval $ac_link) 2>conftest.er1
a848cd7e 25197 ac_status=$?
ac1cb8d3
VS
25198 grep -v '^ *+' conftest.er1 >conftest.err
25199 rm -f conftest.er1
25200 cat conftest.err >&5
a848cd7e
SC
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); } &&
6ebeb4c7 25203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205 (eval $ac_try) 2>&5
25206 ac_status=$?
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); }; } &&
25209 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; }; then
25215 echo "*** The test program compiled, but did not run. This usually means"
25216 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25217 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25218 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25219 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25220 echo "*** is required on your system"
25221 echo "***"
25222 echo "*** If you have an old version installed, it is best to remove it, although"
25223 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25224 echo "***"
25225 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25226 echo "*** came with the system with the command"
25227 echo "***"
25228 echo "*** rpm --erase --nodeps gtk gtk-devel"
25229else
25230 echo "$as_me: failed program was:" >&5
25231sed 's/^/| /' conftest.$ac_ext >&5
25232
25233 echo "*** The test program failed to compile or link. See the file config.log for the"
25234 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25235 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25236 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25237fi
ac1cb8d3
VS
25238rm -f conftest.err conftest.$ac_objext \
25239 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25240 CFLAGS="$ac_save_CFLAGS"
25241 LIBS="$ac_save_LIBS"
25242 fi
25243 fi
25244 GTK_CFLAGS=""
25245 GTK_LIBS=""
25246 :
25247 fi
25248
25249
25250 rm -f conf.gtktest
25251
25252
f34ca037 25253 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25254
25255# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25256if test "${with_gtk_prefix+set}" = set; then
25257 withval="$with_gtk_prefix"
25258 gtk_config_prefix="$withval"
25259else
25260 gtk_config_prefix=""
25261fi;
25262
25263# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25264if test "${with_gtk_exec_prefix+set}" = set; then
25265 withval="$with_gtk_exec_prefix"
25266 gtk_config_exec_prefix="$withval"
25267else
25268 gtk_config_exec_prefix=""
25269fi;
25270# Check whether --enable-gtktest or --disable-gtktest was given.
25271if test "${enable_gtktest+set}" = set; then
25272 enableval="$enable_gtktest"
25273
25274else
25275 enable_gtktest=yes
25276fi;
25277
25278 for module in . $GTK_MODULES
25279 do
25280 case "$module" in
25281 gthread)
25282 gtk_config_args="$gtk_config_args gthread"
25283 ;;
25284 esac
25285 done
25286
25287 if test x$gtk_config_exec_prefix != x ; then
25288 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25289 if test x${GTK_CONFIG+set} != xset ; then
25290 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25291 fi
25292 fi
25293 if test x$gtk_config_prefix != x ; then
25294 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25295 if test x${GTK_CONFIG+set} != xset ; then
25296 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25297 fi
25298 fi
25299
25300 # Extract the first word of "gtk-config", so it can be a program name with args.
25301set dummy gtk-config; ac_word=$2
25302echo "$as_me:$LINENO: checking for $ac_word" >&5
25303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25304if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25305 echo $ECHO_N "(cached) $ECHO_C" >&6
25306else
25307 case $GTK_CONFIG in
25308 [\\/]* | ?:[\\/]*)
25309 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25310 ;;
25311 *)
25312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25313for as_dir in $PATH
25314do
25315 IFS=$as_save_IFS
25316 test -z "$as_dir" && as_dir=.
25317 for ac_exec_ext in '' $ac_executable_extensions; do
25318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25319 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25321 break 2
25322 fi
25323done
25324done
25325
25326 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25327 ;;
25328esac
25329fi
25330GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25331
25332if test -n "$GTK_CONFIG"; then
25333 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25334echo "${ECHO_T}$GTK_CONFIG" >&6
25335else
25336 echo "$as_me:$LINENO: result: no" >&5
25337echo "${ECHO_T}no" >&6
25338fi
25339
25340 min_gtk_version=1.2.3
25341 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25342echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25343 no_gtk=""
25344 if test "$GTK_CONFIG" = "no" ; then
25345 no_gtk=yes
25346 else
25347 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25348 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25349 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25350 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25351 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25352 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25353 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25354 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25355 if test "x$enable_gtktest" = "xyes" ; then
25356 ac_save_CFLAGS="$CFLAGS"
25357 ac_save_LIBS="$LIBS"
25358 CFLAGS="$CFLAGS $GTK_CFLAGS"
25359 LIBS="$GTK_LIBS $LIBS"
25360 rm -f conf.gtktest
25361 if test "$cross_compiling" = yes; then
25362 echo $ac_n "cross compiling; assumed OK... $ac_c"
25363else
25364 cat >conftest.$ac_ext <<_ACEOF
25365/* confdefs.h. */
25366_ACEOF
25367cat confdefs.h >>conftest.$ac_ext
25368cat >>conftest.$ac_ext <<_ACEOF
25369/* end confdefs.h. */
25370
25371#include <gtk/gtk.h>
25372#include <stdio.h>
25373#include <stdlib.h>
25374
25375int
25376main ()
25377{
25378 int major, minor, micro;
25379 char *tmp_version;
25380
25381 system ("touch conf.gtktest");
25382
25383 /* HP/UX 9 (%@#!) writes to sscanf strings */
25384 tmp_version = g_strdup("$min_gtk_version");
25385 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25386 printf("%s, bad version string\n", "$min_gtk_version");
25387 exit(1);
25388 }
25389
25390 if ((gtk_major_version != $gtk_config_major_version) ||
25391 (gtk_minor_version != $gtk_config_minor_version) ||
25392 (gtk_micro_version != $gtk_config_micro_version))
25393 {
25394 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25395 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25396 gtk_major_version, gtk_minor_version, gtk_micro_version);
25397 printf ("*** was found! If gtk-config was correct, then it is best\n");
25398 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25399 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25400 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25401 printf("*** required on your system.\n");
25402 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25403 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25404 printf("*** before re-running configure\n");
25405 }
25406#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25407 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25408 (gtk_minor_version != GTK_MINOR_VERSION) ||
25409 (gtk_micro_version != GTK_MICRO_VERSION))
25410 {
25411 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25412 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25413 printf("*** library (version %d.%d.%d)\n",
25414 gtk_major_version, gtk_minor_version, gtk_micro_version);
25415 }
25416#endif /* defined (GTK_MAJOR_VERSION) ... */
25417 else
25418 {
25419 if ((gtk_major_version > major) ||
25420 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25421 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25422 {
25423 return 0;
25424 }
25425 else
25426 {
25427 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25428 gtk_major_version, gtk_minor_version, gtk_micro_version);
25429 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25430 major, minor, micro);
25431 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25432 printf("***\n");
25433 printf("*** If you have already installed a sufficiently new version, this error\n");
25434 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25435 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25436 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25437 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25438 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25439 printf("*** so that the correct libraries are found at run-time))\n");
25440 }
25441 }
25442 return 1;
25443}
25444
25445_ACEOF
25446rm -f conftest$ac_exeext
25447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25448 (eval $ac_link) 2>&5
25449 ac_status=$?
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25454 ac_status=$?
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; }; then
25457 :
25458else
25459 echo "$as_me: program exited with status $ac_status" >&5
25460echo "$as_me: failed program was:" >&5
25461sed 's/^/| /' conftest.$ac_ext >&5
25462
25463( exit $ac_status )
25464no_gtk=yes
25465fi
ac1cb8d3 25466rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25467fi
25468 CFLAGS="$ac_save_CFLAGS"
25469 LIBS="$ac_save_LIBS"
25470 fi
25471 fi
25472 if test "x$no_gtk" = x ; then
25473 echo "$as_me:$LINENO: result: yes" >&5
25474echo "${ECHO_T}yes" >&6
25475 wx_cv_lib_gtk=1.2.3
25476 else
25477 echo "$as_me:$LINENO: result: no" >&5
25478echo "${ECHO_T}no" >&6
25479 if test "$GTK_CONFIG" = "no" ; then
25480 echo "*** The gtk-config script installed by GTK could not be found"
25481 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25482 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25483 echo "*** full path to gtk-config."
25484 else
25485 if test -f conf.gtktest ; then
25486 :
25487 else
25488 echo "*** Could not run GTK test program, checking why..."
25489 CFLAGS="$CFLAGS $GTK_CFLAGS"
25490 LIBS="$LIBS $GTK_LIBS"
25491 cat >conftest.$ac_ext <<_ACEOF
25492/* confdefs.h. */
25493_ACEOF
25494cat confdefs.h >>conftest.$ac_ext
25495cat >>conftest.$ac_ext <<_ACEOF
25496/* end confdefs.h. */
25497
25498#include <gtk/gtk.h>
25499#include <stdio.h>
25500
25501int
25502main ()
25503{
25504 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25505 ;
25506 return 0;
25507}
25508_ACEOF
25509rm -f conftest.$ac_objext conftest$ac_exeext
25510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25511 (eval $ac_link) 2>conftest.er1
a848cd7e 25512 ac_status=$?
ac1cb8d3
VS
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
a848cd7e
SC
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } &&
6ebeb4c7 25518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); }; } &&
25524 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; }; then
25530 echo "*** The test program compiled, but did not run. This usually means"
25531 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25532 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25533 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25534 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25535 echo "*** is required on your system"
25536 echo "***"
25537 echo "*** If you have an old version installed, it is best to remove it, although"
25538 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25539 echo "***"
25540 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25541 echo "*** came with the system with the command"
25542 echo "***"
25543 echo "*** rpm --erase --nodeps gtk gtk-devel"
25544else
25545 echo "$as_me: failed program was:" >&5
25546sed 's/^/| /' conftest.$ac_ext >&5
25547
25548 echo "*** The test program failed to compile or link. See the file config.log for the"
25549 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25550 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25551 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25552fi
ac1cb8d3
VS
25553rm -f conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25555 CFLAGS="$ac_save_CFLAGS"
25556 LIBS="$ac_save_LIBS"
25557 fi
25558 fi
25559 GTK_CFLAGS=""
25560 GTK_LIBS=""
25561 :
25562 fi
25563
25564
25565 rm -f conf.gtktest
25566
f34ca037 25567 fi
a848cd7e
SC
25568 fi
25569 fi
25570
25571 if test -z "$wx_cv_lib_gtk"; then
25572 wx_cv_lib_gtk=none
25573 else
25574 wx_cv_cflags_gtk=$GTK_CFLAGS
25575 wx_cv_libs_gtk=$GTK_LIBS
25576 fi
25577
25578
25579fi
25580
25581
25582 if test "$gtk_version_cached" = 1; then
25583 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25584echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25585 fi
25586
25587 case "$wx_cv_lib_gtk" in
25588 2.0) WXGTK20=1
25589 TOOLKIT_VERSION=2
25590 ;;
25591 1.2.7) WXGTK127=1
25592 WXGTK12=1
25593 ;;
25594 1.2.3) WXGTK12=1
25595 ;;
25596 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25597The development files for GTK+ were not found. For GTK+ 2, please
25598ensure that pkg-config is in the path and that gtk+-2.0.pc is
25599installed. For GTK+ 1.2 please check that gtk-config is in the path,
25600and that the version is 1.2.3 or above. Also check that the
25601libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25602--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25603 " >&5
25604echo "$as_me: error:
f597b41c
MW
25605The development files for GTK+ were not found. For GTK+ 2, please
25606ensure that pkg-config is in the path and that gtk+-2.0.pc is
25607installed. For GTK+ 1.2 please check that gtk-config is in the path,
25608and that the version is 1.2.3 or above. Also check that the
25609libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25610--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25611 " >&2;}
25612 { (exit 1); exit 1; }; }
25613 ;;
25614 esac
25615
25616 if test "$WXGTK20" = 1; then
304205f1
VS
25617 save_CFLAGS="$CFLAGS"
25618 save_LIBS="$LIBS"
9d271838 25619 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25620 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25621
9755e73b 25622
304205f1
VS
25623for ac_func in pango_font_family_is_monospace
25624do
25625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25626echo "$as_me:$LINENO: checking for $ac_func" >&5
25627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25628if eval "test \"\${$as_ac_var+set}\" = set"; then
25629 echo $ECHO_N "(cached) $ECHO_C" >&6
25630else
25631 cat >conftest.$ac_ext <<_ACEOF
25632/* confdefs.h. */
25633_ACEOF
25634cat confdefs.h >>conftest.$ac_ext
25635cat >>conftest.$ac_ext <<_ACEOF
25636/* end confdefs.h. */
25637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25639#define $ac_func innocuous_$ac_func
25640
25641/* System header to define __stub macros and hopefully few prototypes,
25642 which can conflict with char $ac_func (); below.
25643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25644 <limits.h> exists even on freestanding compilers. */
25645
25646#ifdef __STDC__
25647# include <limits.h>
25648#else
25649# include <assert.h>
25650#endif
25651
25652#undef $ac_func
25653
25654/* Override any gcc2 internal prototype to avoid an error. */
25655#ifdef __cplusplus
25656extern "C"
25657{
25658#endif
25659/* We use char because int might match the return type of a gcc2
25660 builtin and then its argument prototype would still apply. */
25661char $ac_func ();
25662/* The GNU C library defines this for functions which it implements
25663 to always fail with ENOSYS. Some functions are actually named
25664 something starting with __ and the normal name is an alias. */
25665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25666choke me
25667#else
25668char (*f) () = $ac_func;
25669#endif
25670#ifdef __cplusplus
25671}
25672#endif
25673
25674int
25675main ()
25676{
25677return f != $ac_func;
25678 ;
25679 return 0;
25680}
25681_ACEOF
25682rm -f conftest.$ac_objext conftest$ac_exeext
25683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25684 (eval $ac_link) 2>conftest.er1
25685 ac_status=$?
25686 grep -v '^ *+' conftest.er1 >conftest.err
25687 rm -f conftest.er1
25688 cat conftest.err >&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); } &&
6ebeb4c7 25691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693 (eval $ac_try) 2>&5
25694 ac_status=$?
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); }; } &&
25697 { ac_try='test -s conftest$ac_exeext'
25698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699 (eval $ac_try) 2>&5
25700 ac_status=$?
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); }; }; then
25703 eval "$as_ac_var=yes"
25704else
25705 echo "$as_me: failed program was:" >&5
25706sed 's/^/| /' conftest.$ac_ext >&5
25707
25708eval "$as_ac_var=no"
25709fi
25710rm -f conftest.err conftest.$ac_objext \
25711 conftest$ac_exeext conftest.$ac_ext
25712fi
25713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25714echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25715if test `eval echo '${'$as_ac_var'}'` = yes; then
25716 cat >>confdefs.h <<_ACEOF
25717#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25718_ACEOF
25719
25720fi
25721done
25722
9755e73b 25723
abc736fd
MW
25724 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25725echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25726 cat >conftest.$ac_ext <<_ACEOF
25727/* confdefs.h. */
25728_ACEOF
25729cat confdefs.h >>conftest.$ac_ext
25730cat >>conftest.$ac_ext <<_ACEOF
25731/* end confdefs.h. */
25732
25733 #include <gtk/gtk.h>
25734
25735int
25736main ()
25737{
25738
25739 void *f = gtk_icon_size_lookup;
25740
25741 ;
25742 return 0;
25743}
25744_ACEOF
25745rm -f conftest.$ac_objext
25746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25747 (eval $ac_compile) 2>conftest.er1
25748 ac_status=$?
25749 grep -v '^ *+' conftest.er1 >conftest.err
25750 rm -f conftest.er1
25751 cat conftest.err >&5
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } &&
6ebeb4c7 25754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
25755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756 (eval $ac_try) 2>&5
25757 ac_status=$?
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); }; } &&
25760 { ac_try='test -s conftest.$ac_objext'
25761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); }; }; then
25766
25767 echo "$as_me:$LINENO: result: no" >&5
25768echo "${ECHO_T}no" >&6
25769
25770else
25771 echo "$as_me: failed program was:" >&5
25772sed 's/^/| /' conftest.$ac_ext >&5
25773
25774
25775 cat >>confdefs.h <<\_ACEOF
25776#define NEED_GTK_ICON_SIZE_LOOKUP 1
25777_ACEOF
25778
25779 echo "$as_me:$LINENO: result: yes" >&5
25780echo "${ECHO_T}yes" >&6
25781
25782fi
25783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25784
9755e73b
VS
25785 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25786echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25787 cat >conftest.$ac_ext <<_ACEOF
25788/* confdefs.h. */
25789_ACEOF
25790cat confdefs.h >>conftest.$ac_ext
25791cat >>conftest.$ac_ext <<_ACEOF
25792/* end confdefs.h. */
25793
25794 #include <gtk/gtk.h>
25795
25796int
25797main ()
25798{
25799
25800 #if !GTK_CHECK_VERSION(2,4,0)
25801 #error "Not GTK+ 2.4"
25802 #endif
25803
25804 ;
25805 return 0;
25806}
25807_ACEOF
25808rm -f conftest.$ac_objext
25809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25810 (eval $ac_compile) 2>conftest.er1
25811 ac_status=$?
25812 grep -v '^ *+' conftest.er1 >conftest.err
25813 rm -f conftest.er1
25814 cat conftest.err >&5
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); } &&
6ebeb4c7 25817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819 (eval $ac_try) 2>&5
25820 ac_status=$?
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); }; } &&
25823 { ac_try='test -s conftest.$ac_objext'
25824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25825 (eval $ac_try) 2>&5
25826 ac_status=$?
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); }; }; then
25829
25830 cat >>confdefs.h <<\_ACEOF
25831#define __WXGTK24__ 1
25832_ACEOF
25833
25834 echo "$as_me:$LINENO: result: yes" >&5
25835echo "${ECHO_T}yes" >&6
25836
25837else
25838 echo "$as_me: failed program was:" >&5
25839sed 's/^/| /' conftest.$ac_ext >&5
25840
25841
25842 echo "$as_me:$LINENO: result: no" >&5
25843echo "${ECHO_T}no" >&6
25844
25845fi
25846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25847
304205f1
VS
25848 CFLAGS="$save_CFLAGS"
25849 LIBS="$save_LIBS"
a848cd7e
SC
25850 else
25851 if test "$wxUSE_UNICODE" = "yes"; then
25852 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25853echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25854 wxUSE_UNICODE=no
25855 fi
25856 fi
25857
25858 if test "$USE_DARWIN" != 1; then
25859
25860for ac_func in poll
25861do
25862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25863echo "$as_me:$LINENO: checking for $ac_func" >&5
25864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25865if eval "test \"\${$as_ac_var+set}\" = set"; then
25866 echo $ECHO_N "(cached) $ECHO_C" >&6
25867else
25868 cat >conftest.$ac_ext <<_ACEOF
25869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
ac1cb8d3
VS
25874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25876#define $ac_func innocuous_$ac_func
25877
a848cd7e
SC
25878/* System header to define __stub macros and hopefully few prototypes,
25879 which can conflict with char $ac_func (); below.
25880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25881 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25882
a848cd7e
SC
25883#ifdef __STDC__
25884# include <limits.h>
25885#else
25886# include <assert.h>
25887#endif
ac1cb8d3
VS
25888
25889#undef $ac_func
25890
a848cd7e
SC
25891/* Override any gcc2 internal prototype to avoid an error. */
25892#ifdef __cplusplus
25893extern "C"
25894{
25895#endif
25896/* We use char because int might match the return type of a gcc2
25897 builtin and then its argument prototype would still apply. */
25898char $ac_func ();
25899/* The GNU C library defines this for functions which it implements
25900 to always fail with ENOSYS. Some functions are actually named
25901 something starting with __ and the normal name is an alias. */
25902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25903choke me
25904#else
25905char (*f) () = $ac_func;
25906#endif
25907#ifdef __cplusplus
25908}
25909#endif
25910
25911int
25912main ()
25913{
25914return f != $ac_func;
25915 ;
25916 return 0;
25917}
25918_ACEOF
25919rm -f conftest.$ac_objext conftest$ac_exeext
25920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25921 (eval $ac_link) 2>conftest.er1
a848cd7e 25922 ac_status=$?
ac1cb8d3
VS
25923 grep -v '^ *+' conftest.er1 >conftest.err
25924 rm -f conftest.er1
25925 cat conftest.err >&5
a848cd7e
SC
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); } &&
6ebeb4c7 25928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25930 (eval $ac_try) 2>&5
25931 ac_status=$?
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); }; } &&
25934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); }; }; then
25940 eval "$as_ac_var=yes"
25941else
25942 echo "$as_me: failed program was:" >&5
25943sed 's/^/| /' conftest.$ac_ext >&5
25944
25945eval "$as_ac_var=no"
25946fi
ac1cb8d3
VS
25947rm -f conftest.err conftest.$ac_objext \
25948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25949fi
25950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25952if test `eval echo '${'$as_ac_var'}'` = yes; then
25953 cat >>confdefs.h <<_ACEOF
25954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25955_ACEOF
25956
25957fi
25958done
25959
25960 fi
25961
25962 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25963 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25964
25965 AFMINSTALL=afminstall
25966 TOOLKIT=GTK
25967 GUIDIST=GTK_DIST
25968
25969 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25970echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25971if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25972 echo $ECHO_N "(cached) $ECHO_C" >&6
25973else
25974 ac_check_lib_save_LIBS=$LIBS
25975LIBS="-lgdk $LIBS"
25976cat >conftest.$ac_ext <<_ACEOF
25977/* confdefs.h. */
25978_ACEOF
25979cat confdefs.h >>conftest.$ac_ext
25980cat >>conftest.$ac_ext <<_ACEOF
25981/* end confdefs.h. */
25982
25983/* Override any gcc2 internal prototype to avoid an error. */
25984#ifdef __cplusplus
25985extern "C"
25986#endif
25987/* We use char because int might match the return type of a gcc2
25988 builtin and then its argument prototype would still apply. */
25989char gdk_im_open ();
25990int
25991main ()
25992{
25993gdk_im_open ();
25994 ;
25995 return 0;
25996}
25997_ACEOF
25998rm -f conftest.$ac_objext conftest$ac_exeext
25999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26000 (eval $ac_link) 2>conftest.er1
a848cd7e 26001 ac_status=$?
ac1cb8d3
VS
26002 grep -v '^ *+' conftest.er1 >conftest.err
26003 rm -f conftest.er1
26004 cat conftest.err >&5
a848cd7e
SC
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); } &&
6ebeb4c7 26007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26009 (eval $ac_try) 2>&5
26010 ac_status=$?
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); }; } &&
26013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); }; }; then
26019 ac_cv_lib_gdk_gdk_im_open=yes
26020else
26021 echo "$as_me: failed program was:" >&5
26022sed 's/^/| /' conftest.$ac_ext >&5
26023
26024ac_cv_lib_gdk_gdk_im_open=no
26025fi
ac1cb8d3
VS
26026rm -f conftest.err conftest.$ac_objext \
26027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26028LIBS=$ac_check_lib_save_LIBS
26029fi
26030echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26031echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26032if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26033 cat >>confdefs.h <<\_ACEOF
26034#define HAVE_XIM 1
26035_ACEOF
26036
26037fi
26038
26039
26040
26041 if test "$wxUSE_GPE" = "yes"; then
26042 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26043echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26044
26045ac_find_libraries=
26046for ac_dir in $SEARCH_LIB /usr/lib;
26047 do
3eca31dc 26048 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26049 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26050 ac_find_libraries=$ac_dir
26051 break 2
26052 fi
26053 done
26054 done
26055
26056 if test "$ac_find_libraries" != "" ; then
26057
26058 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26059 result=$?
26060 if test $result = 0; then
26061 ac_path_to_link=""
26062 else
26063 ac_path_to_link=" -L$ac_find_libraries"
26064 fi
26065
26066 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26067 WXGPE=1
26068 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26069echo "${ECHO_T}found at $ac_find_libraries" >&6
26070 else
26071 echo "$as_me:$LINENO: result: not found" >&5
26072echo "${ECHO_T}not found" >&6
26073 fi
26074
26075 fi
26076 fi
26077
26078 if test "$wxUSE_MGL" = 1; then
26079 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26080echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26081 if test "x$MGL_ROOT" = x ; then
26082 echo "$as_me:$LINENO: result: not found" >&5
26083echo "${ECHO_T}not found" >&6
26084 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26085echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26086 { (exit 1); exit 1; }; }
26087 else
26088 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26089echo "${ECHO_T}$MGL_ROOT" >&6
26090 fi
26091
26092 echo "$as_me:$LINENO: checking for libmgl location" >&5
26093echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26094 case "${host}" in
26095 *-*-linux* )
26096 if test "x$wxUSE_SHARED" = xyes ; then
26097 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26098 else
26099 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26100 fi
26101 ;;
26102 *-pc-msdosdjgpp )
26103 mgl_os_candidates="dos32/dj2"
26104 ;;
26105 *)
26106 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26107echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26108 { (exit 1); exit 1; }; }
26109 esac
26110
26111 mgl_lib_type=""
26112 mgl_os=""
26113
26114 for mgl_os_i in $mgl_os_candidates ; do
26115 if test "x$mgl_os" = x ; then
26116 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26117 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26118 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26119 mgl_lib_type=debug
26120 mgl_os=$mgl_os_i
26121 fi
26122 fi
26123 if test "x$mgl_lib_type" = x ; then
26124 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26125 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26126 mgl_lib_type=release
26127 mgl_os=$mgl_os_i
26128 fi
26129 fi
26130 fi
26131 done
26132
26133 if test "x$mgl_os" = x ; then
26134 echo "$as_me:$LINENO: result: not found" >&5
26135echo "${ECHO_T}not found" >&6
26136 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26137echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26138 { (exit 1); exit 1; }; }
26139 fi
26140 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26141echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26142
26143 wxUSE_UNIVERSAL="yes"
26144
26145 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26146 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26147
26148 AFMINSTALL=afminstall
26149 TOOLKIT=MGL
26150 GUIDIST=MGL_DIST
26151 fi
26152
26153 if test "$wxUSE_MICROWIN" = 1; then
26154 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26155echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26156 if test "x$MICROWINDOWS" = x ; then
26157 echo "$as_me:$LINENO: result: not found" >&5
26158echo "${ECHO_T}not found" >&6
26159 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26160echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26161 { (exit 1); exit 1; }; }
26162 else
26163 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26164echo "${ECHO_T}$MICROWINDOWS" >&6
26165 fi
26166
26167 if test -f $MICROWINDOWS/lib/libmwin.a; then
26168 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26169echo "${ECHO_T}MicroWindows' libraries found." >&6
26170 else
26171 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26172echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26173 { (exit 1); exit 1; }; }
26174 fi
26175
26176 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26177 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26178
26179 wxUSE_UNIVERSAL="yes"
26180
26181 AFMINSTALL=afminstall
26182 TOOLKIT=MICROWIN
26183 GUIDIST=MICROWIN_DIST
26184
26185 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26186 fi
26187
74b84332 26188 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26189
26190if test "x$ac_path_x_has_been_run" != xyes; then
26191 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26192echo $ECHO_N "checking for X... $ECHO_C" >&6
26193
6ebeb4c7 26194ac_path_x_has_been_run=yes
a848cd7e
SC
26195
26196# Check whether --with-x or --without-x was given.
26197if test "${with_x+set}" = set; then
26198 withval="$with_x"
26199
26200fi;
26201# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26202if test "x$with_x" = xno; then
26203 # The user explicitly disabled X.
26204 have_x=disabled
26205else
26206 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26207 # Both variables are already set.
26208 have_x=yes
26209 else
26210 if test "${ac_cv_have_x+set}" = set; then
26211 echo $ECHO_N "(cached) $ECHO_C" >&6
26212else
26213 # One or both of the vars are not set, and there is no cached value.
26214ac_x_includes=no ac_x_libraries=no
26215rm -fr conftest.dir
26216if mkdir conftest.dir; then
26217 cd conftest.dir
26218 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26219 cat >Imakefile <<'_ACEOF'
26220acfindx:
26221 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26222_ACEOF
26223 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26225 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26226 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26227 for ac_extension in a so sl; do
26228 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26229 test -f $ac_im_libdir/libX11.$ac_extension; then
26230 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26231 fi
26232 done
26233 # Screen out bogus values from the imake configuration. They are
26234 # bogus both because they are the default anyway, and because
26235 # using them would break gcc on systems where it needs fixed includes.
26236 case $ac_im_incroot in
26237 /usr/include) ;;
26238 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26239 esac
26240 case $ac_im_usrlibdir in
26241 /usr/lib | /lib) ;;
26242 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26243 esac
26244 fi
26245 cd ..
26246 rm -fr conftest.dir
26247fi
26248
26249# Standard set of common directories for X headers.
26250# Check X11 before X11Rn because it is often a symlink to the current release.
26251ac_x_header_dirs='
26252/usr/X11/include
26253/usr/X11R6/include
26254/usr/X11R5/include
26255/usr/X11R4/include
26256
26257/usr/include/X11
26258/usr/include/X11R6
26259/usr/include/X11R5
26260/usr/include/X11R4
26261
26262/usr/local/X11/include
26263/usr/local/X11R6/include
26264/usr/local/X11R5/include
26265/usr/local/X11R4/include
26266
26267/usr/local/include/X11
26268/usr/local/include/X11R6
26269/usr/local/include/X11R5
26270/usr/local/include/X11R4
26271
26272/usr/X386/include
26273/usr/x386/include
26274/usr/XFree86/include/X11
26275
26276/usr/include
26277/usr/local/include
26278/usr/unsupported/include
26279/usr/athena/include
26280/usr/local/x11r5/include
26281/usr/lpp/Xamples/include
26282
26283/usr/openwin/include
26284/usr/openwin/share/include'
26285
26286if test "$ac_x_includes" = no; then
6ebeb4c7 26287 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26288 # First, try using that file with no special directory specified.
26289 cat >conftest.$ac_ext <<_ACEOF
26290/* confdefs.h. */
26291_ACEOF
26292cat confdefs.h >>conftest.$ac_ext
26293cat >>conftest.$ac_ext <<_ACEOF
26294/* end confdefs.h. */
26295#include <X11/Intrinsic.h>
26296_ACEOF
26297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26299 ac_status=$?
26300 grep -v '^ *+' conftest.er1 >conftest.err
26301 rm -f conftest.er1
26302 cat conftest.err >&5
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); } >/dev/null; then
26305 if test -s conftest.err; then
26306 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26308 else
26309 ac_cpp_err=
26310 fi
26311else
26312 ac_cpp_err=yes
26313fi
26314if test -z "$ac_cpp_err"; then
26315 # We can compile using X headers with no special include directory.
26316ac_x_includes=
26317else
26318 echo "$as_me: failed program was:" >&5
26319sed 's/^/| /' conftest.$ac_ext >&5
26320
26321 for ac_dir in $ac_x_header_dirs; do
26322 if test -r "$ac_dir/X11/Intrinsic.h"; then
26323 ac_x_includes=$ac_dir
26324 break
26325 fi
26326done
26327fi
26328rm -f conftest.err conftest.$ac_ext
26329fi # $ac_x_includes = no
26330
26331if test "$ac_x_libraries" = no; then
26332 # Check for the libraries.
26333 # See if we find them without any special options.
26334 # Don't add to $LIBS permanently.
26335 ac_save_LIBS=$LIBS
26336 LIBS="-lXt $LIBS"
26337 cat >conftest.$ac_ext <<_ACEOF
26338/* confdefs.h. */
26339_ACEOF
26340cat confdefs.h >>conftest.$ac_ext
26341cat >>conftest.$ac_ext <<_ACEOF
26342/* end confdefs.h. */
26343#include <X11/Intrinsic.h>
26344int
26345main ()
26346{
26347XtMalloc (0)
26348 ;
26349 return 0;
26350}
26351_ACEOF
26352rm -f conftest.$ac_objext conftest$ac_exeext
26353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26354 (eval $ac_link) 2>conftest.er1
a848cd7e 26355 ac_status=$?
ac1cb8d3
VS
26356 grep -v '^ *+' conftest.er1 >conftest.err
26357 rm -f conftest.er1
26358 cat conftest.err >&5
a848cd7e
SC
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); } &&
6ebeb4c7 26361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
26364 ac_status=$?
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; } &&
26367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369 (eval $ac_try) 2>&5
26370 ac_status=$?
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; }; then
26373 LIBS=$ac_save_LIBS
26374# We can link X programs with no special library path.
26375ac_x_libraries=
26376else
26377 echo "$as_me: failed program was:" >&5
26378sed 's/^/| /' conftest.$ac_ext >&5
26379
26380LIBS=$ac_save_LIBS
26381for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26382do
26383 # Don't even attempt the hair of trying to link an X program!
26384 for ac_extension in a so sl; do
26385 if test -r $ac_dir/libXt.$ac_extension; then
26386 ac_x_libraries=$ac_dir
26387 break 2
26388 fi
26389 done
26390done
26391fi
ac1cb8d3
VS
26392rm -f conftest.err conftest.$ac_objext \
26393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26394fi # $ac_x_libraries = no
26395
26396if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26397 # Didn't find X anywhere. Cache the known absence of X.
26398 ac_cv_have_x="have_x=no"
26399else
26400 # Record where we found X for the cache.
26401 ac_cv_have_x="have_x=yes \
ac1cb8d3 26402 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26403fi
26404fi
26405
26406 fi
26407 eval "$ac_cv_have_x"
26408fi # $with_x != no
26409
26410if test "$have_x" != yes; then
26411 echo "$as_me:$LINENO: result: $have_x" >&5
26412echo "${ECHO_T}$have_x" >&6
26413 no_x=yes
26414else
26415 # If each of the values was on the command line, it overrides each guess.
26416 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26417 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26418 # Update the cache value to reflect the command line values.
26419 ac_cv_have_x="have_x=yes \
26420 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26421 # It might be that x_includes is empty (headers are found in the
26422 # standard search path. Then output the corresponding message
26423 ac_out_x_includes=$x_includes
26424 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26425 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26426echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26427fi
26428
6ebeb4c7 26429fi
a848cd7e
SC
26430if test "$no_x" = yes; then
26431 # Not all programs may use this symbol, but it does not hurt to define it.
26432
26433cat >>confdefs.h <<\_ACEOF
26434#define X_DISPLAY_MISSING 1
26435_ACEOF
26436
26437 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26438else
26439 if test -n "$x_includes"; then
26440 X_CFLAGS="$X_CFLAGS -I$x_includes"
26441 fi
26442
26443 # It would also be nice to do this for all -L options, not just this one.
26444 if test -n "$x_libraries"; then
26445 X_LIBS="$X_LIBS -L$x_libraries"
26446 # For Solaris; some versions of Sun CC require a space after -R and
26447 # others require no space. Words are not sufficient . . . .
26448 case `(uname -sr) 2>/dev/null` in
26449 "SunOS 5"*)
26450 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26451echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26452 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26453 cat >conftest.$ac_ext <<_ACEOF
26454/* confdefs.h. */
26455_ACEOF
26456cat confdefs.h >>conftest.$ac_ext
26457cat >>conftest.$ac_ext <<_ACEOF
26458/* end confdefs.h. */
26459
26460int
26461main ()
26462{
26463
26464 ;
26465 return 0;
26466}
26467_ACEOF
26468rm -f conftest.$ac_objext conftest$ac_exeext
26469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26470 (eval $ac_link) 2>conftest.er1
a848cd7e 26471 ac_status=$?
ac1cb8d3
VS
26472 grep -v '^ *+' conftest.er1 >conftest.err
26473 rm -f conftest.er1
26474 cat conftest.err >&5
a848cd7e
SC
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); } &&
6ebeb4c7 26477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26479 (eval $ac_try) 2>&5
26480 ac_status=$?
26481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482 (exit $ac_status); }; } &&
26483 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26485 (eval $ac_try) 2>&5
26486 ac_status=$?
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); }; }; then
26489 ac_R_nospace=yes
26490else
26491 echo "$as_me: failed program was:" >&5
26492sed 's/^/| /' conftest.$ac_ext >&5
26493
26494ac_R_nospace=no
26495fi
ac1cb8d3
VS
26496rm -f conftest.err conftest.$ac_objext \
26497 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26498 if test $ac_R_nospace = yes; then
26499 echo "$as_me:$LINENO: result: no" >&5
26500echo "${ECHO_T}no" >&6
26501 X_LIBS="$X_LIBS -R$x_libraries"
26502 else
26503 LIBS="$ac_xsave_LIBS -R $x_libraries"
26504 cat >conftest.$ac_ext <<_ACEOF
26505/* confdefs.h. */
26506_ACEOF
26507cat confdefs.h >>conftest.$ac_ext
26508cat >>conftest.$ac_ext <<_ACEOF
26509/* end confdefs.h. */
26510
26511int
26512main ()
26513{
26514
26515 ;
26516 return 0;
26517}
26518_ACEOF
26519rm -f conftest.$ac_objext conftest$ac_exeext
26520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26521 (eval $ac_link) 2>conftest.er1
a848cd7e 26522 ac_status=$?
ac1cb8d3
VS
26523 grep -v '^ *+' conftest.er1 >conftest.err
26524 rm -f conftest.er1
26525 cat conftest.err >&5
a848cd7e
SC
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } &&
6ebeb4c7 26528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26530 (eval $ac_try) 2>&5
26531 ac_status=$?
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); }; } &&
26534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536 (eval $ac_try) 2>&5
26537 ac_status=$?
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); }; }; then
26540 ac_R_space=yes
26541else
26542 echo "$as_me: failed program was:" >&5
26543sed 's/^/| /' conftest.$ac_ext >&5
26544
26545ac_R_space=no
26546fi
ac1cb8d3
VS
26547rm -f conftest.err conftest.$ac_objext \
26548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26549 if test $ac_R_space = yes; then
26550 echo "$as_me:$LINENO: result: yes" >&5
26551echo "${ECHO_T}yes" >&6
26552 X_LIBS="$X_LIBS -R $x_libraries"
26553 else
26554 echo "$as_me:$LINENO: result: neither works" >&5
26555echo "${ECHO_T}neither works" >&6
26556 fi
26557 fi
26558 LIBS=$ac_xsave_LIBS
26559 esac
26560 fi
26561
26562 # Check for system-dependent libraries X programs must link with.
26563 # Do this before checking for the system-independent R6 libraries
26564 # (-lICE), since we may need -lsocket or whatever for X linking.
26565
26566 if test "$ISC" = yes; then
26567 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26568 else
26569 # Martyn Johnson says this is needed for Ultrix, if the X
26570 # libraries were built with DECnet support. And Karl Berry says
26571 # the Alpha needs dnet_stub (dnet does not exist).
26572 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26573 cat >conftest.$ac_ext <<_ACEOF
26574/* confdefs.h. */
26575_ACEOF
26576cat confdefs.h >>conftest.$ac_ext
26577cat >>conftest.$ac_ext <<_ACEOF
26578/* end confdefs.h. */
26579
26580/* Override any gcc2 internal prototype to avoid an error. */
26581#ifdef __cplusplus
26582extern "C"
26583#endif
26584/* We use char because int might match the return type of a gcc2
26585 builtin and then its argument prototype would still apply. */
26586char XOpenDisplay ();
26587int
26588main ()
26589{
26590XOpenDisplay ();
26591 ;
26592 return 0;
26593}
26594_ACEOF
26595rm -f conftest.$ac_objext conftest$ac_exeext
26596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26597 (eval $ac_link) 2>conftest.er1
a848cd7e 26598 ac_status=$?
ac1cb8d3
VS
26599 grep -v '^ *+' conftest.er1 >conftest.err
26600 rm -f conftest.er1
26601 cat conftest.err >&5
a848cd7e
SC
26602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603 (exit $ac_status); } &&
6ebeb4c7 26604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26606 (eval $ac_try) 2>&5
26607 ac_status=$?
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); }; } &&
26610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612 (eval $ac_try) 2>&5
26613 ac_status=$?
26614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615 (exit $ac_status); }; }; then
26616 :
26617else
26618 echo "$as_me: failed program was:" >&5
26619sed 's/^/| /' conftest.$ac_ext >&5
26620
26621echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26622echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26623if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26625else
26626 ac_check_lib_save_LIBS=$LIBS
26627LIBS="-ldnet $LIBS"
26628cat >conftest.$ac_ext <<_ACEOF
26629/* confdefs.h. */
26630_ACEOF
26631cat confdefs.h >>conftest.$ac_ext
26632cat >>conftest.$ac_ext <<_ACEOF
26633/* end confdefs.h. */
26634
26635/* Override any gcc2 internal prototype to avoid an error. */
26636#ifdef __cplusplus
26637extern "C"
26638#endif
26639/* We use char because int might match the return type of a gcc2
26640 builtin and then its argument prototype would still apply. */
26641char dnet_ntoa ();
26642int
26643main ()
26644{
26645dnet_ntoa ();
26646 ;
26647 return 0;
26648}
26649_ACEOF
26650rm -f conftest.$ac_objext conftest$ac_exeext
26651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26652 (eval $ac_link) 2>conftest.er1
a848cd7e 26653 ac_status=$?
ac1cb8d3
VS
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
a848cd7e
SC
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
6ebeb4c7 26659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; } &&
26665 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); }; }; then
26671 ac_cv_lib_dnet_dnet_ntoa=yes
26672else
26673 echo "$as_me: failed program was:" >&5
26674sed 's/^/| /' conftest.$ac_ext >&5
26675
26676ac_cv_lib_dnet_dnet_ntoa=no
26677fi
ac1cb8d3
VS
26678rm -f conftest.err conftest.$ac_objext \
26679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26680LIBS=$ac_check_lib_save_LIBS
26681fi
26682echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26683echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26684if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26685 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26686fi
26687
26688 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26689 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26690echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26691if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26692 echo $ECHO_N "(cached) $ECHO_C" >&6
26693else
26694 ac_check_lib_save_LIBS=$LIBS
26695LIBS="-ldnet_stub $LIBS"
26696cat >conftest.$ac_ext <<_ACEOF
26697/* confdefs.h. */
26698_ACEOF
26699cat confdefs.h >>conftest.$ac_ext
26700cat >>conftest.$ac_ext <<_ACEOF
26701/* end confdefs.h. */
26702
26703/* Override any gcc2 internal prototype to avoid an error. */
26704#ifdef __cplusplus
26705extern "C"
26706#endif
26707/* We use char because int might match the return type of a gcc2
26708 builtin and then its argument prototype would still apply. */
26709char dnet_ntoa ();
26710int
26711main ()
26712{
26713dnet_ntoa ();
26714 ;
26715 return 0;
26716}
26717_ACEOF
26718rm -f conftest.$ac_objext conftest$ac_exeext
26719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26720 (eval $ac_link) 2>conftest.er1
a848cd7e 26721 ac_status=$?
ac1cb8d3
VS
26722 grep -v '^ *+' conftest.er1 >conftest.err
26723 rm -f conftest.er1
26724 cat conftest.err >&5
a848cd7e
SC
26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); } &&
6ebeb4c7 26727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; } &&
26733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; }; then
26739 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26740else
26741 echo "$as_me: failed program was:" >&5
26742sed 's/^/| /' conftest.$ac_ext >&5
26743
26744ac_cv_lib_dnet_stub_dnet_ntoa=no
26745fi
ac1cb8d3
VS
26746rm -f conftest.err conftest.$ac_objext \
26747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26748LIBS=$ac_check_lib_save_LIBS
26749fi
26750echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26751echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26752if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26753 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26754fi
26755
26756 fi
26757fi
ac1cb8d3
VS
26758rm -f conftest.err conftest.$ac_objext \
26759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26760 LIBS="$ac_xsave_LIBS"
26761
26762 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26763 # to get the SysV transport functions.
26764 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26765 # needs -lnsl.
26766 # The nsl library prevents programs from opening the X display
26767 # on Irix 5.2, according to T.E. Dickey.
26768 # The functions gethostbyname, getservbyname, and inet_addr are
26769 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26770 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26771echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26772if test "${ac_cv_func_gethostbyname+set}" = set; then
26773 echo $ECHO_N "(cached) $ECHO_C" >&6
26774else
26775 cat >conftest.$ac_ext <<_ACEOF
26776/* confdefs.h. */
26777_ACEOF
26778cat confdefs.h >>conftest.$ac_ext
26779cat >>conftest.$ac_ext <<_ACEOF
26780/* end confdefs.h. */
ac1cb8d3
VS
26781/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26783#define gethostbyname innocuous_gethostbyname
26784
a848cd7e
SC
26785/* System header to define __stub macros and hopefully few prototypes,
26786 which can conflict with char gethostbyname (); below.
26787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26788 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26789
a848cd7e
SC
26790#ifdef __STDC__
26791# include <limits.h>
26792#else
26793# include <assert.h>
26794#endif
ac1cb8d3
VS
26795
26796#undef gethostbyname
26797
a848cd7e
SC
26798/* Override any gcc2 internal prototype to avoid an error. */
26799#ifdef __cplusplus
26800extern "C"
26801{
26802#endif
26803/* We use char because int might match the return type of a gcc2
26804 builtin and then its argument prototype would still apply. */
26805char gethostbyname ();
26806/* The GNU C library defines this for functions which it implements
26807 to always fail with ENOSYS. Some functions are actually named
26808 something starting with __ and the normal name is an alias. */
26809#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26810choke me
26811#else
26812char (*f) () = gethostbyname;
26813#endif
26814#ifdef __cplusplus
26815}
26816#endif
26817
26818int
26819main ()
26820{
26821return f != gethostbyname;
26822 ;
26823 return 0;
26824}
26825_ACEOF
26826rm -f conftest.$ac_objext conftest$ac_exeext
26827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26828 (eval $ac_link) 2>conftest.er1
a848cd7e 26829 ac_status=$?
ac1cb8d3
VS
26830 grep -v '^ *+' conftest.er1 >conftest.err
26831 rm -f conftest.er1
26832 cat conftest.err >&5
a848cd7e
SC
26833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); } &&
6ebeb4c7 26835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26837 (eval $ac_try) 2>&5
26838 ac_status=$?
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); }; } &&
26841 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26843 (eval $ac_try) 2>&5
26844 ac_status=$?
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); }; }; then
26847 ac_cv_func_gethostbyname=yes
26848else
26849 echo "$as_me: failed program was:" >&5
26850sed 's/^/| /' conftest.$ac_ext >&5
26851
26852ac_cv_func_gethostbyname=no
26853fi
ac1cb8d3
VS
26854rm -f conftest.err conftest.$ac_objext \
26855 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26856fi
26857echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26858echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26859
26860 if test $ac_cv_func_gethostbyname = no; then
26861 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26862echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26863if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26864 echo $ECHO_N "(cached) $ECHO_C" >&6
26865else
26866 ac_check_lib_save_LIBS=$LIBS
26867LIBS="-lnsl $LIBS"
26868cat >conftest.$ac_ext <<_ACEOF
26869/* confdefs.h. */
26870_ACEOF
26871cat confdefs.h >>conftest.$ac_ext
26872cat >>conftest.$ac_ext <<_ACEOF
26873/* end confdefs.h. */
26874
26875/* Override any gcc2 internal prototype to avoid an error. */
26876#ifdef __cplusplus
26877extern "C"
26878#endif
26879/* We use char because int might match the return type of a gcc2
26880 builtin and then its argument prototype would still apply. */
26881char gethostbyname ();
26882int
26883main ()
26884{
26885gethostbyname ();
26886 ;
26887 return 0;
26888}
26889_ACEOF
26890rm -f conftest.$ac_objext conftest$ac_exeext
26891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26892 (eval $ac_link) 2>conftest.er1
26893 ac_status=$?
26894 grep -v '^ *+' conftest.er1 >conftest.err
26895 rm -f conftest.er1
26896 cat conftest.err >&5
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); } &&
6ebeb4c7 26899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26901 (eval $ac_try) 2>&5
26902 ac_status=$?
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); }; } &&
26905 { ac_try='test -s conftest$ac_exeext'
26906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26907 (eval $ac_try) 2>&5
26908 ac_status=$?
26909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910 (exit $ac_status); }; }; then
26911 ac_cv_lib_nsl_gethostbyname=yes
26912else
26913 echo "$as_me: failed program was:" >&5
26914sed 's/^/| /' conftest.$ac_ext >&5
26915
26916ac_cv_lib_nsl_gethostbyname=no
26917fi
26918rm -f conftest.err conftest.$ac_objext \
26919 conftest$ac_exeext conftest.$ac_ext
26920LIBS=$ac_check_lib_save_LIBS
26921fi
26922echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26923echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26924if test $ac_cv_lib_nsl_gethostbyname = yes; then
26925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26926fi
26927
26928 if test $ac_cv_lib_nsl_gethostbyname = no; then
26929 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26930echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26931if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26932 echo $ECHO_N "(cached) $ECHO_C" >&6
26933else
26934 ac_check_lib_save_LIBS=$LIBS
26935LIBS="-lbsd $LIBS"
26936cat >conftest.$ac_ext <<_ACEOF
26937/* confdefs.h. */
26938_ACEOF
26939cat confdefs.h >>conftest.$ac_ext
26940cat >>conftest.$ac_ext <<_ACEOF
26941/* end confdefs.h. */
26942
26943/* Override any gcc2 internal prototype to avoid an error. */
26944#ifdef __cplusplus
26945extern "C"
26946#endif
26947/* We use char because int might match the return type of a gcc2
26948 builtin and then its argument prototype would still apply. */
26949char gethostbyname ();
26950int
26951main ()
26952{
26953gethostbyname ();
26954 ;
26955 return 0;
26956}
26957_ACEOF
26958rm -f conftest.$ac_objext conftest$ac_exeext
26959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26960 (eval $ac_link) 2>conftest.er1
a848cd7e 26961 ac_status=$?
ac1cb8d3
VS
26962 grep -v '^ *+' conftest.er1 >conftest.err
26963 rm -f conftest.er1
26964 cat conftest.err >&5
a848cd7e
SC
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); } &&
6ebeb4c7 26967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969 (eval $ac_try) 2>&5
26970 ac_status=$?
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26972 (exit $ac_status); }; } &&
26973 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975 (eval $ac_try) 2>&5
26976 ac_status=$?
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); }; }; then
26979 ac_cv_lib_bsd_gethostbyname=yes
26980else
26981 echo "$as_me: failed program was:" >&5
26982sed 's/^/| /' conftest.$ac_ext >&5
26983
26984ac_cv_lib_bsd_gethostbyname=no
26985fi
ac1cb8d3
VS
26986rm -f conftest.err conftest.$ac_objext \
26987 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26988LIBS=$ac_check_lib_save_LIBS
26989fi
26990echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26991echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26992if test $ac_cv_lib_bsd_gethostbyname = yes; then
26993 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26994fi
26995
26996 fi
26997 fi
26998
26999 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27000 # socket/setsockopt and other routines are undefined under SCO ODT
27001 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27002 # on later versions), says Simon Leinen: it contains gethostby*
27003 # variants that don't use the name server (or something). -lsocket
27004 # must be given before -lnsl if both are needed. We assume that
27005 # if connect needs -lnsl, so does gethostbyname.
27006 echo "$as_me:$LINENO: checking for connect" >&5
27007echo $ECHO_N "checking for connect... $ECHO_C" >&6
27008if test "${ac_cv_func_connect+set}" = set; then
27009 echo $ECHO_N "(cached) $ECHO_C" >&6
27010else
27011 cat >conftest.$ac_ext <<_ACEOF
27012/* confdefs.h. */
27013_ACEOF
27014cat confdefs.h >>conftest.$ac_ext
27015cat >>conftest.$ac_ext <<_ACEOF
27016/* end confdefs.h. */
ac1cb8d3
VS
27017/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27019#define connect innocuous_connect
27020
a848cd7e
SC
27021/* System header to define __stub macros and hopefully few prototypes,
27022 which can conflict with char connect (); below.
27023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27024 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27025
a848cd7e
SC
27026#ifdef __STDC__
27027# include <limits.h>
27028#else
27029# include <assert.h>
27030#endif
ac1cb8d3
VS
27031
27032#undef connect
27033
a848cd7e
SC
27034/* Override any gcc2 internal prototype to avoid an error. */
27035#ifdef __cplusplus
27036extern "C"
27037{
27038#endif
27039/* We use char because int might match the return type of a gcc2
27040 builtin and then its argument prototype would still apply. */
27041char connect ();
27042/* The GNU C library defines this for functions which it implements
27043 to always fail with ENOSYS. Some functions are actually named
27044 something starting with __ and the normal name is an alias. */
27045#if defined (__stub_connect) || defined (__stub___connect)
27046choke me
27047#else
27048char (*f) () = connect;
27049#endif
27050#ifdef __cplusplus
27051}
27052#endif
27053
27054int
27055main ()
27056{
27057return f != connect;
27058 ;
27059 return 0;
27060}
27061_ACEOF
27062rm -f conftest.$ac_objext conftest$ac_exeext
27063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27064 (eval $ac_link) 2>conftest.er1
a848cd7e 27065 ac_status=$?
ac1cb8d3
VS
27066 grep -v '^ *+' conftest.er1 >conftest.err
27067 rm -f conftest.er1
27068 cat conftest.err >&5
a848cd7e
SC
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); } &&
6ebeb4c7 27071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073 (eval $ac_try) 2>&5
27074 ac_status=$?
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; } &&
27077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
27083 ac_cv_func_connect=yes
27084else
27085 echo "$as_me: failed program was:" >&5
27086sed 's/^/| /' conftest.$ac_ext >&5
27087
27088ac_cv_func_connect=no
27089fi
ac1cb8d3
VS
27090rm -f conftest.err conftest.$ac_objext \
27091 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27092fi
27093echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27094echo "${ECHO_T}$ac_cv_func_connect" >&6
27095
27096 if test $ac_cv_func_connect = no; then
27097 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27098echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27099if test "${ac_cv_lib_socket_connect+set}" = set; then
27100 echo $ECHO_N "(cached) $ECHO_C" >&6
27101else
27102 ac_check_lib_save_LIBS=$LIBS
27103LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27104cat >conftest.$ac_ext <<_ACEOF
27105/* confdefs.h. */
27106_ACEOF
27107cat confdefs.h >>conftest.$ac_ext
27108cat >>conftest.$ac_ext <<_ACEOF
27109/* end confdefs.h. */
27110
27111/* Override any gcc2 internal prototype to avoid an error. */
27112#ifdef __cplusplus
27113extern "C"
27114#endif
27115/* We use char because int might match the return type of a gcc2
27116 builtin and then its argument prototype would still apply. */
27117char connect ();
27118int
27119main ()
27120{
27121connect ();
27122 ;
27123 return 0;
27124}
27125_ACEOF
27126rm -f conftest.$ac_objext conftest$ac_exeext
27127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27128 (eval $ac_link) 2>conftest.er1
a848cd7e 27129 ac_status=$?
ac1cb8d3
VS
27130 grep -v '^ *+' conftest.er1 >conftest.err
27131 rm -f conftest.er1
27132 cat conftest.err >&5
a848cd7e
SC
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); } &&
6ebeb4c7 27135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137 (eval $ac_try) 2>&5
27138 ac_status=$?
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27144 ac_status=$?
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; }; then
27147 ac_cv_lib_socket_connect=yes
27148else
27149 echo "$as_me: failed program was:" >&5
27150sed 's/^/| /' conftest.$ac_ext >&5
27151
27152ac_cv_lib_socket_connect=no
27153fi
ac1cb8d3
VS
27154rm -f conftest.err conftest.$ac_objext \
27155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27156LIBS=$ac_check_lib_save_LIBS
27157fi
27158echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27159echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27160if test $ac_cv_lib_socket_connect = yes; then
27161 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27162fi
27163
27164 fi
27165
27166 # Guillermo Gomez says -lposix is necessary on A/UX.
27167 echo "$as_me:$LINENO: checking for remove" >&5
27168echo $ECHO_N "checking for remove... $ECHO_C" >&6
27169if test "${ac_cv_func_remove+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27171else
27172 cat >conftest.$ac_ext <<_ACEOF
27173/* confdefs.h. */
27174_ACEOF
27175cat confdefs.h >>conftest.$ac_ext
27176cat >>conftest.$ac_ext <<_ACEOF
27177/* end confdefs.h. */
ac1cb8d3
VS
27178/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27180#define remove innocuous_remove
27181
a848cd7e
SC
27182/* System header to define __stub macros and hopefully few prototypes,
27183 which can conflict with char remove (); below.
27184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27185 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27186
a848cd7e
SC
27187#ifdef __STDC__
27188# include <limits.h>
27189#else
27190# include <assert.h>
27191#endif
ac1cb8d3
VS
27192
27193#undef remove
27194
a848cd7e
SC
27195/* Override any gcc2 internal prototype to avoid an error. */
27196#ifdef __cplusplus
27197extern "C"
27198{
27199#endif
27200/* We use char because int might match the return type of a gcc2
27201 builtin and then its argument prototype would still apply. */
27202char remove ();
27203/* The GNU C library defines this for functions which it implements
27204 to always fail with ENOSYS. Some functions are actually named
27205 something starting with __ and the normal name is an alias. */
27206#if defined (__stub_remove) || defined (__stub___remove)
27207choke me
27208#else
27209char (*f) () = remove;
27210#endif
27211#ifdef __cplusplus
27212}
27213#endif
27214
27215int
27216main ()
27217{
27218return f != remove;
27219 ;
27220 return 0;
27221}
27222_ACEOF
27223rm -f conftest.$ac_objext conftest$ac_exeext
27224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27225 (eval $ac_link) 2>conftest.er1
a848cd7e 27226 ac_status=$?
ac1cb8d3
VS
27227 grep -v '^ *+' conftest.er1 >conftest.err
27228 rm -f conftest.er1
27229 cat conftest.err >&5
a848cd7e
SC
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); } &&
6ebeb4c7 27232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234 (eval $ac_try) 2>&5
27235 ac_status=$?
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; } &&
27238 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240 (eval $ac_try) 2>&5
27241 ac_status=$?
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); }; }; then
27244 ac_cv_func_remove=yes
27245else
27246 echo "$as_me: failed program was:" >&5
27247sed 's/^/| /' conftest.$ac_ext >&5
27248
27249ac_cv_func_remove=no
27250fi
ac1cb8d3
VS
27251rm -f conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27253fi
27254echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27255echo "${ECHO_T}$ac_cv_func_remove" >&6
27256
27257 if test $ac_cv_func_remove = no; then
27258 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27259echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27260if test "${ac_cv_lib_posix_remove+set}" = set; then
27261 echo $ECHO_N "(cached) $ECHO_C" >&6
27262else
27263 ac_check_lib_save_LIBS=$LIBS
27264LIBS="-lposix $LIBS"
27265cat >conftest.$ac_ext <<_ACEOF
27266/* confdefs.h. */
27267_ACEOF
27268cat confdefs.h >>conftest.$ac_ext
27269cat >>conftest.$ac_ext <<_ACEOF
27270/* end confdefs.h. */
27271
27272/* Override any gcc2 internal prototype to avoid an error. */
27273#ifdef __cplusplus
27274extern "C"
27275#endif
27276/* We use char because int might match the return type of a gcc2
27277 builtin and then its argument prototype would still apply. */
27278char remove ();
27279int
27280main ()
27281{
27282remove ();
27283 ;
27284 return 0;
27285}
27286_ACEOF
27287rm -f conftest.$ac_objext conftest$ac_exeext
27288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27289 (eval $ac_link) 2>conftest.er1
a848cd7e 27290 ac_status=$?
ac1cb8d3
VS
27291 grep -v '^ *+' conftest.er1 >conftest.err
27292 rm -f conftest.er1
27293 cat conftest.err >&5
a848cd7e
SC
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } &&
6ebeb4c7 27296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298 (eval $ac_try) 2>&5
27299 ac_status=$?
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; } &&
27302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27304 (eval $ac_try) 2>&5
27305 ac_status=$?
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); }; }; then
27308 ac_cv_lib_posix_remove=yes
27309else
27310 echo "$as_me: failed program was:" >&5
27311sed 's/^/| /' conftest.$ac_ext >&5
27312
27313ac_cv_lib_posix_remove=no
27314fi
ac1cb8d3
VS
27315rm -f conftest.err conftest.$ac_objext \
27316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27317LIBS=$ac_check_lib_save_LIBS
27318fi
27319echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27320echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27321if test $ac_cv_lib_posix_remove = yes; then
27322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27323fi
27324
27325 fi
27326
27327 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27328 echo "$as_me:$LINENO: checking for shmat" >&5
27329echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27330if test "${ac_cv_func_shmat+set}" = set; then
27331 echo $ECHO_N "(cached) $ECHO_C" >&6
27332else
27333 cat >conftest.$ac_ext <<_ACEOF
27334/* confdefs.h. */
27335_ACEOF
27336cat confdefs.h >>conftest.$ac_ext
27337cat >>conftest.$ac_ext <<_ACEOF
27338/* end confdefs.h. */
ac1cb8d3
VS
27339/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27341#define shmat innocuous_shmat
27342
a848cd7e
SC
27343/* System header to define __stub macros and hopefully few prototypes,
27344 which can conflict with char shmat (); below.
27345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27346 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27347
a848cd7e
SC
27348#ifdef __STDC__
27349# include <limits.h>
27350#else
27351# include <assert.h>
27352#endif
ac1cb8d3
VS
27353
27354#undef shmat
27355
a848cd7e
SC
27356/* Override any gcc2 internal prototype to avoid an error. */
27357#ifdef __cplusplus
27358extern "C"
27359{
27360#endif
27361/* We use char because int might match the return type of a gcc2
27362 builtin and then its argument prototype would still apply. */
27363char shmat ();
27364/* The GNU C library defines this for functions which it implements
27365 to always fail with ENOSYS. Some functions are actually named
27366 something starting with __ and the normal name is an alias. */
27367#if defined (__stub_shmat) || defined (__stub___shmat)
27368choke me
27369#else
27370char (*f) () = shmat;
27371#endif
27372#ifdef __cplusplus
27373}
27374#endif
27375
27376int
27377main ()
27378{
27379return f != shmat;
27380 ;
27381 return 0;
27382}
27383_ACEOF
27384rm -f conftest.$ac_objext conftest$ac_exeext
27385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27386 (eval $ac_link) 2>conftest.er1
a848cd7e 27387 ac_status=$?
ac1cb8d3
VS
27388 grep -v '^ *+' conftest.er1 >conftest.err
27389 rm -f conftest.er1
27390 cat conftest.err >&5
a848cd7e
SC
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); } &&
6ebeb4c7 27393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27395 (eval $ac_try) 2>&5
27396 ac_status=$?
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); }; } &&
27399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401 (eval $ac_try) 2>&5
27402 ac_status=$?
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); }; }; then
27405 ac_cv_func_shmat=yes
27406else
27407 echo "$as_me: failed program was:" >&5
27408sed 's/^/| /' conftest.$ac_ext >&5
27409
27410ac_cv_func_shmat=no
27411fi
ac1cb8d3
VS
27412rm -f conftest.err conftest.$ac_objext \
27413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27414fi
27415echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27416echo "${ECHO_T}$ac_cv_func_shmat" >&6
27417
27418 if test $ac_cv_func_shmat = no; then
27419 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27420echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27421if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27422 echo $ECHO_N "(cached) $ECHO_C" >&6
27423else
27424 ac_check_lib_save_LIBS=$LIBS
27425LIBS="-lipc $LIBS"
27426cat >conftest.$ac_ext <<_ACEOF
27427/* confdefs.h. */
27428_ACEOF
27429cat confdefs.h >>conftest.$ac_ext
27430cat >>conftest.$ac_ext <<_ACEOF
27431/* end confdefs.h. */
27432
27433/* Override any gcc2 internal prototype to avoid an error. */
27434#ifdef __cplusplus
27435extern "C"
27436#endif
27437/* We use char because int might match the return type of a gcc2
27438 builtin and then its argument prototype would still apply. */
27439char shmat ();
27440int
27441main ()
27442{
27443shmat ();
27444 ;
27445 return 0;
27446}
27447_ACEOF
27448rm -f conftest.$ac_objext conftest$ac_exeext
27449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27450 (eval $ac_link) 2>conftest.er1
a848cd7e 27451 ac_status=$?
ac1cb8d3
VS
27452 grep -v '^ *+' conftest.er1 >conftest.err
27453 rm -f conftest.er1
27454 cat conftest.err >&5
a848cd7e
SC
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } &&
6ebeb4c7 27457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27459 (eval $ac_try) 2>&5
27460 ac_status=$?
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); }; } &&
27463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465 (eval $ac_try) 2>&5
27466 ac_status=$?
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; }; then
27469 ac_cv_lib_ipc_shmat=yes
27470else
27471 echo "$as_me: failed program was:" >&5
27472sed 's/^/| /' conftest.$ac_ext >&5
27473
27474ac_cv_lib_ipc_shmat=no
27475fi
ac1cb8d3
VS
27476rm -f conftest.err conftest.$ac_objext \
27477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27478LIBS=$ac_check_lib_save_LIBS
27479fi
27480echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27481echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27482if test $ac_cv_lib_ipc_shmat = yes; then
27483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27484fi
27485
27486 fi
27487 fi
27488
27489 # Check for libraries that X11R6 Xt/Xaw programs need.
27490 ac_save_LDFLAGS=$LDFLAGS
27491 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27492 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27493 # check for ICE first), but we must link in the order -lSM -lICE or
27494 # we get undefined symbols. So assume we have SM if we have ICE.
27495 # These have to be linked with before -lX11, unlike the other
27496 # libraries we check for below, so use a different variable.
27497 # John Interrante, Karl Berry
27498 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27499echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27500if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27502else
27503 ac_check_lib_save_LIBS=$LIBS
27504LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27505cat >conftest.$ac_ext <<_ACEOF
27506/* confdefs.h. */
27507_ACEOF
27508cat confdefs.h >>conftest.$ac_ext
27509cat >>conftest.$ac_ext <<_ACEOF
27510/* end confdefs.h. */
27511
27512/* Override any gcc2 internal prototype to avoid an error. */
27513#ifdef __cplusplus
27514extern "C"
27515#endif
27516/* We use char because int might match the return type of a gcc2
27517 builtin and then its argument prototype would still apply. */
27518char IceConnectionNumber ();
27519int
27520main ()
27521{
27522IceConnectionNumber ();
27523 ;
27524 return 0;
27525}
27526_ACEOF
27527rm -f conftest.$ac_objext conftest$ac_exeext
27528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27529 (eval $ac_link) 2>conftest.er1
a848cd7e 27530 ac_status=$?
ac1cb8d3
VS
27531 grep -v '^ *+' conftest.er1 >conftest.err
27532 rm -f conftest.er1
27533 cat conftest.err >&5
a848cd7e
SC
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } &&
6ebeb4c7 27536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27538 (eval $ac_try) 2>&5
27539 ac_status=$?
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); }; } &&
27542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544 (eval $ac_try) 2>&5
27545 ac_status=$?
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); }; }; then
27548 ac_cv_lib_ICE_IceConnectionNumber=yes
27549else
27550 echo "$as_me: failed program was:" >&5
27551sed 's/^/| /' conftest.$ac_ext >&5
27552
27553ac_cv_lib_ICE_IceConnectionNumber=no
27554fi
ac1cb8d3
VS
27555rm -f conftest.err conftest.$ac_objext \
27556 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27557LIBS=$ac_check_lib_save_LIBS
27558fi
27559echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27560echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27561if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27562 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27563fi
27564
27565 LDFLAGS=$ac_save_LDFLAGS
27566
27567fi
27568
27569
27570 if test "$no_x" = "yes"; then
27571 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27572echo "$as_me: error: X11 not found" >&2;}
27573 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27574 fi
27575
74b84332
VS
27576 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27577 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27578 AFMINSTALL=afminstall
27579 COMPILED_X_PROGRAM=0
27580
74b84332
VS
27581 fi
27582
27583 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27584 if test "$wxUSE_NANOX" = "yes"; then
27585 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27586echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27587 if test "x$MICROWIN" = x ; then
27588 echo "$as_me:$LINENO: result: not found" >&5
27589echo "${ECHO_T}not found" >&6
27590 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27591echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27592 { (exit 1); exit 1; }; }
27593 else
27594 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27595echo "${ECHO_T}$MICROWIN" >&6
27596 cat >>confdefs.h <<\_ACEOF
27597#define wxUSE_NANOX 1
27598_ACEOF
27599
27600 fi
27601 fi
27602
27603 if test "$wxUSE_UNICODE" = "yes"; then
27604
27605 succeeded=no
27606
27607 if test -z "$PKG_CONFIG"; then
27608 # Extract the first word of "pkg-config", so it can be a program name with args.
27609set dummy pkg-config; ac_word=$2
27610echo "$as_me:$LINENO: checking for $ac_word" >&5
27611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27612if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27613 echo $ECHO_N "(cached) $ECHO_C" >&6
27614else
27615 case $PKG_CONFIG in
27616 [\\/]* | ?:[\\/]*)
27617 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27618 ;;
27619 *)
27620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27621for as_dir in $PATH
27622do
27623 IFS=$as_save_IFS
27624 test -z "$as_dir" && as_dir=.
27625 for ac_exec_ext in '' $ac_executable_extensions; do
27626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27627 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27629 break 2
27630 fi
27631done
27632done
27633
27634 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27635 ;;
27636esac
27637fi
27638PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27639
27640if test -n "$PKG_CONFIG"; then
27641 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27642echo "${ECHO_T}$PKG_CONFIG" >&6
27643else
27644 echo "$as_me:$LINENO: result: no" >&5
27645echo "${ECHO_T}no" >&6
27646fi
27647
27648 fi
27649
27650 if test "$PKG_CONFIG" = "no" ; then
27651 echo "*** The pkg-config script could not be found. Make sure it is"
27652 echo "*** in your path, or set the PKG_CONFIG environment variable"
27653 echo "*** to the full path to pkg-config."
27654 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27655 else
27656 PKG_CONFIG_MIN_VERSION=0.9.0
27657 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27658 echo "$as_me:$LINENO: checking for pangox" >&5
27659echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27660
27661 if $PKG_CONFIG --exists "pangox" ; then
27662 echo "$as_me:$LINENO: result: yes" >&5
27663echo "${ECHO_T}yes" >&6
27664 succeeded=yes
27665
27666 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27667echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27668 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27669 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27670echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27671
27672 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27673echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27674 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27675 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27676echo "${ECHO_T}$PANGOX_LIBS" >&6
27677 else
27678 PANGOX_CFLAGS=""
27679 PANGOX_LIBS=""
27680 ## If we have a custom action on failure, don't print errors, but
27681 ## do set a variable so people can do so.
27682 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27683
27684 fi
27685
27686
27687
27688 else
27689 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27690 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27691 fi
27692 fi
27693
27694 if test $succeeded = yes; then
27695
27696 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27697 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27698
27699 else
27700
27701 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27702echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27703 { (exit 1); exit 1; }; }
27704
27705
27706 fi
27707
27708
27709 succeeded=no
27710
27711 if test -z "$PKG_CONFIG"; then
27712 # Extract the first word of "pkg-config", so it can be a program name with args.
27713set dummy pkg-config; ac_word=$2
27714echo "$as_me:$LINENO: checking for $ac_word" >&5
27715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27716if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27717 echo $ECHO_N "(cached) $ECHO_C" >&6
27718else
27719 case $PKG_CONFIG in
27720 [\\/]* | ?:[\\/]*)
27721 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27722 ;;
27723 *)
27724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27725for as_dir in $PATH
27726do
27727 IFS=$as_save_IFS
27728 test -z "$as_dir" && as_dir=.
27729 for ac_exec_ext in '' $ac_executable_extensions; do
27730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27731 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27733 break 2
27734 fi
27735done
27736done
27737
27738 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27739 ;;
27740esac
27741fi
27742PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27743
27744if test -n "$PKG_CONFIG"; then
27745 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27746echo "${ECHO_T}$PKG_CONFIG" >&6
27747else
27748 echo "$as_me:$LINENO: result: no" >&5
27749echo "${ECHO_T}no" >&6
27750fi
27751
27752 fi
27753
27754 if test "$PKG_CONFIG" = "no" ; then
27755 echo "*** The pkg-config script could not be found. Make sure it is"
27756 echo "*** in your path, or set the PKG_CONFIG environment variable"
27757 echo "*** to the full path to pkg-config."
27758 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27759 else
27760 PKG_CONFIG_MIN_VERSION=0.9.0
27761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27762 echo "$as_me:$LINENO: checking for pangoft2" >&5
27763echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27764
27765 if $PKG_CONFIG --exists "pangoft2" ; then
27766 echo "$as_me:$LINENO: result: yes" >&5
27767echo "${ECHO_T}yes" >&6
27768 succeeded=yes
27769
27770 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27771echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27772 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27773 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27774echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27775
27776 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27777echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27778 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27779 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27780echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27781 else
27782 PANGOFT2_CFLAGS=""
27783 PANGOFT2_LIBS=""
27784 ## If we have a custom action on failure, don't print errors, but
27785 ## do set a variable so people can do so.
27786 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27787
27788 fi
27789
27790
27791
27792 else
27793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27795 fi
27796 fi
27797
27798 if test $succeeded = yes; then
27799
27800 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27801 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27802
27803 else
27804
27805 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27806echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27807 wxUSE_PRINTING_ARCHITECTURE="no"
27808
27809
27810 fi
27811
27812
27813 succeeded=no
27814
27815 if test -z "$PKG_CONFIG"; then
27816 # Extract the first word of "pkg-config", so it can be a program name with args.
27817set dummy pkg-config; ac_word=$2
27818echo "$as_me:$LINENO: checking for $ac_word" >&5
27819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27820if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27821 echo $ECHO_N "(cached) $ECHO_C" >&6
27822else
27823 case $PKG_CONFIG in
27824 [\\/]* | ?:[\\/]*)
27825 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27826 ;;
27827 *)
27828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27829for as_dir in $PATH
27830do
27831 IFS=$as_save_IFS
27832 test -z "$as_dir" && as_dir=.
27833 for ac_exec_ext in '' $ac_executable_extensions; do
27834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27835 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27837 break 2
27838 fi
27839done
27840done
27841
27842 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27843 ;;
27844esac
27845fi
27846PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27847
27848if test -n "$PKG_CONFIG"; then
27849 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27850echo "${ECHO_T}$PKG_CONFIG" >&6
27851else
27852 echo "$as_me:$LINENO: result: no" >&5
27853echo "${ECHO_T}no" >&6
27854fi
27855
27856 fi
27857
27858 if test "$PKG_CONFIG" = "no" ; then
27859 echo "*** The pkg-config script could not be found. Make sure it is"
27860 echo "*** in your path, or set the PKG_CONFIG environment variable"
27861 echo "*** to the full path to pkg-config."
27862 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27863 else
27864 PKG_CONFIG_MIN_VERSION=0.9.0
27865 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27866 echo "$as_me:$LINENO: checking for pangoxft" >&5
27867echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27868
27869 if $PKG_CONFIG --exists "pangoxft" ; then
27870 echo "$as_me:$LINENO: result: yes" >&5
27871echo "${ECHO_T}yes" >&6
27872 succeeded=yes
27873
27874 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27875echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27876 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27877 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27878echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27879
27880 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27881echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27882 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27883 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27884echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27885 else
27886 PANGOXFT_CFLAGS=""
27887 PANGOXFT_LIBS=""
27888 ## If we have a custom action on failure, don't print errors, but
27889 ## do set a variable so people can do so.
27890 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27891
27892 fi
27893
27894
27895
27896 else
27897 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27898 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27899 fi
27900 fi
27901
27902 if test $succeeded = yes; then
27903
4ae1af05
MB
27904 cat >>confdefs.h <<\_ACEOF
27905#define HAVE_PANGO_XFT 1
27906_ACEOF
27907
a848cd7e
SC
27908 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27909 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27910
27911 else
27912
27913 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27914echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27915
27916
27917 fi
27918
304205f1
VS
27919 save_CFLAGS="$CFLAGS"
27920 save_LIBS="$LIBS"
27921 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27922 LIBS="$LIBS $PANGOX_LIBS"
27923
27924for ac_func in pango_font_family_is_monospace
27925do
27926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27927echo "$as_me:$LINENO: checking for $ac_func" >&5
27928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27929if eval "test \"\${$as_ac_var+set}\" = set"; then
27930 echo $ECHO_N "(cached) $ECHO_C" >&6
27931else
27932 cat >conftest.$ac_ext <<_ACEOF
27933/* confdefs.h. */
27934_ACEOF
27935cat confdefs.h >>conftest.$ac_ext
27936cat >>conftest.$ac_ext <<_ACEOF
27937/* end confdefs.h. */
27938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27940#define $ac_func innocuous_$ac_func
27941
27942/* System header to define __stub macros and hopefully few prototypes,
27943 which can conflict with char $ac_func (); below.
27944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27945 <limits.h> exists even on freestanding compilers. */
27946
27947#ifdef __STDC__
27948# include <limits.h>
27949#else
27950# include <assert.h>
27951#endif
27952
27953#undef $ac_func
27954
27955/* Override any gcc2 internal prototype to avoid an error. */
27956#ifdef __cplusplus
27957extern "C"
27958{
27959#endif
27960/* We use char because int might match the return type of a gcc2
27961 builtin and then its argument prototype would still apply. */
27962char $ac_func ();
27963/* The GNU C library defines this for functions which it implements
27964 to always fail with ENOSYS. Some functions are actually named
27965 something starting with __ and the normal name is an alias. */
27966#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27967choke me
27968#else
27969char (*f) () = $ac_func;
27970#endif
27971#ifdef __cplusplus
27972}
27973#endif
27974
27975int
27976main ()
27977{
27978return f != $ac_func;
27979 ;
27980 return 0;
27981}
27982_ACEOF
27983rm -f conftest.$ac_objext conftest$ac_exeext
27984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27985 (eval $ac_link) 2>conftest.er1
27986 ac_status=$?
27987 grep -v '^ *+' conftest.er1 >conftest.err
27988 rm -f conftest.er1
27989 cat conftest.err >&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } &&
6ebeb4c7 27992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27995 ac_status=$?
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; } &&
27998 { ac_try='test -s conftest$ac_exeext'
27999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28000 (eval $ac_try) 2>&5
28001 ac_status=$?
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); }; }; then
28004 eval "$as_ac_var=yes"
28005else
28006 echo "$as_me: failed program was:" >&5
28007sed 's/^/| /' conftest.$ac_ext >&5
28008
28009eval "$as_ac_var=no"
28010fi
28011rm -f conftest.err conftest.$ac_objext \
28012 conftest$ac_exeext conftest.$ac_ext
28013fi
28014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28016if test `eval echo '${'$as_ac_var'}'` = yes; then
28017 cat >>confdefs.h <<_ACEOF
28018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28019_ACEOF
28020
28021fi
28022done
28023
28024 CFLAGS="$save_CFLAGS"
28025 LIBS="$save_LIBS"
a848cd7e
SC
28026 fi
28027
28028 wxUSE_UNIVERSAL="yes"
28029
28030 if test "$wxUSE_NANOX" = "yes"; then
28031 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28032 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"
28033 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28034 else
28035 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28036 fi
28037
a848cd7e
SC
28038 TOOLKIT=X11
28039 GUIDIST=X11_DIST
28040 fi
28041
28042 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28043 if test "$wxUSE_UNICODE" = "yes"; then
28044 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28045echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28046 { (exit 1); exit 1; }; }
28047 fi
28048
74b84332
VS
28049 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28050echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28051
74b84332
VS
28052ac_find_includes=
28053for ac_dir in $SEARCH_INCLUDE /usr/include;
28054 do
28055 if test -f "$ac_dir/Xm/Xm.h"; then
28056 ac_find_includes=$ac_dir
28057 break
28058 fi
28059 done
a848cd7e 28060
74b84332
VS
28061 if test "$ac_find_includes" != "" ; then
28062 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28063echo "${ECHO_T}found in $ac_find_includes" >&6
28064
28065 if test "x$ac_find_includes" = "x/usr/include"; then
28066 ac_path_to_include=""
28067 else
28068 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28069 result=$?
28070 if test $result = 0; then
28071 ac_path_to_include=""
28072 else
28073 ac_path_to_include=" -I$ac_find_includes"
28074 fi
a848cd7e
SC
28075 fi
28076
74b84332
VS
28077 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28078 else
28079 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28080/* confdefs.h. */
28081_ACEOF
28082cat confdefs.h >>conftest.$ac_ext
28083cat >>conftest.$ac_ext <<_ACEOF
28084/* end confdefs.h. */
28085
74b84332
VS
28086 #include <Xm/Xm.h>
28087
a848cd7e
SC
28088int
28089main ()
28090{
28091
74b84332
VS
28092 int version;
28093 version = xmUseVersion;
28094
a848cd7e
SC
28095 ;
28096 return 0;
28097}
28098_ACEOF
74b84332
VS
28099rm -f conftest.$ac_objext
28100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28101 (eval $ac_compile) 2>conftest.er1
a848cd7e 28102 ac_status=$?
ac1cb8d3
VS
28103 grep -v '^ *+' conftest.er1 >conftest.err
28104 rm -f conftest.er1
28105 cat conftest.err >&5
a848cd7e
SC
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); } &&
6ebeb4c7 28108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28110 (eval $ac_try) 2>&5
28111 ac_status=$?
28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); }; } &&
74b84332 28114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28116 (eval $ac_try) 2>&5
28117 ac_status=$?
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); }; }; then
74b84332
VS
28120
28121 echo "$as_me:$LINENO: result: found in default search path" >&5
28122echo "${ECHO_T}found in default search path" >&6
28123 COMPILED_X_PROGRAM=1
28124
a848cd7e
SC
28125else
28126 echo "$as_me: failed program was:" >&5
28127sed 's/^/| /' conftest.$ac_ext >&5
28128
a848cd7e 28129
74b84332
VS
28130 echo "$as_me:$LINENO: result: no" >&5
28131echo "${ECHO_T}no" >&6
28132 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28133echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28134 { (exit 1); exit 1; }; }
a848cd7e 28135
a848cd7e 28136
a848cd7e 28137fi
74b84332
VS
28138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28139 fi
28140
28141 if test "$COMPILED_X_PROGRAM" = 0; then
28142 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28143echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28144
28145ac_find_libraries=
28146for ac_dir in $SEARCH_LIB /usr/lib;
28147 do
3eca31dc 28148 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28149 if test -f "$ac_dir/libXm.$ac_extension"; then
28150 ac_find_libraries=$ac_dir
28151 break 2
a848cd7e 28152 fi
74b84332
VS
28153 done
28154 done
a848cd7e 28155
74b84332
VS
28156 if test "$ac_find_libraries" != "" ; then
28157 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28158echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28159
74b84332
VS
28160
28161 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28162 result=$?
28163 if test $result = 0; then
28164 ac_path_to_link=""
a848cd7e 28165 else
74b84332
VS
28166 ac_path_to_link=" -L$ac_find_libraries"
28167 fi
28168
28169 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28170 else
28171 save_CFLAGS=$CFLAGS
28172 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28173
28174 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28175/* confdefs.h. */
28176_ACEOF
28177cat confdefs.h >>conftest.$ac_ext
28178cat >>conftest.$ac_ext <<_ACEOF
28179/* end confdefs.h. */
28180
74b84332
VS
28181 #include <Xm/Xm.h>
28182
a848cd7e
SC
28183int
28184main ()
28185{
74b84332
VS
28186
28187 int version;
28188 version = xmUseVersion;
28189
a848cd7e
SC
28190 ;
28191 return 0;
28192}
28193_ACEOF
74b84332
VS
28194rm -f conftest.$ac_objext
28195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28196 (eval $ac_compile) 2>conftest.er1
a848cd7e 28197 ac_status=$?
ac1cb8d3
VS
28198 grep -v '^ *+' conftest.er1 >conftest.err
28199 rm -f conftest.er1
28200 cat conftest.err >&5
a848cd7e
SC
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); } &&
6ebeb4c7 28203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28205 (eval $ac_try) 2>&5
28206 ac_status=$?
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); }; } &&
74b84332 28209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211 (eval $ac_try) 2>&5
28212 ac_status=$?
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); }; }; then
74b84332
VS
28215
28216 echo "$as_me:$LINENO: result: found in default search path" >&5
28217echo "${ECHO_T}found in default search path" >&6
28218 COMPILED_X_PROGRAM=1
28219
a848cd7e
SC
28220else
28221 echo "$as_me: failed program was:" >&5
28222sed 's/^/| /' conftest.$ac_ext >&5
28223
74b84332
VS
28224
28225 echo "$as_me:$LINENO: result: no" >&5
28226echo "${ECHO_T}no" >&6
28227 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28228echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28229 { (exit 1); exit 1; }; }
28230
28231
28232fi
28233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28234
28235 CFLAGS=$save_CFLAGS
28236 fi
28237 fi
28238
28239 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28240echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28241 libp_link=""
28242 libsm_ice_link=""
28243 libs_found=0
28244 for libp in "" " -lXp"; do
28245 if test "$libs_found" = "0"; then
28246 for libsm_ice in "" " -lSM -lICE"; do
28247 if test "$libs_found" = "0"; then
28248 save_LIBS="$LIBS"
28249 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28250 save_CFLAGS=$CFLAGS
28251 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28252
28253 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28254/* confdefs.h. */
28255_ACEOF
28256cat confdefs.h >>conftest.$ac_ext
28257cat >>conftest.$ac_ext <<_ACEOF
28258/* end confdefs.h. */
28259
74b84332
VS
28260 #include <Xm/Xm.h>
28261 #include <Xm/List.h>
28262
a848cd7e
SC
28263int
28264main ()
28265{
74b84332
VS
28266
28267 XmString string = NULL;
28268 Widget w = NULL;
28269 int position = 0;
28270 XmListAddItem(w, string, position);
28271
a848cd7e
SC
28272 ;
28273 return 0;
28274}
28275_ACEOF
28276rm -f conftest.$ac_objext conftest$ac_exeext
28277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28278 (eval $ac_link) 2>conftest.er1
a848cd7e 28279 ac_status=$?
ac1cb8d3
VS
28280 grep -v '^ *+' conftest.er1 >conftest.err
28281 rm -f conftest.er1
28282 cat conftest.err >&5
a848cd7e
SC
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); } &&
6ebeb4c7 28285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287 (eval $ac_try) 2>&5
28288 ac_status=$?
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; } &&
28291 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293 (eval $ac_try) 2>&5
28294 ac_status=$?
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
28297
28298 libp_link="$libp"
28299 libsm_ice_link="$libsm_ice"
28300 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28301echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28302 libs_found=1
28303
28304else
28305 echo "$as_me: failed program was:" >&5
28306sed 's/^/| /' conftest.$ac_ext >&5
28307
28308
28309
28310fi
ac1cb8d3
VS
28311rm -f conftest.err conftest.$ac_objext \
28312 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28313
28314 LIBS="$save_LIBS"
28315 CFLAGS=$save_CFLAGS
28316 fi
28317 done
28318 fi
28319 done
28320
28321 if test "$libs_found" = "0"; then
28322 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28323echo "${ECHO_T}can't find the right libraries" >&6
28324 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28325echo "$as_me: error: can't link a simple motif program" >&2;}
28326 { (exit 1); exit 1; }; }
28327 fi
28328
28329 save_CFLAGS=$CFLAGS
28330 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28331 echo "$as_me:$LINENO: checking for Motif 2" >&5
28332echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28333 cat >conftest.$ac_ext <<_ACEOF
28334/* confdefs.h. */
28335_ACEOF
28336cat confdefs.h >>conftest.$ac_ext
28337cat >>conftest.$ac_ext <<_ACEOF
28338/* end confdefs.h. */
28339
28340 #include <Xm/Xm.h>
28341
28342int
28343main ()
28344{
28345
28346 #if XmVersion < 2000
28347 #error "Not Motif 2"
28348 #endif
28349
28350 ;
28351 return 0;
28352}
28353_ACEOF
28354rm -f conftest.$ac_objext
28355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28356 (eval $ac_compile) 2>conftest.er1
a848cd7e 28357 ac_status=$?
ac1cb8d3
VS
28358 grep -v '^ *+' conftest.er1 >conftest.err
28359 rm -f conftest.er1
28360 cat conftest.err >&5
a848cd7e
SC
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); } &&
6ebeb4c7 28363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; } &&
28369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28371 (eval $ac_try) 2>&5
28372 ac_status=$?
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); }; }; then
28375
28376 cat >>confdefs.h <<\_ACEOF
28377#define __WXMOTIF20__ 1
28378_ACEOF
28379
28380 echo "$as_me:$LINENO: result: found" >&5
28381echo "${ECHO_T}found" >&6
28382
28383else
28384 echo "$as_me: failed program was:" >&5
28385sed 's/^/| /' conftest.$ac_ext >&5
28386
28387
28388 cat >>confdefs.h <<\_ACEOF
28389#define __WXMOTIF20__ 0
28390_ACEOF
28391
28392 echo "$as_me:$LINENO: result: not found" >&5
28393echo "${ECHO_T}not found" >&6
28394
2113bc77
MW
28395fi
28396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28397
28398 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28399echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
28400 cat >conftest.$ac_ext <<_ACEOF
28401/* confdefs.h. */
28402_ACEOF
28403cat confdefs.h >>conftest.$ac_ext
28404cat >>conftest.$ac_ext <<_ACEOF
28405/* end confdefs.h. */
28406
28407 #include <Xm/Xm.h>
28408
28409int
28410main ()
28411{
28412
28413 #if !defined(LesstifVersion) || LesstifVersion <= 0
28414 #error "Not Lesstif"
28415 #endif
28416
28417 ;
28418 return 0;
28419}
28420_ACEOF
28421rm -f conftest.$ac_objext
28422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28423 (eval $ac_compile) 2>conftest.er1
28424 ac_status=$?
28425 grep -v '^ *+' conftest.er1 >conftest.err
28426 rm -f conftest.er1
28427 cat conftest.err >&5
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); } &&
6ebeb4c7 28430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
28431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432 (eval $ac_try) 2>&5
28433 ac_status=$?
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; } &&
28436 { ac_try='test -s conftest.$ac_objext'
28437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438 (eval $ac_try) 2>&5
28439 ac_status=$?
28440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441 (exit $ac_status); }; }; then
28442
28443 cat >>confdefs.h <<\_ACEOF
28444#define __WXLESSTIF__ 1
28445_ACEOF
28446
28447 echo "$as_me:$LINENO: result: yes" >&5
28448echo "${ECHO_T}yes" >&6
28449
28450else
28451 echo "$as_me: failed program was:" >&5
28452sed 's/^/| /' conftest.$ac_ext >&5
28453
28454
28455 cat >>confdefs.h <<\_ACEOF
28456#define __WXLESSTIF__ 0
28457_ACEOF
28458
28459 echo "$as_me:$LINENO: result: no" >&5
28460echo "${ECHO_T}no" >&6
28461
a848cd7e 28462fi
ac1cb8d3 28463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28464 CFLAGS=$save_CFLAGS
28465
28466 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28467 TOOLKIT=MOTIF
28468 GUIDIST=MOTIF_DIST
28469 fi
28470
74b84332 28471 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28472 if test "$wxUSE_LIBXPM" = "sys"; then
28473 echo "$as_me:$LINENO: checking for Xpm library" >&5
28474echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28475
28476ac_find_libraries=
28477for ac_dir in $SEARCH_LIB /usr/lib;
28478 do
3eca31dc 28479 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28480 if test -f "$ac_dir/libXpm.$ac_extension"; then
28481 ac_find_libraries=$ac_dir
28482 break 2
28483 fi
28484 done
28485 done
28486
28487 if test "$ac_find_libraries" != "" ; then
28488
28489 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28490 result=$?
28491 if test $result = 0; then
28492 ac_path_to_link=""
28493 else
28494 ac_path_to_link=" -L$ac_find_libraries"
28495 fi
28496
28497 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28498 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28499echo "${ECHO_T}found at $ac_find_libraries" >&6
28500
28501 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28502echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28503if test "${wx_cv_x11_xpm_h+set}" = set; then
28504 echo $ECHO_N "(cached) $ECHO_C" >&6
28505else
28506
28507 save_CFLAGS=$CFLAGS
28508 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28509
28510 cat >conftest.$ac_ext <<_ACEOF
28511/* confdefs.h. */
28512_ACEOF
28513cat confdefs.h >>conftest.$ac_ext
28514cat >>conftest.$ac_ext <<_ACEOF
28515/* end confdefs.h. */
28516
28517 #include <X11/xpm.h>
28518
28519int
28520main ()
28521{
28522
28523 int version;
28524 version = XpmLibraryVersion();
28525
28526 ;
28527 return 0;
28528}
28529_ACEOF
28530rm -f conftest.$ac_objext
28531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28532 (eval $ac_compile) 2>conftest.er1
a848cd7e 28533 ac_status=$?
ac1cb8d3
VS
28534 grep -v '^ *+' conftest.er1 >conftest.err
28535 rm -f conftest.er1
28536 cat conftest.err >&5
a848cd7e
SC
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); } &&
6ebeb4c7 28539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28541 (eval $ac_try) 2>&5
28542 ac_status=$?
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); }; } &&
28545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547 (eval $ac_try) 2>&5
28548 ac_status=$?
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; }; then
28551 wx_cv_x11_xpm_h=yes
28552else
28553 echo "$as_me: failed program was:" >&5
28554sed 's/^/| /' conftest.$ac_ext >&5
28555
28556wx_cv_x11_xpm_h=no
28557
28558fi
ac1cb8d3 28559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28560
28561 CFLAGS=$save_CFLAGS
28562
28563
28564fi
28565echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28566echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28567
28568 if test $wx_cv_x11_xpm_h = "yes"; then
28569 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28570 cat >>confdefs.h <<\_ACEOF
28571#define wxHAVE_LIB_XPM 1
28572_ACEOF
28573
28574 else
28575 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28576echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28577 fi
28578 fi
28579
28580 fi
28581
28582 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28583echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28584if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28585 echo $ECHO_N "(cached) $ECHO_C" >&6
28586else
28587 ac_check_lib_save_LIBS=$LIBS
28588LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28589cat >conftest.$ac_ext <<_ACEOF
28590/* confdefs.h. */
28591_ACEOF
28592cat confdefs.h >>conftest.$ac_ext
28593cat >>conftest.$ac_ext <<_ACEOF
28594/* end confdefs.h. */
28595
28596/* Override any gcc2 internal prototype to avoid an error. */
28597#ifdef __cplusplus
28598extern "C"
28599#endif
28600/* We use char because int might match the return type of a gcc2
28601 builtin and then its argument prototype would still apply. */
28602char XShapeQueryExtension ();
28603int
28604main ()
28605{
28606XShapeQueryExtension ();
28607 ;
28608 return 0;
28609}
28610_ACEOF
28611rm -f conftest.$ac_objext conftest$ac_exeext
28612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28613 (eval $ac_link) 2>conftest.er1
a848cd7e 28614 ac_status=$?
ac1cb8d3
VS
28615 grep -v '^ *+' conftest.er1 >conftest.err
28616 rm -f conftest.er1
28617 cat conftest.err >&5
a848cd7e
SC
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
6ebeb4c7 28620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28623 ac_status=$?
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; } &&
28626 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28628 (eval $ac_try) 2>&5
28629 ac_status=$?
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); }; }; then
28632 ac_cv_lib_Xext_XShapeQueryExtension=yes
28633else
28634 echo "$as_me: failed program was:" >&5
28635sed 's/^/| /' conftest.$ac_ext >&5
28636
28637ac_cv_lib_Xext_XShapeQueryExtension=no
28638fi
ac1cb8d3
VS
28639rm -f conftest.err conftest.$ac_objext \
28640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28641LIBS=$ac_check_lib_save_LIBS
28642fi
28643echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28644echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28645if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28646
28647 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28648 wxHAVE_XEXT_LIB=1
28649
28650fi
28651
28652
28653 if test "$wxHAVE_XEXT_LIB" = 1; then
28654 save_CFLAGS="$CFLAGS"
28655 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28656
28657 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28658echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28659 cat >conftest.$ac_ext <<_ACEOF
28660/* confdefs.h. */
28661_ACEOF
28662cat confdefs.h >>conftest.$ac_ext
28663cat >>conftest.$ac_ext <<_ACEOF
28664/* end confdefs.h. */
28665
28666 #include <X11/Xlib.h>
28667 #include <X11/extensions/shape.h>
28668
28669int
28670main ()
28671{
28672
28673 int dummy1, dummy2;
28674 XShapeQueryExtension((Display*)NULL,
28675 (int*)NULL, (int*)NULL);
28676
28677 ;
28678 return 0;
28679}
28680_ACEOF
28681rm -f conftest.$ac_objext
28682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28683 (eval $ac_compile) 2>conftest.er1
a848cd7e 28684 ac_status=$?
ac1cb8d3
VS
28685 grep -v '^ *+' conftest.er1 >conftest.err
28686 rm -f conftest.er1
28687 cat conftest.err >&5
a848cd7e
SC
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } &&
6ebeb4c7 28690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692 (eval $ac_try) 2>&5
28693 ac_status=$?
28694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); }; } &&
28696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698 (eval $ac_try) 2>&5
28699 ac_status=$?
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); }; }; then
28702
28703 cat >>confdefs.h <<\_ACEOF
28704#define HAVE_XSHAPE 1
28705_ACEOF
28706
28707 echo "$as_me:$LINENO: result: found" >&5
28708echo "${ECHO_T}found" >&6
28709
28710else
28711 echo "$as_me: failed program was:" >&5
28712sed 's/^/| /' conftest.$ac_ext >&5
28713
28714
28715 echo "$as_me:$LINENO: result: not found" >&5
28716echo "${ECHO_T}not found" >&6
28717
28718fi
ac1cb8d3 28719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28720 CFLAGS="$save_CFLAGS"
28721
28722 fi
28723 fi
28724
28725 if test "$wxUSE_MAC" = 1; then
28726 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28727echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28728 if test "$GCC" = yes; then
28729 echo "$as_me:$LINENO: result: gcc" >&5
28730echo "${ECHO_T}gcc" >&6
28731 CPPFLAGS_PASCAL="-fpascal-strings"
28732 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28733 echo "$as_me:$LINENO: result: xlc" >&5
28734echo "${ECHO_T}xlc" >&6
28735 CPPFLAGS_PASCAL="-qmacpstr"
28736 else
28737 echo "$as_me:$LINENO: result: none" >&5
28738echo "${ECHO_T}none" >&6
28739 fi
28740
1e9e8aba
DE
28741 if test "x$wxUSE_UNIX" = "xyes"; then
28742 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28743 else
28744 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28745 fi
a848cd7e 28746
a848cd7e
SC
28747 TOOLKIT=MAC
28748 GUIDIST=MACX_DIST
dd21ced8 28749 WXBASEPORT="_carbon"
a848cd7e
SC
28750 fi
28751
28752 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28753 TOOLKIT=COCOA
28754 GUIDIST=COCOA_DIST
28755 fi
28756
28757 if test "$wxUSE_PM" = 1; then
28758 TOOLKIT=PM
de59c161
RD
28759 GUIDIST=PM_DIST
28760 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28761echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28762if test "${wx_cv_spbcdata+set}" = set; then
28763 echo $ECHO_N "(cached) $ECHO_C" >&6
28764else
28765
28766 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28767/* confdefs.h. */
28768_ACEOF
28769cat confdefs.h >>conftest.$ac_ext
28770cat >>conftest.$ac_ext <<_ACEOF
28771/* end confdefs.h. */
28772
28773 #define INCL_PM
28774 #include <os2.h>
28775
28776int
28777main ()
28778{
28779
28780 SPBCDATA test;
28781
28782 ;
28783 return 0;
28784}
28785_ACEOF
28786rm -f conftest.$ac_objext
28787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28788 (eval $ac_compile) 2>conftest.er1
de59c161 28789 ac_status=$?
ac1cb8d3
VS
28790 grep -v '^ *+' conftest.er1 >conftest.err
28791 rm -f conftest.er1
28792 cat conftest.err >&5
de59c161
RD
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); } &&
6ebeb4c7 28795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 (eval $ac_try) 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; } &&
28801 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 (eval $ac_try) 2>&5
28804 ac_status=$?
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28807 wx_cv_spbcdata=yes
28808else
28809 echo "$as_me: failed program was:" >&5
28810sed 's/^/| /' conftest.$ac_ext >&5
28811
28812wx_cv_spbcdata=no
28813
28814fi
ac1cb8d3 28815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28816
28817
28818fi
28819echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28820echo "${ECHO_T}$wx_cv_spbcdata" >&6
28821
28822 if test $wx_cv_spbcdata = "yes"; then
28823 cat >>confdefs.h <<\_ACEOF
28824#define HAVE_SPBCDATA 1
28825_ACEOF
28826
28827 fi
a848cd7e
SC
28828 fi
28829
28830 if test "$TOOLKIT" = "PM" ; then
28831 TOOLKIT_DIR="os2"
28832 else
28833 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28834 fi
28835
a848cd7e 28836 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28837 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28838 WIDGET_SET=univ
a848cd7e
SC
28839 fi
28840
28841 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28842 DISTDIR="wx\$(TOOLKIT)"
28843else
28844 USE_GUI=0
28845
28846 TOOLKIT_DIR="base"
28847
28848 if test "$USE_WIN32" = 1 ; then
a848cd7e 28849 TOOLKIT="MSW"
a848cd7e
SC
28850 fi
28851
a848cd7e
SC
28852 GUIDIST="BASE_DIST"
28853 DISTDIR="wxBase"
28854fi
28855
28856
28857
28858
28859IODBC_C_SRC=""
28860
28861
28862if test "$TOOLKIT" != "MSW" ; then
28863
28864 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28865
28866 if test "${ac_cv_header_sql_h+set}" = set; then
28867 echo "$as_me:$LINENO: checking for sql.h" >&5
28868echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28869if test "${ac_cv_header_sql_h+set}" = set; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28871fi
28872echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28873echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28874else
28875 # Is the header compilable?
28876echo "$as_me:$LINENO: checking sql.h usability" >&5
28877echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28878cat >conftest.$ac_ext <<_ACEOF
28879/* confdefs.h. */
28880_ACEOF
28881cat confdefs.h >>conftest.$ac_ext
28882cat >>conftest.$ac_ext <<_ACEOF
28883/* end confdefs.h. */
28884$ac_includes_default
28885#include <sql.h>
28886_ACEOF
28887rm -f conftest.$ac_objext
28888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28889 (eval $ac_compile) 2>conftest.er1
a848cd7e 28890 ac_status=$?
ac1cb8d3
VS
28891 grep -v '^ *+' conftest.er1 >conftest.err
28892 rm -f conftest.er1
28893 cat conftest.err >&5
a848cd7e
SC
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } &&
6ebeb4c7 28896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28898 (eval $ac_try) 2>&5
28899 ac_status=$?
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); }; } &&
28902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904 (eval $ac_try) 2>&5
28905 ac_status=$?
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; }; then
28908 ac_header_compiler=yes
28909else
28910 echo "$as_me: failed program was:" >&5
28911sed 's/^/| /' conftest.$ac_ext >&5
28912
28913ac_header_compiler=no
28914fi
ac1cb8d3 28915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28917echo "${ECHO_T}$ac_header_compiler" >&6
28918
28919# Is the header present?
28920echo "$as_me:$LINENO: checking sql.h presence" >&5
28921echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28922cat >conftest.$ac_ext <<_ACEOF
28923/* confdefs.h. */
28924_ACEOF
28925cat confdefs.h >>conftest.$ac_ext
28926cat >>conftest.$ac_ext <<_ACEOF
28927/* end confdefs.h. */
28928#include <sql.h>
28929_ACEOF
28930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28932 ac_status=$?
28933 grep -v '^ *+' conftest.er1 >conftest.err
28934 rm -f conftest.er1
28935 cat conftest.err >&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } >/dev/null; then
28938 if test -s conftest.err; then
28939 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28941 else
28942 ac_cpp_err=
28943 fi
28944else
28945 ac_cpp_err=yes
28946fi
28947if test -z "$ac_cpp_err"; then
28948 ac_header_preproc=yes
28949else
28950 echo "$as_me: failed program was:" >&5
28951sed 's/^/| /' conftest.$ac_ext >&5
28952
28953 ac_header_preproc=no
28954fi
28955rm -f conftest.err conftest.$ac_ext
28956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28957echo "${ECHO_T}$ac_header_preproc" >&6
28958
28959# So? What about this header?
ac1cb8d3
VS
28960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28961 yes:no: )
a848cd7e
SC
28962 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28963echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28964 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28965echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28966 ac_header_preproc=yes
a848cd7e 28967 ;;
ac1cb8d3 28968 no:yes:* )
a848cd7e
SC
28969 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28970echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28971 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28972echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28974echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28975 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28976echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28977 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28978echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28979 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28980echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28981 (
28982 cat <<\_ASBOX
ac1cb8d3
VS
28983## ----------------------------------------- ##
28984## Report this to wx-dev@lists.wxwidgets.org ##
28985## ----------------------------------------- ##
a848cd7e
SC
28986_ASBOX
28987 ) |
28988 sed "s/^/$as_me: WARNING: /" >&2
28989 ;;
28990esac
28991echo "$as_me:$LINENO: checking for sql.h" >&5
28992echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28993if test "${ac_cv_header_sql_h+set}" = set; then
28994 echo $ECHO_N "(cached) $ECHO_C" >&6
28995else
28996 ac_cv_header_sql_h=$ac_header_preproc
28997fi
28998echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28999echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29000
29001fi
29002if test $ac_cv_header_sql_h = yes; then
29003 found_sql_h=1
29004fi
29005
29006
29007 if test "x$found_sql_h" = "x1" ; then
29008 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29009echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29010if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29011 echo $ECHO_N "(cached) $ECHO_C" >&6
29012else
29013 ac_check_lib_save_LIBS=$LIBS
29014LIBS="-liodbc $LIBS"
29015cat >conftest.$ac_ext <<_ACEOF
29016/* confdefs.h. */
29017_ACEOF
29018cat confdefs.h >>conftest.$ac_ext
29019cat >>conftest.$ac_ext <<_ACEOF
29020/* end confdefs.h. */
29021
29022/* Override any gcc2 internal prototype to avoid an error. */
29023#ifdef __cplusplus
29024extern "C"
29025#endif
29026/* We use char because int might match the return type of a gcc2
29027 builtin and then its argument prototype would still apply. */
29028char SQLAllocEnv ();
29029int
29030main ()
29031{
29032SQLAllocEnv ();
29033 ;
29034 return 0;
29035}
29036_ACEOF
29037rm -f conftest.$ac_objext conftest$ac_exeext
29038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29039 (eval $ac_link) 2>conftest.er1
a848cd7e 29040 ac_status=$?
ac1cb8d3
VS
29041 grep -v '^ *+' conftest.er1 >conftest.err
29042 rm -f conftest.er1
29043 cat conftest.err >&5
a848cd7e
SC
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); } &&
6ebeb4c7 29046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29048 (eval $ac_try) 2>&5
29049 ac_status=$?
29050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); }; } &&
29052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054 (eval $ac_try) 2>&5
29055 ac_status=$?
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); }; }; then
29058 ac_cv_lib_iodbc_SQLAllocEnv=yes
29059else
29060 echo "$as_me: failed program was:" >&5
29061sed 's/^/| /' conftest.$ac_ext >&5
29062
29063ac_cv_lib_iodbc_SQLAllocEnv=no
29064fi
ac1cb8d3
VS
29065rm -f conftest.err conftest.$ac_objext \
29066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29067LIBS=$ac_check_lib_save_LIBS
29068fi
29069echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29070echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29071if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29072 ODBC_LINK=" -liodbc"
29073else
29074
29075 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29076echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29077if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29078 echo $ECHO_N "(cached) $ECHO_C" >&6
29079else
29080 ac_check_lib_save_LIBS=$LIBS
29081LIBS="-lunixodbc $LIBS"
29082cat >conftest.$ac_ext <<_ACEOF
29083/* confdefs.h. */
29084_ACEOF
29085cat confdefs.h >>conftest.$ac_ext
29086cat >>conftest.$ac_ext <<_ACEOF
29087/* end confdefs.h. */
29088
29089/* Override any gcc2 internal prototype to avoid an error. */
29090#ifdef __cplusplus
29091extern "C"
29092#endif
29093/* We use char because int might match the return type of a gcc2
29094 builtin and then its argument prototype would still apply. */
29095char SQLAllocEnv ();
29096int
29097main ()
29098{
29099SQLAllocEnv ();
29100 ;
29101 return 0;
29102}
29103_ACEOF
29104rm -f conftest.$ac_objext conftest$ac_exeext
29105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29106 (eval $ac_link) 2>conftest.er1
a848cd7e 29107 ac_status=$?
ac1cb8d3
VS
29108 grep -v '^ *+' conftest.er1 >conftest.err
29109 rm -f conftest.er1
29110 cat conftest.err >&5
a848cd7e
SC
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
6ebeb4c7 29113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115 (eval $ac_try) 2>&5
29116 ac_status=$?
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; } &&
29119 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29121 (eval $ac_try) 2>&5
29122 ac_status=$?
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); }; }; then
29125 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29126else
29127 echo "$as_me: failed program was:" >&5
29128sed 's/^/| /' conftest.$ac_ext >&5
29129
29130ac_cv_lib_unixodbc_SQLAllocEnv=no
29131fi
ac1cb8d3
VS
29132rm -f conftest.err conftest.$ac_objext \
29133 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29134LIBS=$ac_check_lib_save_LIBS
29135fi
29136echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29137echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29138if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29139 ODBC_LINK=" -lunixodbc"
29140else
29141
29142 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29143echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29144if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29146else
29147 ac_check_lib_save_LIBS=$LIBS
29148LIBS="-lodbc $LIBS"
29149cat >conftest.$ac_ext <<_ACEOF
29150/* confdefs.h. */
29151_ACEOF
29152cat confdefs.h >>conftest.$ac_ext
29153cat >>conftest.$ac_ext <<_ACEOF
29154/* end confdefs.h. */
29155
29156/* Override any gcc2 internal prototype to avoid an error. */
29157#ifdef __cplusplus
29158extern "C"
29159#endif
29160/* We use char because int might match the return type of a gcc2
29161 builtin and then its argument prototype would still apply. */
29162char SQLAllocEnv ();
29163int
29164main ()
29165{
29166SQLAllocEnv ();
29167 ;
29168 return 0;
29169}
29170_ACEOF
29171rm -f conftest.$ac_objext conftest$ac_exeext
29172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29173 (eval $ac_link) 2>conftest.er1
a848cd7e 29174 ac_status=$?
ac1cb8d3
VS
29175 grep -v '^ *+' conftest.er1 >conftest.err
29176 rm -f conftest.er1
29177 cat conftest.err >&5
a848cd7e
SC
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } &&
6ebeb4c7 29180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182 (eval $ac_try) 2>&5
29183 ac_status=$?
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); }; } &&
29186 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29188 (eval $ac_try) 2>&5
29189 ac_status=$?
29190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); }; }; then
29192 ac_cv_lib_odbc_SQLAllocEnv=yes
29193else
29194 echo "$as_me: failed program was:" >&5
29195sed 's/^/| /' conftest.$ac_ext >&5
29196
29197ac_cv_lib_odbc_SQLAllocEnv=no
29198fi
ac1cb8d3
VS
29199rm -f conftest.err conftest.$ac_objext \
29200 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29201LIBS=$ac_check_lib_save_LIBS
29202fi
29203echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29204echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29205if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29206 ODBC_LINK=" -lodbc"
29207fi
29208
29209
29210fi
29211
29212
29213fi
29214
29215 fi
29216 if test "x$ODBC_LINK" = "x" ; then
29217 if test "$wxUSE_ODBC" = "sys" ; then
29218 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29219echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29220 { (exit 1); exit 1; }; }
29221 else
29222 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29223echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29224 wxUSE_ODBC=builtin
29225 fi
29226 else
29227 wxUSE_ODBC=sys
29228 fi
29229 fi
a848cd7e 29230
2da0c077
RD
29231 if test "$wxUSE_ODBC" = "builtin" ; then
29232 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29233#define wxUSE_BUILTIN_IODBC 1
29234_ACEOF
29235
a848cd7e
SC
29236 fi
29237fi
29238
2da0c077
RD
29239if test "$wxUSE_ODBC" != "no" ; then
29240 cat >>confdefs.h <<\_ACEOF
29241#define wxUSE_ODBC 1
29242_ACEOF
29243
29244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29245
29246 WXODBCFLAG="-D_IODBC_"
29247fi
a848cd7e 29248
01cb68df 29249
a848cd7e 29250if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29251 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29252 echo "$as_me:$LINENO: checking for Xinerama" >&5
29253echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29254
29255ac_find_libraries=
29256for ac_dir in $SEARCH_LIB /usr/lib;
29257 do
3eca31dc 29258 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29259 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29260 ac_find_libraries=$ac_dir
29261 break 2
29262 fi
29263 done
29264 done
29265
29266 if test "$ac_find_libraries" != "" ; then
29267
29268 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29269 result=$?
29270 if test $result = 0; then
29271 ac_path_to_link=""
29272 else
29273 ac_path_to_link=" -L$ac_find_libraries"
29274 fi
29275
29276 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29277 LDFLAGS="$LDFLAGS $ac_path_to_link"
29278 fi
29279 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29280 echo "$as_me:$LINENO: result: yes" >&5
29281echo "${ECHO_T}yes" >&6
29282
29283 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29284echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29285
29286ac_find_libraries=
29287for ac_dir in $SEARCH_LIB /usr/lib;
29288 do
3eca31dc 29289 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29290 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29291 ac_find_libraries=$ac_dir
29292 break 2
29293 fi
29294 done
29295 done
29296
29297 if test "$ac_find_libraries" != "" ; then
29298 echo "$as_me:$LINENO: result: yes" >&5
29299echo "${ECHO_T}yes" >&6
29300
29301for ac_header in X11/extensions/xf86vmode.h
29302do
29303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29304echo "$as_me:$LINENO: checking for $ac_header" >&5
29305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29306if eval "test \"\${$as_ac_Header+set}\" = set"; then
29307 echo $ECHO_N "(cached) $ECHO_C" >&6
29308else
29309 cat >conftest.$ac_ext <<_ACEOF
29310/* confdefs.h. */
29311_ACEOF
29312cat confdefs.h >>conftest.$ac_ext
29313cat >>conftest.$ac_ext <<_ACEOF
29314/* end confdefs.h. */
29315
29316 #if HAVE_X11_XLIB_H
29317 #include <X11/Xlib.h>
29318 #endif
29319
29320
29321#include <$ac_header>
29322_ACEOF
29323rm -f conftest.$ac_objext
29324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29325 (eval $ac_compile) 2>conftest.er1
a848cd7e 29326 ac_status=$?
ac1cb8d3
VS
29327 grep -v '^ *+' conftest.er1 >conftest.err
29328 rm -f conftest.er1
29329 cat conftest.err >&5
a848cd7e
SC
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } &&
6ebeb4c7 29332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29334 (eval $ac_try) 2>&5
29335 ac_status=$?
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); }; } &&
29338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29340 (eval $ac_try) 2>&5
29341 ac_status=$?
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); }; }; then
29344 eval "$as_ac_Header=yes"
29345else
29346 echo "$as_me: failed program was:" >&5
29347sed 's/^/| /' conftest.$ac_ext >&5
29348
29349eval "$as_ac_Header=no"
29350fi
ac1cb8d3 29351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29352fi
29353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29355if test `eval echo '${'$as_ac_Header'}'` = yes; then
29356 cat >>confdefs.h <<_ACEOF
29357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29358_ACEOF
29359
29360 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29361
29362fi
29363
29364done
29365
29366 else
29367 echo "$as_me:$LINENO: result: no" >&5
29368echo "${ECHO_T}no" >&6
29369 fi
29370
29371 else
29372 echo "$as_me:$LINENO: result: no" >&5
29373echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29374 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29375echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29376 wxUSE_DISPLAY="no"
29377 fi
01cb68df
RG
29378 elif test "$wxUSE_MSW" = 1; then
29379
29380
29381for ac_header in multimon.h ddraw.h
29382do
29383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29384echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29386if eval "test \"\${$as_ac_Header+set}\" = set"; then
29387 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29388else
5294a27e 29389 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29390/* confdefs.h. */
29391_ACEOF
29392cat confdefs.h >>conftest.$ac_ext
29393cat >>conftest.$ac_ext <<_ACEOF
29394/* end confdefs.h. */
5294a27e
VZ
29395#include <windows.h>
29396
01cb68df
RG
29397#include <$ac_header>
29398_ACEOF
29399rm -f conftest.$ac_objext
29400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29401 (eval $ac_compile) 2>conftest.er1
01cb68df 29402 ac_status=$?
ac1cb8d3
VS
29403 grep -v '^ *+' conftest.er1 >conftest.err
29404 rm -f conftest.er1
29405 cat conftest.err >&5
01cb68df
RG
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } &&
6ebeb4c7 29408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29410 (eval $ac_try) 2>&5
29411 ac_status=$?
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; } &&
29414 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29416 (eval $ac_try) 2>&5
29417 ac_status=$?
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; }; then
5294a27e 29420 eval "$as_ac_Header=yes"
01cb68df
RG
29421else
29422 echo "$as_me: failed program was:" >&5
29423sed 's/^/| /' conftest.$ac_ext >&5
29424
5294a27e 29425eval "$as_ac_Header=no"
01cb68df 29426fi
ac1cb8d3 29427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29428fi
29429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29431if test `eval echo '${'$as_ac_Header'}'` = yes; then
29432 cat >>confdefs.h <<_ACEOF
29433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29434_ACEOF
29435
29436else
29437
5294a27e
VZ
29438 wxUSE_DISPLAY="no"
29439 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29440echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29441
29442fi
29443
29444done
29445
a848cd7e
SC
29446 fi
29447fi
29448
29449
29450USE_OPENGL=0
29451if test "$wxUSE_OPENGL" = "yes"; then
29452 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29453 OPENGL_LIBS="-framework OpenGL -framework AGL"
29454 elif test "$wxUSE_MSW" = 1; then
29455 OPENGL_LIBS="-lopengl32 -lglu32"
29456 else
29457
29458
29459ac_find_includes=
29460for ac_dir in $SEARCH_INCLUDE /usr/include;
29461 do
29462 if test -f "$ac_dir/GL/gl.h"; then
29463 ac_find_includes=$ac_dir
29464 break
29465 fi
29466 done
29467
29468 if test "$ac_find_includes" != "" ; then
29469 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29470echo "${ECHO_T}found in $ac_find_includes" >&6
29471
29472 if test "x$ac_find_includes" = "x/usr/include"; then
29473 ac_path_to_include=""
29474 else
29475 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29476 result=$?
29477 if test $result = 0; then
29478 ac_path_to_include=""
29479 else
29480 ac_path_to_include=" -I$ac_find_includes"
29481 fi
29482 fi
29483
29484 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29485 fi
29486
29487 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29488 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29489echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29490if test "${ac_cv_header_GL_gl_h+set}" = set; then
29491 echo $ECHO_N "(cached) $ECHO_C" >&6
29492fi
29493echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29494echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29495else
29496 # Is the header compilable?
29497echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29498echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29499cat >conftest.$ac_ext <<_ACEOF
29500/* confdefs.h. */
29501_ACEOF
29502cat confdefs.h >>conftest.$ac_ext
29503cat >>conftest.$ac_ext <<_ACEOF
29504/* end confdefs.h. */
29505$ac_includes_default
29506#include <GL/gl.h>
29507_ACEOF
29508rm -f conftest.$ac_objext
29509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29510 (eval $ac_compile) 2>conftest.er1
a848cd7e 29511 ac_status=$?
ac1cb8d3
VS
29512 grep -v '^ *+' conftest.er1 >conftest.err
29513 rm -f conftest.er1
29514 cat conftest.err >&5
a848cd7e
SC
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); } &&
6ebeb4c7 29517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519 (eval $ac_try) 2>&5
29520 ac_status=$?
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); }; } &&
29523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525 (eval $ac_try) 2>&5
29526 ac_status=$?
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; }; then
29529 ac_header_compiler=yes
29530else
29531 echo "$as_me: failed program was:" >&5
29532sed 's/^/| /' conftest.$ac_ext >&5
29533
29534ac_header_compiler=no
29535fi
ac1cb8d3 29536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29538echo "${ECHO_T}$ac_header_compiler" >&6
29539
29540# Is the header present?
29541echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29542echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29543cat >conftest.$ac_ext <<_ACEOF
29544/* confdefs.h. */
29545_ACEOF
29546cat confdefs.h >>conftest.$ac_ext
29547cat >>conftest.$ac_ext <<_ACEOF
29548/* end confdefs.h. */
29549#include <GL/gl.h>
29550_ACEOF
29551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29553 ac_status=$?
29554 grep -v '^ *+' conftest.er1 >conftest.err
29555 rm -f conftest.er1
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } >/dev/null; then
29559 if test -s conftest.err; then
29560 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29562 else
29563 ac_cpp_err=
29564 fi
29565else
29566 ac_cpp_err=yes
29567fi
29568if test -z "$ac_cpp_err"; then
29569 ac_header_preproc=yes
29570else
29571 echo "$as_me: failed program was:" >&5
29572sed 's/^/| /' conftest.$ac_ext >&5
29573
29574 ac_header_preproc=no
29575fi
29576rm -f conftest.err conftest.$ac_ext
29577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29578echo "${ECHO_T}$ac_header_preproc" >&6
29579
29580# So? What about this header?
ac1cb8d3
VS
29581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29582 yes:no: )
a848cd7e
SC
29583 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29584echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29585 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29586echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29587 ac_header_preproc=yes
a848cd7e 29588 ;;
ac1cb8d3 29589 no:yes:* )
a848cd7e
SC
29590 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29591echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29592 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29593echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29594 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29595echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29596 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29597echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29598 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29599echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29600 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29601echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29602 (
29603 cat <<\_ASBOX
ac1cb8d3
VS
29604## ----------------------------------------- ##
29605## Report this to wx-dev@lists.wxwidgets.org ##
29606## ----------------------------------------- ##
a848cd7e
SC
29607_ASBOX
29608 ) |
29609 sed "s/^/$as_me: WARNING: /" >&2
29610 ;;
29611esac
29612echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29613echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29614if test "${ac_cv_header_GL_gl_h+set}" = set; then
29615 echo $ECHO_N "(cached) $ECHO_C" >&6
29616else
29617 ac_cv_header_GL_gl_h=$ac_header_preproc
29618fi
29619echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29620echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29621
29622fi
29623if test $ac_cv_header_GL_gl_h = yes; then
29624
29625 found_gl=0
29626
29627 echo "$as_me:$LINENO: checking for -lGL" >&5
29628echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29629
29630ac_find_libraries=
29631for ac_dir in $SEARCH_LIB /usr/lib;
29632 do
3eca31dc 29633 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29634 if test -f "$ac_dir/libGL.$ac_extension"; then
29635 ac_find_libraries=$ac_dir
29636 break 2
29637 fi
29638 done
29639 done
29640
29641 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29642 echo "$as_me:$LINENO: result: yes" >&5
29643echo "${ECHO_T}yes" >&6
29644
a848cd7e
SC
29645
29646 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29647 result=$?
29648 if test $result = 0; then
29649 ac_path_to_link=""
29650 else
29651 ac_path_to_link=" -L$ac_find_libraries"
29652 fi
29653
29654 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29655 LDFLAGS_GL="$ac_path_to_link"
29656 fi
29657
69120ee4
VZ
29658 echo "$as_me:$LINENO: checking for -lGLU" >&5
29659echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29660
29661ac_find_libraries=
29662for ac_dir in $SEARCH_LIB /usr/lib;
29663 do
3eca31dc 29664 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29665 if test -f "$ac_dir/libGLU.$ac_extension"; then
29666 ac_find_libraries=$ac_dir
29667 break 2
29668 fi
29669 done
29670 done
29671
29672 if test "$ac_find_libraries" != "" ; then
29673
29674 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29675 result=$?
29676 if test $result = 0; then
29677 ac_path_to_link=""
29678 else
29679 ac_path_to_link=" -L$ac_find_libraries"
29680 fi
29681
29682 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29683 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29684 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29685 fi
29686
29687 found_gl=1
29688 OPENGL_LIBS="-lGL -lGLU"
29689 echo "$as_me:$LINENO: result: yes" >&5
29690echo "${ECHO_T}yes" >&6
69120ee4
VZ
29691 else
29692 echo "$as_me:$LINENO: result: no" >&5
29693echo "${ECHO_T}no" >&6
a848cd7e 29694 fi
69120ee4
VZ
29695 else
29696 echo "$as_me:$LINENO: result: no" >&5
29697echo "${ECHO_T}no" >&6
a848cd7e
SC
29698 fi
29699
29700 if test "$found_gl" != 1; then
a848cd7e
SC
29701 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29702echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29703
29704ac_find_libraries=
29705for ac_dir in $SEARCH_LIB /usr/lib;
29706 do
3eca31dc 29707 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29708 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29709 ac_find_libraries=$ac_dir
29710 break 2
29711 fi
29712 done
29713 done
29714
29715 if test "$ac_find_libraries" != "" ; then
29716
29717 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29718 result=$?
29719 if test $result = 0; then
29720 ac_path_to_link=""
29721 else
29722 ac_path_to_link=" -L$ac_find_libraries"
29723 fi
29724
29725 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29726 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29727 echo "$as_me:$LINENO: result: yes" >&5
29728echo "${ECHO_T}yes" >&6
29729 else
29730 echo "$as_me:$LINENO: result: no" >&5
29731echo "${ECHO_T}no" >&6
29732 fi
29733 fi
29734
29735fi
29736
29737
29738
29739 if test "x$OPENGL_LIBS" = "x"; then
29740 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29741echo "$as_me: error: OpenGL libraries not available" >&2;}
29742 { (exit 1); exit 1; }; }
29743 fi
29744 fi
29745
29746 if test "$wxUSE_OPENGL" = "yes"; then
29747 USE_OPENGL=1
29748 cat >>confdefs.h <<\_ACEOF
29749#define wxUSE_OPENGL 1
29750_ACEOF
29751
29752 cat >>confdefs.h <<\_ACEOF
29753#define wxUSE_GLCANVAS 1
29754_ACEOF
29755
29756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29757 fi
29758fi
29759
a848cd7e
SC
29760
29761if test -n "$TOOLKIT" ; then
29762 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29763fi
29764
a848cd7e
SC
29765
29766
29767if test "$wxUSE_SHARED" = "yes"; then
29768 case "${host}" in
29769 *-pc-msdosdjgpp )
29770 wxUSE_SHARED=no
29771 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29772echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29773 ;;
29774 esac
29775fi
29776
a848cd7e 29777if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29778
29779
29780 found_versioning=no
29781
29782
29783 if test $found_versioning = no ; then
29784 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29785echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29786if test "${wx_cv_version_script+set}" = set; then
29787 echo $ECHO_N "(cached) $ECHO_C" >&6
29788else
29789
29790 echo "VER_1 { *; };" >conftest.sym
29791 echo "int main() { return 0; }" >conftest.cpp
29792
29793 if { ac_try='
29794 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29795 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29797 (eval $ac_try) 2>&5
29798 ac_status=$?
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); }; } ; then
29801 if test -s conftest.stderr ; then
29802 wx_cv_version_script=no
29803 else
29804 wx_cv_version_script=yes
29805 fi
29806 else
29807 wx_cv_version_script=no
29808 fi
e5d4b470
MW
29809
29810 if test $wx_cv_version_script = yes
29811 then
29812 echo "struct B { virtual ~B() { } }; \
29813 struct D : public B { }; \
29814 void F() { D d; }" > conftest.cpp
29815
29816 if { ac_try='
29817 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29818 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29820 (eval $ac_try) 2>&5
29821 ac_status=$?
29822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823 (exit $ac_status); }; } &&
29824 { ac_try='
29825 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29826 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29828 (eval $ac_try) 2>&5
29829 ac_status=$?
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; }
29832 then
29833 if { ac_try='
29834 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29835 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837 (eval $ac_try) 2>&5
29838 ac_status=$?
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); }; }
29841 then
29842 wx_cv_version_script=yes
29843 else
29844 wx_cv_version_script=no
29845 fi
29846 fi
29847 fi
29848
a848cd7e 29849 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29850 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29851
29852fi
29853echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29854echo "${ECHO_T}$wx_cv_version_script" >&6
29855 if test $wx_cv_version_script = yes ; then
29856 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29857 fi
29858 fi
29859
29860
29861 case "${host}" in
29862 *-*-linux* | *-*-gnu* )
29863 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29864 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 29865 ;;
a848cd7e
SC
29866
29867 *-*-solaris2* )
29868 if test "$GCC" = yes ; then
29869 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29870
29871 saveLdflags="$LDFLAGS"
29872 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29873 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29874echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29875 cat >conftest.$ac_ext <<_ACEOF
29876/* confdefs.h. */
29877_ACEOF
29878cat confdefs.h >>conftest.$ac_ext
29879cat >>conftest.$ac_ext <<_ACEOF
29880/* end confdefs.h. */
29881
29882int
29883main ()
29884{
29885
29886 ;
29887 return 0;
29888}
29889_ACEOF
29890rm -f conftest.$ac_objext conftest$ac_exeext
29891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29892 (eval $ac_link) 2>conftest.er1
a848cd7e 29893 ac_status=$?
ac1cb8d3
VS
29894 grep -v '^ *+' conftest.er1 >conftest.err
29895 rm -f conftest.er1
29896 cat conftest.err >&5
a848cd7e
SC
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); } &&
6ebeb4c7 29899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901 (eval $ac_try) 2>&5
29902 ac_status=$?
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; } &&
29905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907 (eval $ac_try) 2>&5
29908 ac_status=$?
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); }; }; then
29911
29912 echo "$as_me:$LINENO: result: yes" >&5
29913echo "${ECHO_T}yes" >&6
29914 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29915 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29916
29917else
29918 echo "$as_me: failed program was:" >&5
29919sed 's/^/| /' conftest.$ac_ext >&5
29920
29921
29922 echo "$as_me:$LINENO: result: no" >&5
29923echo "${ECHO_T}no" >&6
29924 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29925echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29926 LDFLAGS="$saveLdflags -Wl,-R,/"
29927 cat >conftest.$ac_ext <<_ACEOF
29928/* confdefs.h. */
29929_ACEOF
29930cat confdefs.h >>conftest.$ac_ext
29931cat >>conftest.$ac_ext <<_ACEOF
29932/* end confdefs.h. */
29933
29934int
29935main ()
29936{
29937
29938 ;
29939 return 0;
29940}
29941_ACEOF
29942rm -f conftest.$ac_objext conftest$ac_exeext
29943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29944 (eval $ac_link) 2>conftest.er1
a848cd7e 29945 ac_status=$?
ac1cb8d3
VS
29946 grep -v '^ *+' conftest.er1 >conftest.err
29947 rm -f conftest.er1
29948 cat conftest.err >&5
a848cd7e
SC
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); } &&
6ebeb4c7 29951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29953 (eval $ac_try) 2>&5
29954 ac_status=$?
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; } &&
29957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29959 (eval $ac_try) 2>&5
29960 ac_status=$?
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); }; }; then
29963
ffa0583f 29964 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29965echo "${ECHO_T}yes" >&6
ffa0583f
RL
29966 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29967 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29968
a848cd7e
SC
29969else
29970 echo "$as_me: failed program was:" >&5
29971sed 's/^/| /' conftest.$ac_ext >&5
29972
29973
29974 echo "$as_me:$LINENO: result: no" >&5
29975echo "${ECHO_T}no" >&6
29976
29977fi
ac1cb8d3
VS
29978rm -f conftest.err conftest.$ac_objext \
29979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29980
29981fi
ac1cb8d3
VS
29982rm -f conftest.err conftest.$ac_objext \
29983 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29984 LDFLAGS="$saveLdflags"
29985 else
a848cd7e 29986 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29987 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29988 fi
29989 ;;
29990
cfda0ea8 29991 *-*-darwin* )
0caebc27
MW
29992 install_name_tool=`which install_name_tool`
29993 if test "$install_name_tool" -a -x "$install_name_tool"; then
29994 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29995 cat <<EOF >change-install-names
a848cd7e
SC
29996#!/bin/sh
29997libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29998inst_cmd="install_name_tool "
29999for i in \${libnames} ; do
30000 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30001done
30002\${inst_cmd} \${3}
30003EOF
0caebc27
MW
30004 chmod +x change-install-names
30005 fi
a848cd7e
SC
30006 ;;
30007
30008 *-*-cygwin* | *-*-mingw32* )
30009 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30010 ;;
30011
81f90336
MW
30012 *-*-hpux* )
30013 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30014 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30015 ;;
30016
a848cd7e 30017 esac
ceec2216 30018
ffa0583f
RL
30019 if test $wxUSE_RPATH = "no"; then
30020 SAMPLES_RPATH_FLAG=''
30021 SAMPLES_RPATH_POSTLINK=''
30022 WXCONFIG_RPATH=''
30023 fi
30024
30025 SHARED=1
30026
30027else
30028
ceec2216
RL
30029 config_linkage_component="-static"
30030 SHARED=0
ffa0583f 30031
ceec2216 30032fi
a848cd7e 30033
a848cd7e 30034
ceec2216
RL
30035UNICODE=0
30036lib_unicode_suffix=
30037WX_CHARTYPE="ansi"
30038if test "$wxUSE_UNICODE" = "yes"; then
30039 lib_unicode_suffix=u
30040 WX_CHARTYPE="unicode"
30041 UNICODE=1
a848cd7e
SC
30042fi
30043
ceec2216
RL
30044lib_debug_suffix=
30045WX_DEBUGTYPE="release"
30046DEBUG_FLAG=0
30047if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30048 lib_debug_suffix=d
30049 WX_DEBUGTYPE="debug"
30050 DEBUG_FLAG=1
30051fi
a848cd7e 30052
ceec2216
RL
30053WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30054WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30055
ceec2216
RL
30056DEBUG_INFO=0
30057if test "$wxUSE_DEBUG_INFO" = "yes"; then
30058 DEBUG_INFO=1
30059fi
a848cd7e 30060
ceec2216 30061WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30062
ceec2216 30063TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30064
ceec2216 30065TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30066
ceec2216
RL
30067if test "$cross_compiling" = "yes"; then
30068 HOST_SUFFIX="-$host_alias"
30069 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30070 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30071fi
30072
dd21ced8 30073WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30074if test "${TOOLKIT_DIR}" = "os2"; then
30075 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30076else
30077 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30078fi
ceec2216
RL
30079
30080
30081
1d1af5ea
DE
30082if test "$wxUSE_COCOA" = 1; then
30083
30084
30085 ac_ext=c
30086ac_cpp='$CPP $CPPFLAGS'
30087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30089ac_compiler_gnu=$ac_cv_c_compiler_gnu
30090
30091ac_ext=m
30092
30093 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30094echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30095 cat >conftest.$ac_ext <<_ACEOF
30096/* confdefs.h. */
30097_ACEOF
30098cat confdefs.h >>conftest.$ac_ext
30099cat >>conftest.$ac_ext <<_ACEOF
30100/* end confdefs.h. */
30101#include <AppKit/NSEvent.h>
30102#include <CoreFoundation/CoreFoundation.h>
30103
30104int
30105main ()
30106{
30107
30108 ;
30109 return 0;
30110}
30111_ACEOF
30112rm -f conftest.$ac_objext
30113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30114 (eval $ac_compile) 2>conftest.er1
30115 ac_status=$?
30116 grep -v '^ *+' conftest.er1 >conftest.err
30117 rm -f conftest.er1
30118 cat conftest.err >&5
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); } &&
6ebeb4c7 30121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30123 (eval $ac_try) 2>&5
30124 ac_status=$?
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); }; } &&
30127 { ac_try='test -s conftest.$ac_objext'
30128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30129 (eval $ac_try) 2>&5
30130 ac_status=$?
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; }; then
30133 echo "$as_me:$LINENO: result: no" >&5
30134echo "${ECHO_T}no" >&6
30135else
30136 echo "$as_me: failed program was:" >&5
30137sed 's/^/| /' conftest.$ac_ext >&5
30138
30139echo "$as_me:$LINENO: result: yes" >&5
30140echo "${ECHO_T}yes" >&6
30141 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30142echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30143 cat >conftest.$ac_ext <<_ACEOF
30144/* confdefs.h. */
30145_ACEOF
30146cat confdefs.h >>conftest.$ac_ext
30147cat >>conftest.$ac_ext <<_ACEOF
30148/* end confdefs.h. */
30149#define __Point__ 1
30150#include <AppKit/NSEvent.h>
30151#include <CoreFoundation/CoreFoundation.h>
30152
30153int
30154main ()
30155{
30156
30157 ;
30158 return 0;
30159}
30160_ACEOF
30161rm -f conftest.$ac_objext
30162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30163 (eval $ac_compile) 2>conftest.er1
30164 ac_status=$?
30165 grep -v '^ *+' conftest.er1 >conftest.err
30166 rm -f conftest.er1
30167 cat conftest.err >&5
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); } &&
6ebeb4c7 30170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30172 (eval $ac_try) 2>&5
30173 ac_status=$?
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); }; } &&
30176 { ac_try='test -s conftest.$ac_objext'
30177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30178 (eval $ac_try) 2>&5
30179 ac_status=$?
30180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30181 (exit $ac_status); }; }; then
30182 echo "$as_me:$LINENO: result: yes" >&5
30183echo "${ECHO_T}yes" >&6
30184 cat >>confdefs.h <<\_ACEOF
30185#define __Point__ 1
30186_ACEOF
30187
30188
30189else
30190 echo "$as_me: failed program was:" >&5
30191sed 's/^/| /' conftest.$ac_ext >&5
30192
30193{ { echo "$as_me:$LINENO: error: no
30194See \`config.log' for more details." >&5
30195echo "$as_me: error: no
30196See \`config.log' for more details." >&2;}
30197 { (exit 1); exit 1; }; }
30198
30199fi
30200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30201
30202fi
30203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30204 ac_ext=c
30205ac_cpp='$CPP $CPPFLAGS'
30206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30208ac_compiler_gnu=$ac_cv_c_compiler_gnu
30209
30210fi
30211
a848cd7e 30212if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30213 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30214 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30215
a848cd7e 30216 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30217
30218 # Extract the first word of "Rez", so it can be a program name with args.
30219set dummy Rez; ac_word=$2
30220echo "$as_me:$LINENO: checking for $ac_word" >&5
30221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30222if test "${ac_cv_prog_RESCOMP+set}" = set; then
30223 echo $ECHO_N "(cached) $ECHO_C" >&6
30224else
30225 if test -n "$RESCOMP"; then
30226 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30227else
30228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30229for as_dir in $PATH
30230do
30231 IFS=$as_save_IFS
30232 test -z "$as_dir" && as_dir=.
30233 for ac_exec_ext in '' $ac_executable_extensions; do
30234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30235 ac_cv_prog_RESCOMP="Rez"
30236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30237 break 2
30238 fi
30239done
30240done
30241
30242 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30243fi
30244fi
30245RESCOMP=$ac_cv_prog_RESCOMP
30246if test -n "$RESCOMP"; then
30247 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30248echo "${ECHO_T}$RESCOMP" >&6
30249else
30250 echo "$as_me:$LINENO: result: no" >&5
30251echo "${ECHO_T}no" >&6
30252fi
30253
30254 # Extract the first word of "DeRez", so it can be a program name with args.
30255set dummy DeRez; ac_word=$2
30256echo "$as_me:$LINENO: checking for $ac_word" >&5
30257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30258if test "${ac_cv_prog_DEREZ+set}" = set; then
30259 echo $ECHO_N "(cached) $ECHO_C" >&6
30260else
30261 if test -n "$DEREZ"; then
30262 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30263else
30264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30265for as_dir in $PATH
30266do
30267 IFS=$as_save_IFS
30268 test -z "$as_dir" && as_dir=.
30269 for ac_exec_ext in '' $ac_executable_extensions; do
30270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30271 ac_cv_prog_DEREZ="DeRez"
30272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30273 break 2
30274 fi
30275done
30276done
30277
30278 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30279fi
30280fi
30281DEREZ=$ac_cv_prog_DEREZ
30282if test -n "$DEREZ"; then
30283 echo "$as_me:$LINENO: result: $DEREZ" >&5
30284echo "${ECHO_T}$DEREZ" >&6
30285else
30286 echo "$as_me:$LINENO: result: no" >&5
30287echo "${ECHO_T}no" >&6
30288fi
30289
30290 # Extract the first word of "SetFile", so it can be a program name with args.
30291set dummy SetFile; ac_word=$2
30292echo "$as_me:$LINENO: checking for $ac_word" >&5
30293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30294if test "${ac_cv_prog_SETFILE+set}" = set; then
30295 echo $ECHO_N "(cached) $ECHO_C" >&6
30296else
30297 if test -n "$SETFILE"; then
30298 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30299else
30300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30301for as_dir in $PATH
30302do
30303 IFS=$as_save_IFS
30304 test -z "$as_dir" && as_dir=.
30305 for ac_exec_ext in '' $ac_executable_extensions; do
30306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30307 ac_cv_prog_SETFILE="SetFile"
30308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30309 break 2
30310 fi
30311done
30312done
30313
30314 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30315fi
30316fi
30317SETFILE=$ac_cv_prog_SETFILE
30318if test -n "$SETFILE"; then
30319 echo "$as_me:$LINENO: result: $SETFILE" >&5
30320echo "${ECHO_T}$SETFILE" >&6
30321else
30322 echo "$as_me:$LINENO: result: no" >&5
30323echo "${ECHO_T}no" >&6
30324fi
30325
30326
30327 MACSETFILE="\$(SETFILE)"
30328
30329 if test "$wxUSE_MAC" = 1; then
1a79f136 30330 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30331
1a79f136 30332 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30333 else
30334 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30335 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30336 fi
30337else
ffa0583f
RL
30338 MACSETFILE="@true"
30339 MACRESWXCONFIG="@true"
a848cd7e
SC
30340
30341 if test "$wxUSE_PM" = 1; then
30342 MACRESCOMP="emxbind -ep"
30343 else
ffa0583f 30344 MACRESCOMP="@true"
a848cd7e
SC
30345 fi
30346fi
30347
30348
30349
30350echo "$as_me:$LINENO: checking for mode_t" >&5
30351echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30352if test "${ac_cv_type_mode_t+set}" = set; then
30353 echo $ECHO_N "(cached) $ECHO_C" >&6
30354else
30355 cat >conftest.$ac_ext <<_ACEOF
30356/* confdefs.h. */
30357_ACEOF
30358cat confdefs.h >>conftest.$ac_ext
30359cat >>conftest.$ac_ext <<_ACEOF
30360/* end confdefs.h. */
30361$ac_includes_default
30362int
30363main ()
30364{
30365if ((mode_t *) 0)
30366 return 0;
30367if (sizeof (mode_t))
30368 return 0;
30369 ;
30370 return 0;
30371}
30372_ACEOF
30373rm -f conftest.$ac_objext
30374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30375 (eval $ac_compile) 2>conftest.er1
a848cd7e 30376 ac_status=$?
ac1cb8d3
VS
30377 grep -v '^ *+' conftest.er1 >conftest.err
30378 rm -f conftest.er1
30379 cat conftest.err >&5
a848cd7e
SC
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); } &&
6ebeb4c7 30382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30384 (eval $ac_try) 2>&5
30385 ac_status=$?
30386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387 (exit $ac_status); }; } &&
30388 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30390 (eval $ac_try) 2>&5
30391 ac_status=$?
30392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393 (exit $ac_status); }; }; then
30394 ac_cv_type_mode_t=yes
30395else
30396 echo "$as_me: failed program was:" >&5
30397sed 's/^/| /' conftest.$ac_ext >&5
30398
30399ac_cv_type_mode_t=no
30400fi
ac1cb8d3 30401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30402fi
30403echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30404echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30405if test $ac_cv_type_mode_t = yes; then
30406 :
30407else
30408
30409cat >>confdefs.h <<_ACEOF
30410#define mode_t int
30411_ACEOF
30412
30413fi
30414
30415echo "$as_me:$LINENO: checking for off_t" >&5
30416echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30417if test "${ac_cv_type_off_t+set}" = set; then
30418 echo $ECHO_N "(cached) $ECHO_C" >&6
30419else
30420 cat >conftest.$ac_ext <<_ACEOF
30421/* confdefs.h. */
30422_ACEOF
30423cat confdefs.h >>conftest.$ac_ext
30424cat >>conftest.$ac_ext <<_ACEOF
30425/* end confdefs.h. */
30426$ac_includes_default
30427int
30428main ()
30429{
30430if ((off_t *) 0)
30431 return 0;
30432if (sizeof (off_t))
30433 return 0;
30434 ;
30435 return 0;
30436}
30437_ACEOF
30438rm -f conftest.$ac_objext
30439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30440 (eval $ac_compile) 2>conftest.er1
a848cd7e 30441 ac_status=$?
ac1cb8d3
VS
30442 grep -v '^ *+' conftest.er1 >conftest.err
30443 rm -f conftest.er1
30444 cat conftest.err >&5
a848cd7e
SC
30445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446 (exit $ac_status); } &&
6ebeb4c7 30447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30449 (eval $ac_try) 2>&5
30450 ac_status=$?
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); }; } &&
30453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30455 (eval $ac_try) 2>&5
30456 ac_status=$?
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); }; }; then
30459 ac_cv_type_off_t=yes
30460else
30461 echo "$as_me: failed program was:" >&5
30462sed 's/^/| /' conftest.$ac_ext >&5
30463
30464ac_cv_type_off_t=no
30465fi
ac1cb8d3 30466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30467fi
30468echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30469echo "${ECHO_T}$ac_cv_type_off_t" >&6
30470if test $ac_cv_type_off_t = yes; then
30471 :
30472else
30473
30474cat >>confdefs.h <<_ACEOF
30475#define off_t long
30476_ACEOF
30477
30478fi
30479
30480echo "$as_me:$LINENO: checking for pid_t" >&5
30481echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30482if test "${ac_cv_type_pid_t+set}" = set; then
30483 echo $ECHO_N "(cached) $ECHO_C" >&6
30484else
30485 cat >conftest.$ac_ext <<_ACEOF
30486/* confdefs.h. */
30487_ACEOF
30488cat confdefs.h >>conftest.$ac_ext
30489cat >>conftest.$ac_ext <<_ACEOF
30490/* end confdefs.h. */
30491$ac_includes_default
30492int
30493main ()
30494{
30495if ((pid_t *) 0)
30496 return 0;
30497if (sizeof (pid_t))
30498 return 0;
30499 ;
30500 return 0;
30501}
30502_ACEOF
30503rm -f conftest.$ac_objext
30504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30505 (eval $ac_compile) 2>conftest.er1
a848cd7e 30506 ac_status=$?
ac1cb8d3
VS
30507 grep -v '^ *+' conftest.er1 >conftest.err
30508 rm -f conftest.er1
30509 cat conftest.err >&5
a848cd7e
SC
30510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511 (exit $ac_status); } &&
6ebeb4c7 30512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30514 (eval $ac_try) 2>&5
30515 ac_status=$?
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); }; } &&
30518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520 (eval $ac_try) 2>&5
30521 ac_status=$?
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); }; }; then
30524 ac_cv_type_pid_t=yes
30525else
30526 echo "$as_me: failed program was:" >&5
30527sed 's/^/| /' conftest.$ac_ext >&5
30528
30529ac_cv_type_pid_t=no
30530fi
ac1cb8d3 30531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30532fi
30533echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30534echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30535if test $ac_cv_type_pid_t = yes; then
30536 :
30537else
30538
30539cat >>confdefs.h <<_ACEOF
30540#define pid_t int
30541_ACEOF
30542
30543fi
30544
30545echo "$as_me:$LINENO: checking for size_t" >&5
30546echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30547if test "${ac_cv_type_size_t+set}" = set; then
30548 echo $ECHO_N "(cached) $ECHO_C" >&6
30549else
30550 cat >conftest.$ac_ext <<_ACEOF
30551/* confdefs.h. */
30552_ACEOF
30553cat confdefs.h >>conftest.$ac_ext
30554cat >>conftest.$ac_ext <<_ACEOF
30555/* end confdefs.h. */
30556$ac_includes_default
30557int
30558main ()
30559{
30560if ((size_t *) 0)
30561 return 0;
30562if (sizeof (size_t))
30563 return 0;
30564 ;
30565 return 0;
30566}
30567_ACEOF
30568rm -f conftest.$ac_objext
30569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30570 (eval $ac_compile) 2>conftest.er1
a848cd7e 30571 ac_status=$?
ac1cb8d3
VS
30572 grep -v '^ *+' conftest.er1 >conftest.err
30573 rm -f conftest.er1
30574 cat conftest.err >&5
a848cd7e
SC
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); } &&
6ebeb4c7 30577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30579 (eval $ac_try) 2>&5
30580 ac_status=$?
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); }; } &&
30583 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30585 (eval $ac_try) 2>&5
30586 ac_status=$?
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); }; }; then
30589 ac_cv_type_size_t=yes
30590else
30591 echo "$as_me: failed program was:" >&5
30592sed 's/^/| /' conftest.$ac_ext >&5
30593
30594ac_cv_type_size_t=no
30595fi
ac1cb8d3 30596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30597fi
30598echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30599echo "${ECHO_T}$ac_cv_type_size_t" >&6
30600if test $ac_cv_type_size_t = yes; then
30601 :
30602else
30603
30604cat >>confdefs.h <<_ACEOF
30605#define size_t unsigned
30606_ACEOF
30607
30608fi
30609
30610echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30611echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30612if test "${ac_cv_type_uid_t+set}" = set; then
30613 echo $ECHO_N "(cached) $ECHO_C" >&6
30614else
30615 cat >conftest.$ac_ext <<_ACEOF
30616/* confdefs.h. */
30617_ACEOF
30618cat confdefs.h >>conftest.$ac_ext
30619cat >>conftest.$ac_ext <<_ACEOF
30620/* end confdefs.h. */
30621#include <sys/types.h>
30622
30623_ACEOF
30624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30625 $EGREP "uid_t" >/dev/null 2>&1; then
30626 ac_cv_type_uid_t=yes
30627else
30628 ac_cv_type_uid_t=no
30629fi
30630rm -f conftest*
30631
30632fi
30633echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30634echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30635if test $ac_cv_type_uid_t = no; then
30636
30637cat >>confdefs.h <<\_ACEOF
30638#define uid_t int
30639_ACEOF
30640
30641
30642cat >>confdefs.h <<\_ACEOF
30643#define gid_t int
30644_ACEOF
30645
30646fi
30647
30648
d51253e8
RL
30649echo "$as_me:$LINENO: checking for ssize_t" >&5
30650echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30651if test "${ac_cv_type_ssize_t+set}" = set; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30653else
30654 cat >conftest.$ac_ext <<_ACEOF
30655/* confdefs.h. */
30656_ACEOF
30657cat confdefs.h >>conftest.$ac_ext
30658cat >>conftest.$ac_ext <<_ACEOF
30659/* end confdefs.h. */
30660$ac_includes_default
30661int
30662main ()
30663{
30664if ((ssize_t *) 0)
30665 return 0;
30666if (sizeof (ssize_t))
30667 return 0;
30668 ;
30669 return 0;
30670}
30671_ACEOF
30672rm -f conftest.$ac_objext
30673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30674 (eval $ac_compile) 2>conftest.er1
30675 ac_status=$?
30676 grep -v '^ *+' conftest.er1 >conftest.err
30677 rm -f conftest.er1
30678 cat conftest.err >&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } &&
6ebeb4c7 30681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683 (eval $ac_try) 2>&5
30684 ac_status=$?
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; } &&
30687 { ac_try='test -s conftest.$ac_objext'
30688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30689 (eval $ac_try) 2>&5
30690 ac_status=$?
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); }; }; then
30693 ac_cv_type_ssize_t=yes
30694else
30695 echo "$as_me: failed program was:" >&5
30696sed 's/^/| /' conftest.$ac_ext >&5
30697
30698ac_cv_type_ssize_t=no
30699fi
30700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30701fi
30702echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30703echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30704if test $ac_cv_type_ssize_t = yes; then
30705
30706cat >>confdefs.h <<_ACEOF
30707#define HAVE_SSIZE_T 1
30708_ACEOF
30709
30710
30711fi
30712
30713
a848cd7e
SC
30714
30715
30716ac_ext=cc
30717ac_cpp='$CXXCPP $CPPFLAGS'
30718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30721
30722echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30723echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30724if test "${wx_cv_size_t_is_uint+set}" = set; then
30725 echo $ECHO_N "(cached) $ECHO_C" >&6
30726else
30727
30728 cat >conftest.$ac_ext <<_ACEOF
30729/* confdefs.h. */
30730_ACEOF
30731cat confdefs.h >>conftest.$ac_ext
30732cat >>conftest.$ac_ext <<_ACEOF
30733/* end confdefs.h. */
30734#include <stddef.h>
30735int
30736main ()
30737{
30738
30739 return 0; }
30740
30741 struct Foo { void foo(size_t); void foo(unsigned int); };
30742
30743 int bar() {
30744
30745 ;
30746 return 0;
30747}
30748_ACEOF
30749rm -f conftest.$ac_objext
30750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30751 (eval $ac_compile) 2>conftest.er1
a848cd7e 30752 ac_status=$?
ac1cb8d3
VS
30753 grep -v '^ *+' conftest.er1 >conftest.err
30754 rm -f conftest.er1
30755 cat conftest.err >&5
a848cd7e
SC
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); } &&
6ebeb4c7 30758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760 (eval $ac_try) 2>&5
30761 ac_status=$?
30762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763 (exit $ac_status); }; } &&
30764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30766 (eval $ac_try) 2>&5
30767 ac_status=$?
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); }; }; then
30770 wx_cv_size_t_is_uint=no
30771else
30772 echo "$as_me: failed program was:" >&5
30773sed 's/^/| /' conftest.$ac_ext >&5
30774
30775wx_cv_size_t_is_uint=yes
30776
30777fi
ac1cb8d3 30778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30779
30780
30781fi
30782echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30783echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30784
30785if test "$wx_cv_size_t_is_uint" = "yes"; then
30786 cat >>confdefs.h <<\_ACEOF
30787#define wxSIZE_T_IS_UINT 1
30788_ACEOF
30789
30790else
30791 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30792echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30793if test "${wx_cv_size_t_is_ulong+set}" = set; then
30794 echo $ECHO_N "(cached) $ECHO_C" >&6
30795else
30796 cat >conftest.$ac_ext <<_ACEOF
30797/* confdefs.h. */
30798_ACEOF
30799cat confdefs.h >>conftest.$ac_ext
30800cat >>conftest.$ac_ext <<_ACEOF
30801/* end confdefs.h. */
30802#include <stddef.h>
30803int
30804main ()
30805{
30806
30807 return 0; }
30808
30809 struct Foo { void foo(size_t); void foo(unsigned long); };
30810
30811 int bar() {
30812
30813 ;
30814 return 0;
30815}
30816_ACEOF
30817rm -f conftest.$ac_objext
30818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30819 (eval $ac_compile) 2>conftest.er1
a848cd7e 30820 ac_status=$?
ac1cb8d3
VS
30821 grep -v '^ *+' conftest.er1 >conftest.err
30822 rm -f conftest.er1
30823 cat conftest.err >&5
a848cd7e
SC
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); } &&
6ebeb4c7 30826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30828 (eval $ac_try) 2>&5
30829 ac_status=$?
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; } &&
30832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834 (eval $ac_try) 2>&5
30835 ac_status=$?
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); }; }; then
30838 wx_cv_size_t_is_ulong=no
30839else
30840 echo "$as_me: failed program was:" >&5
30841sed 's/^/| /' conftest.$ac_ext >&5
30842
30843wx_cv_size_t_is_ulong=yes
30844
30845fi
ac1cb8d3 30846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30847
30848fi
30849echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30850echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30851
30852 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30853 cat >>confdefs.h <<\_ACEOF
30854#define wxSIZE_T_IS_ULONG 1
30855_ACEOF
30856
30857 fi
30858fi
30859
30860ac_ext=c
30861ac_cpp='$CPP $CPPFLAGS'
30862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30864ac_compiler_gnu=$ac_cv_c_compiler_gnu
30865
30866
30867
30868echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30869echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30870if test "${wx_cv_struct_pw_gecos+set}" = set; then
30871 echo $ECHO_N "(cached) $ECHO_C" >&6
30872else
30873
30874 cat >conftest.$ac_ext <<_ACEOF
30875/* confdefs.h. */
30876_ACEOF
30877cat confdefs.h >>conftest.$ac_ext
30878cat >>conftest.$ac_ext <<_ACEOF
30879/* end confdefs.h. */
30880#include <pwd.h>
30881int
30882main ()
30883{
30884
30885 char *p;
30886 struct passwd *pw;
30887 p = pw->pw_gecos;
30888
30889 ;
30890 return 0;
30891}
30892_ACEOF
30893rm -f conftest.$ac_objext
30894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30895 (eval $ac_compile) 2>conftest.er1
a848cd7e 30896 ac_status=$?
ac1cb8d3
VS
30897 grep -v '^ *+' conftest.er1 >conftest.err
30898 rm -f conftest.er1
30899 cat conftest.err >&5
a848cd7e
SC
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); } &&
6ebeb4c7 30902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30904 (eval $ac_try) 2>&5
30905 ac_status=$?
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); }; } &&
30908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30910 (eval $ac_try) 2>&5
30911 ac_status=$?
30912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913 (exit $ac_status); }; }; then
30914
30915 wx_cv_struct_pw_gecos=yes
30916
30917else
30918 echo "$as_me: failed program was:" >&5
30919sed 's/^/| /' conftest.$ac_ext >&5
30920
30921
30922 wx_cv_struct_pw_gecos=no
30923
30924
30925fi
ac1cb8d3 30926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30927
30928
30929fi
30930echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30931echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30932
30933if test "$wx_cv_struct_pw_gecos" = "yes"; then
30934 cat >>confdefs.h <<\_ACEOF
30935#define HAVE_PW_GECOS 1
30936_ACEOF
30937
30938fi
30939
30940
47a7e797 30941if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30942 cat >>confdefs.h <<\_ACEOF
30943#define wxUSE_WCHAR_T 1
30944_ACEOF
30945
30946
30947 WCSLEN_FOUND=0
30948 WCHAR_LINK=
30949
30950for ac_func in wcslen
30951do
30952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30953echo "$as_me:$LINENO: checking for $ac_func" >&5
30954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30955if eval "test \"\${$as_ac_var+set}\" = set"; then
30956 echo $ECHO_N "(cached) $ECHO_C" >&6
30957else
30958 cat >conftest.$ac_ext <<_ACEOF
30959/* confdefs.h. */
30960_ACEOF
30961cat confdefs.h >>conftest.$ac_ext
30962cat >>conftest.$ac_ext <<_ACEOF
30963/* end confdefs.h. */
ac1cb8d3
VS
30964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30966#define $ac_func innocuous_$ac_func
30967
a848cd7e
SC
30968/* System header to define __stub macros and hopefully few prototypes,
30969 which can conflict with char $ac_func (); below.
30970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30971 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30972
a848cd7e
SC
30973#ifdef __STDC__
30974# include <limits.h>
30975#else
30976# include <assert.h>
30977#endif
ac1cb8d3
VS
30978
30979#undef $ac_func
30980
a848cd7e
SC
30981/* Override any gcc2 internal prototype to avoid an error. */
30982#ifdef __cplusplus
30983extern "C"
30984{
30985#endif
30986/* We use char because int might match the return type of a gcc2
30987 builtin and then its argument prototype would still apply. */
30988char $ac_func ();
30989/* The GNU C library defines this for functions which it implements
30990 to always fail with ENOSYS. Some functions are actually named
30991 something starting with __ and the normal name is an alias. */
30992#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30993choke me
30994#else
30995char (*f) () = $ac_func;
30996#endif
30997#ifdef __cplusplus
30998}
30999#endif
31000
31001int
31002main ()
31003{
31004return f != $ac_func;
31005 ;
31006 return 0;
31007}
31008_ACEOF
31009rm -f conftest.$ac_objext conftest$ac_exeext
31010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31011 (eval $ac_link) 2>conftest.er1
a848cd7e 31012 ac_status=$?
ac1cb8d3
VS
31013 grep -v '^ *+' conftest.er1 >conftest.err
31014 rm -f conftest.er1
31015 cat conftest.err >&5
a848cd7e
SC
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); } &&
6ebeb4c7 31018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31020 (eval $ac_try) 2>&5
31021 ac_status=$?
31022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023 (exit $ac_status); }; } &&
31024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31026 (eval $ac_try) 2>&5
31027 ac_status=$?
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); }; }; then
31030 eval "$as_ac_var=yes"
31031else
31032 echo "$as_me: failed program was:" >&5
31033sed 's/^/| /' conftest.$ac_ext >&5
31034
31035eval "$as_ac_var=no"
31036fi
ac1cb8d3
VS
31037rm -f conftest.err conftest.$ac_objext \
31038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31039fi
31040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31042if test `eval echo '${'$as_ac_var'}'` = yes; then
31043 cat >>confdefs.h <<_ACEOF
31044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31045_ACEOF
31046 WCSLEN_FOUND=1
31047fi
31048done
31049
31050
31051 if test "$WCSLEN_FOUND" = 0; then
31052 if test "$TOOLKIT" = "MSW"; then
31053 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31054echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31055if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31056 echo $ECHO_N "(cached) $ECHO_C" >&6
31057else
31058 ac_check_lib_save_LIBS=$LIBS
31059LIBS="-lmsvcrt $LIBS"
31060cat >conftest.$ac_ext <<_ACEOF
31061/* confdefs.h. */
31062_ACEOF
31063cat confdefs.h >>conftest.$ac_ext
31064cat >>conftest.$ac_ext <<_ACEOF
31065/* end confdefs.h. */
31066
31067/* Override any gcc2 internal prototype to avoid an error. */
31068#ifdef __cplusplus
31069extern "C"
31070#endif
31071/* We use char because int might match the return type of a gcc2
31072 builtin and then its argument prototype would still apply. */
31073char wcslen ();
31074int
31075main ()
31076{
31077wcslen ();
31078 ;
31079 return 0;
31080}
31081_ACEOF
31082rm -f conftest.$ac_objext conftest$ac_exeext
31083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31084 (eval $ac_link) 2>conftest.er1
a848cd7e 31085 ac_status=$?
ac1cb8d3
VS
31086 grep -v '^ *+' conftest.er1 >conftest.err
31087 rm -f conftest.er1
31088 cat conftest.err >&5
a848cd7e
SC
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); } &&
6ebeb4c7 31091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31093 (eval $ac_try) 2>&5
31094 ac_status=$?
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); }; } &&
31097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31099 (eval $ac_try) 2>&5
31100 ac_status=$?
31101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102 (exit $ac_status); }; }; then
31103 ac_cv_lib_msvcrt_wcslen=yes
31104else
31105 echo "$as_me: failed program was:" >&5
31106sed 's/^/| /' conftest.$ac_ext >&5
31107
31108ac_cv_lib_msvcrt_wcslen=no
31109fi
ac1cb8d3
VS
31110rm -f conftest.err conftest.$ac_objext \
31111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31112LIBS=$ac_check_lib_save_LIBS
31113fi
31114echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31115echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31116if test $ac_cv_lib_msvcrt_wcslen = yes; then
31117 WCHAR_OK=1
31118fi
31119
31120 else
31121 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31122echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31123if test "${ac_cv_lib_w_wcslen+set}" = set; then
31124 echo $ECHO_N "(cached) $ECHO_C" >&6
31125else
31126 ac_check_lib_save_LIBS=$LIBS
31127LIBS="-lw $LIBS"
31128cat >conftest.$ac_ext <<_ACEOF
31129/* confdefs.h. */
31130_ACEOF
31131cat confdefs.h >>conftest.$ac_ext
31132cat >>conftest.$ac_ext <<_ACEOF
31133/* end confdefs.h. */
31134
31135/* Override any gcc2 internal prototype to avoid an error. */
31136#ifdef __cplusplus
31137extern "C"
31138#endif
31139/* We use char because int might match the return type of a gcc2
31140 builtin and then its argument prototype would still apply. */
31141char wcslen ();
31142int
31143main ()
31144{
31145wcslen ();
31146 ;
31147 return 0;
31148}
31149_ACEOF
31150rm -f conftest.$ac_objext conftest$ac_exeext
31151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31152 (eval $ac_link) 2>conftest.er1
a848cd7e 31153 ac_status=$?
ac1cb8d3
VS
31154 grep -v '^ *+' conftest.er1 >conftest.err
31155 rm -f conftest.er1
31156 cat conftest.err >&5
a848cd7e
SC
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); } &&
6ebeb4c7 31159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31161 (eval $ac_try) 2>&5
31162 ac_status=$?
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); }; } &&
31165 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31167 (eval $ac_try) 2>&5
31168 ac_status=$?
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; }; then
31171 ac_cv_lib_w_wcslen=yes
31172else
31173 echo "$as_me: failed program was:" >&5
31174sed 's/^/| /' conftest.$ac_ext >&5
31175
31176ac_cv_lib_w_wcslen=no
31177fi
ac1cb8d3
VS
31178rm -f conftest.err conftest.$ac_objext \
31179 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31180LIBS=$ac_check_lib_save_LIBS
31181fi
31182echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31183echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31184if test $ac_cv_lib_w_wcslen = yes; then
31185
31186 WCHAR_LINK=" -lw"
31187 WCSLEN_FOUND=1
31188
31189fi
31190
31191 fi
31192 fi
31193
31194 if test "$WCSLEN_FOUND" = 1; then
31195 cat >>confdefs.h <<\_ACEOF
31196#define HAVE_WCSLEN 1
31197_ACEOF
31198
31199 fi
31200
efdf6afe 31201 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
31202 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31203 fi
31204
efdf6afe
VZ
31205 echo "$as_me:$LINENO: checking for mbstate_t" >&5
31206echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
31207if test "${ac_cv_type_mbstate_t+set}" = set; then
31208 echo $ECHO_N "(cached) $ECHO_C" >&6
31209else
31210 cat >conftest.$ac_ext <<_ACEOF
31211/* confdefs.h. */
31212_ACEOF
31213cat confdefs.h >>conftest.$ac_ext
31214cat >>conftest.$ac_ext <<_ACEOF
31215/* end confdefs.h. */
31216#include <wchar.h>
31217
31218int
31219main ()
31220{
31221if ((mbstate_t *) 0)
31222 return 0;
31223if (sizeof (mbstate_t))
31224 return 0;
31225 ;
31226 return 0;
31227}
31228_ACEOF
31229rm -f conftest.$ac_objext
31230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31231 (eval $ac_compile) 2>conftest.er1
31232 ac_status=$?
31233 grep -v '^ *+' conftest.er1 >conftest.err
31234 rm -f conftest.er1
31235 cat conftest.err >&5
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); } &&
31238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31240 (eval $ac_try) 2>&5
31241 ac_status=$?
31242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); }; } &&
31244 { ac_try='test -s conftest.$ac_objext'
31245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31246 (eval $ac_try) 2>&5
31247 ac_status=$?
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; }; then
31250 ac_cv_type_mbstate_t=yes
31251else
31252 echo "$as_me: failed program was:" >&5
31253sed 's/^/| /' conftest.$ac_ext >&5
31254
31255ac_cv_type_mbstate_t=no
31256fi
31257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31258fi
31259echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31260echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
31261if test $ac_cv_type_mbstate_t = yes; then
31262
31263cat >>confdefs.h <<_ACEOF
31264#define HAVE_MBSTATE_T 1
31265_ACEOF
31266
a848cd7e
SC
31267
31268for ac_func in wcsrtombs
31269do
31270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31271echo "$as_me:$LINENO: checking for $ac_func" >&5
31272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31273if eval "test \"\${$as_ac_var+set}\" = set"; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31275else
31276 cat >conftest.$ac_ext <<_ACEOF
31277/* confdefs.h. */
31278_ACEOF
31279cat confdefs.h >>conftest.$ac_ext
31280cat >>conftest.$ac_ext <<_ACEOF
31281/* end confdefs.h. */
ac1cb8d3
VS
31282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31284#define $ac_func innocuous_$ac_func
31285
a848cd7e
SC
31286/* System header to define __stub macros and hopefully few prototypes,
31287 which can conflict with char $ac_func (); below.
31288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31289 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31290
a848cd7e
SC
31291#ifdef __STDC__
31292# include <limits.h>
31293#else
31294# include <assert.h>
31295#endif
ac1cb8d3
VS
31296
31297#undef $ac_func
31298
a848cd7e
SC
31299/* Override any gcc2 internal prototype to avoid an error. */
31300#ifdef __cplusplus
31301extern "C"
31302{
31303#endif
31304/* We use char because int might match the return type of a gcc2
31305 builtin and then its argument prototype would still apply. */
31306char $ac_func ();
31307/* The GNU C library defines this for functions which it implements
31308 to always fail with ENOSYS. Some functions are actually named
31309 something starting with __ and the normal name is an alias. */
31310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31311choke me
31312#else
31313char (*f) () = $ac_func;
31314#endif
31315#ifdef __cplusplus
31316}
31317#endif
31318
31319int
31320main ()
31321{
31322return f != $ac_func;
31323 ;
31324 return 0;
31325}
31326_ACEOF
31327rm -f conftest.$ac_objext conftest$ac_exeext
31328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31329 (eval $ac_link) 2>conftest.er1
a848cd7e 31330 ac_status=$?
ac1cb8d3
VS
31331 grep -v '^ *+' conftest.er1 >conftest.err
31332 rm -f conftest.er1
31333 cat conftest.err >&5
a848cd7e
SC
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); } &&
6ebeb4c7 31336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
31342 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31344 (eval $ac_try) 2>&5
31345 ac_status=$?
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; }; then
31348 eval "$as_ac_var=yes"
31349else
31350 echo "$as_me: failed program was:" >&5
31351sed 's/^/| /' conftest.$ac_ext >&5
31352
31353eval "$as_ac_var=no"
31354fi
ac1cb8d3
VS
31355rm -f conftest.err conftest.$ac_objext \
31356 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31357fi
31358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31359echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31360if test `eval echo '${'$as_ac_var'}'` = yes; then
31361 cat >>confdefs.h <<_ACEOF
31362#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31363_ACEOF
31364
31365fi
31366done
31367
efdf6afe
VZ
31368fi
31369
a848cd7e
SC
31370else
31371 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31372echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31373fi
31374
31375
31376
31377ac_ext=cc
31378ac_cpp='$CXXCPP $CPPFLAGS'
31379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31382
31383
31384
4a767dd5
VZ
31385
31386for ac_func in snprintf vsnprintf
a848cd7e
SC
31387do
31388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31389echo "$as_me:$LINENO: checking for $ac_func" >&5
31390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31391if eval "test \"\${$as_ac_var+set}\" = set"; then
31392 echo $ECHO_N "(cached) $ECHO_C" >&6
31393else
31394 cat >conftest.$ac_ext <<_ACEOF
31395/* confdefs.h. */
31396_ACEOF
31397cat confdefs.h >>conftest.$ac_ext
31398cat >>conftest.$ac_ext <<_ACEOF
31399/* end confdefs.h. */
ac1cb8d3
VS
31400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31402#define $ac_func innocuous_$ac_func
31403
a848cd7e
SC
31404/* System header to define __stub macros and hopefully few prototypes,
31405 which can conflict with char $ac_func (); below.
31406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31407 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31408
a848cd7e
SC
31409#ifdef __STDC__
31410# include <limits.h>
31411#else
31412# include <assert.h>
31413#endif
ac1cb8d3
VS
31414
31415#undef $ac_func
31416
a848cd7e
SC
31417/* Override any gcc2 internal prototype to avoid an error. */
31418#ifdef __cplusplus
31419extern "C"
31420{
31421#endif
31422/* We use char because int might match the return type of a gcc2
31423 builtin and then its argument prototype would still apply. */
31424char $ac_func ();
31425/* The GNU C library defines this for functions which it implements
31426 to always fail with ENOSYS. Some functions are actually named
31427 something starting with __ and the normal name is an alias. */
31428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31429choke me
31430#else
31431char (*f) () = $ac_func;
31432#endif
31433#ifdef __cplusplus
31434}
31435#endif
31436
31437int
31438main ()
31439{
31440return f != $ac_func;
31441 ;
31442 return 0;
31443}
31444_ACEOF
31445rm -f conftest.$ac_objext conftest$ac_exeext
31446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31447 (eval $ac_link) 2>conftest.er1
a848cd7e 31448 ac_status=$?
ac1cb8d3
VS
31449 grep -v '^ *+' conftest.er1 >conftest.err
31450 rm -f conftest.er1
31451 cat conftest.err >&5
a848cd7e
SC
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); } &&
6ebeb4c7 31454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31456 (eval $ac_try) 2>&5
31457 ac_status=$?
31458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31459 (exit $ac_status); }; } &&
31460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31462 (eval $ac_try) 2>&5
31463 ac_status=$?
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); }; }; then
31466 eval "$as_ac_var=yes"
31467else
31468 echo "$as_me: failed program was:" >&5
31469sed 's/^/| /' conftest.$ac_ext >&5
31470
31471eval "$as_ac_var=no"
31472fi
ac1cb8d3
VS
31473rm -f conftest.err conftest.$ac_objext \
31474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31475fi
31476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31478if test `eval echo '${'$as_ac_var'}'` = yes; then
31479 cat >>confdefs.h <<_ACEOF
31480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31481_ACEOF
31482
31483fi
31484done
31485
31486
31487if test "$ac_cv_func_vsnprintf" = "yes"; then
31488 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31489echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31490if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31492else
31493
efdf6afe 31494 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31495/* confdefs.h. */
31496_ACEOF
31497cat confdefs.h >>conftest.$ac_ext
31498cat >>conftest.$ac_ext <<_ACEOF
31499/* end confdefs.h. */
31500
31501 #include <stdio.h>
31502 #include <stdarg.h>
efdf6afe
VZ
31503 #ifdef __MSL__
31504 #if __MSL__ >= 0x6000
31505 namespace std {}
31506 using namespace std;
31507 #endif
31508 #endif
a848cd7e
SC
31509
31510int
31511main ()
31512{
31513
31514 char *buf;
31515 va_list ap;
efdf6afe
VZ
31516 const char *fmt = "%s";
31517 vsnprintf(buf, 10u, fmt, ap);
c122b164
DE
31518
31519 ;
31520 return 0;
31521}
31522_ACEOF
31523rm -f conftest.$ac_objext
31524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31525 (eval $ac_compile) 2>conftest.er1
31526 ac_status=$?
31527 grep -v '^ *+' conftest.er1 >conftest.err
31528 rm -f conftest.er1
31529 cat conftest.err >&5
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); } &&
6ebeb4c7 31532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31534 (eval $ac_try) 2>&5
31535 ac_status=$?
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); }; } &&
31538 { ac_try='test -s conftest.$ac_objext'
31539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31540 (eval $ac_try) 2>&5
31541 ac_status=$?
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; }; then
31544 wx_cv_func_vsnprintf_decl=yes
31545else
31546 echo "$as_me: failed program was:" >&5
31547sed 's/^/| /' conftest.$ac_ext >&5
31548
a848cd7e
SC
31549wx_cv_func_vsnprintf_decl=no
31550
31551fi
ac1cb8d3 31552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31553
31554
31555fi
31556echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31557echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31558
31559 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31560 cat >>confdefs.h <<\_ACEOF
31561#define HAVE_VSNPRINTF_DECL 1
31562_ACEOF
31563
31564 fi
31565fi
31566
4a767dd5
VZ
31567if test "$ac_cv_func_snprintf" = "yes"; then
31568 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
31569echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
31570if test "${wx_cv_func_snprintf_decl+set}" = set; then
31571 echo $ECHO_N "(cached) $ECHO_C" >&6
31572else
31573
31574 cat >conftest.$ac_ext <<_ACEOF
31575/* confdefs.h. */
31576_ACEOF
31577cat confdefs.h >>conftest.$ac_ext
31578cat >>conftest.$ac_ext <<_ACEOF
31579/* end confdefs.h. */
31580
31581 #include <stdio.h>
31582 #include <stdarg.h>
31583 #ifdef __MSL__
31584 #if __MSL__ >= 0x6000
31585 namespace std {}
31586 using namespace std;
31587 #endif
31588 #endif
31589
31590int
31591main ()
31592{
31593
31594 char *buf;
31595 const char *fmt = "%s";
31596 snprintf(buf, 10u, fmt, "wx");
31597
31598 ;
31599 return 0;
31600}
31601_ACEOF
31602rm -f conftest.$ac_objext
31603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31604 (eval $ac_compile) 2>conftest.er1
31605 ac_status=$?
31606 grep -v '^ *+' conftest.er1 >conftest.err
31607 rm -f conftest.er1
31608 cat conftest.err >&5
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); } &&
31611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31613 (eval $ac_try) 2>&5
31614 ac_status=$?
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; } &&
31617 { ac_try='test -s conftest.$ac_objext'
31618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31619 (eval $ac_try) 2>&5
31620 ac_status=$?
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); }; }; then
31623 wx_cv_func_snprintf_decl=yes
31624else
31625 echo "$as_me: failed program was:" >&5
31626sed 's/^/| /' conftest.$ac_ext >&5
31627
31628wx_cv_func_snprintf_decl=no
31629
31630fi
31631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31632
31633
31634fi
31635echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
31636echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
31637
31638 if test "$wx_cv_func_snprintf_decl" = "yes"; then
31639 cat >>confdefs.h <<\_ACEOF
31640#define HAVE_SNPRINTF_DECL 1
31641_ACEOF
31642
31643 fi
31644fi
31645
a848cd7e
SC
31646if test "$wxUSE_UNICODE" = yes; then
31647
31648
31649
fbe47c7b
VS
31650
31651
31652
31653for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31654do
31655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31656echo "$as_me:$LINENO: checking for $ac_func" >&5
31657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31658if eval "test \"\${$as_ac_var+set}\" = set"; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
31660else
31661 cat >conftest.$ac_ext <<_ACEOF
31662/* confdefs.h. */
31663_ACEOF
31664cat confdefs.h >>conftest.$ac_ext
31665cat >>conftest.$ac_ext <<_ACEOF
31666/* end confdefs.h. */
ac1cb8d3
VS
31667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31669#define $ac_func innocuous_$ac_func
31670
a848cd7e
SC
31671/* System header to define __stub macros and hopefully few prototypes,
31672 which can conflict with char $ac_func (); below.
31673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31675
a848cd7e
SC
31676#ifdef __STDC__
31677# include <limits.h>
31678#else
31679# include <assert.h>
31680#endif
ac1cb8d3
VS
31681
31682#undef $ac_func
31683
a848cd7e
SC
31684/* Override any gcc2 internal prototype to avoid an error. */
31685#ifdef __cplusplus
31686extern "C"
31687{
31688#endif
31689/* We use char because int might match the return type of a gcc2
31690 builtin and then its argument prototype would still apply. */
31691char $ac_func ();
31692/* The GNU C library defines this for functions which it implements
31693 to always fail with ENOSYS. Some functions are actually named
31694 something starting with __ and the normal name is an alias. */
31695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31696choke me
31697#else
31698char (*f) () = $ac_func;
31699#endif
31700#ifdef __cplusplus
31701}
31702#endif
31703
31704int
31705main ()
31706{
31707return f != $ac_func;
31708 ;
31709 return 0;
31710}
31711_ACEOF
31712rm -f conftest.$ac_objext conftest$ac_exeext
31713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31714 (eval $ac_link) 2>conftest.er1
a848cd7e 31715 ac_status=$?
ac1cb8d3
VS
31716 grep -v '^ *+' conftest.er1 >conftest.err
31717 rm -f conftest.er1
31718 cat conftest.err >&5
a848cd7e
SC
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); } &&
6ebeb4c7 31721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723 (eval $ac_try) 2>&5
31724 ac_status=$?
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); }; } &&
31727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729 (eval $ac_try) 2>&5
31730 ac_status=$?
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); }; }; then
31733 eval "$as_ac_var=yes"
31734else
31735 echo "$as_me: failed program was:" >&5
31736sed 's/^/| /' conftest.$ac_ext >&5
31737
31738eval "$as_ac_var=no"
31739fi
ac1cb8d3
VS
31740rm -f conftest.err conftest.$ac_objext \
31741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31742fi
31743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31744echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31745if test `eval echo '${'$as_ac_var'}'` = yes; then
31746 cat >>confdefs.h <<_ACEOF
31747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31748_ACEOF
31749
31750fi
31751done
31752
31753
31754 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31755echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31756 cat >conftest.$ac_ext <<_ACEOF
31757/* confdefs.h. */
31758_ACEOF
31759cat confdefs.h >>conftest.$ac_ext
31760cat >>conftest.$ac_ext <<_ACEOF
31761/* end confdefs.h. */
31762#include <wchar.h>
31763int
31764main ()
31765{
31766&_vsnwprintf;
31767 ;
31768 return 0;
31769}
31770_ACEOF
31771rm -f conftest.$ac_objext
31772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31773 (eval $ac_compile) 2>conftest.er1
a848cd7e 31774 ac_status=$?
ac1cb8d3
VS
31775 grep -v '^ *+' conftest.er1 >conftest.err
31776 rm -f conftest.er1
31777 cat conftest.err >&5
a848cd7e
SC
31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779 (exit $ac_status); } &&
6ebeb4c7 31780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31782 (eval $ac_try) 2>&5
31783 ac_status=$?
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); }; } &&
31786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31788 (eval $ac_try) 2>&5
31789 ac_status=$?
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); }; }; then
31792 echo "$as_me:$LINENO: result: yes" >&5
31793echo "${ECHO_T}yes" >&6
31794 cat >>confdefs.h <<\_ACEOF
31795#define HAVE__VSNWPRINTF 1
31796_ACEOF
31797
31798else
31799 echo "$as_me: failed program was:" >&5
31800sed 's/^/| /' conftest.$ac_ext >&5
31801
31802echo "$as_me:$LINENO: result: no" >&5
31803echo "${ECHO_T}no" >&6
31804fi
ac1cb8d3 31805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31806fi
31807
31808ac_ext=c
31809ac_cpp='$CPP $CPPFLAGS'
31810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31812ac_compiler_gnu=$ac_cv_c_compiler_gnu
31813
31814
6ebeb4c7
VZ
31815if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
31816
31817for ac_func in fnmatch
31818do
31819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31820echo "$as_me:$LINENO: checking for $ac_func" >&5
31821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31822if eval "test \"\${$as_ac_var+set}\" = set"; then
31823 echo $ECHO_N "(cached) $ECHO_C" >&6
31824else
31825 cat >conftest.$ac_ext <<_ACEOF
31826/* confdefs.h. */
31827_ACEOF
31828cat confdefs.h >>conftest.$ac_ext
31829cat >>conftest.$ac_ext <<_ACEOF
31830/* end confdefs.h. */
31831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31833#define $ac_func innocuous_$ac_func
31834
31835/* System header to define __stub macros and hopefully few prototypes,
31836 which can conflict with char $ac_func (); below.
31837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31838 <limits.h> exists even on freestanding compilers. */
31839
31840#ifdef __STDC__
31841# include <limits.h>
31842#else
31843# include <assert.h>
31844#endif
31845
31846#undef $ac_func
31847
31848/* Override any gcc2 internal prototype to avoid an error. */
31849#ifdef __cplusplus
31850extern "C"
31851{
31852#endif
31853/* We use char because int might match the return type of a gcc2
31854 builtin and then its argument prototype would still apply. */
31855char $ac_func ();
31856/* The GNU C library defines this for functions which it implements
31857 to always fail with ENOSYS. Some functions are actually named
31858 something starting with __ and the normal name is an alias. */
31859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31860choke me
31861#else
31862char (*f) () = $ac_func;
31863#endif
31864#ifdef __cplusplus
31865}
31866#endif
31867
31868int
31869main ()
31870{
31871return f != $ac_func;
31872 ;
31873 return 0;
31874}
31875_ACEOF
31876rm -f conftest.$ac_objext conftest$ac_exeext
31877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31878 (eval $ac_link) 2>conftest.er1
31879 ac_status=$?
31880 grep -v '^ *+' conftest.er1 >conftest.err
31881 rm -f conftest.er1
31882 cat conftest.err >&5
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); } &&
31885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31887 (eval $ac_try) 2>&5
31888 ac_status=$?
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); }; } &&
31891 { ac_try='test -s conftest$ac_exeext'
31892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31893 (eval $ac_try) 2>&5
31894 ac_status=$?
31895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896 (exit $ac_status); }; }; then
31897 eval "$as_ac_var=yes"
31898else
31899 echo "$as_me: failed program was:" >&5
31900sed 's/^/| /' conftest.$ac_ext >&5
31901
31902eval "$as_ac_var=no"
31903fi
31904rm -f conftest.err conftest.$ac_objext \
31905 conftest$ac_exeext conftest.$ac_ext
31906fi
31907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31909if test `eval echo '${'$as_ac_var'}'` = yes; then
31910 cat >>confdefs.h <<_ACEOF
31911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31912_ACEOF
31913
31914fi
31915done
31916
31917fi
31918
31919if test "$wxUSE_FILE" = "yes"; then
31920
31921for ac_func in fsync
31922do
31923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31924echo "$as_me:$LINENO: checking for $ac_func" >&5
31925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31926if eval "test \"\${$as_ac_var+set}\" = set"; then
31927 echo $ECHO_N "(cached) $ECHO_C" >&6
31928else
31929 cat >conftest.$ac_ext <<_ACEOF
31930/* confdefs.h. */
31931_ACEOF
31932cat confdefs.h >>conftest.$ac_ext
31933cat >>conftest.$ac_ext <<_ACEOF
31934/* end confdefs.h. */
31935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31937#define $ac_func innocuous_$ac_func
31938
31939/* System header to define __stub macros and hopefully few prototypes,
31940 which can conflict with char $ac_func (); below.
31941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31942 <limits.h> exists even on freestanding compilers. */
31943
31944#ifdef __STDC__
31945# include <limits.h>
31946#else
31947# include <assert.h>
31948#endif
31949
31950#undef $ac_func
31951
31952/* Override any gcc2 internal prototype to avoid an error. */
31953#ifdef __cplusplus
31954extern "C"
31955{
31956#endif
31957/* We use char because int might match the return type of a gcc2
31958 builtin and then its argument prototype would still apply. */
31959char $ac_func ();
31960/* The GNU C library defines this for functions which it implements
31961 to always fail with ENOSYS. Some functions are actually named
31962 something starting with __ and the normal name is an alias. */
31963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31964choke me
31965#else
31966char (*f) () = $ac_func;
31967#endif
31968#ifdef __cplusplus
31969}
31970#endif
31971
31972int
31973main ()
31974{
31975return f != $ac_func;
31976 ;
31977 return 0;
31978}
31979_ACEOF
31980rm -f conftest.$ac_objext conftest$ac_exeext
31981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31982 (eval $ac_link) 2>conftest.er1
31983 ac_status=$?
31984 grep -v '^ *+' conftest.er1 >conftest.err
31985 rm -f conftest.er1
31986 cat conftest.err >&5
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); } &&
31989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31991 (eval $ac_try) 2>&5
31992 ac_status=$?
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); }; } &&
31995 { ac_try='test -s conftest$ac_exeext'
31996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997 (eval $ac_try) 2>&5
31998 ac_status=$?
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); }; }; then
32001 eval "$as_ac_var=yes"
32002else
32003 echo "$as_me: failed program was:" >&5
32004sed 's/^/| /' conftest.$ac_ext >&5
32005
32006eval "$as_ac_var=no"
32007fi
32008rm -f conftest.err conftest.$ac_objext \
32009 conftest$ac_exeext conftest.$ac_ext
32010fi
32011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32012echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32013if test `eval echo '${'$as_ac_var'}'` = yes; then
32014 cat >>confdefs.h <<_ACEOF
32015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32016_ACEOF
32017
32018fi
32019done
32020
32021fi
a848cd7e
SC
32022
32023
32024if test "$TOOLKIT" != "MSW"; then
32025
32026
32027
32028
32029ac_ext=cc
32030ac_cpp='$CXXCPP $CPPFLAGS'
32031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32034
32035
32036
32037
32038# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
32039if test "${with_libiconv_prefix+set}" = set; then
32040 withval="$with_libiconv_prefix"
32041
32042 for dir in `echo "$withval" | tr : ' '`; do
32043 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
32044 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
32045 done
32046
32047fi;
32048
32049 echo "$as_me:$LINENO: checking for iconv" >&5
32050echo $ECHO_N "checking for iconv... $ECHO_C" >&6
32051if test "${am_cv_func_iconv+set}" = set; then
32052 echo $ECHO_N "(cached) $ECHO_C" >&6
32053else
32054
32055 am_cv_func_iconv="no, consider installing GNU libiconv"
32056 am_cv_lib_iconv=no
32057 cat >conftest.$ac_ext <<_ACEOF
32058/* confdefs.h. */
32059_ACEOF
32060cat confdefs.h >>conftest.$ac_ext
32061cat >>conftest.$ac_ext <<_ACEOF
32062/* end confdefs.h. */
32063#include <stdlib.h>
32064#include <iconv.h>
32065int
32066main ()
32067{
32068iconv_t cd = iconv_open("","");
32069 iconv(cd,NULL,NULL,NULL,NULL);
32070 iconv_close(cd);
32071 ;
32072 return 0;
32073}
32074_ACEOF
32075rm -f conftest.$ac_objext conftest$ac_exeext
32076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32077 (eval $ac_link) 2>conftest.er1
a848cd7e 32078 ac_status=$?
ac1cb8d3
VS
32079 grep -v '^ *+' conftest.er1 >conftest.err
32080 rm -f conftest.er1
32081 cat conftest.err >&5
a848cd7e
SC
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); } &&
6ebeb4c7 32084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32086 (eval $ac_try) 2>&5
32087 ac_status=$?
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); }; } &&
32090 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32092 (eval $ac_try) 2>&5
32093 ac_status=$?
32094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095 (exit $ac_status); }; }; then
32096 am_cv_func_iconv=yes
32097else
32098 echo "$as_me: failed program was:" >&5
32099sed 's/^/| /' conftest.$ac_ext >&5
32100
32101fi
ac1cb8d3
VS
32102rm -f conftest.err conftest.$ac_objext \
32103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32104 if test "$am_cv_func_iconv" != yes; then
32105 am_save_LIBS="$LIBS"
32106 LIBS="$LIBS -liconv"
32107 cat >conftest.$ac_ext <<_ACEOF
32108/* confdefs.h. */
32109_ACEOF
32110cat confdefs.h >>conftest.$ac_ext
32111cat >>conftest.$ac_ext <<_ACEOF
32112/* end confdefs.h. */
32113#include <stdlib.h>
32114#include <iconv.h>
32115int
32116main ()
32117{
32118iconv_t cd = iconv_open("","");
32119 iconv(cd,NULL,NULL,NULL,NULL);
32120 iconv_close(cd);
32121 ;
32122 return 0;
32123}
32124_ACEOF
32125rm -f conftest.$ac_objext conftest$ac_exeext
32126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32127 (eval $ac_link) 2>conftest.er1
a848cd7e 32128 ac_status=$?
ac1cb8d3
VS
32129 grep -v '^ *+' conftest.er1 >conftest.err
32130 rm -f conftest.er1
32131 cat conftest.err >&5
a848cd7e
SC
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); } &&
6ebeb4c7 32134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32136 (eval $ac_try) 2>&5
32137 ac_status=$?
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; } &&
32140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32142 (eval $ac_try) 2>&5
32143 ac_status=$?
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); }; }; then
32146 am_cv_lib_iconv=yes
32147 am_cv_func_iconv=yes
32148else
32149 echo "$as_me: failed program was:" >&5
32150sed 's/^/| /' conftest.$ac_ext >&5
32151
32152fi
ac1cb8d3
VS
32153rm -f conftest.err conftest.$ac_objext \
32154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32155 LIBS="$am_save_LIBS"
32156 fi
32157
32158fi
32159echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32160echo "${ECHO_T}$am_cv_func_iconv" >&6
32161 if test "$am_cv_func_iconv" = yes; then
32162
32163cat >>confdefs.h <<\_ACEOF
32164#define HAVE_ICONV 1
32165_ACEOF
32166
32167 echo "$as_me:$LINENO: checking if iconv needs const" >&5
32168echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
32169if test "${wx_cv_func_iconv_const+set}" = set; then
32170 echo $ECHO_N "(cached) $ECHO_C" >&6
32171else
32172 cat >conftest.$ac_ext <<_ACEOF
32173/* confdefs.h. */
32174_ACEOF
32175cat confdefs.h >>conftest.$ac_ext
32176cat >>conftest.$ac_ext <<_ACEOF
32177/* end confdefs.h. */
32178
32179#include <stdlib.h>
32180#include <iconv.h>
32181extern
32182#ifdef __cplusplus
32183"C"
32184#endif
32185#if defined(__STDC__) || defined(__cplusplus)
32186size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32187#else
32188size_t iconv();
32189#endif
32190
32191int
32192main ()
32193{
32194
32195 ;
32196 return 0;
32197}
32198_ACEOF
32199rm -f conftest.$ac_objext
32200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32201 (eval $ac_compile) 2>conftest.er1
a848cd7e 32202 ac_status=$?
ac1cb8d3
VS
32203 grep -v '^ *+' conftest.er1 >conftest.err
32204 rm -f conftest.er1
32205 cat conftest.err >&5
a848cd7e
SC
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); } &&
6ebeb4c7 32208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210 (eval $ac_try) 2>&5
32211 ac_status=$?
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); }; } &&
32214 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32216 (eval $ac_try) 2>&5
32217 ac_status=$?
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); }; }; then
32220 wx_cv_func_iconv_const="no"
32221else
32222 echo "$as_me: failed program was:" >&5
32223sed 's/^/| /' conftest.$ac_ext >&5
32224
32225wx_cv_func_iconv_const="yes"
32226
32227fi
ac1cb8d3 32228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32229
32230fi
32231echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
32232echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
32233
32234 iconv_const=
32235 if test "x$wx_cv_func_iconv_const" = "xyes"; then
32236 iconv_const="const"
32237 fi
32238
32239
32240cat >>confdefs.h <<_ACEOF
32241#define ICONV_CONST $iconv_const
32242_ACEOF
32243
32244 fi
32245 LIBICONV=
32246 if test "$am_cv_lib_iconv" = yes; then
32247 LIBICONV="-liconv"
32248 fi
32249
32250
32251LIBS="$LIBICONV $LIBS"
32252ac_ext=c
32253ac_cpp='$CPP $CPPFLAGS'
32254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32256ac_compiler_gnu=$ac_cv_c_compiler_gnu
32257
32258
32259if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32260
32261for ac_func in sigaction
32262do
32263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32264echo "$as_me:$LINENO: checking for $ac_func" >&5
32265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32266if eval "test \"\${$as_ac_var+set}\" = set"; then
32267 echo $ECHO_N "(cached) $ECHO_C" >&6
32268else
32269 cat >conftest.$ac_ext <<_ACEOF
32270/* confdefs.h. */
32271_ACEOF
32272cat confdefs.h >>conftest.$ac_ext
32273cat >>conftest.$ac_ext <<_ACEOF
32274/* end confdefs.h. */
ac1cb8d3
VS
32275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32277#define $ac_func innocuous_$ac_func
32278
a848cd7e
SC
32279/* System header to define __stub macros and hopefully few prototypes,
32280 which can conflict with char $ac_func (); below.
32281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32282 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32283
a848cd7e
SC
32284#ifdef __STDC__
32285# include <limits.h>
32286#else
32287# include <assert.h>
32288#endif
ac1cb8d3
VS
32289
32290#undef $ac_func
32291
a848cd7e
SC
32292/* Override any gcc2 internal prototype to avoid an error. */
32293#ifdef __cplusplus
32294extern "C"
32295{
32296#endif
32297/* We use char because int might match the return type of a gcc2
32298 builtin and then its argument prototype would still apply. */
32299char $ac_func ();
32300/* The GNU C library defines this for functions which it implements
32301 to always fail with ENOSYS. Some functions are actually named
32302 something starting with __ and the normal name is an alias. */
32303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32304choke me
32305#else
32306char (*f) () = $ac_func;
32307#endif
32308#ifdef __cplusplus
32309}
32310#endif
32311
32312int
32313main ()
32314{
32315return f != $ac_func;
32316 ;
32317 return 0;
32318}
32319_ACEOF
32320rm -f conftest.$ac_objext conftest$ac_exeext
32321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32322 (eval $ac_link) 2>conftest.er1
a848cd7e 32323 ac_status=$?
ac1cb8d3
VS
32324 grep -v '^ *+' conftest.er1 >conftest.err
32325 rm -f conftest.er1
32326 cat conftest.err >&5
a848cd7e
SC
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); } &&
6ebeb4c7 32329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32331 (eval $ac_try) 2>&5
32332 ac_status=$?
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; } &&
32335 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32337 (eval $ac_try) 2>&5
32338 ac_status=$?
32339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340 (exit $ac_status); }; }; then
32341 eval "$as_ac_var=yes"
32342else
32343 echo "$as_me: failed program was:" >&5
32344sed 's/^/| /' conftest.$ac_ext >&5
32345
32346eval "$as_ac_var=no"
32347fi
ac1cb8d3
VS
32348rm -f conftest.err conftest.$ac_objext \
32349 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32350fi
32351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32352echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32353if test `eval echo '${'$as_ac_var'}'` = yes; then
32354 cat >>confdefs.h <<_ACEOF
32355#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32356_ACEOF
32357
32358fi
32359done
32360
32361
32362 if test "$ac_cv_func_sigaction" = "no"; then
32363 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32364echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32365 wxUSE_ON_FATAL_EXCEPTION=no
32366 fi
32367
32368 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32369
32370
32371 ac_ext=cc
32372ac_cpp='$CXXCPP $CPPFLAGS'
32373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32376
32377
32378 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32379echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32380if test "${wx_cv_type_sa_handler+set}" = set; then
32381 echo $ECHO_N "(cached) $ECHO_C" >&6
32382else
32383
32384 cat >conftest.$ac_ext <<_ACEOF
32385/* confdefs.h. */
32386_ACEOF
32387cat confdefs.h >>conftest.$ac_ext
32388cat >>conftest.$ac_ext <<_ACEOF
32389/* end confdefs.h. */
32390#include <signal.h>
32391int
32392main ()
32393{
32394
32395 extern void testSigHandler(int);
32396
32397 struct sigaction sa;
32398 sa.sa_handler = testSigHandler;
32399
32400 ;
32401 return 0;
32402}
32403_ACEOF
32404rm -f conftest.$ac_objext
32405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32406 (eval $ac_compile) 2>conftest.er1
a848cd7e 32407 ac_status=$?
ac1cb8d3
VS
32408 grep -v '^ *+' conftest.er1 >conftest.err
32409 rm -f conftest.er1
32410 cat conftest.err >&5
a848cd7e
SC
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); } &&
6ebeb4c7 32413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32415 (eval $ac_try) 2>&5
32416 ac_status=$?
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; } &&
32419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32421 (eval $ac_try) 2>&5
32422 ac_status=$?
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); }; }; then
32425
32426 wx_cv_type_sa_handler=int
32427
32428else
32429 echo "$as_me: failed program was:" >&5
32430sed 's/^/| /' conftest.$ac_ext >&5
32431
32432
32433 wx_cv_type_sa_handler=void
32434
32435fi
ac1cb8d3 32436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32437
32438fi
32439echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32440echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32441
32442 ac_ext=c
32443ac_cpp='$CPP $CPPFLAGS'
32444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32446ac_compiler_gnu=$ac_cv_c_compiler_gnu
32447
32448
32449 cat >>confdefs.h <<_ACEOF
32450#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32451_ACEOF
32452
32453 fi
32454fi
32455
eaff0f0d
VZ
32456if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32457
32458
32459 ac_ext=cc
32460ac_cpp='$CXXCPP $CPPFLAGS'
32461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32464
32465
32466 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32467echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32468if test "${wx_cv_func_backtrace+set}" = set; then
32469 echo $ECHO_N "(cached) $ECHO_C" >&6
32470else
32471
32472 cat >conftest.$ac_ext <<_ACEOF
32473/* confdefs.h. */
32474_ACEOF
32475cat confdefs.h >>conftest.$ac_ext
32476cat >>conftest.$ac_ext <<_ACEOF
32477/* end confdefs.h. */
32478#include <execinfo.h>
32479int
32480main ()
32481{
32482
32483 void *trace[1];
32484 char **messages;
32485
32486 backtrace(trace, 1);
32487 messages = backtrace_symbols(trace, 1);
32488
32489 ;
32490 return 0;
32491}
32492_ACEOF
32493rm -f conftest.$ac_objext
32494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32495 (eval $ac_compile) 2>conftest.er1
32496 ac_status=$?
32497 grep -v '^ *+' conftest.er1 >conftest.err
32498 rm -f conftest.er1
32499 cat conftest.err >&5
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); } &&
6ebeb4c7 32502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32504 (eval $ac_try) 2>&5
32505 ac_status=$?
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); }; } &&
32508 { ac_try='test -s conftest.$ac_objext'
32509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32510 (eval $ac_try) 2>&5
32511 ac_status=$?
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); }; }; then
32514 wx_cv_func_backtrace=yes
32515else
32516 echo "$as_me: failed program was:" >&5
32517sed 's/^/| /' conftest.$ac_ext >&5
32518
32519wx_cv_func_backtrace=no
32520
32521fi
32522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32523
32524
32525fi
32526echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32527echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32528
32529
32530 if test "$wx_cv_func_backtrace" = "no"; then
32531 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32532echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32533 wxUSE_STACKWALKER=no
32534 else
32535 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32536echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32537if test "${wx_cv_func_cxa_demangle+set}" = set; then
32538 echo $ECHO_N "(cached) $ECHO_C" >&6
32539else
32540
32541 cat >conftest.$ac_ext <<_ACEOF
32542/* confdefs.h. */
32543_ACEOF
32544cat confdefs.h >>conftest.$ac_ext
32545cat >>conftest.$ac_ext <<_ACEOF
32546/* end confdefs.h. */
32547#include <cxxabi.h>
32548int
32549main ()
32550{
32551
32552 int rc;
32553 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32554
32555 ;
32556 return 0;
32557}
32558_ACEOF
dfe0c803
JS
32559rm -f conftest.$ac_objext conftest$ac_exeext
32560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32561 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32562 ac_status=$?
32563 grep -v '^ *+' conftest.er1 >conftest.err
32564 rm -f conftest.er1
32565 cat conftest.err >&5
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); } &&
6ebeb4c7 32568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32570 (eval $ac_try) 2>&5
32571 ac_status=$?
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); }; } &&
dfe0c803 32574 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32576 (eval $ac_try) 2>&5
32577 ac_status=$?
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; }; then
32580 wx_cv_func_cxa_demangle=yes
32581else
32582 echo "$as_me: failed program was:" >&5
32583sed 's/^/| /' conftest.$ac_ext >&5
32584
32585wx_cv_func_cxa_demangle=no
32586
32587fi
dfe0c803
JS
32588rm -f conftest.err conftest.$ac_objext \
32589 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32590
32591
32592fi
32593echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32594echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32595
32596 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32597 cat >>confdefs.h <<\_ACEOF
32598#define HAVE_CXA_DEMANGLE 1
32599_ACEOF
32600
32601 fi
32602 fi
32603
32604 ac_ext=c
32605ac_cpp='$CPP $CPPFLAGS'
32606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32608ac_compiler_gnu=$ac_cv_c_compiler_gnu
32609
32610fi
32611
898beab1
DE
32612if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32613 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32614echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32615 wxUSE_STACKWALKER=no
32616fi
32617
32618
a848cd7e
SC
32619
32620
32621for ac_func in mkstemp mktemp
32622do
32623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32624echo "$as_me:$LINENO: checking for $ac_func" >&5
32625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32626if eval "test \"\${$as_ac_var+set}\" = set"; then
32627 echo $ECHO_N "(cached) $ECHO_C" >&6
32628else
32629 cat >conftest.$ac_ext <<_ACEOF
32630/* confdefs.h. */
32631_ACEOF
32632cat confdefs.h >>conftest.$ac_ext
32633cat >>conftest.$ac_ext <<_ACEOF
32634/* end confdefs.h. */
ac1cb8d3
VS
32635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32637#define $ac_func innocuous_$ac_func
32638
a848cd7e
SC
32639/* System header to define __stub macros and hopefully few prototypes,
32640 which can conflict with char $ac_func (); below.
32641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32642 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32643
a848cd7e
SC
32644#ifdef __STDC__
32645# include <limits.h>
32646#else
32647# include <assert.h>
32648#endif
ac1cb8d3
VS
32649
32650#undef $ac_func
32651
a848cd7e
SC
32652/* Override any gcc2 internal prototype to avoid an error. */
32653#ifdef __cplusplus
32654extern "C"
32655{
32656#endif
32657/* We use char because int might match the return type of a gcc2
32658 builtin and then its argument prototype would still apply. */
32659char $ac_func ();
32660/* The GNU C library defines this for functions which it implements
32661 to always fail with ENOSYS. Some functions are actually named
32662 something starting with __ and the normal name is an alias. */
32663#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32664choke me
32665#else
32666char (*f) () = $ac_func;
32667#endif
32668#ifdef __cplusplus
32669}
32670#endif
32671
32672int
32673main ()
32674{
32675return f != $ac_func;
32676 ;
32677 return 0;
32678}
32679_ACEOF
32680rm -f conftest.$ac_objext conftest$ac_exeext
32681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32682 (eval $ac_link) 2>conftest.er1
a848cd7e 32683 ac_status=$?
ac1cb8d3
VS
32684 grep -v '^ *+' conftest.er1 >conftest.err
32685 rm -f conftest.er1
32686 cat conftest.err >&5
a848cd7e
SC
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); } &&
6ebeb4c7 32689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32691 (eval $ac_try) 2>&5
32692 ac_status=$?
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); }; } &&
32695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32697 (eval $ac_try) 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; }; then
32701 eval "$as_ac_var=yes"
32702else
32703 echo "$as_me: failed program was:" >&5
32704sed 's/^/| /' conftest.$ac_ext >&5
32705
32706eval "$as_ac_var=no"
32707fi
ac1cb8d3
VS
32708rm -f conftest.err conftest.$ac_objext \
32709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32710fi
32711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32712echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32713if test `eval echo '${'$as_ac_var'}'` = yes; then
32714 cat >>confdefs.h <<_ACEOF
32715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32716_ACEOF
32717 break
32718fi
32719done
32720
32721
32722echo "$as_me:$LINENO: checking for statfs" >&5
32723echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32724if test "${wx_cv_func_statfs+set}" = set; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32726else
32727 cat >conftest.$ac_ext <<_ACEOF
32728/* confdefs.h. */
32729_ACEOF
32730cat confdefs.h >>conftest.$ac_ext
32731cat >>conftest.$ac_ext <<_ACEOF
32732/* end confdefs.h. */
32733
32734 #if defined(__BSD__)
32735 #include <sys/param.h>
32736 #include <sys/mount.h>
32737 #else
32738 #include <sys/vfs.h>
32739 #endif
32740
32741int
32742main ()
32743{
32744
32745 long l;
32746 struct statfs fs;
32747 statfs("/", &fs);
32748 l = fs.f_bsize;
32749 l += fs.f_blocks;
32750 l += fs.f_bavail;
32751
32752 ;
32753 return 0;
32754}
32755_ACEOF
32756rm -f conftest.$ac_objext
32757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32758 (eval $ac_compile) 2>conftest.er1
a848cd7e 32759 ac_status=$?
ac1cb8d3
VS
32760 grep -v '^ *+' conftest.er1 >conftest.err
32761 rm -f conftest.er1
32762 cat conftest.err >&5
a848cd7e
SC
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); } &&
6ebeb4c7 32765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32767 (eval $ac_try) 2>&5
32768 ac_status=$?
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); }; } &&
32771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32773 (eval $ac_try) 2>&5
32774 ac_status=$?
32775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776 (exit $ac_status); }; }; then
32777
32778 wx_cv_func_statfs=yes
32779
32780else
32781 echo "$as_me: failed program was:" >&5
32782sed 's/^/| /' conftest.$ac_ext >&5
32783
32784
32785 wx_cv_func_statfs=no
32786
32787
32788fi
ac1cb8d3 32789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32790
32791fi
32792echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32793echo "${ECHO_T}$wx_cv_func_statfs" >&6
32794
32795if test "$wx_cv_func_statfs" = "yes"; then
32796 wx_cv_type_statvfs_t="struct statfs"
32797 cat >>confdefs.h <<\_ACEOF
32798#define HAVE_STATFS 1
32799_ACEOF
32800
32801else
32802 echo "$as_me:$LINENO: checking for statvfs" >&5
32803echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32804if test "${wx_cv_func_statvfs+set}" = set; then
32805 echo $ECHO_N "(cached) $ECHO_C" >&6
32806else
32807 cat >conftest.$ac_ext <<_ACEOF
32808/* confdefs.h. */
32809_ACEOF
32810cat confdefs.h >>conftest.$ac_ext
32811cat >>conftest.$ac_ext <<_ACEOF
32812/* end confdefs.h. */
32813
32814 #include <stddef.h>
32815 #include <sys/statvfs.h>
32816
32817int
32818main ()
32819{
32820
32821 statvfs("/", NULL);
32822
32823 ;
32824 return 0;
32825}
32826_ACEOF
32827rm -f conftest.$ac_objext
32828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32829 (eval $ac_compile) 2>conftest.er1
a848cd7e 32830 ac_status=$?
ac1cb8d3
VS
32831 grep -v '^ *+' conftest.er1 >conftest.err
32832 rm -f conftest.er1
32833 cat conftest.err >&5
a848cd7e
SC
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); } &&
6ebeb4c7 32836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838 (eval $ac_try) 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; } &&
32842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844 (eval $ac_try) 2>&5
32845 ac_status=$?
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); }; }; then
32848 wx_cv_func_statvfs=yes
32849else
32850 echo "$as_me: failed program was:" >&5
32851sed 's/^/| /' conftest.$ac_ext >&5
32852
32853wx_cv_func_statvfs=no
32854
32855fi
ac1cb8d3 32856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32857
32858fi
32859echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32860echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32861
32862 if test "$wx_cv_func_statvfs" = "yes"; then
32863
32864
32865 ac_ext=cc
32866ac_cpp='$CXXCPP $CPPFLAGS'
32867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32870
32871
32872 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32873echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32874if test "${wx_cv_type_statvfs_t+set}" = set; then
32875 echo $ECHO_N "(cached) $ECHO_C" >&6
32876else
32877 cat >conftest.$ac_ext <<_ACEOF
32878/* confdefs.h. */
32879_ACEOF
32880cat confdefs.h >>conftest.$ac_ext
32881cat >>conftest.$ac_ext <<_ACEOF
32882/* end confdefs.h. */
32883
32884 #include <sys/statvfs.h>
32885
32886int
32887main ()
32888{
32889
32890 long l;
32891 statvfs_t fs;
32892 statvfs("/", &fs);
32893 l = fs.f_bsize;
32894 l += fs.f_blocks;
32895 l += fs.f_bavail;
32896
32897 ;
32898 return 0;
32899}
32900_ACEOF
32901rm -f conftest.$ac_objext
32902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32903 (eval $ac_compile) 2>conftest.er1
a848cd7e 32904 ac_status=$?
ac1cb8d3
VS
32905 grep -v '^ *+' conftest.er1 >conftest.err
32906 rm -f conftest.er1
32907 cat conftest.err >&5
a848cd7e
SC
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); } &&
6ebeb4c7 32910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912 (eval $ac_try) 2>&5
32913 ac_status=$?
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); }; } &&
32916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32918 (eval $ac_try) 2>&5
32919 ac_status=$?
32920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); }; }; then
32922 wx_cv_type_statvfs_t=statvfs_t
32923else
32924 echo "$as_me: failed program was:" >&5
32925sed 's/^/| /' conftest.$ac_ext >&5
32926
32927
32928 cat >conftest.$ac_ext <<_ACEOF
32929/* confdefs.h. */
32930_ACEOF
32931cat confdefs.h >>conftest.$ac_ext
32932cat >>conftest.$ac_ext <<_ACEOF
32933/* end confdefs.h. */
32934
32935 #include <sys/statvfs.h>
32936
32937int
32938main ()
32939{
32940
32941 long l;
32942 struct statvfs fs;
32943 statvfs("/", &fs);
32944 l = fs.f_bsize;
32945 l += fs.f_blocks;
32946 l += fs.f_bavail;
32947
32948 ;
32949 return 0;
32950}
32951_ACEOF
32952rm -f conftest.$ac_objext
32953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32954 (eval $ac_compile) 2>conftest.er1
a848cd7e 32955 ac_status=$?
ac1cb8d3
VS
32956 grep -v '^ *+' conftest.er1 >conftest.err
32957 rm -f conftest.er1
32958 cat conftest.err >&5
a848cd7e
SC
32959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960 (exit $ac_status); } &&
6ebeb4c7 32961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32963 (eval $ac_try) 2>&5
32964 ac_status=$?
32965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); }; } &&
32967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32969 (eval $ac_try) 2>&5
32970 ac_status=$?
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); }; }; then
32973 wx_cv_type_statvfs_t="struct statvfs"
32974else
32975 echo "$as_me: failed program was:" >&5
32976sed 's/^/| /' conftest.$ac_ext >&5
32977
32978wx_cv_type_statvfs_t="unknown"
32979
32980fi
ac1cb8d3 32981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32982
32983
32984fi
ac1cb8d3 32985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32986
32987fi
32988echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32989echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32990
32991 ac_ext=c
32992ac_cpp='$CPP $CPPFLAGS'
32993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32995ac_compiler_gnu=$ac_cv_c_compiler_gnu
32996
32997
32998 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32999 cat >>confdefs.h <<\_ACEOF
33000#define HAVE_STATVFS 1
33001_ACEOF
33002
33003 fi
33004 else
33005 wx_cv_type_statvfs_t="unknown"
33006 fi
33007fi
33008
33009if test "$wx_cv_type_statvfs_t" != "unknown"; then
33010 cat >>confdefs.h <<_ACEOF
33011#define WX_STATFS_T $wx_cv_type_statvfs_t
33012_ACEOF
33013
33014else
33015 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
33016echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
33017fi
33018
33019if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
33020
33021
33022for ac_func in fcntl flock
33023do
33024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33025echo "$as_me:$LINENO: checking for $ac_func" >&5
33026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33027if eval "test \"\${$as_ac_var+set}\" = set"; then
33028 echo $ECHO_N "(cached) $ECHO_C" >&6
33029else
33030 cat >conftest.$ac_ext <<_ACEOF
33031/* confdefs.h. */
33032_ACEOF
33033cat confdefs.h >>conftest.$ac_ext
33034cat >>conftest.$ac_ext <<_ACEOF
33035/* end confdefs.h. */
ac1cb8d3
VS
33036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33038#define $ac_func innocuous_$ac_func
33039
a848cd7e
SC
33040/* System header to define __stub macros and hopefully few prototypes,
33041 which can conflict with char $ac_func (); below.
33042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33043 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33044
a848cd7e
SC
33045#ifdef __STDC__
33046# include <limits.h>
33047#else
33048# include <assert.h>
33049#endif
ac1cb8d3
VS
33050
33051#undef $ac_func
33052
a848cd7e
SC
33053/* Override any gcc2 internal prototype to avoid an error. */
33054#ifdef __cplusplus
33055extern "C"
33056{
33057#endif
33058/* We use char because int might match the return type of a gcc2
33059 builtin and then its argument prototype would still apply. */
33060char $ac_func ();
33061/* The GNU C library defines this for functions which it implements
33062 to always fail with ENOSYS. Some functions are actually named
33063 something starting with __ and the normal name is an alias. */
33064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33065choke me
33066#else
33067char (*f) () = $ac_func;
33068#endif
33069#ifdef __cplusplus
33070}
33071#endif
33072
33073int
33074main ()
33075{
33076return f != $ac_func;
33077 ;
33078 return 0;
33079}
33080_ACEOF
33081rm -f conftest.$ac_objext conftest$ac_exeext
33082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33083 (eval $ac_link) 2>conftest.er1
a848cd7e 33084 ac_status=$?
ac1cb8d3
VS
33085 grep -v '^ *+' conftest.er1 >conftest.err
33086 rm -f conftest.er1
33087 cat conftest.err >&5
a848cd7e
SC
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); } &&
6ebeb4c7 33090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33092 (eval $ac_try) 2>&5
33093 ac_status=$?
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); }; } &&
33096 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33098 (eval $ac_try) 2>&5
33099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; }; then
33102 eval "$as_ac_var=yes"
33103else
33104 echo "$as_me: failed program was:" >&5
33105sed 's/^/| /' conftest.$ac_ext >&5
33106
33107eval "$as_ac_var=no"
33108fi
ac1cb8d3
VS
33109rm -f conftest.err conftest.$ac_objext \
33110 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33111fi
33112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33113echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33114if test `eval echo '${'$as_ac_var'}'` = yes; then
33115 cat >>confdefs.h <<_ACEOF
33116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33117_ACEOF
33118 break
33119fi
33120done
33121
33122
33123 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
33124 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
33125echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
33126 wxUSE_SNGLINST_CHECKER=no
33127 fi
33128fi
33129
33130
33131for ac_func in timegm
33132do
33133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33134echo "$as_me:$LINENO: checking for $ac_func" >&5
33135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33136if eval "test \"\${$as_ac_var+set}\" = set"; then
33137 echo $ECHO_N "(cached) $ECHO_C" >&6
33138else
33139 cat >conftest.$ac_ext <<_ACEOF
33140/* confdefs.h. */
33141_ACEOF
33142cat confdefs.h >>conftest.$ac_ext
33143cat >>conftest.$ac_ext <<_ACEOF
33144/* end confdefs.h. */
ac1cb8d3
VS
33145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33147#define $ac_func innocuous_$ac_func
33148
a848cd7e
SC
33149/* System header to define __stub macros and hopefully few prototypes,
33150 which can conflict with char $ac_func (); below.
33151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33152 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33153
a848cd7e
SC
33154#ifdef __STDC__
33155# include <limits.h>
33156#else
33157# include <assert.h>
33158#endif
ac1cb8d3
VS
33159
33160#undef $ac_func
33161
a848cd7e
SC
33162/* Override any gcc2 internal prototype to avoid an error. */
33163#ifdef __cplusplus
33164extern "C"
33165{
33166#endif
33167/* We use char because int might match the return type of a gcc2
33168 builtin and then its argument prototype would still apply. */
33169char $ac_func ();
33170/* The GNU C library defines this for functions which it implements
33171 to always fail with ENOSYS. Some functions are actually named
33172 something starting with __ and the normal name is an alias. */
33173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33174choke me
33175#else
33176char (*f) () = $ac_func;
33177#endif
33178#ifdef __cplusplus
33179}
33180#endif
33181
33182int
33183main ()
33184{
33185return f != $ac_func;
33186 ;
33187 return 0;
33188}
33189_ACEOF
33190rm -f conftest.$ac_objext conftest$ac_exeext
33191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33192 (eval $ac_link) 2>conftest.er1
a848cd7e 33193 ac_status=$?
ac1cb8d3
VS
33194 grep -v '^ *+' conftest.er1 >conftest.err
33195 rm -f conftest.er1
33196 cat conftest.err >&5
a848cd7e
SC
33197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198 (exit $ac_status); } &&
6ebeb4c7 33199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33201 (eval $ac_try) 2>&5
33202 ac_status=$?
33203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204 (exit $ac_status); }; } &&
33205 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33207 (eval $ac_try) 2>&5
33208 ac_status=$?
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); }; }; then
33211 eval "$as_ac_var=yes"
33212else
33213 echo "$as_me: failed program was:" >&5
33214sed 's/^/| /' conftest.$ac_ext >&5
33215
33216eval "$as_ac_var=no"
33217fi
ac1cb8d3
VS
33218rm -f conftest.err conftest.$ac_objext \
33219 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33220fi
33221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33223if test `eval echo '${'$as_ac_var'}'` = yes; then
33224 cat >>confdefs.h <<_ACEOF
33225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33226_ACEOF
33227
33228fi
33229done
33230
33231
33232
33233
33234for ac_func in putenv setenv
33235do
33236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33237echo "$as_me:$LINENO: checking for $ac_func" >&5
33238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33239if eval "test \"\${$as_ac_var+set}\" = set"; then
33240 echo $ECHO_N "(cached) $ECHO_C" >&6
33241else
33242 cat >conftest.$ac_ext <<_ACEOF
33243/* confdefs.h. */
33244_ACEOF
33245cat confdefs.h >>conftest.$ac_ext
33246cat >>conftest.$ac_ext <<_ACEOF
33247/* end confdefs.h. */
ac1cb8d3
VS
33248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33250#define $ac_func innocuous_$ac_func
33251
a848cd7e
SC
33252/* System header to define __stub macros and hopefully few prototypes,
33253 which can conflict with char $ac_func (); below.
33254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33255 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33256
a848cd7e
SC
33257#ifdef __STDC__
33258# include <limits.h>
33259#else
33260# include <assert.h>
33261#endif
ac1cb8d3
VS
33262
33263#undef $ac_func
33264
a848cd7e
SC
33265/* Override any gcc2 internal prototype to avoid an error. */
33266#ifdef __cplusplus
33267extern "C"
33268{
33269#endif
33270/* We use char because int might match the return type of a gcc2
33271 builtin and then its argument prototype would still apply. */
33272char $ac_func ();
33273/* The GNU C library defines this for functions which it implements
33274 to always fail with ENOSYS. Some functions are actually named
33275 something starting with __ and the normal name is an alias. */
33276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33277choke me
33278#else
33279char (*f) () = $ac_func;
33280#endif
33281#ifdef __cplusplus
33282}
33283#endif
33284
33285int
33286main ()
33287{
33288return f != $ac_func;
33289 ;
33290 return 0;
33291}
33292_ACEOF
33293rm -f conftest.$ac_objext conftest$ac_exeext
33294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33295 (eval $ac_link) 2>conftest.er1
a848cd7e 33296 ac_status=$?
ac1cb8d3
VS
33297 grep -v '^ *+' conftest.er1 >conftest.err
33298 rm -f conftest.er1
33299 cat conftest.err >&5
a848cd7e
SC
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); } &&
6ebeb4c7 33302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33304 (eval $ac_try) 2>&5
33305 ac_status=$?
33306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307 (exit $ac_status); }; } &&
33308 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310 (eval $ac_try) 2>&5
33311 ac_status=$?
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; }; then
33314 eval "$as_ac_var=yes"
33315else
33316 echo "$as_me: failed program was:" >&5
33317sed 's/^/| /' conftest.$ac_ext >&5
33318
33319eval "$as_ac_var=no"
33320fi
ac1cb8d3
VS
33321rm -f conftest.err conftest.$ac_objext \
33322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33323fi
33324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33326if test `eval echo '${'$as_ac_var'}'` = yes; then
33327 cat >>confdefs.h <<_ACEOF
33328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33329_ACEOF
33330 break
33331fi
33332done
33333
33334
33335HAVE_SOME_SLEEP_FUNC=0
33336if test "$USE_BEOS" = 1; then
33337 cat >>confdefs.h <<\_ACEOF
33338#define HAVE_SLEEP 1
33339_ACEOF
33340
33341 HAVE_SOME_SLEEP_FUNC=1
33342fi
33343
33344if test "$USE_DARWIN" = 1; then
33345 cat >>confdefs.h <<\_ACEOF
33346#define HAVE_USLEEP 1
33347_ACEOF
33348
33349 HAVE_SOME_SLEEP_FUNC=1
33350fi
33351
33352if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
33353 POSIX4_LINK=
33354
33355for ac_func in nanosleep
33356do
33357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33358echo "$as_me:$LINENO: checking for $ac_func" >&5
33359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33360if eval "test \"\${$as_ac_var+set}\" = set"; then
33361 echo $ECHO_N "(cached) $ECHO_C" >&6
33362else
33363 cat >conftest.$ac_ext <<_ACEOF
33364/* confdefs.h. */
33365_ACEOF
33366cat confdefs.h >>conftest.$ac_ext
33367cat >>conftest.$ac_ext <<_ACEOF
33368/* end confdefs.h. */
ac1cb8d3
VS
33369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33371#define $ac_func innocuous_$ac_func
33372
a848cd7e
SC
33373/* System header to define __stub macros and hopefully few prototypes,
33374 which can conflict with char $ac_func (); below.
33375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33376 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33377
a848cd7e
SC
33378#ifdef __STDC__
33379# include <limits.h>
33380#else
33381# include <assert.h>
33382#endif
ac1cb8d3
VS
33383
33384#undef $ac_func
33385
a848cd7e
SC
33386/* Override any gcc2 internal prototype to avoid an error. */
33387#ifdef __cplusplus
33388extern "C"
33389{
33390#endif
33391/* We use char because int might match the return type of a gcc2
33392 builtin and then its argument prototype would still apply. */
33393char $ac_func ();
33394/* The GNU C library defines this for functions which it implements
33395 to always fail with ENOSYS. Some functions are actually named
33396 something starting with __ and the normal name is an alias. */
33397#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33398choke me
33399#else
33400char (*f) () = $ac_func;
33401#endif
33402#ifdef __cplusplus
33403}
33404#endif
33405
33406int
33407main ()
33408{
33409return f != $ac_func;
33410 ;
33411 return 0;
33412}
33413_ACEOF
33414rm -f conftest.$ac_objext conftest$ac_exeext
33415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33416 (eval $ac_link) 2>conftest.er1
a848cd7e 33417 ac_status=$?
ac1cb8d3
VS
33418 grep -v '^ *+' conftest.er1 >conftest.err
33419 rm -f conftest.er1
33420 cat conftest.err >&5
a848cd7e
SC
33421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422 (exit $ac_status); } &&
6ebeb4c7 33423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33425 (eval $ac_try) 2>&5
33426 ac_status=$?
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); }; } &&
33429 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33431 (eval $ac_try) 2>&5
33432 ac_status=$?
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); }; }; then
33435 eval "$as_ac_var=yes"
33436else
33437 echo "$as_me: failed program was:" >&5
33438sed 's/^/| /' conftest.$ac_ext >&5
33439
33440eval "$as_ac_var=no"
33441fi
ac1cb8d3
VS
33442rm -f conftest.err conftest.$ac_objext \
33443 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33444fi
33445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33446echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33447if test `eval echo '${'$as_ac_var'}'` = yes; then
33448 cat >>confdefs.h <<_ACEOF
33449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33450_ACEOF
33451 cat >>confdefs.h <<\_ACEOF
33452#define HAVE_NANOSLEEP 1
33453_ACEOF
33454
33455else
33456
33457 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33458echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33459if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33460 echo $ECHO_N "(cached) $ECHO_C" >&6
33461else
33462 ac_check_lib_save_LIBS=$LIBS
33463LIBS="-lposix4 $LIBS"
33464cat >conftest.$ac_ext <<_ACEOF
33465/* confdefs.h. */
33466_ACEOF
33467cat confdefs.h >>conftest.$ac_ext
33468cat >>conftest.$ac_ext <<_ACEOF
33469/* end confdefs.h. */
33470
33471/* Override any gcc2 internal prototype to avoid an error. */
33472#ifdef __cplusplus
33473extern "C"
33474#endif
33475/* We use char because int might match the return type of a gcc2
33476 builtin and then its argument prototype would still apply. */
33477char nanosleep ();
33478int
33479main ()
33480{
33481nanosleep ();
33482 ;
33483 return 0;
33484}
33485_ACEOF
33486rm -f conftest.$ac_objext conftest$ac_exeext
33487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33488 (eval $ac_link) 2>conftest.er1
a848cd7e 33489 ac_status=$?
ac1cb8d3
VS
33490 grep -v '^ *+' conftest.er1 >conftest.err
33491 rm -f conftest.er1
33492 cat conftest.err >&5
a848cd7e
SC
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); } &&
6ebeb4c7 33495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33497 (eval $ac_try) 2>&5
33498 ac_status=$?
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); }; } &&
33501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33503 (eval $ac_try) 2>&5
33504 ac_status=$?
33505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33506 (exit $ac_status); }; }; then
33507 ac_cv_lib_posix4_nanosleep=yes
33508else
33509 echo "$as_me: failed program was:" >&5
33510sed 's/^/| /' conftest.$ac_ext >&5
33511
33512ac_cv_lib_posix4_nanosleep=no
33513fi
ac1cb8d3
VS
33514rm -f conftest.err conftest.$ac_objext \
33515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33516LIBS=$ac_check_lib_save_LIBS
33517fi
33518echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33519echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33520if test $ac_cv_lib_posix4_nanosleep = yes; then
33521
33522 cat >>confdefs.h <<\_ACEOF
33523#define HAVE_NANOSLEEP 1
33524_ACEOF
33525
33526 POSIX4_LINK=" -lposix4"
33527
33528else
33529
33530
33531for ac_func in usleep
33532do
33533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33534echo "$as_me:$LINENO: checking for $ac_func" >&5
33535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33536if eval "test \"\${$as_ac_var+set}\" = set"; then
33537 echo $ECHO_N "(cached) $ECHO_C" >&6
33538else
33539 cat >conftest.$ac_ext <<_ACEOF
33540/* confdefs.h. */
33541_ACEOF
33542cat confdefs.h >>conftest.$ac_ext
33543cat >>conftest.$ac_ext <<_ACEOF
33544/* end confdefs.h. */
ac1cb8d3
VS
33545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33547#define $ac_func innocuous_$ac_func
33548
a848cd7e
SC
33549/* System header to define __stub macros and hopefully few prototypes,
33550 which can conflict with char $ac_func (); below.
33551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33552 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33553
a848cd7e
SC
33554#ifdef __STDC__
33555# include <limits.h>
33556#else
33557# include <assert.h>
33558#endif
ac1cb8d3
VS
33559
33560#undef $ac_func
33561
a848cd7e
SC
33562/* Override any gcc2 internal prototype to avoid an error. */
33563#ifdef __cplusplus
33564extern "C"
33565{
33566#endif
33567/* We use char because int might match the return type of a gcc2
33568 builtin and then its argument prototype would still apply. */
33569char $ac_func ();
33570/* The GNU C library defines this for functions which it implements
33571 to always fail with ENOSYS. Some functions are actually named
33572 something starting with __ and the normal name is an alias. */
33573#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33574choke me
33575#else
33576char (*f) () = $ac_func;
33577#endif
33578#ifdef __cplusplus
33579}
33580#endif
33581
33582int
33583main ()
33584{
33585return f != $ac_func;
33586 ;
33587 return 0;
33588}
33589_ACEOF
33590rm -f conftest.$ac_objext conftest$ac_exeext
33591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33592 (eval $ac_link) 2>conftest.er1
a848cd7e 33593 ac_status=$?
ac1cb8d3
VS
33594 grep -v '^ *+' conftest.er1 >conftest.err
33595 rm -f conftest.er1
33596 cat conftest.err >&5
a848cd7e
SC
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); } &&
6ebeb4c7 33599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33601 (eval $ac_try) 2>&5
33602 ac_status=$?
33603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604 (exit $ac_status); }; } &&
33605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33607 (eval $ac_try) 2>&5
33608 ac_status=$?
33609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610 (exit $ac_status); }; }; then
33611 eval "$as_ac_var=yes"
33612else
33613 echo "$as_me: failed program was:" >&5
33614sed 's/^/| /' conftest.$ac_ext >&5
33615
33616eval "$as_ac_var=no"
33617fi
ac1cb8d3
VS
33618rm -f conftest.err conftest.$ac_objext \
33619 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33620fi
33621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33623if test `eval echo '${'$as_ac_var'}'` = yes; then
33624 cat >>confdefs.h <<_ACEOF
33625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33626_ACEOF
33627 cat >>confdefs.h <<\_ACEOF
33628#define HAVE_USLEEP 1
33629_ACEOF
33630
33631else
33632 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33633echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33634
33635fi
33636done
33637
33638
33639
33640fi
33641
33642
33643
33644fi
33645done
33646
33647fi
33648
33649
33650
33651for ac_func in uname gethostname
33652do
33653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33654echo "$as_me:$LINENO: checking for $ac_func" >&5
33655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33656if eval "test \"\${$as_ac_var+set}\" = set"; then
33657 echo $ECHO_N "(cached) $ECHO_C" >&6
33658else
33659 cat >conftest.$ac_ext <<_ACEOF
33660/* confdefs.h. */
33661_ACEOF
33662cat confdefs.h >>conftest.$ac_ext
33663cat >>conftest.$ac_ext <<_ACEOF
33664/* end confdefs.h. */
ac1cb8d3
VS
33665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33667#define $ac_func innocuous_$ac_func
33668
a848cd7e
SC
33669/* System header to define __stub macros and hopefully few prototypes,
33670 which can conflict with char $ac_func (); below.
33671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33672 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33673
a848cd7e
SC
33674#ifdef __STDC__
33675# include <limits.h>
33676#else
33677# include <assert.h>
33678#endif
ac1cb8d3
VS
33679
33680#undef $ac_func
33681
a848cd7e
SC
33682/* Override any gcc2 internal prototype to avoid an error. */
33683#ifdef __cplusplus
33684extern "C"
33685{
33686#endif
33687/* We use char because int might match the return type of a gcc2
33688 builtin and then its argument prototype would still apply. */
33689char $ac_func ();
33690/* The GNU C library defines this for functions which it implements
33691 to always fail with ENOSYS. Some functions are actually named
33692 something starting with __ and the normal name is an alias. */
33693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33694choke me
33695#else
33696char (*f) () = $ac_func;
33697#endif
33698#ifdef __cplusplus
33699}
33700#endif
33701
33702int
33703main ()
33704{
33705return f != $ac_func;
33706 ;
33707 return 0;
33708}
33709_ACEOF
33710rm -f conftest.$ac_objext conftest$ac_exeext
33711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33712 (eval $ac_link) 2>conftest.er1
a848cd7e 33713 ac_status=$?
ac1cb8d3
VS
33714 grep -v '^ *+' conftest.er1 >conftest.err
33715 rm -f conftest.er1
33716 cat conftest.err >&5
a848cd7e
SC
33717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33718 (exit $ac_status); } &&
6ebeb4c7 33719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33721 (eval $ac_try) 2>&5
33722 ac_status=$?
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); }; } &&
33725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727 (eval $ac_try) 2>&5
33728 ac_status=$?
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; }; then
33731 eval "$as_ac_var=yes"
33732else
33733 echo "$as_me: failed program was:" >&5
33734sed 's/^/| /' conftest.$ac_ext >&5
33735
33736eval "$as_ac_var=no"
33737fi
ac1cb8d3
VS
33738rm -f conftest.err conftest.$ac_objext \
33739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33740fi
33741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33743if test `eval echo '${'$as_ac_var'}'` = yes; then
33744 cat >>confdefs.h <<_ACEOF
33745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33746_ACEOF
33747 break
33748fi
33749done
33750
33751
33752
33753
33754ac_ext=cc
33755ac_cpp='$CXXCPP $CPPFLAGS'
33756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33759
33760
33761
33762for ac_func in strtok_r
33763do
33764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33765echo "$as_me:$LINENO: checking for $ac_func" >&5
33766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33767if eval "test \"\${$as_ac_var+set}\" = set"; then
33768 echo $ECHO_N "(cached) $ECHO_C" >&6
33769else
33770 cat >conftest.$ac_ext <<_ACEOF
33771/* confdefs.h. */
33772_ACEOF
33773cat confdefs.h >>conftest.$ac_ext
33774cat >>conftest.$ac_ext <<_ACEOF
33775/* end confdefs.h. */
ac1cb8d3
VS
33776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33778#define $ac_func innocuous_$ac_func
33779
a848cd7e
SC
33780/* System header to define __stub macros and hopefully few prototypes,
33781 which can conflict with char $ac_func (); below.
33782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33783 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33784
a848cd7e
SC
33785#ifdef __STDC__
33786# include <limits.h>
33787#else
33788# include <assert.h>
33789#endif
ac1cb8d3
VS
33790
33791#undef $ac_func
33792
a848cd7e
SC
33793/* Override any gcc2 internal prototype to avoid an error. */
33794#ifdef __cplusplus
33795extern "C"
33796{
33797#endif
33798/* We use char because int might match the return type of a gcc2
33799 builtin and then its argument prototype would still apply. */
33800char $ac_func ();
33801/* The GNU C library defines this for functions which it implements
33802 to always fail with ENOSYS. Some functions are actually named
33803 something starting with __ and the normal name is an alias. */
33804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33805choke me
33806#else
33807char (*f) () = $ac_func;
33808#endif
33809#ifdef __cplusplus
33810}
33811#endif
33812
33813int
33814main ()
33815{
33816return f != $ac_func;
33817 ;
33818 return 0;
33819}
33820_ACEOF
33821rm -f conftest.$ac_objext conftest$ac_exeext
33822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33823 (eval $ac_link) 2>conftest.er1
a848cd7e 33824 ac_status=$?
ac1cb8d3
VS
33825 grep -v '^ *+' conftest.er1 >conftest.err
33826 rm -f conftest.er1
33827 cat conftest.err >&5
a848cd7e
SC
33828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33829 (exit $ac_status); } &&
6ebeb4c7 33830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33832 (eval $ac_try) 2>&5
33833 ac_status=$?
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); }; } &&
33836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33838 (eval $ac_try) 2>&5
33839 ac_status=$?
33840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841 (exit $ac_status); }; }; then
33842 eval "$as_ac_var=yes"
33843else
33844 echo "$as_me: failed program was:" >&5
33845sed 's/^/| /' conftest.$ac_ext >&5
33846
33847eval "$as_ac_var=no"
33848fi
ac1cb8d3
VS
33849rm -f conftest.err conftest.$ac_objext \
33850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33851fi
33852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33853echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33854if test `eval echo '${'$as_ac_var'}'` = yes; then
33855 cat >>confdefs.h <<_ACEOF
33856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33857_ACEOF
33858
33859fi
33860done
33861
33862
33863ac_ext=c
33864ac_cpp='$CPP $CPPFLAGS'
33865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33867ac_compiler_gnu=$ac_cv_c_compiler_gnu
33868
33869
33870INET_LINK=
33871
33872for ac_func in inet_addr
33873do
33874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33875echo "$as_me:$LINENO: checking for $ac_func" >&5
33876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33877if eval "test \"\${$as_ac_var+set}\" = set"; then
33878 echo $ECHO_N "(cached) $ECHO_C" >&6
33879else
33880 cat >conftest.$ac_ext <<_ACEOF
33881/* confdefs.h. */
33882_ACEOF
33883cat confdefs.h >>conftest.$ac_ext
33884cat >>conftest.$ac_ext <<_ACEOF
33885/* end confdefs.h. */
ac1cb8d3
VS
33886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33888#define $ac_func innocuous_$ac_func
33889
a848cd7e
SC
33890/* System header to define __stub macros and hopefully few prototypes,
33891 which can conflict with char $ac_func (); below.
33892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33893 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33894
a848cd7e
SC
33895#ifdef __STDC__
33896# include <limits.h>
33897#else
33898# include <assert.h>
33899#endif
ac1cb8d3
VS
33900
33901#undef $ac_func
33902
a848cd7e
SC
33903/* Override any gcc2 internal prototype to avoid an error. */
33904#ifdef __cplusplus
33905extern "C"
33906{
33907#endif
33908/* We use char because int might match the return type of a gcc2
33909 builtin and then its argument prototype would still apply. */
33910char $ac_func ();
33911/* The GNU C library defines this for functions which it implements
33912 to always fail with ENOSYS. Some functions are actually named
33913 something starting with __ and the normal name is an alias. */
33914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33915choke me
33916#else
33917char (*f) () = $ac_func;
33918#endif
33919#ifdef __cplusplus
33920}
33921#endif
33922
33923int
33924main ()
33925{
33926return f != $ac_func;
33927 ;
33928 return 0;
33929}
33930_ACEOF
33931rm -f conftest.$ac_objext conftest$ac_exeext
33932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33933 (eval $ac_link) 2>conftest.er1
a848cd7e 33934 ac_status=$?
ac1cb8d3
VS
33935 grep -v '^ *+' conftest.er1 >conftest.err
33936 rm -f conftest.er1
33937 cat conftest.err >&5
a848cd7e
SC
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); } &&
6ebeb4c7 33940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33942 (eval $ac_try) 2>&5
33943 ac_status=$?
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); }; } &&
33946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33948 (eval $ac_try) 2>&5
33949 ac_status=$?
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); }; }; then
33952 eval "$as_ac_var=yes"
33953else
33954 echo "$as_me: failed program was:" >&5
33955sed 's/^/| /' conftest.$ac_ext >&5
33956
33957eval "$as_ac_var=no"
33958fi
ac1cb8d3
VS
33959rm -f conftest.err conftest.$ac_objext \
33960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33961fi
33962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33964if test `eval echo '${'$as_ac_var'}'` = yes; then
33965 cat >>confdefs.h <<_ACEOF
33966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33967_ACEOF
33968 cat >>confdefs.h <<\_ACEOF
33969#define HAVE_INET_ADDR 1
33970_ACEOF
33971
33972else
33973
33974 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33975echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33976if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33977 echo $ECHO_N "(cached) $ECHO_C" >&6
33978else
33979 ac_check_lib_save_LIBS=$LIBS
33980LIBS="-lnsl $LIBS"
33981cat >conftest.$ac_ext <<_ACEOF
33982/* confdefs.h. */
33983_ACEOF
33984cat confdefs.h >>conftest.$ac_ext
33985cat >>conftest.$ac_ext <<_ACEOF
33986/* end confdefs.h. */
33987
33988/* Override any gcc2 internal prototype to avoid an error. */
33989#ifdef __cplusplus
33990extern "C"
33991#endif
33992/* We use char because int might match the return type of a gcc2
33993 builtin and then its argument prototype would still apply. */
33994char inet_addr ();
33995int
33996main ()
33997{
33998inet_addr ();
33999 ;
34000 return 0;
34001}
34002_ACEOF
34003rm -f conftest.$ac_objext conftest$ac_exeext
34004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34005 (eval $ac_link) 2>conftest.er1
a848cd7e 34006 ac_status=$?
ac1cb8d3
VS
34007 grep -v '^ *+' conftest.er1 >conftest.err
34008 rm -f conftest.er1
34009 cat conftest.err >&5
a848cd7e
SC
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); } &&
6ebeb4c7 34012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34014 (eval $ac_try) 2>&5
34015 ac_status=$?
34016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017 (exit $ac_status); }; } &&
34018 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020 (eval $ac_try) 2>&5
34021 ac_status=$?
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; }; then
34024 ac_cv_lib_nsl_inet_addr=yes
34025else
34026 echo "$as_me: failed program was:" >&5
34027sed 's/^/| /' conftest.$ac_ext >&5
34028
34029ac_cv_lib_nsl_inet_addr=no
34030fi
ac1cb8d3
VS
34031rm -f conftest.err conftest.$ac_objext \
34032 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34033LIBS=$ac_check_lib_save_LIBS
34034fi
34035echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
34036echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
34037if test $ac_cv_lib_nsl_inet_addr = yes; then
34038 INET_LINK="nsl"
34039else
34040
34041 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
34042echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
34043if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
34044 echo $ECHO_N "(cached) $ECHO_C" >&6
34045else
34046 ac_check_lib_save_LIBS=$LIBS
34047LIBS="-lresolv $LIBS"
34048cat >conftest.$ac_ext <<_ACEOF
34049/* confdefs.h. */
34050_ACEOF
34051cat confdefs.h >>conftest.$ac_ext
34052cat >>conftest.$ac_ext <<_ACEOF
34053/* end confdefs.h. */
34054
34055/* Override any gcc2 internal prototype to avoid an error. */
34056#ifdef __cplusplus
34057extern "C"
34058#endif
34059/* We use char because int might match the return type of a gcc2
34060 builtin and then its argument prototype would still apply. */
34061char inet_addr ();
34062int
34063main ()
34064{
34065inet_addr ();
34066 ;
34067 return 0;
34068}
34069_ACEOF
34070rm -f conftest.$ac_objext conftest$ac_exeext
34071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34072 (eval $ac_link) 2>conftest.er1
a848cd7e 34073 ac_status=$?
ac1cb8d3
VS
34074 grep -v '^ *+' conftest.er1 >conftest.err
34075 rm -f conftest.er1
34076 cat conftest.err >&5
a848cd7e
SC
34077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); } &&
6ebeb4c7 34079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34081 (eval $ac_try) 2>&5
34082 ac_status=$?
34083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084 (exit $ac_status); }; } &&
34085 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34087 (eval $ac_try) 2>&5
34088 ac_status=$?
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); }; }; then
34091 ac_cv_lib_resolv_inet_addr=yes
34092else
34093 echo "$as_me: failed program was:" >&5
34094sed 's/^/| /' conftest.$ac_ext >&5
34095
34096ac_cv_lib_resolv_inet_addr=no
34097fi
ac1cb8d3
VS
34098rm -f conftest.err conftest.$ac_objext \
34099 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34100LIBS=$ac_check_lib_save_LIBS
34101fi
34102echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
34103echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
34104if test $ac_cv_lib_resolv_inet_addr = yes; then
34105 INET_LINK="resolv"
34106else
34107
34108 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
34109echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
34110if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
34111 echo $ECHO_N "(cached) $ECHO_C" >&6
34112else
34113 ac_check_lib_save_LIBS=$LIBS
34114LIBS="-lsocket $LIBS"
34115cat >conftest.$ac_ext <<_ACEOF
34116/* confdefs.h. */
34117_ACEOF
34118cat confdefs.h >>conftest.$ac_ext
34119cat >>conftest.$ac_ext <<_ACEOF
34120/* end confdefs.h. */
34121
34122/* Override any gcc2 internal prototype to avoid an error. */
34123#ifdef __cplusplus
34124extern "C"
34125#endif
34126/* We use char because int might match the return type of a gcc2
34127 builtin and then its argument prototype would still apply. */
34128char inet_addr ();
34129int
34130main ()
34131{
34132inet_addr ();
34133 ;
34134 return 0;
34135}
34136_ACEOF
34137rm -f conftest.$ac_objext conftest$ac_exeext
34138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34139 (eval $ac_link) 2>conftest.er1
a848cd7e 34140 ac_status=$?
ac1cb8d3
VS
34141 grep -v '^ *+' conftest.er1 >conftest.err
34142 rm -f conftest.er1
34143 cat conftest.err >&5
a848cd7e
SC
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); } &&
6ebeb4c7 34146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34148 (eval $ac_try) 2>&5
34149 ac_status=$?
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); }; } &&
34152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34154 (eval $ac_try) 2>&5
34155 ac_status=$?
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); }; }; then
34158 ac_cv_lib_socket_inet_addr=yes
34159else
34160 echo "$as_me: failed program was:" >&5
34161sed 's/^/| /' conftest.$ac_ext >&5
34162
34163ac_cv_lib_socket_inet_addr=no
34164fi
ac1cb8d3
VS
34165rm -f conftest.err conftest.$ac_objext \
34166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34167LIBS=$ac_check_lib_save_LIBS
34168fi
34169echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
34170echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
34171if test $ac_cv_lib_socket_inet_addr = yes; then
34172 INET_LINK="socket"
34173
34174fi
34175
34176
34177
34178fi
34179
34180
34181
34182fi
34183
34184
34185
34186fi
34187done
34188
34189
34190
34191for ac_func in inet_aton
34192do
34193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34194echo "$as_me:$LINENO: checking for $ac_func" >&5
34195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34196if eval "test \"\${$as_ac_var+set}\" = set"; then
34197 echo $ECHO_N "(cached) $ECHO_C" >&6
34198else
34199 cat >conftest.$ac_ext <<_ACEOF
34200/* confdefs.h. */
34201_ACEOF
34202cat confdefs.h >>conftest.$ac_ext
34203cat >>conftest.$ac_ext <<_ACEOF
34204/* end confdefs.h. */
ac1cb8d3
VS
34205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34207#define $ac_func innocuous_$ac_func
34208
a848cd7e
SC
34209/* System header to define __stub macros and hopefully few prototypes,
34210 which can conflict with char $ac_func (); below.
34211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34212 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34213
a848cd7e
SC
34214#ifdef __STDC__
34215# include <limits.h>
34216#else
34217# include <assert.h>
34218#endif
ac1cb8d3
VS
34219
34220#undef $ac_func
34221
a848cd7e
SC
34222/* Override any gcc2 internal prototype to avoid an error. */
34223#ifdef __cplusplus
34224extern "C"
34225{
34226#endif
34227/* We use char because int might match the return type of a gcc2
34228 builtin and then its argument prototype would still apply. */
34229char $ac_func ();
34230/* The GNU C library defines this for functions which it implements
34231 to always fail with ENOSYS. Some functions are actually named
34232 something starting with __ and the normal name is an alias. */
34233#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34234choke me
34235#else
34236char (*f) () = $ac_func;
34237#endif
34238#ifdef __cplusplus
34239}
34240#endif
34241
34242int
34243main ()
34244{
34245return f != $ac_func;
34246 ;
34247 return 0;
34248}
34249_ACEOF
34250rm -f conftest.$ac_objext conftest$ac_exeext
34251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34252 (eval $ac_link) 2>conftest.er1
a848cd7e 34253 ac_status=$?
ac1cb8d3
VS
34254 grep -v '^ *+' conftest.er1 >conftest.err
34255 rm -f conftest.er1
34256 cat conftest.err >&5
a848cd7e
SC
34257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); } &&
6ebeb4c7 34259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34261 (eval $ac_try) 2>&5
34262 ac_status=$?
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); }; } &&
34265 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34267 (eval $ac_try) 2>&5
34268 ac_status=$?
34269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34270 (exit $ac_status); }; }; then
34271 eval "$as_ac_var=yes"
34272else
34273 echo "$as_me: failed program was:" >&5
34274sed 's/^/| /' conftest.$ac_ext >&5
34275
34276eval "$as_ac_var=no"
34277fi
ac1cb8d3
VS
34278rm -f conftest.err conftest.$ac_objext \
34279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34280fi
34281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34282echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34283if test `eval echo '${'$as_ac_var'}'` = yes; then
34284 cat >>confdefs.h <<_ACEOF
34285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34286_ACEOF
34287 cat >>confdefs.h <<\_ACEOF
34288#define HAVE_INET_ATON 1
34289_ACEOF
34290
34291else
34292
34293 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
34294echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
34295echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
34296if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34297 echo $ECHO_N "(cached) $ECHO_C" >&6
34298else
34299 ac_check_lib_save_LIBS=$LIBS
34300LIBS="-l$INET_LINK $LIBS"
34301cat >conftest.$ac_ext <<_ACEOF
34302/* confdefs.h. */
34303_ACEOF
34304cat confdefs.h >>conftest.$ac_ext
34305cat >>conftest.$ac_ext <<_ACEOF
34306/* end confdefs.h. */
34307
34308/* Override any gcc2 internal prototype to avoid an error. */
34309#ifdef __cplusplus
34310extern "C"
34311#endif
34312/* We use char because int might match the return type of a gcc2
34313 builtin and then its argument prototype would still apply. */
34314char inet_aton ();
34315int
34316main ()
34317{
34318inet_aton ();
34319 ;
34320 return 0;
34321}
34322_ACEOF
34323rm -f conftest.$ac_objext conftest$ac_exeext
34324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34325 (eval $ac_link) 2>conftest.er1
a848cd7e 34326 ac_status=$?
ac1cb8d3
VS
34327 grep -v '^ *+' conftest.er1 >conftest.err
34328 rm -f conftest.er1
34329 cat conftest.err >&5
a848cd7e
SC
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); } &&
6ebeb4c7 34332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334 (eval $ac_try) 2>&5
34335 ac_status=$?
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); }; } &&
34338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34340 (eval $ac_try) 2>&5
34341 ac_status=$?
34342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343 (exit $ac_status); }; }; then
34344 eval "$as_ac_Lib=yes"
34345else
34346 echo "$as_me: failed program was:" >&5
34347sed 's/^/| /' conftest.$ac_ext >&5
34348
34349eval "$as_ac_Lib=no"
34350fi
ac1cb8d3
VS
34351rm -f conftest.err conftest.$ac_objext \
34352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34353LIBS=$ac_check_lib_save_LIBS
34354fi
34355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34356echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34357if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34358 cat >>confdefs.h <<\_ACEOF
34359#define HAVE_INET_ATON 1
34360_ACEOF
34361
34362fi
34363
34364
34365fi
34366done
34367
34368
34369if test "x$INET_LINK" != "x"; then
34370 cat >>confdefs.h <<\_ACEOF
34371#define HAVE_INET_ADDR 1
34372_ACEOF
34373
34374 INET_LINK=" -l$INET_LINK"
34375fi
34376
34377fi
34378
34379
34380
34381EXTRALIBS_ESD=
34382echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34383echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34384if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34385 echo $ECHO_N "(cached) $ECHO_C" >&6
34386else
34387 ac_check_lib_save_LIBS=$LIBS
34388LIBS="-lesd $LIBS"
34389cat >conftest.$ac_ext <<_ACEOF
34390/* confdefs.h. */
34391_ACEOF
34392cat confdefs.h >>conftest.$ac_ext
34393cat >>conftest.$ac_ext <<_ACEOF
34394/* end confdefs.h. */
34395
34396/* Override any gcc2 internal prototype to avoid an error. */
34397#ifdef __cplusplus
34398extern "C"
34399#endif
34400/* We use char because int might match the return type of a gcc2
34401 builtin and then its argument prototype would still apply. */
34402char esd_close ();
34403int
34404main ()
34405{
34406esd_close ();
34407 ;
34408 return 0;
34409}
34410_ACEOF
34411rm -f conftest.$ac_objext conftest$ac_exeext
34412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34413 (eval $ac_link) 2>conftest.er1
a848cd7e 34414 ac_status=$?
ac1cb8d3
VS
34415 grep -v '^ *+' conftest.er1 >conftest.err
34416 rm -f conftest.er1
34417 cat conftest.err >&5
a848cd7e
SC
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); } &&
6ebeb4c7 34420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422 (eval $ac_try) 2>&5
34423 ac_status=$?
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; } &&
34426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428 (eval $ac_try) 2>&5
34429 ac_status=$?
34430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431 (exit $ac_status); }; }; then
34432 ac_cv_lib_esd_esd_close=yes
34433else
34434 echo "$as_me: failed program was:" >&5
34435sed 's/^/| /' conftest.$ac_ext >&5
34436
34437ac_cv_lib_esd_esd_close=no
34438fi
ac1cb8d3
VS
34439rm -f conftest.err conftest.$ac_objext \
34440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34441LIBS=$ac_check_lib_save_LIBS
34442fi
34443echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34444echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34445if test $ac_cv_lib_esd_esd_close = yes; then
34446
34447
34448for ac_header in esd.h
34449do
34450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34451if eval "test \"\${$as_ac_Header+set}\" = set"; then
34452 echo "$as_me:$LINENO: checking for $ac_header" >&5
34453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34454if eval "test \"\${$as_ac_Header+set}\" = set"; then
34455 echo $ECHO_N "(cached) $ECHO_C" >&6
34456fi
34457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34459else
34460 # Is the header compilable?
34461echo "$as_me:$LINENO: checking $ac_header usability" >&5
34462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34463cat >conftest.$ac_ext <<_ACEOF
34464/* confdefs.h. */
34465_ACEOF
34466cat confdefs.h >>conftest.$ac_ext
34467cat >>conftest.$ac_ext <<_ACEOF
34468/* end confdefs.h. */
34469$ac_includes_default
34470#include <$ac_header>
34471_ACEOF
34472rm -f conftest.$ac_objext
34473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34474 (eval $ac_compile) 2>conftest.er1
a848cd7e 34475 ac_status=$?
ac1cb8d3
VS
34476 grep -v '^ *+' conftest.er1 >conftest.err
34477 rm -f conftest.er1
34478 cat conftest.err >&5
a848cd7e
SC
34479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34480 (exit $ac_status); } &&
6ebeb4c7 34481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34483 (eval $ac_try) 2>&5
34484 ac_status=$?
34485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486 (exit $ac_status); }; } &&
34487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34489 (eval $ac_try) 2>&5
34490 ac_status=$?
34491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34492 (exit $ac_status); }; }; then
34493 ac_header_compiler=yes
34494else
34495 echo "$as_me: failed program was:" >&5
34496sed 's/^/| /' conftest.$ac_ext >&5
34497
34498ac_header_compiler=no
34499fi
ac1cb8d3 34500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34502echo "${ECHO_T}$ac_header_compiler" >&6
34503
34504# Is the header present?
34505echo "$as_me:$LINENO: checking $ac_header presence" >&5
34506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34507cat >conftest.$ac_ext <<_ACEOF
34508/* confdefs.h. */
34509_ACEOF
34510cat confdefs.h >>conftest.$ac_ext
34511cat >>conftest.$ac_ext <<_ACEOF
34512/* end confdefs.h. */
34513#include <$ac_header>
34514_ACEOF
34515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34517 ac_status=$?
34518 grep -v '^ *+' conftest.er1 >conftest.err
34519 rm -f conftest.er1
34520 cat conftest.err >&5
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); } >/dev/null; then
34523 if test -s conftest.err; then
34524 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34526 else
34527 ac_cpp_err=
34528 fi
34529else
34530 ac_cpp_err=yes
34531fi
34532if test -z "$ac_cpp_err"; then
34533 ac_header_preproc=yes
34534else
34535 echo "$as_me: failed program was:" >&5
34536sed 's/^/| /' conftest.$ac_ext >&5
34537
34538 ac_header_preproc=no
34539fi
34540rm -f conftest.err conftest.$ac_ext
34541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34542echo "${ECHO_T}$ac_header_preproc" >&6
34543
34544# So? What about this header?
ac1cb8d3
VS
34545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34546 yes:no: )
a848cd7e
SC
34547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34551 ac_header_preproc=yes
a848cd7e 34552 ;;
ac1cb8d3 34553 no:yes:* )
a848cd7e
SC
34554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34561echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34566 (
34567 cat <<\_ASBOX
ac1cb8d3
VS
34568## ----------------------------------------- ##
34569## Report this to wx-dev@lists.wxwidgets.org ##
34570## ----------------------------------------- ##
a848cd7e
SC
34571_ASBOX
34572 ) |
34573 sed "s/^/$as_me: WARNING: /" >&2
34574 ;;
34575esac
34576echo "$as_me:$LINENO: checking for $ac_header" >&5
34577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34578if eval "test \"\${$as_ac_Header+set}\" = set"; then
34579 echo $ECHO_N "(cached) $ECHO_C" >&6
34580else
ac1cb8d3 34581 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34582fi
34583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34585
34586fi
34587if test `eval echo '${'$as_ac_Header'}'` = yes; then
34588 cat >>confdefs.h <<_ACEOF
34589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34590_ACEOF
34591
34592 EXTRALIBS_ESD="-lesd"
34593
34594fi
34595
34596done
34597
34598
34599fi
34600
34601
34602
34603echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34604echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34605cat >conftest.$ac_ext <<_ACEOF
34606/* confdefs.h. */
34607_ACEOF
34608cat confdefs.h >>conftest.$ac_ext
34609cat >>conftest.$ac_ext <<_ACEOF
34610/* end confdefs.h. */
34611#ifdef __linux__
34612 #include <linux/cdrom.h>
34613 #else
34614 /* For Solaris */
34615 #include <sys/cdio.h>
34616 #endif
34617
34618int
34619main ()
34620{
34621struct cdrom_tocentry entry, old_entry;
34622 ;
34623 return 0;
34624}
34625_ACEOF
34626rm -f conftest.$ac_objext
34627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34628 (eval $ac_compile) 2>conftest.er1
a848cd7e 34629 ac_status=$?
ac1cb8d3
VS
34630 grep -v '^ *+' conftest.er1 >conftest.err
34631 rm -f conftest.er1
34632 cat conftest.err >&5
a848cd7e
SC
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); } &&
6ebeb4c7 34635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34637 (eval $ac_try) 2>&5
34638 ac_status=$?
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); }; } &&
34641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34643 (eval $ac_try) 2>&5
34644 ac_status=$?
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); }; }; then
34647 echo "$as_me:$LINENO: result: yes" >&5
34648echo "${ECHO_T}yes" >&6
34649 cat >>confdefs.h <<\_ACEOF
34650#define HAVE_KNOWN_CDROM_INTERFACE 1
34651_ACEOF
34652
34653else
34654 echo "$as_me: failed program was:" >&5
34655sed 's/^/| /' conftest.$ac_ext >&5
34656
34657echo "$as_me:$LINENO: result: no" >&5
34658echo "${ECHO_T}no" >&6
34659fi
ac1cb8d3 34660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34661
34662
34663cat >confcache <<\_ACEOF
34664# This file is a shell script that caches the results of configure
34665# tests run on this system so they can be shared between configure
34666# scripts and configure runs, see configure's option --config-cache.
34667# It is not useful on other systems. If it contains results you don't
34668# want to keep, you may remove or edit it.
34669#
34670# config.status only pays attention to the cache file if you give it
34671# the --recheck option to rerun configure.
34672#
34673# `ac_cv_env_foo' variables (set or unset) will be overridden when
34674# loading this file, other *unset* `ac_cv_foo' will be assigned the
34675# following values.
34676
34677_ACEOF
34678
34679# The following way of writing the cache mishandles newlines in values,
34680# but we know of no workaround that is simple, portable, and efficient.
34681# So, don't put newlines in cache variables' values.
34682# Ultrix sh set writes to stderr and can't be redirected directly,
34683# and sets the high bit in the cache file unless we assign to the vars.
34684{
34685 (set) 2>&1 |
34686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34687 *ac_space=\ *)
34688 # `set' does not quote correctly, so add quotes (double-quote
34689 # substitution turns \\\\ into \\, and sed turns \\ into \).
34690 sed -n \
ac1cb8d3
VS
34691 "s/'/'\\\\''/g;
34692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34693 ;;
34694 *)
34695 # `set' quotes correctly as required by POSIX, so do not add quotes.
34696 sed -n \
ac1cb8d3 34697 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34698 ;;
34699 esac;
34700} |
34701 sed '
34702 t clear
34703 : clear
34704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34705 t end
34706 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34707 : end' >>confcache
34708if diff $cache_file confcache >/dev/null 2>&1; then :; else
34709 if test -w $cache_file; then
34710 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34711 cat confcache >$cache_file
34712 else
34713 echo "not updating unwritable cache $cache_file"
34714 fi
34715fi
34716rm -f confcache
34717
34718
34719CPP_MT_FLAG=
34720if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34721
34722
34723 THREADS_LINK=
34724 THREADS_CFLAGS=
34725
34726 if test "$wxUSE_THREADS" = "yes" ; then
34727 if test "$USE_BEOS" = 1; then
34728 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34729echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34730 wxUSE_THREADS="no"
34731 fi
34732 fi
34733
34734 if test "$wxUSE_THREADS" = "yes" ; then
34735
34736
34737 THREAD_OPTS="-pthread"
34738 case "${host}" in
34739 *-*-solaris2* | *-*-sunos4* )
34740 if test "x$GCC" = "xyes"; then
34741 THREAD_OPTS="-pthreads $THREAD_OPTS"
34742 else
34743 THREAD_OPTS="-mt $THREAD_OPTS"
34744 fi
34745 ;;
34746 *-*-freebsd*)
34747 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34748 ;;
34749 *-*-darwin* | *-*-cygwin* )
34750 THREAD_OPTS=""
34751 ;;
34752 *-*-aix*)
34753 THREAD_OPTS="pthreads"
34754 ;;
34755 *-hp-hpux* )
0ccaeba3 34756 if test "x$GCC" != "xyes"; then
efdf6afe 34757 THREAD_OPTS=""
a848cd7e
SC
34758 fi
34759 ;;
34760
34761 *-*-irix* )
34762 if test "x$GCC" = "xyes"; then
34763 THREAD_OPTS=""
34764 fi
34765 ;;
34766
34767 *-*-*UnixWare*)
34768 if test "x$GCC" != "xyes"; then
34769 THREAD_OPTS="-Ethread"
34770 fi
34771 ;;
34772 esac
34773
34774 THREAD_OPTS="$THREAD_OPTS pthread none"
34775
34776 THREADS_OK=no
34777 for flag in $THREAD_OPTS; do
34778 case $flag in
34779 none)
34780 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34781echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34782 ;;
34783
34784 -*)
34785 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34786echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34787 THREADS_CFLAGS="$flag"
34788 ;;
34789
34790 *)
34791 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34792echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34793 THREADS_LINK="-l$flag"
34794 ;;
34795 esac
34796
34797 save_LIBS="$LIBS"
34798 save_CFLAGS="$CFLAGS"
34799 LIBS="$THREADS_LINK $LIBS"
34800 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34801
34802 cat >conftest.$ac_ext <<_ACEOF
34803/* confdefs.h. */
34804_ACEOF
34805cat confdefs.h >>conftest.$ac_ext
34806cat >>conftest.$ac_ext <<_ACEOF
34807/* end confdefs.h. */
34808#include <pthread.h>
34809int
34810main ()
34811{
34812pthread_create(0,0,0,0);
34813 ;
34814 return 0;
34815}
34816_ACEOF
34817rm -f conftest.$ac_objext conftest$ac_exeext
34818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34819 (eval $ac_link) 2>conftest.er1
a848cd7e 34820 ac_status=$?
ac1cb8d3
VS
34821 grep -v '^ *+' conftest.er1 >conftest.err
34822 rm -f conftest.er1
34823 cat conftest.err >&5
a848cd7e
SC
34824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34825 (exit $ac_status); } &&
6ebeb4c7 34826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34828 (eval $ac_try) 2>&5
34829 ac_status=$?
34830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831 (exit $ac_status); }; } &&
34832 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34834 (eval $ac_try) 2>&5
34835 ac_status=$?
34836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837 (exit $ac_status); }; }; then
34838 THREADS_OK=yes
34839else
34840 echo "$as_me: failed program was:" >&5
34841sed 's/^/| /' conftest.$ac_ext >&5
34842
34843fi
ac1cb8d3
VS
34844rm -f conftest.err conftest.$ac_objext \
34845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34846
34847 LIBS="$save_LIBS"
34848 CFLAGS="$save_CFLAGS"
34849
34850 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34851echo "${ECHO_T}$THREADS_OK" >&6
34852 if test "x$THREADS_OK" = "xyes"; then
34853 break;
34854 fi
34855
34856 THREADS_LINK=""
34857 THREADS_CFLAGS=""
34858 done
34859
34860 if test "x$THREADS_OK" != "xyes"; then
34861 wxUSE_THREADS=no
34862 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34863echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34864 else
34865 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34866 LIBS="$THREADS_LINK $LIBS"
34867
34868 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34869echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34870 flag=no
34871 case "${host}" in
34872 *-aix*)
34873 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34874 flag="-D_THREAD_SAFE"
34875 ;;
34876 *-freebsd*)
34877 flag="-D_THREAD_SAFE"
34878 ;;
34879 *-hp-hpux* )
34880 flag="-D_REENTRANT"
34881 if test "x$GCC" != "xyes"; then
34882 flag="$flag -D_RWSTD_MULTI_THREAD"
34883 fi
34884 ;;
34885 *solaris* | alpha*-osf*)
34886 flag="-D_REENTRANT"
34887 ;;
34888 esac
34889 echo "$as_me:$LINENO: result: ${flag}" >&5
34890echo "${ECHO_T}${flag}" >&6
34891 if test "x$flag" != xno; then
34892 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34893 fi
34894
34895 if test "x$THREADS_CFLAGS" != "x"; then
34896 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34897 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34898 fi
34899 fi
34900 fi
34901
34902 if test "$wxUSE_THREADS" = "yes" ; then
34903
34904for ac_func in thr_setconcurrency
34905do
34906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34907echo "$as_me:$LINENO: checking for $ac_func" >&5
34908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34909if eval "test \"\${$as_ac_var+set}\" = set"; then
34910 echo $ECHO_N "(cached) $ECHO_C" >&6
34911else
34912 cat >conftest.$ac_ext <<_ACEOF
34913/* confdefs.h. */
34914_ACEOF
34915cat confdefs.h >>conftest.$ac_ext
34916cat >>conftest.$ac_ext <<_ACEOF
34917/* end confdefs.h. */
ac1cb8d3
VS
34918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34920#define $ac_func innocuous_$ac_func
34921
a848cd7e
SC
34922/* System header to define __stub macros and hopefully few prototypes,
34923 which can conflict with char $ac_func (); below.
34924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34925 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34926
a848cd7e
SC
34927#ifdef __STDC__
34928# include <limits.h>
34929#else
34930# include <assert.h>
34931#endif
ac1cb8d3
VS
34932
34933#undef $ac_func
34934
a848cd7e
SC
34935/* Override any gcc2 internal prototype to avoid an error. */
34936#ifdef __cplusplus
34937extern "C"
34938{
34939#endif
34940/* We use char because int might match the return type of a gcc2
34941 builtin and then its argument prototype would still apply. */
34942char $ac_func ();
34943/* The GNU C library defines this for functions which it implements
34944 to always fail with ENOSYS. Some functions are actually named
34945 something starting with __ and the normal name is an alias. */
34946#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34947choke me
34948#else
34949char (*f) () = $ac_func;
34950#endif
34951#ifdef __cplusplus
34952}
34953#endif
34954
34955int
34956main ()
34957{
34958return f != $ac_func;
34959 ;
34960 return 0;
34961}
34962_ACEOF
34963rm -f conftest.$ac_objext conftest$ac_exeext
34964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34965 (eval $ac_link) 2>conftest.er1
a848cd7e 34966 ac_status=$?
ac1cb8d3
VS
34967 grep -v '^ *+' conftest.er1 >conftest.err
34968 rm -f conftest.er1
34969 cat conftest.err >&5
a848cd7e
SC
34970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971 (exit $ac_status); } &&
6ebeb4c7 34972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34974 (eval $ac_try) 2>&5
34975 ac_status=$?
34976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); }; } &&
34978 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34980 (eval $ac_try) 2>&5
34981 ac_status=$?
34982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983 (exit $ac_status); }; }; then
34984 eval "$as_ac_var=yes"
34985else
34986 echo "$as_me: failed program was:" >&5
34987sed 's/^/| /' conftest.$ac_ext >&5
34988
34989eval "$as_ac_var=no"
34990fi
ac1cb8d3
VS
34991rm -f conftest.err conftest.$ac_objext \
34992 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34993fi
34994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34995echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34996if test `eval echo '${'$as_ac_var'}'` = yes; then
34997 cat >>confdefs.h <<_ACEOF
34998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34999_ACEOF
35000
35001fi
35002done
35003
35004
6ebeb4c7
VZ
35005 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
35006echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
35007if test "${wx_cv_func_pthread_cleanup+set}" = set; then
35008 echo $ECHO_N "(cached) $ECHO_C" >&6
35009else
35010
35011 cat >conftest.$ac_ext <<_ACEOF
35012/* confdefs.h. */
35013_ACEOF
35014cat confdefs.h >>conftest.$ac_ext
35015cat >>conftest.$ac_ext <<_ACEOF
35016/* end confdefs.h. */
35017#include <pthread.h>
35018 void ThreadCleanupFunc(void *p);
35019
35020int
35021main ()
35022{
35023
35024 void *p;
35025 pthread_cleanup_push(ThreadCleanupFunc, p);
35026 pthread_cleanup_pop(0);
35027
35028 ;
35029 return 0;
35030}
35031_ACEOF
35032rm -f conftest.$ac_objext
35033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35034 (eval $ac_compile) 2>conftest.er1
35035 ac_status=$?
35036 grep -v '^ *+' conftest.er1 >conftest.err
35037 rm -f conftest.er1
35038 cat conftest.err >&5
35039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040 (exit $ac_status); } &&
35041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35043 (eval $ac_try) 2>&5
35044 ac_status=$?
35045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046 (exit $ac_status); }; } &&
35047 { ac_try='test -s conftest.$ac_objext'
35048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35049 (eval $ac_try) 2>&5
35050 ac_status=$?
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); }; }; then
35053
35054 wx_cv_func_pthread_cleanup=yes
35055
35056else
35057 echo "$as_me: failed program was:" >&5
35058sed 's/^/| /' conftest.$ac_ext >&5
35059
35060
35061 wx_cv_func_pthread_cleanup=no
35062
35063
35064fi
35065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35066
35067fi
35068echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
35069echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
35070 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
35071 cat >>confdefs.h <<\_ACEOF
35072#define wxHAVE_PTHREAD_CLEANUP 1
35073_ACEOF
35074
35075 fi
35076
a848cd7e
SC
35077
35078for ac_header in sched.h
35079do
35080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35081if eval "test \"\${$as_ac_Header+set}\" = set"; then
35082 echo "$as_me:$LINENO: checking for $ac_header" >&5
35083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35084if eval "test \"\${$as_ac_Header+set}\" = set"; then
35085 echo $ECHO_N "(cached) $ECHO_C" >&6
35086fi
35087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35089else
35090 # Is the header compilable?
35091echo "$as_me:$LINENO: checking $ac_header usability" >&5
35092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35093cat >conftest.$ac_ext <<_ACEOF
35094/* confdefs.h. */
35095_ACEOF
35096cat confdefs.h >>conftest.$ac_ext
35097cat >>conftest.$ac_ext <<_ACEOF
35098/* end confdefs.h. */
35099$ac_includes_default
35100#include <$ac_header>
35101_ACEOF
35102rm -f conftest.$ac_objext
35103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35104 (eval $ac_compile) 2>conftest.er1
a848cd7e 35105 ac_status=$?
ac1cb8d3
VS
35106 grep -v '^ *+' conftest.er1 >conftest.err
35107 rm -f conftest.er1
35108 cat conftest.err >&5
a848cd7e
SC
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); } &&
6ebeb4c7 35111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; } &&
35117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119 (eval $ac_try) 2>&5
35120 ac_status=$?
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); }; }; then
35123 ac_header_compiler=yes
35124else
35125 echo "$as_me: failed program was:" >&5
35126sed 's/^/| /' conftest.$ac_ext >&5
35127
35128ac_header_compiler=no
35129fi
ac1cb8d3 35130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35132echo "${ECHO_T}$ac_header_compiler" >&6
35133
35134# Is the header present?
35135echo "$as_me:$LINENO: checking $ac_header presence" >&5
35136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35137cat >conftest.$ac_ext <<_ACEOF
35138/* confdefs.h. */
35139_ACEOF
35140cat confdefs.h >>conftest.$ac_ext
35141cat >>conftest.$ac_ext <<_ACEOF
35142/* end confdefs.h. */
35143#include <$ac_header>
35144_ACEOF
35145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35147 ac_status=$?
35148 grep -v '^ *+' conftest.er1 >conftest.err
35149 rm -f conftest.er1
35150 cat conftest.err >&5
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); } >/dev/null; then
35153 if test -s conftest.err; then
35154 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35156 else
35157 ac_cpp_err=
35158 fi
35159else
35160 ac_cpp_err=yes
35161fi
35162if test -z "$ac_cpp_err"; then
35163 ac_header_preproc=yes
35164else
35165 echo "$as_me: failed program was:" >&5
35166sed 's/^/| /' conftest.$ac_ext >&5
35167
35168 ac_header_preproc=no
35169fi
35170rm -f conftest.err conftest.$ac_ext
35171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35172echo "${ECHO_T}$ac_header_preproc" >&6
35173
35174# So? What about this header?
ac1cb8d3
VS
35175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35176 yes:no: )
a848cd7e
SC
35177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35181 ac_header_preproc=yes
a848cd7e 35182 ;;
ac1cb8d3 35183 no:yes:* )
a848cd7e
SC
35184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35191echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35196 (
35197 cat <<\_ASBOX
ac1cb8d3
VS
35198## ----------------------------------------- ##
35199## Report this to wx-dev@lists.wxwidgets.org ##
35200## ----------------------------------------- ##
a848cd7e
SC
35201_ASBOX
35202 ) |
35203 sed "s/^/$as_me: WARNING: /" >&2
35204 ;;
35205esac
35206echo "$as_me:$LINENO: checking for $ac_header" >&5
35207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35208if eval "test \"\${$as_ac_Header+set}\" = set"; then
35209 echo $ECHO_N "(cached) $ECHO_C" >&6
35210else
ac1cb8d3 35211 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35212fi
35213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35215
35216fi
35217if test `eval echo '${'$as_ac_Header'}'` = yes; then
35218 cat >>confdefs.h <<_ACEOF
35219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35220_ACEOF
35221
35222fi
35223
35224done
35225
35226 if test "$ac_cv_header_sched_h" = "yes"; then
35227 echo "$as_me:$LINENO: checking for sched_yield" >&5
35228echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
35229if test "${ac_cv_func_sched_yield+set}" = set; then
35230 echo $ECHO_N "(cached) $ECHO_C" >&6
35231else
35232 cat >conftest.$ac_ext <<_ACEOF
35233/* confdefs.h. */
35234_ACEOF
35235cat confdefs.h >>conftest.$ac_ext
35236cat >>conftest.$ac_ext <<_ACEOF
35237/* end confdefs.h. */
ac1cb8d3
VS
35238/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
35239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35240#define sched_yield innocuous_sched_yield
35241
a848cd7e
SC
35242/* System header to define __stub macros and hopefully few prototypes,
35243 which can conflict with char sched_yield (); below.
35244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35245 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35246
a848cd7e
SC
35247#ifdef __STDC__
35248# include <limits.h>
35249#else
35250# include <assert.h>
35251#endif
ac1cb8d3
VS
35252
35253#undef sched_yield
35254
a848cd7e
SC
35255/* Override any gcc2 internal prototype to avoid an error. */
35256#ifdef __cplusplus
35257extern "C"
35258{
35259#endif
35260/* We use char because int might match the return type of a gcc2
35261 builtin and then its argument prototype would still apply. */
35262char sched_yield ();
35263/* The GNU C library defines this for functions which it implements
35264 to always fail with ENOSYS. Some functions are actually named
35265 something starting with __ and the normal name is an alias. */
35266#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
35267choke me
35268#else
35269char (*f) () = sched_yield;
35270#endif
35271#ifdef __cplusplus
35272}
35273#endif
35274
35275int
35276main ()
35277{
35278return f != sched_yield;
35279 ;
35280 return 0;
35281}
35282_ACEOF
35283rm -f conftest.$ac_objext conftest$ac_exeext
35284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35285 (eval $ac_link) 2>conftest.er1
a848cd7e 35286 ac_status=$?
ac1cb8d3
VS
35287 grep -v '^ *+' conftest.er1 >conftest.err
35288 rm -f conftest.er1
35289 cat conftest.err >&5
a848cd7e
SC
35290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291 (exit $ac_status); } &&
6ebeb4c7 35292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35294 (eval $ac_try) 2>&5
35295 ac_status=$?
35296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297 (exit $ac_status); }; } &&
35298 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35300 (eval $ac_try) 2>&5
35301 ac_status=$?
35302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303 (exit $ac_status); }; }; then
35304 ac_cv_func_sched_yield=yes
35305else
35306 echo "$as_me: failed program was:" >&5
35307sed 's/^/| /' conftest.$ac_ext >&5
35308
35309ac_cv_func_sched_yield=no
35310fi
ac1cb8d3
VS
35311rm -f conftest.err conftest.$ac_objext \
35312 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35313fi
35314echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
35315echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
35316if test $ac_cv_func_sched_yield = yes; then
35317 cat >>confdefs.h <<\_ACEOF
35318#define HAVE_SCHED_YIELD 1
35319_ACEOF
35320
35321else
35322
35323 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
35324echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
35325if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
35326 echo $ECHO_N "(cached) $ECHO_C" >&6
35327else
35328 ac_check_lib_save_LIBS=$LIBS
35329LIBS="-lposix4 $LIBS"
35330cat >conftest.$ac_ext <<_ACEOF
35331/* confdefs.h. */
35332_ACEOF
35333cat confdefs.h >>conftest.$ac_ext
35334cat >>conftest.$ac_ext <<_ACEOF
35335/* end confdefs.h. */
35336
35337/* Override any gcc2 internal prototype to avoid an error. */
35338#ifdef __cplusplus
35339extern "C"
35340#endif
35341/* We use char because int might match the return type of a gcc2
35342 builtin and then its argument prototype would still apply. */
35343char sched_yield ();
35344int
35345main ()
35346{
35347sched_yield ();
35348 ;
35349 return 0;
35350}
35351_ACEOF
35352rm -f conftest.$ac_objext conftest$ac_exeext
35353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35354 (eval $ac_link) 2>conftest.er1
a848cd7e 35355 ac_status=$?
ac1cb8d3
VS
35356 grep -v '^ *+' conftest.er1 >conftest.err
35357 rm -f conftest.er1
35358 cat conftest.err >&5
a848cd7e
SC
35359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360 (exit $ac_status); } &&
6ebeb4c7 35361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35363 (eval $ac_try) 2>&5
35364 ac_status=$?
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 (exit $ac_status); }; } &&
35367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35369 (eval $ac_try) 2>&5
35370 ac_status=$?
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); }; }; then
35373 ac_cv_lib_posix4_sched_yield=yes
35374else
35375 echo "$as_me: failed program was:" >&5
35376sed 's/^/| /' conftest.$ac_ext >&5
35377
35378ac_cv_lib_posix4_sched_yield=no
35379fi
ac1cb8d3
VS
35380rm -f conftest.err conftest.$ac_objext \
35381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35382LIBS=$ac_check_lib_save_LIBS
35383fi
35384echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
35385echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
35386if test $ac_cv_lib_posix4_sched_yield = yes; then
35387 cat >>confdefs.h <<\_ACEOF
35388#define HAVE_SCHED_YIELD 1
35389_ACEOF
35390 POSIX4_LINK=" -lposix4"
35391else
35392 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
35393echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
35394
35395fi
35396
35397
35398
35399fi
35400
35401 fi
35402
35403 HAVE_PRIOR_FUNCS=0
35404 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
35405echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
35406if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
35407 echo $ECHO_N "(cached) $ECHO_C" >&6
35408else
35409 cat >conftest.$ac_ext <<_ACEOF
35410/* confdefs.h. */
35411_ACEOF
35412cat confdefs.h >>conftest.$ac_ext
35413cat >>conftest.$ac_ext <<_ACEOF
35414/* end confdefs.h. */
ac1cb8d3
VS
35415/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35417#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35418
a848cd7e
SC
35419/* System header to define __stub macros and hopefully few prototypes,
35420 which can conflict with char pthread_attr_getschedpolicy (); below.
35421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35422 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35423
a848cd7e
SC
35424#ifdef __STDC__
35425# include <limits.h>
35426#else
35427# include <assert.h>
35428#endif
ac1cb8d3
VS
35429
35430#undef pthread_attr_getschedpolicy
35431
a848cd7e
SC
35432/* Override any gcc2 internal prototype to avoid an error. */
35433#ifdef __cplusplus
35434extern "C"
35435{
35436#endif
35437/* We use char because int might match the return type of a gcc2
35438 builtin and then its argument prototype would still apply. */
35439char pthread_attr_getschedpolicy ();
35440/* The GNU C library defines this for functions which it implements
35441 to always fail with ENOSYS. Some functions are actually named
35442 something starting with __ and the normal name is an alias. */
35443#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35444choke me
35445#else
35446char (*f) () = pthread_attr_getschedpolicy;
35447#endif
35448#ifdef __cplusplus
35449}
35450#endif
35451
35452int
35453main ()
35454{
35455return f != pthread_attr_getschedpolicy;
35456 ;
35457 return 0;
35458}
35459_ACEOF
35460rm -f conftest.$ac_objext conftest$ac_exeext
35461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35462 (eval $ac_link) 2>conftest.er1
a848cd7e 35463 ac_status=$?
ac1cb8d3
VS
35464 grep -v '^ *+' conftest.er1 >conftest.err
35465 rm -f conftest.er1
35466 cat conftest.err >&5
a848cd7e
SC
35467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35468 (exit $ac_status); } &&
6ebeb4c7 35469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35471 (eval $ac_try) 2>&5
35472 ac_status=$?
35473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474 (exit $ac_status); }; } &&
35475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477 (eval $ac_try) 2>&5
35478 ac_status=$?
35479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480 (exit $ac_status); }; }; then
35481 ac_cv_func_pthread_attr_getschedpolicy=yes
35482else
35483 echo "$as_me: failed program was:" >&5
35484sed 's/^/| /' conftest.$ac_ext >&5
35485
35486ac_cv_func_pthread_attr_getschedpolicy=no
35487fi
ac1cb8d3
VS
35488rm -f conftest.err conftest.$ac_objext \
35489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35490fi
35491echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35492echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35493if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35494 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35495echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35496if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35497 echo $ECHO_N "(cached) $ECHO_C" >&6
35498else
35499 cat >conftest.$ac_ext <<_ACEOF
35500/* confdefs.h. */
35501_ACEOF
35502cat confdefs.h >>conftest.$ac_ext
35503cat >>conftest.$ac_ext <<_ACEOF
35504/* end confdefs.h. */
ac1cb8d3
VS
35505/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35507#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35508
a848cd7e
SC
35509/* System header to define __stub macros and hopefully few prototypes,
35510 which can conflict with char pthread_attr_setschedparam (); below.
35511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35512 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35513
a848cd7e
SC
35514#ifdef __STDC__
35515# include <limits.h>
35516#else
35517# include <assert.h>
35518#endif
ac1cb8d3
VS
35519
35520#undef pthread_attr_setschedparam
35521
a848cd7e
SC
35522/* Override any gcc2 internal prototype to avoid an error. */
35523#ifdef __cplusplus
35524extern "C"
35525{
35526#endif
35527/* We use char because int might match the return type of a gcc2
35528 builtin and then its argument prototype would still apply. */
35529char pthread_attr_setschedparam ();
35530/* The GNU C library defines this for functions which it implements
35531 to always fail with ENOSYS. Some functions are actually named
35532 something starting with __ and the normal name is an alias. */
35533#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35534choke me
35535#else
35536char (*f) () = pthread_attr_setschedparam;
35537#endif
35538#ifdef __cplusplus
35539}
35540#endif
35541
35542int
35543main ()
35544{
35545return f != pthread_attr_setschedparam;
35546 ;
35547 return 0;
35548}
35549_ACEOF
35550rm -f conftest.$ac_objext conftest$ac_exeext
35551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35552 (eval $ac_link) 2>conftest.er1
a848cd7e 35553 ac_status=$?
ac1cb8d3
VS
35554 grep -v '^ *+' conftest.er1 >conftest.err
35555 rm -f conftest.er1
35556 cat conftest.err >&5
a848cd7e
SC
35557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558 (exit $ac_status); } &&
6ebeb4c7 35559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35561 (eval $ac_try) 2>&5
35562 ac_status=$?
35563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564 (exit $ac_status); }; } &&
35565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35567 (eval $ac_try) 2>&5
35568 ac_status=$?
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); }; }; then
35571 ac_cv_func_pthread_attr_setschedparam=yes
35572else
35573 echo "$as_me: failed program was:" >&5
35574sed 's/^/| /' conftest.$ac_ext >&5
35575
35576ac_cv_func_pthread_attr_setschedparam=no
35577fi
ac1cb8d3
VS
35578rm -f conftest.err conftest.$ac_objext \
35579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35580fi
35581echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35582echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35583if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35584 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35585echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35586if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35587 echo $ECHO_N "(cached) $ECHO_C" >&6
35588else
35589 cat >conftest.$ac_ext <<_ACEOF
35590/* confdefs.h. */
35591_ACEOF
35592cat confdefs.h >>conftest.$ac_ext
35593cat >>conftest.$ac_ext <<_ACEOF
35594/* end confdefs.h. */
ac1cb8d3
VS
35595/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35597#define sched_get_priority_max innocuous_sched_get_priority_max
35598
a848cd7e
SC
35599/* System header to define __stub macros and hopefully few prototypes,
35600 which can conflict with char sched_get_priority_max (); below.
35601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35603
a848cd7e
SC
35604#ifdef __STDC__
35605# include <limits.h>
35606#else
35607# include <assert.h>
35608#endif
ac1cb8d3
VS
35609
35610#undef sched_get_priority_max
35611
a848cd7e
SC
35612/* Override any gcc2 internal prototype to avoid an error. */
35613#ifdef __cplusplus
35614extern "C"
35615{
35616#endif
35617/* We use char because int might match the return type of a gcc2
35618 builtin and then its argument prototype would still apply. */
35619char sched_get_priority_max ();
35620/* The GNU C library defines this for functions which it implements
35621 to always fail with ENOSYS. Some functions are actually named
35622 something starting with __ and the normal name is an alias. */
35623#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35624choke me
35625#else
35626char (*f) () = sched_get_priority_max;
35627#endif
35628#ifdef __cplusplus
35629}
35630#endif
35631
35632int
35633main ()
35634{
35635return f != sched_get_priority_max;
35636 ;
35637 return 0;
35638}
35639_ACEOF
35640rm -f conftest.$ac_objext conftest$ac_exeext
35641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35642 (eval $ac_link) 2>conftest.er1
a848cd7e 35643 ac_status=$?
ac1cb8d3
VS
35644 grep -v '^ *+' conftest.er1 >conftest.err
35645 rm -f conftest.er1
35646 cat conftest.err >&5
a848cd7e
SC
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } &&
6ebeb4c7 35649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35651 (eval $ac_try) 2>&5
35652 ac_status=$?
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); }; } &&
35655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35657 (eval $ac_try) 2>&5
35658 ac_status=$?
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); }; }; then
35661 ac_cv_func_sched_get_priority_max=yes
35662else
35663 echo "$as_me: failed program was:" >&5
35664sed 's/^/| /' conftest.$ac_ext >&5
35665
35666ac_cv_func_sched_get_priority_max=no
35667fi
ac1cb8d3
VS
35668rm -f conftest.err conftest.$ac_objext \
35669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35670fi
35671echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35672echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35673if test $ac_cv_func_sched_get_priority_max = yes; then
35674 HAVE_PRIOR_FUNCS=1
35675else
35676 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35677echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35678if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35679 echo $ECHO_N "(cached) $ECHO_C" >&6
35680else
35681 ac_check_lib_save_LIBS=$LIBS
35682LIBS="-lposix4 $LIBS"
35683cat >conftest.$ac_ext <<_ACEOF
35684/* confdefs.h. */
35685_ACEOF
35686cat confdefs.h >>conftest.$ac_ext
35687cat >>conftest.$ac_ext <<_ACEOF
35688/* end confdefs.h. */
35689
35690/* Override any gcc2 internal prototype to avoid an error. */
35691#ifdef __cplusplus
35692extern "C"
35693#endif
35694/* We use char because int might match the return type of a gcc2
35695 builtin and then its argument prototype would still apply. */
35696char sched_get_priority_max ();
35697int
35698main ()
35699{
35700sched_get_priority_max ();
35701 ;
35702 return 0;
35703}
35704_ACEOF
35705rm -f conftest.$ac_objext conftest$ac_exeext
35706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35707 (eval $ac_link) 2>conftest.er1
a848cd7e 35708 ac_status=$?
ac1cb8d3
VS
35709 grep -v '^ *+' conftest.er1 >conftest.err
35710 rm -f conftest.er1
35711 cat conftest.err >&5
a848cd7e
SC
35712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35713 (exit $ac_status); } &&
6ebeb4c7 35714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35716 (eval $ac_try) 2>&5
35717 ac_status=$?
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); }; } &&
35720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35722 (eval $ac_try) 2>&5
35723 ac_status=$?
35724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); }; }; then
35726 ac_cv_lib_posix4_sched_get_priority_max=yes
35727else
35728 echo "$as_me: failed program was:" >&5
35729sed 's/^/| /' conftest.$ac_ext >&5
35730
35731ac_cv_lib_posix4_sched_get_priority_max=no
35732fi
ac1cb8d3
VS
35733rm -f conftest.err conftest.$ac_objext \
35734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35735LIBS=$ac_check_lib_save_LIBS
35736fi
35737echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35738echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35739if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35740
35741 HAVE_PRIOR_FUNCS=1
35742 POSIX4_LINK=" -lposix4"
35743
35744fi
35745
35746
35747fi
35748
35749
35750fi
35751
35752
35753fi
35754
35755
35756 if test "$HAVE_PRIOR_FUNCS" = 1; then
35757 cat >>confdefs.h <<\_ACEOF
35758#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35759_ACEOF
35760
35761 else
35762 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35763echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35764 fi
35765
35766 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35767echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35768if test "${ac_cv_func_pthread_cancel+set}" = set; then
35769 echo $ECHO_N "(cached) $ECHO_C" >&6
35770else
35771 cat >conftest.$ac_ext <<_ACEOF
35772/* confdefs.h. */
35773_ACEOF
35774cat confdefs.h >>conftest.$ac_ext
35775cat >>conftest.$ac_ext <<_ACEOF
35776/* end confdefs.h. */
ac1cb8d3
VS
35777/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35779#define pthread_cancel innocuous_pthread_cancel
35780
a848cd7e
SC
35781/* System header to define __stub macros and hopefully few prototypes,
35782 which can conflict with char pthread_cancel (); below.
35783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35784 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35785
a848cd7e
SC
35786#ifdef __STDC__
35787# include <limits.h>
35788#else
35789# include <assert.h>
35790#endif
ac1cb8d3
VS
35791
35792#undef pthread_cancel
35793
a848cd7e
SC
35794/* Override any gcc2 internal prototype to avoid an error. */
35795#ifdef __cplusplus
35796extern "C"
35797{
35798#endif
35799/* We use char because int might match the return type of a gcc2
35800 builtin and then its argument prototype would still apply. */
35801char pthread_cancel ();
35802/* The GNU C library defines this for functions which it implements
35803 to always fail with ENOSYS. Some functions are actually named
35804 something starting with __ and the normal name is an alias. */
35805#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35806choke me
35807#else
35808char (*f) () = pthread_cancel;
35809#endif
35810#ifdef __cplusplus
35811}
35812#endif
35813
35814int
35815main ()
35816{
35817return f != pthread_cancel;
35818 ;
35819 return 0;
35820}
35821_ACEOF
35822rm -f conftest.$ac_objext conftest$ac_exeext
35823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35824 (eval $ac_link) 2>conftest.er1
a848cd7e 35825 ac_status=$?
ac1cb8d3
VS
35826 grep -v '^ *+' conftest.er1 >conftest.err
35827 rm -f conftest.er1
35828 cat conftest.err >&5
a848cd7e
SC
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); } &&
6ebeb4c7 35831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35833 (eval $ac_try) 2>&5
35834 ac_status=$?
35835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836 (exit $ac_status); }; } &&
35837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35839 (eval $ac_try) 2>&5
35840 ac_status=$?
35841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842 (exit $ac_status); }; }; then
35843 ac_cv_func_pthread_cancel=yes
35844else
35845 echo "$as_me: failed program was:" >&5
35846sed 's/^/| /' conftest.$ac_ext >&5
35847
35848ac_cv_func_pthread_cancel=no
35849fi
ac1cb8d3
VS
35850rm -f conftest.err conftest.$ac_objext \
35851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35852fi
35853echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35854echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35855if test $ac_cv_func_pthread_cancel = yes; then
35856 cat >>confdefs.h <<\_ACEOF
35857#define HAVE_PTHREAD_CANCEL 1
35858_ACEOF
35859
35860else
35861 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35862echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35863fi
35864
35865
abc736fd
MW
35866 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
35867echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
35868if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
35869 echo $ECHO_N "(cached) $ECHO_C" >&6
35870else
35871 cat >conftest.$ac_ext <<_ACEOF
35872/* confdefs.h. */
35873_ACEOF
35874cat confdefs.h >>conftest.$ac_ext
35875cat >>conftest.$ac_ext <<_ACEOF
35876/* end confdefs.h. */
35877/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
35878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35879#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
35880
35881/* System header to define __stub macros and hopefully few prototypes,
35882 which can conflict with char pthread_attr_setstacksize (); below.
35883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35884 <limits.h> exists even on freestanding compilers. */
35885
35886#ifdef __STDC__
35887# include <limits.h>
35888#else
35889# include <assert.h>
35890#endif
35891
35892#undef pthread_attr_setstacksize
35893
35894/* Override any gcc2 internal prototype to avoid an error. */
35895#ifdef __cplusplus
35896extern "C"
35897{
35898#endif
35899/* We use char because int might match the return type of a gcc2
35900 builtin and then its argument prototype would still apply. */
35901char pthread_attr_setstacksize ();
35902/* The GNU C library defines this for functions which it implements
35903 to always fail with ENOSYS. Some functions are actually named
35904 something starting with __ and the normal name is an alias. */
35905#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
35906choke me
35907#else
35908char (*f) () = pthread_attr_setstacksize;
35909#endif
35910#ifdef __cplusplus
35911}
35912#endif
35913
35914int
35915main ()
35916{
35917return f != pthread_attr_setstacksize;
35918 ;
35919 return 0;
35920}
35921_ACEOF
35922rm -f conftest.$ac_objext conftest$ac_exeext
35923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35924 (eval $ac_link) 2>conftest.er1
35925 ac_status=$?
35926 grep -v '^ *+' conftest.er1 >conftest.err
35927 rm -f conftest.er1
35928 cat conftest.err >&5
35929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930 (exit $ac_status); } &&
6ebeb4c7 35931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
35932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35933 (eval $ac_try) 2>&5
35934 ac_status=$?
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); }; } &&
35937 { ac_try='test -s conftest$ac_exeext'
35938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35939 (eval $ac_try) 2>&5
35940 ac_status=$?
35941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942 (exit $ac_status); }; }; then
35943 ac_cv_func_pthread_attr_setstacksize=yes
35944else
35945 echo "$as_me: failed program was:" >&5
35946sed 's/^/| /' conftest.$ac_ext >&5
35947
35948ac_cv_func_pthread_attr_setstacksize=no
35949fi
35950rm -f conftest.err conftest.$ac_objext \
35951 conftest$ac_exeext conftest.$ac_ext
35952fi
35953echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
35954echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
35955if test $ac_cv_func_pthread_attr_setstacksize = yes; then
35956 cat >>confdefs.h <<\_ACEOF
35957#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
35958_ACEOF
35959
35960fi
35961
a848cd7e
SC
35962
35963
35964 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35965echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35966if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35967 echo $ECHO_N "(cached) $ECHO_C" >&6
35968else
35969
35970 cat >conftest.$ac_ext <<_ACEOF
35971/* confdefs.h. */
35972_ACEOF
35973cat confdefs.h >>conftest.$ac_ext
35974cat >>conftest.$ac_ext <<_ACEOF
35975/* end confdefs.h. */
35976#include <pthread.h>
35977int
35978main ()
35979{
35980
35981 pthread_mutexattr_t attr;
35982 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35983
35984 ;
35985 return 0;
35986}
35987_ACEOF
35988rm -f conftest.$ac_objext
35989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35990 (eval $ac_compile) 2>conftest.er1
a848cd7e 35991 ac_status=$?
ac1cb8d3
VS
35992 grep -v '^ *+' conftest.er1 >conftest.err
35993 rm -f conftest.er1
35994 cat conftest.err >&5
a848cd7e
SC
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); } &&
6ebeb4c7 35997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35999 (eval $ac_try) 2>&5
36000 ac_status=$?
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); }; } &&
36003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005 (eval $ac_try) 2>&5
36006 ac_status=$?
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); }; }; then
36009
36010 wx_cv_type_pthread_mutexattr_t=yes
36011
36012else
36013 echo "$as_me: failed program was:" >&5
36014sed 's/^/| /' conftest.$ac_ext >&5
36015
36016
36017 wx_cv_type_pthread_mutexattr_t=no
36018
36019
36020fi
ac1cb8d3 36021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36022
36023fi
36024echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
36025echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
36026
36027 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
36028 cat >>confdefs.h <<\_ACEOF
36029#define HAVE_PTHREAD_MUTEXATTR_T 1
36030_ACEOF
36031
36032 else
36033 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
36034echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
36035if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
36036 echo $ECHO_N "(cached) $ECHO_C" >&6
36037else
36038
36039 cat >conftest.$ac_ext <<_ACEOF
36040/* confdefs.h. */
36041_ACEOF
36042cat confdefs.h >>conftest.$ac_ext
36043cat >>conftest.$ac_ext <<_ACEOF
36044/* end confdefs.h. */
36045#include <pthread.h>
36046int
36047main ()
36048{
36049
36050 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
36051
36052 ;
36053 return 0;
36054}
36055_ACEOF
36056rm -f conftest.$ac_objext
36057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36058 (eval $ac_compile) 2>conftest.er1
a848cd7e 36059 ac_status=$?
ac1cb8d3
VS
36060 grep -v '^ *+' conftest.er1 >conftest.err
36061 rm -f conftest.er1
36062 cat conftest.err >&5
a848cd7e
SC
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); } &&
6ebeb4c7 36065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36067 (eval $ac_try) 2>&5
36068 ac_status=$?
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 (exit $ac_status); }; } &&
36071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36073 (eval $ac_try) 2>&5
36074 ac_status=$?
36075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076 (exit $ac_status); }; }; then
36077
36078 wx_cv_type_pthread_rec_mutex_init=yes
36079
36080else
36081 echo "$as_me: failed program was:" >&5
36082sed 's/^/| /' conftest.$ac_ext >&5
36083
36084
36085 wx_cv_type_pthread_rec_mutex_init=no
36086
36087
36088fi
ac1cb8d3 36089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36090
36091fi
36092echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
36093echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
36094 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
36095 cat >>confdefs.h <<\_ACEOF
36096#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
36097_ACEOF
36098
36099 else
36100 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
36101echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
36102 fi
36103 fi
36104 fi
36105
36106else
36107 if test "$wxUSE_THREADS" = "yes" ; then
36108 case "${host}" in
36109 *-*-mingw32* )
36110 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
36111echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
36112if test "${wx_cv_cflags_mthread+set}" = set; then
36113 echo $ECHO_N "(cached) $ECHO_C" >&6
36114else
36115
36116 CFLAGS_OLD="$CFLAGS"
36117 CFLAGS="$CFLAGS -mthreads"
36118 cat >conftest.$ac_ext <<_ACEOF
36119/* confdefs.h. */
36120_ACEOF
36121cat confdefs.h >>conftest.$ac_ext
36122cat >>conftest.$ac_ext <<_ACEOF
36123/* end confdefs.h. */
36124
36125int
36126main ()
36127{
36128
36129 ;
36130 return 0;
36131}
36132_ACEOF
36133rm -f conftest.$ac_objext
36134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36135 (eval $ac_compile) 2>conftest.er1
a848cd7e 36136 ac_status=$?
ac1cb8d3
VS
36137 grep -v '^ *+' conftest.er1 >conftest.err
36138 rm -f conftest.er1
36139 cat conftest.err >&5
a848cd7e
SC
36140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36141 (exit $ac_status); } &&
6ebeb4c7 36142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36144 (eval $ac_try) 2>&5
36145 ac_status=$?
36146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147 (exit $ac_status); }; } &&
36148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150 (eval $ac_try) 2>&5
36151 ac_status=$?
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); }; }; then
36154 wx_cv_cflags_mthread=yes
36155else
36156 echo "$as_me: failed program was:" >&5
36157sed 's/^/| /' conftest.$ac_ext >&5
36158
36159wx_cv_cflags_mthread=no
36160
36161fi
ac1cb8d3 36162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36163
36164
36165fi
36166echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
36167echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
36168
36169 if test "$wx_cv_cflags_mthread" = "yes"; then
36170 CXXFLAGS="$CXXFLAGS -mthreads"
36171 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
36172 LDFLAGS="$LDFLAGS -mthreads"
36173 else
36174 CFLAGS="$CFLAGS_OLD"
36175 fi
36176 ;;
36177 *-pc-os2*emx )
36178 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
36179 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
36180 LDFLAGS="$LDFLAGS -Zmt"
36181 ;;
36182 esac
36183 fi
36184fi
36185
36186if test "$wxUSE_THREADS" = "yes"; then
36187 cat >>confdefs.h <<\_ACEOF
36188#define wxUSE_THREADS 1
36189_ACEOF
36190
36191
36192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
36193else
36194 if test "$ac_cv_func_strtok_r" = "yes"; then
36195 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
36196echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
36197 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
36198 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
36199 echo "$as_me:$LINENO: result: yes" >&5
36200echo "${ECHO_T}yes" >&6
36201 else
36202 echo "$as_me:$LINENO: result: no" >&5
36203echo "${ECHO_T}no" >&6
36204 fi
36205 fi
36206fi
36207
36208if test "$WXGTK20" = 1 ; then
36209 cat >>confdefs.h <<_ACEOF
36210#define __WXGTK20__ $WXGTK20
36211_ACEOF
36212
36213 WXGTK12=1
36214fi
36215
36216if test "$WXGTK12" = 1 ; then
36217 cat >>confdefs.h <<_ACEOF
36218#define __WXGTK12__ $WXGTK12
36219_ACEOF
36220
36221fi
36222
36223if test "$WXGTK127" = 1 ; then
36224 cat >>confdefs.h <<_ACEOF
36225#define __WXGTK127__ $WXGTK127
36226_ACEOF
36227
36228fi
36229
36230if test "$WXGPE" = 1 ; then
36231 cat >>confdefs.h <<_ACEOF
36232#define __WXGPE__ $WXGPE
36233_ACEOF
36234
36235fi
36236
36237WXDEBUG=
36238
36239if test "$wxUSE_DEBUG_INFO" = "yes" ; then
36240 WXDEBUG="-g"
36241 wxUSE_OPTIMISE=no
36242fi
36243
36244if test "$wxUSE_DEBUG_GDB" = "yes" ; then
36245 wxUSE_DEBUG_INFO=yes
18228ab4
MW
36246 if test "$GCC" = yes; then
36247 WXDEBUG="-ggdb"
36248 fi
a848cd7e
SC
36249fi
36250
36251if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
36252 cat >>confdefs.h <<\_ACEOF
36253#define WXDEBUG 1
36254_ACEOF
36255
36256 WXDEBUG_DEFINE="-D__WXDEBUG__"
36257else
36258 if test "$wxUSE_GTK" = 1 ; then
36259 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
36260 fi
36261fi
36262
36263if test "$wxUSE_MEM_TRACING" = "yes" ; then
36264 cat >>confdefs.h <<\_ACEOF
36265#define wxUSE_MEMORY_TRACING 1
36266_ACEOF
36267
36268 cat >>confdefs.h <<\_ACEOF
36269#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
36270_ACEOF
36271
36272 cat >>confdefs.h <<\_ACEOF
36273#define wxUSE_DEBUG_NEW_ALWAYS 1
36274_ACEOF
36275
36276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
36277fi
36278
36279if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 36280 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
36281fi
36282
36283PROFILE=
36284if test "$wxUSE_PROFILE" = "yes" ; then
36285 PROFILE=" -pg"
36286fi
36287
36288CODE_GEN_FLAGS=
36289CODE_GEN_FLAGS_CXX=
36290if test "$GCC" = "yes" ; then
36291 if test "$wxUSE_NO_RTTI" = "yes" ; then
36292 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
36293 fi
36294 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36295 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
36296 fi
36297 if test "$wxUSE_PERMISSIVE" = "yes" ; then
36298 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
36299 fi
36300
36301 case "${host}" in
36302 powerpc*-*-aix* )
36303 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
36304 ;;
36305 *-hppa* )
36306 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
36307 ;;
36308 esac
36309fi
36310
36311OPTIMISE=
36312if test "$wxUSE_OPTIMISE" = "no" ; then
36313 if test "$GCC" = yes ; then
36314 OPTIMISE="-O0"
36315 fi
36316else
36317 if test "$GCC" = yes ; then
36318 OPTIMISE="-O2"
36319
36320 case "${host}" in
36321 i586-*-*|i686-*-* )
36322 OPTIMISE="${OPTIMISE} "
36323 ;;
36324 esac
36325 else
36326 OPTIMISE="-O"
36327 fi
36328fi
36329
36330
36331if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
36332 cat >>confdefs.h <<\_ACEOF
36333#define WXWIN_COMPATIBILITY_2_2 1
36334_ACEOF
36335
36336
36337 WXWIN_COMPATIBILITY_2_4="yes"
36338fi
36339
36340if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
36341 cat >>confdefs.h <<\_ACEOF
36342#define WXWIN_COMPATIBILITY_2_4 1
36343_ACEOF
36344
36345fi
36346
36347
36348if test "$wxUSE_GUI" = "yes"; then
881bfcd6 36349 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36350#define wxUSE_GUI 1
36351_ACEOF
36352
36353
370fd4c2 36354 fi
a848cd7e
SC
36355
36356
36357if test "$wxUSE_UNIX" = "yes"; then
36358 cat >>confdefs.h <<\_ACEOF
36359#define wxUSE_UNIX 1
36360_ACEOF
36361
36362fi
36363
36364
36365if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36366
36367 HAVE_DL_FUNCS=0
36368 HAVE_SHL_FUNCS=0
36369 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36370 if test "$USE_DARWIN" = 1; then
36371 HAVE_DL_FUNCS=1
47a7e797
MW
36372 elif test "$USE_DOS" = 1; then
36373 HAVE_DL_FUNCS=0
a848cd7e
SC
36374 else
36375
36376for ac_func in dlopen
36377do
36378as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36379echo "$as_me:$LINENO: checking for $ac_func" >&5
36380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36381if eval "test \"\${$as_ac_var+set}\" = set"; then
36382 echo $ECHO_N "(cached) $ECHO_C" >&6
36383else
36384 cat >conftest.$ac_ext <<_ACEOF
36385/* confdefs.h. */
36386_ACEOF
36387cat confdefs.h >>conftest.$ac_ext
36388cat >>conftest.$ac_ext <<_ACEOF
36389/* end confdefs.h. */
ac1cb8d3
VS
36390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36392#define $ac_func innocuous_$ac_func
36393
a848cd7e
SC
36394/* System header to define __stub macros and hopefully few prototypes,
36395 which can conflict with char $ac_func (); below.
36396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36397 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36398
a848cd7e
SC
36399#ifdef __STDC__
36400# include <limits.h>
36401#else
36402# include <assert.h>
36403#endif
ac1cb8d3
VS
36404
36405#undef $ac_func
36406
a848cd7e
SC
36407/* Override any gcc2 internal prototype to avoid an error. */
36408#ifdef __cplusplus
36409extern "C"
36410{
36411#endif
36412/* We use char because int might match the return type of a gcc2
36413 builtin and then its argument prototype would still apply. */
36414char $ac_func ();
36415/* The GNU C library defines this for functions which it implements
36416 to always fail with ENOSYS. Some functions are actually named
36417 something starting with __ and the normal name is an alias. */
36418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36419choke me
36420#else
36421char (*f) () = $ac_func;
36422#endif
36423#ifdef __cplusplus
36424}
36425#endif
36426
36427int
36428main ()
36429{
36430return f != $ac_func;
36431 ;
36432 return 0;
36433}
36434_ACEOF
36435rm -f conftest.$ac_objext conftest$ac_exeext
36436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36437 (eval $ac_link) 2>conftest.er1
a848cd7e 36438 ac_status=$?
ac1cb8d3
VS
36439 grep -v '^ *+' conftest.er1 >conftest.err
36440 rm -f conftest.er1
36441 cat conftest.err >&5
a848cd7e
SC
36442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36443 (exit $ac_status); } &&
6ebeb4c7 36444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36446 (eval $ac_try) 2>&5
36447 ac_status=$?
36448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36449 (exit $ac_status); }; } &&
36450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36452 (eval $ac_try) 2>&5
36453 ac_status=$?
36454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36455 (exit $ac_status); }; }; then
36456 eval "$as_ac_var=yes"
36457else
36458 echo "$as_me: failed program was:" >&5
36459sed 's/^/| /' conftest.$ac_ext >&5
36460
36461eval "$as_ac_var=no"
36462fi
ac1cb8d3
VS
36463rm -f conftest.err conftest.$ac_objext \
36464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36465fi
36466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36467echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36468if test `eval echo '${'$as_ac_var'}'` = yes; then
36469 cat >>confdefs.h <<_ACEOF
36470#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36471_ACEOF
36472
36473 cat >>confdefs.h <<\_ACEOF
36474#define HAVE_DLOPEN 1
36475_ACEOF
36476
36477 HAVE_DL_FUNCS=1
36478
36479else
36480
36481 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36482echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36483if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36484 echo $ECHO_N "(cached) $ECHO_C" >&6
36485else
36486 ac_check_lib_save_LIBS=$LIBS
36487LIBS="-ldl $LIBS"
36488cat >conftest.$ac_ext <<_ACEOF
36489/* confdefs.h. */
36490_ACEOF
36491cat confdefs.h >>conftest.$ac_ext
36492cat >>conftest.$ac_ext <<_ACEOF
36493/* end confdefs.h. */
36494
36495/* Override any gcc2 internal prototype to avoid an error. */
36496#ifdef __cplusplus
36497extern "C"
36498#endif
36499/* We use char because int might match the return type of a gcc2
36500 builtin and then its argument prototype would still apply. */
36501char dlopen ();
36502int
36503main ()
36504{
36505dlopen ();
36506 ;
36507 return 0;
36508}
36509_ACEOF
36510rm -f conftest.$ac_objext conftest$ac_exeext
36511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36512 (eval $ac_link) 2>conftest.er1
a848cd7e 36513 ac_status=$?
ac1cb8d3
VS
36514 grep -v '^ *+' conftest.er1 >conftest.err
36515 rm -f conftest.er1
36516 cat conftest.err >&5
a848cd7e
SC
36517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518 (exit $ac_status); } &&
6ebeb4c7 36519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36521 (eval $ac_try) 2>&5
36522 ac_status=$?
36523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524 (exit $ac_status); }; } &&
36525 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36527 (eval $ac_try) 2>&5
36528 ac_status=$?
36529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530 (exit $ac_status); }; }; then
36531 ac_cv_lib_dl_dlopen=yes
36532else
36533 echo "$as_me: failed program was:" >&5
36534sed 's/^/| /' conftest.$ac_ext >&5
36535
36536ac_cv_lib_dl_dlopen=no
36537fi
ac1cb8d3
VS
36538rm -f conftest.err conftest.$ac_objext \
36539 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36540LIBS=$ac_check_lib_save_LIBS
36541fi
36542echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36543echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36544if test $ac_cv_lib_dl_dlopen = yes; then
36545
36546 cat >>confdefs.h <<\_ACEOF
36547#define HAVE_DLOPEN 1
36548_ACEOF
36549
36550 HAVE_DL_FUNCS=1
36551 DL_LINK=" -ldl$DL_LINK"
36552
36553else
36554
36555
36556for ac_func in shl_load
36557do
36558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36559echo "$as_me:$LINENO: checking for $ac_func" >&5
36560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36561if eval "test \"\${$as_ac_var+set}\" = set"; then
36562 echo $ECHO_N "(cached) $ECHO_C" >&6
36563else
36564 cat >conftest.$ac_ext <<_ACEOF
36565/* confdefs.h. */
36566_ACEOF
36567cat confdefs.h >>conftest.$ac_ext
36568cat >>conftest.$ac_ext <<_ACEOF
36569/* end confdefs.h. */
ac1cb8d3
VS
36570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36572#define $ac_func innocuous_$ac_func
36573
a848cd7e
SC
36574/* System header to define __stub macros and hopefully few prototypes,
36575 which can conflict with char $ac_func (); below.
36576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36577 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36578
a848cd7e
SC
36579#ifdef __STDC__
36580# include <limits.h>
36581#else
36582# include <assert.h>
36583#endif
ac1cb8d3
VS
36584
36585#undef $ac_func
36586
a848cd7e
SC
36587/* Override any gcc2 internal prototype to avoid an error. */
36588#ifdef __cplusplus
36589extern "C"
36590{
36591#endif
36592/* We use char because int might match the return type of a gcc2
36593 builtin and then its argument prototype would still apply. */
36594char $ac_func ();
36595/* The GNU C library defines this for functions which it implements
36596 to always fail with ENOSYS. Some functions are actually named
36597 something starting with __ and the normal name is an alias. */
36598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36599choke me
36600#else
36601char (*f) () = $ac_func;
36602#endif
36603#ifdef __cplusplus
36604}
36605#endif
36606
36607int
36608main ()
36609{
36610return f != $ac_func;
36611 ;
36612 return 0;
36613}
36614_ACEOF
36615rm -f conftest.$ac_objext conftest$ac_exeext
36616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36617 (eval $ac_link) 2>conftest.er1
a848cd7e 36618 ac_status=$?
ac1cb8d3
VS
36619 grep -v '^ *+' conftest.er1 >conftest.err
36620 rm -f conftest.er1
36621 cat conftest.err >&5
a848cd7e
SC
36622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); } &&
6ebeb4c7 36624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36626 (eval $ac_try) 2>&5
36627 ac_status=$?
36628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36629 (exit $ac_status); }; } &&
36630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36632 (eval $ac_try) 2>&5
36633 ac_status=$?
36634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36635 (exit $ac_status); }; }; then
36636 eval "$as_ac_var=yes"
36637else
36638 echo "$as_me: failed program was:" >&5
36639sed 's/^/| /' conftest.$ac_ext >&5
36640
36641eval "$as_ac_var=no"
36642fi
ac1cb8d3
VS
36643rm -f conftest.err conftest.$ac_objext \
36644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36645fi
36646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36648if test `eval echo '${'$as_ac_var'}'` = yes; then
36649 cat >>confdefs.h <<_ACEOF
36650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36651_ACEOF
36652
36653 cat >>confdefs.h <<\_ACEOF
36654#define HAVE_SHL_LOAD 1
36655_ACEOF
36656
36657 HAVE_SHL_FUNCS=1
36658
36659else
36660
36661 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36662echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36663if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36664 echo $ECHO_N "(cached) $ECHO_C" >&6
36665else
36666 ac_check_lib_save_LIBS=$LIBS
36667LIBS="-lshl_load $LIBS"
36668cat >conftest.$ac_ext <<_ACEOF
36669/* confdefs.h. */
36670_ACEOF
36671cat confdefs.h >>conftest.$ac_ext
36672cat >>conftest.$ac_ext <<_ACEOF
36673/* end confdefs.h. */
36674
36675/* Override any gcc2 internal prototype to avoid an error. */
36676#ifdef __cplusplus
36677extern "C"
36678#endif
36679/* We use char because int might match the return type of a gcc2
36680 builtin and then its argument prototype would still apply. */
36681char dld ();
36682int
36683main ()
36684{
36685dld ();
36686 ;
36687 return 0;
36688}
36689_ACEOF
36690rm -f conftest.$ac_objext conftest$ac_exeext
36691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36692 (eval $ac_link) 2>conftest.er1
a848cd7e 36693 ac_status=$?
ac1cb8d3
VS
36694 grep -v '^ *+' conftest.er1 >conftest.err
36695 rm -f conftest.er1
36696 cat conftest.err >&5
a848cd7e
SC
36697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698 (exit $ac_status); } &&
6ebeb4c7 36699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36701 (eval $ac_try) 2>&5
36702 ac_status=$?
36703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704 (exit $ac_status); }; } &&
36705 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36707 (eval $ac_try) 2>&5
36708 ac_status=$?
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); }; }; then
36711 ac_cv_lib_shl_load_dld=yes
36712else
36713 echo "$as_me: failed program was:" >&5
36714sed 's/^/| /' conftest.$ac_ext >&5
36715
36716ac_cv_lib_shl_load_dld=no
36717fi
ac1cb8d3
VS
36718rm -f conftest.err conftest.$ac_objext \
36719 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36720LIBS=$ac_check_lib_save_LIBS
36721fi
36722echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36723echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36724if test $ac_cv_lib_shl_load_dld = yes; then
36725
36726 HAVE_SHL_FUNCS=1
36727 DL_LINK=" -ldld$DL_LINK"
36728
36729fi
36730
36731
36732fi
36733done
36734
36735
36736fi
36737
36738
36739fi
36740done
36741
36742
36743 if test "$HAVE_DL_FUNCS" = 1; then
36744
36745for ac_func in dlerror
36746do
36747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36748echo "$as_me:$LINENO: checking for $ac_func" >&5
36749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36750if eval "test \"\${$as_ac_var+set}\" = set"; then
36751 echo $ECHO_N "(cached) $ECHO_C" >&6
36752else
36753 cat >conftest.$ac_ext <<_ACEOF
36754/* confdefs.h. */
36755_ACEOF
36756cat confdefs.h >>conftest.$ac_ext
36757cat >>conftest.$ac_ext <<_ACEOF
36758/* end confdefs.h. */
ac1cb8d3
VS
36759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36761#define $ac_func innocuous_$ac_func
36762
a848cd7e
SC
36763/* System header to define __stub macros and hopefully few prototypes,
36764 which can conflict with char $ac_func (); below.
36765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36766 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36767
a848cd7e
SC
36768#ifdef __STDC__
36769# include <limits.h>
36770#else
36771# include <assert.h>
36772#endif
ac1cb8d3
VS
36773
36774#undef $ac_func
36775
a848cd7e
SC
36776/* Override any gcc2 internal prototype to avoid an error. */
36777#ifdef __cplusplus
36778extern "C"
36779{
36780#endif
36781/* We use char because int might match the return type of a gcc2
36782 builtin and then its argument prototype would still apply. */
36783char $ac_func ();
36784/* The GNU C library defines this for functions which it implements
36785 to always fail with ENOSYS. Some functions are actually named
36786 something starting with __ and the normal name is an alias. */
36787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36788choke me
36789#else
36790char (*f) () = $ac_func;
36791#endif
36792#ifdef __cplusplus
36793}
36794#endif
36795
36796int
36797main ()
36798{
36799return f != $ac_func;
36800 ;
36801 return 0;
36802}
36803_ACEOF
36804rm -f conftest.$ac_objext conftest$ac_exeext
36805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36806 (eval $ac_link) 2>conftest.er1
a848cd7e 36807 ac_status=$?
ac1cb8d3
VS
36808 grep -v '^ *+' conftest.er1 >conftest.err
36809 rm -f conftest.er1
36810 cat conftest.err >&5
a848cd7e
SC
36811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812 (exit $ac_status); } &&
6ebeb4c7 36813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36815 (eval $ac_try) 2>&5
36816 ac_status=$?
36817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818 (exit $ac_status); }; } &&
36819 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36821 (eval $ac_try) 2>&5
36822 ac_status=$?
36823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824 (exit $ac_status); }; }; then
36825 eval "$as_ac_var=yes"
36826else
36827 echo "$as_me: failed program was:" >&5
36828sed 's/^/| /' conftest.$ac_ext >&5
36829
36830eval "$as_ac_var=no"
36831fi
ac1cb8d3
VS
36832rm -f conftest.err conftest.$ac_objext \
36833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36834fi
36835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36836echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36837if test `eval echo '${'$as_ac_var'}'` = yes; then
36838 cat >>confdefs.h <<_ACEOF
36839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36840_ACEOF
36841 cat >>confdefs.h <<\_ACEOF
36842#define HAVE_DLERROR 1
36843_ACEOF
36844
36845else
36846
36847 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36848echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36849if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36850 echo $ECHO_N "(cached) $ECHO_C" >&6
36851else
36852 ac_check_lib_save_LIBS=$LIBS
36853LIBS="-ldl $LIBS"
36854cat >conftest.$ac_ext <<_ACEOF
36855/* confdefs.h. */
36856_ACEOF
36857cat confdefs.h >>conftest.$ac_ext
36858cat >>conftest.$ac_ext <<_ACEOF
36859/* end confdefs.h. */
36860
36861/* Override any gcc2 internal prototype to avoid an error. */
36862#ifdef __cplusplus
36863extern "C"
36864#endif
36865/* We use char because int might match the return type of a gcc2
36866 builtin and then its argument prototype would still apply. */
36867char dlerror ();
36868int
36869main ()
36870{
36871dlerror ();
36872 ;
36873 return 0;
36874}
36875_ACEOF
36876rm -f conftest.$ac_objext conftest$ac_exeext
36877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36878 (eval $ac_link) 2>conftest.er1
a848cd7e 36879 ac_status=$?
ac1cb8d3
VS
36880 grep -v '^ *+' conftest.er1 >conftest.err
36881 rm -f conftest.er1
36882 cat conftest.err >&5
a848cd7e
SC
36883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36884 (exit $ac_status); } &&
6ebeb4c7 36885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36887 (eval $ac_try) 2>&5
36888 ac_status=$?
36889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36890 (exit $ac_status); }; } &&
36891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36893 (eval $ac_try) 2>&5
36894 ac_status=$?
36895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896 (exit $ac_status); }; }; then
36897 ac_cv_lib_dl_dlerror=yes
36898else
36899 echo "$as_me: failed program was:" >&5
36900sed 's/^/| /' conftest.$ac_ext >&5
36901
36902ac_cv_lib_dl_dlerror=no
36903fi
ac1cb8d3
VS
36904rm -f conftest.err conftest.$ac_objext \
36905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36906LIBS=$ac_check_lib_save_LIBS
36907fi
36908echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36909echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36910if test $ac_cv_lib_dl_dlerror = yes; then
36911 cat >>confdefs.h <<\_ACEOF
36912#define HAVE_DLERROR 1
36913_ACEOF
36914
36915fi
36916
36917
36918
36919fi
36920done
36921
36922 fi
36923 fi
36924
36925 if test "$HAVE_DL_FUNCS" = 0; then
36926 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36927 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36928 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36929echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36930 wxUSE_DYNAMIC_LOADER=no
36931 wxUSE_DYNLIB_CLASS=no
36932 else
36933 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36934echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36935 fi
36936 fi
36937 fi
36938 fi
36939fi
36940
36941if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36942 cat >>confdefs.h <<\_ACEOF
36943#define wxUSE_DYNAMIC_LOADER 1
36944_ACEOF
36945
36946fi
36947if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36948 cat >>confdefs.h <<\_ACEOF
36949#define wxUSE_DYNLIB_CLASS 1
36950_ACEOF
36951
36952fi
36953
36954
36955
36956if test "$wxUSE_PLUGINS" = "yes" ; then
36957 if test "$wxUSE_SHARED" = "no" ; then
36958 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36959echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36960 wxUSE_PLUGINS=no
36961 fi
36962 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36963 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36964echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36965 wxUSE_PLUGINS=no
36966 fi
36967 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36968 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36969echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36970 wxUSE_PLUGINS=no
36971 fi
36972 if test "$wxUSE_PLUGINS" = "yes" ; then
36973 cat >>confdefs.h <<\_ACEOF
36974#define wxUSE_PLUGINS 1
36975_ACEOF
36976
36977 fi
36978fi
36979
36980
36981if test "$wxUSE_STL" = "yes"; then
36982 cat >>confdefs.h <<\_ACEOF
36983#define wxUSE_STL 1
36984_ACEOF
36985
36986fi
36987
36988if test "$wxUSE_APPLE_IEEE" = "yes"; then
36989 cat >>confdefs.h <<\_ACEOF
36990#define wxUSE_APPLE_IEEE 1
36991_ACEOF
36992
36993fi
36994
36995if test "$wxUSE_TIMER" = "yes"; then
36996 cat >>confdefs.h <<\_ACEOF
36997#define wxUSE_TIMER 1
36998_ACEOF
36999
37000fi
37001
9c112555 37002if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37003
37004for ac_header in sys/soundcard.h
37005do
37006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37007if eval "test \"\${$as_ac_Header+set}\" = set"; then
37008 echo "$as_me:$LINENO: checking for $ac_header" >&5
37009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37010if eval "test \"\${$as_ac_Header+set}\" = set"; then
37011 echo $ECHO_N "(cached) $ECHO_C" >&6
37012fi
37013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37015else
37016 # Is the header compilable?
37017echo "$as_me:$LINENO: checking $ac_header usability" >&5
37018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37019cat >conftest.$ac_ext <<_ACEOF
37020/* confdefs.h. */
37021_ACEOF
37022cat confdefs.h >>conftest.$ac_ext
37023cat >>conftest.$ac_ext <<_ACEOF
37024/* end confdefs.h. */
37025$ac_includes_default
37026#include <$ac_header>
37027_ACEOF
37028rm -f conftest.$ac_objext
37029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37030 (eval $ac_compile) 2>conftest.er1
a848cd7e 37031 ac_status=$?
ac1cb8d3
VS
37032 grep -v '^ *+' conftest.er1 >conftest.err
37033 rm -f conftest.er1
37034 cat conftest.err >&5
a848cd7e
SC
37035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036 (exit $ac_status); } &&
6ebeb4c7 37037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37039 (eval $ac_try) 2>&5
37040 ac_status=$?
37041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042 (exit $ac_status); }; } &&
37043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37045 (eval $ac_try) 2>&5
37046 ac_status=$?
37047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048 (exit $ac_status); }; }; then
37049 ac_header_compiler=yes
37050else
37051 echo "$as_me: failed program was:" >&5
37052sed 's/^/| /' conftest.$ac_ext >&5
37053
37054ac_header_compiler=no
37055fi
ac1cb8d3 37056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37057echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37058echo "${ECHO_T}$ac_header_compiler" >&6
37059
37060# Is the header present?
37061echo "$as_me:$LINENO: checking $ac_header presence" >&5
37062echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37063cat >conftest.$ac_ext <<_ACEOF
37064/* confdefs.h. */
37065_ACEOF
37066cat confdefs.h >>conftest.$ac_ext
37067cat >>conftest.$ac_ext <<_ACEOF
37068/* end confdefs.h. */
37069#include <$ac_header>
37070_ACEOF
37071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37073 ac_status=$?
37074 grep -v '^ *+' conftest.er1 >conftest.err
37075 rm -f conftest.er1
37076 cat conftest.err >&5
37077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078 (exit $ac_status); } >/dev/null; then
37079 if test -s conftest.err; then
37080 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37082 else
37083 ac_cpp_err=
37084 fi
37085else
37086 ac_cpp_err=yes
37087fi
37088if test -z "$ac_cpp_err"; then
37089 ac_header_preproc=yes
37090else
37091 echo "$as_me: failed program was:" >&5
37092sed 's/^/| /' conftest.$ac_ext >&5
37093
37094 ac_header_preproc=no
37095fi
37096rm -f conftest.err conftest.$ac_ext
37097echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37098echo "${ECHO_T}$ac_header_preproc" >&6
37099
37100# So? What about this header?
ac1cb8d3
VS
37101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37102 yes:no: )
a848cd7e
SC
37103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37106echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37107 ac_header_preproc=yes
a848cd7e 37108 ;;
ac1cb8d3 37109 no:yes:* )
a848cd7e
SC
37110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37111echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37113echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37115echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37117echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37119echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37121echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37122 (
37123 cat <<\_ASBOX
ac1cb8d3
VS
37124## ----------------------------------------- ##
37125## Report this to wx-dev@lists.wxwidgets.org ##
37126## ----------------------------------------- ##
a848cd7e
SC
37127_ASBOX
37128 ) |
37129 sed "s/^/$as_me: WARNING: /" >&2
37130 ;;
37131esac
37132echo "$as_me:$LINENO: checking for $ac_header" >&5
37133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37134if eval "test \"\${$as_ac_Header+set}\" = set"; then
37135 echo $ECHO_N "(cached) $ECHO_C" >&6
37136else
ac1cb8d3 37137 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37138fi
37139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37141
37142fi
37143if test `eval echo '${'$as_ac_Header'}'` = yes; then
37144 cat >>confdefs.h <<_ACEOF
37145#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37146_ACEOF
37147
9c112555
MW
37148else
37149 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
37150fi
37151
37152done
37153
9c112555
MW
37154fi
37155WITH_PLUGIN_SDL=0
37156if test "$wxUSE_SOUND" = "yes"; then
37157 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37158 if test "$wxUSE_LIBSDL" != "no"; then
37159
37160# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
37161if test "${with_sdl_prefix+set}" = set; then
37162 withval="$with_sdl_prefix"
37163 sdl_prefix="$withval"
37164else
37165 sdl_prefix=""
37166fi;
37167
37168# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
37169if test "${with_sdl_exec_prefix+set}" = set; then
37170 withval="$with_sdl_exec_prefix"
37171 sdl_exec_prefix="$withval"
37172else
37173 sdl_exec_prefix=""
37174fi;
37175# Check whether --enable-sdltest or --disable-sdltest was given.
37176if test "${enable_sdltest+set}" = set; then
37177 enableval="$enable_sdltest"
37178
37179else
37180 enable_sdltest=yes
37181fi;
37182
37183 if test x$sdl_exec_prefix != x ; then
37184 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
37185 if test x${SDL_CONFIG+set} != xset ; then
37186 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
37187 fi
37188 fi
37189 if test x$sdl_prefix != x ; then
37190 sdl_args="$sdl_args --prefix=$sdl_prefix"
37191 if test x${SDL_CONFIG+set} != xset ; then
37192 SDL_CONFIG=$sdl_prefix/bin/sdl-config
37193 fi
37194 fi
37195
37196
37197 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
37198 # Extract the first word of "sdl-config", so it can be a program name with args.
37199set dummy sdl-config; ac_word=$2
37200echo "$as_me:$LINENO: checking for $ac_word" >&5
37201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37202if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
37203 echo $ECHO_N "(cached) $ECHO_C" >&6
37204else
37205 case $SDL_CONFIG in
37206 [\\/]* | ?:[\\/]*)
37207 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
37208 ;;
37209 *)
37210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37211for as_dir in $PATH
37212do
37213 IFS=$as_save_IFS
37214 test -z "$as_dir" && as_dir=.
37215 for ac_exec_ext in '' $ac_executable_extensions; do
37216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37217 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37219 break 2
37220 fi
37221done
37222done
37223
37224 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
37225 ;;
37226esac
37227fi
37228SDL_CONFIG=$ac_cv_path_SDL_CONFIG
37229
37230if test -n "$SDL_CONFIG"; then
37231 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
37232echo "${ECHO_T}$SDL_CONFIG" >&6
37233else
37234 echo "$as_me:$LINENO: result: no" >&5
37235echo "${ECHO_T}no" >&6
37236fi
37237
37238 min_sdl_version=1.2.0
37239 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
37240echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
37241 no_sdl=""
37242 if test "$SDL_CONFIG" = "no" ; then
37243 no_sdl=yes
37244 else
37245 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
37246 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
37247
37248 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
37249 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37250 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
37251 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37252 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
37253 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37254 if test "x$enable_sdltest" = "xyes" ; then
37255 ac_save_CFLAGS="$CFLAGS"
94acd38e 37256 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
37257 ac_save_LIBS="$LIBS"
37258 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37259 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37260 LIBS="$LIBS $SDL_LIBS"
37261 rm -f conf.sdltest
37262 if test "$cross_compiling" = yes; then
37263 echo $ac_n "cross compiling; assumed OK... $ac_c"
37264else
37265 cat >conftest.$ac_ext <<_ACEOF
37266/* confdefs.h. */
37267_ACEOF
37268cat confdefs.h >>conftest.$ac_ext
37269cat >>conftest.$ac_ext <<_ACEOF
37270/* end confdefs.h. */
37271
37272#include <stdio.h>
37273#include <stdlib.h>
37274#include <string.h>
37275#include "SDL.h"
37276
37277char*
37278my_strdup (char *str)
37279{
37280 char *new_str;
37281
37282 if (str)
37283 {
37284 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
37285 strcpy (new_str, str);
37286 }
37287 else
37288 new_str = NULL;
37289
37290 return new_str;
37291}
37292
37293int main (int argc, char *argv[])
37294{
37295 int major, minor, micro;
37296 char *tmp_version;
37297
37298 /* This hangs on some systems (?)
37299 system ("touch conf.sdltest");
37300 */
37301 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
37302
37303 /* HP/UX 9 (%@#!) writes to sscanf strings */
37304 tmp_version = my_strdup("$min_sdl_version");
37305 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
37306 printf("%s, bad version string\n", "$min_sdl_version");
37307 exit(1);
37308 }
37309
37310 if (($sdl_major_version > major) ||
37311 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
37312 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
37313 {
37314 return 0;
37315 }
37316 else
37317 {
37318 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
37319 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
37320 printf("*** best to upgrade to the required version.\n");
37321 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
37322 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
37323 printf("*** config.cache before re-running configure\n");
37324 return 1;
37325 }
37326}
37327
37328
37329_ACEOF
37330rm -f conftest$ac_exeext
37331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37332 (eval $ac_link) 2>&5
37333 ac_status=$?
37334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37337 (eval $ac_try) 2>&5
37338 ac_status=$?
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); }; }; then
37341 :
37342else
37343 echo "$as_me: program exited with status $ac_status" >&5
37344echo "$as_me: failed program was:" >&5
37345sed 's/^/| /' conftest.$ac_ext >&5
37346
37347( exit $ac_status )
37348no_sdl=yes
37349fi
ac1cb8d3 37350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37351fi
37352 CFLAGS="$ac_save_CFLAGS"
94acd38e 37353 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37354 LIBS="$ac_save_LIBS"
37355 fi
37356 fi
37357 if test "x$no_sdl" = x ; then
37358 echo "$as_me:$LINENO: result: yes" >&5
37359echo "${ECHO_T}yes" >&6
37360
37361 EXTRALIBS_SDL="$SDL_LIBS"
37362 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
37363 cat >>confdefs.h <<\_ACEOF
37364#define wxUSE_LIBSDL 1
37365_ACEOF
37366
37367
37368 else
37369 echo "$as_me:$LINENO: result: no" >&5
37370echo "${ECHO_T}no" >&6
37371 if test "$SDL_CONFIG" = "no" ; then
37372 echo "*** The sdl-config script installed by SDL could not be found"
37373 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
37374 echo "*** your path, or set the SDL_CONFIG environment variable to the"
37375 echo "*** full path to sdl-config."
37376 else
37377 if test -f conf.sdltest ; then
37378 :
37379 else
37380 echo "*** Could not run SDL test program, checking why..."
37381 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37382 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37383 LIBS="$LIBS $SDL_LIBS"
37384 cat >conftest.$ac_ext <<_ACEOF
37385/* confdefs.h. */
37386_ACEOF
37387cat confdefs.h >>conftest.$ac_ext
37388cat >>conftest.$ac_ext <<_ACEOF
37389/* end confdefs.h. */
37390
37391#include <stdio.h>
37392#include "SDL.h"
37393
37394int main(int argc, char *argv[])
37395{ return 0; }
37396#undef main
37397#define main K_and_R_C_main
37398
37399int
37400main ()
37401{
37402 return 0;
37403 ;
37404 return 0;
37405}
37406_ACEOF
37407rm -f conftest.$ac_objext conftest$ac_exeext
37408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37409 (eval $ac_link) 2>conftest.er1
a848cd7e 37410 ac_status=$?
ac1cb8d3
VS
37411 grep -v '^ *+' conftest.er1 >conftest.err
37412 rm -f conftest.er1
37413 cat conftest.err >&5
a848cd7e
SC
37414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415 (exit $ac_status); } &&
6ebeb4c7 37416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418 (eval $ac_try) 2>&5
37419 ac_status=$?
37420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421 (exit $ac_status); }; } &&
37422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37424 (eval $ac_try) 2>&5
37425 ac_status=$?
37426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37427 (exit $ac_status); }; }; then
37428 echo "*** The test program compiled, but did not run. This usually means"
37429 echo "*** that the run-time linker is not finding SDL or finding the wrong"
37430 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
37431 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
37432 echo "*** to the installed location Also, make sure you have run ldconfig if that"
37433 echo "*** is required on your system"
37434 echo "***"
37435 echo "*** If you have an old version installed, it is best to remove it, although"
37436 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37437else
37438 echo "$as_me: failed program was:" >&5
37439sed 's/^/| /' conftest.$ac_ext >&5
37440
37441 echo "*** The test program failed to compile or link. See the file config.log for the"
37442 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37443 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37444 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37445fi
ac1cb8d3
VS
37446rm -f conftest.err conftest.$ac_objext \
37447 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37448 CFLAGS="$ac_save_CFLAGS"
94acd38e 37449 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37450 LIBS="$ac_save_LIBS"
37451 fi
37452 fi
37453 SDL_CFLAGS=""
37454 SDL_LIBS=""
37455 wxUSE_LIBSDL="no"
37456 fi
37457
37458
37459 rm -f conf.sdltest
37460
37461 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37462 WITH_PLUGIN_SDL=1
37463 fi
37464 fi
37465 fi
37466
37467 cat >>confdefs.h <<\_ACEOF
37468#define wxUSE_SOUND 1
37469_ACEOF
37470
37471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37472fi
37473
d1c38808
VZ
37474if test "$WXGTK20" = 1; then
37475 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37476 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37477
37478
37479 succeeded=no
37480
37481 if test -z "$PKG_CONFIG"; then
37482 # Extract the first word of "pkg-config", so it can be a program name with args.
37483set dummy pkg-config; ac_word=$2
37484echo "$as_me:$LINENO: checking for $ac_word" >&5
37485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37486if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37487 echo $ECHO_N "(cached) $ECHO_C" >&6
37488else
37489 case $PKG_CONFIG in
37490 [\\/]* | ?:[\\/]*)
37491 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37492 ;;
37493 *)
37494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37495for as_dir in $PATH
37496do
37497 IFS=$as_save_IFS
37498 test -z "$as_dir" && as_dir=.
37499 for ac_exec_ext in '' $ac_executable_extensions; do
37500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37501 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37503 break 2
37504 fi
37505done
37506done
37507
37508 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37509 ;;
37510esac
37511fi
37512PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37513
37514if test -n "$PKG_CONFIG"; then
37515 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37516echo "${ECHO_T}$PKG_CONFIG" >&6
37517else
37518 echo "$as_me:$LINENO: result: no" >&5
37519echo "${ECHO_T}no" >&6
37520fi
37521
37522 fi
37523
37524 if test "$PKG_CONFIG" = "no" ; then
37525 echo "*** The pkg-config script could not be found. Make sure it is"
37526 echo "*** in your path, or set the PKG_CONFIG environment variable"
37527 echo "*** to the full path to pkg-config."
37528 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37529 else
37530 PKG_CONFIG_MIN_VERSION=0.9.0
37531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37532 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37533echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37534
ffa762ff 37535 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37536 echo "$as_me:$LINENO: result: yes" >&5
37537echo "${ECHO_T}yes" >&6
37538 succeeded=yes
37539
37540 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37541echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37542 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37543 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37544echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37545
37546 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37547echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37548 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37549 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37550echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37551 else
37552 LIBGNOMEPRINTUI_CFLAGS=""
37553 LIBGNOMEPRINTUI_LIBS=""
37554 ## If we have a custom action on failure, don't print errors, but
37555 ## do set a variable so people can do so.
ffa762ff 37556 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37557
37558 fi
37559
37560
37561
37562 else
37563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37565 fi
37566 fi
37567
37568 if test $succeeded = yes; then
37569
d1c38808
VZ
37570 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37571 cat >>confdefs.h <<\_ACEOF
37572#define wxUSE_LIBGNOMEPRINT 1
37573_ACEOF
37574
37575
37576 else
37577
37578 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37579echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37580 wxUSE_LIBGNOMEPRINT="no"
37581
37582
37583 fi
37584
37585 fi
37586 fi
37587fi
37588
37589
a848cd7e
SC
37590if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37591 cat >>confdefs.h <<\_ACEOF
37592#define wxUSE_CMDLINE_PARSER 1
37593_ACEOF
37594
37595fi
37596
37597if test "$wxUSE_STOPWATCH" = "yes"; then
37598 cat >>confdefs.h <<\_ACEOF
37599#define wxUSE_STOPWATCH 1
37600_ACEOF
37601
37602fi
37603
37604if test "$wxUSE_DATETIME" = "yes"; then
37605 cat >>confdefs.h <<\_ACEOF
37606#define wxUSE_DATETIME 1
37607_ACEOF
37608
37609fi
37610
37611if test "$wxUSE_FILE" = "yes"; then
37612 cat >>confdefs.h <<\_ACEOF
37613#define wxUSE_FILE 1
37614_ACEOF
37615
37616fi
37617
37618if test "$wxUSE_FFILE" = "yes"; then
37619 cat >>confdefs.h <<\_ACEOF
37620#define wxUSE_FFILE 1
37621_ACEOF
37622
37623fi
37624
37625if test "$wxUSE_FILESYSTEM" = "yes"; then
37626 cat >>confdefs.h <<\_ACEOF
37627#define wxUSE_FILESYSTEM 1
37628_ACEOF
37629
37630fi
37631
37632if test "$wxUSE_FS_ZIP" = "yes"; then
37633 cat >>confdefs.h <<\_ACEOF
37634#define wxUSE_FS_ZIP 1
37635_ACEOF
37636
37637fi
37638
9e8e867f 37639if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37640 cat >>confdefs.h <<\_ACEOF
9e8e867f 37641#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37642_ACEOF
37643
37644fi
37645
37646if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37647 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37648 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37649echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37650 elif test "$wxUSE_ZLIB" = "no"; then
37651 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37652echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37653 else
37654 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37655#define wxUSE_ZIPSTREAM 1
37656_ACEOF
37657
81f90336 37658 fi
a848cd7e
SC
37659fi
37660
a848cd7e 37661if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37662 if test "$USE_UNIX" != 1; then
37663 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37664echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37665 wxUSE_ON_FATAL_EXCEPTION=no
37666 else
37667 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37668#define wxUSE_ON_FATAL_EXCEPTION 1
37669_ACEOF
37670
18228ab4 37671 fi
a848cd7e
SC
37672fi
37673
eaff0f0d
VZ
37674if test "$wxUSE_STACKWALKER" = "yes"; then
37675 cat >>confdefs.h <<\_ACEOF
37676#define wxUSE_STACKWALKER 1
37677_ACEOF
37678
37679fi
37680
36b6448c 37681if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37682 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37683 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37684echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37685 wxUSE_DEBUGREPORT=no
37686 else
37687 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37688#define wxUSE_DEBUGREPORT 1
37689_ACEOF
37690
21dfc162
MW
37691 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37693 fi
dfe0c803 37694 fi
36b6448c
VZ
37695fi
37696
a848cd7e
SC
37697if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37698 cat >>confdefs.h <<\_ACEOF
37699#define wxUSE_SNGLINST_CHECKER 1
37700_ACEOF
37701
37702fi
37703
37704if test "$wxUSE_BUSYINFO" = "yes"; then
37705 cat >>confdefs.h <<\_ACEOF
37706#define wxUSE_BUSYINFO 1
37707_ACEOF
37708
37709fi
37710
37711if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37712 cat >>confdefs.h <<\_ACEOF
37713#define wxUSE_STD_IOSTREAM 1
37714_ACEOF
37715
37716fi
37717
59746b65
MW
37718if test "$wxUSE_STD_STRING" = "yes"; then
37719 cat >>confdefs.h <<\_ACEOF
37720#define wxUSE_STD_STRING 1
37721_ACEOF
37722
37723fi
37724
07158944
VZ
37725if test "$wxUSE_STDPATHS" = "yes"; then
37726 cat >>confdefs.h <<\_ACEOF
37727#define wxUSE_STDPATHS 1
37728_ACEOF
37729
37730fi
37731
a848cd7e
SC
37732if test "$wxUSE_TEXTBUFFER" = "yes"; then
37733 cat >>confdefs.h <<\_ACEOF
37734#define wxUSE_TEXTBUFFER 1
37735_ACEOF
37736
37737fi
37738
37739if test "$wxUSE_TEXTFILE" = "yes"; then
37740 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37741 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37742echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37743 else
37744 cat >>confdefs.h <<\_ACEOF
37745#define wxUSE_TEXTFILE 1
37746_ACEOF
37747
37748 fi
37749fi
37750
37751if test "$wxUSE_CONFIG" = "yes" ; then
37752 if test "$wxUSE_TEXTFILE" != "yes"; then
37753 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37754echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37755 else
37756 cat >>confdefs.h <<\_ACEOF
37757#define wxUSE_CONFIG 1
89be85c2
VS
37758_ACEOF
37759
37760 cat >>confdefs.h <<\_ACEOF
37761#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37762_ACEOF
37763
37764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37765 fi
37766fi
37767
37768if test "$wxUSE_INTL" = "yes" ; then
37769 if test "$wxUSE_FILE" != "yes"; then
37770 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37771echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37772 else
37773 cat >>confdefs.h <<\_ACEOF
37774#define wxUSE_INTL 1
37775_ACEOF
37776
37777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37778 GUIDIST="$GUIDIST INTL_DIST"
37779 fi
37780fi
37781
37782if test "$wxUSE_LOG" = "yes"; then
37783 cat >>confdefs.h <<\_ACEOF
37784#define wxUSE_LOG 1
37785_ACEOF
37786
37787
37788 if test "$wxUSE_LOGGUI" = "yes"; then
37789 cat >>confdefs.h <<\_ACEOF
37790#define wxUSE_LOGGUI 1
37791_ACEOF
37792
37793 fi
37794
37795 if test "$wxUSE_LOGWINDOW" = "yes"; then
37796 cat >>confdefs.h <<\_ACEOF
37797#define wxUSE_LOGWINDOW 1
37798_ACEOF
37799
37800 fi
37801
37802 if test "$wxUSE_LOGDIALOG" = "yes"; then
37803 cat >>confdefs.h <<\_ACEOF
37804#define wxUSE_LOG_DIALOG 1
37805_ACEOF
37806
37807 fi
0b78747f
MW
37808
37809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37810fi
37811
37812if test "$wxUSE_LONGLONG" = "yes"; then
37813 cat >>confdefs.h <<\_ACEOF
37814#define wxUSE_LONGLONG 1
37815_ACEOF
37816
37817fi
37818
37819if test "$wxUSE_GEOMETRY" = "yes"; then
37820 cat >>confdefs.h <<\_ACEOF
37821#define wxUSE_GEOMETRY 1
37822_ACEOF
37823
37824fi
37825
a848cd7e
SC
37826if test "$wxUSE_STREAMS" = "yes" ; then
37827 cat >>confdefs.h <<\_ACEOF
37828#define wxUSE_STREAMS 1
37829_ACEOF
37830
37831fi
37832
37833
37834if test "$wxUSE_DATETIME" = "yes"; then
37835
37836for ac_func in strptime
37837do
37838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37839echo "$as_me:$LINENO: checking for $ac_func" >&5
37840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37841if eval "test \"\${$as_ac_var+set}\" = set"; then
37842 echo $ECHO_N "(cached) $ECHO_C" >&6
37843else
37844 cat >conftest.$ac_ext <<_ACEOF
37845/* confdefs.h. */
37846_ACEOF
37847cat confdefs.h >>conftest.$ac_ext
37848cat >>conftest.$ac_ext <<_ACEOF
37849/* end confdefs.h. */
ac1cb8d3
VS
37850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37852#define $ac_func innocuous_$ac_func
37853
a848cd7e
SC
37854/* System header to define __stub macros and hopefully few prototypes,
37855 which can conflict with char $ac_func (); below.
37856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37857 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37858
a848cd7e
SC
37859#ifdef __STDC__
37860# include <limits.h>
37861#else
37862# include <assert.h>
37863#endif
ac1cb8d3
VS
37864
37865#undef $ac_func
37866
a848cd7e
SC
37867/* Override any gcc2 internal prototype to avoid an error. */
37868#ifdef __cplusplus
37869extern "C"
37870{
37871#endif
37872/* We use char because int might match the return type of a gcc2
37873 builtin and then its argument prototype would still apply. */
37874char $ac_func ();
37875/* The GNU C library defines this for functions which it implements
37876 to always fail with ENOSYS. Some functions are actually named
37877 something starting with __ and the normal name is an alias. */
37878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37879choke me
37880#else
37881char (*f) () = $ac_func;
37882#endif
37883#ifdef __cplusplus
37884}
37885#endif
37886
37887int
37888main ()
37889{
37890return f != $ac_func;
37891 ;
37892 return 0;
37893}
37894_ACEOF
37895rm -f conftest.$ac_objext conftest$ac_exeext
37896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37897 (eval $ac_link) 2>conftest.er1
a848cd7e 37898 ac_status=$?
ac1cb8d3
VS
37899 grep -v '^ *+' conftest.er1 >conftest.err
37900 rm -f conftest.er1
37901 cat conftest.err >&5
a848cd7e
SC
37902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903 (exit $ac_status); } &&
6ebeb4c7 37904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37906 (eval $ac_try) 2>&5
37907 ac_status=$?
37908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909 (exit $ac_status); }; } &&
37910 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37912 (eval $ac_try) 2>&5
37913 ac_status=$?
37914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915 (exit $ac_status); }; }; then
37916 eval "$as_ac_var=yes"
37917else
37918 echo "$as_me: failed program was:" >&5
37919sed 's/^/| /' conftest.$ac_ext >&5
37920
37921eval "$as_ac_var=no"
37922fi
ac1cb8d3
VS
37923rm -f conftest.err conftest.$ac_objext \
37924 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37925fi
37926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37927echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37928if test `eval echo '${'$as_ac_var'}'` = yes; then
37929 cat >>confdefs.h <<_ACEOF
37930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37931_ACEOF
37932
37933fi
37934done
37935
37936
37937 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37938echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37939if test "${wx_cv_var_timezone+set}" = set; then
37940 echo $ECHO_N "(cached) $ECHO_C" >&6
37941else
37942
37943 cat >conftest.$ac_ext <<_ACEOF
37944/* confdefs.h. */
37945_ACEOF
37946cat confdefs.h >>conftest.$ac_ext
37947cat >>conftest.$ac_ext <<_ACEOF
37948/* end confdefs.h. */
37949
37950 #include <time.h>
37951
37952int
37953main ()
37954{
37955
37956 int tz;
37957 tz = timezone;
37958
37959 ;
37960 return 0;
37961}
37962_ACEOF
37963rm -f conftest.$ac_objext
37964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37965 (eval $ac_compile) 2>conftest.er1
a848cd7e 37966 ac_status=$?
ac1cb8d3
VS
37967 grep -v '^ *+' conftest.er1 >conftest.err
37968 rm -f conftest.er1
37969 cat conftest.err >&5
a848cd7e
SC
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); } &&
6ebeb4c7 37972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974 (eval $ac_try) 2>&5
37975 ac_status=$?
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); }; } &&
37978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37980 (eval $ac_try) 2>&5
37981 ac_status=$?
37982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983 (exit $ac_status); }; }; then
37984
37985 wx_cv_var_timezone=timezone
37986
37987else
37988 echo "$as_me: failed program was:" >&5
37989sed 's/^/| /' conftest.$ac_ext >&5
37990
37991
37992 cat >conftest.$ac_ext <<_ACEOF
37993/* confdefs.h. */
37994_ACEOF
37995cat confdefs.h >>conftest.$ac_ext
37996cat >>conftest.$ac_ext <<_ACEOF
37997/* end confdefs.h. */
37998
37999 #include <time.h>
38000
38001int
38002main ()
38003{
38004
38005 int tz;
38006 tz = _timezone;
38007
38008 ;
38009 return 0;
38010}
38011_ACEOF
38012rm -f conftest.$ac_objext
38013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38014 (eval $ac_compile) 2>conftest.er1
a848cd7e 38015 ac_status=$?
ac1cb8d3
VS
38016 grep -v '^ *+' conftest.er1 >conftest.err
38017 rm -f conftest.er1
38018 cat conftest.err >&5
a848cd7e
SC
38019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38020 (exit $ac_status); } &&
6ebeb4c7 38021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38023 (eval $ac_try) 2>&5
38024 ac_status=$?
38025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38026 (exit $ac_status); }; } &&
38027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38029 (eval $ac_try) 2>&5
38030 ac_status=$?
38031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38032 (exit $ac_status); }; }; then
38033
38034 wx_cv_var_timezone=_timezone
38035
38036else
38037 echo "$as_me: failed program was:" >&5
38038sed 's/^/| /' conftest.$ac_ext >&5
38039
38040
38041 cat >conftest.$ac_ext <<_ACEOF
38042/* confdefs.h. */
38043_ACEOF
38044cat confdefs.h >>conftest.$ac_ext
38045cat >>conftest.$ac_ext <<_ACEOF
38046/* end confdefs.h. */
38047
38048 #include <time.h>
38049
38050int
38051main ()
38052{
38053
38054 int tz;
38055 tz = __timezone;
38056
38057 ;
38058 return 0;
38059}
38060_ACEOF
38061rm -f conftest.$ac_objext
38062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38063 (eval $ac_compile) 2>conftest.er1
a848cd7e 38064 ac_status=$?
ac1cb8d3
VS
38065 grep -v '^ *+' conftest.er1 >conftest.err
38066 rm -f conftest.er1
38067 cat conftest.err >&5
a848cd7e
SC
38068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); } &&
6ebeb4c7 38070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38072 (eval $ac_try) 2>&5
38073 ac_status=$?
38074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38075 (exit $ac_status); }; } &&
38076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38078 (eval $ac_try) 2>&5
38079 ac_status=$?
38080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38081 (exit $ac_status); }; }; then
38082
38083 wx_cv_var_timezone=__timezone
38084
38085else
38086 echo "$as_me: failed program was:" >&5
38087sed 's/^/| /' conftest.$ac_ext >&5
38088
38089
38090 if test "$USE_DOS" = 0 ; then
38091 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
38092echo "$as_me: WARNING: no timezone variable" >&2;}
38093 fi
38094
38095
38096fi
ac1cb8d3 38097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38098
38099
38100fi
ac1cb8d3 38101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38102
38103
38104fi
ac1cb8d3 38105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38106
38107
38108fi
38109echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
38110echo "${ECHO_T}$wx_cv_var_timezone" >&6
38111
38112 if test "x$wx_cv_var_timezone" != x ; then
38113 cat >>confdefs.h <<_ACEOF
38114#define WX_TIMEZONE $wx_cv_var_timezone
38115_ACEOF
38116
38117 fi
38118
38119
38120for ac_func in localtime
38121do
38122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38123echo "$as_me:$LINENO: checking for $ac_func" >&5
38124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38125if eval "test \"\${$as_ac_var+set}\" = set"; then
38126 echo $ECHO_N "(cached) $ECHO_C" >&6
38127else
38128 cat >conftest.$ac_ext <<_ACEOF
38129/* confdefs.h. */
38130_ACEOF
38131cat confdefs.h >>conftest.$ac_ext
38132cat >>conftest.$ac_ext <<_ACEOF
38133/* end confdefs.h. */
ac1cb8d3
VS
38134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38136#define $ac_func innocuous_$ac_func
38137
a848cd7e
SC
38138/* System header to define __stub macros and hopefully few prototypes,
38139 which can conflict with char $ac_func (); below.
38140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38141 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38142
a848cd7e
SC
38143#ifdef __STDC__
38144# include <limits.h>
38145#else
38146# include <assert.h>
38147#endif
ac1cb8d3
VS
38148
38149#undef $ac_func
38150
a848cd7e
SC
38151/* Override any gcc2 internal prototype to avoid an error. */
38152#ifdef __cplusplus
38153extern "C"
38154{
38155#endif
38156/* We use char because int might match the return type of a gcc2
38157 builtin and then its argument prototype would still apply. */
38158char $ac_func ();
38159/* The GNU C library defines this for functions which it implements
38160 to always fail with ENOSYS. Some functions are actually named
38161 something starting with __ and the normal name is an alias. */
38162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38163choke me
38164#else
38165char (*f) () = $ac_func;
38166#endif
38167#ifdef __cplusplus
38168}
38169#endif
38170
38171int
38172main ()
38173{
38174return f != $ac_func;
38175 ;
38176 return 0;
38177}
38178_ACEOF
38179rm -f conftest.$ac_objext conftest$ac_exeext
38180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38181 (eval $ac_link) 2>conftest.er1
a848cd7e 38182 ac_status=$?
ac1cb8d3
VS
38183 grep -v '^ *+' conftest.er1 >conftest.err
38184 rm -f conftest.er1
38185 cat conftest.err >&5
a848cd7e
SC
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); } &&
6ebeb4c7 38188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38190 (eval $ac_try) 2>&5
38191 ac_status=$?
38192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193 (exit $ac_status); }; } &&
38194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38196 (eval $ac_try) 2>&5
38197 ac_status=$?
38198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); }; }; then
38200 eval "$as_ac_var=yes"
38201else
38202 echo "$as_me: failed program was:" >&5
38203sed 's/^/| /' conftest.$ac_ext >&5
38204
38205eval "$as_ac_var=no"
38206fi
ac1cb8d3
VS
38207rm -f conftest.err conftest.$ac_objext \
38208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38209fi
38210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38211echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38212if test `eval echo '${'$as_ac_var'}'` = yes; then
38213 cat >>confdefs.h <<_ACEOF
38214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38215_ACEOF
38216
38217fi
38218done
38219
38220
38221 if test "$ac_cv_func_localtime" = "yes"; then
38222 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
38223echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
38224if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
38225 echo $ECHO_N "(cached) $ECHO_C" >&6
38226else
38227
38228 cat >conftest.$ac_ext <<_ACEOF
38229/* confdefs.h. */
38230_ACEOF
38231cat confdefs.h >>conftest.$ac_ext
38232cat >>conftest.$ac_ext <<_ACEOF
38233/* end confdefs.h. */
38234
38235 #include <time.h>
38236
38237int
38238main ()
38239{
38240
38241 struct tm tm;
38242 tm.tm_gmtoff++;
38243
38244 ;
38245 return 0;
38246}
38247_ACEOF
38248rm -f conftest.$ac_objext
38249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38250 (eval $ac_compile) 2>conftest.er1
a848cd7e 38251 ac_status=$?
ac1cb8d3
VS
38252 grep -v '^ *+' conftest.er1 >conftest.err
38253 rm -f conftest.er1
38254 cat conftest.err >&5
a848cd7e
SC
38255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38256 (exit $ac_status); } &&
6ebeb4c7 38257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38259 (eval $ac_try) 2>&5
38260 ac_status=$?
38261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262 (exit $ac_status); }; } &&
38263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38265 (eval $ac_try) 2>&5
38266 ac_status=$?
38267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268 (exit $ac_status); }; }; then
38269
38270 wx_cv_struct_tm_has_gmtoff=yes
38271
38272else
38273 echo "$as_me: failed program was:" >&5
38274sed 's/^/| /' conftest.$ac_ext >&5
38275
38276wx_cv_struct_tm_has_gmtoff=no
38277
38278fi
ac1cb8d3 38279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38280
38281fi
38282echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
38283echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
38284 fi
38285
38286 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
38287 cat >>confdefs.h <<\_ACEOF
38288#define WX_GMTOFF_IN_TM 1
38289_ACEOF
38290
38291 fi
38292
38293
38294
38295for ac_func in gettimeofday ftime
38296do
38297as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38298echo "$as_me:$LINENO: checking for $ac_func" >&5
38299echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38300if eval "test \"\${$as_ac_var+set}\" = set"; then
38301 echo $ECHO_N "(cached) $ECHO_C" >&6
38302else
38303 cat >conftest.$ac_ext <<_ACEOF
38304/* confdefs.h. */
38305_ACEOF
38306cat confdefs.h >>conftest.$ac_ext
38307cat >>conftest.$ac_ext <<_ACEOF
38308/* end confdefs.h. */
ac1cb8d3
VS
38309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38311#define $ac_func innocuous_$ac_func
38312
a848cd7e
SC
38313/* System header to define __stub macros and hopefully few prototypes,
38314 which can conflict with char $ac_func (); below.
38315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38316 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38317
a848cd7e
SC
38318#ifdef __STDC__
38319# include <limits.h>
38320#else
38321# include <assert.h>
38322#endif
ac1cb8d3
VS
38323
38324#undef $ac_func
38325
a848cd7e
SC
38326/* Override any gcc2 internal prototype to avoid an error. */
38327#ifdef __cplusplus
38328extern "C"
38329{
38330#endif
38331/* We use char because int might match the return type of a gcc2
38332 builtin and then its argument prototype would still apply. */
38333char $ac_func ();
38334/* The GNU C library defines this for functions which it implements
38335 to always fail with ENOSYS. Some functions are actually named
38336 something starting with __ and the normal name is an alias. */
38337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38338choke me
38339#else
38340char (*f) () = $ac_func;
38341#endif
38342#ifdef __cplusplus
38343}
38344#endif
38345
38346int
38347main ()
38348{
38349return f != $ac_func;
38350 ;
38351 return 0;
38352}
38353_ACEOF
38354rm -f conftest.$ac_objext conftest$ac_exeext
38355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38356 (eval $ac_link) 2>conftest.er1
a848cd7e 38357 ac_status=$?
ac1cb8d3
VS
38358 grep -v '^ *+' conftest.er1 >conftest.err
38359 rm -f conftest.er1
38360 cat conftest.err >&5
a848cd7e
SC
38361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362 (exit $ac_status); } &&
6ebeb4c7 38363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38365 (eval $ac_try) 2>&5
38366 ac_status=$?
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); }; } &&
38369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38371 (eval $ac_try) 2>&5
38372 ac_status=$?
38373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374 (exit $ac_status); }; }; then
38375 eval "$as_ac_var=yes"
38376else
38377 echo "$as_me: failed program was:" >&5
38378sed 's/^/| /' conftest.$ac_ext >&5
38379
38380eval "$as_ac_var=no"
38381fi
ac1cb8d3
VS
38382rm -f conftest.err conftest.$ac_objext \
38383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38384fi
38385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38387if test `eval echo '${'$as_ac_var'}'` = yes; then
38388 cat >>confdefs.h <<_ACEOF
38389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38390_ACEOF
38391 break
38392fi
38393done
38394
38395
38396 if test "$ac_cv_func_gettimeofday" = "yes"; then
38397 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
38398echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
38399if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
38400 echo $ECHO_N "(cached) $ECHO_C" >&6
38401else
38402
38403
38404
38405 ac_ext=cc
38406ac_cpp='$CXXCPP $CPPFLAGS'
38407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38410
38411
38412 cat >conftest.$ac_ext <<_ACEOF
38413/* confdefs.h. */
38414_ACEOF
38415cat confdefs.h >>conftest.$ac_ext
38416cat >>conftest.$ac_ext <<_ACEOF
38417/* end confdefs.h. */
38418
38419 #include <sys/time.h>
38420 #include <unistd.h>
38421
38422int
38423main ()
38424{
38425
38426 struct timeval tv;
38427 gettimeofday(&tv, NULL);
38428
38429 ;
38430 return 0;
38431}
38432_ACEOF
38433rm -f conftest.$ac_objext
38434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38435 (eval $ac_compile) 2>conftest.er1
a848cd7e 38436 ac_status=$?
ac1cb8d3
VS
38437 grep -v '^ *+' conftest.er1 >conftest.err
38438 rm -f conftest.er1
38439 cat conftest.err >&5
a848cd7e
SC
38440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38441 (exit $ac_status); } &&
6ebeb4c7 38442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38444 (eval $ac_try) 2>&5
38445 ac_status=$?
38446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447 (exit $ac_status); }; } &&
38448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450 (eval $ac_try) 2>&5
38451 ac_status=$?
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); }; }; then
38454 wx_cv_func_gettimeofday_has_2_args=yes
38455else
38456 echo "$as_me: failed program was:" >&5
38457sed 's/^/| /' conftest.$ac_ext >&5
38458
38459cat >conftest.$ac_ext <<_ACEOF
38460/* confdefs.h. */
38461_ACEOF
38462cat confdefs.h >>conftest.$ac_ext
38463cat >>conftest.$ac_ext <<_ACEOF
38464/* end confdefs.h. */
38465
38466 #include <sys/time.h>
38467 #include <unistd.h>
38468
38469int
38470main ()
38471{
38472
38473 struct timeval tv;
38474 gettimeofday(&tv);
38475
38476 ;
38477 return 0;
38478}
38479_ACEOF
38480rm -f conftest.$ac_objext
38481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38482 (eval $ac_compile) 2>conftest.er1
a848cd7e 38483 ac_status=$?
ac1cb8d3
VS
38484 grep -v '^ *+' conftest.er1 >conftest.err
38485 rm -f conftest.er1
38486 cat conftest.err >&5
a848cd7e
SC
38487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38488 (exit $ac_status); } &&
6ebeb4c7 38489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38491 (eval $ac_try) 2>&5
38492 ac_status=$?
38493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38494 (exit $ac_status); }; } &&
38495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38497 (eval $ac_try) 2>&5
38498 ac_status=$?
38499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500 (exit $ac_status); }; }; then
38501 wx_cv_func_gettimeofday_has_2_args=no
38502else
38503 echo "$as_me: failed program was:" >&5
38504sed 's/^/| /' conftest.$ac_ext >&5
38505
38506
38507 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38508echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38509 wx_cv_func_gettimeofday_has_2_args=unknown
38510
38511
38512fi
ac1cb8d3 38513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38514
38515fi
ac1cb8d3 38516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38517 ac_ext=c
38518ac_cpp='$CPP $CPPFLAGS'
38519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38521ac_compiler_gnu=$ac_cv_c_compiler_gnu
38522
38523
38524fi
38525echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38526echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38527
38528 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38529 cat >>confdefs.h <<\_ACEOF
38530#define WX_GETTIMEOFDAY_NO_TZ 1
38531_ACEOF
38532
38533 fi
38534 fi
38535
38536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38537fi
38538
38539
38540if test "$wxUSE_SOCKETS" = "yes"; then
38541 if test "$wxUSE_MGL" = "1"; then
38542 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38543echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38544 wxUSE_SOCKETS="no"
38545 fi
38546fi
38547
38548if test "$wxUSE_SOCKETS" = "yes"; then
38549 if test "$TOOLKIT" != "MSW"; then
38550 echo "$as_me:$LINENO: checking for socket" >&5
38551echo $ECHO_N "checking for socket... $ECHO_C" >&6
38552if test "${ac_cv_func_socket+set}" = set; then
38553 echo $ECHO_N "(cached) $ECHO_C" >&6
38554else
38555 cat >conftest.$ac_ext <<_ACEOF
38556/* confdefs.h. */
38557_ACEOF
38558cat confdefs.h >>conftest.$ac_ext
38559cat >>conftest.$ac_ext <<_ACEOF
38560/* end confdefs.h. */
ac1cb8d3
VS
38561/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38563#define socket innocuous_socket
38564
a848cd7e
SC
38565/* System header to define __stub macros and hopefully few prototypes,
38566 which can conflict with char socket (); below.
38567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38568 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38569
a848cd7e
SC
38570#ifdef __STDC__
38571# include <limits.h>
38572#else
38573# include <assert.h>
38574#endif
ac1cb8d3
VS
38575
38576#undef socket
38577
a848cd7e
SC
38578/* Override any gcc2 internal prototype to avoid an error. */
38579#ifdef __cplusplus
38580extern "C"
38581{
38582#endif
38583/* We use char because int might match the return type of a gcc2
38584 builtin and then its argument prototype would still apply. */
38585char socket ();
38586/* The GNU C library defines this for functions which it implements
38587 to always fail with ENOSYS. Some functions are actually named
38588 something starting with __ and the normal name is an alias. */
38589#if defined (__stub_socket) || defined (__stub___socket)
38590choke me
38591#else
38592char (*f) () = socket;
38593#endif
38594#ifdef __cplusplus
38595}
38596#endif
38597
38598int
38599main ()
38600{
38601return f != socket;
38602 ;
38603 return 0;
38604}
38605_ACEOF
38606rm -f conftest.$ac_objext conftest$ac_exeext
38607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38608 (eval $ac_link) 2>conftest.er1
a848cd7e 38609 ac_status=$?
ac1cb8d3
VS
38610 grep -v '^ *+' conftest.er1 >conftest.err
38611 rm -f conftest.er1
38612 cat conftest.err >&5
a848cd7e
SC
38613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38614 (exit $ac_status); } &&
6ebeb4c7 38615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38617 (eval $ac_try) 2>&5
38618 ac_status=$?
38619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38620 (exit $ac_status); }; } &&
38621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38623 (eval $ac_try) 2>&5
38624 ac_status=$?
38625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38626 (exit $ac_status); }; }; then
38627 ac_cv_func_socket=yes
38628else
38629 echo "$as_me: failed program was:" >&5
38630sed 's/^/| /' conftest.$ac_ext >&5
38631
38632ac_cv_func_socket=no
38633fi
ac1cb8d3
VS
38634rm -f conftest.err conftest.$ac_objext \
38635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38636fi
38637echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38638echo "${ECHO_T}$ac_cv_func_socket" >&6
38639if test $ac_cv_func_socket = yes; then
38640 :
38641else
38642
38643 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38644echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38645if test "${ac_cv_lib_socket_socket+set}" = set; then
38646 echo $ECHO_N "(cached) $ECHO_C" >&6
38647else
38648 ac_check_lib_save_LIBS=$LIBS
38649LIBS="-lsocket $LIBS"
38650cat >conftest.$ac_ext <<_ACEOF
38651/* confdefs.h. */
38652_ACEOF
38653cat confdefs.h >>conftest.$ac_ext
38654cat >>conftest.$ac_ext <<_ACEOF
38655/* end confdefs.h. */
38656
38657/* Override any gcc2 internal prototype to avoid an error. */
38658#ifdef __cplusplus
38659extern "C"
38660#endif
38661/* We use char because int might match the return type of a gcc2
38662 builtin and then its argument prototype would still apply. */
38663char socket ();
38664int
38665main ()
38666{
38667socket ();
38668 ;
38669 return 0;
38670}
38671_ACEOF
38672rm -f conftest.$ac_objext conftest$ac_exeext
38673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38674 (eval $ac_link) 2>conftest.er1
a848cd7e 38675 ac_status=$?
ac1cb8d3
VS
38676 grep -v '^ *+' conftest.er1 >conftest.err
38677 rm -f conftest.er1
38678 cat conftest.err >&5
a848cd7e
SC
38679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38680 (exit $ac_status); } &&
6ebeb4c7 38681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38683 (eval $ac_try) 2>&5
38684 ac_status=$?
38685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38686 (exit $ac_status); }; } &&
38687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38689 (eval $ac_try) 2>&5
38690 ac_status=$?
38691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692 (exit $ac_status); }; }; then
38693 ac_cv_lib_socket_socket=yes
38694else
38695 echo "$as_me: failed program was:" >&5
38696sed 's/^/| /' conftest.$ac_ext >&5
38697
38698ac_cv_lib_socket_socket=no
38699fi
ac1cb8d3
VS
38700rm -f conftest.err conftest.$ac_objext \
38701 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38702LIBS=$ac_check_lib_save_LIBS
38703fi
38704echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38705echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38706if test $ac_cv_lib_socket_socket = yes; then
38707 if test "$INET_LINK" != " -lsocket"; then
38708 INET_LINK="$INET_LINK -lsocket"
38709 fi
38710else
38711
38712 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38713echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38714 wxUSE_SOCKETS=no
38715
38716
38717fi
38718
38719
38720
38721fi
38722
38723 fi
38724fi
38725
38726if test "$wxUSE_SOCKETS" = "yes" ; then
38727 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38728 ac_ext=cc
38729ac_cpp='$CXXCPP $CPPFLAGS'
38730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38733
38734 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38735echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38736if test "${wx_cv_type_getsockname3+set}" = set; then
38737 echo $ECHO_N "(cached) $ECHO_C" >&6
38738else
38739
38740 cat >conftest.$ac_ext <<_ACEOF
38741/* confdefs.h. */
38742_ACEOF
38743cat confdefs.h >>conftest.$ac_ext
38744cat >>conftest.$ac_ext <<_ACEOF
38745/* end confdefs.h. */
38746
38747 #include <sys/types.h>
38748 #include <sys/socket.h>
38749
38750int
38751main ()
38752{
38753
38754 socklen_t len;
38755 getsockname(0, 0, &len);
38756
38757 ;
38758 return 0;
38759}
38760_ACEOF
38761rm -f conftest.$ac_objext
38762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38763 (eval $ac_compile) 2>conftest.er1
a848cd7e 38764 ac_status=$?
ac1cb8d3
VS
38765 grep -v '^ *+' conftest.er1 >conftest.err
38766 rm -f conftest.er1
38767 cat conftest.err >&5
a848cd7e
SC
38768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38769 (exit $ac_status); } &&
6ebeb4c7 38770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38772 (eval $ac_try) 2>&5
38773 ac_status=$?
38774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38775 (exit $ac_status); }; } &&
38776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38778 (eval $ac_try) 2>&5
38779 ac_status=$?
38780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781 (exit $ac_status); }; }; then
38782 wx_cv_type_getsockname3=socklen_t
38783else
38784 echo "$as_me: failed program was:" >&5
38785sed 's/^/| /' conftest.$ac_ext >&5
38786
38787
38788 CFLAGS_OLD="$CFLAGS"
38789 if test "$GCC" = yes ; then
38790 CFLAGS="$CFLAGS -Werror"
38791 fi
38792
38793 cat >conftest.$ac_ext <<_ACEOF
38794/* confdefs.h. */
38795_ACEOF
38796cat confdefs.h >>conftest.$ac_ext
38797cat >>conftest.$ac_ext <<_ACEOF
38798/* end confdefs.h. */
38799
38800 #include <sys/types.h>
38801 #include <sys/socket.h>
38802
38803int
38804main ()
38805{
38806
38807 size_t len;
38808 getsockname(0, 0, &len);
38809
38810 ;
38811 return 0;
38812}
38813_ACEOF
38814rm -f conftest.$ac_objext
38815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38816 (eval $ac_compile) 2>conftest.er1
a848cd7e 38817 ac_status=$?
ac1cb8d3
VS
38818 grep -v '^ *+' conftest.er1 >conftest.err
38819 rm -f conftest.er1
38820 cat conftest.err >&5
a848cd7e
SC
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); } &&
6ebeb4c7 38823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38825 (eval $ac_try) 2>&5
38826 ac_status=$?
38827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828 (exit $ac_status); }; } &&
38829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831 (eval $ac_try) 2>&5
38832 ac_status=$?
38833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); }; }; then
38835 wx_cv_type_getsockname3=size_t
38836else
38837 echo "$as_me: failed program was:" >&5
38838sed 's/^/| /' conftest.$ac_ext >&5
38839
38840cat >conftest.$ac_ext <<_ACEOF
38841/* confdefs.h. */
38842_ACEOF
38843cat confdefs.h >>conftest.$ac_ext
38844cat >>conftest.$ac_ext <<_ACEOF
38845/* end confdefs.h. */
38846
38847 #include <sys/types.h>
38848 #include <sys/socket.h>
38849
38850int
38851main ()
38852{
38853
38854 int len;
38855 getsockname(0, 0, &len);
38856
38857 ;
38858 return 0;
38859}
38860_ACEOF
38861rm -f conftest.$ac_objext
38862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38863 (eval $ac_compile) 2>conftest.er1
a848cd7e 38864 ac_status=$?
ac1cb8d3
VS
38865 grep -v '^ *+' conftest.er1 >conftest.err
38866 rm -f conftest.er1
38867 cat conftest.err >&5
a848cd7e
SC
38868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38869 (exit $ac_status); } &&
6ebeb4c7 38870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38872 (eval $ac_try) 2>&5
38873 ac_status=$?
38874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38875 (exit $ac_status); }; } &&
38876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38878 (eval $ac_try) 2>&5
38879 ac_status=$?
38880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38881 (exit $ac_status); }; }; then
38882 wx_cv_type_getsockname3=int
38883else
38884 echo "$as_me: failed program was:" >&5
38885sed 's/^/| /' conftest.$ac_ext >&5
38886
38887wx_cv_type_getsockname3=unknown
38888
38889fi
ac1cb8d3 38890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38891
38892fi
ac1cb8d3 38893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38894
38895 CFLAGS="$CFLAGS_OLD"
38896
38897
38898fi
ac1cb8d3 38899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38900
38901fi
38902echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38903echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38904
38905 if test "$wx_cv_type_getsockname3" = "unknown"; then
38906 wxUSE_SOCKETS=no
38907 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38908echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38909 else
38910 cat >>confdefs.h <<_ACEOF
38911#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38912_ACEOF
38913
38914 fi
38915 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38916echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38917if test "${wx_cv_type_getsockopt5+set}" = set; then
38918 echo $ECHO_N "(cached) $ECHO_C" >&6
38919else
38920
38921 cat >conftest.$ac_ext <<_ACEOF
38922/* confdefs.h. */
38923_ACEOF
38924cat confdefs.h >>conftest.$ac_ext
38925cat >>conftest.$ac_ext <<_ACEOF
38926/* end confdefs.h. */
38927
38928 #include <sys/types.h>
38929 #include <sys/socket.h>
38930
38931int
38932main ()
38933{
38934
38935 socklen_t len;
38936 getsockopt(0, 0, 0, 0, &len);
38937
38938 ;
38939 return 0;
38940}
38941_ACEOF
38942rm -f conftest.$ac_objext
38943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38944 (eval $ac_compile) 2>conftest.er1
38945 ac_status=$?
38946 grep -v '^ *+' conftest.er1 >conftest.err
38947 rm -f conftest.er1
38948 cat conftest.err >&5
38949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950 (exit $ac_status); } &&
6ebeb4c7 38951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38953 (eval $ac_try) 2>&5
38954 ac_status=$?
38955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38956 (exit $ac_status); }; } &&
38957 { ac_try='test -s conftest.$ac_objext'
38958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38959 (eval $ac_try) 2>&5
38960 ac_status=$?
38961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962 (exit $ac_status); }; }; then
38963 wx_cv_type_getsockopt5=socklen_t
38964else
38965 echo "$as_me: failed program was:" >&5
38966sed 's/^/| /' conftest.$ac_ext >&5
38967
38968
38969 CFLAGS_OLD="$CFLAGS"
38970 if test "$GCC" = yes ; then
38971 CFLAGS="$CFLAGS -Werror"
38972 fi
38973
38974 cat >conftest.$ac_ext <<_ACEOF
38975/* confdefs.h. */
38976_ACEOF
38977cat confdefs.h >>conftest.$ac_ext
38978cat >>conftest.$ac_ext <<_ACEOF
38979/* end confdefs.h. */
38980
38981 #include <sys/types.h>
38982 #include <sys/socket.h>
38983
38984int
38985main ()
38986{
38987
38988 size_t len;
38989 getsockopt(0, 0, 0, 0, &len);
38990
38991 ;
38992 return 0;
38993}
38994_ACEOF
38995rm -f conftest.$ac_objext
38996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38997 (eval $ac_compile) 2>conftest.er1
38998 ac_status=$?
38999 grep -v '^ *+' conftest.er1 >conftest.err
39000 rm -f conftest.er1
39001 cat conftest.err >&5
39002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003 (exit $ac_status); } &&
6ebeb4c7 39004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39006 (eval $ac_try) 2>&5
39007 ac_status=$?
39008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39009 (exit $ac_status); }; } &&
39010 { ac_try='test -s conftest.$ac_objext'
39011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012 (eval $ac_try) 2>&5
39013 ac_status=$?
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); }; }; then
39016 wx_cv_type_getsockopt5=size_t
39017else
39018 echo "$as_me: failed program was:" >&5
39019sed 's/^/| /' conftest.$ac_ext >&5
39020
39021cat >conftest.$ac_ext <<_ACEOF
39022/* confdefs.h. */
39023_ACEOF
39024cat confdefs.h >>conftest.$ac_ext
39025cat >>conftest.$ac_ext <<_ACEOF
39026/* end confdefs.h. */
39027
39028 #include <sys/types.h>
39029 #include <sys/socket.h>
39030
39031int
39032main ()
39033{
39034
39035 int len;
39036 getsockopt(0, 0, 0, 0, &len);
39037
39038 ;
39039 return 0;
39040}
39041_ACEOF
39042rm -f conftest.$ac_objext
39043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39044 (eval $ac_compile) 2>conftest.er1
39045 ac_status=$?
39046 grep -v '^ *+' conftest.er1 >conftest.err
39047 rm -f conftest.er1
39048 cat conftest.err >&5
39049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39050 (exit $ac_status); } &&
6ebeb4c7 39051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39053 (eval $ac_try) 2>&5
39054 ac_status=$?
39055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 (exit $ac_status); }; } &&
39057 { ac_try='test -s conftest.$ac_objext'
39058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39059 (eval $ac_try) 2>&5
39060 ac_status=$?
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); }; }; then
39063 wx_cv_type_getsockopt5=int
39064else
39065 echo "$as_me: failed program was:" >&5
39066sed 's/^/| /' conftest.$ac_ext >&5
39067
39068wx_cv_type_getsockopt5=unknown
39069
39070fi
39071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39072
39073fi
39074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39075
39076 CFLAGS="$CFLAGS_OLD"
39077
39078
39079fi
39080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39081
39082fi
39083echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
39084echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
39085
39086 if test "$wx_cv_type_getsockopt5" = "unknown"; then
39087 wxUSE_SOCKETS=no
39088 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39089echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39090 else
39091 cat >>confdefs.h <<_ACEOF
39092#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
39093_ACEOF
39094
39095 fi
4d4ff94c
VZ
39096 ac_ext=c
39097ac_cpp='$CPP $CPPFLAGS'
39098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39100ac_compiler_gnu=$ac_cv_c_compiler_gnu
39101
a848cd7e
SC
39102 fi
39103fi
39104
39105if test "$wxUSE_SOCKETS" = "yes" ; then
39106 cat >>confdefs.h <<\_ACEOF
39107#define wxUSE_SOCKETS 1
39108_ACEOF
39109
39110 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
39111fi
39112
39113if test "$wxUSE_PROTOCOL" = "yes"; then
39114 if test "$wxUSE_SOCKETS" != "yes"; then
39115 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
39116echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
39117 wxUSE_PROTOCOL=no
39118 fi
39119fi
39120
39121if test "$wxUSE_PROTOCOL" = "yes"; then
39122 cat >>confdefs.h <<\_ACEOF
39123#define wxUSE_PROTOCOL 1
39124_ACEOF
39125
39126
39127 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
39128 cat >>confdefs.h <<\_ACEOF
39129#define wxUSE_PROTOCOL_HTTP 1
39130_ACEOF
39131
39132 fi
39133 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
39134 cat >>confdefs.h <<\_ACEOF
39135#define wxUSE_PROTOCOL_FTP 1
39136_ACEOF
39137
39138 fi
39139 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
39140 cat >>confdefs.h <<\_ACEOF
39141#define wxUSE_PROTOCOL_FILE 1
39142_ACEOF
39143
39144 fi
39145else
39146 if test "$wxUSE_FS_INET" = "yes"; then
39147 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
39148echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
39149 wxUSE_FS_INET="no"
39150 fi
39151fi
39152
39153if test "$wxUSE_URL" = "yes"; then
39154 if test "$wxUSE_PROTOCOL" != "yes"; then
39155 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
39156echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
39157 wxUSE_URL=no
39158 fi
39159 if test "$wxUSE_URL" = "yes"; then
39160 cat >>confdefs.h <<\_ACEOF
39161#define wxUSE_URL 1
39162_ACEOF
39163
39164 fi
39165fi
39166
39167if test "$wxUSE_FS_INET" = "yes"; then
39168 cat >>confdefs.h <<\_ACEOF
39169#define wxUSE_FS_INET 1
39170_ACEOF
39171
39172fi
39173
39174
ee45c548
MW
39175if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
39176 wxUSE_JOYSTICK=no
39177
39178 if test "$TOOLKIT" = "MSW"; then
39179 wxUSE_JOYSTICK=yes
39180
39181 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
39182 if test "$USE_DARWIN" = 1; then
39183 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
39184echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
39185 ac_ext=cc
39186ac_cpp='$CXXCPP $CPPFLAGS'
39187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39190
39191 cat >conftest.$ac_ext <<_ACEOF
39192/* confdefs.h. */
39193_ACEOF
39194cat confdefs.h >>conftest.$ac_ext
39195cat >>conftest.$ac_ext <<_ACEOF
39196/* end confdefs.h. */
39197 #include <IOKit/hid/IOHIDLib.h>
39198int
39199main ()
39200{
39201 IOHIDQueueInterface *qi = NULL;
39202 IOHIDCallbackFunction cb = NULL;
39203 qi->setEventCallout(NULL, cb, NULL, NULL);
39204 ;
39205 return 0;
39206}
39207_ACEOF
39208rm -f conftest.$ac_objext
39209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39210 (eval $ac_compile) 2>conftest.er1
39211 ac_status=$?
39212 grep -v '^ *+' conftest.er1 >conftest.err
39213 rm -f conftest.er1
39214 cat conftest.err >&5
39215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39216 (exit $ac_status); } &&
6ebeb4c7 39217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
39218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39219 (eval $ac_try) 2>&5
39220 ac_status=$?
39221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39222 (exit $ac_status); }; } &&
39223 { ac_try='test -s conftest.$ac_objext'
39224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39225 (eval $ac_try) 2>&5
39226 ac_status=$?
39227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228 (exit $ac_status); }; }; then
39229 wxUSE_JOYSTICK=yes
a848cd7e 39230
ee45c548
MW
39231else
39232 echo "$as_me: failed program was:" >&5
39233sed 's/^/| /' conftest.$ac_ext >&5
39234
39235fi
39236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39237 ac_ext=c
39238ac_cpp='$CPP $CPPFLAGS'
39239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39241ac_compiler_gnu=$ac_cv_c_compiler_gnu
39242
39243 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
39244echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
39245 fi
39246
39247 else
a848cd7e
SC
39248
39249for ac_header in linux/joystick.h
39250do
39251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39252if eval "test \"\${$as_ac_Header+set}\" = set"; then
39253 echo "$as_me:$LINENO: checking for $ac_header" >&5
39254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39255if eval "test \"\${$as_ac_Header+set}\" = set"; then
39256 echo $ECHO_N "(cached) $ECHO_C" >&6
39257fi
39258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39260else
39261 # Is the header compilable?
39262echo "$as_me:$LINENO: checking $ac_header usability" >&5
39263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39264cat >conftest.$ac_ext <<_ACEOF
39265/* confdefs.h. */
39266_ACEOF
39267cat confdefs.h >>conftest.$ac_ext
39268cat >>conftest.$ac_ext <<_ACEOF
39269/* end confdefs.h. */
39270$ac_includes_default
39271#include <$ac_header>
39272_ACEOF
39273rm -f conftest.$ac_objext
39274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39275 (eval $ac_compile) 2>conftest.er1
a848cd7e 39276 ac_status=$?
ac1cb8d3
VS
39277 grep -v '^ *+' conftest.er1 >conftest.err
39278 rm -f conftest.er1
39279 cat conftest.err >&5
a848cd7e
SC
39280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39281 (exit $ac_status); } &&
6ebeb4c7 39282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39284 (eval $ac_try) 2>&5
39285 ac_status=$?
39286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287 (exit $ac_status); }; } &&
39288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39290 (eval $ac_try) 2>&5
39291 ac_status=$?
39292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293 (exit $ac_status); }; }; then
39294 ac_header_compiler=yes
39295else
39296 echo "$as_me: failed program was:" >&5
39297sed 's/^/| /' conftest.$ac_ext >&5
39298
39299ac_header_compiler=no
39300fi
ac1cb8d3 39301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39302echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39303echo "${ECHO_T}$ac_header_compiler" >&6
39304
39305# Is the header present?
39306echo "$as_me:$LINENO: checking $ac_header presence" >&5
39307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39308cat >conftest.$ac_ext <<_ACEOF
39309/* confdefs.h. */
39310_ACEOF
39311cat confdefs.h >>conftest.$ac_ext
39312cat >>conftest.$ac_ext <<_ACEOF
39313/* end confdefs.h. */
39314#include <$ac_header>
39315_ACEOF
39316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39318 ac_status=$?
39319 grep -v '^ *+' conftest.er1 >conftest.err
39320 rm -f conftest.er1
39321 cat conftest.err >&5
39322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39323 (exit $ac_status); } >/dev/null; then
39324 if test -s conftest.err; then
39325 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39327 else
39328 ac_cpp_err=
39329 fi
39330else
39331 ac_cpp_err=yes
39332fi
39333if test -z "$ac_cpp_err"; then
39334 ac_header_preproc=yes
39335else
39336 echo "$as_me: failed program was:" >&5
39337sed 's/^/| /' conftest.$ac_ext >&5
39338
39339 ac_header_preproc=no
39340fi
39341rm -f conftest.err conftest.$ac_ext
39342echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39343echo "${ECHO_T}$ac_header_preproc" >&6
39344
39345# So? What about this header?
ac1cb8d3
VS
39346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39347 yes:no: )
a848cd7e
SC
39348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39352 ac_header_preproc=yes
a848cd7e 39353 ;;
ac1cb8d3 39354 no:yes:* )
a848cd7e
SC
39355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39362echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39367 (
39368 cat <<\_ASBOX
ac1cb8d3
VS
39369## ----------------------------------------- ##
39370## Report this to wx-dev@lists.wxwidgets.org ##
39371## ----------------------------------------- ##
a848cd7e
SC
39372_ASBOX
39373 ) |
39374 sed "s/^/$as_me: WARNING: /" >&2
39375 ;;
39376esac
39377echo "$as_me:$LINENO: checking for $ac_header" >&5
39378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39379if eval "test \"\${$as_ac_Header+set}\" = set"; then
39380 echo $ECHO_N "(cached) $ECHO_C" >&6
39381else
ac1cb8d3 39382 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39383fi
39384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39386
39387fi
39388if test `eval echo '${'$as_ac_Header'}'` = yes; then
39389 cat >>confdefs.h <<_ACEOF
39390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39391_ACEOF
ee45c548 39392 wxUSE_JOYSTICK=yes
a848cd7e
SC
39393fi
39394
39395done
39396
ee45c548 39397 fi
4cb1d3da 39398
ee45c548
MW
39399 if test "$wxUSE_JOYSTICK" = "yes"; then
39400 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39401#define wxUSE_JOYSTICK 1
39402_ACEOF
39403
ee45c548
MW
39404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
39405 else
39406 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
39407echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
39408 fi
39409fi
39410
39411
39412
39413if test "$wxUSE_FONTMAP" = "yes" ; then
39414 cat >>confdefs.h <<\_ACEOF
39415#define wxUSE_FONTMAP 1
39416_ACEOF
39417
39418fi
39419
39420if test "$wxUSE_UNICODE" = "yes" ; then
39421 cat >>confdefs.h <<\_ACEOF
39422#define wxUSE_UNICODE 1
39423_ACEOF
39424
39425
39426 if test "$USE_WIN32" != 1; then
39427 wxUSE_UNICODE_MSLU=no
39428 fi
39429
39430 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
39431 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
39432echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
39433if test "${ac_cv_lib_unicows_main+set}" = set; then
39434 echo $ECHO_N "(cached) $ECHO_C" >&6
39435else
39436 ac_check_lib_save_LIBS=$LIBS
39437LIBS="-lunicows $LIBS"
39438cat >conftest.$ac_ext <<_ACEOF
39439/* confdefs.h. */
39440_ACEOF
39441cat confdefs.h >>conftest.$ac_ext
39442cat >>conftest.$ac_ext <<_ACEOF
39443/* end confdefs.h. */
39444
39445
39446int
39447main ()
39448{
39449main ();
39450 ;
39451 return 0;
39452}
39453_ACEOF
39454rm -f conftest.$ac_objext conftest$ac_exeext
39455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39456 (eval $ac_link) 2>conftest.er1
a848cd7e 39457 ac_status=$?
ac1cb8d3
VS
39458 grep -v '^ *+' conftest.er1 >conftest.err
39459 rm -f conftest.er1
39460 cat conftest.err >&5
a848cd7e
SC
39461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39462 (exit $ac_status); } &&
6ebeb4c7 39463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39465 (eval $ac_try) 2>&5
39466 ac_status=$?
39467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468 (exit $ac_status); }; } &&
39469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39471 (eval $ac_try) 2>&5
39472 ac_status=$?
39473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39474 (exit $ac_status); }; }; then
39475 ac_cv_lib_unicows_main=yes
39476else
39477 echo "$as_me: failed program was:" >&5
39478sed 's/^/| /' conftest.$ac_ext >&5
39479
39480ac_cv_lib_unicows_main=no
39481fi
ac1cb8d3
VS
39482rm -f conftest.err conftest.$ac_objext \
39483 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39484LIBS=$ac_check_lib_save_LIBS
39485fi
39486echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39487echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39488if test $ac_cv_lib_unicows_main = yes; then
39489
39490 cat >>confdefs.h <<\_ACEOF
39491#define wxUSE_UNICODE_MSLU 1
39492_ACEOF
39493
39494
39495else
39496
39497 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39498 Applications will only run on Windows NT/2000/XP!" >&5
39499echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39500 Applications will only run on Windows NT/2000/XP!" >&2;}
39501 wxUSE_UNICODE_MSLU=no
39502
39503fi
39504
39505 fi
39506fi
39507
39508if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39509 cat >>confdefs.h <<\_ACEOF
39510#define wxUSE_EXPERIMENTAL_PRINTF 1
39511_ACEOF
39512
39513fi
39514
39515
39516if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39517 cat >>confdefs.h <<\_ACEOF
39518#define wxUSE_POSTSCRIPT 1
39519_ACEOF
39520
39521fi
39522
39523cat >>confdefs.h <<\_ACEOF
39524#define wxUSE_AFM_FOR_POSTSCRIPT 1
39525_ACEOF
39526
39527
39528cat >>confdefs.h <<\_ACEOF
39529#define wxUSE_NORMALIZED_PS_FONTS 1
39530_ACEOF
39531
39532
39533
39534if test "$wxUSE_CONSTRAINTS" = "yes"; then
39535 cat >>confdefs.h <<\_ACEOF
39536#define wxUSE_CONSTRAINTS 1
39537_ACEOF
39538
39539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39540fi
39541
8a7b1113
VZ
39542if test "$wxUSE_MDI" = "yes"; then
39543 cat >>confdefs.h <<\_ACEOF
39544#define wxUSE_MDI 1
39545_ACEOF
39546
39547
39548 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39549 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39550#define wxUSE_MDI_ARCHITECTURE 1
39551_ACEOF
39552
8a7b1113
VZ
39553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39554 fi
a848cd7e
SC
39555fi
39556
39557if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39558 cat >>confdefs.h <<\_ACEOF
39559#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39560_ACEOF
39561
39562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39563 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39565 fi
39566fi
39567
39568if test "$wxUSE_HELP" = "yes"; then
39569 cat >>confdefs.h <<\_ACEOF
39570#define wxUSE_HELP 1
39571_ACEOF
39572
39573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39574
39575 if test "$wxUSE_MSW" = 1; then
39576 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39577 cat >>confdefs.h <<\_ACEOF
39578#define wxUSE_MS_HTML_HELP 1
39579_ACEOF
39580
39581 fi
39582 fi
39583
39584 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39585 if test "$wxUSE_HTML" = "yes"; then
39586 cat >>confdefs.h <<\_ACEOF
39587#define wxUSE_WXHTML_HELP 1
39588_ACEOF
39589
39590 else
39591 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39592echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39593 wxUSE_WXHTML_HELP=no
39594 fi
39595 fi
39596fi
39597
39598if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39599 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39600 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39601echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39602 else
39603 cat >>confdefs.h <<\_ACEOF
39604#define wxUSE_PRINTING_ARCHITECTURE 1
39605_ACEOF
39606
39607 fi
39608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39609fi
39610
39611if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39612 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39613echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39614 { (exit 1); exit 1; }; }
39615fi
39616
39617
efdf6afe
VZ
39618if test "$wxUSE_METAFILE" = "yes"; then
39619 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
39620 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
39621echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
39622 wxUSE_METAFILE=no
39623 fi
39624fi
39625
39626
a848cd7e
SC
39627if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39628 -o "$wxUSE_CLIPBOARD" = "yes" \
39629 -o "$wxUSE_OLE" = "yes" \
39630 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39631
39632for ac_header in ole2.h
39633do
39634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39635if eval "test \"\${$as_ac_Header+set}\" = set"; then
39636 echo "$as_me:$LINENO: checking for $ac_header" >&5
39637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39638if eval "test \"\${$as_ac_Header+set}\" = set"; then
39639 echo $ECHO_N "(cached) $ECHO_C" >&6
39640fi
39641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39643else
39644 # Is the header compilable?
39645echo "$as_me:$LINENO: checking $ac_header usability" >&5
39646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39647cat >conftest.$ac_ext <<_ACEOF
39648/* confdefs.h. */
39649_ACEOF
39650cat confdefs.h >>conftest.$ac_ext
39651cat >>conftest.$ac_ext <<_ACEOF
39652/* end confdefs.h. */
39653$ac_includes_default
39654#include <$ac_header>
39655_ACEOF
39656rm -f conftest.$ac_objext
39657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39658 (eval $ac_compile) 2>conftest.er1
a848cd7e 39659 ac_status=$?
ac1cb8d3
VS
39660 grep -v '^ *+' conftest.er1 >conftest.err
39661 rm -f conftest.er1
39662 cat conftest.err >&5
a848cd7e
SC
39663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39664 (exit $ac_status); } &&
6ebeb4c7 39665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39667 (eval $ac_try) 2>&5
39668 ac_status=$?
39669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); }; } &&
39671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39673 (eval $ac_try) 2>&5
39674 ac_status=$?
39675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676 (exit $ac_status); }; }; then
39677 ac_header_compiler=yes
39678else
39679 echo "$as_me: failed program was:" >&5
39680sed 's/^/| /' conftest.$ac_ext >&5
39681
39682ac_header_compiler=no
39683fi
ac1cb8d3 39684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39685echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39686echo "${ECHO_T}$ac_header_compiler" >&6
39687
39688# Is the header present?
39689echo "$as_me:$LINENO: checking $ac_header presence" >&5
39690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39691cat >conftest.$ac_ext <<_ACEOF
39692/* confdefs.h. */
39693_ACEOF
39694cat confdefs.h >>conftest.$ac_ext
39695cat >>conftest.$ac_ext <<_ACEOF
39696/* end confdefs.h. */
39697#include <$ac_header>
39698_ACEOF
39699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39701 ac_status=$?
39702 grep -v '^ *+' conftest.er1 >conftest.err
39703 rm -f conftest.er1
39704 cat conftest.err >&5
39705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39706 (exit $ac_status); } >/dev/null; then
39707 if test -s conftest.err; then
39708 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39710 else
39711 ac_cpp_err=
39712 fi
39713else
39714 ac_cpp_err=yes
39715fi
39716if test -z "$ac_cpp_err"; then
39717 ac_header_preproc=yes
39718else
39719 echo "$as_me: failed program was:" >&5
39720sed 's/^/| /' conftest.$ac_ext >&5
39721
39722 ac_header_preproc=no
39723fi
39724rm -f conftest.err conftest.$ac_ext
39725echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39726echo "${ECHO_T}$ac_header_preproc" >&6
39727
39728# So? What about this header?
ac1cb8d3
VS
39729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39730 yes:no: )
a848cd7e
SC
39731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39735 ac_header_preproc=yes
a848cd7e 39736 ;;
ac1cb8d3 39737 no:yes:* )
a848cd7e
SC
39738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39750 (
39751 cat <<\_ASBOX
ac1cb8d3
VS
39752## ----------------------------------------- ##
39753## Report this to wx-dev@lists.wxwidgets.org ##
39754## ----------------------------------------- ##
a848cd7e
SC
39755_ASBOX
39756 ) |
39757 sed "s/^/$as_me: WARNING: /" >&2
39758 ;;
39759esac
39760echo "$as_me:$LINENO: checking for $ac_header" >&5
39761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39762if eval "test \"\${$as_ac_Header+set}\" = set"; then
39763 echo $ECHO_N "(cached) $ECHO_C" >&6
39764else
ac1cb8d3 39765 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39766fi
39767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39769
39770fi
39771if test `eval echo '${'$as_ac_Header'}'` = yes; then
39772 cat >>confdefs.h <<_ACEOF
39773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39774_ACEOF
39775
39776fi
39777
39778done
39779
39780
39781 if test "$ac_cv_header_ole2_h" = "yes" ; then
39782 if test "$GCC" = yes ; then
39783
39784
39785 ac_ext=cc
39786ac_cpp='$CXXCPP $CPPFLAGS'
39787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39790
39791
39792 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39793echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39794 cat >conftest.$ac_ext <<_ACEOF
39795/* confdefs.h. */
39796_ACEOF
39797cat confdefs.h >>conftest.$ac_ext
39798cat >>conftest.$ac_ext <<_ACEOF
39799/* end confdefs.h. */
39800#include <windows.h>
39801 #include <ole2.h>
39802int
39803main ()
39804{
39805
39806 ;
39807 return 0;
39808}
39809_ACEOF
39810rm -f conftest.$ac_objext
39811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39812 (eval $ac_compile) 2>conftest.er1
a848cd7e 39813 ac_status=$?
ac1cb8d3
VS
39814 grep -v '^ *+' conftest.er1 >conftest.err
39815 rm -f conftest.er1
39816 cat conftest.err >&5
a848cd7e
SC
39817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818 (exit $ac_status); } &&
6ebeb4c7 39819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39821 (eval $ac_try) 2>&5
39822 ac_status=$?
39823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824 (exit $ac_status); }; } &&
39825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39827 (eval $ac_try) 2>&5
39828 ac_status=$?
39829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39830 (exit $ac_status); }; }; then
39831 echo "$as_me:$LINENO: result: no" >&5
39832echo "${ECHO_T}no" >&6
39833else
39834 echo "$as_me: failed program was:" >&5
39835sed 's/^/| /' conftest.$ac_ext >&5
39836
39837echo "$as_me:$LINENO: result: yes" >&5
39838echo "${ECHO_T}yes" >&6
39839 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39840fi
ac1cb8d3 39841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39842 ac_ext=c
39843ac_cpp='$CPP $CPPFLAGS'
39844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39846ac_compiler_gnu=$ac_cv_c_compiler_gnu
39847
a848cd7e
SC
39848 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39849 if test "$wxUSE_OLE" = "yes" ; then
39850 cat >>confdefs.h <<\_ACEOF
39851#define wxUSE_OLE 1
39852_ACEOF
39853
0b78747f 39854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39855 fi
39856 fi
39857
39858 if test "$wxUSE_DATAOBJ" = "yes" ; then
39859 cat >>confdefs.h <<\_ACEOF
39860#define wxUSE_DATAOBJ 1
39861_ACEOF
39862
39863 fi
39864 else
39865 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39866echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39867
39868 wxUSE_CLIPBOARD=no
39869 wxUSE_DRAG_AND_DROP=no
39870 wxUSE_DATAOBJ=no
39871 wxUSE_OLE=no
39872 fi
39873
39874 if test "$wxUSE_METAFILE" = "yes"; then
39875 cat >>confdefs.h <<\_ACEOF
39876#define wxUSE_METAFILE 1
39877_ACEOF
39878
39879
39880 cat >>confdefs.h <<\_ACEOF
39881#define wxUSE_ENH_METAFILE 1
39882_ACEOF
39883
39884 fi
39885fi
39886
39887if test "$wxUSE_IPC" = "yes"; then
0b78747f 39888 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39889 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39890echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39891 wxUSE_IPC=no
a848cd7e
SC
39892 fi
39893
0b78747f
MW
39894 if test "$wxUSE_IPC" = "yes"; then
39895 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39896#define wxUSE_IPC 1
39897_ACEOF
39898
0b78747f
MW
39899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39900 fi
a848cd7e
SC
39901fi
39902
eb730a0c 39903if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
39904 if test "$wxUSE_MGL" = 1; then
39905 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
39906echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
39907 wxUSE_DATAOBJ=no
39908 else
39909 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
39910#define wxUSE_DATAOBJ 1
39911_ACEOF
39912
2113bc77 39913 fi
eb730a0c
JS
39914else
39915 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
39916echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
39917 wxUSE_CLIPBOARD=no
39918 wxUSE_DRAG_AND_DROP=no
39919fi
39920
a848cd7e
SC
39921if test "$wxUSE_CLIPBOARD" = "yes"; then
39922 if test "$wxUSE_MGL" = 1; then
39923 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39924echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39925 wxUSE_CLIPBOARD=no
39926 fi
39927
39928 if test "$wxUSE_CLIPBOARD" = "yes"; then
39929 cat >>confdefs.h <<\_ACEOF
39930#define wxUSE_CLIPBOARD 1
39931_ACEOF
39932
a848cd7e
SC
39933 fi
39934fi
39935
39936if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39937 if test "$wxUSE_GTK" = 1; then
39938 if test "$WXGTK12" != 1; then
39939 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39940echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39941 wxUSE_DRAG_AND_DROP=no
39942 fi
39943 fi
39944
39945 if test "$wxUSE_MOTIF" = 1; then
39946 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39947echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39948 wxUSE_DRAG_AND_DROP=no
39949 fi
39950
39951 if test "$wxUSE_X11" = 1; then
39952 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39953echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39954 wxUSE_DRAG_AND_DROP=no
39955 fi
39956
39957 if test "$wxUSE_MGL" = 1; then
39958 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39959echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39960 wxUSE_DRAG_AND_DROP=no
39961 fi
39962
39963 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39964 cat >>confdefs.h <<\_ACEOF
39965#define wxUSE_DRAG_AND_DROP 1
39966_ACEOF
39967
39968 fi
39969
39970fi
39971
39972if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39974fi
39975
39976if test "$wxUSE_SPLINES" = "yes" ; then
39977 cat >>confdefs.h <<\_ACEOF
39978#define wxUSE_SPLINES 1
39979_ACEOF
39980
39981fi
39982
fbe2ca43
SN
39983if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39984 cat >>confdefs.h <<\_ACEOF
39985#define wxUSE_MOUSEWHEEL 1
39986_ACEOF
39987
39988fi
39989
a848cd7e
SC
39990
39991USES_CONTROLS=0
39992if test "$wxUSE_CONTROLS" = "yes"; then
39993 USES_CONTROLS=1
39994fi
39995
39996if test "$wxUSE_ACCEL" = "yes"; then
39997 cat >>confdefs.h <<\_ACEOF
39998#define wxUSE_ACCEL 1
39999_ACEOF
40000
40001 USES_CONTROLS=1
40002fi
40003
40004if test "$wxUSE_BUTTON" = "yes"; then
40005 cat >>confdefs.h <<\_ACEOF
40006#define wxUSE_BUTTON 1
40007_ACEOF
40008
40009 USES_CONTROLS=1
40010fi
40011
40012if test "$wxUSE_BMPBUTTON" = "yes"; then
40013 cat >>confdefs.h <<\_ACEOF
40014#define wxUSE_BMPBUTTON 1
40015_ACEOF
40016
40017 USES_CONTROLS=1
40018fi
40019
40020if test "$wxUSE_CALCTRL" = "yes"; then
40021 cat >>confdefs.h <<\_ACEOF
40022#define wxUSE_CALENDARCTRL 1
40023_ACEOF
40024
40025 USES_CONTROLS=1
40026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
40027fi
40028
40029if test "$wxUSE_CARET" = "yes"; then
40030 cat >>confdefs.h <<\_ACEOF
40031#define wxUSE_CARET 1
40032_ACEOF
40033
40034 USES_CONTROLS=1
40035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
40036fi
40037
40038if test "$wxUSE_COMBOBOX" = "yes"; then
40039 cat >>confdefs.h <<\_ACEOF
40040#define wxUSE_COMBOBOX 1
40041_ACEOF
40042
40043 USES_CONTROLS=1
40044fi
40045
40046if test "$wxUSE_CHOICE" = "yes"; then
40047 cat >>confdefs.h <<\_ACEOF
40048#define wxUSE_CHOICE 1
40049_ACEOF
40050
40051 USES_CONTROLS=1
40052fi
40053
92bbdbcd
WS
40054if test "$wxUSE_CHOICEBOOK" = "yes"; then
40055 cat >>confdefs.h <<\_ACEOF
40056#define wxUSE_CHOICEBOOK 1
40057_ACEOF
40058
40059 USES_CONTROLS=1
40060fi
40061
a848cd7e
SC
40062if test "$wxUSE_CHECKBOX" = "yes"; then
40063 cat >>confdefs.h <<\_ACEOF
40064#define wxUSE_CHECKBOX 1
40065_ACEOF
40066
40067 USES_CONTROLS=1
40068fi
40069
40070if test "$wxUSE_CHECKLST" = "yes"; then
40071 cat >>confdefs.h <<\_ACEOF
40072#define wxUSE_CHECKLISTBOX 1
40073_ACEOF
40074
40075 USES_CONTROLS=1
40076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
40077fi
40078
da98e9be
VZ
40079if test "$wxUSE_DATEPICKCTRL" = "yes"; then
40080 cat >>confdefs.h <<\_ACEOF
40081#define wxUSE_DATEPICKCTRL 1
40082_ACEOF
40083
40084 USES_CONTROLS=1
40085fi
40086
a848cd7e
SC
40087if test "$wxUSE_DISPLAY" = "yes"; then
40088 cat >>confdefs.h <<\_ACEOF
40089#define wxUSE_DISPLAY 1
40090_ACEOF
40091
0b78747f 40092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
40093fi
40094
40095if test "$wxUSE_GAUGE" = "yes"; then
40096 cat >>confdefs.h <<\_ACEOF
40097#define wxUSE_GAUGE 1
40098_ACEOF
40099
40100 USES_CONTROLS=1
40101fi
40102
40103if test "$wxUSE_GRID" = "yes"; then
40104 cat >>confdefs.h <<\_ACEOF
40105#define wxUSE_GRID 1
40106_ACEOF
40107
40108 USES_CONTROLS=1
40109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
40110fi
40111
40112if test "$wxUSE_IMAGLIST" = "yes"; then
40113 cat >>confdefs.h <<\_ACEOF
40114#define wxUSE_IMAGLIST 1
40115_ACEOF
40116
40117fi
40118
40119if test "$wxUSE_LISTBOOK" = "yes"; then
40120 cat >>confdefs.h <<\_ACEOF
40121#define wxUSE_LISTBOOK 1
40122_ACEOF
40123
40124 USES_CONTROLS=1
40125fi
40126
40127if test "$wxUSE_LISTBOX" = "yes"; then
40128 cat >>confdefs.h <<\_ACEOF
40129#define wxUSE_LISTBOX 1
40130_ACEOF
40131
40132 USES_CONTROLS=1
0b78747f 40133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
40134fi
40135
40136if test "$wxUSE_LISTCTRL" = "yes"; then
40137 if test "$wxUSE_IMAGLIST" = "yes"; then
40138 cat >>confdefs.h <<\_ACEOF
40139#define wxUSE_LISTCTRL 1
40140_ACEOF
40141
40142 USES_CONTROLS=1
40143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
40144 else
40145 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
40146echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
40147 fi
40148fi
40149
40150if test "$wxUSE_NOTEBOOK" = "yes"; then
40151 cat >>confdefs.h <<\_ACEOF
40152#define wxUSE_NOTEBOOK 1
40153_ACEOF
40154
40155 USES_CONTROLS=1
40156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
40157fi
40158
40159
40160if test "$wxUSE_RADIOBOX" = "yes"; then
40161 cat >>confdefs.h <<\_ACEOF
40162#define wxUSE_RADIOBOX 1
40163_ACEOF
40164
40165 USES_CONTROLS=1
40166fi
40167
40168if test "$wxUSE_RADIOBTN" = "yes"; then
40169 cat >>confdefs.h <<\_ACEOF
40170#define wxUSE_RADIOBTN 1
40171_ACEOF
40172
40173 USES_CONTROLS=1
40174fi
40175
40176if test "$wxUSE_SASH" = "yes"; then
40177 cat >>confdefs.h <<\_ACEOF
40178#define wxUSE_SASH 1
40179_ACEOF
40180
40181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
40182fi
40183
40184if test "$wxUSE_SCROLLBAR" = "yes"; then
40185 cat >>confdefs.h <<\_ACEOF
40186#define wxUSE_SCROLLBAR 1
40187_ACEOF
40188
40189 USES_CONTROLS=1
40190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
40191fi
40192
40193if test "$wxUSE_SLIDER" = "yes"; then
40194 cat >>confdefs.h <<\_ACEOF
40195#define wxUSE_SLIDER 1
40196_ACEOF
40197
40198 USES_CONTROLS=1
40199fi
40200
40201if test "$wxUSE_SPINBTN" = "yes"; then
40202 cat >>confdefs.h <<\_ACEOF
40203#define wxUSE_SPINBTN 1
40204_ACEOF
40205
40206 USES_CONTROLS=1
40207fi
40208
40209if test "$wxUSE_SPINCTRL" = "yes"; then
40210 cat >>confdefs.h <<\_ACEOF
40211#define wxUSE_SPINCTRL 1
40212_ACEOF
40213
40214 USES_CONTROLS=1
40215fi
40216
40217if test "$wxUSE_SPLITTER" = "yes"; then
40218 cat >>confdefs.h <<\_ACEOF
40219#define wxUSE_SPLITTER 1
40220_ACEOF
40221
40222 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
40223fi
40224
40225if test "$wxUSE_STATBMP" = "yes"; then
40226 cat >>confdefs.h <<\_ACEOF
40227#define wxUSE_STATBMP 1
40228_ACEOF
40229
40230 USES_CONTROLS=1
40231fi
40232
40233if test "$wxUSE_STATBOX" = "yes"; then
40234 cat >>confdefs.h <<\_ACEOF
40235#define wxUSE_STATBOX 1
40236_ACEOF
40237
40238 USES_CONTROLS=1
40239fi
40240
40241if test "$wxUSE_STATTEXT" = "yes"; then
40242 cat >>confdefs.h <<\_ACEOF
40243#define wxUSE_STATTEXT 1
40244_ACEOF
40245
40246 USES_CONTROLS=1
40247fi
40248
40249if test "$wxUSE_STATLINE" = "yes"; then
40250 cat >>confdefs.h <<\_ACEOF
40251#define wxUSE_STATLINE 1
40252_ACEOF
40253
40254 USES_CONTROLS=1
40255fi
40256
40257if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
40258 cat >>confdefs.h <<\_ACEOF
40259#define wxUSE_NATIVE_STATUSBAR 1
40260_ACEOF
40261
a848cd7e
SC
40262 cat >>confdefs.h <<\_ACEOF
40263#define wxUSE_STATUSBAR 1
40264_ACEOF
40265
40266 USES_CONTROLS=1
40267
40268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
40269fi
40270
40271if test "$wxUSE_TABDIALOG" = "yes"; then
40272 cat >>confdefs.h <<\_ACEOF
40273#define wxUSE_TAB_DIALOG 1
40274_ACEOF
40275
a848cd7e
SC
40276fi
40277
40278if test "$wxUSE_TEXTCTRL" = "yes"; then
40279 cat >>confdefs.h <<\_ACEOF
40280#define wxUSE_TEXTCTRL 1
40281_ACEOF
40282
40283 USES_CONTROLS=1
40284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
40285fi
40286
40287if test "$wxUSE_TOGGLEBTN" = "yes"; then
40288 if test "$wxUSE_COCOA" = 1 ; then
40289 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
40290echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
40291 wxUSE_TOGGLEBTN=no
40292 fi
40293 if test "$wxUSE_UNIVERSAL" = "yes"; then
40294 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
40295echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
40296 wxUSE_TOGGLEBTN=no
40297 fi
40298
40299 if test "$wxUSE_TOGGLEBTN" = "yes"; then
40300 cat >>confdefs.h <<\_ACEOF
40301#define wxUSE_TOGGLEBTN 1
40302_ACEOF
40303
40304 USES_CONTROLS=1
40305 fi
40306fi
40307
40308if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
40309 cat >>confdefs.h <<\_ACEOF
40310#define wxUSE_TOOLBAR_SIMPLE 1
40311_ACEOF
40312
40313 wxUSE_TOOLBAR="yes"
40314 USES_CONTROLS=1
40315fi
40316
40317if test "$wxUSE_TOOLBAR" = "yes"; then
40318 cat >>confdefs.h <<\_ACEOF
40319#define wxUSE_TOOLBAR 1
40320_ACEOF
40321
40322 USES_CONTROLS=1
40323
40324 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
40325 wxUSE_TOOLBAR_NATIVE="yes"
40326 fi
40327
40328 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
40329 cat >>confdefs.h <<\_ACEOF
40330#define wxUSE_TOOLBAR_NATIVE 1
40331_ACEOF
40332
40333 USES_CONTROLS=1
40334 fi
40335
40336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
40337fi
40338
40339if test "$wxUSE_TOOLTIPS" = "yes"; then
40340 if test "$wxUSE_MOTIF" = 1; then
40341 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
40342echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
40343 else
40344 if test "$wxUSE_UNIVERSAL" = "yes"; then
40345 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
40346echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
40347 else
40348 cat >>confdefs.h <<\_ACEOF
40349#define wxUSE_TOOLTIPS 1
40350_ACEOF
40351
40352 fi
40353 fi
40354fi
40355
40356if test "$wxUSE_TREECTRL" = "yes"; then
40357 if test "$wxUSE_IMAGLIST" = "yes"; then
40358 cat >>confdefs.h <<\_ACEOF
40359#define wxUSE_TREECTRL 1
40360_ACEOF
40361
40362 USES_CONTROLS=1
40363 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
40364 else
40365 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
40366echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
40367 fi
40368fi
40369
40370if test "$wxUSE_POPUPWIN" = "yes"; then
40371 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40372 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
40373echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
40374 else
40375 if test "$wxUSE_PM" = 1; then
40376 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
40377echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
40378 else
40379 cat >>confdefs.h <<\_ACEOF
40380#define wxUSE_POPUPWIN 1
40381_ACEOF
40382
0b78747f 40383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
40384
40385 USES_CONTROLS=1
40386 fi
40387 fi
40388fi
40389
0dcd06dd 40390if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
40391 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40392 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
40393echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
40394 else
40395 cat >>confdefs.h <<\_ACEOF
40396#define wxUSE_DIALUP_MANAGER 1
40397_ACEOF
40398
40399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
40400 fi
40401fi
40402
a848cd7e
SC
40403if test "$wxUSE_TIPWINDOW" = "yes"; then
40404 if test "$wxUSE_PM" = 1; then
40405 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
40406echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
40407 else
40408 cat >>confdefs.h <<\_ACEOF
40409#define wxUSE_TIPWINDOW 1
40410_ACEOF
40411
40412 fi
40413fi
40414
40415if test "$USES_CONTROLS" = 1; then
40416 cat >>confdefs.h <<\_ACEOF
40417#define wxUSE_CONTROLS 1
40418_ACEOF
40419
40420fi
40421
40422
40423if test "$wxUSE_ACCESSIBILITY" = "yes"; then
40424 cat >>confdefs.h <<\_ACEOF
40425#define wxUSE_ACCESSIBILITY 1
40426_ACEOF
40427
40428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
40429fi
40430
38b4a946
VZ
40431if test "$wxUSE_DC_CACHEING" = "yes"; then
40432 cat >>confdefs.h <<\_ACEOF
40433#define wxUSE_DC_CACHEING 1
40434_ACEOF
40435
40436fi
40437
a848cd7e
SC
40438if test "$wxUSE_DRAGIMAGE" = "yes"; then
40439 cat >>confdefs.h <<\_ACEOF
40440#define wxUSE_DRAGIMAGE 1
40441_ACEOF
40442
40443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
40444fi
40445
40446if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
40447 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40448 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
40449echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
40450 else
40451 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40452#define wxUSE_EXCEPTIONS 1
40453_ACEOF
40454
07bea8f0
VS
40455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
40456 fi
a848cd7e
SC
40457fi
40458
40459USE_HTML=0
40460if test "$wxUSE_HTML" = "yes"; then
40461 cat >>confdefs.h <<\_ACEOF
40462#define wxUSE_HTML 1
40463_ACEOF
40464
40465 USE_HTML=1
40466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40467 if test "$wxUSE_MAC" = 1; then
40468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40469 fi
a848cd7e 40470fi
646b6ec1 40471if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40472 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40473 old_CPPFLAGS="$CPPFLAGS"
40474 CPPFLAGS="$CPPFLAGS -x objective-c++"
40475 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40476echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40477if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40478 echo $ECHO_N "(cached) $ECHO_C" >&6
40479else
40480 cat >conftest.$ac_ext <<_ACEOF
40481/* confdefs.h. */
40482_ACEOF
40483cat confdefs.h >>conftest.$ac_ext
40484cat >>conftest.$ac_ext <<_ACEOF
40485/* end confdefs.h. */
40486#include <Carbon/Carbon.h>
40487
40488#include <WebKit/HIWebView.h>
40489_ACEOF
40490rm -f conftest.$ac_objext
40491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40492 (eval $ac_compile) 2>conftest.er1
40493 ac_status=$?
40494 grep -v '^ *+' conftest.er1 >conftest.err
40495 rm -f conftest.er1
40496 cat conftest.err >&5
40497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40498 (exit $ac_status); } &&
6ebeb4c7 40499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
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); }; } &&
40505 { ac_try='test -s conftest.$ac_objext'
40506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40507 (eval $ac_try) 2>&5
40508 ac_status=$?
40509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40510 (exit $ac_status); }; }; then
40511 ac_cv_header_WebKit_HIWebView_h=yes
40512else
40513 echo "$as_me: failed program was:" >&5
40514sed 's/^/| /' conftest.$ac_ext >&5
40515
40516ac_cv_header_WebKit_HIWebView_h=no
40517fi
40518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40519fi
40520echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40521echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40522if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40523
40524 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40525#define wxUSE_WEBKIT 1
40526_ACEOF
40527
07bea8f0
VS
40528 WEBKIT_LINK="-framework WebKit"
40529
40530else
40531
40532 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40533echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40534 wxUSE_WEBKIT=no
40535
646b6ec1
VS
40536fi
40537
07bea8f0
VS
40538
40539 CPPFLAGS="$old_CPPFLAGS"
40540 elif test "$wxUSE_COCOA" = 1; then
40541 cat >>confdefs.h <<\_ACEOF
40542#define wxUSE_WEBKIT 1
40543_ACEOF
40544
40545 else
40546 wxUSE_WEBKIT=no
40547 fi
40548fi
40549
9a8f0513
VS
40550USE_XRC=0
40551if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40552 if test "$wxUSE_XML" != "yes"; then
40553 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40554echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40555 wxUSE_XRC=no
40556 else
40557 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40558#define wxUSE_XRC 1
40559_ACEOF
40560
d2ebf0b7
VS
40561 USE_XRC=1
40562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40563 fi
9a8f0513 40564fi
07bea8f0 40565
a848cd7e
SC
40566if test "$wxUSE_MENUS" = "yes"; then
40567 cat >>confdefs.h <<\_ACEOF
40568#define wxUSE_MENUS 1
40569_ACEOF
40570
40571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40572fi
40573
40574if test "$wxUSE_METAFILE" = "yes"; then
40575 cat >>confdefs.h <<\_ACEOF
40576#define wxUSE_METAFILE 1
40577_ACEOF
40578
40579fi
40580
40581if test "$wxUSE_MIMETYPE" = "yes"; then
40582 cat >>confdefs.h <<\_ACEOF
40583#define wxUSE_MIMETYPE 1
40584_ACEOF
40585
40586fi
40587
40588if test "$wxUSE_MINIFRAME" = "yes"; then
40589 cat >>confdefs.h <<\_ACEOF
40590#define wxUSE_MINIFRAME 1
40591_ACEOF
40592
40593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40594fi
40595
40596if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40597 cat >>confdefs.h <<\_ACEOF
40598#define wxUSE_SYSTEM_OPTIONS 1
40599_ACEOF
40600
40601 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40602 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40604 fi
40605fi
40606
40607
40608if test "$wxUSE_VALIDATORS" = "yes"; then
40609 cat >>confdefs.h <<\_ACEOF
40610#define wxUSE_VALIDATORS 1
40611_ACEOF
40612
40613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40614fi
40615
40616if test "$wxUSE_PALETTE" = "yes" ; then
40617 cat >>confdefs.h <<\_ACEOF
40618#define wxUSE_PALETTE 1
40619_ACEOF
40620
40621fi
40622
40623if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40624 LIBS=" -lunicows $LIBS"
40625fi
40626
40627
40628if test "$wxUSE_IMAGE" = "yes" ; then
40629 cat >>confdefs.h <<\_ACEOF
40630#define wxUSE_IMAGE 1
40631_ACEOF
40632
40633
40634 if test "$wxUSE_GIF" = "yes" ; then
40635 cat >>confdefs.h <<\_ACEOF
40636#define wxUSE_GIF 1
40637_ACEOF
40638
40639 fi
40640
40641 if test "$wxUSE_PCX" = "yes" ; then
40642 cat >>confdefs.h <<\_ACEOF
40643#define wxUSE_PCX 1
40644_ACEOF
40645
40646 fi
40647
40648 if test "$wxUSE_IFF" = "yes" ; then
40649 cat >>confdefs.h <<\_ACEOF
40650#define wxUSE_IFF 1
40651_ACEOF
40652
40653 fi
40654
40655 if test "$wxUSE_PNM" = "yes" ; then
40656 cat >>confdefs.h <<\_ACEOF
40657#define wxUSE_PNM 1
40658_ACEOF
40659
40660 fi
40661
40662 if test "$wxUSE_XPM" = "yes" ; then
40663 cat >>confdefs.h <<\_ACEOF
40664#define wxUSE_XPM 1
40665_ACEOF
40666
40667 fi
40668
40669 if test "$wxUSE_ICO_CUR" = "yes" ; then
40670 cat >>confdefs.h <<\_ACEOF
40671#define wxUSE_ICO_CUR 1
40672_ACEOF
40673
40674 fi
40675fi
40676
40677
40678if test "$wxUSE_CHOICEDLG" = "yes"; then
40679 cat >>confdefs.h <<\_ACEOF
40680#define wxUSE_CHOICEDLG 1
40681_ACEOF
40682
40683fi
40684
40685if test "$wxUSE_COLOURDLG" = "yes"; then
40686 cat >>confdefs.h <<\_ACEOF
40687#define wxUSE_COLOURDLG 1
40688_ACEOF
40689
40690fi
40691
40692if test "$wxUSE_FILEDLG" = "yes"; then
40693 cat >>confdefs.h <<\_ACEOF
40694#define wxUSE_FILEDLG 1
40695_ACEOF
40696
40697fi
40698
40699if test "$wxUSE_FINDREPLDLG" = "yes"; then
40700 cat >>confdefs.h <<\_ACEOF
40701#define wxUSE_FINDREPLDLG 1
40702_ACEOF
40703
40704fi
40705
40706if test "$wxUSE_FONTDLG" = "yes"; then
40707 cat >>confdefs.h <<\_ACEOF
40708#define wxUSE_FONTDLG 1
40709_ACEOF
40710
40711fi
40712
40713if test "$wxUSE_DIRDLG" = "yes"; then
40714 if test "$wxUSE_TREECTRL" != "yes"; then
40715 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40716echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40717 else
40718 cat >>confdefs.h <<\_ACEOF
40719#define wxUSE_DIRDLG 1
40720_ACEOF
40721
40722 fi
40723fi
40724
40725if test "$wxUSE_MSGDLG" = "yes"; then
40726 cat >>confdefs.h <<\_ACEOF
40727#define wxUSE_MSGDLG 1
40728_ACEOF
40729
40730fi
40731
40732if test "$wxUSE_NUMBERDLG" = "yes"; then
40733 cat >>confdefs.h <<\_ACEOF
40734#define wxUSE_NUMBERDLG 1
40735_ACEOF
40736
40737fi
40738
40739if test "$wxUSE_PROGRESSDLG" = "yes"; then
40740 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40741 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40742echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40743 else
40744 cat >>confdefs.h <<\_ACEOF
40745#define wxUSE_PROGRESSDLG 1
40746_ACEOF
40747
40748 fi
40749fi
40750
40751if test "$wxUSE_SPLASH" = "yes"; then
40752 cat >>confdefs.h <<\_ACEOF
40753#define wxUSE_SPLASH 1
40754_ACEOF
40755
2057db16 40756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40757fi
40758
40759if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40760 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40761 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40762echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40763 else
40764 cat >>confdefs.h <<\_ACEOF
40765#define wxUSE_STARTUP_TIPS 1
40766_ACEOF
40767
40768 fi
40769fi
40770
40771if test "$wxUSE_TEXTDLG" = "yes"; then
40772 cat >>confdefs.h <<\_ACEOF
40773#define wxUSE_TEXTDLG 1
40774_ACEOF
40775
40776fi
40777
40778if test "$wxUSE_WIZARDDLG" = "yes"; then
40779 cat >>confdefs.h <<\_ACEOF
40780#define wxUSE_WIZARDDLG 1
40781_ACEOF
40782
40783 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40784fi
40785
40786
ce756cb0 40787if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40788 if test "$wxUSE_GTK" = 1; then
40789 wxUSE_GSTREAMER="yes"
40790
ce756cb0 40791
dae87f93 40792 succeeded=no
ce756cb0 40793
dae87f93
RN
40794 if test -z "$PKG_CONFIG"; then
40795 # Extract the first word of "pkg-config", so it can be a program name with args.
40796set dummy pkg-config; ac_word=$2
40797echo "$as_me:$LINENO: checking for $ac_word" >&5
40798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40799if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40800 echo $ECHO_N "(cached) $ECHO_C" >&6
40801else
40802 case $PKG_CONFIG in
40803 [\\/]* | ?:[\\/]*)
40804 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40805 ;;
40806 *)
40807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40808for as_dir in $PATH
40809do
40810 IFS=$as_save_IFS
40811 test -z "$as_dir" && as_dir=.
40812 for ac_exec_ext in '' $ac_executable_extensions; do
40813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40814 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40816 break 2
40817 fi
40818done
40819done
40820
40821 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40822 ;;
40823esac
40824fi
40825PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40826
40827if test -n "$PKG_CONFIG"; then
40828 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40829echo "${ECHO_T}$PKG_CONFIG" >&6
40830else
40831 echo "$as_me:$LINENO: result: no" >&5
40832echo "${ECHO_T}no" >&6
40833fi
40834
40835 fi
40836
40837 if test "$PKG_CONFIG" = "no" ; then
40838 echo "*** The pkg-config script could not be found. Make sure it is"
40839 echo "*** in your path, or set the PKG_CONFIG environment variable"
40840 echo "*** to the full path to pkg-config."
40841 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40842 else
40843 PKG_CONFIG_MIN_VERSION=0.9.0
40844 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40845 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40846echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40847
40848 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40849 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40850echo "${ECHO_T}yes" >&6
dae87f93 40851 succeeded=yes
ce756cb0 40852
dae87f93
RN
40853 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40854echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40855 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40856 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40857echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40858
40859 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40860echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40861 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40862 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40863echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40864 else
40865 GSTREAMER_CFLAGS=""
40866 GSTREAMER_LIBS=""
40867 ## If we have a custom action on failure, don't print errors, but
40868 ## do set a variable so people can do so.
40869 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40870
dae87f93
RN
40871 fi
40872
40873
40874
40875 else
40876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40878 fi
40879 fi
40880
40881 if test $succeeded = yes; then
40882
40883 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40884 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40885
ce756cb0 40886 else
dae87f93
RN
40887
40888 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40889echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40890 wxUSE_GSTREAMER="no"
40891
40892 fi
40893
40894
40895
40896
40897
40898 if test "x$GST_INSPECT" == "x"; then
40899 # Extract the first word of "gst-inspect", so it can be a program name with args.
40900set dummy gst-inspect; ac_word=$2
40901echo "$as_me:$LINENO: checking for $ac_word" >&5
40902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40903if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40904 echo $ECHO_N "(cached) $ECHO_C" >&6
40905else
40906 if test -n "$GST_INSPECT"; then
40907 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40908else
40909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40910for as_dir in $PATH
40911do
40912 IFS=$as_save_IFS
40913 test -z "$as_dir" && as_dir=.
40914 for ac_exec_ext in '' $ac_executable_extensions; do
40915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40916 ac_cv_prog_GST_INSPECT="gst-inspect"
40917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40918 break 2
ce756cb0 40919 fi
dae87f93
RN
40920done
40921done
40922
40923fi
40924fi
40925GST_INSPECT=$ac_cv_prog_GST_INSPECT
40926if test -n "$GST_INSPECT"; then
40927 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40928echo "${ECHO_T}$GST_INSPECT" >&6
40929else
40930 echo "$as_me:$LINENO: result: no" >&5
40931echo "${ECHO_T}no" >&6
40932fi
40933
40934 fi
40935
40936 if test "x$GST_INSPECT" != "x"; then
40937 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40938echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40939 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40940 echo "$as_me:$LINENO: result: found." >&5
40941echo "${ECHO_T}found." >&6
ce756cb0 40942
ce756cb0 40943 else
dae87f93
RN
40944 echo "$as_me:$LINENO: result: not found." >&5
40945echo "${ECHO_T}not found." >&6
40946
40947 wxUSE_GSTREAMER="no"
40948 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40949echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40950
40951 fi
40952 fi
40953
40954
40955 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40956echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40957if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40958 echo $ECHO_N "(cached) $ECHO_C" >&6
40959else
40960 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40961/* confdefs.h. */
40962_ACEOF
40963cat confdefs.h >>conftest.$ac_ext
40964cat >>conftest.$ac_ext <<_ACEOF
40965/* end confdefs.h. */
dae87f93 40966#include <gst/gst.h>
ce756cb0 40967
dae87f93 40968#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40969_ACEOF
40970rm -f conftest.$ac_objext
40971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40972 (eval $ac_compile) 2>conftest.er1
40973 ac_status=$?
40974 grep -v '^ *+' conftest.er1 >conftest.err
40975 rm -f conftest.er1
40976 cat conftest.err >&5
40977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978 (exit $ac_status); } &&
6ebeb4c7 40979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
40980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40981 (eval $ac_try) 2>&5
40982 ac_status=$?
40983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984 (exit $ac_status); }; } &&
40985 { ac_try='test -s conftest.$ac_objext'
40986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40987 (eval $ac_try) 2>&5
40988 ac_status=$?
40989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40990 (exit $ac_status); }; }; then
dae87f93 40991 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40992else
40993 echo "$as_me: failed program was:" >&5
40994sed 's/^/| /' conftest.$ac_ext >&5
40995
dae87f93 40996ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40997fi
40998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40999fi
41000echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
41001echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
41002if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
41003 :
41004else
ce756cb0 41005
dae87f93
RN
41006 wxUSE_GSTREAMER="no"
41007 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
41008echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 41009
dae87f93 41010fi
ce756cb0 41011
dae87f93
RN
41012
41013
41014 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
41015echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
41016
41017ac_find_libraries=
41018for ac_dir in $SEARCH_LIB /usr/lib;
41019 do
3eca31dc 41020 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
41021 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
41022 ac_find_libraries=$ac_dir
41023 break 2
41024 fi
41025 done
41026 done
41027
ce756cb0 41028
dae87f93
RN
41029 if test "$ac_find_libraries" = "" ; then
41030 echo "$as_me:$LINENO: result: no" >&5
41031echo "${ECHO_T}no" >&6
41032 wxUSE_GSTREAMER="no"
41033 else
41034 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41035echo "${ECHO_T}yes" >&6
dae87f93 41036 fi
ce756cb0 41037
dae87f93
RN
41038 if test "$wxUSE_GSTREAMER" = "yes"; then
41039 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
41040#define wxUSE_GSTREAMER 1
41041_ACEOF
41042
dae87f93
RN
41043 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
41044echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
41045 fi
41046 fi
41047 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
41048 cat >>confdefs.h <<\_ACEOF
41049#define wxUSE_MEDIACTRL 1
41050_ACEOF
41051
41052fi
41053
41054
a848cd7e
SC
41055if test "$cross_compiling" = "yes"; then
41056 OSINFO="\"$host\""
41057else
41058 OSINFO=`uname -s -r -m`
41059 OSINFO="\"$OSINFO\""
41060fi
41061
41062cat >>confdefs.h <<_ACEOF
41063#define WXWIN_OS_DESCRIPTION $OSINFO
41064_ACEOF
41065
41066
41067
41068if test "x$prefix" != "xNONE"; then
41069 wxPREFIX=$prefix
41070else
41071 wxPREFIX=$ac_default_prefix
41072fi
41073
41074cat >>confdefs.h <<_ACEOF
41075#define wxINSTALL_PREFIX "$wxPREFIX"
41076_ACEOF
41077
41078
a848cd7e
SC
41079
41080
41081CORE_BASE_LIBS="net base"
41082CORE_GUI_LIBS="adv core"
41083
41084if test "$wxUSE_XML" = "yes" ; then
41085 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
41086fi
41087if test "$wxUSE_ODBC" != "no" ; then
41088 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
41089 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
41090fi
41091if test "$wxUSE_HTML" = "yes" ; then
41092 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
41093fi
61639efb
VZ
41094if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41095 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
41096fi
9a8f0513
VS
41097if test "$wxUSE_XRC" = "yes" ; then
41098 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
41099fi
a848cd7e
SC
41100
41101if test "$wxUSE_GUI" != "yes"; then
41102 CORE_GUI_LIBS=""
41103fi
41104
41105
41106
41107
41108
41109
41110
41111
41112if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 41113 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
41114 if test "$USE_DARWIN" = 1; then
41115 LDFLAGS="$LDFLAGS -framework QuickTime"
41116 else
41117 LDFLAGS="$LDFLAGS -lQuickTimeLib"
41118 fi
07bea8f0 41119 fi
5dcf30a0 41120 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
41121 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
41122 else
41123 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 41124 fi
a848cd7e
SC
41125fi
41126if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 41127 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
41128 if test "$wxUSE_MEDIACTRL" = "yes"; then
41129 LDFLAGS="$LDFLAGS -framework QuickTime"
41130 fi
a848cd7e 41131fi
19b27e78
MW
41132if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
41133 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
41134fi
a848cd7e
SC
41135
41136
41137LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
41138
41139have_cos=0
41140have_floor=0
41141
41142for ac_func in cos
41143do
41144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41145echo "$as_me:$LINENO: checking for $ac_func" >&5
41146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41147if eval "test \"\${$as_ac_var+set}\" = set"; then
41148 echo $ECHO_N "(cached) $ECHO_C" >&6
41149else
41150 cat >conftest.$ac_ext <<_ACEOF
41151/* confdefs.h. */
41152_ACEOF
41153cat confdefs.h >>conftest.$ac_ext
41154cat >>conftest.$ac_ext <<_ACEOF
41155/* end confdefs.h. */
ac1cb8d3
VS
41156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41158#define $ac_func innocuous_$ac_func
41159
a848cd7e
SC
41160/* System header to define __stub macros and hopefully few prototypes,
41161 which can conflict with char $ac_func (); below.
41162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41163 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41164
a848cd7e
SC
41165#ifdef __STDC__
41166# include <limits.h>
41167#else
41168# include <assert.h>
41169#endif
ac1cb8d3
VS
41170
41171#undef $ac_func
41172
a848cd7e
SC
41173/* Override any gcc2 internal prototype to avoid an error. */
41174#ifdef __cplusplus
41175extern "C"
41176{
41177#endif
41178/* We use char because int might match the return type of a gcc2
41179 builtin and then its argument prototype would still apply. */
41180char $ac_func ();
41181/* The GNU C library defines this for functions which it implements
41182 to always fail with ENOSYS. Some functions are actually named
41183 something starting with __ and the normal name is an alias. */
41184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41185choke me
41186#else
41187char (*f) () = $ac_func;
41188#endif
41189#ifdef __cplusplus
41190}
41191#endif
41192
41193int
41194main ()
41195{
41196return f != $ac_func;
41197 ;
41198 return 0;
41199}
41200_ACEOF
41201rm -f conftest.$ac_objext conftest$ac_exeext
41202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41203 (eval $ac_link) 2>conftest.er1
a848cd7e 41204 ac_status=$?
ac1cb8d3
VS
41205 grep -v '^ *+' conftest.er1 >conftest.err
41206 rm -f conftest.er1
41207 cat conftest.err >&5
a848cd7e
SC
41208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41209 (exit $ac_status); } &&
6ebeb4c7 41210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41212 (eval $ac_try) 2>&5
41213 ac_status=$?
41214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41215 (exit $ac_status); }; } &&
41216 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41218 (eval $ac_try) 2>&5
41219 ac_status=$?
41220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41221 (exit $ac_status); }; }; then
41222 eval "$as_ac_var=yes"
41223else
41224 echo "$as_me: failed program was:" >&5
41225sed 's/^/| /' conftest.$ac_ext >&5
41226
41227eval "$as_ac_var=no"
41228fi
ac1cb8d3
VS
41229rm -f conftest.err conftest.$ac_objext \
41230 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41231fi
41232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41233echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41234if test `eval echo '${'$as_ac_var'}'` = yes; then
41235 cat >>confdefs.h <<_ACEOF
41236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41237_ACEOF
41238 have_cos=1
41239fi
41240done
41241
41242
41243for ac_func in floor
41244do
41245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41246echo "$as_me:$LINENO: checking for $ac_func" >&5
41247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41248if eval "test \"\${$as_ac_var+set}\" = set"; then
41249 echo $ECHO_N "(cached) $ECHO_C" >&6
41250else
41251 cat >conftest.$ac_ext <<_ACEOF
41252/* confdefs.h. */
41253_ACEOF
41254cat confdefs.h >>conftest.$ac_ext
41255cat >>conftest.$ac_ext <<_ACEOF
41256/* end confdefs.h. */
ac1cb8d3
VS
41257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41259#define $ac_func innocuous_$ac_func
41260
a848cd7e
SC
41261/* System header to define __stub macros and hopefully few prototypes,
41262 which can conflict with char $ac_func (); below.
41263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41264 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41265
a848cd7e
SC
41266#ifdef __STDC__
41267# include <limits.h>
41268#else
41269# include <assert.h>
41270#endif
ac1cb8d3
VS
41271
41272#undef $ac_func
41273
a848cd7e
SC
41274/* Override any gcc2 internal prototype to avoid an error. */
41275#ifdef __cplusplus
41276extern "C"
41277{
41278#endif
41279/* We use char because int might match the return type of a gcc2
41280 builtin and then its argument prototype would still apply. */
41281char $ac_func ();
41282/* The GNU C library defines this for functions which it implements
41283 to always fail with ENOSYS. Some functions are actually named
41284 something starting with __ and the normal name is an alias. */
41285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41286choke me
41287#else
41288char (*f) () = $ac_func;
41289#endif
41290#ifdef __cplusplus
41291}
41292#endif
41293
41294int
41295main ()
41296{
41297return f != $ac_func;
41298 ;
41299 return 0;
41300}
41301_ACEOF
41302rm -f conftest.$ac_objext conftest$ac_exeext
41303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41304 (eval $ac_link) 2>conftest.er1
a848cd7e 41305 ac_status=$?
ac1cb8d3
VS
41306 grep -v '^ *+' conftest.er1 >conftest.err
41307 rm -f conftest.er1
41308 cat conftest.err >&5
a848cd7e
SC
41309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41310 (exit $ac_status); } &&
6ebeb4c7 41311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41313 (eval $ac_try) 2>&5
41314 ac_status=$?
41315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41316 (exit $ac_status); }; } &&
41317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41319 (eval $ac_try) 2>&5
41320 ac_status=$?
41321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41322 (exit $ac_status); }; }; then
41323 eval "$as_ac_var=yes"
41324else
41325 echo "$as_me: failed program was:" >&5
41326sed 's/^/| /' conftest.$ac_ext >&5
41327
41328eval "$as_ac_var=no"
41329fi
ac1cb8d3
VS
41330rm -f conftest.err conftest.$ac_objext \
41331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41332fi
41333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41334echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41335if test `eval echo '${'$as_ac_var'}'` = yes; then
41336 cat >>confdefs.h <<_ACEOF
41337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41338_ACEOF
41339 have_floor=1
41340fi
41341done
41342
41343echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
41344echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
41345if test "$have_cos" = 1 -a "$have_floor" = 1; then
41346 echo "$as_me:$LINENO: result: yes" >&5
41347echo "${ECHO_T}yes" >&6
41348else
41349 echo "$as_me:$LINENO: result: no" >&5
41350echo "${ECHO_T}no" >&6
41351 LIBS="$LIBS -lm"
41352 # use different functions to avoid configure caching
41353 have_sin=0
41354 have_ceil=0
41355
41356for ac_func in sin
41357do
41358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41359echo "$as_me:$LINENO: checking for $ac_func" >&5
41360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41361if eval "test \"\${$as_ac_var+set}\" = set"; then
41362 echo $ECHO_N "(cached) $ECHO_C" >&6
41363else
41364 cat >conftest.$ac_ext <<_ACEOF
41365/* confdefs.h. */
41366_ACEOF
41367cat confdefs.h >>conftest.$ac_ext
41368cat >>conftest.$ac_ext <<_ACEOF
41369/* end confdefs.h. */
ac1cb8d3
VS
41370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41372#define $ac_func innocuous_$ac_func
41373
a848cd7e
SC
41374/* System header to define __stub macros and hopefully few prototypes,
41375 which can conflict with char $ac_func (); below.
41376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41377 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41378
a848cd7e
SC
41379#ifdef __STDC__
41380# include <limits.h>
41381#else
41382# include <assert.h>
41383#endif
ac1cb8d3
VS
41384
41385#undef $ac_func
41386
a848cd7e
SC
41387/* Override any gcc2 internal prototype to avoid an error. */
41388#ifdef __cplusplus
41389extern "C"
41390{
41391#endif
41392/* We use char because int might match the return type of a gcc2
41393 builtin and then its argument prototype would still apply. */
41394char $ac_func ();
41395/* The GNU C library defines this for functions which it implements
41396 to always fail with ENOSYS. Some functions are actually named
41397 something starting with __ and the normal name is an alias. */
41398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41399choke me
41400#else
41401char (*f) () = $ac_func;
41402#endif
41403#ifdef __cplusplus
41404}
41405#endif
41406
41407int
41408main ()
41409{
41410return f != $ac_func;
41411 ;
41412 return 0;
41413}
41414_ACEOF
41415rm -f conftest.$ac_objext conftest$ac_exeext
41416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41417 (eval $ac_link) 2>conftest.er1
a848cd7e 41418 ac_status=$?
ac1cb8d3
VS
41419 grep -v '^ *+' conftest.er1 >conftest.err
41420 rm -f conftest.er1
41421 cat conftest.err >&5
a848cd7e
SC
41422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41423 (exit $ac_status); } &&
6ebeb4c7 41424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41426 (eval $ac_try) 2>&5
41427 ac_status=$?
41428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41429 (exit $ac_status); }; } &&
41430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41432 (eval $ac_try) 2>&5
41433 ac_status=$?
41434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41435 (exit $ac_status); }; }; then
41436 eval "$as_ac_var=yes"
41437else
41438 echo "$as_me: failed program was:" >&5
41439sed 's/^/| /' conftest.$ac_ext >&5
41440
41441eval "$as_ac_var=no"
41442fi
ac1cb8d3
VS
41443rm -f conftest.err conftest.$ac_objext \
41444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41445fi
41446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41448if test `eval echo '${'$as_ac_var'}'` = yes; then
41449 cat >>confdefs.h <<_ACEOF
41450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41451_ACEOF
41452 have_sin=1
41453fi
41454done
41455
41456
41457for ac_func in ceil
41458do
41459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41460echo "$as_me:$LINENO: checking for $ac_func" >&5
41461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41462if eval "test \"\${$as_ac_var+set}\" = set"; then
41463 echo $ECHO_N "(cached) $ECHO_C" >&6
41464else
41465 cat >conftest.$ac_ext <<_ACEOF
41466/* confdefs.h. */
41467_ACEOF
41468cat confdefs.h >>conftest.$ac_ext
41469cat >>conftest.$ac_ext <<_ACEOF
41470/* end confdefs.h. */
ac1cb8d3
VS
41471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41473#define $ac_func innocuous_$ac_func
41474
a848cd7e
SC
41475/* System header to define __stub macros and hopefully few prototypes,
41476 which can conflict with char $ac_func (); below.
41477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41478 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41479
a848cd7e
SC
41480#ifdef __STDC__
41481# include <limits.h>
41482#else
41483# include <assert.h>
41484#endif
ac1cb8d3
VS
41485
41486#undef $ac_func
41487
a848cd7e
SC
41488/* Override any gcc2 internal prototype to avoid an error. */
41489#ifdef __cplusplus
41490extern "C"
41491{
41492#endif
41493/* We use char because int might match the return type of a gcc2
41494 builtin and then its argument prototype would still apply. */
41495char $ac_func ();
41496/* The GNU C library defines this for functions which it implements
41497 to always fail with ENOSYS. Some functions are actually named
41498 something starting with __ and the normal name is an alias. */
41499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41500choke me
41501#else
41502char (*f) () = $ac_func;
41503#endif
41504#ifdef __cplusplus
41505}
41506#endif
41507
41508int
41509main ()
41510{
41511return f != $ac_func;
41512 ;
41513 return 0;
41514}
41515_ACEOF
41516rm -f conftest.$ac_objext conftest$ac_exeext
41517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41518 (eval $ac_link) 2>conftest.er1
a848cd7e 41519 ac_status=$?
ac1cb8d3
VS
41520 grep -v '^ *+' conftest.er1 >conftest.err
41521 rm -f conftest.er1
41522 cat conftest.err >&5
a848cd7e
SC
41523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41524 (exit $ac_status); } &&
6ebeb4c7 41525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41527 (eval $ac_try) 2>&5
41528 ac_status=$?
41529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41530 (exit $ac_status); }; } &&
41531 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41533 (eval $ac_try) 2>&5
41534 ac_status=$?
41535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41536 (exit $ac_status); }; }; then
41537 eval "$as_ac_var=yes"
41538else
41539 echo "$as_me: failed program was:" >&5
41540sed 's/^/| /' conftest.$ac_ext >&5
41541
41542eval "$as_ac_var=no"
41543fi
ac1cb8d3
VS
41544rm -f conftest.err conftest.$ac_objext \
41545 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41546fi
41547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41548echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41549if test `eval echo '${'$as_ac_var'}'` = yes; then
41550 cat >>confdefs.h <<_ACEOF
41551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41552_ACEOF
41553 have_ceil=1
41554fi
41555done
41556
41557 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41558echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41559 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41560 echo "$as_me:$LINENO: result: yes" >&5
41561echo "${ECHO_T}yes" >&6
41562 else
41563 echo "$as_me:$LINENO: result: no" >&5
41564echo "${ECHO_T}no" >&6
41565 # not sure we should warn the user, crash, etc.
41566 fi
41567fi
41568
41569if test "$wxUSE_GUI" = "yes"; then
41570
41571
8bce5cda
MW
41572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41573 dynamic erase event exec font image minimal mobile \
41574 mobile/wxedit mobile/styles propsize render \
41575 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41576
41577 if test "$wxUSE_MONOLITHIC" != "yes"; then
41578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41579 fi
0b78747f 41580 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41582 if test "$wxUSE_UNIVERSAL" != "yes"; then
41583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41584 fi
41585 fi
41586 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41588 fi
a848cd7e
SC
41589else
41590 SAMPLES_SUBDIRS="console"
41591fi
41592
41593
ceec2216 41594INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41595-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41596
41597if test "$GXX" = yes ; then
6ebeb4c7 41598 CWARNINGS="-Wall -Wundef"
5294a27e 41599 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
6ebeb4c7 41600fi
a848cd7e
SC
41601
41602EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41603
0c3c69fc 41604CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41605CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41606CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41607
95986553
DE
41608if test "x$MWCC" = "xyes"; then
41609
41610 CC="$CC -cwd source -I-"
41611 CXX="$CXX -cwd source -I-"
41612fi
41613
a848cd7e 41614
0c3c69fc 41615LIBS=`echo $LIBS`
a848cd7e
SC
41616EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41617EXTRALIBS_XML="$EXPAT_LINK"
41618EXTRALIBS_HTML="$MSPACK_LINK"
41619EXTRALIBS_ODBC="$ODBC_LINK"
41620if test "$wxUSE_GUI" = "yes"; then
2e350179 41621 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41622fi
41623if test "$wxUSE_OPENGL" = "yes"; then
41624 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41625fi
41626
41627LDFLAGS="$LDFLAGS $PROFILE"
41628
41629if test "$wxUSE_GTK" = 1; then
41630 WXCONFIG_INCLUDE=
41631else
41632 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41633fi
41634
41635WXCONFIG_EXTRALIBS="$LIBS"
41636
41637if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41638 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41639fi
41640if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41641 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41642fi
41643if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41644 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41645fi
41646if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41647 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41648fi
41649if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41650 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41651fi
41652if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41653 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41654fi
41655if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41656 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41657fi
41658
41659for i in $wxconfig_3rdparty ; do
74802184 41660 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41661done
41662
41663
41664if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41665 WXUNIV=1
41666else
41667 WXUNIV=0
41668fi
41669
41670
41671
41672
41673
41674
41675
41676
41677
41678if test $wxUSE_MONOLITHIC = "yes" ; then
41679 MONOLITHIC=1
41680else
41681 MONOLITHIC=0
41682fi
41683
41684if test $wxUSE_PLUGINS = "yes" ; then
41685 USE_PLUGINS=1
41686else
41687 USE_PLUGINS=0
41688fi
41689
41690if test $wxUSE_ODBC != "no" ; then
41691 USE_ODBC=1
41692else
41693 USE_ODBC=0
41694fi
41695
16358932
VZ
41696if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41697 USE_QA=1
41698else
41699 USE_QA=0
41700fi
41701
a848cd7e
SC
41702if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41703 OFFICIAL_BUILD=1
41704else
41705 OFFICIAL_BUILD=0
41706fi
41707
41708
41709
41710
41711
41712
41713
41714
41715
41716
41717
41718
41719
41720
41721
41722
41723
41724
41725
ceec2216 41726
d1c38808 41727
a848cd7e
SC
41728
41729
41730TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41731
41732
41733
41734
41735
41736
41737
41738
4d4ff94c
VZ
41739case "$TOOLKIT" in
41740 GTK)
41741 TOOLKIT_USER="GTK+"
41742 if test "$WXGTK20" = 1; then
41743 TOOLKIT_USER="$TOOLKIT_USER 2"
41744 fi
9a8f0513 41745 ;;
4d4ff94c
VZ
41746
41747 *)
41748 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41749 ;;
4d4ff94c 41750esac
a848cd7e 41751
fb00f58d
JS
41752if test "$wxUSE_WINE" = "yes"; then
41753 BAKEFILE_FORCE_PLATFORM=win32
41754fi
41755
9a8f0513 41756
1e9e8aba
DE
41757
41758
a848cd7e
SC
41759 if test "x$BAKEFILE_HOST" = "x"; then
41760 BAKEFILE_HOST="${host}"
41761 fi
41762
41763 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41764
41765 if test -n "$ac_tool_prefix"; then
41766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41767set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41768echo "$as_me:$LINENO: checking for $ac_word" >&5
41769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41770if test "${ac_cv_prog_RANLIB+set}" = set; then
41771 echo $ECHO_N "(cached) $ECHO_C" >&6
41772else
41773 if test -n "$RANLIB"; then
41774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41775else
41776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41777for as_dir in $PATH
41778do
41779 IFS=$as_save_IFS
41780 test -z "$as_dir" && as_dir=.
41781 for ac_exec_ext in '' $ac_executable_extensions; do
41782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41783 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41785 break 2
41786 fi
41787done
41788done
41789
41790fi
41791fi
41792RANLIB=$ac_cv_prog_RANLIB
41793if test -n "$RANLIB"; then
41794 echo "$as_me:$LINENO: result: $RANLIB" >&5
41795echo "${ECHO_T}$RANLIB" >&6
41796else
41797 echo "$as_me:$LINENO: result: no" >&5
41798echo "${ECHO_T}no" >&6
41799fi
41800
41801fi
41802if test -z "$ac_cv_prog_RANLIB"; then
41803 ac_ct_RANLIB=$RANLIB
41804 # Extract the first word of "ranlib", so it can be a program name with args.
41805set dummy ranlib; ac_word=$2
41806echo "$as_me:$LINENO: checking for $ac_word" >&5
41807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41808if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41809 echo $ECHO_N "(cached) $ECHO_C" >&6
41810else
41811 if test -n "$ac_ct_RANLIB"; then
41812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41813else
41814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41815for as_dir in $PATH
41816do
41817 IFS=$as_save_IFS
41818 test -z "$as_dir" && as_dir=.
41819 for ac_exec_ext in '' $ac_executable_extensions; do
41820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41821 ac_cv_prog_ac_ct_RANLIB="ranlib"
41822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41823 break 2
41824 fi
41825done
41826done
41827
41828 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41829fi
41830fi
41831ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41832if test -n "$ac_ct_RANLIB"; then
41833 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41834echo "${ECHO_T}$ac_ct_RANLIB" >&6
41835else
41836 echo "$as_me:$LINENO: result: no" >&5
41837echo "${ECHO_T}no" >&6
41838fi
41839
41840 RANLIB=$ac_ct_RANLIB
41841else
41842 RANLIB="$ac_cv_prog_RANLIB"
41843fi
41844
41845 # Find a good install program. We prefer a C program (faster),
41846# so one script is as good as another. But avoid the broken or
41847# incompatible versions:
41848# SysV /etc/install, /usr/sbin/install
41849# SunOS /usr/etc/install
41850# IRIX /sbin/install
41851# AIX /bin/install
41852# AmigaOS /C/install, which installs bootblocks on floppy discs
41853# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41854# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41855# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41856# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41857# ./install, which can be erroneously created by make from ./install.sh.
41858echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41859echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41860if test -z "$INSTALL"; then
41861if test "${ac_cv_path_install+set}" = set; then
41862 echo $ECHO_N "(cached) $ECHO_C" >&6
41863else
41864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41865for as_dir in $PATH
41866do
41867 IFS=$as_save_IFS
41868 test -z "$as_dir" && as_dir=.
41869 # Account for people who put trailing slashes in PATH elements.
41870case $as_dir/ in
41871 ./ | .// | /cC/* | \
41872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41873 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41874 /usr/ucb/* ) ;;
41875 *)
41876 # OSF1 and SCO ODT 3.0 have their own names for install.
41877 # Don't use installbsd from OSF since it installs stuff as root
41878 # by default.
41879 for ac_prog in ginstall scoinst install; do
41880 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41881 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41882 if test $ac_prog = install &&
41883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41884 # AIX install. It has an incompatible calling convention.
41885 :
41886 elif test $ac_prog = install &&
41887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41888 # program-specific install script used by HP pwplus--don't use.
41889 :
41890 else
41891 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41892 break 3
41893 fi
41894 fi
a848cd7e
SC
41895 done
41896 done
41897 ;;
41898esac
41899done
41900
41901
41902fi
41903 if test "${ac_cv_path_install+set}" = set; then
41904 INSTALL=$ac_cv_path_install
41905 else
41906 # As a last resort, use the slow shell script. We don't cache a
41907 # path for INSTALL within a source directory, because that will
41908 # break other packages using the cache if that directory is
41909 # removed, or if the path is relative.
41910 INSTALL=$ac_install_sh
41911 fi
41912fi
41913echo "$as_me:$LINENO: result: $INSTALL" >&5
41914echo "${ECHO_T}$INSTALL" >&6
41915
41916# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41917# It thinks the first close brace ends the variable substitution.
41918test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41919
41920test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41921
41922test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41923
41924 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41925echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41926LN_S=$as_ln_s
41927if test "$LN_S" = "ln -s"; then
41928 echo "$as_me:$LINENO: result: yes" >&5
41929echo "${ECHO_T}yes" >&6
41930else
41931 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41932echo "${ECHO_T}no, using $LN_S" >&6
41933fi
41934
41935
41936 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41937echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41938set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41939if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41940 echo $ECHO_N "(cached) $ECHO_C" >&6
41941else
41942 cat >conftest.make <<\_ACEOF
41943all:
41944 @echo 'ac_maketemp="$(MAKE)"'
41945_ACEOF
41946# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41947eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41948if test -n "$ac_maketemp"; then
41949 eval ac_cv_prog_make_${ac_make}_set=yes
41950else
41951 eval ac_cv_prog_make_${ac_make}_set=no
41952fi
41953rm -f conftest.make
41954fi
41955if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41956 echo "$as_me:$LINENO: result: yes" >&5
41957echo "${ECHO_T}yes" >&6
41958 SET_MAKE=
41959else
41960 echo "$as_me:$LINENO: result: no" >&5
41961echo "${ECHO_T}no" >&6
41962 SET_MAKE="MAKE=${MAKE-make}"
41963fi
41964
41965
41966
41967 if test -n "$ac_tool_prefix"; then
41968 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41969set dummy ${ac_tool_prefix}ar; ac_word=$2
41970echo "$as_me:$LINENO: checking for $ac_word" >&5
41971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41972if test "${ac_cv_prog_AR+set}" = set; then
41973 echo $ECHO_N "(cached) $ECHO_C" >&6
41974else
41975 if test -n "$AR"; then
41976 ac_cv_prog_AR="$AR" # Let the user override the test.
41977else
41978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41979for as_dir in $PATH
41980do
41981 IFS=$as_save_IFS
41982 test -z "$as_dir" && as_dir=.
41983 for ac_exec_ext in '' $ac_executable_extensions; do
41984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41985 ac_cv_prog_AR="${ac_tool_prefix}ar"
41986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41987 break 2
41988 fi
41989done
41990done
41991
41992fi
41993fi
41994AR=$ac_cv_prog_AR
41995if test -n "$AR"; then
41996 echo "$as_me:$LINENO: result: $AR" >&5
41997echo "${ECHO_T}$AR" >&6
41998else
41999 echo "$as_me:$LINENO: result: no" >&5
42000echo "${ECHO_T}no" >&6
42001fi
42002
42003fi
42004if test -z "$ac_cv_prog_AR"; then
42005 ac_ct_AR=$AR
42006 # Extract the first word of "ar", so it can be a program name with args.
42007set dummy ar; ac_word=$2
42008echo "$as_me:$LINENO: checking for $ac_word" >&5
42009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42010if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42011 echo $ECHO_N "(cached) $ECHO_C" >&6
42012else
42013 if test -n "$ac_ct_AR"; then
42014 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42015else
42016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42017for as_dir in $PATH
42018do
42019 IFS=$as_save_IFS
42020 test -z "$as_dir" && as_dir=.
42021 for ac_exec_ext in '' $ac_executable_extensions; do
42022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42023 ac_cv_prog_ac_ct_AR="ar"
42024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42025 break 2
42026 fi
42027done
42028done
42029
42030 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
42031fi
42032fi
42033ac_ct_AR=$ac_cv_prog_ac_ct_AR
42034if test -n "$ac_ct_AR"; then
42035 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
42036echo "${ECHO_T}$ac_ct_AR" >&6
42037else
42038 echo "$as_me:$LINENO: result: no" >&5
42039echo "${ECHO_T}no" >&6
42040fi
42041
42042 AR=$ac_ct_AR
42043else
42044 AR="$ac_cv_prog_AR"
42045fi
42046
42047 if test -n "$ac_tool_prefix"; then
42048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
42049set dummy ${ac_tool_prefix}strip; ac_word=$2
42050echo "$as_me:$LINENO: checking for $ac_word" >&5
42051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42052if test "${ac_cv_prog_STRIP+set}" = set; then
42053 echo $ECHO_N "(cached) $ECHO_C" >&6
42054else
42055 if test -n "$STRIP"; then
42056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42057else
42058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42059for as_dir in $PATH
42060do
42061 IFS=$as_save_IFS
42062 test -z "$as_dir" && as_dir=.
42063 for ac_exec_ext in '' $ac_executable_extensions; do
42064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
42066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42067 break 2
42068 fi
42069done
42070done
42071
42072fi
42073fi
42074STRIP=$ac_cv_prog_STRIP
42075if test -n "$STRIP"; then
42076 echo "$as_me:$LINENO: result: $STRIP" >&5
42077echo "${ECHO_T}$STRIP" >&6
42078else
42079 echo "$as_me:$LINENO: result: no" >&5
42080echo "${ECHO_T}no" >&6
42081fi
42082
42083fi
42084if test -z "$ac_cv_prog_STRIP"; then
42085 ac_ct_STRIP=$STRIP
42086 # Extract the first word of "strip", so it can be a program name with args.
42087set dummy strip; ac_word=$2
42088echo "$as_me:$LINENO: checking for $ac_word" >&5
42089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42090if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
42091 echo $ECHO_N "(cached) $ECHO_C" >&6
42092else
42093 if test -n "$ac_ct_STRIP"; then
42094 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
42095else
42096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42097for as_dir in $PATH
42098do
42099 IFS=$as_save_IFS
42100 test -z "$as_dir" && as_dir=.
42101 for ac_exec_ext in '' $ac_executable_extensions; do
42102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42103 ac_cv_prog_ac_ct_STRIP="strip"
42104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42105 break 2
42106 fi
42107done
42108done
42109
42110 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
42111fi
42112fi
42113ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
42114if test -n "$ac_ct_STRIP"; then
42115 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
42116echo "${ECHO_T}$ac_ct_STRIP" >&6
42117else
42118 echo "$as_me:$LINENO: result: no" >&5
42119echo "${ECHO_T}no" >&6
42120fi
42121
42122 STRIP=$ac_ct_STRIP
42123else
42124 STRIP="$ac_cv_prog_STRIP"
42125fi
42126
42127 if test -n "$ac_tool_prefix"; then
42128 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
42129set dummy ${ac_tool_prefix}nm; ac_word=$2
42130echo "$as_me:$LINENO: checking for $ac_word" >&5
42131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42132if test "${ac_cv_prog_NM+set}" = set; then
42133 echo $ECHO_N "(cached) $ECHO_C" >&6
42134else
42135 if test -n "$NM"; then
42136 ac_cv_prog_NM="$NM" # Let the user override the test.
42137else
42138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42139for as_dir in $PATH
42140do
42141 IFS=$as_save_IFS
42142 test -z "$as_dir" && as_dir=.
42143 for ac_exec_ext in '' $ac_executable_extensions; do
42144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42145 ac_cv_prog_NM="${ac_tool_prefix}nm"
42146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42147 break 2
42148 fi
42149done
42150done
42151
42152fi
42153fi
42154NM=$ac_cv_prog_NM
42155if test -n "$NM"; then
42156 echo "$as_me:$LINENO: result: $NM" >&5
42157echo "${ECHO_T}$NM" >&6
42158else
42159 echo "$as_me:$LINENO: result: no" >&5
42160echo "${ECHO_T}no" >&6
42161fi
42162
42163fi
42164if test -z "$ac_cv_prog_NM"; then
42165 ac_ct_NM=$NM
42166 # Extract the first word of "nm", so it can be a program name with args.
42167set dummy nm; ac_word=$2
42168echo "$as_me:$LINENO: checking for $ac_word" >&5
42169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42170if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
42171 echo $ECHO_N "(cached) $ECHO_C" >&6
42172else
42173 if test -n "$ac_ct_NM"; then
42174 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
42175else
42176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42177for as_dir in $PATH
42178do
42179 IFS=$as_save_IFS
42180 test -z "$as_dir" && as_dir=.
42181 for ac_exec_ext in '' $ac_executable_extensions; do
42182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42183 ac_cv_prog_ac_ct_NM="nm"
42184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42185 break 2
42186 fi
42187done
42188done
42189
42190 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
42191fi
42192fi
42193ac_ct_NM=$ac_cv_prog_ac_ct_NM
42194if test -n "$ac_ct_NM"; then
42195 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
42196echo "${ECHO_T}$ac_ct_NM" >&6
42197else
42198 echo "$as_me:$LINENO: result: no" >&5
42199echo "${ECHO_T}no" >&6
42200fi
42201
42202 NM=$ac_ct_NM
42203else
42204 NM="$ac_cv_prog_NM"
42205fi
42206
42207
42208 case ${BAKEFILE_HOST} in
42209 *-hp-hpux* )
1e9e8aba 42210 INSTALL_DIR="mkdir -p"
a848cd7e
SC
42211 ;;
42212 *) INSTALL_DIR="$INSTALL -d"
42213 ;;
42214 esac
42215
42216
42217 LDFLAGS_GUI=
42218 case ${BAKEFILE_HOST} in
42219 *-*-cygwin* | *-*-mingw32* )
42220 LDFLAGS_GUI="-mwindows"
42221 esac
42222
42223
42224 fi
42225
42226 echo "$as_me:$LINENO: checking if make is GNU make" >&5
42227echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
42228if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
42229 echo $ECHO_N "(cached) $ECHO_C" >&6
42230else
42231
42232 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
42233 egrep -s GNU > /dev/null); then
42234 bakefile_cv_prog_makeisgnu="yes"
42235 else
42236 bakefile_cv_prog_makeisgnu="no"
42237 fi
42238
42239fi
42240echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
42241echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
42242
42243 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
42244 IF_GNU_MAKE=""
42245 else
42246 IF_GNU_MAKE="#"
42247 fi
42248
42249
42250
42251 PLATFORM_UNIX=0
42252 PLATFORM_WIN32=0
42253 PLATFORM_MSDOS=0
42254 PLATFORM_MAC=0
1e9e8aba 42255 PLATFORM_MACOS=0
a848cd7e
SC
42256 PLATFORM_MACOSX=0
42257 PLATFORM_OS2=0
1e9e8aba 42258 PLATFORM_BEOS=0
a848cd7e
SC
42259
42260 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
42261 case "${BAKEFILE_HOST}" in
810b94f0 42262 *-*-mingw32* )
a848cd7e
SC
42263 PLATFORM_WIN32=1
42264 ;;
42265 *-pc-msdosdjgpp )
42266 PLATFORM_MSDOS=1
42267 ;;
42268 *-pc-os2_emx | *-pc-os2-emx )
42269 PLATFORM_OS2=1
42270 ;;
47bd5406 42271 *-*-darwin* )
a848cd7e
SC
42272 PLATFORM_MAC=1
42273 PLATFORM_MACOSX=1
42274 ;;
1e9e8aba
DE
42275 *-*-beos* )
42276 PLATFORM_BEOS=1
42277 ;;
42278 powerpc-apple-macos* )
42279 PLATFORM_MAC=1
42280 PLATFORM_MACOS=1
42281 ;;
a848cd7e
SC
42282 * )
42283 PLATFORM_UNIX=1
42284 ;;
42285 esac
42286 else
42287 case "$BAKEFILE_FORCE_PLATFORM" in
42288 win32 )
42289 PLATFORM_WIN32=1
42290 ;;
42291 msdos )
42292 PLATFORM_MSDOS=1
42293 ;;
42294 os2 )
42295 PLATFORM_OS2=1
42296 ;;
42297 darwin )
42298 PLATFORM_MAC=1
42299 PLATFORM_MACOSX=1
42300 ;;
42301 unix )
42302 PLATFORM_UNIX=1
42303 ;;
1e9e8aba
DE
42304 beos )
42305 PLATFORM_BEOS=1
42306 ;;
a848cd7e
SC
42307 * )
42308 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
42309echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
42310 { (exit 1); exit 1; }; }
42311 ;;
42312 esac
42313 fi
42314
42315
42316
42317
42318
42319
42320
42321
42322
1e9e8aba
DE
42323
42324
a848cd7e
SC
42325 # Check whether --enable-omf or --disable-omf was given.
42326if test "${enable_omf+set}" = set; then
42327 enableval="$enable_omf"
42328 bk_os2_use_omf="$enableval"
42329fi;
42330
42331 case "${BAKEFILE_HOST}" in
42332 *-*-darwin* )
47bd5406
VZ
42333 if test "x$GCC" = "xyes"; then
42334 CFLAGS="$CFLAGS -fno-common"
42335 CXXFLAGS="$CXXFLAGS -fno-common"
42336 fi
42337 if test "x$XLCC" = "xyes"; then
42338 CFLAGS="$CFLAGS -qnocommon"
42339 CXXFLAGS="$CXXFLAGS -qnocommon"
42340 fi
a848cd7e
SC
42341 ;;
42342
42343 *-pc-os2_emx | *-pc-os2-emx )
42344 if test "x$bk_os2_use_omf" = "xyes" ; then
42345 AR=emxomfar
42346 RANLIB=:
42347 LDFLAGS="-Zomf $LDFLAGS"
42348 CFLAGS="-Zomf $CFLAGS"
42349 CXXFLAGS="-Zomf $CXXFLAGS"
42350 OS2_LIBEXT="lib"
42351 else
42352 OS2_LIBEXT="a"
42353 fi
42354 ;;
1e9e8aba
DE
42355
42356 i*86-*-beos* )
42357 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
42358 ;;
a848cd7e
SC
42359 esac
42360
42361
42362 SO_SUFFIX="so"
42363 SO_SUFFIX_MODULE="so"
42364 EXEEXT=""
42365 LIBPREFIX="lib"
42366 LIBEXT=".a"
42367 DLLPREFIX="lib"
42368 DLLPREFIX_MODULE=""
42369 DLLIMP_SUFFIX=""
810b94f0 42370 dlldir="$libdir"
a848cd7e
SC
42371
42372 case "${BAKEFILE_HOST}" in
42373 *-hp-hpux* )
42374 SO_SUFFIX="sl"
42375 SO_SUFFIX_MODULE="sl"
42376 ;;
42377 *-*-aix* )
42378 SO_SUFFIX="a"
42379 SO_SUFFIX_MODULE="a"
42380 ;;
810b94f0
MW
42381 *-*-cygwin* )
42382 SO_SUFFIX="dll"
42383 SO_SUFFIX_MODULE="dll"
42384 DLLIMP_SUFFIX="dll.a"
42385 EXEEXT=".exe"
42386 DLLPREFIX="cyg"
42387 dlldir="$bindir"
42388 ;;
42389 *-*-mingw32* )
a848cd7e
SC
42390 SO_SUFFIX="dll"
42391 SO_SUFFIX_MODULE="dll"
42392 DLLIMP_SUFFIX="dll.a"
42393 EXEEXT=".exe"
42394 DLLPREFIX=""
810b94f0 42395 dlldir="$bindir"
a848cd7e
SC
42396 ;;
42397 *-pc-msdosdjgpp )
42398 EXEEXT=".exe"
42399 DLLPREFIX=""
810b94f0 42400 dlldir="$bindir"
a848cd7e
SC
42401 ;;
42402 *-pc-os2_emx | *-pc-os2-emx )
42403 SO_SUFFIX="dll"
42404 SO_SUFFIX_MODULE="dll"
42405 DLLIMP_SUFFIX=$OS2_LIBEXT
42406 EXEEXT=".exe"
42407 DLLPREFIX=""
42408 LIBPREFIX=""
42409 LIBEXT=".$OS2_LIBEXT"
810b94f0 42410 dlldir="$bindir"
a848cd7e 42411 ;;
47bd5406 42412 *-*-darwin* )
a848cd7e
SC
42413 SO_SUFFIX="dylib"
42414 SO_SUFFIX_MODULE="bundle"
42415 ;;
42416 esac
42417
42418 if test "x$DLLIMP_SUFFIX" = "x" ; then
42419 DLLIMP_SUFFIX="$SO_SUFFIX"
42420 fi
42421
42422
42423
42424
42425
42426
42427
42428
42429
42430
42431
810b94f0 42432
1e9e8aba
DE
42433 PIC_FLAG=""
42434 if test "x$GCC" = "xyes"; then
a848cd7e
SC
42435 PIC_FLAG="-fPIC"
42436 fi
42437
1e9e8aba
DE
42438 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
42439 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 42440 WINDOWS_IMPLIB=0
1e9e8aba 42441
a848cd7e
SC
42442 case "${BAKEFILE_HOST}" in
42443 *-hp-hpux* )
1e9e8aba 42444 if test "x$GCC" != "xyes"; then
a848cd7e
SC
42445 LDFLAGS="$LDFLAGS -L/usr/lib"
42446
42447 SHARED_LD_CC="${CC} -b -o"
42448 SHARED_LD_CXX="${CXX} -b -o"
42449 PIC_FLAG="+Z"
42450 fi
42451 ;;
42452
42453 *-*-linux* )
42454 if test "x$GCC" != "xyes"; then
42455 echo "$as_me:$LINENO: checking for Intel compiler" >&5
42456echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
42457if test "${bakefile_cv_prog_icc+set}" = set; then
42458 echo $ECHO_N "(cached) $ECHO_C" >&6
42459else
42460
42461 cat >conftest.$ac_ext <<_ACEOF
42462/* confdefs.h. */
42463_ACEOF
42464cat confdefs.h >>conftest.$ac_ext
42465cat >>conftest.$ac_ext <<_ACEOF
42466/* end confdefs.h. */
42467
42468int
42469main ()
42470{
42471
42472 #ifndef __INTEL_COMPILER
42473 #error Not icc
42474 #endif
42475
42476 ;
42477 return 0;
42478}
42479_ACEOF
42480rm -f conftest.$ac_objext
42481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42482 (eval $ac_compile) 2>conftest.er1
a848cd7e 42483 ac_status=$?
ac1cb8d3
VS
42484 grep -v '^ *+' conftest.er1 >conftest.err
42485 rm -f conftest.er1
42486 cat conftest.err >&5
a848cd7e
SC
42487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42488 (exit $ac_status); } &&
6ebeb4c7 42489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42491 (eval $ac_try) 2>&5
42492 ac_status=$?
42493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494 (exit $ac_status); }; } &&
42495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42497 (eval $ac_try) 2>&5
42498 ac_status=$?
42499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42500 (exit $ac_status); }; }; then
42501 bakefile_cv_prog_icc=yes
42502else
42503 echo "$as_me: failed program was:" >&5
42504sed 's/^/| /' conftest.$ac_ext >&5
42505
42506bakefile_cv_prog_icc=no
42507
42508fi
ac1cb8d3 42509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42510
42511fi
42512echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42513echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42514 if test "$bakefile_cv_prog_icc" = "yes"; then
42515 PIC_FLAG="-KPIC"
42516 fi
42517 fi
42518 ;;
42519
42520 *-*-solaris2* )
42521 if test "x$GCC" != xyes ; then
42522 SHARED_LD_CC="${CC} -G -o"
42523 SHARED_LD_CXX="${CXX} -G -o"
42524 PIC_FLAG="-KPIC"
42525 fi
42526 ;;
42527
42528 *-*-darwin* )
42529
42530 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42531echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42532if test "${wx_cv_gcc31+set}" = set; then
42533 echo $ECHO_N "(cached) $ECHO_C" >&6
42534else
42535
42536 cat >conftest.$ac_ext <<_ACEOF
42537/* confdefs.h. */
42538_ACEOF
42539cat confdefs.h >>conftest.$ac_ext
42540cat >>conftest.$ac_ext <<_ACEOF
42541/* end confdefs.h. */
42542
42543int
42544main ()
42545{
42546
42547 #if (__GNUC__ < 3) || \
42548 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42549 #error old gcc
42550 #endif
42551
42552 ;
42553 return 0;
42554}
42555_ACEOF
42556rm -f conftest.$ac_objext
42557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42558 (eval $ac_compile) 2>conftest.er1
a848cd7e 42559 ac_status=$?
ac1cb8d3
VS
42560 grep -v '^ *+' conftest.er1 >conftest.err
42561 rm -f conftest.er1
42562 cat conftest.err >&5
a848cd7e
SC
42563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42564 (exit $ac_status); } &&
6ebeb4c7 42565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42567 (eval $ac_try) 2>&5
42568 ac_status=$?
42569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570 (exit $ac_status); }; } &&
42571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42573 (eval $ac_try) 2>&5
42574 ac_status=$?
42575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576 (exit $ac_status); }; }; then
42577
42578 wx_cv_gcc31=yes
42579
42580else
42581 echo "$as_me: failed program was:" >&5
42582sed 's/^/| /' conftest.$ac_ext >&5
42583
42584
42585 wx_cv_gcc31=no
42586
42587
42588fi
ac1cb8d3 42589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42590
42591fi
42592echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42593echo "${ECHO_T}$wx_cv_gcc31" >&6
42594 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42595
42596D='$'
42597cat <<EOF >shared-ld-sh
a848cd7e
SC
42598#!/bin/sh
42599#-----------------------------------------------------------------------------
42600#-- Name: distrib/mac/shared-ld-sh
42601#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42602#-- Author: Gilles Depeyrot
42603#-- Copyright: (c) 2002 Gilles Depeyrot
42604#-- Licence: any use permitted
42605#-----------------------------------------------------------------------------
42606
42607verbose=0
42608args=""
42609objects=""
42610linking_flag="-dynamiclib"
810b94f0 42611ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 42612
473276a9
VS
42613while test ${D}# -gt 0; do
42614 case ${D}1 in
a848cd7e
SC
42615
42616 -v)
42617 verbose=1
42618 ;;
42619
42620 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42621 # collect these options and values
473276a9 42622 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42623 shift
42624 ;;
42625
810b94f0
MW
42626 -s|-Wl,*)
42627 # collect these load args
42628 ldargs="${D}{ldargs} ${D}1"
2113bc77 42629 ;;
810b94f0
MW
42630
42631 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42632 # collect these options
473276a9 42633 args="${D}{args} ${D}1"
a848cd7e
SC
42634 ;;
42635
42636 -dynamiclib|-bundle)
473276a9 42637 linking_flag="${D}1"
a848cd7e
SC
42638 ;;
42639
42640 -*)
473276a9 42641 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42642 exit 1
42643 ;;
42644
42645 *.o | *.a | *.dylib)
42646 # collect object files
473276a9 42647 objects="${D}{objects} ${D}1"
a848cd7e
SC
42648 ;;
42649
42650 *)
473276a9 42651 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42652 exit 1
42653 ;;
42654
42655 esac
42656 shift
42657done
42658
810b94f0
MW
42659status=0
42660
a848cd7e
SC
42661#
42662# Link one module containing all the others
42663#
473276a9 42664if test ${D}{verbose} = 1; then
810b94f0 42665 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42666fi
810b94f0 42667c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 42668status=${D}?
a848cd7e
SC
42669
42670#
810b94f0
MW
42671# Link the shared library from the single module created, but only if the
42672# previous command didn't fail:
a848cd7e 42673#
810b94f0
MW
42674if test ${D}{status} = 0; then
42675 if test ${D}{verbose} = 1; then
42676 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
42677 fi
42678 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42679 status=${D}?
a848cd7e
SC
42680fi
42681
42682#
42683# Remove intermediate module
42684#
473276a9 42685rm -f master.${D}${D}.o
a848cd7e 42686
810b94f0 42687exit ${D}status
a848cd7e 42688EOF
473276a9 42689
a848cd7e
SC
42690 chmod +x shared-ld-sh
42691
42692 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42693 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42694 SHARED_LD_CXX="$SHARED_LD_CC"
42695 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42696 else
42697 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42698 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42699 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42700 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42701 fi
42702
47bd5406
VZ
42703 if test "x$GCC" == "xyes"; then
42704 PIC_FLAG="-dynamic -fPIC"
42705 fi
42706 if test "x$XLCC" = "xyes"; then
42707 PIC_FLAG="-dynamic -DPIC"
42708 fi
a848cd7e
SC
42709 ;;
42710
42711 *-*-aix* )
42712 if test "x$GCC" != "xyes"; then
42713 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42714set dummy makeC++SharedLib; ac_word=$2
42715echo "$as_me:$LINENO: checking for $ac_word" >&5
42716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42717if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42718 echo $ECHO_N "(cached) $ECHO_C" >&6
42719else
42720 if test -n "$AIX_CXX_LD"; then
42721 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42722else
42723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42724for as_dir in $PATH
42725do
42726 IFS=$as_save_IFS
42727 test -z "$as_dir" && as_dir=.
42728 for ac_exec_ext in '' $ac_executable_extensions; do
42729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42730 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42732 break 2
42733 fi
42734done
42735done
42736
42737 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42738fi
42739fi
42740AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42741if test -n "$AIX_CXX_LD"; then
42742 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42743echo "${ECHO_T}$AIX_CXX_LD" >&6
42744else
42745 echo "$as_me:$LINENO: result: no" >&5
42746echo "${ECHO_T}no" >&6
42747fi
42748
42749 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42750 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42751 fi
42752 ;;
42753
42754 *-*-beos* )
1e9e8aba
DE
42755 SHARED_LD_CC="${LD} -nostart -o"
42756 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42757 ;;
42758
42759 *-*-irix* )
42760 if test "x$GCC" != "xyes"; then
42761 PIC_FLAG="-KPIC"
42762 fi
42763 ;;
42764
42765 *-*-cygwin* | *-*-mingw32* )
42766 PIC_FLAG=""
1e9e8aba
DE
42767 SHARED_LD_CC="\$(CC) -shared -o"
42768 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 42769 WINDOWS_IMPLIB=1
a848cd7e
SC
42770 ;;
42771
42772 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42773 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42774 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42775 PIC_FLAG=""
473276a9
VS
42776
42777D='$'
42778cat <<EOF >dllar.sh
42779#!/bin/sh
42780#
42781# dllar - a tool to build both a .dll and an .a file
42782# from a set of object (.o) files for EMX/OS2.
42783#
42784# Written by Andrew Zabolotny, bit@freya.etu.ru
42785# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42786#
42787# This script will accept a set of files on the command line.
42788# All the public symbols from the .o files will be exported into
42789# a .DEF file, then linker will be run (through gcc) against them to
42790# build a shared library consisting of all given .o files. All libraries
42791# (.a) will be first decompressed into component .o files then act as
42792# described above. You can optionally give a description (-d "description")
42793# which will be put into .DLL. To see the list of accepted options (as well
42794# as command-line format) simply run this program without options. The .DLL
42795# is built to be imported by name (there is no guarantee that new versions
42796# of the library you build will have same ordinals for same symbols).
42797#
42798# dllar is free software; you can redistribute it and/or modify
42799# it under the terms of the GNU General Public License as published by
42800# the Free Software Foundation; either version 2, or (at your option)
42801# any later version.
42802#
42803# dllar is distributed in the hope that it will be useful,
42804# but WITHOUT ANY WARRANTY; without even the implied warranty of
42805# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42806# GNU General Public License for more details.
42807#
42808# You should have received a copy of the GNU General Public License
42809# along with dllar; see the file COPYING. If not, write to the Free
42810# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42811# 02111-1307, USA.
42812
42813# To successfuly run this program you will need:
42814# - Current drive should have LFN support (HPFS, ext2, network, etc)
42815# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42816# - gcc
42817# (used to build the .dll)
42818# - emxexp
42819# (used to create .def file from .o files)
42820# - emximp
42821# (used to create .a file from .def file)
42822# - GNU text utilites (cat, sort, uniq)
42823# used to process emxexp output
42824# - GNU file utilities (mv, rm)
42825# - GNU sed
42826# - lxlite (optional, see flag below)
42827# (used for general .dll cleanup)
42828#
42829
42830flag_USE_LXLITE=1;
42831
42832#
42833# helper functions
42834# basnam, variant of basename, which does _not_ remove the path, _iff_
42835# second argument (suffix to remove) is given
42836basnam(){
42837 case ${D}# in
42838 1)
1e9e8aba 42839 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42840 ;;
42841 2)
42842 echo ${D}1 | sed 's/'${D}2'${D}//'
42843 ;;
42844 *)
42845 echo "error in basnam ${D}*"
42846 exit 8
42847 ;;
42848 esac
42849}
42850
42851# Cleanup temporary files and output
42852CleanUp() {
42853 cd ${D}curDir
42854 for i in ${D}inputFiles ; do
42855 case ${D}i in
42856 *!)
42857 rm -rf \`basnam ${D}i !\`
42858 ;;
42859 *)
42860 ;;
42861 esac
42862 done
42863
42864 # Kill result in case of failure as there is just to many stupid make/nmake
42865 # things out there which doesn't do this.
1e9e8aba 42866 if [ ${D}# -eq 0 ]; then
473276a9
VS
42867 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42868 fi
42869}
42870
42871# Print usage and exit script with rc=1.
42872PrintHelp() {
b1d22ded
DE
42873 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42874 echo ' [-name-mangler-script script.sh]'
42875 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42876 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42877 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42878 echo ' [*.o] [*.a]'
473276a9
VS
42879 echo '*> "output_file" should have no extension.'
42880 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42881 echo ' The import library name is derived from this and is set to "name".a,'
42882 echo ' unless overridden by -import'
42883 echo '*> "importlib_name" should have no extension.'
42884 echo ' If it has the .o, or .a extension, it is automatically removed.'
42885 echo ' This name is used as the import library name and may be longer and'
42886 echo ' more descriptive than the DLL name which has to follow the old '
42887 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42888 echo '*> "script.sh may be given to override the output_file name by a'
42889 echo ' different name. It is mainly useful if the regular make process'
42890 echo ' of some package does not take into account OS/2 restriction of'
42891 echo ' DLL name lengths. It takes the importlib name as input and is'
42892 echo ' supposed to procude a shorter name as output. The script should'
42893 echo ' expect to get importlib_name without extension and should produce'
42894 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42895 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42896 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42897 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42898 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42899 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42900 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42901 echo ' If the last character of a symbol is "*", all symbols beginning'
42902 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42903 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42904 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42905 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42906 echo ' C runtime DLLs.'
b1d22ded 42907 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42908 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42909 echo ' unchanged to GCC at the end of command line.'
42910 echo '*> If you create a DLL from a library and you do not specify -o,'
42911 echo ' the basename for DLL and import library will be set to library name,'
42912 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42913 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42914 echo ' library will be renamed into gcc_s.a.'
42915 echo '--------'
42916 echo 'Example:'
42917 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42918 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42919 CleanUp
42920 exit 1
42921}
42922
42923# Execute a command.
42924# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42925# @Uses Whatever CleanUp() uses.
42926doCommand() {
42927 echo "${D}*"
42928 eval ${D}*
42929 rcCmd=${D}?
42930
1e9e8aba 42931 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42932 echo "command failed, exit code="${D}rcCmd
42933 CleanUp
42934 exit ${D}rcCmd
42935 fi
42936}
42937
42938# main routine
42939# setup globals
42940cmdLine=${D}*
42941outFile=""
42942outimpFile=""
42943inputFiles=""
b1d22ded 42944renameScript=""
473276a9
VS
42945description=""
42946CC=gcc.exe
42947CFLAGS="-s -Zcrtdll"
42948EXTRA_CFLAGS=""
42949EXPORT_BY_ORDINALS=0
42950exclude_symbols=""
42951library_flags=""
42952curDir=\`pwd\`
42953curDirS=curDir
42954case ${D}curDirS in
42955*/)
42956 ;;
42957*)
42958 curDirS=${D}{curDirS}"/"
42959 ;;
42960esac
42961# Parse commandline
42962libsToLink=0
b1d22ded 42963omfLinking=0
1e9e8aba 42964while [ ${D}1 ]; do
473276a9
VS
42965 case ${D}1 in
42966 -ord*)
42967 EXPORT_BY_ORDINALS=1;
42968 ;;
42969 -o*)
42970 shift
42971 outFile=${D}1
42972 ;;
42973 -i*)
42974 shift
42975 outimpFile=${D}1
42976 ;;
b1d22ded
DE
42977 -name-mangler-script)
42978 shift
42979 renameScript=${D}1
42980 ;;
473276a9
VS
42981 -d*)
42982 shift
42983 description=${D}1
42984 ;;
42985 -f*)
42986 shift
42987 CFLAGS=${D}1
42988 ;;
42989 -c*)
42990 shift
42991 CC=${D}1
42992 ;;
42993 -h*)
42994 PrintHelp
42995 ;;
42996 -ex*)
42997 shift
42998 exclude_symbols=${D}{exclude_symbols}${D}1" "
42999 ;;
43000 -libf*)
43001 shift
43002 library_flags=${D}{library_flags}${D}1" "
43003 ;;
43004 -nocrt*)
43005 CFLAGS="-s"
43006 ;;
43007 -nolxl*)
43008 flag_USE_LXLITE=0
43009 ;;
43010 -* | /*)
43011 case ${D}1 in
43012 -L* | -l*)
43013 libsToLink=1
43014 ;;
b1d22ded
DE
43015 -Zomf)
43016 omfLinking=1
43017 ;;
473276a9
VS
43018 *)
43019 ;;
43020 esac
43021 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
43022 ;;
b1d22ded
DE
43023 *.dll)
43024 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
43025 if [ ${D}omfLinking -eq 1 ]; then
43026 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
43027 else
43028 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
43029 fi
43030 ;;
473276a9
VS
43031 *)
43032 found=0;
1e9e8aba 43033 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
43034 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
43035 else
43036 for file in ${D}1 ; do
1e9e8aba 43037 if [ -f ${D}file ]; then
473276a9
VS
43038 inputFiles="${D}{inputFiles} ${D}file"
43039 found=1
43040 fi
43041 done
1e9e8aba 43042 if [ ${D}found -eq 0 ]; then
473276a9
VS
43043 echo "ERROR: No file(s) found: "${D}1
43044 exit 8
43045 fi
43046 fi
43047 ;;
43048 esac
43049 shift
43050done # iterate cmdline words
43051
43052#
1e9e8aba 43053if [ -z "${D}inputFiles" ]; then
473276a9
VS
43054 echo "dllar: no input files"
43055 PrintHelp
43056fi
43057
43058# Now extract all .o files from .a files
43059newInputFiles=""
43060for file in ${D}inputFiles ; do
43061 case ${D}file in
43062 *.a | *.lib)
43063 case ${D}file in
43064 *.a)
43065 suffix=".a"
43066 AR="ar"
43067 ;;
43068 *.lib)
43069 suffix=".lib"
43070 AR="emxomfar"
43071 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
43072 ;;
43073 *)
43074 ;;
43075 esac
43076 dirname=\`basnam ${D}file ${D}suffix\`"_%"
43077 mkdir ${D}dirname
1e9e8aba 43078 if [ ${D}? -ne 0 ]; then
473276a9
VS
43079 echo "Failed to create subdirectory ./${D}dirname"
43080 CleanUp
43081 exit 8;
43082 fi
43083 # Append '!' to indicate archive
43084 newInputFiles="${D}newInputFiles ${D}{dirname}!"
43085 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
43086 cd ${D}curDir
43087 found=0;
43088 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 43089 if [ -f ${D}subfile ]; then
473276a9 43090 found=1
1e9e8aba 43091 if [ -s ${D}subfile ]; then
473276a9
VS
43092 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
43093 newInputFiles="${D}newInputFiles ${D}subfile"
43094 fi
43095 fi
43096 done
1e9e8aba
DE
43097 if [ ${D}found -eq 0 ]; then
43098 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
43099 fi
43100 ;;
43101 *)
43102 newInputFiles="${D}{newInputFiles} ${D}file"
43103 ;;
43104 esac
43105done
43106inputFiles="${D}newInputFiles"
43107
43108# Output filename(s).
43109do_backup=0;
1e9e8aba 43110if [ -z ${D}outFile ]; then
473276a9
VS
43111 do_backup=1;
43112 set outFile ${D}inputFiles; outFile=${D}2
43113fi
43114
43115# If it is an archive, remove the '!' and the '_%' suffixes
43116case ${D}outFile in
43117*_%!)
43118 outFile=\`basnam ${D}outFile _%!\`
43119 ;;
43120*)
43121 ;;
43122esac
43123case ${D}outFile in
43124*.dll)
43125 outFile=\`basnam ${D}outFile .dll\`
43126 ;;
43127*.DLL)
43128 outFile=\`basnam ${D}outFile .DLL\`
43129 ;;
43130*.o)
43131 outFile=\`basnam ${D}outFile .o\`
43132 ;;
43133*.obj)
43134 outFile=\`basnam ${D}outFile .obj\`
43135 ;;
43136*.a)
43137 outFile=\`basnam ${D}outFile .a\`
43138 ;;
43139*.lib)
43140 outFile=\`basnam ${D}outFile .lib\`
43141 ;;
43142*)
43143 ;;
43144esac
43145case ${D}outimpFile in
43146*.a)
43147 outimpFile=\`basnam ${D}outimpFile .a\`
43148 ;;
43149*.lib)
43150 outimpFile=\`basnam ${D}outimpFile .lib\`
43151 ;;
43152*)
43153 ;;
43154esac
1e9e8aba 43155if [ -z ${D}outimpFile ]; then
473276a9
VS
43156 outimpFile=${D}outFile
43157fi
43158defFile="${D}{outFile}.def"
43159arcFile="${D}{outimpFile}.a"
43160arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
43161
43162#create ${D}dllFile as something matching 8.3 restrictions,
43163if [ -z ${D}renameScript ] ; then
43164 dllFile="${D}outFile"
43165else
43166 dllFile=\`${D}renameScript ${D}outimpFile\`
43167fi
473276a9 43168
1e9e8aba
DE
43169if [ ${D}do_backup -ne 0 ] ; then
43170 if [ -f ${D}arcFile ] ; then
473276a9
VS
43171 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
43172 fi
1e9e8aba 43173 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
43174 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
43175 fi
43176fi
43177
43178# Extract public symbols from all the object files.
43179tmpdefFile=${D}{defFile}_%
43180rm -f ${D}tmpdefFile
43181for file in ${D}inputFiles ; do
43182 case ${D}file in
43183 *!)
43184 ;;
43185 *)
43186 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
43187 ;;
43188 esac
43189done
43190
43191# Create the def file.
43192rm -f ${D}defFile
43193echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
43194dllFile="${D}{dllFile}.dll"
43195if [ ! -z ${D}description ]; then
1e9e8aba 43196 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
43197fi
43198echo "EXPORTS" >> ${D}defFile
43199
43200doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
43201grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
43202
43203# Checks if the export is ok or not.
43204for word in ${D}exclude_symbols; do
43205 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
43206 mv ${D}{tmpdefFile}% ${D}tmpdefFile
43207done
43208
43209
1e9e8aba
DE
43210if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
43211 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
43212 sed '
43213 N
43214 : loop
1e9e8aba 43215 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
43216 t loop
43217 ' > ${D}{tmpdefFile}%
43218 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
43219else
43220 rm -f ${D}{tmpdefFile}%
43221fi
43222cat ${D}tmpdefFile >> ${D}defFile
43223rm -f ${D}tmpdefFile
43224
43225# Do linking, create implib, and apply lxlite.
43226gccCmdl="";
43227for file in ${D}inputFiles ; do
43228 case ${D}file in
43229 *!)
43230 ;;
43231 *)
43232 gccCmdl="${D}gccCmdl ${D}file"
43233 ;;
43234 esac
43235done
43236doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
43237touch "${D}{outFile}.dll"
43238
43239doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 43240if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 43241 add_flags="";
1e9e8aba 43242 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
43243 add_flags="-ynd"
43244 fi
43245 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
43246fi
43247doCommand "emxomf -s -l ${D}arcFile"
43248
43249# Successful exit.
43250CleanUp 1
43251exit 0
43252EOF
43253
43254 chmod +x dllar.sh
a848cd7e
SC
43255 ;;
43256
1e9e8aba 43257 powerpc-apple-macos* | \
a848cd7e
SC
43258 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
43259 *-*-sunos4* | \
43260 *-*-osf* | \
43261 *-*-dgux5* | \
47a7e797
MW
43262 *-*-sysv5* | \
43263 *-pc-msdosdjgpp )
a848cd7e
SC
43264 ;;
43265
43266 *)
43267 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
43268echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
43269 { (exit 1); exit 1; }; }
43270 esac
43271
2057db16
VS
43272 if test "x$PIC_FLAG" != "x" ; then
43273 PIC_FLAG="$PIC_FLAG -DPIC"
43274 fi
43275
a848cd7e
SC
43276 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
43277 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
43278 fi
43279 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
43280 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
43281 fi
43282
43283
43284
43285
43286
43287
43288
43289
810b94f0 43290
a848cd7e
SC
43291 USE_SOVERSION=0
43292 USE_SOVERLINUX=0
43293 USE_SOVERSOLARIS=0
810b94f0 43294 USE_SOVERCYGWIN=0
a848cd7e
SC
43295 USE_SOSYMLINKS=0
43296 USE_MACVERSION=0
43297 SONAME_FLAG=
43298
43299 case "${BAKEFILE_HOST}" in
b1d22ded 43300 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
43301 SONAME_FLAG="-Wl,-soname,"
43302 USE_SOVERSION=1
43303 USE_SOVERLINUX=1
43304 USE_SOSYMLINKS=1
43305 ;;
43306
a848cd7e
SC
43307 *-*-solaris2* )
43308 SONAME_FLAG="-h "
43309 USE_SOVERSION=1
43310 USE_SOVERSOLARIS=1
43311 USE_SOSYMLINKS=1
43312 ;;
43313
43314 *-*-darwin* )
43315 USE_MACVERSION=1
43316 USE_SOVERSION=1
43317 USE_SOSYMLINKS=1
43318 ;;
810b94f0
MW
43319
43320 *-*-cygwin* )
43321 USE_SOVERSION=1
43322 USE_SOVERCYGWIN=1
43323 ;;
a848cd7e
SC
43324 esac
43325
43326
43327
43328
43329
43330
43331
43332
43333
810b94f0 43334
a848cd7e
SC
43335 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
43336echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
43337 DEPS_TRACKING=0
43338
43339 if test "x$GCC" = "xyes"; then
43340 DEPSMODE=gcc
43341 DEPS_TRACKING=1
43342 case "${BAKEFILE_HOST}" in
47bd5406 43343 *-*-darwin* )
a848cd7e
SC
43344 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
43345 ;;
43346 * )
43347 DEPSFLAG_GCC="-MMD"
43348 ;;
43349 esac
43350 echo "$as_me:$LINENO: result: gcc" >&5
43351echo "${ECHO_T}gcc" >&6
b1d22ded 43352 elif test "x$MWCC" = "xyes"; then
81f90336 43353 DEPSMODE=mwcc
b1d22ded 43354 DEPS_TRACKING=1
81f90336 43355 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
43356 echo "$as_me:$LINENO: result: mwcc" >&5
43357echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
43358 elif test "x$SUNCC" = "xyes"; then
43359 DEPSMODE=suncc
43360 DEPS_TRACKING=1
43361 DEPSFLAG_SUNCC="-xM1"
43362 echo "$as_me:$LINENO: result: suncc" >&5
43363echo "${ECHO_T}suncc" >&6
a848cd7e
SC
43364 else
43365 echo "$as_me:$LINENO: result: none" >&5
43366echo "${ECHO_T}none" >&6
43367 fi
43368
43369 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
43370
43371D='$'
43372cat <<EOF >bk-deps
a848cd7e
SC
43373#!/bin/sh
43374
43375# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43376# script. It is used to track C/C++ files dependencies in portable way.
43377#
43378# Permission is given to use this file in any way.
43379
473276a9 43380DEPSMODE=${DEPSMODE}
a848cd7e 43381DEPSDIR=.deps
473276a9 43382DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 43383DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 43384DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 43385
473276a9 43386mkdir -p ${D}DEPSDIR
a848cd7e 43387
473276a9
VS
43388if test ${D}DEPSMODE = gcc ; then
43389 ${D}* ${D}{DEPSFLAG_GCC}
43390 status=${D}?
43391 if test ${D}{status} != 0 ; then
43392 exit ${D}{status}
a848cd7e
SC
43393 fi
43394 # move created file to the location we want it in:
473276a9
VS
43395 while test ${D}# -gt 0; do
43396 case "${D}1" in
a848cd7e
SC
43397 -o )
43398 shift
473276a9 43399 objfile=${D}1
a848cd7e
SC
43400 ;;
43401 -* )
43402 ;;
43403 * )
473276a9 43404 srcfile=${D}1
a848cd7e
SC
43405 ;;
43406 esac
43407 shift
43408 done
1e9e8aba
DE
43409 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
43410 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
43411 if test -f ${D}depfile ; then
43412 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43413 rm -f ${D}depfile
a848cd7e 43414 else
1e9e8aba 43415 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
43416 if test -f ${D}depfile ; then
43417 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43418 rm -f ${D}depfile
a848cd7e
SC
43419 fi
43420 fi
43421 exit 0
81f90336
MW
43422elif test ${D}DEPSMODE = mwcc ; then
43423 ${D}*
43424 status=${D}?
43425 if test ${D}{status} != 0 ; then
43426 exit ${D}{status}
43427 fi
43428 # Run mwcc again with -MM and redirect into the dep file we want
43429 # NOTE: We can't use shift here because we need ${D}* to be valid
43430 prevarg=
43431 for arg in ${D}* ; do
43432 if test "${D}prevarg" = "-o"; then
43433 objfile=${D}arg
43434 else
43435 case "${D}arg" in
43436 -* )
43437 ;;
43438 * )
43439 srcfile=${D}arg
43440 ;;
43441 esac
43442 fi
43443 prevarg="${D}arg"
43444 done
43445 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
43446 exit 0
a9e5b1f0
MW
43447elif test ${D}DEPSMODE = suncc; then
43448 ${D}* || exit
43449 # Run compiler again with deps flag and redirect into the dep file.
43450 # It doesn't work if the '-o FILE' option is used, but without it the
43451 # dependency file will contain the wrong name for the object. So it is
43452 # removed from the command line, and the dep file is fixed with sed.
43453 cmd=""
43454 while test ${D}# -gt 0; do
43455 case "${D}1" in
43456 -o )
43457 shift
43458 objfile=${D}1
43459 ;;
43460 * )
43461 eval arg${D}#=\\${D}1
43462 cmd="${D}cmd \\${D}arg${D}#"
43463 ;;
43464 esac
43465 shift
43466 done
43467 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
43468 exit 0
a848cd7e 43469else
473276a9
VS
43470 ${D}*
43471 exit ${D}?
a848cd7e
SC
43472fi
43473EOF
473276a9 43474
a848cd7e
SC
43475 chmod +x bk-deps
43476 fi
43477
43478
43479
43480
43481 RESCOMP=
43482 SETFILE=
43483
43484 case ${BAKEFILE_HOST} in
43485 *-*-cygwin* | *-*-mingw32* )
43486 if test "$build" != "$host" ; then
43487 RESCOMP=$host_alias-windres
43488 else
43489 # Extract the first word of "windres", so it can be a program name with args.
43490set dummy windres; ac_word=$2
43491echo "$as_me:$LINENO: checking for $ac_word" >&5
43492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43493if test "${ac_cv_prog_RESCOMP+set}" = set; then
43494 echo $ECHO_N "(cached) $ECHO_C" >&6
43495else
43496 if test -n "$RESCOMP"; then
43497 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43498else
43499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43500for as_dir in $PATH
43501do
43502 IFS=$as_save_IFS
43503 test -z "$as_dir" && as_dir=.
43504 for ac_exec_ext in '' $ac_executable_extensions; do
43505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43506 ac_cv_prog_RESCOMP="windres"
43507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43508 break 2
43509 fi
43510done
43511done
43512
43513 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43514fi
43515fi
43516RESCOMP=$ac_cv_prog_RESCOMP
43517if test -n "$RESCOMP"; then
43518 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43519echo "${ECHO_T}$RESCOMP" >&6
43520else
43521 echo "$as_me:$LINENO: result: no" >&5
43522echo "${ECHO_T}no" >&6
43523fi
43524
43525 fi
43526 ;;
43527
1e9e8aba 43528 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43529 # Extract the first word of "Rez", so it can be a program name with args.
43530set dummy Rez; ac_word=$2
43531echo "$as_me:$LINENO: checking for $ac_word" >&5
43532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43533if test "${ac_cv_prog_RESCOMP+set}" = set; then
43534 echo $ECHO_N "(cached) $ECHO_C" >&6
43535else
43536 if test -n "$RESCOMP"; then
43537 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43538else
43539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43540for as_dir in $PATH
43541do
43542 IFS=$as_save_IFS
43543 test -z "$as_dir" && as_dir=.
43544 for ac_exec_ext in '' $ac_executable_extensions; do
43545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43546 ac_cv_prog_RESCOMP="Rez"
43547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43548 break 2
43549 fi
43550done
43551done
43552
43553 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43554fi
43555fi
43556RESCOMP=$ac_cv_prog_RESCOMP
43557if test -n "$RESCOMP"; then
43558 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43559echo "${ECHO_T}$RESCOMP" >&6
43560else
43561 echo "$as_me:$LINENO: result: no" >&5
43562echo "${ECHO_T}no" >&6
43563fi
43564
43565 # Extract the first word of "SetFile", so it can be a program name with args.
43566set dummy SetFile; ac_word=$2
43567echo "$as_me:$LINENO: checking for $ac_word" >&5
43568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43569if test "${ac_cv_prog_SETFILE+set}" = set; then
43570 echo $ECHO_N "(cached) $ECHO_C" >&6
43571else
43572 if test -n "$SETFILE"; then
43573 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43574else
43575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43576for as_dir in $PATH
43577do
43578 IFS=$as_save_IFS
43579 test -z "$as_dir" && as_dir=.
43580 for ac_exec_ext in '' $ac_executable_extensions; do
43581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43582 ac_cv_prog_SETFILE="SetFile"
43583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43584 break 2
43585 fi
43586done
43587done
43588
43589 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43590fi
43591fi
43592SETFILE=$ac_cv_prog_SETFILE
43593if test -n "$SETFILE"; then
43594 echo "$as_me:$LINENO: result: $SETFILE" >&5
43595echo "${ECHO_T}$SETFILE" >&6
43596else
43597 echo "$as_me:$LINENO: result: no" >&5
43598echo "${ECHO_T}no" >&6
43599fi
43600
43601 ;;
43602 esac
43603
43604
43605
43606
43607
c9469659 43608 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 43609
dcc1b6ad 43610
c9469659 43611BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 43612
646b6ec1 43613
74b84332 43614
a848cd7e
SC
43615 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43616if test "${enable_precomp_headers+set}" = set; then
43617 enableval="$enable_precomp_headers"
43618 bk_use_pch="$enableval"
43619fi;
43620
43621 GCC_PCH=0
43622
43623 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43624 if test "x$GCC" = "xyes"; then
43625 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43626echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43627 cat >conftest.$ac_ext <<_ACEOF
43628/* confdefs.h. */
43629_ACEOF
43630cat confdefs.h >>conftest.$ac_ext
43631cat >>conftest.$ac_ext <<_ACEOF
43632/* end confdefs.h. */
43633
43634int
43635main ()
43636{
43637
43638 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43639 #error "no pch support"
43640 #endif
43641 #if (__GNUC__ < 3)
43642 #error "no pch support"
43643 #endif
43644 #if (__GNUC__ == 3) && \
43645 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43646 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43647 #error "no pch support"
43648 #endif
43649
43650 ;
43651 return 0;
43652}
43653_ACEOF
43654rm -f conftest.$ac_objext
43655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43656 (eval $ac_compile) 2>conftest.er1
a848cd7e 43657 ac_status=$?
ac1cb8d3
VS
43658 grep -v '^ *+' conftest.er1 >conftest.err
43659 rm -f conftest.er1
43660 cat conftest.err >&5
a848cd7e
SC
43661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43662 (exit $ac_status); } &&
6ebeb4c7 43663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43665 (eval $ac_try) 2>&5
43666 ac_status=$?
43667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43668 (exit $ac_status); }; } &&
43669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43671 (eval $ac_try) 2>&5
43672 ac_status=$?
43673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43674 (exit $ac_status); }; }; then
43675
43676 echo "$as_me:$LINENO: result: yes" >&5
43677echo "${ECHO_T}yes" >&6
a848cd7e
SC
43678 GCC_PCH=1
43679
43680else
43681 echo "$as_me: failed program was:" >&5
43682sed 's/^/| /' conftest.$ac_ext >&5
43683
43684
43685 echo "$as_me:$LINENO: result: no" >&5
43686echo "${ECHO_T}no" >&6
43687
43688fi
ac1cb8d3 43689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43690 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43691
43692D='$'
43693cat <<EOF >bk-make-pch
a848cd7e
SC
43694#!/bin/sh
43695
43696# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43697# script. It is used to generated precompiled headers.
43698#
43699# Permission is given to use this file in any way.
43700
1e9e8aba
DE
43701outfile="${D}{1}"
43702header="${D}{2}"
a848cd7e
SC
43703shift
43704shift
43705
43706compiler=
43707headerfile=
1e9e8aba
DE
43708while test ${D}{#} -gt 0; do
43709 case "${D}{1}" in
a848cd7e 43710 -I* )
1e9e8aba
DE
43711 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43712 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43713 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43714 fi
43715 ;;
43716 esac
1e9e8aba 43717 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43718 shift
43719done
43720
1e9e8aba
DE
43721if test "x${D}{headerfile}" = "x" ; then
43722 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43723else
1e9e8aba
DE
43724 if test -f ${D}{outfile} ; then
43725 rm -f ${D}{outfile}
a848cd7e 43726 else
1e9e8aba 43727 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43728 fi
1e9e8aba 43729 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43730 mkdir -p .deps
43731 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43732 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43733 exit ${D}{?}
a848cd7e
SC
43734fi
43735EOF
1e9e8aba 43736
a848cd7e
SC
43737 chmod +x bk-make-pch
43738 fi
43739 fi
43740 fi
43741
43742
43743
a848cd7e
SC
43744 COND_BUILD_DEBUG="#"
43745 if test "x$BUILD" = "xdebug" ; then
43746 COND_BUILD_DEBUG=""
43747 fi
43748
43749 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43750 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43751 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43752 fi
43753
43754 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43755 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43756 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43757 fi
43758
43759 COND_BUILD_DEBUG_UNICODE_0="#"
43760 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43761 COND_BUILD_DEBUG_UNICODE_0=""
43762 fi
43763
43764 COND_BUILD_DEBUG_UNICODE_1="#"
43765 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43766 COND_BUILD_DEBUG_UNICODE_1=""
43767 fi
43768
43769 COND_BUILD_RELEASE="#"
43770 if test "x$BUILD" = "xrelease" ; then
43771 COND_BUILD_RELEASE=""
43772 fi
43773
43774 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43775 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43776 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43777 fi
43778
43779 COND_BUILD_RELEASE_UNICODE_0="#"
43780 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43781 COND_BUILD_RELEASE_UNICODE_0=""
43782 fi
43783
43784 COND_BUILD_RELEASE_UNICODE_1="#"
43785 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43786 COND_BUILD_RELEASE_UNICODE_1=""
43787 fi
43788
43789 COND_DEBUG_FLAG_1="#"
43790 if test "x$DEBUG_FLAG" = "x1" ; then
43791 COND_DEBUG_FLAG_1=""
43792 fi
43793
43794 COND_DEBUG_INFO_0="#"
43795 if test "x$DEBUG_INFO" = "x0" ; then
43796 COND_DEBUG_INFO_0=""
43797 fi
43798
43799 COND_DEBUG_INFO_1="#"
43800 if test "x$DEBUG_INFO" = "x1" ; then
43801 COND_DEBUG_INFO_1=""
43802 fi
43803
43804 COND_DEPS_TRACKING_0="#"
43805 if test "x$DEPS_TRACKING" = "x0" ; then
43806 COND_DEPS_TRACKING_0=""
43807 fi
43808
43809 COND_DEPS_TRACKING_1="#"
43810 if test "x$DEPS_TRACKING" = "x1" ; then
43811 COND_DEPS_TRACKING_1=""
43812 fi
43813
43814 COND_GCC_PCH_1="#"
43815 if test "x$GCC_PCH" = "x1" ; then
43816 COND_GCC_PCH_1=""
43817 fi
43818
43819 COND_MONOLITHIC_0="#"
43820 if test "x$MONOLITHIC" = "x0" ; then
43821 COND_MONOLITHIC_0=""
43822 fi
43823
43824 COND_MONOLITHIC_0_SHARED_0="#"
43825 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43826 COND_MONOLITHIC_0_SHARED_0=""
43827 fi
43828
43829 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43830 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43832 fi
43833
90970d69
DE
43834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43835 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43836 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43837 fi
43838
a848cd7e
SC
43839 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43840 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43841 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43842 fi
43843
6671c68b
VZ
43844 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43845 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43846 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43847 fi
43848
a848cd7e
SC
43849 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43850 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43851 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43852 fi
43853
ceec2216
RL
43854 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43855 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43856 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43857 fi
43858
a848cd7e
SC
43859 COND_MONOLITHIC_0_SHARED_1="#"
43860 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43861 COND_MONOLITHIC_0_SHARED_1=""
43862 fi
43863
43864 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43865 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43866 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43867 fi
43868
90970d69
DE
43869 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43870 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43871 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43872 fi
43873
a848cd7e
SC
43874 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43875 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43876 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43877 fi
43878
6671c68b
VZ
43879 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43880 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43881 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43882 fi
43883
a848cd7e
SC
43884 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43885 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43886 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43887 fi
43888
ceec2216
RL
43889 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43890 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43891 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43892 fi
43893
a848cd7e
SC
43894 COND_MONOLITHIC_0_USE_ODBC_1="#"
43895 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43896 COND_MONOLITHIC_0_USE_ODBC_1=""
43897 fi
43898
43899 COND_MONOLITHIC_1="#"
43900 if test "x$MONOLITHIC" = "x1" ; then
43901 COND_MONOLITHIC_1=""
43902 fi
43903
43904 COND_MONOLITHIC_1_SHARED_0="#"
43905 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43906 COND_MONOLITHIC_1_SHARED_0=""
43907 fi
43908
43909 COND_MONOLITHIC_1_SHARED_1="#"
43910 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43911 COND_MONOLITHIC_1_SHARED_1=""
43912 fi
43913
43914 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43915 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43916 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43917 fi
43918
43919 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43920 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43921 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43922 fi
43923
eb730a0c
JS
43924 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
43925 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43926 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
43927 fi
43928
a848cd7e
SC
43929 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43930 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43931 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43932 fi
43933
43934 COND_PLATFORM_MACOSX_1="#"
43935 if test "x$PLATFORM_MACOSX" = "x1" ; then
43936 COND_PLATFORM_MACOSX_1=""
43937 fi
43938
a30f955f
VS
43939 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43940 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43941 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43942 fi
43943
a848cd7e
SC
43944 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43945 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43946 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43947 fi
43948
43949 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43950 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43951 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43952 fi
43953
43954 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43955 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43956 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43957 fi
43958
fc480dc1
DE
43959 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43960 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43961 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43962 fi
43963
1e9e8aba
DE
43964 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43965 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43966 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43967 fi
43968
ebee3cd0
VS
43969 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43970 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43971 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43972 fi
43973
43974 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43975 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43976 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43977 fi
43978
a848cd7e
SC
43979 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43980 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43981 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43982 fi
43983
43984 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43985 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43986 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43987 fi
43988
b48a2016
DE
43989 COND_PLATFORM_MACOS_1="#"
43990 if test "x$PLATFORM_MACOS" = "x1" ; then
43991 COND_PLATFORM_MACOS_1=""
43992 fi
43993
083508af
MW
43994 COND_PLATFORM_MAC_1="#"
43995 if test "x$PLATFORM_MAC" = "x1" ; then
43996 COND_PLATFORM_MAC_1=""
43997 fi
43998
83d8eb47
MW
43999 COND_PLATFORM_MSDOS_1="#"
44000 if test "x$PLATFORM_MSDOS" = "x1" ; then
44001 COND_PLATFORM_MSDOS_1=""
44002 fi
44003
a848cd7e
SC
44004 COND_PLATFORM_OS2_1="#"
44005 if test "x$PLATFORM_OS2" = "x1" ; then
44006 COND_PLATFORM_OS2_1=""
44007 fi
44008
44009 COND_PLATFORM_UNIX_0="#"
44010 if test "x$PLATFORM_UNIX" = "x0" ; then
44011 COND_PLATFORM_UNIX_0=""
44012 fi
44013
44014 COND_PLATFORM_UNIX_1="#"
44015 if test "x$PLATFORM_UNIX" = "x1" ; then
44016 COND_PLATFORM_UNIX_1=""
44017 fi
44018
44019 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
44020 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
44021 COND_PLATFORM_UNIX_1_USE_GUI_1=""
44022 fi
44023
44024 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
44025 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
44026 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
44027 fi
44028
44029 COND_PLATFORM_WIN32_0="#"
44030 if test "x$PLATFORM_WIN32" = "x0" ; then
44031 COND_PLATFORM_WIN32_0=""
44032 fi
44033
44034 COND_PLATFORM_WIN32_1="#"
44035 if test "x$PLATFORM_WIN32" = "x1" ; then
44036 COND_PLATFORM_WIN32_1=""
44037 fi
44038
44039 COND_SHARED_0="#"
44040 if test "x$SHARED" = "x0" ; then
44041 COND_SHARED_0=""
44042 fi
44043
083508af
MW
44044 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
44045 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
44046 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
44047 fi
44048
44049 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
44050 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
44051 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
44052 fi
44053
44054 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
44055 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
44056 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
44057 fi
44058
a848cd7e
SC
44059 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
44060 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44061 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
44062 fi
44063
44064 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44065 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44066 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44067 fi
44068
44069 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44070 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44071 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44072 fi
44073
44074 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44075 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44076 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44077 fi
44078
083508af
MW
44079 COND_SHARED_0_USE_XRC_1="#"
44080 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44081 COND_SHARED_0_USE_XRC_1=""
44082 fi
44083
a848cd7e
SC
44084 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
44085 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
44086 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
44087 fi
44088
44089 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
44090 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
44091 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
44092 fi
44093
44094 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
44095 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
44096 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
44097 fi
44098
44099 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
44100 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
44101 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
44102 fi
44103
44104 COND_SHARED_1="#"
44105 if test "x$SHARED" = "x1" ; then
44106 COND_SHARED_1=""
44107 fi
44108
44109 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
44110 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44111 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
44112 fi
44113
083508af
MW
44114 COND_SHARED_1_USE_XRC_1="#"
44115 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44116 COND_SHARED_1_USE_XRC_1=""
44117 fi
44118
a30f955f
VS
44119 COND_TOOLKIT_="#"
44120 if test "x$TOOLKIT" = "x" ; then
44121 COND_TOOLKIT_=""
44122 fi
44123
a848cd7e
SC
44124 COND_TOOLKIT_COCOA="#"
44125 if test "x$TOOLKIT" = "xCOCOA" ; then
44126 COND_TOOLKIT_COCOA=""
44127 fi
44128
a49baeab
DE
44129 COND_TOOLKIT_COCOA_USE_GUI_1="#"
44130 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
44131 COND_TOOLKIT_COCOA_USE_GUI_1=""
44132 fi
44133
a848cd7e
SC
44134 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
44135 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44136 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
44137 fi
44138
44139 COND_TOOLKIT_GTK="#"
44140 if test "x$TOOLKIT" = "xGTK" ; then
44141 COND_TOOLKIT_GTK=""
44142 fi
44143
44144 COND_TOOLKIT_GTK_USE_GUI_1="#"
44145 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
44146 COND_TOOLKIT_GTK_USE_GUI_1=""
44147 fi
44148
44149 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
44150 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44151 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
44152 fi
44153
44154 COND_TOOLKIT_MAC="#"
44155 if test "x$TOOLKIT" = "xMAC" ; then
44156 COND_TOOLKIT_MAC=""
44157 fi
44158
44159 COND_TOOLKIT_MAC_USE_GUI_1="#"
44160 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44161 COND_TOOLKIT_MAC_USE_GUI_1=""
44162 fi
44163
44164 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44165 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44166 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44167 fi
44168
44169 COND_TOOLKIT_MGL="#"
44170 if test "x$TOOLKIT" = "xMGL" ; then
44171 COND_TOOLKIT_MGL=""
44172 fi
44173
44174 COND_TOOLKIT_MGL_USE_GUI_1="#"
44175 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
44176 COND_TOOLKIT_MGL_USE_GUI_1=""
44177 fi
44178
44179 COND_TOOLKIT_MOTIF="#"
44180 if test "x$TOOLKIT" = "xMOTIF" ; then
44181 COND_TOOLKIT_MOTIF=""
44182 fi
44183
44184 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
44185 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
44186 COND_TOOLKIT_MOTIF_USE_GUI_1=""
44187 fi
44188
44189 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
44190 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44191 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
44192 fi
44193
44194 COND_TOOLKIT_MSW="#"
44195 if test "x$TOOLKIT" = "xMSW" ; then
44196 COND_TOOLKIT_MSW=""
44197 fi
44198
44199 COND_TOOLKIT_MSW_USE_GUI_1="#"
44200 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
44201 COND_TOOLKIT_MSW_USE_GUI_1=""
44202 fi
44203
44204 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
44205 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44206 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
44207 fi
44208
44209 COND_TOOLKIT_PM="#"
44210 if test "x$TOOLKIT" = "xPM" ; then
44211 COND_TOOLKIT_PM=""
44212 fi
44213
44214 COND_TOOLKIT_PM_USE_GUI_1="#"
44215 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
44216 COND_TOOLKIT_PM_USE_GUI_1=""
44217 fi
44218
44219 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
44220 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44221 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
44222 fi
44223
3fd9c298
DE
44224 COND_TOOLKIT_WINCE="#"
44225 if test "x$TOOLKIT" = "xWINCE" ; then
44226 COND_TOOLKIT_WINCE=""
44227 fi
44228
44229 COND_TOOLKIT_WINCE_USE_GUI_1="#"
44230 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
44231 COND_TOOLKIT_WINCE_USE_GUI_1=""
44232 fi
44233
44234 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
44235 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44236 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
44237 fi
44238
a848cd7e
SC
44239 COND_TOOLKIT_X11="#"
44240 if test "x$TOOLKIT" = "xX11" ; then
44241 COND_TOOLKIT_X11=""
44242 fi
44243
44244 COND_TOOLKIT_X11_USE_GUI_1="#"
44245 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
44246 COND_TOOLKIT_X11_USE_GUI_1=""
44247 fi
44248
44249 COND_UNICODE_1="#"
44250 if test "x$UNICODE" = "x1" ; then
44251 COND_UNICODE_1=""
44252 fi
44253
44254 COND_USE_EXCEPTIONS_0="#"
44255 if test "x$USE_EXCEPTIONS" = "x0" ; then
44256 COND_USE_EXCEPTIONS_0=""
44257 fi
44258
44259 COND_USE_EXCEPTIONS_1="#"
44260 if test "x$USE_EXCEPTIONS" = "x1" ; then
44261 COND_USE_EXCEPTIONS_1=""
44262 fi
44263
44264 COND_USE_GUI_0="#"
44265 if test "x$USE_GUI" = "x0" ; then
44266 COND_USE_GUI_0=""
44267 fi
44268
44269 COND_USE_GUI_1="#"
44270 if test "x$USE_GUI" = "x1" ; then
44271 COND_USE_GUI_1=""
44272 fi
44273
44274 COND_USE_GUI_1_WXUNIV_0="#"
44275 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44276 COND_USE_GUI_1_WXUNIV_0=""
44277 fi
44278
44279 COND_USE_GUI_1_WXUNIV_1="#"
44280 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
44281 COND_USE_GUI_1_WXUNIV_1=""
44282 fi
44283
44284 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44285 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44286 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44287 fi
44288
44289 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44290 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44291 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44292 fi
44293
44294 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44295 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44296 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44297 fi
44298
083508af
MW
44299 COND_USE_ODBC_1="#"
44300 if test "x$USE_ODBC" = "x1" ; then
44301 COND_USE_ODBC_1=""
44302 fi
44303
44304 COND_USE_OPENGL_1="#"
44305 if test "x$USE_OPENGL" = "x1" ; then
44306 COND_USE_OPENGL_1=""
44307 fi
44308
a848cd7e
SC
44309 COND_USE_PLUGINS_0="#"
44310 if test "x$USE_PLUGINS" = "x0" ; then
44311 COND_USE_PLUGINS_0=""
44312 fi
44313
0b78747f
MW
44314 COND_USE_RTTI_0="#"
44315 if test "x$USE_RTTI" = "x0" ; then
44316 COND_USE_RTTI_0=""
44317 fi
44318
44319 COND_USE_RTTI_1="#"
44320 if test "x$USE_RTTI" = "x1" ; then
44321 COND_USE_RTTI_1=""
44322 fi
44323
a848cd7e
SC
44324 COND_USE_SOSYMLINKS_1="#"
44325 if test "x$USE_SOSYMLINKS" = "x1" ; then
44326 COND_USE_SOSYMLINKS_1=""
44327 fi
44328
eb730a0c
JS
44329 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
44330 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44331 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
44332 fi
44333
a848cd7e
SC
44334 COND_USE_SOVERLINUX_1="#"
44335 if test "x$USE_SOVERLINUX" = "x1" ; then
44336 COND_USE_SOVERLINUX_1=""
44337 fi
44338
44339 COND_USE_SOVERSION_0="#"
44340 if test "x$USE_SOVERSION" = "x0" ; then
44341 COND_USE_SOVERSION_0=""
44342 fi
44343
44344 COND_USE_SOVERSOLARIS_1="#"
44345 if test "x$USE_SOVERSOLARIS" = "x1" ; then
44346 COND_USE_SOVERSOLARIS_1=""
44347 fi
44348
0b78747f
MW
44349 COND_USE_THREADS_0="#"
44350 if test "x$USE_THREADS" = "x0" ; then
44351 COND_USE_THREADS_0=""
44352 fi
44353
44354 COND_USE_THREADS_1="#"
44355 if test "x$USE_THREADS" = "x1" ; then
44356 COND_USE_THREADS_1=""
44357 fi
44358
a13a7f89
RL
44359 COND_USE_XRC_1="#"
44360 if test "x$USE_XRC" = "x1" ; then
44361 COND_USE_XRC_1=""
44362 fi
44363
eb730a0c
JS
44364 COND_WINDOWS_IMPLIB_1="#"
44365 if test "x$WINDOWS_IMPLIB" = "x1" ; then
44366 COND_WINDOWS_IMPLIB_1=""
44367 fi
44368
a848cd7e
SC
44369 COND_WITH_PLUGIN_SDL_1="#"
44370 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
44371 COND_WITH_PLUGIN_SDL_1=""
44372 fi
44373
1e6eb025
VZ
44374 COND_WXUNIV_0="#"
44375 if test "x$WXUNIV" = "x0" ; then
44376 COND_WXUNIV_0=""
44377 fi
44378
a848cd7e
SC
44379 COND_WXUNIV_1="#"
44380 if test "x$WXUNIV" = "x1" ; then
44381 COND_WXUNIV_1=""
44382 fi
44383
44384 COND_WXUSE_EXPAT_BUILTIN="#"
44385 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
44386 COND_WXUSE_EXPAT_BUILTIN=""
44387 fi
44388
44389 COND_WXUSE_LIBJPEG_BUILTIN="#"
44390 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44391 COND_WXUSE_LIBJPEG_BUILTIN=""
44392 fi
44393
44394 COND_WXUSE_LIBPNG_BUILTIN="#"
44395 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44396 COND_WXUSE_LIBPNG_BUILTIN=""
44397 fi
44398
44399 COND_WXUSE_LIBTIFF_BUILTIN="#"
44400 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44401 COND_WXUSE_LIBTIFF_BUILTIN=""
44402 fi
44403
44404 COND_WXUSE_ODBC_BUILTIN="#"
44405 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
44406 COND_WXUSE_ODBC_BUILTIN=""
44407 fi
44408
44409 COND_WXUSE_REGEX_BUILTIN="#"
44410 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
44411 COND_WXUSE_REGEX_BUILTIN=""
44412 fi
44413
44414 COND_WXUSE_ZLIB_BUILTIN="#"
44415 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
44416 COND_WXUSE_ZLIB_BUILTIN=""
44417 fi
44418
44419
44420
810b94f0
MW
44421 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
44422 { { 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
44423echo "$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;}
44424 { (exit 1); exit 1; }; }
44425 fi
44426
2057db16
VS
44427 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
44428 { { 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
44429echo "$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;}
44430 { (exit 1); exit 1; }; }
44431 fi
44432
a848cd7e 44433
fb00f58d
JS
44434if test "$wxUSE_WINE" = "yes"; then
44435 RESCOMP=wrc
44436fi
44437
ceec2216
RL
44438if test "$wxUSE_SHARED" = "yes"; then
44439
44440 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
44441 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
44442
5b674b9d
DE
44443 case "${host}" in
44444 *-pc-os2_emx | *-pc-os2-emx )
44445 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44446 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44447 cp -p ${srcdir}/src/os2/dllnames.sh .
44448 cp -p ${srcdir}/src/os2/dllar.sh .
44449 ;;
44450 esac
ceec2216
RL
44451else
44452
44453 EXE_LINKER="$CXX -o"
44454
44455fi
69120ee4
VZ
44456if test "$wxUSE_OMF" = "yes"; then
44457 case "${host}" in
44458 *-pc-os2_emx | *-pc-os2-emx )
44459 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
44460 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44461 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44462 ;;
44463 esac
44464fi
a848cd7e 44465
ddd14b14
RR
44466GCC_PRAGMA_FLAGS=""
44467PCH_FLAGS=""
87dd70d3 44468
c08ebc62 44469if test $GCC_PCH = 1 ; then
ddd14b14 44470 PCH_FLAGS="-DWX_PRECOMP"
87ae5038
RR
44471 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44472else
44473 if test "$GCC" = yes; then
44474 echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
87dd70d3 44475echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44476 cat >conftest.$ac_ext <<_ACEOF
87dd70d3
RR
44477/* confdefs.h. */
44478_ACEOF
44479cat confdefs.h >>conftest.$ac_ext
44480cat >>conftest.$ac_ext <<_ACEOF
44481/* end confdefs.h. */
44482
44483int
44484main ()
44485{
44486#if (__GNUC__ < 4)
87ae5038
RR
44487 #error "Not GCC 4.0 or greater"
44488 #endif
87dd70d3
RR
44489
44490 ;
44491 return 0;
44492}
44493_ACEOF
44494rm -f conftest.$ac_objext
44495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44496 (eval $ac_compile) 2>conftest.er1
44497 ac_status=$?
44498 grep -v '^ *+' conftest.er1 >conftest.err
44499 rm -f conftest.er1
44500 cat conftest.err >&5
44501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44502 (exit $ac_status); } &&
6ebeb4c7 44503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
87dd70d3
RR
44504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44505 (eval $ac_try) 2>&5
44506 ac_status=$?
44507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44508 (exit $ac_status); }; } &&
44509 { ac_try='test -s conftest.$ac_objext'
44510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44511 (eval $ac_try) 2>&5
44512 ac_status=$?
44513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44514 (exit $ac_status); }; }; then
44515 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44516 echo "$as_me:$LINENO: result: yes" >&5
87dd70d3
RR
44517echo "${ECHO_T}yes" >&6
44518else
44519 echo "$as_me: failed program was:" >&5
44520sed 's/^/| /' conftest.$ac_ext >&5
44521
44522echo "$as_me:$LINENO: result: no" >&5
44523echo "${ECHO_T}no" >&6
87ae5038 44524 case "${host}" in
cfda0ea8 44525 *-*-darwin* )
87ae5038
RR
44526 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44527 ;;
44528 *-*-mingw32* )
44529 if test "$wxUSE_STL" = "yes" -o \
ddd14b14
RR
44530 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
44531 "$wxUSE_NO_RTTI" != "yes"; then
87ae5038 44532 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44533echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44534 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44535/* confdefs.h. */
44536_ACEOF
44537cat confdefs.h >>conftest.$ac_ext
44538cat >>conftest.$ac_ext <<_ACEOF
44539/* end confdefs.h. */
44540
44541int
44542main ()
44543{
44544#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
87ae5038
RR
44545 #error "Not GCC 3.2 or greater"
44546 #endif
ddd14b14
RR
44547
44548 ;
44549 return 0;
44550}
44551_ACEOF
44552rm -f conftest.$ac_objext
44553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44554 (eval $ac_compile) 2>conftest.er1
44555 ac_status=$?
44556 grep -v '^ *+' conftest.er1 >conftest.err
44557 rm -f conftest.er1
44558 cat conftest.err >&5
44559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44560 (exit $ac_status); } &&
6ebeb4c7 44561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44563 (eval $ac_try) 2>&5
44564 ac_status=$?
44565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44566 (exit $ac_status); }; } &&
44567 { ac_try='test -s conftest.$ac_objext'
44568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44569 (eval $ac_try) 2>&5
44570 ac_status=$?
44571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44572 (exit $ac_status); }; }; then
44573 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44574 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44575echo "${ECHO_T}yes" >&6
44576else
44577 echo "$as_me: failed program was:" >&5
44578sed 's/^/| /' conftest.$ac_ext >&5
44579
44580echo "$as_me:$LINENO: result: no" >&5
44581echo "${ECHO_T}no" >&6
3314e67b 44582fi
ddd14b14 44583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44584 fi
44585 ;;
44586 *-pc-os2_emx | *-pc-os2-emx )
44587 if test "$wxUSE_STL" = "yes"; then
44588 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44589echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44590 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44591/* confdefs.h. */
44592_ACEOF
44593cat confdefs.h >>conftest.$ac_ext
44594cat >>conftest.$ac_ext <<_ACEOF
44595/* end confdefs.h. */
44596
44597int
44598main ()
44599{
44600#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
87ae5038
RR
44601 #error "Not GCC 3.2 or greater"
44602 #endif
ddd14b14
RR
44603
44604 ;
44605 return 0;
44606}
44607_ACEOF
44608rm -f conftest.$ac_objext
44609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44610 (eval $ac_compile) 2>conftest.er1
44611 ac_status=$?
44612 grep -v '^ *+' conftest.er1 >conftest.err
44613 rm -f conftest.er1
44614 cat conftest.err >&5
44615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44616 (exit $ac_status); } &&
6ebeb4c7 44617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44619 (eval $ac_try) 2>&5
44620 ac_status=$?
44621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44622 (exit $ac_status); }; } &&
44623 { ac_try='test -s conftest.$ac_objext'
44624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44625 (eval $ac_try) 2>&5
44626 ac_status=$?
44627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44628 (exit $ac_status); }; }; then
44629 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44630 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44631echo "${ECHO_T}yes" >&6
44632else
44633 echo "$as_me: failed program was:" >&5
44634sed 's/^/| /' conftest.$ac_ext >&5
bea8e651 44635
ddd14b14
RR
44636echo "$as_me:$LINENO: result: no" >&5
44637echo "${ECHO_T}no" >&6
44638fi
44639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44640 fi
44641 ;;
44642 esac
44643
44644fi
44645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44646 fi
ddd14b14
RR
44647fi
44648CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
44649
44650
44651SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
44652
44653
44654
44655
44656
44657
44658
44659
44660
44661
44662
44663
44664
44665
44666
44667
44668
44669
44670
44671
44672
44673
44674
44675
44676
44677
44678
44679
44680
44681
44682
44683
44684
44685
44686
44687
44688
44689
44690
44691
44692
44693
a848cd7e
SC
44694
44695
44696
44697
44698
44699
44700
44701
44702
44703
44704
44705
44706
44707
44708
44709
44710
44711
ddd14b14 44712
a848cd7e
SC
44713
44714
44715echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44716echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44717set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44718if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44719 echo $ECHO_N "(cached) $ECHO_C" >&6
44720else
44721 cat >conftest.make <<\_ACEOF
44722all:
44723 @echo 'ac_maketemp="$(MAKE)"'
44724_ACEOF
44725# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44726eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44727if test -n "$ac_maketemp"; then
44728 eval ac_cv_prog_make_${ac_make}_set=yes
44729else
44730 eval ac_cv_prog_make_${ac_make}_set=no
44731fi
44732rm -f conftest.make
44733fi
44734if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44735 echo "$as_me:$LINENO: result: yes" >&5
44736echo "${ECHO_T}yes" >&6
44737 SET_MAKE=
44738else
44739 echo "$as_me:$LINENO: result: no" >&5
44740echo "${ECHO_T}no" >&6
44741 SET_MAKE="MAKE=${MAKE-make}"
44742fi
44743
44744
a848cd7e 44745
ceec2216
RL
44746 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44747
a848cd7e 44748
ceec2216 44749 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44750
a848cd7e 44751
ceec2216 44752 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44753
ceec2216
RL
44754
44755 ac_config_files="$ac_config_files version-script Makefile"
44756
44757
44758 ac_config_commands="$ac_config_commands wx-config
44759 "
a848cd7e
SC
44760
44761
9103d280
RL
44762
44763
a848cd7e
SC
44764if test "$wxUSE_GUI" = "yes"; then
44765 SUBDIRS="samples demos utils contrib"
44766else SUBDIRS="samples utils"
44767fi
44768
44769
44770
44771# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44772if test "${with_cppunit_prefix+set}" = set; then
44773 withval="$with_cppunit_prefix"
44774 cppunit_config_prefix="$withval"
44775else
44776 cppunit_config_prefix=""
44777fi;
44778
44779# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44780if test "${with_cppunit_exec_prefix+set}" = set; then
44781 withval="$with_cppunit_exec_prefix"
44782 cppunit_config_exec_prefix="$withval"
44783else
44784 cppunit_config_exec_prefix=""
44785fi;
44786
44787 if test x$cppunit_config_exec_prefix != x ; then
44788 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44789 if test x${CPPUNIT_CONFIG+set} != xset ; then
44790 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44791 fi
44792 fi
44793 if test x$cppunit_config_prefix != x ; then
44794 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44795 if test x${CPPUNIT_CONFIG+set} != xset ; then
44796 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44797 fi
44798 fi
44799
44800 # Extract the first word of "cppunit-config", so it can be a program name with args.
44801set dummy cppunit-config; ac_word=$2
44802echo "$as_me:$LINENO: checking for $ac_word" >&5
44803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44804if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44805 echo $ECHO_N "(cached) $ECHO_C" >&6
44806else
44807 case $CPPUNIT_CONFIG in
44808 [\\/]* | ?:[\\/]*)
44809 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44810 ;;
44811 *)
44812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44813for as_dir in $PATH
44814do
44815 IFS=$as_save_IFS
44816 test -z "$as_dir" && as_dir=.
44817 for ac_exec_ext in '' $ac_executable_extensions; do
44818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44819 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44821 break 2
44822 fi
44823done
44824done
44825
44826 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44827 ;;
44828esac
44829fi
44830CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44831
44832if test -n "$CPPUNIT_CONFIG"; then
44833 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44834echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44835else
44836 echo "$as_me:$LINENO: result: no" >&5
44837echo "${ECHO_T}no" >&6
44838fi
44839
44840 cppunit_version_min=1.8.0
44841
44842 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44843echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44844 no_cppunit=""
44845 if test "$CPPUNIT_CONFIG" = "no" ; then
44846 no_cppunit=yes
44847 else
44848 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44849 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44850 cppunit_version=`$CPPUNIT_CONFIG --version`
44851
44852 cppunit_major_version=`echo $cppunit_version | \
44853 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44854 cppunit_minor_version=`echo $cppunit_version | \
44855 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44856 cppunit_micro_version=`echo $cppunit_version | \
44857 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44858
44859 cppunit_major_min=`echo $cppunit_version_min | \
44860 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44861 cppunit_minor_min=`echo $cppunit_version_min | \
44862 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44863 cppunit_micro_min=`echo $cppunit_version_min | \
44864 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44865
44866 cppunit_version_proper=`expr \
44867 $cppunit_major_version \> $cppunit_major_min \| \
44868 $cppunit_major_version \= $cppunit_major_min \& \
44869 $cppunit_minor_version \> $cppunit_minor_min \| \
44870 $cppunit_major_version \= $cppunit_major_min \& \
44871 $cppunit_minor_version \= $cppunit_minor_min \& \
44872 $cppunit_micro_version \>= $cppunit_micro_min `
44873
44874 if test "$cppunit_version_proper" = "1" ; then
44875 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44876echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44877 else
44878 echo "$as_me:$LINENO: result: no" >&5
44879echo "${ECHO_T}no" >&6
44880 no_cppunit=yes
44881 fi
44882 fi
44883
44884 if test "x$no_cppunit" = x ; then
c2218763 44885 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44886 else
44887 CPPUNIT_CFLAGS=""
44888 CPPUNIT_LIBS=""
c2218763 44889 :
a848cd7e
SC
44890 fi
44891
44892
44893
44894
44895
44896for subdir in `echo $SUBDIRS`; do
44897 if test -d ${srcdir}/${subdir} ; then
44898 if test "$wxUSE_GUI" = "yes"; then
44899 if test ${subdir} = "samples"; then
44900 makefiles="samples/Makefile.in $makefiles"
44901 for sample in `echo $SAMPLES_SUBDIRS`; do
44902 if test -d $srcdir/samples/$sample; then
44903 makefiles="samples/$sample/Makefile.in $makefiles"
44904 fi
44905 done
9c112555
MW
44906 else
44907 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44908 eval "disabled=\$$disabled_var"
44909 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44910 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44911 fi
44912 else if test ${subdir} = "samples"; then
44913 makefiles="samples/Makefile.in samples/console/Makefile.in"
44914 elif test ${subdir} = "utils"; then
6537ccf8
VS
44915 makefiles=""
44916 for util in HelpGen tex2rtf ; do
44917 if test -d $srcdir/utils/$util ; then
44918 makefiles="utils/$util/Makefile.in \
44919 utils/$util/src/Makefile.in \
44920 $makefiles"
44921 fi
44922 done
a848cd7e
SC
44923 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44924 fi
44925 fi
44926
44927 for mkin in $makefiles ; do
44928 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44929 ac_config_files="$ac_config_files $mk"
44930
44931 done
44932 fi
44933done
44934
44935
44936cat >confcache <<\_ACEOF
44937# This file is a shell script that caches the results of configure
44938# tests run on this system so they can be shared between configure
44939# scripts and configure runs, see configure's option --config-cache.
44940# It is not useful on other systems. If it contains results you don't
44941# want to keep, you may remove or edit it.
44942#
44943# config.status only pays attention to the cache file if you give it
44944# the --recheck option to rerun configure.
44945#
44946# `ac_cv_env_foo' variables (set or unset) will be overridden when
44947# loading this file, other *unset* `ac_cv_foo' will be assigned the
44948# following values.
44949
44950_ACEOF
44951
44952# The following way of writing the cache mishandles newlines in values,
44953# but we know of no workaround that is simple, portable, and efficient.
44954# So, don't put newlines in cache variables' values.
44955# Ultrix sh set writes to stderr and can't be redirected directly,
44956# and sets the high bit in the cache file unless we assign to the vars.
44957{
44958 (set) 2>&1 |
44959 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44960 *ac_space=\ *)
44961 # `set' does not quote correctly, so add quotes (double-quote
44962 # substitution turns \\\\ into \\, and sed turns \\ into \).
44963 sed -n \
ac1cb8d3
VS
44964 "s/'/'\\\\''/g;
44965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44966 ;;
44967 *)
44968 # `set' quotes correctly as required by POSIX, so do not add quotes.
44969 sed -n \
ac1cb8d3 44970 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44971 ;;
44972 esac;
44973} |
44974 sed '
44975 t clear
44976 : clear
44977 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44978 t end
44979 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44980 : end' >>confcache
44981if diff $cache_file confcache >/dev/null 2>&1; then :; else
44982 if test -w $cache_file; then
44983 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44984 cat confcache >$cache_file
44985 else
44986 echo "not updating unwritable cache $cache_file"
44987 fi
44988fi
44989rm -f confcache
44990
44991test "x$prefix" = xNONE && prefix=$ac_default_prefix
44992# Let make expand exec_prefix.
44993test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44994
44995# VPATH may cause trouble with some makes, so we remove $(srcdir),
44996# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44997# trailing colons and then remove the whole line if VPATH becomes empty
44998# (actually we leave an empty line to preserve line numbers).
44999if test "x$srcdir" = x.; then
ac1cb8d3 45000 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
45001s/:*\$(srcdir):*/:/;
45002s/:*\${srcdir}:*/:/;
45003s/:*@srcdir@:*/:/;
ac1cb8d3 45004s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 45005s/:*$//;
ac1cb8d3 45006s/^[^=]*=[ ]*$//;
a848cd7e
SC
45007}'
45008fi
45009
45010DEFS=-DHAVE_CONFIG_H
45011
45012ac_libobjs=
45013ac_ltlibobjs=
45014for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45015 # 1. Remove the extension, and $U if already installed.
45016 ac_i=`echo "$ac_i" |
ac1cb8d3 45017 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
45018 # 2. Add them.
45019 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45020 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45021done
45022LIBOBJS=$ac_libobjs
45023
45024LTLIBOBJS=$ac_ltlibobjs
45025
45026
45027
45028: ${CONFIG_STATUS=./config.status}
45029ac_clean_files_save=$ac_clean_files
45030ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45031{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45032echo "$as_me: creating $CONFIG_STATUS" >&6;}
45033cat >$CONFIG_STATUS <<_ACEOF
45034#! $SHELL
45035# Generated by $as_me.
45036# Run this file to recreate the current configuration.
45037# Compiler output produced by configure, useful for debugging
45038# configure, is in config.log if it exists.
45039
45040debug=false
45041ac_cs_recheck=false
45042ac_cs_silent=false
45043SHELL=\${CONFIG_SHELL-$SHELL}
45044_ACEOF
45045
45046cat >>$CONFIG_STATUS <<\_ACEOF
45047## --------------------- ##
45048## M4sh Initialization. ##
45049## --------------------- ##
45050
45051# Be Bourne compatible
45052if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45053 emulate sh
45054 NULLCMD=:
45055 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45056 # is contrary to our usage. Disable this feature.
45057 alias -g '${1+"$@"}'='"$@"'
45058elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45059 set -o posix
45060fi
ac1cb8d3 45061DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
45062
45063# Support unset when possible.
ac1cb8d3 45064if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
45065 as_unset=unset
45066else
45067 as_unset=false
45068fi
45069
45070
45071# Work around bugs in pre-3.0 UWIN ksh.
45072$as_unset ENV MAIL MAILPATH
45073PS1='$ '
45074PS2='> '
45075PS4='+ '
45076
45077# NLS nuisances.
45078for as_var in \
45079 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45080 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45081 LC_TELEPHONE LC_TIME
45082do
ac1cb8d3 45083 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
45084 eval $as_var=C; export $as_var
45085 else
45086 $as_unset $as_var
45087 fi
45088done
45089
45090# Required to use basename.
45091if expr a : '\(a\)' >/dev/null 2>&1; then
45092 as_expr=expr
45093else
45094 as_expr=false
45095fi
45096
45097if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45098 as_basename=basename
45099else
45100 as_basename=false
45101fi
45102
45103
45104# Name of the executable.
45105as_me=`$as_basename "$0" ||
45106$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45107 X"$0" : 'X\(//\)$' \| \
45108 X"$0" : 'X\(/\)$' \| \
45109 . : '\(.\)' 2>/dev/null ||
45110echo X/"$0" |
45111 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45112 /^X\/\(\/\/\)$/{ s//\1/; q; }
45113 /^X\/\(\/\).*/{ s//\1/; q; }
45114 s/.*/./; q'`
45115
45116
45117# PATH needs CR, and LINENO needs CR and PATH.
45118# Avoid depending upon Character Ranges.
45119as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45120as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45121as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45122as_cr_digits='0123456789'
45123as_cr_alnum=$as_cr_Letters$as_cr_digits
45124
45125# The user is always right.
45126if test "${PATH_SEPARATOR+set}" != set; then
45127 echo "#! /bin/sh" >conf$$.sh
45128 echo "exit 0" >>conf$$.sh
45129 chmod +x conf$$.sh
45130 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45131 PATH_SEPARATOR=';'
45132 else
45133 PATH_SEPARATOR=:
45134 fi
45135 rm -f conf$$.sh
45136fi
45137
45138
45139 as_lineno_1=$LINENO
45140 as_lineno_2=$LINENO
45141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45142 test "x$as_lineno_1" != "x$as_lineno_2" &&
45143 test "x$as_lineno_3" = "x$as_lineno_2" || {
45144 # Find who we are. Look in the path if we contain no path at all
45145 # relative or not.
45146 case $0 in
45147 *[\\/]* ) as_myself=$0 ;;
45148 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45149for as_dir in $PATH
45150do
45151 IFS=$as_save_IFS
45152 test -z "$as_dir" && as_dir=.
45153 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45154done
45155
45156 ;;
45157 esac
45158 # We did not find ourselves, most probably we were run as `sh COMMAND'
45159 # in which case we are not to be found in the path.
45160 if test "x$as_myself" = x; then
45161 as_myself=$0
45162 fi
45163 if test ! -f "$as_myself"; then
45164 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45165echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45166 { (exit 1); exit 1; }; }
45167 fi
45168 case $CONFIG_SHELL in
45169 '')
45170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45171for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45172do
45173 IFS=$as_save_IFS
45174 test -z "$as_dir" && as_dir=.
45175 for as_base in sh bash ksh sh5; do
45176 case $as_dir in
45177 /*)
45178 if ("$as_dir/$as_base" -c '
45179 as_lineno_1=$LINENO
45180 as_lineno_2=$LINENO
45181 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45182 test "x$as_lineno_1" != "x$as_lineno_2" &&
45183 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45184 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45185 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45186 CONFIG_SHELL=$as_dir/$as_base
45187 export CONFIG_SHELL
45188 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45189 fi;;
45190 esac
45191 done
45192done
45193;;
45194 esac
45195
45196 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45197 # uniformly replaced by the line number. The first 'sed' inserts a
45198 # line-number line before each line; the second 'sed' does the real
45199 # work. The second script uses 'N' to pair each line-number line
45200 # with the numbered line, and appends trailing '-' during
45201 # substitution so that $LINENO is not a special case at line end.
45202 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45203 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45204 sed '=' <$as_myself |
45205 sed '
45206 N
45207 s,$,-,
45208 : loop
45209 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45210 t loop
45211 s,-$,,
45212 s,^['$as_cr_digits']*\n,,
45213 ' >$as_me.lineno &&
45214 chmod +x $as_me.lineno ||
45215 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45216echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45217 { (exit 1); exit 1; }; }
45218
45219 # Don't try to exec as it changes $[0], causing all sort of problems
45220 # (the dirname of $[0] is not the place where we might find the
45221 # original and so on. Autoconf is especially sensible to this).
45222 . ./$as_me.lineno
45223 # Exit status is that of the last command.
45224 exit
45225}
45226
45227
45228case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45229 *c*,-n*) ECHO_N= ECHO_C='
45230' ECHO_T=' ' ;;
45231 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45232 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45233esac
45234
45235if expr a : '\(a\)' >/dev/null 2>&1; then
45236 as_expr=expr
45237else
45238 as_expr=false
45239fi
45240
45241rm -f conf$$ conf$$.exe conf$$.file
45242echo >conf$$.file
45243if ln -s conf$$.file conf$$ 2>/dev/null; then
45244 # We could just check for DJGPP; but this test a) works b) is more generic
45245 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45246 if test -f conf$$.exe; then
45247 # Don't use ln at all; we don't have any links
45248 as_ln_s='cp -p'
45249 else
45250 as_ln_s='ln -s'
45251 fi
45252elif ln conf$$.file conf$$ 2>/dev/null; then
45253 as_ln_s=ln
45254else
45255 as_ln_s='cp -p'
45256fi
45257rm -f conf$$ conf$$.exe conf$$.file
45258
45259if mkdir -p . 2>/dev/null; then
45260 as_mkdir_p=:
45261else
ac1cb8d3 45262 test -d ./-p && rmdir ./-p
a848cd7e
SC
45263 as_mkdir_p=false
45264fi
45265
45266as_executable_p="test -f"
45267
45268# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 45269as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45270
45271# Sed expression to map a string onto a valid variable name.
ac1cb8d3 45272as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45273
45274
45275# IFS
45276# We need space, tab and new line, in precisely that order.
45277as_nl='
45278'
45279IFS=" $as_nl"
45280
45281# CDPATH.
45282$as_unset CDPATH
45283
45284exec 6>&1
45285
45286# Open the log real soon, to keep \$[0] and so on meaningful, and to
45287# report actual input values of CONFIG_FILES etc. instead of their
45288# values after options handling. Logging --version etc. is OK.
45289exec 5>>config.log
45290{
45291 echo
45292 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45293## Running $as_me. ##
45294_ASBOX
45295} >&5
45296cat >&5 <<_CSEOF
45297
eb730a0c 45298This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 45299generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
45300
45301 CONFIG_FILES = $CONFIG_FILES
45302 CONFIG_HEADERS = $CONFIG_HEADERS
45303 CONFIG_LINKS = $CONFIG_LINKS
45304 CONFIG_COMMANDS = $CONFIG_COMMANDS
45305 $ $0 $@
45306
45307_CSEOF
45308echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45309echo >&5
45310_ACEOF
45311
45312# Files that config.status was made for.
45313if test -n "$ac_config_files"; then
45314 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45315fi
45316
45317if test -n "$ac_config_headers"; then
45318 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45319fi
45320
45321if test -n "$ac_config_links"; then
45322 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45323fi
45324
45325if test -n "$ac_config_commands"; then
45326 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45327fi
45328
45329cat >>$CONFIG_STATUS <<\_ACEOF
45330
45331ac_cs_usage="\
45332\`$as_me' instantiates files from templates according to the
45333current configuration.
45334
45335Usage: $0 [OPTIONS] [FILE]...
45336
45337 -h, --help print this help, then exit
45338 -V, --version print version number, then exit
45339 -q, --quiet do not print progress messages
45340 -d, --debug don't remove temporary files
45341 --recheck update $as_me by reconfiguring in the same conditions
45342 --file=FILE[:TEMPLATE]
ac1cb8d3 45343 instantiate the configuration file FILE
a848cd7e 45344 --header=FILE[:TEMPLATE]
ac1cb8d3 45345 instantiate the configuration header FILE
a848cd7e
SC
45346
45347Configuration files:
45348$config_files
45349
45350Configuration headers:
45351$config_headers
45352
45353Configuration commands:
45354$config_commands
45355
45356Report bugs to <bug-autoconf@gnu.org>."
45357_ACEOF
45358
45359cat >>$CONFIG_STATUS <<_ACEOF
45360ac_cs_version="\\
eb730a0c 45361wxWidgets config.status 2.6.2
ac1cb8d3 45362configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
45363 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45364
ac1cb8d3 45365Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
45366This config.status script is free software; the Free Software Foundation
45367gives unlimited permission to copy, distribute and modify it."
45368srcdir=$srcdir
45369INSTALL="$INSTALL"
45370_ACEOF
45371
45372cat >>$CONFIG_STATUS <<\_ACEOF
45373# If no file are specified by the user, then we need to provide default
45374# value. By we need to know if files were specified by the user.
45375ac_need_defaults=:
45376while test $# != 0
45377do
45378 case $1 in
45379 --*=*)
45380 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45381 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45382 ac_shift=:
45383 ;;
45384 -*)
45385 ac_option=$1
45386 ac_optarg=$2
45387 ac_shift=shift
45388 ;;
45389 *) # This is not an option, so the user has probably given explicit
45390 # arguments.
45391 ac_option=$1
45392 ac_need_defaults=false;;
45393 esac
45394
45395 case $ac_option in
45396 # Handling of the options.
45397_ACEOF
45398cat >>$CONFIG_STATUS <<\_ACEOF
45399 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45400 ac_cs_recheck=: ;;
45401 --version | --vers* | -V )
45402 echo "$ac_cs_version"; exit 0 ;;
45403 --he | --h)
45404 # Conflict between --help and --header
45405 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45406Try \`$0 --help' for more information." >&5
45407echo "$as_me: error: ambiguous option: $1
45408Try \`$0 --help' for more information." >&2;}
45409 { (exit 1); exit 1; }; };;
45410 --help | --hel | -h )
45411 echo "$ac_cs_usage"; exit 0 ;;
45412 --debug | --d* | -d )
45413 debug=: ;;
45414 --file | --fil | --fi | --f )
45415 $ac_shift
45416 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45417 ac_need_defaults=false;;
45418 --header | --heade | --head | --hea )
45419 $ac_shift
45420 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45421 ac_need_defaults=false;;
45422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45423 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45424 ac_cs_silent=: ;;
45425
45426 # This is an error.
45427 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45428Try \`$0 --help' for more information." >&5
45429echo "$as_me: error: unrecognized option: $1
45430Try \`$0 --help' for more information." >&2;}
45431 { (exit 1); exit 1; }; } ;;
45432
45433 *) ac_config_targets="$ac_config_targets $1" ;;
45434
45435 esac
45436 shift
45437done
45438
45439ac_configure_extra_args=
45440
45441if $ac_cs_silent; then
45442 exec 6>/dev/null
45443 ac_configure_extra_args="$ac_configure_extra_args --silent"
45444fi
45445
45446_ACEOF
45447cat >>$CONFIG_STATUS <<_ACEOF
45448if \$ac_cs_recheck; then
45449 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45450 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45451fi
45452
45453_ACEOF
45454
45455cat >>$CONFIG_STATUS <<_ACEOF
45456#
45457# INIT-COMMANDS section.
45458#
45459
ceec2216
RL
45460 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45461 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45462 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45463 LN_S="${LN_S}"
a848cd7e
SC
45464
45465
45466_ACEOF
45467
45468
45469
45470cat >>$CONFIG_STATUS <<\_ACEOF
45471for ac_config_target in $ac_config_targets
45472do
45473 case "$ac_config_target" in
45474 # Handling of arguments.
ceec2216
RL
45475 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
45476 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
45477 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
45478 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45479 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
45480 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
45481 "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
45482 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45483echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45484 { (exit 1); exit 1; }; };;
45485 esac
45486done
45487
45488# If the user did not use the arguments to specify the items to instantiate,
45489# then the envvar interface is used. Set only those that are not.
45490# We use the long form for the default assignment because of an extremely
45491# bizarre bug on SunOS 4.1.3.
45492if $ac_need_defaults; then
45493 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45494 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45495 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45496fi
45497
45498# Have a temporary directory for convenience. Make it in the build tree
45499# simply because there is no reason to put it here, and in addition,
45500# creating and moving files from /tmp can sometimes cause problems.
45501# Create a temporary directory, and hook for its removal unless debugging.
45502$debug ||
45503{
45504 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45505 trap '{ (exit 1); exit 1; }' 1 2 13 15
45506}
45507
45508# Create a (secure) tmp directory for tmp files.
45509
45510{
45511 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45512 test -n "$tmp" && test -d "$tmp"
45513} ||
45514{
45515 tmp=./confstat$$-$RANDOM
45516 (umask 077 && mkdir $tmp)
45517} ||
45518{
45519 echo "$me: cannot create a temporary directory in ." >&2
45520 { (exit 1); exit 1; }
45521}
45522
45523_ACEOF
45524
45525cat >>$CONFIG_STATUS <<_ACEOF
45526
45527#
45528# CONFIG_FILES section.
45529#
45530
45531# No need to generate the scripts if there are no CONFIG_FILES.
45532# This happens for instance when ./config.status config.h
45533if test -n "\$CONFIG_FILES"; then
45534 # Protect against being on the right side of a sed subst in config.status.
45535 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45536 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45537s,@SHELL@,$SHELL,;t t
45538s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45539s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45540s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45541s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45542s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45543s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45544s,@exec_prefix@,$exec_prefix,;t t
45545s,@prefix@,$prefix,;t t
45546s,@program_transform_name@,$program_transform_name,;t t
45547s,@bindir@,$bindir,;t t
45548s,@sbindir@,$sbindir,;t t
45549s,@libexecdir@,$libexecdir,;t t
45550s,@datadir@,$datadir,;t t
45551s,@sysconfdir@,$sysconfdir,;t t
45552s,@sharedstatedir@,$sharedstatedir,;t t
45553s,@localstatedir@,$localstatedir,;t t
45554s,@libdir@,$libdir,;t t
45555s,@includedir@,$includedir,;t t
45556s,@oldincludedir@,$oldincludedir,;t t
45557s,@infodir@,$infodir,;t t
45558s,@mandir@,$mandir,;t t
45559s,@build_alias@,$build_alias,;t t
45560s,@host_alias@,$host_alias,;t t
45561s,@target_alias@,$target_alias,;t t
45562s,@DEFS@,$DEFS,;t t
45563s,@ECHO_C@,$ECHO_C,;t t
45564s,@ECHO_N@,$ECHO_N,;t t
45565s,@ECHO_T@,$ECHO_T,;t t
45566s,@LIBS@,$LIBS,;t t
45567s,@build@,$build,;t t
45568s,@build_cpu@,$build_cpu,;t t
45569s,@build_vendor@,$build_vendor,;t t
45570s,@build_os@,$build_os,;t t
45571s,@host@,$host,;t t
45572s,@host_cpu@,$host_cpu,;t t
45573s,@host_vendor@,$host_vendor,;t t
45574s,@host_os@,$host_os,;t t
45575s,@target@,$target,;t t
45576s,@target_cpu@,$target_cpu,;t t
45577s,@target_vendor@,$target_vendor,;t t
45578s,@target_os@,$target_os,;t t
45579s,@CC@,$CC,;t t
45580s,@CFLAGS@,$CFLAGS,;t t
45581s,@LDFLAGS@,$LDFLAGS,;t t
45582s,@CPPFLAGS@,$CPPFLAGS,;t t
45583s,@ac_ct_CC@,$ac_ct_CC,;t t
45584s,@EXEEXT@,$EXEEXT,;t t
45585s,@OBJEXT@,$OBJEXT,;t t
45586s,@CPP@,$CPP,;t t
45587s,@EGREP@,$EGREP,;t t
45588s,@CXX@,$CXX,;t t
45589s,@CXXFLAGS@,$CXXFLAGS,;t t
45590s,@ac_ct_CXX@,$ac_ct_CXX,;t t
45591s,@RANLIB@,$RANLIB,;t t
45592s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45593s,@AR@,$AR,;t t
45594s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45595s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45596s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45597s,@STRIP@,$STRIP,;t t
45598s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
45599s,@LN_S@,$LN_S,;t t
45600s,@CXXCPP@,$CXXCPP,;t t
45601s,@subdirs@,$subdirs,;t t
45602s,@PKG_CONFIG@,$PKG_CONFIG,;t t
45603s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
45604s,@GTK_LIBS@,$GTK_LIBS,;t t
45605s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
45606s,@X_CFLAGS@,$X_CFLAGS,;t t
45607s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
45608s,@X_LIBS@,$X_LIBS,;t t
45609s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
45610s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
45611s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
45612s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
45613s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
45614s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
45615s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
45616s,@RESCOMP@,$RESCOMP,;t t
45617s,@DEREZ@,$DEREZ,;t t
45618s,@SETFILE@,$SETFILE,;t t
45619s,@LIBICONV@,$LIBICONV,;t t
45620s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
45621s,@SDL_CONFIG@,$SDL_CONFIG,;t t
45622s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
45623s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
45624s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
45625s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
45626s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
45627s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
45628s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
45629s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
45630s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
45631s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
45632s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
45633s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
45634s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
45635s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
45636s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
45637s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
45638s,@VENDOR@,$VENDOR,;t t
45639s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
45640s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
45641s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
45642s,@WXUNIV@,$WXUNIV,;t t
45643s,@MONOLITHIC@,$MONOLITHIC,;t t
45644s,@USE_PLUGINS@,$USE_PLUGINS,;t t
45645s,@EXTRALIBS@,$EXTRALIBS,;t t
45646s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
45647s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
45648s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
45649s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
45650s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
45651s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
45652s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 45653s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
45654s,@UNICODE@,$UNICODE,;t t
45655s,@BUILD@,$BUILD,;t t
45656s,@DEBUG_INFO@,$DEBUG_INFO,;t t
45657s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
45658s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
45659s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
45660s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
45661s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
45662s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
45663s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
45664s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
45665s,@SET_MAKE@,$SET_MAKE,;t t
45666s,@MAKE_SET@,$MAKE_SET,;t t
45667s,@ac_ct_AR@,$ac_ct_AR,;t t
45668s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45669s,@NM@,$NM,;t t
45670s,@ac_ct_NM@,$ac_ct_NM,;t t
45671s,@INSTALL_DIR@,$INSTALL_DIR,;t t
45672s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
45673s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
45674s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
45675s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
45676s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 45677s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
45678s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
45679s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 45680s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
45681s,@SO_SUFFIX@,$SO_SUFFIX,;t t
45682s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
45683s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
45684s,@LIBPREFIX@,$LIBPREFIX,;t t
45685s,@LIBEXT@,$LIBEXT,;t t
45686s,@DLLPREFIX@,$DLLPREFIX,;t t
45687s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 45688s,@dlldir@,$dlldir,;t t
a848cd7e
SC
45689s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
45690s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
45691s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
45692s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
45693s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
45694s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 45695s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
45696s,@USE_SOVERSION@,$USE_SOVERSION,;t t
45697s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45698s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 45699s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
45700s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45701s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45702s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45703s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45704s,@GCC_PCH@,$GCC_PCH,;t t
45705s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45706s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45707s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45708s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45709s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45710s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45711s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45712s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45713s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45714s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45715s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45716s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45717s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45718s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45719s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45720s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45721s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45722s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45723s,@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 45724s,@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 45725s,@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 45726s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45727s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45728s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45729s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45730s,@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 45731s,@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 45732s,@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 45733s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45734s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45735s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45736s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45737s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45738s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45739s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45740s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 45741s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
45742s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45743s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45744s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45745s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45746s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45747s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45748s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45749s,@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
45750s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45751s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45752s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45753s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45754s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 45755s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45756s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45757s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45758s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45759s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45760s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45761s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45762s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45763s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45764s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
45765s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45766s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45767s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45768s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45769s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45770s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45771s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 45772s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45773s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45774s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45775s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45776s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45777s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45778s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 45779s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45780s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45781s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45782s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45783s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45784s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45785s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45786s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45787s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45788s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45789s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45790s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45791s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45792s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45793s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45794s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45795s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45796s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45797s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45798s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45799s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45800s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45801s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45802s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45803s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45804s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45805s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45806s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45807s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45808s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45809s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45810s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45811s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45812s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45813s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45814s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45815s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
45816s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
45817s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45818s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45819s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45820s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 45821s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 45822s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
45823s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45824s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45825s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45826s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45827s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45828s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 45829s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 45830s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45831s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45832s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45833s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45834s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45835s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45836s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45837s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45838s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45839s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45840s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45841s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45842s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45843s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45844s,@USE_GUI@,$USE_GUI,;t t
45845s,@AFMINSTALL@,$AFMINSTALL,;t t
45846s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45847s,@TOOLKIT@,$TOOLKIT,;t t
45848s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45849s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45850s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45851s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45852s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45853s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45854s,@WIDGET_SET@,$WIDGET_SET,;t t
45855s,@WX_RELEASE@,$WX_RELEASE,;t t
45856s,@WX_VERSION@,$WX_VERSION,;t t
45857s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45858s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45859s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45860s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45861s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45862s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45863s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45864s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 45865s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
45866s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45867s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45868s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45869s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45870s,@DISTDIR@,$DISTDIR,;t t
45871s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45872s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45873s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45874s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45875s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45876s,@RESFLAGS@,$RESFLAGS,;t t
45877s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45878s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45879s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45880s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45881s,@MACRESCOMP@,$MACRESCOMP,;t t
45882s,@MACSETFILE@,$MACSETFILE,;t t
45883s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45884s,@GCC@,$GCC,;t t
a848cd7e 45885s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45886s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45887s,@LIBOBJS@,$LIBOBJS,;t t
45888s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45889CEOF
45890
45891_ACEOF
45892
45893 cat >>$CONFIG_STATUS <<\_ACEOF
45894 # Split the substitutions into bite-sized pieces for seds with
45895 # small command number limits, like on Digital OSF/1 and HP-UX.
45896 ac_max_sed_lines=48
45897 ac_sed_frag=1 # Number of current file.
45898 ac_beg=1 # First line for current file.
45899 ac_end=$ac_max_sed_lines # Line after last line for current file.
45900 ac_more_lines=:
45901 ac_sed_cmds=
45902 while $ac_more_lines; do
45903 if test $ac_beg -gt 1; then
45904 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45905 else
45906 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45907 fi
45908 if test ! -s $tmp/subs.frag; then
45909 ac_more_lines=false
45910 else
45911 # The purpose of the label and of the branching condition is to
45912 # speed up the sed processing (if there are no `@' at all, there
45913 # is no need to browse any of the substitutions).
45914 # These are the two extra sed commands mentioned above.
45915 (echo ':t
45916 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45917 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45918 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45919 else
ac1cb8d3 45920 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45921 fi
45922 ac_sed_frag=`expr $ac_sed_frag + 1`
45923 ac_beg=$ac_end
45924 ac_end=`expr $ac_end + $ac_max_sed_lines`
45925 fi
45926 done
45927 if test -z "$ac_sed_cmds"; then
45928 ac_sed_cmds=cat
45929 fi
45930fi # test -n "$CONFIG_FILES"
45931
45932_ACEOF
45933cat >>$CONFIG_STATUS <<\_ACEOF
45934for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45935 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45936 case $ac_file in
45937 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45938 cat >$tmp/stdin
45939 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45940 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45941 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45943 * ) ac_file_in=$ac_file.in ;;
45944 esac
45945
45946 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45947 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45948$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45949 X"$ac_file" : 'X\(//\)[^/]' \| \
45950 X"$ac_file" : 'X\(//\)$' \| \
45951 X"$ac_file" : 'X\(/\)' \| \
45952 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45953echo X"$ac_file" |
45954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45956 /^X\(\/\/\)$/{ s//\1/; q; }
45957 /^X\(\/\).*/{ s//\1/; q; }
45958 s/.*/./; q'`
45959 { if $as_mkdir_p; then
45960 mkdir -p "$ac_dir"
45961 else
45962 as_dir="$ac_dir"
45963 as_dirs=
45964 while test ! -d "$as_dir"; do
45965 as_dirs="$as_dir $as_dirs"
45966 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45967$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45968 X"$as_dir" : 'X\(//\)[^/]' \| \
45969 X"$as_dir" : 'X\(//\)$' \| \
45970 X"$as_dir" : 'X\(/\)' \| \
45971 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45972echo X"$as_dir" |
45973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45975 /^X\(\/\/\)$/{ s//\1/; q; }
45976 /^X\(\/\).*/{ s//\1/; q; }
45977 s/.*/./; q'`
45978 done
45979 test ! -n "$as_dirs" || mkdir $as_dirs
45980 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45981echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45982 { (exit 1); exit 1; }; }; }
45983
45984 ac_builddir=.
45985
45986if test "$ac_dir" != .; then
45987 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45988 # A "../" for each directory in $ac_dir_suffix.
45989 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45990else
45991 ac_dir_suffix= ac_top_builddir=
45992fi
45993
45994case $srcdir in
45995 .) # No --srcdir option. We are building in place.
45996 ac_srcdir=.
45997 if test -z "$ac_top_builddir"; then
45998 ac_top_srcdir=.
45999 else
46000 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46001 fi ;;
46002 [\\/]* | ?:[\\/]* ) # Absolute path.
46003 ac_srcdir=$srcdir$ac_dir_suffix;
46004 ac_top_srcdir=$srcdir ;;
46005 *) # Relative path.
46006 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46007 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46008esac
ac1cb8d3
VS
46009
46010# Do not use `cd foo && pwd` to compute absolute paths, because
46011# the directories may not exist.
46012case `pwd` in
46013.) ac_abs_builddir="$ac_dir";;
46014*)
46015 case "$ac_dir" in
46016 .) ac_abs_builddir=`pwd`;;
46017 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46018 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46019 esac;;
46020esac
46021case $ac_abs_builddir in
46022.) ac_abs_top_builddir=${ac_top_builddir}.;;
46023*)
46024 case ${ac_top_builddir}. in
46025 .) ac_abs_top_builddir=$ac_abs_builddir;;
46026 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46027 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46028 esac;;
46029esac
46030case $ac_abs_builddir in
46031.) ac_abs_srcdir=$ac_srcdir;;
46032*)
46033 case $ac_srcdir in
46034 .) ac_abs_srcdir=$ac_abs_builddir;;
46035 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46036 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46037 esac;;
46038esac
46039case $ac_abs_builddir in
46040.) ac_abs_top_srcdir=$ac_top_srcdir;;
46041*)
46042 case $ac_top_srcdir in
46043 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46044 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46045 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46046 esac;;
46047esac
a848cd7e
SC
46048
46049
46050 case $INSTALL in
46051 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46052 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46053 esac
46054
a848cd7e
SC
46055 # Let's still pretend it is `configure' which instantiates (i.e., don't
46056 # use $as_me), people would be surprised to read:
46057 # /* config.h. Generated by config.status. */
46058 if test x"$ac_file" = x-; then
46059 configure_input=
46060 else
46061 configure_input="$ac_file. "
46062 fi
46063 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 46064 sed 's,.*/,,'` by configure."
a848cd7e
SC
46065
46066 # First look for the input files in the build tree, otherwise in the
46067 # src tree.
46068 ac_file_inputs=`IFS=:
46069 for f in $ac_file_in; do
46070 case $f in
46071 -) echo $tmp/stdin ;;
46072 [\\/$]*)
ac1cb8d3
VS
46073 # Absolute (can't be DOS-style, as IFS=:)
46074 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46075echo "$as_me: error: cannot find input file: $f" >&2;}
46076 { (exit 1); exit 1; }; }
ac1cb8d3 46077 echo "$f";;
a848cd7e 46078 *) # Relative
ac1cb8d3
VS
46079 if test -f "$f"; then
46080 # Build tree
46081 echo "$f"
46082 elif test -f "$srcdir/$f"; then
46083 # Source tree
46084 echo "$srcdir/$f"
46085 else
46086 # /dev/null tree
46087 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46088echo "$as_me: error: cannot find input file: $f" >&2;}
46089 { (exit 1); exit 1; }; }
ac1cb8d3 46090 fi;;
a848cd7e
SC
46091 esac
46092 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
46093
46094 if test x"$ac_file" != x-; then
46095 { echo "$as_me:$LINENO: creating $ac_file" >&5
46096echo "$as_me: creating $ac_file" >&6;}
46097 rm -f "$ac_file"
46098 fi
a848cd7e
SC
46099_ACEOF
46100cat >>$CONFIG_STATUS <<_ACEOF
46101 sed "$ac_vpsub
46102$extrasub
46103_ACEOF
46104cat >>$CONFIG_STATUS <<\_ACEOF
46105:t
46106/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46107s,@configure_input@,$configure_input,;t t
46108s,@srcdir@,$ac_srcdir,;t t
46109s,@abs_srcdir@,$ac_abs_srcdir,;t t
46110s,@top_srcdir@,$ac_top_srcdir,;t t
46111s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46112s,@builddir@,$ac_builddir,;t t
46113s,@abs_builddir@,$ac_abs_builddir,;t t
46114s,@top_builddir@,$ac_top_builddir,;t t
46115s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46116s,@INSTALL@,$ac_INSTALL,;t t
46117" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46118 rm -f $tmp/stdin
46119 if test x"$ac_file" != x-; then
46120 mv $tmp/out $ac_file
46121 else
46122 cat $tmp/out
46123 rm -f $tmp/out
46124 fi
46125
ceec2216
RL
46126 # Run the commands associated with the file.
46127 case $ac_file in
46128 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
46129 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
46130 esac
a848cd7e
SC
46131done
46132_ACEOF
46133cat >>$CONFIG_STATUS <<\_ACEOF
46134
46135#
46136# CONFIG_HEADER section.
46137#
46138
46139# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46140# NAME is the cpp macro being defined and VALUE is the value it is being given.
46141#
46142# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
46143ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46144ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
46145ac_dC=' '
46146ac_dD=',;t'
46147# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 46148ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
46149ac_uB='$,\1#\2define\3'
46150ac_uC=' '
46151ac_uD=',;t'
46152
46153for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46154 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46155 case $ac_file in
46156 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46157 cat >$tmp/stdin
46158 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46159 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46160 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46161 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46162 * ) ac_file_in=$ac_file.in ;;
46163 esac
46164
46165 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46166echo "$as_me: creating $ac_file" >&6;}
46167
46168 # First look for the input files in the build tree, otherwise in the
46169 # src tree.
46170 ac_file_inputs=`IFS=:
46171 for f in $ac_file_in; do
46172 case $f in
46173 -) echo $tmp/stdin ;;
46174 [\\/$]*)
ac1cb8d3
VS
46175 # Absolute (can't be DOS-style, as IFS=:)
46176 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46177echo "$as_me: error: cannot find input file: $f" >&2;}
46178 { (exit 1); exit 1; }; }
ac1cb8d3
VS
46179 # Do quote $f, to prevent DOS paths from being IFS'd.
46180 echo "$f";;
a848cd7e 46181 *) # Relative
ac1cb8d3
VS
46182 if test -f "$f"; then
46183 # Build tree
46184 echo "$f"
46185 elif test -f "$srcdir/$f"; then
46186 # Source tree
46187 echo "$srcdir/$f"
46188 else
46189 # /dev/null tree
46190 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46191echo "$as_me: error: cannot find input file: $f" >&2;}
46192 { (exit 1); exit 1; }; }
ac1cb8d3 46193 fi;;
a848cd7e
SC
46194 esac
46195 done` || { (exit 1); exit 1; }
46196 # Remove the trailing spaces.
ac1cb8d3 46197 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
46198
46199_ACEOF
46200
46201# Transform confdefs.h into two sed scripts, `conftest.defines' and
46202# `conftest.undefs', that substitutes the proper values into
46203# config.h.in to produce config.h. The first handles `#define'
46204# templates, and the second `#undef' templates.
46205# And first: Protect against being on the right side of a sed subst in
46206# config.status. Protect against being in an unquoted here document
46207# in config.status.
46208rm -f conftest.defines conftest.undefs
46209# Using a here document instead of a string reduces the quoting nightmare.
46210# Putting comments in sed scripts is not portable.
46211#
46212# `end' is used to avoid that the second main sed command (meant for
46213# 0-ary CPP macros) applies to n-ary macro definitions.
46214# See the Autoconf documentation for `clear'.
46215cat >confdef2sed.sed <<\_ACEOF
46216s/[\\&,]/\\&/g
46217s,[\\$`],\\&,g
46218t clear
46219: clear
ac1cb8d3 46220s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 46221t end
ac1cb8d3 46222s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
46223: end
46224_ACEOF
46225# If some macros were called several times there might be several times
46226# the same #defines, which is useless. Nevertheless, we may not want to
46227# sort them, since we want the *last* AC-DEFINE to be honored.
46228uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46229sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46230rm -f confdef2sed.sed
46231
46232# This sed command replaces #undef with comments. This is necessary, for
46233# example, in the case of _POSIX_SOURCE, which is predefined and required
46234# on some systems where configure will not decide to define it.
46235cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 46236s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
46237_ACEOF
46238
46239# Break up conftest.defines because some shells have a limit on the size
46240# of here documents, and old seds have small limits too (100 cmds).
46241echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 46242echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
46243echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46244echo ' :' >>$CONFIG_STATUS
46245rm -f conftest.tail
46246while grep . conftest.defines >/dev/null
46247do
46248 # Write a limited-size here document to $tmp/defines.sed.
46249 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46250 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 46251 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
46252 # Work around the forget-to-reset-the-flag bug.
46253 echo 't clr' >>$CONFIG_STATUS
46254 echo ': clr' >>$CONFIG_STATUS
46255 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46256 echo 'CEOF
46257 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46258 rm -f $tmp/in
46259 mv $tmp/out $tmp/in
46260' >>$CONFIG_STATUS
46261 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46262 rm -f conftest.defines
46263 mv conftest.tail conftest.defines
46264done
46265rm -f conftest.defines
46266echo ' fi # grep' >>$CONFIG_STATUS
46267echo >>$CONFIG_STATUS
46268
46269# Break up conftest.undefs because some shells have a limit on the size
46270# of here documents, and old seds have small limits too (100 cmds).
46271echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46272rm -f conftest.tail
46273while grep . conftest.undefs >/dev/null
46274do
46275 # Write a limited-size here document to $tmp/undefs.sed.
46276 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46277 # Speed up: don't consider the non `#undef'
ac1cb8d3 46278 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
46279 # Work around the forget-to-reset-the-flag bug.
46280 echo 't clr' >>$CONFIG_STATUS
46281 echo ': clr' >>$CONFIG_STATUS
46282 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46283 echo 'CEOF
46284 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46285 rm -f $tmp/in
46286 mv $tmp/out $tmp/in
46287' >>$CONFIG_STATUS
46288 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46289 rm -f conftest.undefs
46290 mv conftest.tail conftest.undefs
46291done
46292rm -f conftest.undefs
46293
46294cat >>$CONFIG_STATUS <<\_ACEOF
46295 # Let's still pretend it is `configure' which instantiates (i.e., don't
46296 # use $as_me), people would be surprised to read:
46297 # /* config.h. Generated by config.status. */
46298 if test x"$ac_file" = x-; then
46299 echo "/* Generated by configure. */" >$tmp/config.h
46300 else
46301 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46302 fi
46303 cat $tmp/in >>$tmp/config.h
46304 rm -f $tmp/in
46305 if test x"$ac_file" != x-; then
46306 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46307 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46308echo "$as_me: $ac_file is unchanged" >&6;}
46309 else
46310 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46311$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46312 X"$ac_file" : 'X\(//\)[^/]' \| \
46313 X"$ac_file" : 'X\(//\)$' \| \
46314 X"$ac_file" : 'X\(/\)' \| \
46315 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46316echo X"$ac_file" |
46317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46319 /^X\(\/\/\)$/{ s//\1/; q; }
46320 /^X\(\/\).*/{ s//\1/; q; }
46321 s/.*/./; q'`
46322 { if $as_mkdir_p; then
46323 mkdir -p "$ac_dir"
46324 else
46325 as_dir="$ac_dir"
46326 as_dirs=
46327 while test ! -d "$as_dir"; do
46328 as_dirs="$as_dir $as_dirs"
46329 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46331 X"$as_dir" : 'X\(//\)[^/]' \| \
46332 X"$as_dir" : 'X\(//\)$' \| \
46333 X"$as_dir" : 'X\(/\)' \| \
46334 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46335echo X"$as_dir" |
46336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46338 /^X\(\/\/\)$/{ s//\1/; q; }
46339 /^X\(\/\).*/{ s//\1/; q; }
46340 s/.*/./; q'`
46341 done
46342 test ! -n "$as_dirs" || mkdir $as_dirs
46343 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46344echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46345 { (exit 1); exit 1; }; }; }
46346
46347 rm -f $ac_file
46348 mv $tmp/config.h $ac_file
46349 fi
46350 else
46351 cat $tmp/config.h
46352 rm -f $tmp/config.h
46353 fi
46354done
46355_ACEOF
46356cat >>$CONFIG_STATUS <<\_ACEOF
46357
46358#
46359# CONFIG_COMMANDS section.
46360#
46361for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46362 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46363 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46364 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46365$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46366 X"$ac_dest" : 'X\(//\)[^/]' \| \
46367 X"$ac_dest" : 'X\(//\)$' \| \
46368 X"$ac_dest" : 'X\(/\)' \| \
46369 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46370echo X"$ac_dest" |
46371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46373 /^X\(\/\/\)$/{ s//\1/; q; }
46374 /^X\(\/\).*/{ s//\1/; q; }
46375 s/.*/./; q'`
ac1cb8d3
VS
46376 { if $as_mkdir_p; then
46377 mkdir -p "$ac_dir"
46378 else
46379 as_dir="$ac_dir"
46380 as_dirs=
46381 while test ! -d "$as_dir"; do
46382 as_dirs="$as_dir $as_dirs"
46383 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46384$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46385 X"$as_dir" : 'X\(//\)[^/]' \| \
46386 X"$as_dir" : 'X\(//\)$' \| \
46387 X"$as_dir" : 'X\(/\)' \| \
46388 . : '\(.\)' 2>/dev/null ||
46389echo X"$as_dir" |
46390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46392 /^X\(\/\/\)$/{ s//\1/; q; }
46393 /^X\(\/\).*/{ s//\1/; q; }
46394 s/.*/./; q'`
46395 done
46396 test ! -n "$as_dirs" || mkdir $as_dirs
46397 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46398echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46399 { (exit 1); exit 1; }; }; }
46400
a848cd7e
SC
46401 ac_builddir=.
46402
46403if test "$ac_dir" != .; then
46404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46405 # A "../" for each directory in $ac_dir_suffix.
46406 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46407else
46408 ac_dir_suffix= ac_top_builddir=
46409fi
46410
46411case $srcdir in
46412 .) # No --srcdir option. We are building in place.
46413 ac_srcdir=.
46414 if test -z "$ac_top_builddir"; then
46415 ac_top_srcdir=.
46416 else
46417 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46418 fi ;;
46419 [\\/]* | ?:[\\/]* ) # Absolute path.
46420 ac_srcdir=$srcdir$ac_dir_suffix;
46421 ac_top_srcdir=$srcdir ;;
46422 *) # Relative path.
46423 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46424 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46425esac
ac1cb8d3
VS
46426
46427# Do not use `cd foo && pwd` to compute absolute paths, because
46428# the directories may not exist.
46429case `pwd` in
46430.) ac_abs_builddir="$ac_dir";;
46431*)
46432 case "$ac_dir" in
46433 .) ac_abs_builddir=`pwd`;;
46434 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46435 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46436 esac;;
46437esac
46438case $ac_abs_builddir in
46439.) ac_abs_top_builddir=${ac_top_builddir}.;;
46440*)
46441 case ${ac_top_builddir}. in
46442 .) ac_abs_top_builddir=$ac_abs_builddir;;
46443 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46444 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46445 esac;;
46446esac
46447case $ac_abs_builddir in
46448.) ac_abs_srcdir=$ac_srcdir;;
46449*)
46450 case $ac_srcdir in
46451 .) ac_abs_srcdir=$ac_abs_builddir;;
46452 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46453 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46454 esac;;
46455esac
46456case $ac_abs_builddir in
46457.) ac_abs_top_srcdir=$ac_top_srcdir;;
46458*)
46459 case $ac_top_srcdir in
46460 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46461 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46462 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46463 esac;;
46464esac
a848cd7e
SC
46465
46466
46467 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46468echo "$as_me: executing $ac_dest commands" >&6;}
46469 case $ac_dest in
ceec2216
RL
46470 wx-config ) rm -f wx-config
46471 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
46472 ;;
a848cd7e
SC
46473 esac
46474done
46475_ACEOF
46476
46477cat >>$CONFIG_STATUS <<\_ACEOF
46478
46479{ (exit 0); exit 0; }
46480_ACEOF
46481chmod +x $CONFIG_STATUS
46482ac_clean_files=$ac_clean_files_save
46483
46484
46485# configure is writing to config.log, and then calls config.status.
46486# config.status does its own redirection, appending to config.log.
46487# Unfortunately, on DOS this fails, as config.log is still kept open
46488# by configure, so config.status won't be able to write to it; its
46489# output is simply discarded. So we exec the FD to /dev/null,
46490# effectively closing config.log, so it can be properly (re)opened and
46491# appended to by config.status. When coming back to configure, we
46492# need to make the FD available again.
46493if test "$no_create" != yes; then
46494 ac_cs_success=:
46495 ac_config_status_args=
46496 test "$silent" = yes &&
46497 ac_config_status_args="$ac_config_status_args --quiet"
46498 exec 5>/dev/null
46499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46500 exec 5>>config.log
46501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46502 # would make configure fail if this is the last instruction.
46503 $ac_cs_success || { (exit 1); exit 1; }
46504fi
46505
46506#
46507# CONFIG_SUBDIRS section.
46508#
46509if test "$no_recursion" != yes; then
46510
46511 # Remove --cache-file and --srcdir arguments so they do not pile up.
46512 ac_sub_configure_args=
46513 ac_prev=
46514 for ac_arg in $ac_configure_args; do
46515 if test -n "$ac_prev"; then
46516 ac_prev=
46517 continue
46518 fi
46519 case $ac_arg in
46520 -cache-file | --cache-file | --cache-fil | --cache-fi \
46521 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
46522 ac_prev=cache_file ;;
46523 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
46524 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
46525 | --c=*)
46526 ;;
46527 --config-cache | -C)
46528 ;;
46529 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
46530 ac_prev=srcdir ;;
46531 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
46532 ;;
46533 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46534 ac_prev=prefix ;;
46535 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46536 ;;
46537 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
46538 esac
46539 done
46540
46541 # Always prepend --prefix to ensure using the same prefix
46542 # in subdir configurations.
46543 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
46544
46545 ac_popdir=`pwd`
46546 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
46547
46548 # Do not complain, so a configure script can configure whichever
46549 # parts of a large source tree are present.
46550 test -d $srcdir/$ac_dir || continue
46551
46552 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
46553echo "$as_me: configuring in $ac_dir" >&6;}
46554 { if $as_mkdir_p; then
46555 mkdir -p "$ac_dir"
46556 else
46557 as_dir="$ac_dir"
46558 as_dirs=
46559 while test ! -d "$as_dir"; do
46560 as_dirs="$as_dir $as_dirs"
46561 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46562$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46563 X"$as_dir" : 'X\(//\)[^/]' \| \
46564 X"$as_dir" : 'X\(//\)$' \| \
46565 X"$as_dir" : 'X\(/\)' \| \
46566 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46567echo X"$as_dir" |
46568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46570 /^X\(\/\/\)$/{ s//\1/; q; }
46571 /^X\(\/\).*/{ s//\1/; q; }
46572 s/.*/./; q'`
46573 done
46574 test ! -n "$as_dirs" || mkdir $as_dirs
46575 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46576echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46577 { (exit 1); exit 1; }; }; }
46578
46579 ac_builddir=.
46580
46581if test "$ac_dir" != .; then
46582 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46583 # A "../" for each directory in $ac_dir_suffix.
46584 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46585else
46586 ac_dir_suffix= ac_top_builddir=
46587fi
46588
46589case $srcdir in
46590 .) # No --srcdir option. We are building in place.
46591 ac_srcdir=.
46592 if test -z "$ac_top_builddir"; then
46593 ac_top_srcdir=.
46594 else
46595 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46596 fi ;;
46597 [\\/]* | ?:[\\/]* ) # Absolute path.
46598 ac_srcdir=$srcdir$ac_dir_suffix;
46599 ac_top_srcdir=$srcdir ;;
46600 *) # Relative path.
46601 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46602 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46603esac
ac1cb8d3
VS
46604
46605# Do not use `cd foo && pwd` to compute absolute paths, because
46606# the directories may not exist.
46607case `pwd` in
46608.) ac_abs_builddir="$ac_dir";;
46609*)
46610 case "$ac_dir" in
46611 .) ac_abs_builddir=`pwd`;;
46612 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46613 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46614 esac;;
46615esac
46616case $ac_abs_builddir in
46617.) ac_abs_top_builddir=${ac_top_builddir}.;;
46618*)
46619 case ${ac_top_builddir}. in
46620 .) ac_abs_top_builddir=$ac_abs_builddir;;
46621 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46622 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46623 esac;;
46624esac
46625case $ac_abs_builddir in
46626.) ac_abs_srcdir=$ac_srcdir;;
46627*)
46628 case $ac_srcdir in
46629 .) ac_abs_srcdir=$ac_abs_builddir;;
46630 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46631 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46632 esac;;
46633esac
46634case $ac_abs_builddir in
46635.) ac_abs_top_srcdir=$ac_top_srcdir;;
46636*)
46637 case $ac_top_srcdir in
46638 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46639 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46640 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46641 esac;;
46642esac
a848cd7e
SC
46643
46644
46645 cd $ac_dir
46646
46647 # Check for guested configure; otherwise get Cygnus style configure.
46648 if test -f $ac_srcdir/configure.gnu; then
46649 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46650 elif test -f $ac_srcdir/configure; then
46651 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46652 elif test -f $ac_srcdir/configure.in; then
46653 ac_sub_configure=$ac_configure
46654 else
46655 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46656echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46657 ac_sub_configure=
46658 fi
46659
46660 # The recursion is here.
46661 if test -n "$ac_sub_configure"; then
46662 # Make the cache file name correct relative to the subdirectory.
46663 case $cache_file in
46664 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46665 *) # Relative path.
ac1cb8d3 46666 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
46667 esac
46668
46669 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46670echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46671 # The eval makes quoting arguments work.
46672 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
46673 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46674 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
46675echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46676 { (exit 1); exit 1; }; }
46677 fi
46678
6ebeb4c7 46679 cd "$ac_popdir"
a848cd7e
SC
46680 done
46681fi
46682
46683
46684echo
77ffb593 46685echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 46686echo ""
4d4ff94c 46687echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 46688echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 46689
77ffb593
JS
46690echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
46691echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
46692echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 46693
77ffb593
JS
46694echo " What level of wxWidgets compatibility should be enabled?"
46695echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
46696echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 46697
77ffb593 46698echo " Which libraries should wxWidgets use?"
a848cd7e
SC
46699echo " jpeg ${wxUSE_LIBJPEG-none}"
46700echo " png ${wxUSE_LIBPNG-none}"
46701echo " regex ${wxUSE_REGEX}"
46702echo " tiff ${wxUSE_LIBTIFF-none}"
46703if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46704echo " xpm ${wxUSE_LIBXPM-none}"
46705fi
46706echo " zlib ${wxUSE_ZLIB}"
46707echo " odbc ${wxUSE_ODBC}"
46708echo " expat ${wxUSE_EXPAT}"
46709echo " libmspack ${wxUSE_LIBMSPACK}"
46710echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46711echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46712
46713echo ""
46714