]> git.saurik.com Git - wxWidgets.git/blame - configure
added more methods to transparently convert wxTreeItemIdValue to wxTreeItemId to...
[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"
0ee4059d 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
eb730a0c 797\`configure' configures wxWidgets 2.6.2 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
eb730a0c 863 short | recursive ) echo "Configuration of wxWidgets 2.6.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
38b4a946 1032 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
38b4a946 1035 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1036 --enable-palette use wxPalette class
1037 --enable-image use wxImage class
1038 --enable-gif use gif images (GIF file format)
1039 --enable-pcx use pcx images (PCX file format)
1040 --enable-iff use iff images (IFF file format)
1041 --enable-pnm use pnm images (PNM file format)
1042 --enable-xpm use xpm images (XPM file format)
1043 --enable-icocur use Windows ICO and CUR formats
77ffb593 1044 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1045 --enable-vendor=VENDOR vendor name (win32 DLL only)
1046 --disable-largefile omit support for large files
1047 --disable-gtktest do not try to compile and run a test GTK+ program
1048 --disable-gtktest Do not try to compile and run a test GTK program
1049 --disable-sdltest Do not try to compile and run a test SDL program
1050 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1051 --disable-precomp-headers
1052 don't use precompiled headers even if compiler can
a848cd7e
SC
1053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1057 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1058 --with-motif use Motif/Lesstif
1059 --with-mac use Mac OS X
1060 --with-cocoa use Cocoa
1061 --with-wine use Wine
1062 --with-msw use MS-Windows
1063 --with-pm use OS/2 Presentation Manager
1064 --with-mgl use SciTech MGL
1065 --with-microwin use MicroWindows
1066 --with-x11 use X11
1067 --with-libpng use libpng (PNG image format)
1068 --with-libjpeg use libjpeg (JPEG file format)
1069 --with-libtiff use libtiff (TIFF file format)
1070 --with-libxpm use libxpm (XPM file format)
1071 --with-libmspack use libmspack (CHM help files loading)
1072 --with-sdl use SDL for audio on Unix
d51253e8 1073 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1074 --with-opengl use OpenGL (or Mesa)
1075 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1076 --with-regex enable support for wxRegEx class
1077 --with-zlib use zlib for LZW compression
1078 --with-odbc use the IODBC and wxODBC classes
1079 --with-expat enable XML support using expat parser
ceec2216 1080 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1081 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1082 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1083 --with-x use the X Window System
1084 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1085 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1086 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1087 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1088 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1089
1090Some influential environment variables:
dcc1b6ad
VS
1091 CC C compiler command
1092 CFLAGS C compiler flags
1093 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1094 nonstandard directory <lib dir>
1095 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1096 headers in a nonstandard directory <include dir>
1097 CPP C preprocessor
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1100 CXXCPP C++ preprocessor
a848cd7e
SC
1101
1102Use these variables to override the choices made by `configure' or to help
1103it to find libraries and programs with nonstandard names/locations.
1104
77ffb593 1105Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1106_ACEOF
1107fi
1108
1109if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1115
1116if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120else
1121 ac_dir_suffix= ac_top_builddir=
1122fi
1123
1124case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative path.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138esac
ac1cb8d3
VS
1139
1140# Do not use `cd foo && pwd` to compute absolute paths, because
1141# the directories may not exist.
1142case `pwd` in
1143.) ac_abs_builddir="$ac_dir";;
1144*)
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_builddir=${ac_top_builddir}.;;
1153*)
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_srcdir=$ac_srcdir;;
1162*)
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_srcdir=$ac_top_srcdir;;
1171*)
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177esac
a848cd7e
SC
1178
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1188 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 fi
6ebeb4c7 1194 cd "$ac_popdir"
a848cd7e
SC
1195 done
1196fi
1197
1198test -n "$ac_init_help" && exit 0
1199if $ac_init_version; then
1200 cat <<\_ACEOF
eb730a0c 1201wxWidgets configure 2.6.2
ac1cb8d3 1202generated by GNU Autoconf 2.59
a848cd7e 1203
ac1cb8d3 1204Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1205This configure script is free software; the Free Software Foundation
1206gives unlimited permission to copy, distribute and modify it.
1207_ACEOF
1208 exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
eb730a0c 1215It was created by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 1216generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1217
1218 $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235
1236/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1237/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1240/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1241/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1242/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249 IFS=$as_save_IFS
1250 test -z "$as_dir" && as_dir=.
1251 echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278 for ac_arg
1279 do
1280 case $ac_arg in
1281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1284 continue ;;
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 esac
1288 case $ac_pass in
1289 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 2)
1291 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292 if test $ac_must_keep_next = true; then
ac1cb8d3 1293 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1294 else
ac1cb8d3
VS
1295 case $ac_arg in
1296 *=* | --config-cache | -C | -disable-* | --disable-* \
1297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299 | -with-* | --with-* | -without-* | --without-* | --x)
1300 case "$ac_configure_args0 " in
1301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 esac
1303 ;;
1304 -* ) ac_must_keep_next=true ;;
1305 esac
a848cd7e
SC
1306 fi
1307 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308 # Get rid of the leading space.
1309 ac_sep=" "
1310 ;;
1311 esac
1312 done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log. We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323 # Save into config.log some information that might help in debugging.
1324 {
1325 echo
1326
1327 cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332 echo
1333 # The following way of writing the cache mishandles newlines in values,
1334{
1335 (set) 2>&1 |
1336 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 *ac_space=\ *)
1338 sed -n \
ac1cb8d3
VS
1339 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1341 ;;
1342 *)
1343 sed -n \
ac1cb8d3 1344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1345 ;;
1346 esac;
1347}
1348 echo
1349
1350 cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_vars
1357 do
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1360 done | sort
1361 echo
1362
1363 if test -n "$ac_subst_files"; then
1364 cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369 echo
1370 for ac_var in $ac_subst_files
1371 do
1372 eval ac_val=$`echo $ac_var`
ac1cb8d3 1373 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1374 done | sort
1375 echo
1376 fi
1377
1378 if test -s confdefs.h; then
1379 cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384 echo
1385 sed "/^$/d" confdefs.h | sort
1386 echo
1387 fi
1388 test "$ac_signal" != 0 &&
1389 echo "$as_me: caught signal $ac_signal"
1390 echo "$as_me: exit $exit_status"
1391 } >&5
ac1cb8d3 1392 rm -f core *.core &&
a848cd7e
SC
1393 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 exit $exit_status
1395 ' 0
1396for ac_signal in 1 2 13 15; do
1397 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436 if test "x$prefix" != xNONE; then
1437 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 else
1439 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443 if test -r "$ac_site_file"; then
1444 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446 sed 's/^/| /' "$ac_site_file" >&5
1447 . "$ac_site_file"
1448 fi
1449done
1450
1451if test -r "$cache_file"; then
1452 # Some versions of bash will fail to source /dev/null (special
1453 # files actually), so we avoid doing that.
1454 if test -f "$cache_file"; then
1455 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457 case $cache_file in
1458 [\\/]* | ?:[\\/]* ) . $cache_file;;
1459 *) . ./$cache_file;;
1460 esac
1461 fi
1462else
1463 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465 >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
ac1cb8d3 1472 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474 eval ac_new_set=\$ac_env_${ac_var}_set
1475 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476 eval ac_new_val="\$ac_env_${ac_var}_value"
1477 case $ac_old_set,$ac_new_set in
1478 set,)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,set)
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1486 ,);;
1487 *)
1488 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1489 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1491 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1492echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1493 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1494echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1495 ac_cache_corrupted=:
a848cd7e
SC
1496 fi;;
1497 esac
1498 # Pass precious variables to config.status.
1499 if test "$ac_new_set" = set; then
1500 case $ac_new_val in
1501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503 *) ac_arg=$ac_var=$ac_new_val ;;
1504 esac
1505 case " $ac_configure_args " in
1506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1507 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508 esac
1509 fi
1510done
1511if $ac_cache_corrupted; then
1512 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516 { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554ac_aux_dir=
1555for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556 if test -f $ac_dir/install-sh; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 break
1560 elif test -f $ac_dir/install.sh; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 break
1564 elif test -f $ac_dir/shtool; then
1565 ac_aux_dir=$ac_dir
1566 ac_install_sh="$ac_aux_dir/shtool install -c"
1567 break
1568 fi
1569done
1570if test -z "$ac_aux_dir"; then
1571 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573 { (exit 1); exit 1; }; }
1574fi
1575ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579# Make sure we can run config.sub.
1580$ac_config_sub sun4 >/dev/null 2>&1 ||
1581 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1582echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585echo "$as_me:$LINENO: checking build system type" >&5
1586echo $ECHO_N "checking build system type... $ECHO_C" >&6
1587if test "${ac_cv_build+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_build_alias=$build_alias
1591test -z "$ac_cv_build_alias" &&
1592 ac_cv_build_alias=`$ac_config_guess`
1593test -z "$ac_cv_build_alias" &&
1594 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1595echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1596 { (exit 1); exit 1; }; }
1597ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1604echo "${ECHO_T}$ac_cv_build" >&6
1605build=$ac_cv_build
1606build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611echo "$as_me:$LINENO: checking host system type" >&5
1612echo $ECHO_N "checking host system type... $ECHO_C" >&6
1613if test "${ac_cv_host+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 ac_cv_host_alias=$host_alias
1617test -z "$ac_cv_host_alias" &&
1618 ac_cv_host_alias=$ac_cv_build_alias
1619ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624fi
1625echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1626echo "${ECHO_T}$ac_cv_host" >&6
1627host=$ac_cv_host
1628host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633echo "$as_me:$LINENO: checking target system type" >&5
1634echo $ECHO_N "checking target system type... $ECHO_C" >&6
1635if test "${ac_cv_target+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 ac_cv_target_alias=$target_alias
1639test "x$ac_cv_target_alias" = "x" &&
1640 ac_cv_target_alias=$ac_cv_host_alias
1641ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1648echo "${ECHO_T}$ac_cv_target" >&6
1649target=$ac_cv_target
1650target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655# The aliases save the names the user supplied, while $host etc.
1656# will get canonicalized.
1657test -n "$target_alias" &&
1658 test "$program_prefix$program_suffix$program_transform_name" = \
1659 NONENONEs,x,x, &&
1660 program_prefix=${target_alias}-
1661
1662
1663
ceec2216 1664wx_major_version_number=2
e0d84535 1665wx_minor_version_number=6
eb730a0c 1666wx_release_number=2
063c96c1 1667wx_subrelease_number=1
a848cd7e 1668
ceec2216
RL
1669WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1670WX_VERSION=$WX_RELEASE.$wx_release_number
1671WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1672
ceec2216 1673WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1674
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
a03b8b04
RD
1727DEFAULT_STD_FLAG=yes
1728
a848cd7e
SC
1729case "${host}" in
1730 *-hp-hpux* )
1731 USE_HPUX=1
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734 SO_SUFFIX=sl
1735 cat >>confdefs.h <<\_ACEOF
1736#define __HPUX__ 1
1737_ACEOF
1738
1739 ;;
1740 *-*-linux* )
1741 USE_LINUX=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __LINUX__ 1
1744_ACEOF
1745
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-gnu* | *-*-k*bsd*-gnu )
1757 USE_GNU=1
1758 TMP=`uname -m`
1759 if test "x$TMP" = "xalpha"; then
1760 USE_ALPHA=1
1761 cat >>confdefs.h <<\_ACEOF
1762#define __ALPHA__ 1
1763_ACEOF
1764
1765 fi
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-irix5* | *-*-irix6* )
1769 USE_SGI=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SGI__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SVR4__ 1
1777_ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780 ;;
1781 *-*-solaris2* )
1782 USE_SUN=1
1783 USE_SOLARIS=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SUN__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SOLARIS__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SVR4__ 1
1795_ACEOF
1796
1797 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799 ;;
1800 *-*-sunos4* )
1801 USE_SUN=1
1802 USE_SUNOS=1
1803 USE_BSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUN__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUNOS__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817 ;;
1818 *-*-freebsd*)
1819 USE_BSD=1
1820 USE_FREEBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __FREEBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-openbsd*)
1832 USE_BSD=1
1833 USE_OPENBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __OPENBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-netbsd*)
1845 USE_BSD=1
1846 USE_NETBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __NETBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-osf* )
1858 USE_ALPHA=1
1859 USE_OSF=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __OSF__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 ;;
1871 *-*-dgux5* )
1872 USE_ALPHA=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-sysv5* )
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SYSV__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SVR4__ 1
1893_ACEOF
1894
1895 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896 ;;
1897 *-*-aix* )
1898 USE_AIX=1
1899 USE_SYSV=1
1900 USE_SVR4=1
1901 SO_SUFFIX=a
1902 cat >>confdefs.h <<\_ACEOF
1903#define __AIX__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SYSV__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SVR4__ 1
1912_ACEOF
1913
1914 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915 ;;
1916
1917 *-*-*UnixWare*)
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 USE_UNIXWARE=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __UNIXWARE__ 1
1923_ACEOF
1924
1925 ;;
1926
1927 *-*-cygwin* | *-*-mingw32* )
1928 SO_SUFFIX=dll
1929 PROGRAM_EXT=".exe"
a848cd7e 1930 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1931 DEFAULT_STD_FLAG=no
a848cd7e
SC
1932 ;;
1933
1934 *-pc-msdosdjgpp )
1935 USE_UNIX=0
1936 USE_DOS=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __DOS__ 1
1939_ACEOF
1940
1941 PROGRAM_EXT=".exe"
1942 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1943 ;;
1944
1945 *-pc-os2_emx | *-pc-os2-emx )
1946 cat >>confdefs.h <<\_ACEOF
1947#define __EMX__ 1
1948_ACEOF
1949
1950 USE_OS2=1
1951 cat >>confdefs.h <<\_ACEOF
1952#define __OS2__ 1
1953_ACEOF
1954
1955 PROGRAM_EXT=".exe"
1956 DEFAULT_DEFAULT_wxUSE_PM=1
1957 CXX=gcc
1958 LDFLAGS="$LDFLAGS -Zcrtdll"
1959 ac_executable_extensions=".exe"
1960 export ac_executable_extensions
1961 ac_save_IFS="$IFS"
1962 IFS='\\'
1963 ac_TEMP_PATH=
1964 for ac_dir in $PATH; do
1965 IFS=$ac_save_IFS
1966 if test -z "$ac_TEMP_PATH"; then
1967 ac_TEMP_PATH="$ac_dir"
1968 else
1969 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1970 fi
1971 done
1972 export PATH="$ac_TEMP_PATH"
1973 unset ac_TEMP_PATH
a03b8b04 1974 DEFAULT_STD_FLAG=no
a848cd7e
SC
1975 ;;
1976
cfda0ea8 1977 *-*-darwin* )
a848cd7e
SC
1978 USE_BSD=1
1979 USE_DARWIN=1
1980 SO_SUFFIX=dylib
1981 cat >>confdefs.h <<\_ACEOF
1982#define __BSD__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define __DARWIN__ 1
a848cd7e
SC
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define TARGET_CARBON 1
1991_ACEOF
1992
1993 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1994 DEFAULT_STD_FLAG=no
a848cd7e 1995 ;;
1e9e8aba
DE
1996 powerpc-apple-macos* )
1997 USE_UNIX=0
1998 ac_cv_c_bigendian=yes
1999 SO_SUFFIX=shlib
2000 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2001 DEFAULT_STD_FLAG=no
1e9e8aba 2002 ;;
a848cd7e
SC
2003
2004 *-*-beos* )
2005 USE_BEOS=1
2006 cat >>confdefs.h <<\_ACEOF
2007#define __BEOS__ 1
2008_ACEOF
2009
2010 ;;
2011
2012 *)
2013 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2014echo "$as_me: error: unknown system type ${host}." >&2;}
2015 { (exit 1); exit 1; }; }
2016esac
2017
2018
2019
2020
2021 wx_arg_cache_file="configarg.cache"
2022 echo "loading argument cache $wx_arg_cache_file"
2023 rm -f ${wx_arg_cache_file}.tmp
2024 touch ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}
2026
2027
2028DEBUG_CONFIGURE=0
2029if test $DEBUG_CONFIGURE = 1; then
2030 DEFAULT_wxUSE_UNIVERSAL=no
2031 DEFAULT_wxUSE_STL=no
2032
2033 DEFAULT_wxUSE_NANOX=no
2034
2035 DEFAULT_wxUSE_THREADS=yes
2036
2037 DEFAULT_wxUSE_SHARED=yes
2038 DEFAULT_wxUSE_OPTIMISE=no
2039 DEFAULT_wxUSE_PROFILE=no
2040 DEFAULT_wxUSE_NO_DEPS=no
2041 DEFAULT_wxUSE_NO_RTTI=no
2042 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2043 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2044 DEFAULT_wxUSE_PERMISSIVE=no
2045 DEFAULT_wxUSE_DEBUG_FLAG=yes
2046 DEFAULT_wxUSE_DEBUG_INFO=yes
2047 DEFAULT_wxUSE_DEBUG_GDB=yes
2048 DEFAULT_wxUSE_MEM_TRACING=no
2049 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2050 DEFAULT_wxUSE_DMALLOC=no
2051 DEFAULT_wxUSE_APPLE_IEEE=no
2052
2053 DEFAULT_wxUSE_EXCEPTIONS=no
2054 DEFAULT_wxUSE_LOG=yes
2055 DEFAULT_wxUSE_LOGWINDOW=no
2056 DEFAULT_wxUSE_LOGGUI=no
2057 DEFAULT_wxUSE_LOGDIALOG=no
2058
2059 DEFAULT_wxUSE_GUI=yes
2060 DEFAULT_wxUSE_CONTROLS=no
2061
2062 DEFAULT_wxUSE_REGEX=no
2063 DEFAULT_wxUSE_XML=no
2064 DEFAULT_wxUSE_EXPAT=no
2065 DEFAULT_wxUSE_ZLIB=no
2066 DEFAULT_wxUSE_LIBPNG=no
2067 DEFAULT_wxUSE_LIBJPEG=no
2068 DEFAULT_wxUSE_LIBTIFF=no
2069 DEFAULT_wxUSE_LIBXPM=no
2070 DEFAULT_wxUSE_LIBMSPACK=no
2071 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2072 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2073 DEFAULT_wxUSE_ODBC=no
2074 DEFAULT_wxUSE_OPENGL=no
2075
2076 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2077 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2078 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2079 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2080 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2081 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2082 DEFAULT_wxUSE_CMDLINE_PARSER=no
2083 DEFAULT_wxUSE_DATETIME=no
2084 DEFAULT_wxUSE_TIMER=no
2085 DEFAULT_wxUSE_STOPWATCH=no
2086 DEFAULT_wxUSE_FILE=no
2087 DEFAULT_wxUSE_FFILE=no
07158944 2088 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2089 DEFAULT_wxUSE_TEXTBUFFER=no
2090 DEFAULT_wxUSE_TEXTFILE=no
2091 DEFAULT_wxUSE_SOUND=no
3b57de8b 2092 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2093 DEFAULT_wxUSE_INTL=no
2094 DEFAULT_wxUSE_CONFIG=no
2095 DEFAULT_wxUSE_FONTMAP=no
2096 DEFAULT_wxUSE_STREAMS=no
2097 DEFAULT_wxUSE_SOCKETS=no
2098 DEFAULT_wxUSE_OLE=no
2099 DEFAULT_wxUSE_DATAOBJ=no
2100 DEFAULT_wxUSE_DIALUP_MANAGER=no
2101 DEFAULT_wxUSE_JOYSTICK=no
2102 DEFAULT_wxUSE_DYNLIB_CLASS=no
2103 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2104 DEFAULT_wxUSE_LONGLONG=no
2105 DEFAULT_wxUSE_GEOMETRY=no
2106
2107 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2108 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2109 DEFAULT_wxUSE_POSTSCRIPT=no
2110
2111 DEFAULT_wxUSE_CLIPBOARD=no
2112 DEFAULT_wxUSE_TOOLTIPS=no
2113 DEFAULT_wxUSE_DRAG_AND_DROP=no
2114 DEFAULT_wxUSE_DRAGIMAGE=no
2115 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2116 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2117
8a7b1113 2118 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2119 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2120 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2121 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2122
2123 DEFAULT_wxUSE_RESOURCES=no
2124 DEFAULT_wxUSE_CONSTRAINTS=no
2125 DEFAULT_wxUSE_IPC=no
2126 DEFAULT_wxUSE_HELP=no
2127 DEFAULT_wxUSE_MS_HTML_HELP=no
2128 DEFAULT_wxUSE_WXHTML_HELP=no
2129 DEFAULT_wxUSE_TREELAYOUT=no
2130 DEFAULT_wxUSE_METAFILE=no
2131 DEFAULT_wxUSE_MIMETYPE=no
2132 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2133 DEFAULT_wxUSE_PROTOCOL=no
2134 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2135 DEFAULT_wxUSE_PROTOCOL_FTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FILE=no
2137 DEFAULT_wxUSE_URL=no
2138
2139 DEFAULT_wxUSE_COMMONDLGS=no
2140 DEFAULT_wxUSE_CHOICEDLG=no
2141 DEFAULT_wxUSE_COLOURDLG=no
2142 DEFAULT_wxUSE_DIRDLG=no
2143 DEFAULT_wxUSE_FILEDLG=no
2144 DEFAULT_wxUSE_FINDREPLDLG=no
2145 DEFAULT_wxUSE_FONTDLG=no
2146 DEFAULT_wxUSE_MSGDLG=no
2147 DEFAULT_wxUSE_NUMBERDLG=no
2148 DEFAULT_wxUSE_TEXTDLG=no
2149 DEFAULT_wxUSE_SPLASH=no
2150 DEFAULT_wxUSE_STARTUP_TIPS=no
2151 DEFAULT_wxUSE_PROGRESSDLG=no
2152 DEFAULT_wxUSE_WIZARDDLG=no
2153
2154 DEFAULT_wxUSE_MENUS=no
2155 DEFAULT_wxUSE_MINIFRAME=no
2156 DEFAULT_wxUSE_HTML=no
9a8f0513 2157 DEFAULT_wxUSE_XRC=no
646b6ec1 2158 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2159 DEFAULT_wxUSE_FILESYSTEM=no
2160 DEFAULT_wxUSE_FS_INET=no
2161 DEFAULT_wxUSE_FS_ZIP=no
2162 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2163 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2164 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2165 DEFAULT_wxUSE_VALIDATORS=no
2166
2167 DEFAULT_wxUSE_ACCEL=no
2168 DEFAULT_wxUSE_BUTTON=no
2169 DEFAULT_wxUSE_BMPBUTTON=no
2170 DEFAULT_wxUSE_CALCTRL=no
2171 DEFAULT_wxUSE_CARET=no
2172 DEFAULT_wxUSE_CHECKBOX=no
2173 DEFAULT_wxUSE_CHECKLST=no
2174 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2175 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2176 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2177 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2178 DEFAULT_wxUSE_DISPLAY=no
2179 DEFAULT_wxUSE_GAUGE=no
2180 DEFAULT_wxUSE_GRID=no
2181 DEFAULT_wxUSE_IMAGLIST=no
2182 DEFAULT_wxUSE_LISTBOOK=no
2183 DEFAULT_wxUSE_LISTBOX=no
2184 DEFAULT_wxUSE_LISTCTRL=no
2185 DEFAULT_wxUSE_NOTEBOOK=no
2186 DEFAULT_wxUSE_RADIOBOX=no
2187 DEFAULT_wxUSE_RADIOBTN=no
2188 DEFAULT_wxUSE_SASH=no
2189 DEFAULT_wxUSE_SCROLLBAR=no
2190 DEFAULT_wxUSE_SLIDER=no
2191 DEFAULT_wxUSE_SPINBTN=no
2192 DEFAULT_wxUSE_SPINCTRL=no
2193 DEFAULT_wxUSE_SPLITTER=no
2194 DEFAULT_wxUSE_STATBMP=no
2195 DEFAULT_wxUSE_STATBOX=no
2196 DEFAULT_wxUSE_STATLINE=no
2197 DEFAULT_wxUSE_STATTEXT=no
2198 DEFAULT_wxUSE_STATUSBAR=yes
2199 DEFAULT_wxUSE_TABDIALOG=no
2200 DEFAULT_wxUSE_TEXTCTRL=no
2201 DEFAULT_wxUSE_TOGGLEBTN=no
2202 DEFAULT_wxUSE_TOOLBAR=no
2203 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2204 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2205 DEFAULT_wxUSE_TREECTRL=no
2206 DEFAULT_wxUSE_POPUPWIN=no
2207 DEFAULT_wxUSE_TIPWINDOW=no
2208
2209 DEFAULT_wxUSE_UNICODE=no
2210 DEFAULT_wxUSE_UNICODE_MSLU=no
2211 DEFAULT_wxUSE_WCSRTOMBS=no
2212
2213 DEFAULT_wxUSE_PALETTE=no
2214 DEFAULT_wxUSE_IMAGE=no
2215 DEFAULT_wxUSE_GIF=no
2216 DEFAULT_wxUSE_PCX=no
2217 DEFAULT_wxUSE_PNM=no
2218 DEFAULT_wxUSE_IFF=no
2219 DEFAULT_wxUSE_XPM=no
2220 DEFAULT_wxUSE_ICO_CUR=no
2221 DEFAULT_wxUSE_ACCESSIBILITY=no
2222
2223 DEFAULT_wxUSE_MONOLITHIC=no
2224 DEFAULT_wxUSE_PLUGINS=no
2225 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2226else
2227 DEFAULT_wxUSE_UNIVERSAL=no
2228 DEFAULT_wxUSE_STL=no
2229
2230 DEFAULT_wxUSE_NANOX=no
2231
2232 DEFAULT_wxUSE_THREADS=yes
2233
2234 DEFAULT_wxUSE_SHARED=yes
2235 DEFAULT_wxUSE_OPTIMISE=yes
2236 DEFAULT_wxUSE_PROFILE=no
2237 DEFAULT_wxUSE_NO_DEPS=no
2238 DEFAULT_wxUSE_NO_RTTI=no
2239 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2240 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2241 DEFAULT_wxUSE_PERMISSIVE=no
2242 DEFAULT_wxUSE_DEBUG_FLAG=no
2243 DEFAULT_wxUSE_DEBUG_INFO=no
2244 DEFAULT_wxUSE_DEBUG_GDB=no
2245 DEFAULT_wxUSE_MEM_TRACING=no
2246 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2247 DEFAULT_wxUSE_DMALLOC=no
2248 DEFAULT_wxUSE_APPLE_IEEE=yes
2249
2250 DEFAULT_wxUSE_EXCEPTIONS=yes
2251 DEFAULT_wxUSE_LOG=yes
2252 DEFAULT_wxUSE_LOGWINDOW=yes
2253 DEFAULT_wxUSE_LOGGUI=yes
2254 DEFAULT_wxUSE_LOGDIALOG=yes
2255
2256 DEFAULT_wxUSE_GUI=yes
2257
2258 DEFAULT_wxUSE_REGEX=yes
2259 DEFAULT_wxUSE_XML=yes
2260 DEFAULT_wxUSE_EXPAT=yes
2261 DEFAULT_wxUSE_ZLIB=yes
2262 DEFAULT_wxUSE_LIBPNG=yes
2263 DEFAULT_wxUSE_LIBJPEG=yes
2264 DEFAULT_wxUSE_LIBTIFF=yes
2265 DEFAULT_wxUSE_LIBXPM=yes
2266 DEFAULT_wxUSE_LIBMSPACK=yes
2267 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2268 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2269 DEFAULT_wxUSE_ODBC=no
52cb607e 2270 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2271
2272 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2273 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2274 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2275 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2276 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2277 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2278 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2279 DEFAULT_wxUSE_DATETIME=yes
2280 DEFAULT_wxUSE_TIMER=yes
2281 DEFAULT_wxUSE_STOPWATCH=yes
2282 DEFAULT_wxUSE_FILE=yes
2283 DEFAULT_wxUSE_FFILE=yes
07158944 2284 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2285 DEFAULT_wxUSE_TEXTBUFFER=yes
2286 DEFAULT_wxUSE_TEXTFILE=yes
2287 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2288 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2289 DEFAULT_wxUSE_INTL=yes
2290 DEFAULT_wxUSE_CONFIG=yes
2291 DEFAULT_wxUSE_FONTMAP=yes
2292 DEFAULT_wxUSE_STREAMS=yes
2293 DEFAULT_wxUSE_SOCKETS=yes
2294 DEFAULT_wxUSE_OLE=yes
2295 DEFAULT_wxUSE_DATAOBJ=yes
2296 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2297 DEFAULT_wxUSE_JOYSTICK=yes
2298 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2299 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2300 DEFAULT_wxUSE_LONGLONG=yes
2301 DEFAULT_wxUSE_GEOMETRY=yes
2302
2303 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2304 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2305 DEFAULT_wxUSE_POSTSCRIPT=yes
2306
2307 DEFAULT_wxUSE_CLIPBOARD=yes
2308 DEFAULT_wxUSE_TOOLTIPS=yes
2309 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2310 DEFAULT_wxUSE_DRAGIMAGE=yes
2311 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2312 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2313
8a7b1113 2314 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2315 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2316 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2318
2319 DEFAULT_wxUSE_RESOURCES=no
2320 DEFAULT_wxUSE_CONSTRAINTS=yes
2321 DEFAULT_wxUSE_IPC=yes
2322 DEFAULT_wxUSE_HELP=yes
2323 DEFAULT_wxUSE_MS_HTML_HELP=yes
2324 DEFAULT_wxUSE_WXHTML_HELP=yes
2325 DEFAULT_wxUSE_TREELAYOUT=yes
2326 DEFAULT_wxUSE_METAFILE=yes
2327 DEFAULT_wxUSE_MIMETYPE=yes
2328 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2329 DEFAULT_wxUSE_PROTOCOL=yes
2330 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2331 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2333 DEFAULT_wxUSE_URL=yes
2334
2335 DEFAULT_wxUSE_COMMONDLGS=yes
2336 DEFAULT_wxUSE_CHOICEDLG=yes
2337 DEFAULT_wxUSE_COLOURDLG=yes
2338 DEFAULT_wxUSE_DIRDLG=yes
2339 DEFAULT_wxUSE_FILEDLG=yes
2340 DEFAULT_wxUSE_FINDREPLDLG=yes
2341 DEFAULT_wxUSE_FONTDLG=yes
2342 DEFAULT_wxUSE_MSGDLG=yes
2343 DEFAULT_wxUSE_NUMBERDLG=yes
2344 DEFAULT_wxUSE_TEXTDLG=yes
2345 DEFAULT_wxUSE_SPLASH=yes
2346 DEFAULT_wxUSE_STARTUP_TIPS=yes
2347 DEFAULT_wxUSE_PROGRESSDLG=yes
2348 DEFAULT_wxUSE_WIZARDDLG=yes
2349
2350 DEFAULT_wxUSE_MENUS=yes
2351 DEFAULT_wxUSE_MINIFRAME=yes
2352 DEFAULT_wxUSE_HTML=yes
9a8f0513 2353 DEFAULT_wxUSE_XRC=yes
646b6ec1 2354 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_FILESYSTEM=yes
2356 DEFAULT_wxUSE_FS_INET=yes
2357 DEFAULT_wxUSE_FS_ZIP=yes
2358 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2359 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2360 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2361 DEFAULT_wxUSE_VALIDATORS=yes
2362
2363 DEFAULT_wxUSE_ACCEL=yes
2364 DEFAULT_wxUSE_BUTTON=yes
2365 DEFAULT_wxUSE_BMPBUTTON=yes
2366 DEFAULT_wxUSE_CALCTRL=yes
2367 DEFAULT_wxUSE_CARET=yes
2368 DEFAULT_wxUSE_CHECKBOX=yes
2369 DEFAULT_wxUSE_CHECKLST=yes
2370 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2371 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2372 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2373 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2374 DEFAULT_wxUSE_DISPLAY=yes
2375 DEFAULT_wxUSE_GAUGE=yes
2376 DEFAULT_wxUSE_GRID=yes
2377 DEFAULT_wxUSE_IMAGLIST=yes
2378 DEFAULT_wxUSE_LISTBOOK=yes
2379 DEFAULT_wxUSE_LISTBOX=yes
2380 DEFAULT_wxUSE_LISTCTRL=yes
2381 DEFAULT_wxUSE_NOTEBOOK=yes
2382 DEFAULT_wxUSE_RADIOBOX=yes
2383 DEFAULT_wxUSE_RADIOBTN=yes
2384 DEFAULT_wxUSE_SASH=yes
2385 DEFAULT_wxUSE_SCROLLBAR=yes
2386 DEFAULT_wxUSE_SLIDER=yes
2387 DEFAULT_wxUSE_SPINBTN=yes
2388 DEFAULT_wxUSE_SPINCTRL=yes
2389 DEFAULT_wxUSE_SPLITTER=yes
2390 DEFAULT_wxUSE_STATBMP=yes
2391 DEFAULT_wxUSE_STATBOX=yes
2392 DEFAULT_wxUSE_STATLINE=yes
2393 DEFAULT_wxUSE_STATTEXT=yes
2394 DEFAULT_wxUSE_STATUSBAR=yes
2395 DEFAULT_wxUSE_TABDIALOG=no
2396 DEFAULT_wxUSE_TEXTCTRL=yes
2397 DEFAULT_wxUSE_TOGGLEBTN=yes
2398 DEFAULT_wxUSE_TOOLBAR=yes
2399 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2400 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2401 DEFAULT_wxUSE_TREECTRL=yes
2402 DEFAULT_wxUSE_POPUPWIN=yes
2403 DEFAULT_wxUSE_TIPWINDOW=yes
2404
78de529b 2405 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2406 DEFAULT_wxUSE_UNICODE_MSLU=yes
2407 DEFAULT_wxUSE_WCSRTOMBS=no
2408
2409 DEFAULT_wxUSE_PALETTE=yes
2410 DEFAULT_wxUSE_IMAGE=yes
2411 DEFAULT_wxUSE_GIF=yes
2412 DEFAULT_wxUSE_PCX=yes
2413 DEFAULT_wxUSE_IFF=no
2414 DEFAULT_wxUSE_PNM=yes
2415 DEFAULT_wxUSE_XPM=yes
2416 DEFAULT_wxUSE_ICO_CUR=yes
2417 DEFAULT_wxUSE_ACCESSIBILITY=no
2418
2419 DEFAULT_wxUSE_MONOLITHIC=no
2420 DEFAULT_wxUSE_PLUGINS=no
2421 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2422
f34ca037 2423 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2424fi
2425
2426
2427
f34ca037 2428
a848cd7e
SC
2429for toolkit in `echo $ALL_TOOLKITS`; do
2430 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2431 if test "x$LINE" != "x" ; then
2432 has_toolkit_in_cache=1
2433 eval "DEFAULT_$LINE"
2434 eval "CACHE_$toolkit=1"
f34ca037
MW
2435
2436 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2437 if test "x$LINE" != "x" ; then
2438 eval "DEFAULT_$LINE"
2439 fi
a848cd7e
SC
2440 fi
2441done
2442
2443
2444
2445 enablestring=
2446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2447echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2448 no_cache=0
2449 # Check whether --enable-gui or --disable-gui was given.
2450if test "${enable_gui+set}" = set; then
2451 enableval="$enable_gui"
2452
2453 if test "$enableval" = yes; then
2454 ac_cv_use_gui='wxUSE_GUI=yes'
2455 else
2456 ac_cv_use_gui='wxUSE_GUI=no'
2457 fi
2458
2459else
2460
2461 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2462 if test "x$LINE" != x ; then
2463 eval "DEFAULT_$LINE"
2464 else
2465 no_cache=1
2466 fi
2467
2468 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2469
2470fi;
2471
2472 eval "$ac_cv_use_gui"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_GUI" = yes; then
2478 echo "$as_me:$LINENO: result: yes" >&5
2479echo "${ECHO_T}yes" >&6
2480 else
2481 echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6
2483 fi
2484
2485
2486 enablestring=
2487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2488echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2489 no_cache=0
2490 # Check whether --enable-monolithic or --disable-monolithic was given.
2491if test "${enable_monolithic+set}" = set; then
2492 enableval="$enable_monolithic"
2493
2494 if test "$enableval" = yes; then
2495 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2496 else
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2498 fi
2499
2500else
2501
2502 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
2509 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2510
2511fi;
2512
2513 eval "$ac_cv_use_monolithic"
2514 if test "$no_cache" != 1; then
2515 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2516 fi
2517
2518 if test "$wxUSE_MONOLITHIC" = yes; then
2519 echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6
2521 else
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524 fi
2525
2526
2527 enablestring=
2528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2529echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2530 no_cache=0
2531 # Check whether --enable-plugins or --disable-plugins was given.
2532if test "${enable_plugins+set}" = set; then
2533 enableval="$enable_plugins"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2537 else
2538 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2539 fi
2540
2541else
2542
2543 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2551
2552fi;
2553
2554 eval "$ac_cv_use_plugins"
2555 if test "$no_cache" != 1; then
2556 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2557 fi
2558
2559 if test "$wxUSE_PLUGINS" = yes; then
2560 echo "$as_me:$LINENO: result: yes" >&5
2561echo "${ECHO_T}yes" >&6
2562 else
2563 echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6
2565 fi
2566
2567
2568if test "$wxUSE_GUI" = "yes"; then
2569
2570
2571 enablestring=
2572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2573echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2574 no_cache=0
2575 # Check whether --enable-universal or --disable-universal was given.
2576if test "${enable_universal+set}" = set; then
2577 enableval="$enable_universal"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2581 else
2582 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2583 fi
2584
2585else
2586
2587 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2595
2596fi;
2597
2598 eval "$ac_cv_use_universal"
2599 if test "$no_cache" != 1; then
2600 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2601 fi
2602
2603 if test "$wxUSE_UNIVERSAL" = yes; then
2604 echo "$as_me:$LINENO: result: yes" >&5
2605echo "${ECHO_T}yes" >&6
2606 else
2607 echo "$as_me:$LINENO: result: no" >&5
2608echo "${ECHO_T}no" >&6
2609 fi
2610
2611
2612# Check whether --with-gtk or --without-gtk was given.
2613if test "${with_gtk+set}" = set; then
2614 withval="$with_gtk"
2615 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618# Check whether --with-motif or --without-motif was given.
2619if test "${with_motif+set}" = set; then
2620 withval="$with_motif"
2621 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624# Check whether --with-mac or --without-mac was given.
2625if test "${with_mac+set}" = set; then
2626 withval="$with_mac"
c228d3a4 2627 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2628fi;
2629
2630# Check whether --with-cocoa or --without-cocoa was given.
2631if test "${with_cocoa+set}" = set; then
2632 withval="$with_cocoa"
c228d3a4 2633 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2634fi;
2635
2636# Check whether --with-wine or --without-wine was given.
2637if test "${with_wine+set}" = set; then
2638 withval="$with_wine"
2639 wxUSE_WINE="$withval" CACHE_WINE=1
2640fi;
2641
2642# Check whether --with-msw or --without-msw was given.
2643if test "${with_msw+set}" = set; then
2644 withval="$with_msw"
2645 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-pm or --without-pm was given.
2649if test "${with_pm+set}" = set; then
2650 withval="$with_pm"
2651 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-mgl or --without-mgl was given.
2655if test "${with_mgl+set}" = set; then
2656 withval="$with_mgl"
2657 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660# Check whether --with-microwin or --without-microwin was given.
2661if test "${with_microwin+set}" = set; then
2662 withval="$with_microwin"
2663 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2664fi;
2665
2666# Check whether --with-x11 or --without-x11 was given.
2667if test "${with_x11+set}" = set; then
2668 withval="$with_x11"
2669 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2670fi;
2671
2672 enablestring=
2673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2674echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2675 no_cache=0
2676 # Check whether --enable-nanox or --disable-nanox was given.
2677if test "${enable_nanox+set}" = set; then
2678 enableval="$enable_nanox"
2679
2680 if test "$enableval" = yes; then
2681 ac_cv_use_nanox='wxUSE_NANOX=yes'
2682 else
2683 ac_cv_use_nanox='wxUSE_NANOX=no'
2684 fi
2685
2686else
2687
2688 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2689 if test "x$LINE" != x ; then
2690 eval "DEFAULT_$LINE"
2691 else
2692 no_cache=1
2693 fi
2694
2695 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2696
2697fi;
2698
2699 eval "$ac_cv_use_nanox"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_NANOX" = yes; then
2705 echo "$as_me:$LINENO: result: yes" >&5
2706echo "${ECHO_T}yes" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710 fi
2711
2712
f34ca037
MW
2713# Check whether --enable-gtk2 or --disable-gtk2 was given.
2714if test "${enable_gtk2+set}" = set; then
2715 enableval="$enable_gtk2"
2716 wxUSE_GTK2="$enableval"
2717fi;
a848cd7e 2718
a848cd7e
SC
2719 enablestring=
2720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2721echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2722 no_cache=0
2723 # Check whether --enable-gpe or --disable-gpe was given.
2724if test "${enable_gpe+set}" = set; then
2725 enableval="$enable_gpe"
2726
2727 if test "$enableval" = yes; then
2728 ac_cv_use_gpe='wxUSE_GPE=yes'
2729 else
2730 ac_cv_use_gpe='wxUSE_GPE=no'
2731 fi
2732
2733else
2734
2735 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2743
2744fi;
2745
2746 eval "$ac_cv_use_gpe"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_GPE" = yes; then
2752 echo "$as_me:$LINENO: result: yes" >&5
2753echo "${ECHO_T}yes" >&6
2754 else
2755 echo "$as_me:$LINENO: result: no" >&5
2756echo "${ECHO_T}no" >&6
2757 fi
2758
2759
2760
2761 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2762echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2763 no_cache=0
2764
2765# Check whether --with-libpng or --without-libpng was given.
2766if test "${with_libpng+set}" = set; then
2767 withval="$with_libpng"
2768
2769 if test "$withval" = yes; then
2770 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2771 elif test "$withval" = no; then
2772 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2773 elif test "$withval" = sys; then
2774 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2775 elif test "$withval" = builtin; then
2776 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2777 else
2778 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2779echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2780 { (exit 1); exit 1; }; }
2781 fi
2782
2783else
2784
2785 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2793
2794fi;
2795
2796 eval "$ac_cv_use_libpng"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$wxUSE_LIBPNG" = yes; then
2802 echo "$as_me:$LINENO: result: yes" >&5
2803echo "${ECHO_T}yes" >&6
2804 elif test "$wxUSE_LIBPNG" = no; then
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807 elif test "$wxUSE_LIBPNG" = sys; then
2808 echo "$as_me:$LINENO: result: system version" >&5
2809echo "${ECHO_T}system version" >&6
2810 elif test "$wxUSE_LIBPNG" = builtin; then
2811 echo "$as_me:$LINENO: result: builtin version" >&5
2812echo "${ECHO_T}builtin version" >&6
2813 else
2814 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2815echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2816 { (exit 1); exit 1; }; }
2817 fi
2818
2819
2820 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2821echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2822 no_cache=0
2823
2824# Check whether --with-libjpeg or --without-libjpeg was given.
2825if test "${with_libjpeg+set}" = set; then
2826 withval="$with_libjpeg"
2827
2828 if test "$withval" = yes; then
2829 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2830 elif test "$withval" = no; then
2831 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2832 elif test "$withval" = sys; then
2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2834 elif test "$withval" = builtin; then
2835 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2836 else
2837 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2838echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2839 { (exit 1); exit 1; }; }
2840 fi
2841
2842else
2843
2844 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2845 if test "x$LINE" != x ; then
2846 eval "DEFAULT_$LINE"
2847 else
2848 no_cache=1
2849 fi
2850
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2852
2853fi;
2854
2855 eval "$ac_cv_use_libjpeg"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_LIBJPEG" = yes; then
2861 echo "$as_me:$LINENO: result: yes" >&5
2862echo "${ECHO_T}yes" >&6
2863 elif test "$wxUSE_LIBJPEG" = no; then
2864 echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
2866 elif test "$wxUSE_LIBJPEG" = sys; then
2867 echo "$as_me:$LINENO: result: system version" >&5
2868echo "${ECHO_T}system version" >&6
2869 elif test "$wxUSE_LIBJPEG" = builtin; then
2870 echo "$as_me:$LINENO: result: builtin version" >&5
2871echo "${ECHO_T}builtin version" >&6
2872 else
2873 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2874echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2875 { (exit 1); exit 1; }; }
2876 fi
2877
2878
2879 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2880echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2881 no_cache=0
2882
2883# Check whether --with-libtiff or --without-libtiff was given.
2884if test "${with_libtiff+set}" = set; then
2885 withval="$with_libtiff"
2886
2887 if test "$withval" = yes; then
2888 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2889 elif test "$withval" = no; then
2890 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2891 elif test "$withval" = sys; then
2892 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2893 elif test "$withval" = builtin; then
2894 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2895 else
2896 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2897echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2898 { (exit 1); exit 1; }; }
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2911
2912fi;
2913
2914 eval "$ac_cv_use_libtiff"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_LIBTIFF" = yes; then
2920 echo "$as_me:$LINENO: result: yes" >&5
2921echo "${ECHO_T}yes" >&6
2922 elif test "$wxUSE_LIBTIFF" = no; then
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925 elif test "$wxUSE_LIBTIFF" = sys; then
2926 echo "$as_me:$LINENO: result: system version" >&5
2927echo "${ECHO_T}system version" >&6
2928 elif test "$wxUSE_LIBTIFF" = builtin; then
2929 echo "$as_me:$LINENO: result: builtin version" >&5
2930echo "${ECHO_T}builtin version" >&6
2931 else
2932 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2933echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2934 { (exit 1); exit 1; }; }
2935 fi
2936
2937
2938 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2939echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2940 no_cache=0
2941
2942# Check whether --with-libxpm or --without-libxpm was given.
2943if test "${with_libxpm+set}" = set; then
2944 withval="$with_libxpm"
2945
2946 if test "$withval" = yes; then
2947 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2948 elif test "$withval" = no; then
2949 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2950 elif test "$withval" = sys; then
2951 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2952 elif test "$withval" = builtin; then
2953 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2954 else
2955 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2956echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2957 { (exit 1); exit 1; }; }
2958 fi
2959
2960else
2961
2962 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2963 if test "x$LINE" != x ; then
2964 eval "DEFAULT_$LINE"
2965 else
2966 no_cache=1
2967 fi
2968
2969 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2970
2971fi;
2972
2973 eval "$ac_cv_use_libxpm"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_LIBXPM" = yes; then
2979 echo "$as_me:$LINENO: result: yes" >&5
2980echo "${ECHO_T}yes" >&6
2981 elif test "$wxUSE_LIBXPM" = no; then
2982 echo "$as_me:$LINENO: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984 elif test "$wxUSE_LIBXPM" = sys; then
2985 echo "$as_me:$LINENO: result: system version" >&5
2986echo "${ECHO_T}system version" >&6
2987 elif test "$wxUSE_LIBXPM" = builtin; then
2988 echo "$as_me:$LINENO: result: builtin version" >&5
2989echo "${ECHO_T}builtin version" >&6
2990 else
2991 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2992echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2993 { (exit 1); exit 1; }; }
2994 fi
2995
2996
2997 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2998echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2999 no_cache=0
3000
3001# Check whether --with-libmspack or --without-libmspack was given.
3002if test "${with_libmspack+set}" = set; then
3003 withval="$with_libmspack"
3004
3005 if test "$withval" = yes; then
3006 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3007 else
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3021
3022fi;
3023
3024 eval "$ac_cv_use_libmspack"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_LIBMSPACK" = yes; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031echo "${ECHO_T}yes" >&6
3032 else
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035 fi
3036
3037
3038 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3039echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3040 no_cache=0
3041
3042# Check whether --with-sdl or --without-sdl was given.
3043if test "${with_sdl+set}" = set; then
3044 withval="$with_sdl"
3045
3046 if test "$withval" = yes; then
3047 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3048 else
3049 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3050 fi
3051
3052else
3053
3054 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3062
3063fi;
3064
3065 eval "$ac_cv_use_sdl"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_LIBSDL" = yes; then
3071 echo "$as_me:$LINENO: result: yes" >&5
3072echo "${ECHO_T}yes" >&6
3073 else
3074 echo "$as_me:$LINENO: result: no" >&5
3075echo "${ECHO_T}no" >&6
3076 fi
3077
3078
d1c38808
VZ
3079 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3080echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3081 no_cache=0
3082
3083# Check whether --with-gnomeprint or --without-gnomeprint was given.
3084if test "${with_gnomeprint+set}" = set; then
3085 withval="$with_gnomeprint"
3086
3087 if test "$withval" = yes; then
3088 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3089 else
3090 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3103
3104fi;
3105
3106 eval "$ac_cv_use_gnomeprint"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3114 else
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3117 fi
3118
3119
a848cd7e
SC
3120 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3121echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3122 no_cache=0
3123
3124# Check whether --with-opengl or --without-opengl was given.
3125if test "${with_opengl+set}" = set; then
3126 withval="$with_opengl"
3127
3128 if test "$withval" = yes; then
3129 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3130 else
3131 ac_cv_use_opengl='wxUSE_OPENGL=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3144
3145fi;
3146
3147 eval "$ac_cv_use_opengl"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_OPENGL" = yes; then
3153 echo "$as_me:$LINENO: result: yes" >&5
3154echo "${ECHO_T}yes" >&6
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158 fi
3159
3160
3161fi
3162
3163
3164 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3165echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3166 no_cache=0
3167
3168# Check whether --with-dmalloc or --without-dmalloc was given.
3169if test "${with_dmalloc+set}" = set; then
3170 withval="$with_dmalloc"
3171
3172 if test "$withval" = yes; then
3173 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3174 else
3175 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3176 fi
3177
3178else
3179
3180 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3188
3189fi;
3190
3191 eval "$ac_cv_use_dmalloc"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_DMALLOC" = yes; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202 fi
3203
3204
3205 echo "$as_me:$LINENO: checking for --with-regex" >&5
3206echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3207 no_cache=0
3208
3209# Check whether --with-regex or --without-regex was given.
3210if test "${with_regex+set}" = set; then
3211 withval="$with_regex"
3212
3213 if test "$withval" = yes; then
3214 ac_cv_use_regex='wxUSE_REGEX=yes'
3215 elif test "$withval" = no; then
3216 ac_cv_use_regex='wxUSE_REGEX=no'
3217 elif test "$withval" = sys; then
3218 ac_cv_use_regex='wxUSE_REGEX=sys'
3219 elif test "$withval" = builtin; then
3220 ac_cv_use_regex='wxUSE_REGEX=builtin'
3221 else
3222 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3223echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3224 { (exit 1); exit 1; }; }
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3237
3238fi;
3239
3240 eval "$ac_cv_use_regex"
3241 if test "$no_cache" != 1; then
3242 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3243 fi
3244
3245 if test "$wxUSE_REGEX" = yes; then
3246 echo "$as_me:$LINENO: result: yes" >&5
3247echo "${ECHO_T}yes" >&6
3248 elif test "$wxUSE_REGEX" = no; then
3249 echo "$as_me:$LINENO: result: no" >&5
3250echo "${ECHO_T}no" >&6
3251 elif test "$wxUSE_REGEX" = sys; then
3252 echo "$as_me:$LINENO: result: system version" >&5
3253echo "${ECHO_T}system version" >&6
3254 elif test "$wxUSE_REGEX" = builtin; then
3255 echo "$as_me:$LINENO: result: builtin version" >&5
3256echo "${ECHO_T}builtin version" >&6
3257 else
3258 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3259echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263
3264 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3265echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3266 no_cache=0
3267
3268# Check whether --with-zlib or --without-zlib was given.
3269if test "${with_zlib+set}" = set; then
3270 withval="$with_zlib"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3274 elif test "$withval" = no; then
3275 ac_cv_use_zlib='wxUSE_ZLIB=no'
3276 elif test "$withval" = sys; then
3277 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3278 elif test "$withval" = builtin; then
3279 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3280 else
3281 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3282echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3283 { (exit 1); exit 1; }; }
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3296
3297fi;
3298
3299 eval "$ac_cv_use_zlib"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_ZLIB" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307 elif test "$wxUSE_ZLIB" = no; then
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310 elif test "$wxUSE_ZLIB" = sys; then
3311 echo "$as_me:$LINENO: result: system version" >&5
3312echo "${ECHO_T}system version" >&6
3313 elif test "$wxUSE_ZLIB" = builtin; then
3314 echo "$as_me:$LINENO: result: builtin version" >&5
3315echo "${ECHO_T}builtin version" >&6
3316 else
3317 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3318echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3319 { (exit 1); exit 1; }; }
3320 fi
3321
3322
3323 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3324echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3325 no_cache=0
3326
3327# Check whether --with-odbc or --without-odbc was given.
3328if test "${with_odbc+set}" = set; then
3329 withval="$with_odbc"
3330
3331 if test "$withval" = yes; then
3332 ac_cv_use_odbc='wxUSE_ODBC=yes'
3333 elif test "$withval" = no; then
3334 ac_cv_use_odbc='wxUSE_ODBC=no'
3335 elif test "$withval" = sys; then
3336 ac_cv_use_odbc='wxUSE_ODBC=sys'
3337 elif test "$withval" = builtin; then
3338 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3339 else
3340 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3341echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344
3345else
3346
3347 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3355
3356fi;
3357
3358 eval "$ac_cv_use_odbc"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_ODBC" = yes; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365echo "${ECHO_T}yes" >&6
3366 elif test "$wxUSE_ODBC" = no; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369 elif test "$wxUSE_ODBC" = sys; then
3370 echo "$as_me:$LINENO: result: system version" >&5
3371echo "${ECHO_T}system version" >&6
3372 elif test "$wxUSE_ODBC" = builtin; then
3373 echo "$as_me:$LINENO: result: builtin version" >&5
3374echo "${ECHO_T}builtin version" >&6
3375 else
3376 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3377echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380
3381
3382 echo "$as_me:$LINENO: checking for --with-expat" >&5
3383echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3384 no_cache=0
3385
3386# Check whether --with-expat or --without-expat was given.
3387if test "${with_expat+set}" = set; then
3388 withval="$with_expat"
3389
3390 if test "$withval" = yes; then
3391 ac_cv_use_expat='wxUSE_EXPAT=yes'
3392 elif test "$withval" = no; then
3393 ac_cv_use_expat='wxUSE_EXPAT=no'
3394 elif test "$withval" = sys; then
3395 ac_cv_use_expat='wxUSE_EXPAT=sys'
3396 elif test "$withval" = builtin; then
3397 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3398 else
3399 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3400echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3401 { (exit 1); exit 1; }; }
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3414
3415fi;
3416
3417 eval "$ac_cv_use_expat"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_EXPAT" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 elif test "$wxUSE_EXPAT" = no; then
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 elif test "$wxUSE_EXPAT" = sys; then
3429 echo "$as_me:$LINENO: result: system version" >&5
3430echo "${ECHO_T}system version" >&6
3431 elif test "$wxUSE_EXPAT" = builtin; then
3432 echo "$as_me:$LINENO: result: builtin version" >&5
3433echo "${ECHO_T}builtin version" >&6
3434 else
3435 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3436echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3437 { (exit 1); exit 1; }; }
3438 fi
3439
3440
3441
3442
3443 enablestring=
3444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3445echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3446 no_cache=0
3447 # Check whether --enable-shared or --disable-shared was given.
3448if test "${enable_shared+set}" = set; then
3449 enableval="$enable_shared"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_shared='wxUSE_SHARED=yes'
3453 else
3454 ac_cv_use_shared='wxUSE_SHARED=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3467
3468fi;
3469
3470 eval "$ac_cv_use_shared"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_SHARED" = yes; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
3481 fi
3482
3483
3484 enablestring=
3485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3486echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3487 no_cache=0
3488 # Check whether --enable-optimise or --disable-optimise was given.
3489if test "${enable_optimise+set}" = set; then
3490 enableval="$enable_optimise"
3491
3492 if test "$enableval" = yes; then
3493 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3494 else
3495 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3496 fi
3497
3498else
3499
3500 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
3507 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3508
3509fi;
3510
3511 eval "$ac_cv_use_optimise"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_OPTIMISE" = yes; then
3517 echo "$as_me:$LINENO: result: yes" >&5
3518echo "${ECHO_T}yes" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
3522 fi
3523
3524
3525 enablestring=
3526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3527echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3528 no_cache=0
3529 # Check whether --enable-debug or --disable-debug was given.
3530if test "${enable_debug+set}" = set; then
3531 enableval="$enable_debug"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_debug='wxUSE_DEBUG=yes'
3535 else
3536 ac_cv_use_debug='wxUSE_DEBUG=no'
3537 fi
3538
3539else
3540
3541 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3549
3550fi;
3551
3552 eval "$ac_cv_use_debug"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DEBUG" = yes; then
3558 echo "$as_me:$LINENO: result: yes" >&5
3559echo "${ECHO_T}yes" >&6
3560 else
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563 fi
3564
3565
3566 enablestring=
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3569 no_cache=0
3570 # Check whether --enable-stl or --disable-stl was given.
3571if test "${enable_stl+set}" = set; then
3572 enableval="$enable_stl"
3573
3574 if test "$enableval" = yes; then
3575 ac_cv_use_stl='wxUSE_STL=yes'
3576 else
3577 ac_cv_use_stl='wxUSE_STL=no'
3578 fi
3579
3580else
3581
3582 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3590
3591fi;
3592
3593 eval "$ac_cv_use_stl"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_STL" = yes; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
3604 fi
3605
3606if test "$USE_OS2" = "1"; then
69120ee4 3607 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3608
3609 enablestring=
3610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3611echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3612 no_cache=0
3613 # Check whether --enable-omf or --disable-omf was given.
3614if test "${enable_omf+set}" = set; then
3615 enableval="$enable_omf"
3616
3617 if test "$enableval" = yes; then
3618 ac_cv_use_omf='wxUSE_OMF=yes'
3619 else
3620 ac_cv_use_omf='wxUSE_OMF=no'
3621 fi
3622
3623else
3624
3625 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3626 if test "x$LINE" != x ; then
3627 eval "DEFAULT_$LINE"
3628 else
3629 no_cache=1
3630 fi
3631
3632 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3633
3634fi;
3635
3636 eval "$ac_cv_use_omf"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_OMF" = yes; then
3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646echo "${ECHO_T}no" >&6
3647 fi
3648
3649fi
3650
3651if test "$wxUSE_DEBUG" = "yes"; then
3652 DEFAULT_wxUSE_DEBUG_FLAG=yes
3653 DEFAULT_wxUSE_DEBUG_INFO=yes
3654 BUILD=debug
3655elif test "$wxUSE_DEBUG" = "no"; then
3656 DEFAULT_wxUSE_DEBUG_FLAG=no
3657 DEFAULT_wxUSE_DEBUG_INFO=no
3658 BUILD=release
3659fi
3660
3661
3662 enablestring=
3663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3664echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3665 no_cache=0
3666 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3667if test "${enable_debug_flag+set}" = set; then
3668 enableval="$enable_debug_flag"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3672 else
3673 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3674 fi
3675
3676else
3677
3678 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3686
3687fi;
3688
3689 eval "$ac_cv_use_debug_flag"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_DEBUG_FLAG" = yes; then
3695 echo "$as_me:$LINENO: result: yes" >&5
3696echo "${ECHO_T}yes" >&6
3697 else
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700 fi
3701
3702
3703 enablestring=
3704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3705echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3706 no_cache=0
3707 # Check whether --enable-debug_info or --disable-debug_info was given.
3708if test "${enable_debug_info+set}" = set; then
3709 enableval="$enable_debug_info"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3713 else
3714 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3727
3728fi;
3729
3730 eval "$ac_cv_use_debug_info"
3731 if test "$no_cache" != 1; then
3732 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3733 fi
3734
3735 if test "$wxUSE_DEBUG_INFO" = yes; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737echo "${ECHO_T}yes" >&6
3738 else
3739 echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741 fi
3742
3743
3744 enablestring=
3745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3746echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3747 no_cache=0
3748 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3749if test "${enable_debug_gdb+set}" = set; then
3750 enableval="$enable_debug_gdb"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3754 else
3755 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3768
3769fi;
3770
3771 eval "$ac_cv_use_debug_gdb"
3772 if test "$no_cache" != 1; then
3773 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3774 fi
3775
3776 if test "$wxUSE_DEBUG_GDB" = yes; then
3777 echo "$as_me:$LINENO: result: yes" >&5
3778echo "${ECHO_T}yes" >&6
3779 else
3780 echo "$as_me:$LINENO: result: no" >&5
3781echo "${ECHO_T}no" >&6
3782 fi
3783
3784
3785 enablestring=
3786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3787echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3788 no_cache=0
3789 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3790if test "${enable_debug_cntxt+set}" = set; then
3791 enableval="$enable_debug_cntxt"
3792
3793 if test "$enableval" = yes; then
3794 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3795 else
3796 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3797 fi
3798
3799else
3800
3801 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3802 if test "x$LINE" != x ; then
3803 eval "DEFAULT_$LINE"
3804 else
3805 no_cache=1
3806 fi
3807
3808 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3809
3810fi;
3811
3812 eval "$ac_cv_use_debug_cntxt"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3818 echo "$as_me:$LINENO: result: yes" >&5
3819echo "${ECHO_T}yes" >&6
3820 else
3821 echo "$as_me:$LINENO: result: no" >&5
3822echo "${ECHO_T}no" >&6
3823 fi
3824
3825
3826 enablestring=
3827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3828echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3829 no_cache=0
3830 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3831if test "${enable_mem_tracing+set}" = set; then
3832 enableval="$enable_mem_tracing"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3836 else
3837 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3838 fi
3839
3840else
3841
3842 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3850
3851fi;
3852
3853 eval "$ac_cv_use_mem_tracing"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_MEM_TRACING" = yes; then
3859 echo "$as_me:$LINENO: result: yes" >&5
3860echo "${ECHO_T}yes" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863echo "${ECHO_T}no" >&6
3864 fi
3865
3866
3867 enablestring=
3868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3869echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3870 no_cache=0
3871 # Check whether --enable-profile or --disable-profile was given.
3872if test "${enable_profile+set}" = set; then
3873 enableval="$enable_profile"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_profile='wxUSE_PROFILE=yes'
3877 else
3878 ac_cv_use_profile='wxUSE_PROFILE=no'
3879 fi
3880
3881else
3882
3883 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3891
3892fi;
3893
3894 eval "$ac_cv_use_profile"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_PROFILE" = yes; then
3900 echo "$as_me:$LINENO: result: yes" >&5
3901echo "${ECHO_T}yes" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no" >&5
3904echo "${ECHO_T}no" >&6
3905 fi
3906
3907
3908 enablestring=
3909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3910echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3911 no_cache=0
3912 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3913if test "${enable_no_rtti+set}" = set; then
3914 enableval="$enable_no_rtti"
3915
3916 if test "$enableval" = yes; then
3917 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3918 else
3919 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3920 fi
3921
3922else
3923
3924 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3932
3933fi;
3934
3935 eval "$ac_cv_use_no_rtti"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_NO_RTTI" = yes; then
3941 echo "$as_me:$LINENO: result: yes" >&5
3942echo "${ECHO_T}yes" >&6
3943 else
3944 echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946 fi
3947
3948
3949 enablestring=
3950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3951echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3952 no_cache=0
3953 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3954if test "${enable_no_exceptions+set}" = set; then
3955 enableval="$enable_no_exceptions"
3956
3957 if test "$enableval" = yes; then
3958 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3959 else
3960 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3961 fi
3962
3963else
3964
3965 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3966 if test "x$LINE" != x ; then
3967 eval "DEFAULT_$LINE"
3968 else
3969 no_cache=1
3970 fi
3971
3972 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3973
3974fi;
3975
3976 eval "$ac_cv_use_no_exceptions"
3977 if test "$no_cache" != 1; then
3978 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3979 fi
3980
3981 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3982 echo "$as_me:$LINENO: result: yes" >&5
3983echo "${ECHO_T}yes" >&6
3984 else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987 fi
3988
3989
3990 enablestring=
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3993 no_cache=0
3994 # Check whether --enable-permissive or --disable-permissive was given.
3995if test "${enable_permissive+set}" = set; then
3996 enableval="$enable_permissive"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4000 else
4001 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4002 fi
4003
4004else
4005
4006 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4014
4015fi;
4016
4017 eval "$ac_cv_use_permissive"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_PERMISSIVE" = yes; then
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
4025 else
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028 fi
4029
4030
4031 enablestring=
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4034 no_cache=0
4035 # Check whether --enable-no_deps or --disable-no_deps was given.
4036if test "${enable_no_deps+set}" = set; then
4037 enableval="$enable_no_deps"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4041 else
4042 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4055
4056fi;
4057
4058 eval "$ac_cv_use_no_deps"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_NO_DEPS" = yes; then
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
4066 else
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
4069 fi
4070
4071
4072
4073 enablestring=
4074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4075echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4076 no_cache=0
4077 # Check whether --enable-compat22 or --disable-compat22 was given.
4078if test "${enable_compat22+set}" = set; then
4079 enableval="$enable_compat22"
4080
4081 if test "$enableval" = yes; then
4082 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4083 else
4084 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4085 fi
4086
4087else
4088
4089 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
4096 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4097
4098fi;
4099
4100 eval "$ac_cv_use_compat22"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111 fi
4112
4113
4114 enablestring=disable
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-compat24 or --disable-compat24 was given.
4119if test "${enable_compat24+set}" = set; then
4120 enableval="$enable_compat24"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4124 else
4125 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4126 fi
4127
4128else
4129
4130 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4138
4139fi;
4140
4141 eval "$ac_cv_use_compat24"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152 fi
4153
4154
ffa0583f
RL
4155
4156 enablestring=
4157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4158echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4159 no_cache=0
4160 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4161if test "${enable_rpath+set}" = set; then
4162 enableval="$enable_rpath"
ffa0583f
RL
4163
4164 if test "$enableval" = yes; then
4165 ac_cv_use_rpath='wxUSE_RPATH=yes'
4166 else
4167 ac_cv_use_rpath='wxUSE_RPATH=no'
4168 fi
4169
4170else
4171
4172 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4173 if test "x$LINE" != x ; then
4174 eval "DEFAULT_$LINE"
4175 else
4176 no_cache=1
4177 fi
4178
4179 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4180
a848cd7e
SC
4181fi;
4182
ffa0583f
RL
4183 eval "$ac_cv_use_rpath"
4184 if test "$no_cache" != 1; then
4185 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4186 fi
4187
4188 if test "$wxUSE_RPATH" = yes; then
4189 echo "$as_me:$LINENO: result: yes" >&5
4190echo "${ECHO_T}yes" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194 fi
4195
a848cd7e
SC
4196
4197
4198
4199
4200 enablestring=
4201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4202echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4203 no_cache=0
4204 # Check whether --enable-intl or --disable-intl was given.
4205if test "${enable_intl+set}" = set; then
4206 enableval="$enable_intl"
4207
4208 if test "$enableval" = yes; then
4209 ac_cv_use_intl='wxUSE_INTL=yes'
4210 else
4211 ac_cv_use_intl='wxUSE_INTL=no'
4212 fi
4213
4214else
4215
4216 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4217 if test "x$LINE" != x ; then
4218 eval "DEFAULT_$LINE"
4219 else
4220 no_cache=1
4221 fi
4222
4223 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4224
4225fi;
4226
4227 eval "$ac_cv_use_intl"
4228 if test "$no_cache" != 1; then
4229 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4230 fi
4231
4232 if test "$wxUSE_INTL" = yes; then
4233 echo "$as_me:$LINENO: result: yes" >&5
4234echo "${ECHO_T}yes" >&6
4235 else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238 fi
4239
4240
4241 enablestring=
4242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4243echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4244 no_cache=0
4245 # Check whether --enable-config or --disable-config was given.
4246if test "${enable_config+set}" = set; then
4247 enableval="$enable_config"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_config='wxUSE_CONFIG=yes'
4251 else
4252 ac_cv_use_config='wxUSE_CONFIG=no'
4253 fi
4254
4255else
4256
4257 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4265
4266fi;
4267
4268 eval "$ac_cv_use_config"
4269 if test "$no_cache" != 1; then
4270 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4271 fi
4272
4273 if test "$wxUSE_CONFIG" = yes; then
4274 echo "$as_me:$LINENO: result: yes" >&5
4275echo "${ECHO_T}yes" >&6
4276 else
4277 echo "$as_me:$LINENO: result: no" >&5
4278echo "${ECHO_T}no" >&6
4279 fi
4280
4281
4282
4283 enablestring=
4284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4285echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4286 no_cache=0
4287 # Check whether --enable-protocols or --disable-protocols was given.
4288if test "${enable_protocols+set}" = set; then
4289 enableval="$enable_protocols"
4290
4291 if test "$enableval" = yes; then
4292 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4293 else
4294 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4295 fi
4296
4297else
4298
4299 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4300 if test "x$LINE" != x ; then
4301 eval "DEFAULT_$LINE"
4302 else
4303 no_cache=1
4304 fi
4305
4306 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4307
4308fi;
4309
4310 eval "$ac_cv_use_protocols"
4311 if test "$no_cache" != 1; then
4312 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4313 fi
4314
4315 if test "$wxUSE_PROTOCOL" = yes; then
4316 echo "$as_me:$LINENO: result: yes" >&5
4317echo "${ECHO_T}yes" >&6
4318 else
4319 echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6
4321 fi
4322
4323
4324 enablestring=
4325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4326echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4327 no_cache=0
4328 # Check whether --enable-ftp or --disable-ftp was given.
4329if test "${enable_ftp+set}" = set; then
4330 enableval="$enable_ftp"
4331
4332 if test "$enableval" = yes; then
4333 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4334 else
4335 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4336 fi
4337
4338else
4339
4340 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4341 if test "x$LINE" != x ; then
4342 eval "DEFAULT_$LINE"
4343 else
4344 no_cache=1
4345 fi
4346
4347 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4348
4349fi;
4350
4351 eval "$ac_cv_use_ftp"
4352 if test "$no_cache" != 1; then
4353 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4354 fi
4355
4356 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4357 echo "$as_me:$LINENO: result: yes" >&5
4358echo "${ECHO_T}yes" >&6
4359 else
4360 echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
4362 fi
4363
4364
4365 enablestring=
4366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4367echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4368 no_cache=0
4369 # Check whether --enable-http or --disable-http was given.
4370if test "${enable_http+set}" = set; then
4371 enableval="$enable_http"
4372
4373 if test "$enableval" = yes; then
4374 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4375 else
4376 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4377 fi
4378
4379else
4380
4381 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
4384 else
4385 no_cache=1
4386 fi
4387
4388 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4389
4390fi;
4391
4392 eval "$ac_cv_use_http"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4398 echo "$as_me:$LINENO: result: yes" >&5
4399echo "${ECHO_T}yes" >&6
4400 else
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
4403 fi
4404
4405
4406 enablestring=
4407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4408echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4409 no_cache=0
4410 # Check whether --enable-fileproto or --disable-fileproto was given.
4411if test "${enable_fileproto+set}" = set; then
4412 enableval="$enable_fileproto"
4413
4414 if test "$enableval" = yes; then
4415 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4416 else
4417 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4418 fi
4419
4420else
4421
4422 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
4425 else
4426 no_cache=1
4427 fi
4428
4429 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4430
4431fi;
4432
4433 eval "$ac_cv_use_fileproto"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4439 echo "$as_me:$LINENO: result: yes" >&5
4440echo "${ECHO_T}yes" >&6
4441 else
4442 echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444 fi
4445
4446
4447 enablestring=
4448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4449echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4450 no_cache=0
4451 # Check whether --enable-sockets or --disable-sockets was given.
4452if test "${enable_sockets+set}" = set; then
4453 enableval="$enable_sockets"
4454
4455 if test "$enableval" = yes; then
4456 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4457 else
4458 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4459 fi
4460
4461else
4462
4463 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4471
4472fi;
4473
4474 eval "$ac_cv_use_sockets"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_SOCKETS" = yes; then
4480 echo "$as_me:$LINENO: result: yes" >&5
4481echo "${ECHO_T}yes" >&6
4482 else
4483 echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6
4485 fi
4486
4487
4488 enablestring=
4489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4490echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4491 no_cache=0
4492 # Check whether --enable-ole or --disable-ole was given.
4493if test "${enable_ole+set}" = set; then
4494 enableval="$enable_ole"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_ole='wxUSE_OLE=yes'
4498 else
4499 ac_cv_use_ole='wxUSE_OLE=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4512
4513fi;
4514
4515 eval "$ac_cv_use_ole"
4516 if test "$no_cache" != 1; then
4517 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4518 fi
4519
4520 if test "$wxUSE_OLE" = yes; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523 else
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526 fi
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-dataobj or --disable-dataobj was given.
4534if test "${enable_dataobj+set}" = set; then
4535 enableval="$enable_dataobj"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4539 else
4540 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4553
4554fi;
4555
4556 eval "$ac_cv_use_dataobj"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_DATAOBJ" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570
4571 enablestring=
4572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4573echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4574 no_cache=0
4575 # Check whether --enable-ipc or --disable-ipc was given.
4576if test "${enable_ipc+set}" = set; then
4577 enableval="$enable_ipc"
4578
4579 if test "$enableval" = yes; then
4580 ac_cv_use_ipc='wxUSE_IPC=yes'
4581 else
4582 ac_cv_use_ipc='wxUSE_IPC=no'
4583 fi
4584
4585else
4586
4587 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4588 if test "x$LINE" != x ; then
4589 eval "DEFAULT_$LINE"
4590 else
4591 no_cache=1
4592 fi
4593
4594 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4595
4596fi;
4597
4598 eval "$ac_cv_use_ipc"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_IPC" = yes; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
4606 else
4607 echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609 fi
4610
4611
4612
4613 enablestring=
4614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4615echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4616 no_cache=0
4617 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4618if test "${enable_apple_ieee+set}" = set; then
4619 enableval="$enable_apple_ieee"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4623 else
4624 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4625 fi
4626
4627else
4628
4629 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4637
4638fi;
4639
4640 eval "$ac_cv_use_apple_ieee"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_APPLE_IEEE" = yes; then
4646 echo "$as_me:$LINENO: result: yes" >&5
4647echo "${ECHO_T}yes" >&6
4648 else
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651 fi
4652
4653
81f90336
MW
4654 enablestring=
4655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4656echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4657 no_cache=0
4658 # Check whether --enable-arcstream or --disable-arcstream was given.
4659if test "${enable_arcstream+set}" = set; then
4660 enableval="$enable_arcstream"
4661
4662 if test "$enableval" = yes; then
9e8e867f 4663 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4664 else
9e8e867f 4665 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4666 fi
4667
4668else
4669
9e8e867f 4670 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
9e8e867f 4677 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4678
4679fi;
4680
4681 eval "$ac_cv_use_arcstream"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4684 fi
4685
9e8e867f 4686 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4687 echo "$as_me:$LINENO: result: yes" >&5
4688echo "${ECHO_T}yes" >&6
4689 else
4690 echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6
4692 fi
4693
4694
a848cd7e 4695 enablestring=
36b6448c
VZ
4696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4697echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4698 no_cache=0
36b6448c
VZ
4699 # Check whether --enable-backtrace or --disable-backtrace was given.
4700if test "${enable_backtrace+set}" = set; then
4701 enableval="$enable_backtrace"
a848cd7e
SC
4702
4703 if test "$enableval" = yes; then
36b6448c 4704 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4705 else
36b6448c 4706 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4707 fi
4708
4709else
4710
36b6448c 4711 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
36b6448c 4718 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4719
4720fi;
4721
36b6448c 4722 eval "$ac_cv_use_backtrace"
a848cd7e 4723 if test "$no_cache" != 1; then
36b6448c 4724 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4725 fi
4726
36b6448c 4727 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4728 echo "$as_me:$LINENO: result: yes" >&5
4729echo "${ECHO_T}yes" >&6
4730 else
4731 echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6
4733 fi
4734
4735
eaff0f0d 4736 enablestring=
36b6448c
VZ
4737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4738echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4739 no_cache=0
36b6448c
VZ
4740 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4741if test "${enable_catch_segvs+set}" = set; then
4742 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4743
4744 if test "$enableval" = yes; then
36b6448c 4745 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4746 else
36b6448c 4747 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4748 fi
4749
4750else
4751
36b6448c 4752 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4753 if test "x$LINE" != x ; then
4754 eval "DEFAULT_$LINE"
4755 else
4756 no_cache=1
4757 fi
4758
36b6448c 4759 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4760
4761fi;
4762
36b6448c 4763 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4764 if test "$no_cache" != 1; then
36b6448c 4765 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4766 fi
4767
36b6448c 4768 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4769 echo "$as_me:$LINENO: result: yes" >&5
4770echo "${ECHO_T}yes" >&6
4771 else
4772 echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6
4774 fi
4775
4776
a848cd7e
SC
4777 enablestring=
4778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4779echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4780 no_cache=0
4781 # Check whether --enable-cmdline or --disable-cmdline was given.
4782if test "${enable_cmdline+set}" = set; then
4783 enableval="$enable_cmdline"
4784
4785 if test "$enableval" = yes; then
4786 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4787 else
4788 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4789 fi
4790
4791else
4792
4793 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4794 if test "x$LINE" != x ; then
4795 eval "DEFAULT_$LINE"
4796 else
4797 no_cache=1
4798 fi
4799
4800 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4801
4802fi;
4803
4804 eval "$ac_cv_use_cmdline"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4810 echo "$as_me:$LINENO: result: yes" >&5
4811echo "${ECHO_T}yes" >&6
4812 else
4813 echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815 fi
4816
4817
4818 enablestring=
4819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4820echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4821 no_cache=0
4822 # Check whether --enable-datetime or --disable-datetime was given.
4823if test "${enable_datetime+set}" = set; then
4824 enableval="$enable_datetime"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4828 else
4829 ac_cv_use_datetime='wxUSE_DATETIME=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4842
4843fi;
4844
4845 eval "$ac_cv_use_datetime"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_DATETIME" = yes; then
4851 echo "$as_me:$LINENO: result: yes" >&5
4852echo "${ECHO_T}yes" >&6
4853 else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856 fi
4857
4858
36b6448c
VZ
4859 enablestring=
4860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4861echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4862 no_cache=0
4863 # Check whether --enable-debugreport or --disable-debugreport was given.
4864if test "${enable_debugreport+set}" = set; then
4865 enableval="$enable_debugreport"
4866
4867 if test "$enableval" = yes; then
4868 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4869 else
4870 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4871 fi
4872
4873else
4874
4875 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4883
4884fi;
4885
4886 eval "$ac_cv_use_debugreport"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_DEBUGREPORT" = yes; then
4892 echo "$as_me:$LINENO: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4894 else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897 fi
4898
4899
a848cd7e
SC
4900 enablestring=
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4903 no_cache=0
4904 # Check whether --enable-dialupman or --disable-dialupman was given.
4905if test "${enable_dialupman+set}" = set; then
4906 enableval="$enable_dialupman"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4910 else
4911 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4924
4925fi;
4926
4927 eval "$ac_cv_use_dialupman"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938 fi
4939
4940
4941 enablestring=
4942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4943echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4944 no_cache=0
4945 # Check whether --enable-dynlib or --disable-dynlib was given.
4946if test "${enable_dynlib+set}" = set; then
4947 enableval="$enable_dynlib"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4951 else
4952 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4953 fi
4954
4955else
4956
4957 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4965
4966fi;
4967
4968 eval "$ac_cv_use_dynlib"
4969 if test "$no_cache" != 1; then
4970 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4971 fi
4972
4973 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4974 echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6
4976 else
4977 echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982 enablestring=
4983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4984echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4985 no_cache=0
4986 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4987if test "${enable_dynamicloader+set}" = set; then
4988 enableval="$enable_dynamicloader"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4992 else
4993 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4994 fi
4995
4996else
4997
4998 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5006
5007fi;
5008
5009 eval "$ac_cv_use_dynamicloader"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5015 echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019echo "${ECHO_T}no" >&6
5020 fi
5021
5022
5023 enablestring=
5024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5025echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5026 no_cache=0
5027 # Check whether --enable-exceptions or --disable-exceptions was given.
5028if test "${enable_exceptions+set}" = set; then
5029 enableval="$enable_exceptions"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5033 else
5034 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5047
5048fi;
5049
5050 eval "$ac_cv_use_exceptions"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_EXCEPTIONS" = yes; then
5056 echo "$as_me:$LINENO: result: yes" >&5
5057echo "${ECHO_T}yes" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061 fi
5062
5063
5064 enablestring=
5065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5066echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5067 no_cache=0
5068 # Check whether --enable-ffile or --disable-ffile was given.
5069if test "${enable_ffile+set}" = set; then
5070 enableval="$enable_ffile"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_ffile='wxUSE_FFILE=yes'
5074 else
5075 ac_cv_use_ffile='wxUSE_FFILE=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5088
5089fi;
5090
5091 eval "$ac_cv_use_ffile"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_FFILE" = yes; then
5097 echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
5099 else
5100 echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102 fi
5103
5104
5105 enablestring=
5106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5107echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5108 no_cache=0
5109 # Check whether --enable-file or --disable-file was given.
5110if test "${enable_file+set}" = set; then
5111 enableval="$enable_file"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_file='wxUSE_FILE=yes'
5115 else
5116 ac_cv_use_file='wxUSE_FILE=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5129
5130fi;
5131
5132 eval "$ac_cv_use_file"
5133 if test "$no_cache" != 1; then
5134 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5135 fi
5136
5137 if test "$wxUSE_FILE" = yes; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139echo "${ECHO_T}yes" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143 fi
5144
5145
5146 enablestring=
5147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5148echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5149 no_cache=0
5150 # Check whether --enable-filesystem or --disable-filesystem was given.
5151if test "${enable_filesystem+set}" = set; then
5152 enableval="$enable_filesystem"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5156 else
5157 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5170
5171fi;
5172
5173 eval "$ac_cv_use_filesystem"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_FILESYSTEM" = yes; then
5179 echo "$as_me:$LINENO: result: yes" >&5
5180echo "${ECHO_T}yes" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184 fi
5185
5186
5187 enablestring=
5188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5189echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5190 no_cache=0
5191 # Check whether --enable-fontmap or --disable-fontmap was given.
5192if test "${enable_fontmap+set}" = set; then
5193 enableval="$enable_fontmap"
5194
5195 if test "$enableval" = yes; then
5196 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5197 else
5198 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5199 fi
5200
5201else
5202
5203 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
5210 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5211
5212fi;
5213
5214 eval "$ac_cv_use_fontmap"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_FONTMAP" = yes; then
5220 echo "$as_me:$LINENO: result: yes" >&5
5221echo "${ECHO_T}yes" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225 fi
5226
5227
5228 enablestring=
5229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5230echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5231 no_cache=0
5232 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5233if test "${enable_fs_inet+set}" = set; then
5234 enableval="$enable_fs_inet"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5238 else
5239 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5252
5253fi;
5254
5255 eval "$ac_cv_use_fs_inet"
5256 if test "$no_cache" != 1; then
5257 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5258 fi
5259
5260 if test "$wxUSE_FS_INET" = yes; then
5261 echo "$as_me:$LINENO: result: yes" >&5
5262echo "${ECHO_T}yes" >&6
5263 else
5264 echo "$as_me:$LINENO: result: no" >&5
5265echo "${ECHO_T}no" >&6
5266 fi
5267
5268
5269 enablestring=
5270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5271echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5272 no_cache=0
5273 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5274if test "${enable_fs_zip+set}" = set; then
5275 enableval="$enable_fs_zip"
5276
5277 if test "$enableval" = yes; then
5278 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5279 else
5280 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5281 fi
5282
5283else
5284
5285 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5286 if test "x$LINE" != x ; then
5287 eval "DEFAULT_$LINE"
5288 else
5289 no_cache=1
5290 fi
5291
5292 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5293
5294fi;
5295
5296 eval "$ac_cv_use_fs_zip"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_FS_ZIP" = yes; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303echo "${ECHO_T}yes" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307 fi
5308
5309
5310 enablestring=
5311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5312echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5313 no_cache=0
5314 # Check whether --enable-geometry or --disable-geometry was given.
5315if test "${enable_geometry+set}" = set; then
5316 enableval="$enable_geometry"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5320 else
5321 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5334
5335fi;
5336
5337 eval "$ac_cv_use_geometry"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_GEOMETRY" = yes; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344echo "${ECHO_T}yes" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348 fi
5349
5350
5351 enablestring=
5352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5353echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5354 no_cache=0
5355 # Check whether --enable-log or --disable-log was given.
5356if test "${enable_log+set}" = set; then
5357 enableval="$enable_log"
5358
5359 if test "$enableval" = yes; then
5360 ac_cv_use_log='wxUSE_LOG=yes'
5361 else
5362 ac_cv_use_log='wxUSE_LOG=no'
5363 fi
5364
5365else
5366
5367 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5368 if test "x$LINE" != x ; then
5369 eval "DEFAULT_$LINE"
5370 else
5371 no_cache=1
5372 fi
5373
5374 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5375
5376fi;
5377
5378 eval "$ac_cv_use_log"
5379 if test "$no_cache" != 1; then
5380 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5381 fi
5382
5383 if test "$wxUSE_LOG" = yes; then
5384 echo "$as_me:$LINENO: result: yes" >&5
5385echo "${ECHO_T}yes" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389 fi
5390
5391
5392 enablestring=
5393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5394echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5395 no_cache=0
5396 # Check whether --enable-longlong or --disable-longlong was given.
5397if test "${enable_longlong+set}" = set; then
5398 enableval="$enable_longlong"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5402 else
5403 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5404 fi
5405
5406else
5407
5408 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5416
5417fi;
5418
5419 eval "$ac_cv_use_longlong"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_LONGLONG" = yes; then
5425 echo "$as_me:$LINENO: result: yes" >&5
5426echo "${ECHO_T}yes" >&6
5427 else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430 fi
5431
5432
5433 enablestring=
5434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5435echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5436 no_cache=0
5437 # Check whether --enable-mimetype or --disable-mimetype was given.
5438if test "${enable_mimetype+set}" = set; then
5439 enableval="$enable_mimetype"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5443 else
5444 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5445 fi
5446
5447else
5448
5449 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5457
5458fi;
5459
5460 eval "$ac_cv_use_mimetype"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_MIMETYPE" = yes; then
5466 echo "$as_me:$LINENO: result: yes" >&5
5467echo "${ECHO_T}yes" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470echo "${ECHO_T}no" >&6
5471 fi
5472
5473
5474 enablestring=
5475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5476echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5477 no_cache=0
5478 # Check whether --enable-mslu or --disable-mslu was given.
5479if test "${enable_mslu+set}" = set; then
5480 enableval="$enable_mslu"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5484 else
5485 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5486 fi
5487
5488else
5489
5490 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5498
5499fi;
5500
5501 eval "$ac_cv_use_mslu"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_UNICODE_MSLU" = yes; then
5507 echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512 fi
5513
5514
5515 enablestring=
5516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5517echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5518 no_cache=0
5519 # Check whether --enable-snglinst or --disable-snglinst was given.
5520if test "${enable_snglinst+set}" = set; then
5521 enableval="$enable_snglinst"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5525 else
5526 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5539
5540fi;
5541
5542 eval "$ac_cv_use_snglinst"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5548 echo "$as_me:$LINENO: result: yes" >&5
5549echo "${ECHO_T}yes" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6
5553 fi
5554
5555
5556 enablestring=
07158944
VZ
5557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5558echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5559 no_cache=0
07158944
VZ
5560 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5561if test "${enable_std_iostreams+set}" = set; then
5562 enableval="$enable_std_iostreams"
a848cd7e
SC
5563
5564 if test "$enableval" = yes; then
07158944 5565 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5566 else
07158944 5567 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5568 fi
5569
5570else
5571
07158944 5572 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
07158944 5579 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5580
5581fi;
5582
07158944 5583 eval "$ac_cv_use_std_iostreams"
a848cd7e 5584 if test "$no_cache" != 1; then
07158944 5585 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5586 fi
5587
07158944 5588 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5589 echo "$as_me:$LINENO: result: yes" >&5
5590echo "${ECHO_T}yes" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594 fi
5595
5596
59746b65
MW
5597 enablestring=
5598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5599echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5600 no_cache=0
5601 # Check whether --enable-std_string or --disable-std_string was given.
5602if test "${enable_std_string+set}" = set; then
5603 enableval="$enable_std_string"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5607 else
5608 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5609 fi
5610
5611else
5612
5613 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5621
5622fi;
5623
5624 eval "$ac_cv_use_std_string"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_STD_STRING" = yes; then
5630 echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635 fi
5636
5637
a848cd7e 5638 enablestring=
07158944
VZ
5639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5640echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5641 no_cache=0
07158944
VZ
5642 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5643if test "${enable_stdpaths+set}" = set; then
5644 enableval="$enable_stdpaths"
a848cd7e
SC
5645
5646 if test "$enableval" = yes; then
07158944 5647 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5648 else
07158944 5649 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5650 fi
5651
5652else
5653
07158944 5654 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
07158944 5661 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5662
5663fi;
5664
07158944 5665 eval "$ac_cv_use_stdpaths"
a848cd7e 5666 if test "$no_cache" != 1; then
07158944 5667 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5668 fi
5669
07158944 5670 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5671 echo "$as_me:$LINENO: result: yes" >&5
5672echo "${ECHO_T}yes" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 enablestring=
5680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5681echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5682 no_cache=0
5683 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5684if test "${enable_stopwatch+set}" = set; then
5685 enableval="$enable_stopwatch"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5689 else
5690 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5703
5704fi;
5705
5706 eval "$ac_cv_use_stopwatch"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_STOPWATCH" = yes; then
5712 echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717 fi
5718
5719
07158944
VZ
5720 enablestring=
5721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5722echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5723 no_cache=0
5724 # Check whether --enable-streams or --disable-streams was given.
5725if test "${enable_streams+set}" = set; then
5726 enableval="$enable_streams"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_streams='wxUSE_STREAMS=yes'
5730 else
5731 ac_cv_use_streams='wxUSE_STREAMS=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5744
5745fi;
5746
5747 eval "$ac_cv_use_streams"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_STREAMS" = yes; then
5753 echo "$as_me:$LINENO: result: yes" >&5
5754echo "${ECHO_T}yes" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758 fi
5759
5760
a848cd7e
SC
5761 enablestring=
5762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5763echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5764 no_cache=0
5765 # Check whether --enable-system_options or --disable-system_options was given.
5766if test "${enable_system_options+set}" = set; then
5767 enableval="$enable_system_options"
5768
5769 if test "$enableval" = yes; then
5770 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5771 else
5772 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5773 fi
5774
5775else
5776
5777 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5778 if test "x$LINE" != x ; then
5779 eval "DEFAULT_$LINE"
5780 else
5781 no_cache=1
5782 fi
5783
5784 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5785
5786fi;
5787
5788 eval "$ac_cv_use_system_options"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5794 echo "$as_me:$LINENO: result: yes" >&5
5795echo "${ECHO_T}yes" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799 fi
5800
5801
5802 enablestring=
5803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5804echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5805 no_cache=0
5806 # Check whether --enable-textbuf or --disable-textbuf was given.
5807if test "${enable_textbuf+set}" = set; then
5808 enableval="$enable_textbuf"
5809
5810 if test "$enableval" = yes; then
5811 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5812 else
5813 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5814 fi
5815
5816else
5817
5818 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5819 if test "x$LINE" != x ; then
5820 eval "DEFAULT_$LINE"
5821 else
5822 no_cache=1
5823 fi
5824
5825 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5826
5827fi;
5828
5829 eval "$ac_cv_use_textbuf"
5830 if test "$no_cache" != 1; then
5831 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5832 fi
5833
5834 if test "$wxUSE_TEXTBUFFER" = yes; then
5835 echo "$as_me:$LINENO: result: yes" >&5
5836echo "${ECHO_T}yes" >&6
5837 else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840 fi
5841
5842
5843 enablestring=
5844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5845echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5846 no_cache=0
5847 # Check whether --enable-textfile or --disable-textfile was given.
5848if test "${enable_textfile+set}" = set; then
5849 enableval="$enable_textfile"
5850
5851 if test "$enableval" = yes; then
5852 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5853 else
5854 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5855 fi
5856
5857else
5858
5859 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5867
5868fi;
5869
5870 eval "$ac_cv_use_textfile"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_TEXTFILE" = yes; then
5876 echo "$as_me:$LINENO: result: yes" >&5
5877echo "${ECHO_T}yes" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881 fi
5882
5883
5884 enablestring=
5885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5886echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5887 no_cache=0
5888 # Check whether --enable-timer or --disable-timer was given.
5889if test "${enable_timer+set}" = set; then
5890 enableval="$enable_timer"
5891
5892 if test "$enableval" = yes; then
5893 ac_cv_use_timer='wxUSE_TIMER=yes'
5894 else
5895 ac_cv_use_timer='wxUSE_TIMER=no'
5896 fi
5897
5898else
5899
5900 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5908
5909fi;
5910
5911 eval "$ac_cv_use_timer"
5912 if test "$no_cache" != 1; then
5913 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5914 fi
5915
5916 if test "$wxUSE_TIMER" = yes; then
5917 echo "$as_me:$LINENO: result: yes" >&5
5918echo "${ECHO_T}yes" >&6
5919 else
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
5922 fi
5923
5924
5925 enablestring=
5926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5927echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5928 no_cache=0
5929 # Check whether --enable-unicode or --disable-unicode was given.
5930if test "${enable_unicode+set}" = set; then
5931 enableval="$enable_unicode"
5932
5933 if test "$enableval" = yes; then
5934 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5935 else
5936 ac_cv_use_unicode='wxUSE_UNICODE=no'
5937 fi
5938
5939else
5940
5941 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5942 if test "x$LINE" != x ; then
5943 eval "DEFAULT_$LINE"
5944 else
5945 no_cache=1
5946 fi
5947
5948 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5949
5950fi;
5951
5952 eval "$ac_cv_use_unicode"
5953 if test "$no_cache" != 1; then
5954 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5955 fi
5956
5957 if test "$wxUSE_UNICODE" = yes; then
5958 echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6
5960 else
5961 echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
5963 fi
5964
5965
5966 enablestring=
5967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5968echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5969 no_cache=0
5970 # Check whether --enable-sound or --disable-sound was given.
5971if test "${enable_sound+set}" = set; then
5972 enableval="$enable_sound"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_sound='wxUSE_SOUND=yes'
5976 else
5977 ac_cv_use_sound='wxUSE_SOUND=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5990
5991fi;
5992
5993 eval "$ac_cv_use_sound"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_SOUND" = yes; then
5999 echo "$as_me:$LINENO: result: yes" >&5
6000echo "${ECHO_T}yes" >&6
6001 else
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
6004 fi
6005
6006
3b57de8b
RL
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6012if test "${enable_mediactrl+set}" = set; then
6013 enableval="$enable_mediactrl"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6017 else
6018 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6031
6032fi;
6033
6034 eval "$ac_cv_use_mediactrl"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_MEDIACTRL" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
a848cd7e
SC
6048 enablestring=
6049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6050echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6051 no_cache=0
6052 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6053if test "${enable_wxprintfv+set}" = set; then
6054 enableval="$enable_wxprintfv"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6058 else
6059 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6060 fi
6061
6062else
6063
6064 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6072
6073fi;
6074
6075 eval "$ac_cv_use_wxprintfv"
6076 if test "$no_cache" != 1; then
6077 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6078 fi
6079
6080 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6081 echo "$as_me:$LINENO: result: yes" >&5
6082echo "${ECHO_T}yes" >&6
6083 else
6084 echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086 fi
6087
6088
6089 enablestring=
6090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6091echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6092 no_cache=0
6093 # Check whether --enable-zipstream or --disable-zipstream was given.
6094if test "${enable_zipstream+set}" = set; then
6095 enableval="$enable_zipstream"
6096
6097 if test "$enableval" = yes; then
6098 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6099 else
6100 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6101 fi
6102
6103else
6104
6105 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6113
6114fi;
6115
6116 eval "$ac_cv_use_zipstream"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_ZIPSTREAM" = yes; then
6122 echo "$as_me:$LINENO: result: yes" >&5
6123echo "${ECHO_T}yes" >&6
6124 else
6125 echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
6127 fi
6128
6129
a848cd7e
SC
6130
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-url or --disable-url was given.
6136if test "${enable_url+set}" = set; then
6137 enableval="$enable_url"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_url='wxUSE_URL=yes'
6141 else
6142 ac_cv_use_url='wxUSE_URL=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6148 if test "x$LINE" != x ; then
6149 eval "DEFAULT_$LINE"
6150 else
6151 no_cache=1
6152 fi
6153
6154 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6155
6156fi;
6157
6158 eval "$ac_cv_use_url"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_URL" = yes; then
6164 echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169 fi
6170
6171
6172 enablestring=
6173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-protocol or --disable-protocol was given.
6177if test "${enable_protocol+set}" = set; then
6178 enableval="$enable_protocol"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6182 else
6183 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6196
6197fi;
6198
6199 eval "$ac_cv_use_protocol"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_PROTOCOL" = yes; then
6205 echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6
6207 else
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210 fi
6211
6212
6213 enablestring=
6214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6218if test "${enable_protocol_http+set}" = set; then
6219 enableval="$enable_protocol_http"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6223 else
6224 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6237
6238fi;
6239
6240 eval "$ac_cv_use_protocol_http"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6246 echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248 else
6249 echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251 fi
6252
6253
6254 enablestring=
6255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6259if test "${enable_protocol_ftp+set}" = set; then
6260 enableval="$enable_protocol_ftp"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6264 else
6265 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6278
6279fi;
6280
6281 eval "$ac_cv_use_protocol_ftp"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6287 echo "$as_me:$LINENO: result: yes" >&5
6288echo "${ECHO_T}yes" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292 fi
6293
6294
6295 enablestring=
6296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6300if test "${enable_protocol_file+set}" = set; then
6301 enableval="$enable_protocol_file"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6305 else
6306 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6319
6320fi;
6321
6322 eval "$ac_cv_use_protocol_file"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6328 echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330 else
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333 fi
6334
6335
6336
6337
6338
6339 enablestring=
6340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6341echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6342 no_cache=0
6343 # Check whether --enable-threads or --disable-threads was given.
6344if test "${enable_threads+set}" = set; then
6345 enableval="$enable_threads"
6346
6347 if test "$enableval" = yes; then
6348 ac_cv_use_threads='wxUSE_THREADS=yes'
6349 else
6350 ac_cv_use_threads='wxUSE_THREADS=no'
6351 fi
6352
6353else
6354
6355 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6363
6364fi;
6365
6366 eval "$ac_cv_use_threads"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6369 fi
6370
6371 if test "$wxUSE_THREADS" = yes; then
6372 echo "$as_me:$LINENO: result: yes" >&5
6373echo "${ECHO_T}yes" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377 fi
6378
6379
6380if test "$wxUSE_GUI" = "yes"; then
6381
6382
6383
6384 enablestring=
6385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6386echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6387 no_cache=0
6388 # Check whether --enable-docview or --disable-docview was given.
6389if test "${enable_docview+set}" = set; then
6390 enableval="$enable_docview"
6391
6392 if test "$enableval" = yes; then
6393 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6394 else
6395 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6396 fi
6397
6398else
6399
6400 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6408
6409fi;
6410
6411 eval "$ac_cv_use_docview"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6417 echo "$as_me:$LINENO: result: yes" >&5
6418echo "${ECHO_T}yes" >&6
6419 else
6420 echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
6422 fi
6423
6424
6425 enablestring=
6426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6427echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6428 no_cache=0
6429 # Check whether --enable-help or --disable-help was given.
6430if test "${enable_help+set}" = set; then
6431 enableval="$enable_help"
6432
6433 if test "$enableval" = yes; then
6434 ac_cv_use_help='wxUSE_HELP=yes'
6435 else
6436 ac_cv_use_help='wxUSE_HELP=no'
6437 fi
6438
6439else
6440
6441 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6449
6450fi;
6451
6452 eval "$ac_cv_use_help"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_HELP" = yes; then
6458 echo "$as_me:$LINENO: result: yes" >&5
6459echo "${ECHO_T}yes" >&6
6460 else
6461 echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463 fi
6464
6465
6466 enablestring=
6467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6468echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6469 no_cache=0
6470 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6471if test "${enable_mshtmlhelp+set}" = set; then
6472 enableval="$enable_mshtmlhelp"
6473
6474 if test "$enableval" = yes; then
6475 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6476 else
6477 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6478 fi
6479
6480else
6481
6482 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6483 if test "x$LINE" != x ; then
6484 eval "DEFAULT_$LINE"
6485 else
6486 no_cache=1
6487 fi
6488
6489 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6490
6491fi;
6492
6493 eval "$ac_cv_use_mshtmlhelp"
6494 if test "$no_cache" != 1; then
6495 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6496 fi
6497
6498 if test "$wxUSE_MS_HTML_HELP" = yes; then
6499 echo "$as_me:$LINENO: result: yes" >&5
6500echo "${ECHO_T}yes" >&6
6501 else
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504 fi
6505
6506
6507 enablestring=
6508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6509echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6510 no_cache=0
6511 # Check whether --enable-html or --disable-html was given.
6512if test "${enable_html+set}" = set; then
6513 enableval="$enable_html"
6514
6515 if test "$enableval" = yes; then
6516 ac_cv_use_html='wxUSE_HTML=yes'
6517 else
6518 ac_cv_use_html='wxUSE_HTML=no'
6519 fi
6520
6521else
6522
6523 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6524 if test "x$LINE" != x ; then
6525 eval "DEFAULT_$LINE"
6526 else
6527 no_cache=1
6528 fi
6529
6530 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6531
6532fi;
6533
6534 eval "$ac_cv_use_html"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_HTML" = yes; then
6540 echo "$as_me:$LINENO: result: yes" >&5
6541echo "${ECHO_T}yes" >&6
6542 else
6543 echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545 fi
6546
6547
6548 enablestring=
6549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6550echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6551 no_cache=0
6552 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6553if test "${enable_htmlhelp+set}" = set; then
6554 enableval="$enable_htmlhelp"
6555
6556 if test "$enableval" = yes; then
6557 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6558 else
6559 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6560 fi
6561
6562else
6563
6564 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6572
6573fi;
6574
6575 eval "$ac_cv_use_htmlhelp"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_WXHTML_HELP" = yes; then
6581 echo "$as_me:$LINENO: result: yes" >&5
6582echo "${ECHO_T}yes" >&6
6583 else
6584 echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586 fi
6587
6588
9a8f0513
VS
6589 enablestring=
6590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6591echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6592 no_cache=0
6593 # Check whether --enable-xrc or --disable-xrc was given.
6594if test "${enable_xrc+set}" = set; then
6595 enableval="$enable_xrc"
6596
6597 if test "$enableval" = yes; then
6598 ac_cv_use_xrc='wxUSE_XRC=yes'
6599 else
6600 ac_cv_use_xrc='wxUSE_XRC=no'
6601 fi
6602
6603else
6604
6605 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6606 if test "x$LINE" != x ; then
6607 eval "DEFAULT_$LINE"
6608 else
6609 no_cache=1
6610 fi
6611
6612 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6613
6614fi;
6615
6616 eval "$ac_cv_use_xrc"
6617 if test "$no_cache" != 1; then
6618 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6619 fi
6620
6621 if test "$wxUSE_XRC" = yes; then
6622 echo "$as_me:$LINENO: result: yes" >&5
6623echo "${ECHO_T}yes" >&6
6624 else
6625 echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6
6627 fi
6628
6629
a848cd7e
SC
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-constraints or --disable-constraints was given.
6635if test "${enable_constraints+set}" = set; then
6636 enableval="$enable_constraints"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6640 else
6641 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6654
6655fi;
6656
6657 eval "$ac_cv_use_constraints"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_CONSTRAINTS" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-printarch or --disable-printarch was given.
6676if test "${enable_printarch+set}" = set; then
6677 enableval="$enable_printarch"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6681 else
6682 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6695
6696fi;
6697
6698 eval "$ac_cv_use_printarch"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712 enablestring=
6713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6714echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6715 no_cache=0
6716 # Check whether --enable-mdi or --disable-mdi was given.
6717if test "${enable_mdi+set}" = set; then
6718 enableval="$enable_mdi"
6719
6720 if test "$enableval" = yes; then
8a7b1113 6721 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6722 else
8a7b1113 6723 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6724 fi
6725
6726else
6727
8a7b1113 6728 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
8a7b1113 6735 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6736
6737fi;
6738
6739 eval "$ac_cv_use_mdi"
6740 if test "$no_cache" != 1; then
6741 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6742 fi
6743
8a7b1113
VZ
6744 if test "$wxUSE_MDI" = yes; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746echo "${ECHO_T}yes" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750 fi
6751
6752
6753 enablestring=
6754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6755echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6756 no_cache=0
6757 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6758if test "${enable_mdidoc+set}" = set; then
6759 enableval="$enable_mdidoc"
6760
6761 if test "$enableval" = yes; then
6762 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6763 else
6764 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6765 fi
6766
6767else
6768
6769 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6770 if test "x$LINE" != x ; then
6771 eval "DEFAULT_$LINE"
6772 else
6773 no_cache=1
6774 fi
6775
6776 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6777
6778fi;
6779
6780 eval "$ac_cv_use_mdidoc"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6783 fi
6784
a848cd7e
SC
6785 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6786 echo "$as_me:$LINENO: result: yes" >&5
6787echo "${ECHO_T}yes" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
6791 fi
6792
6793
6794 enablestring=
6795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6796echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6797 no_cache=0
6798 # Check whether --enable-loggui or --disable-loggui was given.
6799if test "${enable_loggui+set}" = set; then
6800 enableval="$enable_loggui"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6804 else
6805 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6806 fi
6807
6808else
6809
6810 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6818
6819fi;
6820
6821 eval "$ac_cv_use_loggui"
6822 if test "$no_cache" != 1; then
6823 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6824 fi
6825
6826 if test "$wxUSE_LOGGUI" = yes; then
6827 echo "$as_me:$LINENO: result: yes" >&5
6828echo "${ECHO_T}yes" >&6
6829 else
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
6832 fi
6833
6834
6835 enablestring=
6836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6837echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6838 no_cache=0
6839 # Check whether --enable-logwin or --disable-logwin was given.
6840if test "${enable_logwin+set}" = set; then
6841 enableval="$enable_logwin"
6842
6843 if test "$enableval" = yes; then
6844 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6845 else
6846 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6847 fi
6848
6849else
6850
6851 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6852 if test "x$LINE" != x ; then
6853 eval "DEFAULT_$LINE"
6854 else
6855 no_cache=1
6856 fi
6857
6858 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6859
6860fi;
6861
6862 eval "$ac_cv_use_logwin"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_LOGWINDOW" = yes; then
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
6873 fi
6874
6875
6876 enablestring=
6877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6878echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6879 no_cache=0
6880 # Check whether --enable-logdialog or --disable-logdialog was given.
6881if test "${enable_logdialog+set}" = set; then
6882 enableval="$enable_logdialog"
6883
6884 if test "$enableval" = yes; then
6885 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6886 else
6887 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6888 fi
6889
6890else
6891
6892 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6893 if test "x$LINE" != x ; then
6894 eval "DEFAULT_$LINE"
6895 else
6896 no_cache=1
6897 fi
6898
6899 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6900
6901fi;
6902
6903 eval "$ac_cv_use_logdialog"
6904 if test "$no_cache" != 1; then
6905 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6906 fi
6907
6908 if test "$wxUSE_LOGDIALOG" = yes; then
6909 echo "$as_me:$LINENO: result: yes" >&5
6910echo "${ECHO_T}yes" >&6
6911 else
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914 fi
6915
6916
646b6ec1
VS
6917 enablestring=
6918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6919echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6920 no_cache=0
6921 # Check whether --enable-webkit or --disable-webkit was given.
6922if test "${enable_webkit+set}" = set; then
6923 enableval="$enable_webkit"
6924
6925 if test "$enableval" = yes; then
6926 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6927 else
6928 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6929 fi
6930
6931else
6932
6933 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6941
6942fi;
6943
6944 eval "$ac_cv_use_webkit"
6945 if test "$no_cache" != 1; then
6946 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6947 fi
6948
6949 if test "$wxUSE_WEBKIT" = yes; then
6950 echo "$as_me:$LINENO: result: yes" >&5
6951echo "${ECHO_T}yes" >&6
6952 else
6953 echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6
6955 fi
6956
6957
a848cd7e
SC
6958
6959 enablestring=
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6961echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6962 no_cache=0
6963 # Check whether --enable-postscript or --disable-postscript was given.
6964if test "${enable_postscript+set}" = set; then
6965 enableval="$enable_postscript"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6969 else
6970 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6983
6984fi;
6985
6986 eval "$ac_cv_use_postscript"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_POSTSCRIPT" = yes; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
6997 fi
6998
6999
7000
7001
7002
7003 enablestring=
7004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7005echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7006 no_cache=0
7007 # Check whether --enable-prologio or --disable-prologio was given.
7008if test "${enable_prologio+set}" = set; then
7009 enableval="$enable_prologio"
7010
7011 if test "$enableval" = yes; then
7012 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7013 else
7014 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7015 fi
7016
7017else
7018
7019 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7027
7028fi;
7029
7030 eval "$ac_cv_use_prologio"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_PROLOGIO" = yes; then
7036 echo "$as_me:$LINENO: result: yes" >&5
7037echo "${ECHO_T}yes" >&6
7038 else
7039 echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6
7041 fi
7042
7043
7044 enablestring=
7045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7046echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7047 no_cache=0
7048 # Check whether --enable-resources or --disable-resources was given.
7049if test "${enable_resources+set}" = set; then
7050 enableval="$enable_resources"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7054 else
7055 ac_cv_use_resources='wxUSE_RESOURCES=no'
7056 fi
7057
7058else
7059
7060 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7068
7069fi;
7070
7071 eval "$ac_cv_use_resources"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_RESOURCES" = yes; then
7077 echo "$as_me:$LINENO: result: yes" >&5
7078echo "${ECHO_T}yes" >&6
7079 else
7080 echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
7082 fi
7083
7084
7085
7086
7087 enablestring=
7088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7089echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7090 no_cache=0
7091 # Check whether --enable-clipboard or --disable-clipboard was given.
7092if test "${enable_clipboard+set}" = set; then
7093 enableval="$enable_clipboard"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7097 else
7098 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7099 fi
7100
7101else
7102
7103 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7104 if test "x$LINE" != x ; then
7105 eval "DEFAULT_$LINE"
7106 else
7107 no_cache=1
7108 fi
7109
7110 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7111
7112fi;
7113
7114 eval "$ac_cv_use_clipboard"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_CLIPBOARD" = yes; then
7120 echo "$as_me:$LINENO: result: yes" >&5
7121echo "${ECHO_T}yes" >&6
7122 else
7123 echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6
7125 fi
7126
7127
7128 enablestring=
7129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7130echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7131 no_cache=0
7132 # Check whether --enable-dnd or --disable-dnd was given.
7133if test "${enable_dnd+set}" = set; then
7134 enableval="$enable_dnd"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7138 else
7139 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7152
7153fi;
7154
7155 eval "$ac_cv_use_dnd"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7161 echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
7163 else
7164 echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166 fi
7167
7168
7169 enablestring=
7170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7171echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7172 no_cache=0
7173 # Check whether --enable-metafile or --disable-metafile was given.
7174if test "${enable_metafile+set}" = set; then
7175 enableval="$enable_metafile"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7179 else
7180 ac_cv_use_metafile='wxUSE_METAFILE=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7193
7194fi;
7195
7196 eval "$ac_cv_use_metafile"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_METAFILE" = yes; then
7202 echo "$as_me:$LINENO: result: yes" >&5
7203echo "${ECHO_T}yes" >&6
7204 else
7205 echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6
7207 fi
7208
7209
7210
7211
7212
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-controls or --disable-controls was given.
7218if test "${enable_controls+set}" = set; then
7219 enableval="$enable_controls"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7223 else
7224 ac_cv_use_controls='wxUSE_CONTROLS=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7237
7238fi;
7239
7240 eval "$ac_cv_use_controls"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_CONTROLS" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
7251 fi
7252
7253
7254if test "$wxUSE_CONTROLS" = "yes"; then
7255 DEFAULT_wxUSE_ACCEL=yes
7256 DEFAULT_wxUSE_BMPBUTTON=yes
7257 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7258 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7259 DEFAULT_wxUSE_CARET=yes
7260 DEFAULT_wxUSE_COMBOBOX=yes
7261 DEFAULT_wxUSE_CHECKBOX=yes
7262 DEFAULT_wxUSE_CHECKLISTBOX=yes
7263 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7264 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7265 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7266 DEFAULT_wxUSE_GAUGE=yes
7267 DEFAULT_wxUSE_GRID=yes
7268 DEFAULT_wxUSE_IMAGLIST=yes
7269 DEFAULT_wxUSE_LISTBOOK=yes
7270 DEFAULT_wxUSE_LISTBOX=yes
7271 DEFAULT_wxUSE_LISTCTRL=yes
7272 DEFAULT_wxUSE_NOTEBOOK=yes
7273 DEFAULT_wxUSE_RADIOBOX=yes
7274 DEFAULT_wxUSE_RADIOBTN=yes
7275 DEFAULT_wxUSE_SASH=yes
7276 DEFAULT_wxUSE_SCROLLBAR=yes
7277 DEFAULT_wxUSE_SLIDER=yes
7278 DEFAULT_wxUSE_SPINBTN=yes
7279 DEFAULT_wxUSE_SPINCTRL=yes
7280 DEFAULT_wxUSE_SPLITTER=yes
7281 DEFAULT_wxUSE_STATBMP=yes
7282 DEFAULT_wxUSE_STATBOX=yes
7283 DEFAULT_wxUSE_STATLINE=yes
7284 DEFAULT_wxUSE_STATUSBAR=yes
7285 DEFAULT_wxUSE_TAB_DIALOG=yes
7286 DEFAULT_wxUSE_TOGGLEBTN=yes
7287 DEFAULT_wxUSE_TOOLBAR=yes
7288 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7289 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7290 DEFAULT_wxUSE_TOOLTIPS=yes
7291 DEFAULT_wxUSE_TREECTRL=yes
7292 DEFAULT_wxUSE_POPUPWIN=yes
7293 DEFAULT_wxUSE_TIPWINDOW=yes
7294elif test "$wxUSE_CONTROLS" = "no"; then
7295 DEFAULT_wxUSE_ACCEL=no
7296 DEFAULT_wxUSE_BMPBUTTON=no
7297 DEFAULT_wxUSE_BUTTON=no
7298 DEFAULT_wxUSE_CALCTRL=no
7299 DEFAULT_wxUSE_CARET=no
7300 DEFAULT_wxUSE_COMBOBOX=no
7301 DEFAULT_wxUSE_CHECKBOX=no
7302 DEFAULT_wxUSE_CHECKLISTBOX=no
7303 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7304 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7305 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7306 DEFAULT_wxUSE_GAUGE=no
7307 DEFAULT_wxUSE_GRID=no
7308 DEFAULT_wxUSE_IMAGLIST=no
7309 DEFAULT_wxUSE_LISTBOOK=no
7310 DEFAULT_wxUSE_LISTBOX=no
7311 DEFAULT_wxUSE_LISTCTRL=no
7312 DEFAULT_wxUSE_NOTEBOOK=no
7313 DEFAULT_wxUSE_RADIOBOX=no
7314 DEFAULT_wxUSE_RADIOBTN=no
7315 DEFAULT_wxUSE_SASH=no
7316 DEFAULT_wxUSE_SCROLLBAR=no
7317 DEFAULT_wxUSE_SLIDER=no
7318 DEFAULT_wxUSE_SPINBTN=no
7319 DEFAULT_wxUSE_SPINCTRL=no
7320 DEFAULT_wxUSE_SPLITTER=no
7321 DEFAULT_wxUSE_STATBMP=no
7322 DEFAULT_wxUSE_STATBOX=no
7323 DEFAULT_wxUSE_STATLINE=no
7324 DEFAULT_wxUSE_STATUSBAR=no
7325 DEFAULT_wxUSE_TAB_DIALOG=no
7326 DEFAULT_wxUSE_TOGGLEBTN=no
7327 DEFAULT_wxUSE_TOOLBAR=no
7328 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7329 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7330 DEFAULT_wxUSE_TOOLTIPS=no
7331 DEFAULT_wxUSE_TREECTRL=no
7332 DEFAULT_wxUSE_POPUPWIN=no
7333 DEFAULT_wxUSE_TIPWINDOW=no
7334fi
7335
a848cd7e
SC
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7339echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-accel or --disable-accel was given.
7342if test "${enable_accel+set}" = set; then
7343 enableval="$enable_accel"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_accel='wxUSE_ACCEL=yes'
7347 else
7348 ac_cv_use_accel='wxUSE_ACCEL=no'
7349 fi
7350
7351else
7352
7353 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7361
7362fi;
7363
7364 eval "$ac_cv_use_accel"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_ACCEL" = yes; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371echo "${ECHO_T}yes" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378 enablestring=
7379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7380echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7381 no_cache=0
7382 # Check whether --enable-button or --disable-button was given.
7383if test "${enable_button+set}" = set; then
7384 enableval="$enable_button"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_button='wxUSE_BUTTON=yes'
7388 else
7389 ac_cv_use_button='wxUSE_BUTTON=no'
7390 fi
7391
7392else
7393
7394 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7402
7403fi;
7404
7405 eval "$ac_cv_use_button"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_BUTTON" = yes; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412echo "${ECHO_T}yes" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416 fi
7417
7418
7419 enablestring=
7420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7421echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7422 no_cache=0
7423 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7424if test "${enable_bmpbutton+set}" = set; then
7425 enableval="$enable_bmpbutton"
7426
7427 if test "$enableval" = yes; then
7428 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7429 else
7430 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7431 fi
7432
7433else
7434
7435 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7443
7444fi;
7445
7446 eval "$ac_cv_use_bmpbutton"
7447 if test "$no_cache" != 1; then
7448 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7449 fi
7450
7451 if test "$wxUSE_BMPBUTTON" = yes; then
7452 echo "$as_me:$LINENO: result: yes" >&5
7453echo "${ECHO_T}yes" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457 fi
7458
7459
7460 enablestring=
7461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7462echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7463 no_cache=0
7464 # Check whether --enable-calendar or --disable-calendar was given.
7465if test "${enable_calendar+set}" = set; then
7466 enableval="$enable_calendar"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7470 else
7471 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7472 fi
7473
7474else
7475
7476 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7484
7485fi;
7486
7487 eval "$ac_cv_use_calendar"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_CALCTRL" = yes; then
7493 echo "$as_me:$LINENO: result: yes" >&5
7494echo "${ECHO_T}yes" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498 fi
7499
7500
7501 enablestring=
7502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7503echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7504 no_cache=0
7505 # Check whether --enable-caret or --disable-caret was given.
7506if test "${enable_caret+set}" = set; then
7507 enableval="$enable_caret"
7508
7509 if test "$enableval" = yes; then
7510 ac_cv_use_caret='wxUSE_CARET=yes'
7511 else
7512 ac_cv_use_caret='wxUSE_CARET=no'
7513 fi
7514
7515else
7516
7517 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7525
7526fi;
7527
7528 eval "$ac_cv_use_caret"
7529 if test "$no_cache" != 1; then
7530 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7531 fi
7532
7533 if test "$wxUSE_CARET" = yes; then
7534 echo "$as_me:$LINENO: result: yes" >&5
7535echo "${ECHO_T}yes" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539 fi
7540
7541
7542 enablestring=
7543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7544echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7545 no_cache=0
7546 # Check whether --enable-checkbox or --disable-checkbox was given.
7547if test "${enable_checkbox+set}" = set; then
7548 enableval="$enable_checkbox"
7549
7550 if test "$enableval" = yes; then
7551 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7552 else
7553 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7554 fi
7555
7556else
7557
7558 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7559 if test "x$LINE" != x ; then
7560 eval "DEFAULT_$LINE"
7561 else
7562 no_cache=1
7563 fi
7564
7565 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7566
7567fi;
7568
7569 eval "$ac_cv_use_checkbox"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_CHECKBOX" = yes; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576echo "${ECHO_T}yes" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583 enablestring=
7584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7585echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7586 no_cache=0
7587 # Check whether --enable-checklst or --disable-checklst was given.
7588if test "${enable_checklst+set}" = set; then
7589 enableval="$enable_checklst"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7593 else
7594 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7607
7608fi;
7609
7610 eval "$ac_cv_use_checklst"
7611 if test "$no_cache" != 1; then
7612 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7613 fi
7614
7615 if test "$wxUSE_CHECKLST" = yes; then
7616 echo "$as_me:$LINENO: result: yes" >&5
7617echo "${ECHO_T}yes" >&6
7618 else
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
7621 fi
7622
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-choice or --disable-choice was given.
7629if test "${enable_choice+set}" = set; then
7630 enableval="$enable_choice"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_choice='wxUSE_CHOICE=yes'
7634 else
7635 ac_cv_use_choice='wxUSE_CHOICE=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7648
7649fi;
7650
7651 eval "$ac_cv_use_choice"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_CHOICE" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662 fi
7663
7664
92bbdbcd
WS
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-choicebook or --disable-choicebook was given.
7670if test "${enable_choicebook+set}" = set; then
7671 enableval="$enable_choicebook"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7675 else
7676 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7689
7690fi;
7691
7692 eval "$ac_cv_use_choicebook"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_CHOICEBOOK" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
a848cd7e
SC
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7708echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-combobox or --disable-combobox was given.
7711if test "${enable_combobox+set}" = set; then
7712 enableval="$enable_combobox"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7716 else
7717 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7730
7731fi;
7732
7733 eval "$ac_cv_use_combobox"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_COMBOBOX" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744 fi
7745
7746
da98e9be
VZ
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7749echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-datepick or --disable-datepick was given.
7752if test "${enable_datepick+set}" = set; then
7753 enableval="$enable_datepick"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7757 else
7758 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7771
7772fi;
7773
7774 eval "$ac_cv_use_datepick"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_DATEPICKCTRL" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785 fi
7786
7787
a848cd7e
SC
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-display or --disable-display was given.
7793if test "${enable_display+set}" = set; then
7794 enableval="$enable_display"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_display='wxUSE_DISPLAY=yes'
7798 else
7799 ac_cv_use_display='wxUSE_DISPLAY=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7812
7813fi;
7814
7815 eval "$ac_cv_use_display"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_DISPLAY" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-gauge or --disable-gauge was given.
7834if test "${enable_gauge+set}" = set; then
7835 enableval="$enable_gauge"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7839 else
7840 ac_cv_use_gauge='wxUSE_GAUGE=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7853
7854fi;
7855
7856 eval "$ac_cv_use_gauge"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_GAUGE" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-grid or --disable-grid was given.
7875if test "${enable_grid+set}" = set; then
7876 enableval="$enable_grid"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_grid='wxUSE_GRID=yes'
7880 else
7881 ac_cv_use_grid='wxUSE_GRID=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7894
7895fi;
7896
7897 eval "$ac_cv_use_grid"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_GRID" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-imaglist or --disable-imaglist was given.
7916if test "${enable_imaglist+set}" = set; then
7917 enableval="$enable_imaglist"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7921 else
7922 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7935
7936fi;
7937
7938 eval "$ac_cv_use_imaglist"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_IMAGLIST" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-listbook or --disable-listbook was given.
7957if test "${enable_listbook+set}" = set; then
7958 enableval="$enable_listbook"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7962 else
7963 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7976
7977fi;
7978
7979 eval "$ac_cv_use_listbook"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_LISTBOOK" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-listbox or --disable-listbox was given.
7998if test "${enable_listbox+set}" = set; then
7999 enableval="$enable_listbox"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8003 else
8004 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8017
8018fi;
8019
8020 eval "$ac_cv_use_listbox"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_LISTBOX" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-listctrl or --disable-listctrl was given.
8039if test "${enable_listctrl+set}" = set; then
8040 enableval="$enable_listctrl"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8044 else
8045 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8058
8059fi;
8060
8061 eval "$ac_cv_use_listctrl"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_LISTCTRL" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-notebook or --disable-notebook was given.
8080if test "${enable_notebook+set}" = set; then
8081 enableval="$enable_notebook"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8085 else
8086 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8099
8100fi;
8101
8102 eval "$ac_cv_use_notebook"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_NOTEBOOK" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-radiobox or --disable-radiobox was given.
8121if test "${enable_radiobox+set}" = set; then
8122 enableval="$enable_radiobox"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8126 else
8127 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8140
8141fi;
8142
8143 eval "$ac_cv_use_radiobox"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_RADIOBOX" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8162if test "${enable_radiobtn+set}" = set; then
8163 enableval="$enable_radiobtn"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8167 else
8168 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8181
8182fi;
8183
8184 eval "$ac_cv_use_radiobtn"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_RADIOBTN" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-sash or --disable-sash was given.
8203if test "${enable_sash+set}" = set; then
8204 enableval="$enable_sash"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_sash='wxUSE_SASH=yes'
8208 else
8209 ac_cv_use_sash='wxUSE_SASH=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8222
8223fi;
8224
8225 eval "$ac_cv_use_sash"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_SASH" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8244if test "${enable_scrollbar+set}" = set; then
8245 enableval="$enable_scrollbar"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8249 else
8250 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8263
8264fi;
8265
8266 eval "$ac_cv_use_scrollbar"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_SCROLLBAR" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-slider or --disable-slider was given.
8285if test "${enable_slider+set}" = set; then
8286 enableval="$enable_slider"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_slider='wxUSE_SLIDER=yes'
8290 else
8291 ac_cv_use_slider='wxUSE_SLIDER=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8304
8305fi;
8306
8307 eval "$ac_cv_use_slider"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_SLIDER" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8326if test "${enable_spinbtn+set}" = set; then
8327 enableval="$enable_spinbtn"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8331 else
8332 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8345
8346fi;
8347
8348 eval "$ac_cv_use_spinbtn"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_SPINBTN" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8367if test "${enable_spinctrl+set}" = set; then
8368 enableval="$enable_spinctrl"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8372 else
8373 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8386
8387fi;
8388
8389 eval "$ac_cv_use_spinctrl"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_SPINCTRL" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-splitter or --disable-splitter was given.
8408if test "${enable_splitter+set}" = set; then
8409 enableval="$enable_splitter"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8413 else
8414 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8427
8428fi;
8429
8430 eval "$ac_cv_use_splitter"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_SPLITTER" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-statbmp or --disable-statbmp was given.
8449if test "${enable_statbmp+set}" = set; then
8450 enableval="$enable_statbmp"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8454 else
8455 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8468
8469fi;
8470
8471 eval "$ac_cv_use_statbmp"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_STATBMP" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-statbox or --disable-statbox was given.
8490if test "${enable_statbox+set}" = set; then
8491 enableval="$enable_statbox"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8495 else
8496 ac_cv_use_statbox='wxUSE_STATBOX=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8509
8510fi;
8511
8512 eval "$ac_cv_use_statbox"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_STATBOX" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-statline or --disable-statline was given.
8531if test "${enable_statline+set}" = set; then
8532 enableval="$enable_statline"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_statline='wxUSE_STATLINE=yes'
8536 else
8537 ac_cv_use_statline='wxUSE_STATLINE=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8550
8551fi;
8552
8553 eval "$ac_cv_use_statline"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_STATLINE" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567 enablestring=
8568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8569echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8570 no_cache=0
8571 # Check whether --enable-stattext or --disable-stattext was given.
8572if test "${enable_stattext+set}" = set; then
8573 enableval="$enable_stattext"
8574
8575 if test "$enableval" = yes; then
8576 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8577 else
8578 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8579 fi
8580
8581else
8582
8583 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8584 if test "x$LINE" != x ; then
8585 eval "DEFAULT_$LINE"
8586 else
8587 no_cache=1
8588 fi
8589
8590 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8591
8592fi;
8593
8594 eval "$ac_cv_use_stattext"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_STATTEXT" = yes; then
8600 echo "$as_me:$LINENO: result: yes" >&5
8601echo "${ECHO_T}yes" >&6
8602 else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605 fi
8606
8607
8608 enablestring=
8609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8610echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8611 no_cache=0
8612 # Check whether --enable-statusbar or --disable-statusbar was given.
8613if test "${enable_statusbar+set}" = set; then
8614 enableval="$enable_statusbar"
8615
8616 if test "$enableval" = yes; then
8617 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8618 else
8619 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8620 fi
8621
8622else
8623
8624 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8625 if test "x$LINE" != x ; then
8626 eval "DEFAULT_$LINE"
8627 else
8628 no_cache=1
8629 fi
8630
8631 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8632
8633fi;
8634
8635 eval "$ac_cv_use_statusbar"
8636 if test "$no_cache" != 1; then
8637 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8638 fi
8639
8640 if test "$wxUSE_STATUSBAR" = yes; then
8641 echo "$as_me:$LINENO: result: yes" >&5
8642echo "${ECHO_T}yes" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
8646 fi
8647
8648
8649 enablestring=
8650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8651echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8652 no_cache=0
8653 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8654if test "${enable_tabdialog+set}" = set; then
8655 enableval="$enable_tabdialog"
8656
8657 if test "$enableval" = yes; then
8658 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8659 else
8660 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8661 fi
8662
8663else
8664
8665 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8666 if test "x$LINE" != x ; then
8667 eval "DEFAULT_$LINE"
8668 else
8669 no_cache=1
8670 fi
8671
8672 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8673
8674fi;
8675
8676 eval "$ac_cv_use_tabdialog"
8677 if test "$no_cache" != 1; then
8678 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8679 fi
8680
8681 if test "$wxUSE_TABDIALOG" = yes; then
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687 fi
8688
8689
8690 enablestring=
8691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8692echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8693 no_cache=0
8694 # Check whether --enable-textctrl or --disable-textctrl was given.
8695if test "${enable_textctrl+set}" = set; then
8696 enableval="$enable_textctrl"
8697
8698 if test "$enableval" = yes; then
8699 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8700 else
8701 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8702 fi
8703
8704else
8705
8706 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8707 if test "x$LINE" != x ; then
8708 eval "DEFAULT_$LINE"
8709 else
8710 no_cache=1
8711 fi
8712
8713 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8714
8715fi;
8716
8717 eval "$ac_cv_use_textctrl"
8718 if test "$no_cache" != 1; then
8719 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8720 fi
8721
8722 if test "$wxUSE_TEXTCTRL" = yes; then
8723 echo "$as_me:$LINENO: result: yes" >&5
8724echo "${ECHO_T}yes" >&6
8725 else
8726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728 fi
8729
8730
8731 enablestring=
8732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8733echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8734 no_cache=0
8735 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8736if test "${enable_togglebtn+set}" = set; then
8737 enableval="$enable_togglebtn"
8738
8739 if test "$enableval" = yes; then
8740 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8741 else
8742 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8743 fi
8744
8745else
8746
8747 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8748 if test "x$LINE" != x ; then
8749 eval "DEFAULT_$LINE"
8750 else
8751 no_cache=1
8752 fi
8753
8754 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8755
8756fi;
8757
8758 eval "$ac_cv_use_togglebtn"
8759 if test "$no_cache" != 1; then
8760 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8761 fi
8762
8763 if test "$wxUSE_TOGGLEBTN" = yes; then
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770
8771
8772 enablestring=
8773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8774echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8775 no_cache=0
8776 # Check whether --enable-toolbar or --disable-toolbar was given.
8777if test "${enable_toolbar+set}" = set; then
8778 enableval="$enable_toolbar"
8779
8780 if test "$enableval" = yes; then
8781 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8782 else
8783 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8784 fi
8785
8786else
8787
8788 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8789 if test "x$LINE" != x ; then
8790 eval "DEFAULT_$LINE"
8791 else
8792 no_cache=1
8793 fi
8794
8795 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8796
8797fi;
8798
8799 eval "$ac_cv_use_toolbar"
8800 if test "$no_cache" != 1; then
8801 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8802 fi
8803
8804 if test "$wxUSE_TOOLBAR" = yes; then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810 fi
8811
8812
8813 enablestring=
8814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8815echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8816 no_cache=0
8817 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8818if test "${enable_tbarnative+set}" = set; then
8819 enableval="$enable_tbarnative"
8820
8821 if test "$enableval" = yes; then
8822 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8823 else
8824 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8825 fi
8826
8827else
8828
8829 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8830 if test "x$LINE" != x ; then
8831 eval "DEFAULT_$LINE"
8832 else
8833 no_cache=1
8834 fi
8835
8836 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8837
8838fi;
8839
8840 eval "$ac_cv_use_tbarnative"
8841 if test "$no_cache" != 1; then
8842 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8843 fi
8844
8845 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851 fi
8852
8853
8854 enablestring=
8855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8856echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8857 no_cache=0
8858 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8859if test "${enable_tbarsmpl+set}" = set; then
8860 enableval="$enable_tbarsmpl"
8861
8862 if test "$enableval" = yes; then
8863 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8864 else
8865 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8866 fi
8867
8868else
8869
8870 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8871 if test "x$LINE" != x ; then
8872 eval "DEFAULT_$LINE"
8873 else
8874 no_cache=1
8875 fi
8876
8877 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8878
8879fi;
8880
8881 eval "$ac_cv_use_tbarsmpl"
8882 if test "$no_cache" != 1; then
8883 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8884 fi
8885
8886 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8887 echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
8892 fi
8893
8894
8895 enablestring=
8896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8897echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8898 no_cache=0
8899 # Check whether --enable-treectrl or --disable-treectrl was given.
8900if test "${enable_treectrl+set}" = set; then
8901 enableval="$enable_treectrl"
8902
8903 if test "$enableval" = yes; then
8904 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8905 else
8906 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8907 fi
8908
8909else
8910
8911 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8912 if test "x$LINE" != x ; then
8913 eval "DEFAULT_$LINE"
8914 else
8915 no_cache=1
8916 fi
8917
8918 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8919
8920fi;
8921
8922 eval "$ac_cv_use_treectrl"
8923 if test "$no_cache" != 1; then
8924 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8925 fi
8926
8927 if test "$wxUSE_TREECTRL" = yes; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929echo "${ECHO_T}yes" >&6
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936 enablestring=
8937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8938echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8939 no_cache=0
8940 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8941if test "${enable_tipwindow+set}" = set; then
8942 enableval="$enable_tipwindow"
8943
8944 if test "$enableval" = yes; then
8945 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8946 else
8947 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8948 fi
8949
8950else
8951
8952 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8953 if test "x$LINE" != x ; then
8954 eval "DEFAULT_$LINE"
8955 else
8956 no_cache=1
8957 fi
8958
8959 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8960
8961fi;
8962
8963 eval "$ac_cv_use_tipwindow"
8964 if test "$no_cache" != 1; then
8965 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8966 fi
8967
8968 if test "$wxUSE_TIPWINDOW" = yes; then
8969 echo "$as_me:$LINENO: result: yes" >&5
8970echo "${ECHO_T}yes" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974 fi
8975
8976
8977 enablestring=
8978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8979echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8980 no_cache=0
8981 # Check whether --enable-popupwin or --disable-popupwin was given.
8982if test "${enable_popupwin+set}" = set; then
8983 enableval="$enable_popupwin"
8984
8985 if test "$enableval" = yes; then
8986 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8987 else
8988 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8989 fi
8990
8991else
8992
8993 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8994 if test "x$LINE" != x ; then
8995 eval "DEFAULT_$LINE"
8996 else
8997 no_cache=1
8998 fi
8999
9000 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9001
9002fi;
9003
9004 eval "$ac_cv_use_popupwin"
9005 if test "$no_cache" != 1; then
9006 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9007 fi
9008
9009 if test "$wxUSE_POPUPWIN" = yes; then
9010 echo "$as_me:$LINENO: result: yes" >&5
9011echo "${ECHO_T}yes" >&6
9012 else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015 fi
9016
9017
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-commondlg or --disable-commondlg was given.
9025if test "${enable_commondlg+set}" = set; then
9026 enableval="$enable_commondlg"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9030 else
9031 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9032 fi
9033
9034else
9035
9036 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9044
9045fi;
9046
9047 eval "$ac_cv_use_commondlg"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_COMMONDLGS" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9063echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9066if test "${enable_choicedlg+set}" = set; then
9067 enableval="$enable_choicedlg"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9071 else
9072 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9073 fi
9074
9075else
9076
9077 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9085
9086fi;
9087
9088 eval "$ac_cv_use_choicedlg"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_CHOICEDLG" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9104echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-coldlg or --disable-coldlg was given.
9107if test "${enable_coldlg+set}" = set; then
9108 enableval="$enable_coldlg"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9112 else
9113 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9114 fi
9115
9116else
9117
9118 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9126
9127fi;
9128
9129 eval "$ac_cv_use_coldlg"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_COLOURDLG" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143 enablestring=
9144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9145echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9146 no_cache=0
9147 # Check whether --enable-filedlg or --disable-filedlg was given.
9148if test "${enable_filedlg+set}" = set; then
9149 enableval="$enable_filedlg"
9150
9151 if test "$enableval" = yes; then
9152 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9153 else
9154 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9155 fi
9156
9157else
9158
9159 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9160 if test "x$LINE" != x ; then
9161 eval "DEFAULT_$LINE"
9162 else
9163 no_cache=1
9164 fi
9165
9166 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9167
9168fi;
9169
9170 eval "$ac_cv_use_filedlg"
9171 if test "$no_cache" != 1; then
9172 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9173 fi
9174
9175 if test "$wxUSE_FILEDLG" = yes; then
9176 echo "$as_me:$LINENO: result: yes" >&5
9177echo "${ECHO_T}yes" >&6
9178 else
9179 echo "$as_me:$LINENO: result: no" >&5
9180echo "${ECHO_T}no" >&6
9181 fi
9182
9183
9184 enablestring=
9185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9186echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9187 no_cache=0
9188 # Check whether --enable-finddlg or --disable-finddlg was given.
9189if test "${enable_finddlg+set}" = set; then
9190 enableval="$enable_finddlg"
9191
9192 if test "$enableval" = yes; then
9193 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9194 else
9195 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9196 fi
9197
9198else
9199
9200 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9201 if test "x$LINE" != x ; then
9202 eval "DEFAULT_$LINE"
9203 else
9204 no_cache=1
9205 fi
9206
9207 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9208
9209fi;
9210
9211 eval "$ac_cv_use_finddlg"
9212 if test "$no_cache" != 1; then
9213 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9214 fi
9215
9216 if test "$wxUSE_FINDREPLDLG" = yes; then
9217 echo "$as_me:$LINENO: result: yes" >&5
9218echo "${ECHO_T}yes" >&6
9219 else
9220 echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6
9222 fi
9223
9224
9225 enablestring=
9226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9227echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9228 no_cache=0
9229 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9230if test "${enable_fontdlg+set}" = set; then
9231 enableval="$enable_fontdlg"
9232
9233 if test "$enableval" = yes; then
9234 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9235 else
9236 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9237 fi
9238
9239else
9240
9241 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9242 if test "x$LINE" != x ; then
9243 eval "DEFAULT_$LINE"
9244 else
9245 no_cache=1
9246 fi
9247
9248 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9249
9250fi;
9251
9252 eval "$ac_cv_use_fontdlg"
9253 if test "$no_cache" != 1; then
9254 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9255 fi
9256
9257 if test "$wxUSE_FONTDLG" = yes; then
9258 echo "$as_me:$LINENO: result: yes" >&5
9259echo "${ECHO_T}yes" >&6
9260 else
9261 echo "$as_me:$LINENO: result: no" >&5
9262echo "${ECHO_T}no" >&6
9263 fi
9264
9265
9266 enablestring=
9267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9268echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9269 no_cache=0
9270 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9271if test "${enable_dirdlg+set}" = set; then
9272 enableval="$enable_dirdlg"
9273
9274 if test "$enableval" = yes; then
9275 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9276 else
9277 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9278 fi
9279
9280else
9281
9282 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9283 if test "x$LINE" != x ; then
9284 eval "DEFAULT_$LINE"
9285 else
9286 no_cache=1
9287 fi
9288
9289 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9290
9291fi;
9292
9293 eval "$ac_cv_use_dirdlg"
9294 if test "$no_cache" != 1; then
9295 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9296 fi
9297
9298 if test "$wxUSE_DIRDLG" = yes; then
9299 echo "$as_me:$LINENO: result: yes" >&5
9300echo "${ECHO_T}yes" >&6
9301 else
9302 echo "$as_me:$LINENO: result: no" >&5
9303echo "${ECHO_T}no" >&6
9304 fi
9305
9306
9307 enablestring=
9308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9309echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9310 no_cache=0
9311 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9312if test "${enable_msgdlg+set}" = set; then
9313 enableval="$enable_msgdlg"
9314
9315 if test "$enableval" = yes; then
9316 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9317 else
9318 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9319 fi
9320
9321else
9322
9323 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9324 if test "x$LINE" != x ; then
9325 eval "DEFAULT_$LINE"
9326 else
9327 no_cache=1
9328 fi
9329
9330 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9331
9332fi;
9333
9334 eval "$ac_cv_use_msgdlg"
9335 if test "$no_cache" != 1; then
9336 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9337 fi
9338
9339 if test "$wxUSE_MSGDLG" = yes; then
9340 echo "$as_me:$LINENO: result: yes" >&5
9341echo "${ECHO_T}yes" >&6
9342 else
9343 echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6
9345 fi
9346
9347
9348 enablestring=
9349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9350echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9351 no_cache=0
9352 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9353if test "${enable_numberdlg+set}" = set; then
9354 enableval="$enable_numberdlg"
9355
9356 if test "$enableval" = yes; then
9357 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9358 else
9359 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9360 fi
9361
9362else
9363
9364 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9365 if test "x$LINE" != x ; then
9366 eval "DEFAULT_$LINE"
9367 else
9368 no_cache=1
9369 fi
9370
9371 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9372
9373fi;
9374
9375 eval "$ac_cv_use_numberdlg"
9376 if test "$no_cache" != 1; then
9377 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9378 fi
9379
9380 if test "$wxUSE_NUMBERDLG" = yes; then
9381 echo "$as_me:$LINENO: result: yes" >&5
9382echo "${ECHO_T}yes" >&6
9383 else
9384 echo "$as_me:$LINENO: result: no" >&5
9385echo "${ECHO_T}no" >&6
9386 fi
9387
9388
9389 enablestring=
9390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9391echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9392 no_cache=0
9393 # Check whether --enable-splash or --disable-splash was given.
9394if test "${enable_splash+set}" = set; then
9395 enableval="$enable_splash"
9396
9397 if test "$enableval" = yes; then
9398 ac_cv_use_splash='wxUSE_SPLASH=yes'
9399 else
9400 ac_cv_use_splash='wxUSE_SPLASH=no'
9401 fi
9402
9403else
9404
9405 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9406 if test "x$LINE" != x ; then
9407 eval "DEFAULT_$LINE"
9408 else
9409 no_cache=1
9410 fi
9411
9412 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9413
9414fi;
9415
9416 eval "$ac_cv_use_splash"
9417 if test "$no_cache" != 1; then
9418 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9419 fi
9420
9421 if test "$wxUSE_SPLASH" = yes; then
9422 echo "$as_me:$LINENO: result: yes" >&5
9423echo "${ECHO_T}yes" >&6
9424 else
9425 echo "$as_me:$LINENO: result: no" >&5
9426echo "${ECHO_T}no" >&6
9427 fi
9428
9429
9430 enablestring=
9431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9432echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9433 no_cache=0
9434 # Check whether --enable-textdlg or --disable-textdlg was given.
9435if test "${enable_textdlg+set}" = set; then
9436 enableval="$enable_textdlg"
9437
9438 if test "$enableval" = yes; then
9439 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9440 else
9441 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9442 fi
9443
9444else
9445
9446 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9447 if test "x$LINE" != x ; then
9448 eval "DEFAULT_$LINE"
9449 else
9450 no_cache=1
9451 fi
9452
9453 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9454
9455fi;
9456
9457 eval "$ac_cv_use_textdlg"
9458 if test "$no_cache" != 1; then
9459 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9460 fi
9461
9462 if test "$wxUSE_TEXTDLG" = yes; then
9463 echo "$as_me:$LINENO: result: yes" >&5
9464echo "${ECHO_T}yes" >&6
9465 else
9466 echo "$as_me:$LINENO: result: no" >&5
9467echo "${ECHO_T}no" >&6
9468 fi
9469
9470
9471 enablestring=
9472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9473echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9474 no_cache=0
9475 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9476if test "${enable_tipdlg+set}" = set; then
9477 enableval="$enable_tipdlg"
9478
9479 if test "$enableval" = yes; then
9480 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9481 else
9482 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9483 fi
9484
9485else
9486
9487 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9488 if test "x$LINE" != x ; then
9489 eval "DEFAULT_$LINE"
9490 else
9491 no_cache=1
9492 fi
9493
9494 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9495
9496fi;
9497
9498 eval "$ac_cv_use_tipdlg"
9499 if test "$no_cache" != 1; then
9500 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9501 fi
9502
9503 if test "$wxUSE_STARTUP_TIPS" = yes; then
9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
9506 else
9507 echo "$as_me:$LINENO: result: no" >&5
9508echo "${ECHO_T}no" >&6
9509 fi
9510
9511
9512 enablestring=
9513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9514echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9515 no_cache=0
9516 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9517if test "${enable_progressdlg+set}" = set; then
9518 enableval="$enable_progressdlg"
9519
9520 if test "$enableval" = yes; then
9521 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9522 else
9523 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9524 fi
9525
9526else
9527
9528 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9529 if test "x$LINE" != x ; then
9530 eval "DEFAULT_$LINE"
9531 else
9532 no_cache=1
9533 fi
9534
9535 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9536
9537fi;
9538
9539 eval "$ac_cv_use_progressdlg"
9540 if test "$no_cache" != 1; then
9541 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9542 fi
9543
9544 if test "$wxUSE_PROGRESSDLG" = yes; then
9545 echo "$as_me:$LINENO: result: yes" >&5
9546echo "${ECHO_T}yes" >&6
9547 else
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
9550 fi
9551
9552
9553 enablestring=
9554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9555echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9556 no_cache=0
9557 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9558if test "${enable_wizarddlg+set}" = set; then
9559 enableval="$enable_wizarddlg"
9560
9561 if test "$enableval" = yes; then
9562 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9563 else
9564 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9565 fi
9566
9567else
9568
9569 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9570 if test "x$LINE" != x ; then
9571 eval "DEFAULT_$LINE"
9572 else
9573 no_cache=1
9574 fi
9575
9576 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9577
9578fi;
9579
9580 eval "$ac_cv_use_wizarddlg"
9581 if test "$no_cache" != 1; then
9582 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9583 fi
9584
9585 if test "$wxUSE_WIZARDDLG" = yes; then
9586 echo "$as_me:$LINENO: result: yes" >&5
9587echo "${ECHO_T}yes" >&6
9588 else
9589 echo "$as_me:$LINENO: result: no" >&5
9590echo "${ECHO_T}no" >&6
9591 fi
9592
9593
9594
9595
9596 enablestring=
9597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9598echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9599 no_cache=0
9600 # Check whether --enable-menus or --disable-menus was given.
9601if test "${enable_menus+set}" = set; then
9602 enableval="$enable_menus"
9603
9604 if test "$enableval" = yes; then
9605 ac_cv_use_menus='wxUSE_MENUS=yes'
9606 else
9607 ac_cv_use_menus='wxUSE_MENUS=no'
9608 fi
9609
9610else
9611
9612 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9613 if test "x$LINE" != x ; then
9614 eval "DEFAULT_$LINE"
9615 else
9616 no_cache=1
9617 fi
9618
9619 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9620
9621fi;
9622
9623 eval "$ac_cv_use_menus"
9624 if test "$no_cache" != 1; then
9625 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9626 fi
9627
9628 if test "$wxUSE_MENUS" = yes; then
9629 echo "$as_me:$LINENO: result: yes" >&5
9630echo "${ECHO_T}yes" >&6
9631 else
9632 echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6
9634 fi
9635
9636
9637 enablestring=
9638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9639echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9640 no_cache=0
9641 # Check whether --enable-miniframe or --disable-miniframe was given.
9642if test "${enable_miniframe+set}" = set; then
9643 enableval="$enable_miniframe"
9644
9645 if test "$enableval" = yes; then
9646 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9647 else
9648 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9649 fi
9650
9651else
9652
9653 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9654 if test "x$LINE" != x ; then
9655 eval "DEFAULT_$LINE"
9656 else
9657 no_cache=1
9658 fi
9659
9660 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9661
9662fi;
9663
9664 eval "$ac_cv_use_miniframe"
9665 if test "$no_cache" != 1; then
9666 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9667 fi
9668
9669 if test "$wxUSE_MINIFRAME" = yes; then
9670 echo "$as_me:$LINENO: result: yes" >&5
9671echo "${ECHO_T}yes" >&6
9672 else
9673 echo "$as_me:$LINENO: result: no" >&5
9674echo "${ECHO_T}no" >&6
9675 fi
9676
9677
9678 enablestring=
9679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9680echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9681 no_cache=0
9682 # Check whether --enable-tooltips or --disable-tooltips was given.
9683if test "${enable_tooltips+set}" = set; then
9684 enableval="$enable_tooltips"
9685
9686 if test "$enableval" = yes; then
9687 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9688 else
9689 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9690 fi
9691
9692else
9693
9694 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9695 if test "x$LINE" != x ; then
9696 eval "DEFAULT_$LINE"
9697 else
9698 no_cache=1
9699 fi
9700
9701 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9702
9703fi;
9704
9705 eval "$ac_cv_use_tooltips"
9706 if test "$no_cache" != 1; then
9707 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9708 fi
9709
9710 if test "$wxUSE_TOOLTIPS" = yes; then
9711 echo "$as_me:$LINENO: result: yes" >&5
9712echo "${ECHO_T}yes" >&6
9713 else
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
9716 fi
9717
9718
9719 enablestring=
9720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9721echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9722 no_cache=0
9723 # Check whether --enable-splines or --disable-splines was given.
9724if test "${enable_splines+set}" = set; then
9725 enableval="$enable_splines"
9726
9727 if test "$enableval" = yes; then
9728 ac_cv_use_splines='wxUSE_SPLINES=yes'
9729 else
9730 ac_cv_use_splines='wxUSE_SPLINES=no'
9731 fi
9732
9733else
9734
9735 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9736 if test "x$LINE" != x ; then
9737 eval "DEFAULT_$LINE"
9738 else
9739 no_cache=1
9740 fi
9741
9742 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9743
9744fi;
9745
9746 eval "$ac_cv_use_splines"
9747 if test "$no_cache" != 1; then
9748 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9749 fi
9750
9751 if test "$wxUSE_SPLINES" = yes; then
9752 echo "$as_me:$LINENO: result: yes" >&5
9753echo "${ECHO_T}yes" >&6
9754 else
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757 fi
9758
9759
fbe2ca43
SN
9760 enablestring=
9761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9762echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9763 no_cache=0
9764 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9765if test "${enable_mousewheel+set}" = set; then
9766 enableval="$enable_mousewheel"
9767
9768 if test "$enableval" = yes; then
9769 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9770 else
9771 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9772 fi
9773
9774else
9775
9776 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9777 if test "x$LINE" != x ; then
9778 eval "DEFAULT_$LINE"
9779 else
9780 no_cache=1
9781 fi
9782
9783 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9784
9785fi;
9786
9787 eval "$ac_cv_use_mousewheel"
9788 if test "$no_cache" != 1; then
9789 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9790 fi
9791
9792 if test "$wxUSE_MOUSEWHEEL" = yes; then
9793 echo "$as_me:$LINENO: result: yes" >&5
9794echo "${ECHO_T}yes" >&6
9795 else
9796 echo "$as_me:$LINENO: result: no" >&5
9797echo "${ECHO_T}no" >&6
9798 fi
9799
9800
a848cd7e
SC
9801 enablestring=
9802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9803echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9804 no_cache=0
9805 # Check whether --enable-validators or --disable-validators was given.
9806if test "${enable_validators+set}" = set; then
9807 enableval="$enable_validators"
9808
9809 if test "$enableval" = yes; then
9810 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9811 else
9812 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9813 fi
9814
9815else
9816
9817 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9818 if test "x$LINE" != x ; then
9819 eval "DEFAULT_$LINE"
9820 else
9821 no_cache=1
9822 fi
9823
9824 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9825
9826fi;
9827
9828 eval "$ac_cv_use_validators"
9829 if test "$no_cache" != 1; then
9830 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9831 fi
9832
9833 if test "$wxUSE_VALIDATORS" = yes; then
9834 echo "$as_me:$LINENO: result: yes" >&5
9835echo "${ECHO_T}yes" >&6
9836 else
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839 fi
9840
9841
9842 enablestring=
9843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9844echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9845 no_cache=0
9846 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9847if test "${enable_busyinfo+set}" = set; then
9848 enableval="$enable_busyinfo"
9849
9850 if test "$enableval" = yes; then
9851 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9852 else
9853 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9854 fi
9855
9856else
9857
9858 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9859 if test "x$LINE" != x ; then
9860 eval "DEFAULT_$LINE"
9861 else
9862 no_cache=1
9863 fi
9864
9865 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9866
9867fi;
9868
9869 eval "$ac_cv_use_busyinfo"
9870 if test "$no_cache" != 1; then
9871 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9872 fi
9873
9874 if test "$wxUSE_BUSYINFO" = yes; then
9875 echo "$as_me:$LINENO: result: yes" >&5
9876echo "${ECHO_T}yes" >&6
9877 else
9878 echo "$as_me:$LINENO: result: no" >&5
9879echo "${ECHO_T}no" >&6
9880 fi
9881
9882
9883 enablestring=
9884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9885echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9886 no_cache=0
9887 # Check whether --enable-joystick or --disable-joystick was given.
9888if test "${enable_joystick+set}" = set; then
9889 enableval="$enable_joystick"
9890
9891 if test "$enableval" = yes; then
9892 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9893 else
9894 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9895 fi
9896
9897else
9898
9899 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9900 if test "x$LINE" != x ; then
9901 eval "DEFAULT_$LINE"
9902 else
9903 no_cache=1
9904 fi
9905
9906 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9907
9908fi;
9909
9910 eval "$ac_cv_use_joystick"
9911 if test "$no_cache" != 1; then
9912 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9913 fi
9914
9915 if test "$wxUSE_JOYSTICK" = yes; then
9916 echo "$as_me:$LINENO: result: yes" >&5
9917echo "${ECHO_T}yes" >&6
9918 else
9919 echo "$as_me:$LINENO: result: no" >&5
9920echo "${ECHO_T}no" >&6
9921 fi
9922
9923
9924 enablestring=
9925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9926echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9927 no_cache=0
9928 # Check whether --enable-metafile or --disable-metafile was given.
9929if test "${enable_metafile+set}" = set; then
9930 enableval="$enable_metafile"
9931
9932 if test "$enableval" = yes; then
9933 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9934 else
9935 ac_cv_use_metafile='wxUSE_METAFILE=no'
9936 fi
9937
9938else
9939
9940 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9941 if test "x$LINE" != x ; then
9942 eval "DEFAULT_$LINE"
9943 else
9944 no_cache=1
9945 fi
9946
9947 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9948
9949fi;
9950
9951 eval "$ac_cv_use_metafile"
9952 if test "$no_cache" != 1; then
9953 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9954 fi
9955
9956 if test "$wxUSE_METAFILE" = yes; then
9957 echo "$as_me:$LINENO: result: yes" >&5
9958echo "${ECHO_T}yes" >&6
9959 else
9960 echo "$as_me:$LINENO: result: no" >&5
9961echo "${ECHO_T}no" >&6
9962 fi
9963
9964
9965 enablestring=
9966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9967echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9968 no_cache=0
9969 # Check whether --enable-dragimage or --disable-dragimage was given.
9970if test "${enable_dragimage+set}" = set; then
9971 enableval="$enable_dragimage"
9972
9973 if test "$enableval" = yes; then
9974 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9975 else
9976 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9977 fi
9978
9979else
9980
9981 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9982 if test "x$LINE" != x ; then
9983 eval "DEFAULT_$LINE"
9984 else
9985 no_cache=1
9986 fi
9987
9988 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9989
9990fi;
9991
9992 eval "$ac_cv_use_dragimage"
9993 if test "$no_cache" != 1; then
9994 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9995 fi
9996
9997 if test "$wxUSE_DRAGIMAGE" = yes; then
9998 echo "$as_me:$LINENO: result: yes" >&5
9999echo "${ECHO_T}yes" >&6
10000 else
10001 echo "$as_me:$LINENO: result: no" >&5
10002echo "${ECHO_T}no" >&6
10003 fi
10004
10005
10006 enablestring=
10007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10008echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10009 no_cache=0
10010 # Check whether --enable-accessibility or --disable-accessibility was given.
10011if test "${enable_accessibility+set}" = set; then
10012 enableval="$enable_accessibility"
10013
10014 if test "$enableval" = yes; then
10015 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10016 else
10017 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10018 fi
10019
10020else
10021
10022 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10023 if test "x$LINE" != x ; then
10024 eval "DEFAULT_$LINE"
10025 else
10026 no_cache=1
10027 fi
10028
10029 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10030
10031fi;
10032
10033 eval "$ac_cv_use_accessibility"
10034 if test "$no_cache" != 1; then
10035 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10036 fi
10037
10038 if test "$wxUSE_ACCESSIBILITY" = yes; then
10039 echo "$as_me:$LINENO: result: yes" >&5
10040echo "${ECHO_T}yes" >&6
10041 else
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
10044 fi
10045
10046
38b4a946
VZ
10047if test "$wxUSE_MSW" = "1"; then
10048
10049 enablestring=
10050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10051echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10052 no_cache=0
10053 # Check whether --enable-dccache or --disable-dccache was given.
10054if test "${enable_dccache+set}" = set; then
10055 enableval="$enable_dccache"
10056
10057 if test "$enableval" = yes; then
10058 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10059 else
10060 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10061 fi
10062
10063else
10064
10065 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10066 if test "x$LINE" != x ; then
10067 eval "DEFAULT_$LINE"
10068 else
10069 no_cache=1
10070 fi
10071
10072 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10073
10074fi;
10075
10076 eval "$ac_cv_use_dccache"
10077 if test "$no_cache" != 1; then
10078 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10079 fi
10080
10081 if test "$wxUSE_DC_CACHEING" = yes; then
10082 echo "$as_me:$LINENO: result: yes" >&5
10083echo "${ECHO_T}yes" >&6
10084 else
10085 echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6
10087 fi
10088
10089fi
10090
a848cd7e
SC
10091
10092
10093 enablestring=
10094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10095echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10096 no_cache=0
10097 # Check whether --enable-palette or --disable-palette was given.
10098if test "${enable_palette+set}" = set; then
10099 enableval="$enable_palette"
10100
10101 if test "$enableval" = yes; then
10102 ac_cv_use_palette='wxUSE_PALETTE=yes'
10103 else
10104 ac_cv_use_palette='wxUSE_PALETTE=no'
10105 fi
10106
10107else
10108
10109 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10110 if test "x$LINE" != x ; then
10111 eval "DEFAULT_$LINE"
10112 else
10113 no_cache=1
10114 fi
10115
10116 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10117
10118fi;
10119
10120 eval "$ac_cv_use_palette"
10121 if test "$no_cache" != 1; then
10122 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10123 fi
10124
10125 if test "$wxUSE_PALETTE" = yes; then
10126 echo "$as_me:$LINENO: result: yes" >&5
10127echo "${ECHO_T}yes" >&6
10128 else
10129 echo "$as_me:$LINENO: result: no" >&5
10130echo "${ECHO_T}no" >&6
10131 fi
10132
10133
10134 enablestring=
10135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10136echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10137 no_cache=0
10138 # Check whether --enable-image or --disable-image was given.
10139if test "${enable_image+set}" = set; then
10140 enableval="$enable_image"
10141
10142 if test "$enableval" = yes; then
10143 ac_cv_use_image='wxUSE_IMAGE=yes'
10144 else
10145 ac_cv_use_image='wxUSE_IMAGE=no'
10146 fi
10147
10148else
10149
10150 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10151 if test "x$LINE" != x ; then
10152 eval "DEFAULT_$LINE"
10153 else
10154 no_cache=1
10155 fi
10156
10157 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10158
10159fi;
10160
10161 eval "$ac_cv_use_image"
10162 if test "$no_cache" != 1; then
10163 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10164 fi
10165
10166 if test "$wxUSE_IMAGE" = yes; then
10167 echo "$as_me:$LINENO: result: yes" >&5
10168echo "${ECHO_T}yes" >&6
10169 else
10170 echo "$as_me:$LINENO: result: no" >&5
10171echo "${ECHO_T}no" >&6
10172 fi
10173
10174
10175 enablestring=
10176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10177echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10178 no_cache=0
10179 # Check whether --enable-gif or --disable-gif was given.
10180if test "${enable_gif+set}" = set; then
10181 enableval="$enable_gif"
10182
10183 if test "$enableval" = yes; then
10184 ac_cv_use_gif='wxUSE_GIF=yes'
10185 else
10186 ac_cv_use_gif='wxUSE_GIF=no'
10187 fi
10188
10189else
10190
10191 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10192 if test "x$LINE" != x ; then
10193 eval "DEFAULT_$LINE"
10194 else
10195 no_cache=1
10196 fi
10197
10198 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10199
10200fi;
10201
10202 eval "$ac_cv_use_gif"
10203 if test "$no_cache" != 1; then
10204 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10205 fi
10206
10207 if test "$wxUSE_GIF" = yes; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209echo "${ECHO_T}yes" >&6
10210 else
10211 echo "$as_me:$LINENO: result: no" >&5
10212echo "${ECHO_T}no" >&6
10213 fi
10214
10215
10216 enablestring=
10217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10218echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10219 no_cache=0
10220 # Check whether --enable-pcx or --disable-pcx was given.
10221if test "${enable_pcx+set}" = set; then
10222 enableval="$enable_pcx"
10223
10224 if test "$enableval" = yes; then
10225 ac_cv_use_pcx='wxUSE_PCX=yes'
10226 else
10227 ac_cv_use_pcx='wxUSE_PCX=no'
10228 fi
10229
10230else
10231
10232 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10233 if test "x$LINE" != x ; then
10234 eval "DEFAULT_$LINE"
10235 else
10236 no_cache=1
10237 fi
10238
10239 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10240
10241fi;
10242
10243 eval "$ac_cv_use_pcx"
10244 if test "$no_cache" != 1; then
10245 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10246 fi
10247
10248 if test "$wxUSE_PCX" = yes; then
10249 echo "$as_me:$LINENO: result: yes" >&5
10250echo "${ECHO_T}yes" >&6
10251 else
10252 echo "$as_me:$LINENO: result: no" >&5
10253echo "${ECHO_T}no" >&6
10254 fi
10255
10256
10257 enablestring=
10258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10259echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10260 no_cache=0
10261 # Check whether --enable-iff or --disable-iff was given.
10262if test "${enable_iff+set}" = set; then
10263 enableval="$enable_iff"
10264
10265 if test "$enableval" = yes; then
10266 ac_cv_use_iff='wxUSE_IFF=yes'
10267 else
10268 ac_cv_use_iff='wxUSE_IFF=no'
10269 fi
10270
10271else
10272
10273 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10274 if test "x$LINE" != x ; then
10275 eval "DEFAULT_$LINE"
10276 else
10277 no_cache=1
10278 fi
10279
10280 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10281
10282fi;
10283
10284 eval "$ac_cv_use_iff"
10285 if test "$no_cache" != 1; then
10286 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10287 fi
10288
10289 if test "$wxUSE_IFF" = yes; then
10290 echo "$as_me:$LINENO: result: yes" >&5
10291echo "${ECHO_T}yes" >&6
10292 else
10293 echo "$as_me:$LINENO: result: no" >&5
10294echo "${ECHO_T}no" >&6
10295 fi
10296
10297
10298 enablestring=
10299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10300echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10301 no_cache=0
10302 # Check whether --enable-pnm or --disable-pnm was given.
10303if test "${enable_pnm+set}" = set; then
10304 enableval="$enable_pnm"
10305
10306 if test "$enableval" = yes; then
10307 ac_cv_use_pnm='wxUSE_PNM=yes'
10308 else
10309 ac_cv_use_pnm='wxUSE_PNM=no'
10310 fi
10311
10312else
10313
10314 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10315 if test "x$LINE" != x ; then
10316 eval "DEFAULT_$LINE"
10317 else
10318 no_cache=1
10319 fi
10320
10321 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10322
10323fi;
10324
10325 eval "$ac_cv_use_pnm"
10326 if test "$no_cache" != 1; then
10327 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10328 fi
10329
10330 if test "$wxUSE_PNM" = yes; then
10331 echo "$as_me:$LINENO: result: yes" >&5
10332echo "${ECHO_T}yes" >&6
10333 else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336 fi
10337
10338
10339 enablestring=
10340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10341echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10342 no_cache=0
10343 # Check whether --enable-xpm or --disable-xpm was given.
10344if test "${enable_xpm+set}" = set; then
10345 enableval="$enable_xpm"
10346
10347 if test "$enableval" = yes; then
10348 ac_cv_use_xpm='wxUSE_XPM=yes'
10349 else
10350 ac_cv_use_xpm='wxUSE_XPM=no'
10351 fi
10352
10353else
10354
10355 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10356 if test "x$LINE" != x ; then
10357 eval "DEFAULT_$LINE"
10358 else
10359 no_cache=1
10360 fi
10361
10362 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10363
10364fi;
10365
10366 eval "$ac_cv_use_xpm"
10367 if test "$no_cache" != 1; then
10368 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10369 fi
10370
10371 if test "$wxUSE_XPM" = yes; then
10372 echo "$as_me:$LINENO: result: yes" >&5
10373echo "${ECHO_T}yes" >&6
10374 else
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
10377 fi
10378
10379
10380 enablestring=
10381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10382echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10383 no_cache=0
10384 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10385if test "${enable_ico_cur+set}" = set; then
10386 enableval="$enable_ico_cur"
10387
10388 if test "$enableval" = yes; then
10389 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10390 else
10391 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10392 fi
10393
10394else
10395
10396 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10397 if test "x$LINE" != x ; then
10398 eval "DEFAULT_$LINE"
10399 else
10400 no_cache=1
10401 fi
10402
10403 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10404
10405fi;
10406
10407 eval "$ac_cv_use_ico_cur"
10408 if test "$no_cache" != 1; then
10409 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10410 fi
10411
10412 if test "$wxUSE_ICO_CUR" = yes; then
10413 echo "$as_me:$LINENO: result: yes" >&5
10414echo "${ECHO_T}yes" >&6
10415 else
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
10418 fi
10419
10420
10421fi
10422
10423
10424
ceec2216
RL
10425# Check whether --with-flavour or --without-flavour was given.
10426if test "${with_flavour+set}" = set; then
10427 withval="$with_flavour"
10428 WX_FLAVOUR="$withval"
10429fi;
10430
10431
10432
a848cd7e
SC
10433 enablestring=
10434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10435echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10436 no_cache=0
10437 # Check whether --enable-official_build or --disable-official_build was given.
10438if test "${enable_official_build+set}" = set; then
10439 enableval="$enable_official_build"
10440
10441 if test "$enableval" = yes; then
10442 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10443 else
10444 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10445 fi
10446
10447else
10448
10449 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10450 if test "x$LINE" != x ; then
10451 eval "DEFAULT_$LINE"
10452 else
10453 no_cache=1
10454 fi
10455
10456 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10457
10458fi;
10459
10460 eval "$ac_cv_use_official_build"
10461 if test "$no_cache" != 1; then
10462 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10463 fi
10464
10465 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10466 echo "$as_me:$LINENO: result: yes" >&5
10467echo "${ECHO_T}yes" >&6
10468 else
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
10471 fi
10472
10473# Check whether --enable-vendor or --disable-vendor was given.
10474if test "${enable_vendor+set}" = set; then
10475 enableval="$enable_vendor"
10476 VENDOR="$enableval"
10477fi;
10478if test "x$VENDOR" = "x"; then
10479 VENDOR="custom"
10480fi
10481
a848cd7e
SC
10482
10483
10484
10485 echo "saving argument cache $wx_arg_cache_file"
10486 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10487
10488
10489
10490echo "$as_me:$LINENO: checking for toolkit" >&5
10491echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10492
10493# In Wine, we need to default to MSW, not GTK or MOTIF
10494if test "$wxUSE_WINE" = "yes"; then
10495 DEFAULT_DEFAULT_wxUSE_GTK=0
10496 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10497 DEFAULT_DEFAULT_wxUSE_MSW=1
10498 wxUSE_SHARED=no
10499fi
10500
f597b41c 10501
a848cd7e
SC
10502if test "$wxUSE_GUI" = "yes"; then
10503
10504 if test "$USE_BEOS" = 1; then
10505 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10506echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10507 { (exit 1); exit 1; }; }
10508 fi
10509
10510 if test "$TOOLKIT_GIVEN" = 1; then
10511 for toolkit in `echo $ALL_TOOLKITS`; do
10512 var=wxUSE_$toolkit
10513 eval "value=\$${var}"
f34ca037
MW
10514 if test "x$value" = "xno"; then
10515 eval "$var=0"
10516 elif test "x$value" != "x"; then
10517 eval "$var=1"
10518 fi
10519
10520 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10521 eval "wx${toolkit}_VERSION=$value"
10522 fi
a848cd7e
SC
10523 done
10524 else
10525 for toolkit in `echo $ALL_TOOLKITS`; do
10526 if test "$has_toolkit_in_cache" != 1; then
10527 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10528 else
10529 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10530
10531 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10532 if test "x$version" != "x"; then
10533 eval "wx${toolkit}_VERSION=$version"
10534 fi
a848cd7e
SC
10535 fi
10536 eval "wxUSE_$toolkit=\$${var}"
10537 done
10538 fi
10539
10540 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10541 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10542 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10543
10544 case "${host}" in
10545 *-pc-os2_emx | *-pc-os2-emx )
10546 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10547 esac
10548
10549 case "$NUM_TOOLKITS" in
10550 1)
10551 ;;
10552 0)
10553 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10554echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10555 { (exit 1); exit 1; }; }
10556 ;;
10557 *)
10558 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10559echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10560 { (exit 1); exit 1; }; }
10561 esac
10562
f34ca037
MW
10563 # to be removed when --disable-gtk2 isn't needed
10564 if test "x$wxUSE_GTK2" = "xyes"; then
10565 wxGTK_VERSION=2
10566 elif test "x$wxUSE_GTK2" = "xno"; then
10567 wxGTK_VERSION=1
10568 fi
10569
a848cd7e
SC
10570 for toolkit in `echo $ALL_TOOLKITS`; do
10571 var=wxUSE_$toolkit
10572 eval "value=\$${var}"
10573 if test "x$value" != x; then
10574 cache_var=CACHE_$toolkit
10575 eval "cache=\$${cache_var}"
10576 if test "$cache" = 1; then
10577 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10578 eval "version=\$wx${toolkit}_VERSION"
10579 if test "x$version" != "x"; then
10580 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10581 fi
a848cd7e
SC
10582 fi
10583 if test "$value" = 1; then
10584 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10585 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10586echo "${ECHO_T}$toolkit_echo" >&6
10587 fi
10588 fi
10589 done
10590else
10591 if test "x$host_alias" != "x"; then
10592 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10593echo "${ECHO_T}base ($host_alias hosted) only" >&6
10594 else
10595 echo "$as_me:$LINENO: result: base only" >&5
10596echo "${ECHO_T}base only" >&6
10597 fi
10598fi
10599
10600wants_win32=0
10601doesnt_want_win32=0
10602case "${host}" in
10603 *-*-cygwin*)
10604 if test "$wxUSE_MSW" = 1 ; then
10605 wants_win32=1
7275146d 10606 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10607 else
10608 doesnt_want_win32=1
10609 fi
10610 ;;
10611 *-*-mingw*)
10612 wants_win32=1
10613 ;;
10614esac
10615
10616if test "$wxUSE_WINE" = "yes"; then
10617 wants_win32=1
10618 CC=winegcc
10619 CXX=wineg++
a848cd7e
SC
10620 LDFLAGS_GUI="-mwindows"
10621fi
10622
10623if test "$wants_win32" = 1 ; then
10624 USE_UNIX=0
10625 USE_WIN32=1
10626 cat >>confdefs.h <<\_ACEOF
10627#define __WIN32__ 1
10628_ACEOF
10629
10630 cat >>confdefs.h <<\_ACEOF
10631#define __WIN95__ 1
10632_ACEOF
10633
10634 cat >>confdefs.h <<\_ACEOF
10635#define __WINDOWS__ 1
10636_ACEOF
10637
10638 cat >>confdefs.h <<\_ACEOF
10639#define __GNUWIN32__ 1
10640_ACEOF
10641
10642 cat >>confdefs.h <<\_ACEOF
10643#define STRICT 1
10644_ACEOF
10645
10646 cat >>confdefs.h <<\_ACEOF
10647#define WINVER 0x0400
10648_ACEOF
10649
10650fi
10651if test "$doesnt_want_win32" = 1 ; then
10652 USE_UNIX=1
10653 USE_WIN32=0
10654fi
10655
10656if test "$USE_UNIX" = 1 ; then
10657 wxUSE_UNIX=yes
10658 cat >>confdefs.h <<\_ACEOF
10659#define __UNIX__ 1
10660_ACEOF
10661
10662fi
10663
10664
10665cat >confcache <<\_ACEOF
10666# This file is a shell script that caches the results of configure
10667# tests run on this system so they can be shared between configure
10668# scripts and configure runs, see configure's option --config-cache.
10669# It is not useful on other systems. If it contains results you don't
10670# want to keep, you may remove or edit it.
10671#
10672# config.status only pays attention to the cache file if you give it
10673# the --recheck option to rerun configure.
10674#
10675# `ac_cv_env_foo' variables (set or unset) will be overridden when
10676# loading this file, other *unset* `ac_cv_foo' will be assigned the
10677# following values.
10678
10679_ACEOF
10680
10681# The following way of writing the cache mishandles newlines in values,
10682# but we know of no workaround that is simple, portable, and efficient.
10683# So, don't put newlines in cache variables' values.
10684# Ultrix sh set writes to stderr and can't be redirected directly,
10685# and sets the high bit in the cache file unless we assign to the vars.
10686{
10687 (set) 2>&1 |
10688 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10689 *ac_space=\ *)
10690 # `set' does not quote correctly, so add quotes (double-quote
10691 # substitution turns \\\\ into \\, and sed turns \\ into \).
10692 sed -n \
ac1cb8d3
VS
10693 "s/'/'\\\\''/g;
10694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10695 ;;
10696 *)
10697 # `set' quotes correctly as required by POSIX, so do not add quotes.
10698 sed -n \
ac1cb8d3 10699 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10700 ;;
10701 esac;
10702} |
10703 sed '
10704 t clear
10705 : clear
10706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10707 t end
10708 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10709 : end' >>confcache
10710if diff $cache_file confcache >/dev/null 2>&1; then :; else
10711 if test -w $cache_file; then
10712 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10713 cat confcache >$cache_file
10714 else
10715 echo "not updating unwritable cache $cache_file"
10716 fi
10717fi
10718rm -f confcache
10719
a848cd7e 10720CFLAGS=${CFLAGS:=}
6dcfc289
DE
10721
10722
10723 ac_ext=c
a848cd7e
SC
10724ac_cpp='$CPP $CPPFLAGS'
10725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10727ac_compiler_gnu=$ac_cv_c_compiler_gnu
10728if test -n "$ac_tool_prefix"; then
10729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10730set dummy ${ac_tool_prefix}gcc; ac_word=$2
10731echo "$as_me:$LINENO: checking for $ac_word" >&5
10732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10733if test "${ac_cv_prog_CC+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735else
10736 if test -n "$CC"; then
10737 ac_cv_prog_CC="$CC" # Let the user override the test.
10738else
10739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10749 fi
10750done
10751done
10752
10753fi
10754fi
10755CC=$ac_cv_prog_CC
10756if test -n "$CC"; then
10757 echo "$as_me:$LINENO: result: $CC" >&5
10758echo "${ECHO_T}$CC" >&6
10759else
10760 echo "$as_me:$LINENO: result: no" >&5
10761echo "${ECHO_T}no" >&6
10762fi
10763
10764fi
10765if test -z "$ac_cv_prog_CC"; then
10766 ac_ct_CC=$CC
10767 # Extract the first word of "gcc", so it can be a program name with args.
10768set dummy gcc; ac_word=$2
10769echo "$as_me:$LINENO: checking for $ac_word" >&5
10770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10771if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773else
10774 if test -n "$ac_ct_CC"; then
10775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10776else
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784 ac_cv_prog_ac_ct_CC="gcc"
10785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10787 fi
10788done
10789done
10790
10791fi
10792fi
10793ac_ct_CC=$ac_cv_prog_ac_ct_CC
10794if test -n "$ac_ct_CC"; then
10795 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10796echo "${ECHO_T}$ac_ct_CC" >&6
10797else
10798 echo "$as_me:$LINENO: result: no" >&5
10799echo "${ECHO_T}no" >&6
10800fi
10801
10802 CC=$ac_ct_CC
10803else
10804 CC="$ac_cv_prog_CC"
10805fi
10806
10807if test -z "$CC"; then
10808 if test -n "$ac_tool_prefix"; then
10809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10810set dummy ${ac_tool_prefix}cc; ac_word=$2
10811echo "$as_me:$LINENO: checking for $ac_word" >&5
10812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10813if test "${ac_cv_prog_CC+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815else
10816 if test -n "$CC"; then
10817 ac_cv_prog_CC="$CC" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_prog_CC="${ac_tool_prefix}cc"
10827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831done
10832
10833fi
10834fi
10835CC=$ac_cv_prog_CC
10836if test -n "$CC"; then
10837 echo "$as_me:$LINENO: result: $CC" >&5
10838echo "${ECHO_T}$CC" >&6
10839else
10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
10842fi
10843
10844fi
10845if test -z "$ac_cv_prog_CC"; then
10846 ac_ct_CC=$CC
10847 # Extract the first word of "cc", so it can be a program name with args.
10848set dummy cc; ac_word=$2
10849echo "$as_me:$LINENO: checking for $ac_word" >&5
10850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853else
10854 if test -n "$ac_ct_CC"; then
10855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10856else
10857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858for as_dir in $PATH
10859do
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864 ac_cv_prog_ac_ct_CC="cc"
10865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10867 fi
10868done
10869done
10870
10871fi
10872fi
10873ac_ct_CC=$ac_cv_prog_ac_ct_CC
10874if test -n "$ac_ct_CC"; then
10875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10876echo "${ECHO_T}$ac_ct_CC" >&6
10877else
10878 echo "$as_me:$LINENO: result: no" >&5
10879echo "${ECHO_T}no" >&6
10880fi
10881
10882 CC=$ac_ct_CC
10883else
10884 CC="$ac_cv_prog_CC"
10885fi
10886
10887fi
10888if test -z "$CC"; then
10889 # Extract the first word of "cc", so it can be a program name with args.
10890set dummy cc; ac_word=$2
10891echo "$as_me:$LINENO: checking for $ac_word" >&5
10892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10893if test "${ac_cv_prog_CC+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 if test -n "$CC"; then
10897 ac_cv_prog_CC="$CC" # Let the user override the test.
10898else
10899 ac_prog_rejected=no
10900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901for as_dir in $PATH
10902do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10908 ac_prog_rejected=yes
10909 continue
10910 fi
10911 ac_cv_prog_CC="cc"
10912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10914 fi
10915done
10916done
10917
10918if test $ac_prog_rejected = yes; then
10919 # We found a bogon in the path, so make sure we never use it.
10920 set dummy $ac_cv_prog_CC
10921 shift
10922 if test $# != 0; then
10923 # We chose a different compiler from the bogus one.
10924 # However, it has the same basename, so the bogon will be chosen
10925 # first if we set CC to just the basename; use the full file name.
10926 shift
10927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10928 fi
10929fi
10930fi
10931fi
10932CC=$ac_cv_prog_CC
10933if test -n "$CC"; then
10934 echo "$as_me:$LINENO: result: $CC" >&5
10935echo "${ECHO_T}$CC" >&6
10936else
10937 echo "$as_me:$LINENO: result: no" >&5
10938echo "${ECHO_T}no" >&6
10939fi
10940
10941fi
10942if test -z "$CC"; then
10943 if test -n "$ac_tool_prefix"; then
10944 for ac_prog in cl
10945 do
10946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10948echo "$as_me:$LINENO: checking for $ac_word" >&5
10949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10950if test "${ac_cv_prog_CC+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952else
10953 if test -n "$CC"; then
10954 ac_cv_prog_CC="$CC" # Let the user override the test.
10955else
10956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957for as_dir in $PATH
10958do
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10966 fi
10967done
10968done
10969
10970fi
10971fi
10972CC=$ac_cv_prog_CC
10973if test -n "$CC"; then
10974 echo "$as_me:$LINENO: result: $CC" >&5
10975echo "${ECHO_T}$CC" >&6
10976else
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
10979fi
10980
10981 test -n "$CC" && break
10982 done
10983fi
10984if test -z "$CC"; then
10985 ac_ct_CC=$CC
10986 for ac_prog in cl
10987do
10988 # Extract the first word of "$ac_prog", so it can be a program name with args.
10989set dummy $ac_prog; ac_word=$2
10990echo "$as_me:$LINENO: checking for $ac_word" >&5
10991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 if test -n "$ac_ct_CC"; then
10996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10997else
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005 ac_cv_prog_ac_ct_CC="$ac_prog"
11006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010done
11011
11012fi
11013fi
11014ac_ct_CC=$ac_cv_prog_ac_ct_CC
11015if test -n "$ac_ct_CC"; then
11016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11017echo "${ECHO_T}$ac_ct_CC" >&6
11018else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021fi
11022
11023 test -n "$ac_ct_CC" && break
11024done
11025
11026 CC=$ac_ct_CC
11027fi
11028
11029fi
11030
11031
11032test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11033See \`config.log' for more details." >&5
11034echo "$as_me: error: no acceptable C compiler found in \$PATH
11035See \`config.log' for more details." >&2;}
11036 { (exit 1); exit 1; }; }
11037
11038# Provide some information about the compiler.
11039echo "$as_me:$LINENO:" \
11040 "checking for C compiler version" >&5
11041ac_compiler=`set X $ac_compile; echo $2`
11042{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11043 (eval $ac_compiler --version </dev/null >&5) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }
11047{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11048 (eval $ac_compiler -v </dev/null >&5) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }
11052{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11053 (eval $ac_compiler -V </dev/null >&5) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }
11057
11058cat >conftest.$ac_ext <<_ACEOF
11059/* confdefs.h. */
11060_ACEOF
11061cat confdefs.h >>conftest.$ac_ext
11062cat >>conftest.$ac_ext <<_ACEOF
11063/* end confdefs.h. */
11064
11065int
11066main ()
11067{
11068
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073ac_clean_files_save=$ac_clean_files
11074ac_clean_files="$ac_clean_files a.out a.exe b.out"
11075# Try to create an executable without -o first, disregard a.out.
11076# It will help us diagnose broken compilers, and finding out an intuition
11077# of exeext.
ac1cb8d3
VS
11078echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11079echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11080ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11081if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11082 (eval $ac_link_default) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; then
11086 # Find the output, starting from the most likely. This scheme is
11087# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11088# resort.
11089
11090# Be careful to initialize this variable, since it used to be cached.
11091# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11092ac_cv_exeext=
11093# b.out is created by i960 compilers.
11094for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11095do
11096 test -f "$ac_file" || continue
11097 case $ac_file in
11098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11099 ;;
a848cd7e 11100 conftest.$ac_ext )
ac1cb8d3
VS
11101 # This is the source file.
11102 ;;
a848cd7e 11103 [ab].out )
ac1cb8d3
VS
11104 # We found the default executable, but exeext='' is most
11105 # certainly right.
11106 break;;
a848cd7e 11107 *.* )
ac1cb8d3
VS
11108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11109 # FIXME: I believe we export ac_cv_exeext for Libtool,
11110 # but it would be cool to find out if it's true. Does anybody
11111 # maintain Libtool? --akim.
11112 export ac_cv_exeext
11113 break;;
a848cd7e 11114 * )
ac1cb8d3 11115 break;;
a848cd7e
SC
11116 esac
11117done
11118else
11119 echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11123See \`config.log' for more details." >&5
11124echo "$as_me: error: C compiler cannot create executables
11125See \`config.log' for more details." >&2;}
11126 { (exit 77); exit 77; }; }
11127fi
11128
11129ac_exeext=$ac_cv_exeext
11130echo "$as_me:$LINENO: result: $ac_file" >&5
11131echo "${ECHO_T}$ac_file" >&6
11132
11133# Check the compiler produces executables we can run. If not, either
11134# the compiler is broken, or we cross compile.
11135echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11136echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11137# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11138# If not cross compiling, check that we can run a simple program.
11139if test "$cross_compiling" != yes; then
11140 if { ac_try='./$ac_file'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 cross_compiling=no
11147 else
11148 if test "$cross_compiling" = maybe; then
11149 cross_compiling=yes
11150 else
11151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11152If you meant to cross compile, use \`--host'.
11153See \`config.log' for more details." >&5
11154echo "$as_me: error: cannot run C compiled programs.
11155If you meant to cross compile, use \`--host'.
11156See \`config.log' for more details." >&2;}
11157 { (exit 1); exit 1; }; }
11158 fi
11159 fi
11160fi
11161echo "$as_me:$LINENO: result: yes" >&5
11162echo "${ECHO_T}yes" >&6
11163
11164rm -f a.out a.exe conftest$ac_cv_exeext b.out
11165ac_clean_files=$ac_clean_files_save
11166# Check the compiler produces executables we can run. If not, either
11167# the compiler is broken, or we cross compile.
11168echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11169echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11170echo "$as_me:$LINENO: result: $cross_compiling" >&5
11171echo "${ECHO_T}$cross_compiling" >&6
11172
11173echo "$as_me:$LINENO: checking for suffix of executables" >&5
11174echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; then
11180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11181# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11182# work properly (i.e., refer to `conftest.exe'), while it won't with
11183# `rm'.
11184for ac_file in conftest.exe conftest conftest.*; do
11185 test -f "$ac_file" || continue
11186 case $ac_file in
11187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11189 export ac_cv_exeext
11190 break;;
a848cd7e
SC
11191 * ) break;;
11192 esac
11193done
11194else
11195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11196See \`config.log' for more details." >&5
11197echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11198See \`config.log' for more details." >&2;}
11199 { (exit 1); exit 1; }; }
11200fi
11201
11202rm -f conftest$ac_cv_exeext
11203echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11204echo "${ECHO_T}$ac_cv_exeext" >&6
11205
11206rm -f conftest.$ac_ext
11207EXEEXT=$ac_cv_exeext
11208ac_exeext=$EXEEXT
11209echo "$as_me:$LINENO: checking for suffix of object files" >&5
11210echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11211if test "${ac_cv_objext+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213else
11214 cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
11219/* end confdefs.h. */
11220
11221int
11222main ()
11223{
11224
11225 ;
11226 return 0;
11227}
11228_ACEOF
11229rm -f conftest.o conftest.obj
11230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11231 (eval $ac_compile) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; then
11235 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11236 case $ac_file in
11237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11239 break;;
11240 esac
11241done
11242else
11243 echo "$as_me: failed program was:" >&5
11244sed 's/^/| /' conftest.$ac_ext >&5
11245
11246{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11247See \`config.log' for more details." >&5
11248echo "$as_me: error: cannot compute suffix of object files: cannot compile
11249See \`config.log' for more details." >&2;}
11250 { (exit 1); exit 1; }; }
11251fi
11252
11253rm -f conftest.$ac_cv_objext conftest.$ac_ext
11254fi
11255echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11256echo "${ECHO_T}$ac_cv_objext" >&6
11257OBJEXT=$ac_cv_objext
11258ac_objext=$OBJEXT
11259echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11260echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11261if test "${ac_cv_c_compiler_gnu+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263else
11264 cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
11270
11271int
11272main ()
11273{
11274#ifndef __GNUC__
11275 choke me
11276#endif
11277
11278 ;
11279 return 0;
11280}
11281_ACEOF
11282rm -f conftest.$ac_objext
11283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11284 (eval $ac_compile) 2>conftest.er1
a848cd7e 11285 ac_status=$?
ac1cb8d3
VS
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
a848cd7e
SC
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
6ebeb4c7 11291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_compiler_gnu=yes
11304else
11305 echo "$as_me: failed program was:" >&5
11306sed 's/^/| /' conftest.$ac_ext >&5
11307
11308ac_compiler_gnu=no
11309fi
ac1cb8d3 11310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11311ac_cv_c_compiler_gnu=$ac_compiler_gnu
11312
11313fi
11314echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11315echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11316GCC=`test $ac_compiler_gnu = yes && echo yes`
11317ac_test_CFLAGS=${CFLAGS+set}
11318ac_save_CFLAGS=$CFLAGS
0ee4059d 11319CFLAGS="$CFLAGS -g"
a848cd7e
SC
11320echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11321echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11322if test "${ac_cv_prog_cc_g+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331
11332int
11333main ()
11334{
11335
11336 ;
11337 return 0;
11338}
11339_ACEOF
11340rm -f conftest.$ac_objext
11341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11342 (eval $ac_compile) 2>conftest.er1
a848cd7e 11343 ac_status=$?
ac1cb8d3
VS
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
a848cd7e
SC
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
6ebeb4c7 11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_cv_prog_cc_g=yes
11362else
11363 echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
11366ac_cv_prog_cc_g=no
11367fi
ac1cb8d3 11368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11369fi
11370echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11371echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11372if test "$ac_test_CFLAGS" = set; then
11373 CFLAGS=$ac_save_CFLAGS
11374elif test $ac_cv_prog_cc_g = yes; then
11375 if test "$GCC" = yes; then
11376 CFLAGS="-g -O2"
11377 else
11378 CFLAGS="-g"
11379 fi
11380else
11381 if test "$GCC" = yes; then
11382 CFLAGS="-O2"
11383 else
11384 CFLAGS=
11385 fi
11386fi
11387echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11388echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11389if test "${ac_cv_prog_cc_stdc+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 ac_cv_prog_cc_stdc=no
11393ac_save_CC=$CC
11394cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
11400#include <stdarg.h>
11401#include <stdio.h>
11402#include <sys/types.h>
11403#include <sys/stat.h>
11404/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11405struct buf { int x; };
11406FILE * (*rcsopen) (struct buf *, struct stat *, int);
11407static char *e (p, i)
11408 char **p;
11409 int i;
11410{
11411 return p[i];
11412}
11413static char *f (char * (*g) (char **, int), char **p, ...)
11414{
11415 char *s;
11416 va_list v;
11417 va_start (v,p);
11418 s = g (p, va_arg (v,int));
11419 va_end (v);
11420 return s;
11421}
ac1cb8d3
VS
11422
11423/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11424 function prototypes and stuff, but not '\xHH' hex character constants.
11425 These don't provoke an error unfortunately, instead are silently treated
11426 as 'x'. The following induces an error, until -std1 is added to get
11427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11428 array size at least. It's necessary to write '\x00'==0 to get something
11429 that's true only with -std1. */
11430int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11431
a848cd7e
SC
11432int test (int i, double x);
11433struct s1 {int (*f) (int a);};
11434struct s2 {int (*f) (double a);};
11435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11436int argc;
11437char **argv;
11438int
11439main ()
11440{
11441return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11442 ;
11443 return 0;
11444}
11445_ACEOF
11446# Don't try gcc -ansi; that turns off useful extensions and
11447# breaks some systems' header files.
11448# AIX -qlanglvl=ansi
11449# Ultrix and OSF/1 -std1
11450# HP-UX 10.20 and later -Ae
11451# HP-UX older versions -Aa -D_HPUX_SOURCE
11452# SVR4 -Xc -D__EXTENSIONS__
11453for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11454do
11455 CC="$ac_save_CC $ac_arg"
11456 rm -f conftest.$ac_objext
11457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11458 (eval $ac_compile) 2>conftest.er1
a848cd7e 11459 ac_status=$?
ac1cb8d3
VS
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
a848cd7e
SC
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
6ebeb4c7 11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_prog_cc_stdc=$ac_arg
11478break
11479else
11480 echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483fi
ac1cb8d3 11484rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11485done
11486rm -f conftest.$ac_ext conftest.$ac_objext
11487CC=$ac_save_CC
11488
11489fi
11490
11491case "x$ac_cv_prog_cc_stdc" in
11492 x|xno)
11493 echo "$as_me:$LINENO: result: none needed" >&5
11494echo "${ECHO_T}none needed" >&6 ;;
11495 *)
11496 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11497echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11498 CC="$CC $ac_cv_prog_cc_stdc" ;;
11499esac
11500
11501# Some people use a C++ compiler to compile C. Since we use `exit',
11502# in C++ we need to declare it. In case someone uses the same compiler
11503# for both compiling C and C++ we need to have the C++ compiler decide
11504# the declaration of exit, since it's the most demanding environment.
11505cat >conftest.$ac_ext <<_ACEOF
11506#ifndef __cplusplus
11507 choke me
11508#endif
11509_ACEOF
11510rm -f conftest.$ac_objext
11511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11512 (eval $ac_compile) 2>conftest.er1
a848cd7e 11513 ac_status=$?
ac1cb8d3
VS
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
a848cd7e
SC
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
6ebeb4c7 11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 for ac_declaration in \
ac1cb8d3 11532 '' \
a848cd7e
SC
11533 'extern "C" void std::exit (int) throw (); using std::exit;' \
11534 'extern "C" void std::exit (int); using std::exit;' \
11535 'extern "C" void exit (int) throw ();' \
11536 'extern "C" void exit (int);' \
11537 'void exit (int);'
11538do
11539 cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
de59c161 11545$ac_declaration
ac1cb8d3 11546#include <stdlib.h>
a848cd7e
SC
11547int
11548main ()
11549{
11550exit (42);
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext
11556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11557 (eval $ac_compile) 2>conftest.er1
a848cd7e 11558 ac_status=$?
ac1cb8d3
VS
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
a848cd7e
SC
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
6ebeb4c7 11564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 :
11577else
11578 echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
11580
11581continue
11582fi
ac1cb8d3 11583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11584 cat >conftest.$ac_ext <<_ACEOF
11585/* confdefs.h. */
11586_ACEOF
11587cat confdefs.h >>conftest.$ac_ext
11588cat >>conftest.$ac_ext <<_ACEOF
11589/* end confdefs.h. */
11590$ac_declaration
11591int
11592main ()
11593{
11594exit (42);
11595 ;
11596 return 0;
11597}
11598_ACEOF
11599rm -f conftest.$ac_objext
11600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11601 (eval $ac_compile) 2>conftest.er1
a848cd7e 11602 ac_status=$?
ac1cb8d3
VS
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
a848cd7e
SC
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
6ebeb4c7 11608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 break
11621else
11622 echo "$as_me: failed program was:" >&5
11623sed 's/^/| /' conftest.$ac_ext >&5
11624
11625fi
ac1cb8d3 11626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11627done
11628rm -f conftest*
11629if test -n "$ac_declaration"; then
11630 echo '#ifdef __cplusplus' >>confdefs.h
11631 echo $ac_declaration >>confdefs.h
11632 echo '#endif' >>confdefs.h
11633fi
11634
11635else
11636 echo "$as_me: failed program was:" >&5
11637sed 's/^/| /' conftest.$ac_ext >&5
11638
11639fi
ac1cb8d3 11640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11641ac_ext=c
11642ac_cpp='$CPP $CPPFLAGS'
11643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645ac_compiler_gnu=$ac_cv_c_compiler_gnu
11646
ab0ad5f1
VZ
11647
11648
11649 ac_ext=c
11650ac_cpp='$CPP $CPPFLAGS'
11651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653ac_compiler_gnu=$ac_cv_c_compiler_gnu
11654
11655 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11656echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11657if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659else
11660 cat >conftest.$ac_ext <<_ACEOF
11661/* confdefs.h. */
11662_ACEOF
11663cat confdefs.h >>conftest.$ac_ext
11664cat >>conftest.$ac_ext <<_ACEOF
11665/* end confdefs.h. */
11666
11667int
11668main ()
11669{
11670
11671 #ifndef __INTEL_COMPILER
11672 choke me
11673 #endif
11674
11675 ;
11676 return 0;
11677}
11678_ACEOF
11679rm -f conftest.$ac_objext
11680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681 (eval $ac_compile) 2>conftest.er1
11682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11701else
11702 echo "$as_me: failed program was:" >&5
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
11705bakefile_cv_c_compiler___INTEL_COMPILER=no
11706
11707fi
11708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11709
11710
11711fi
11712echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11713echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11714 ac_ext=c
11715ac_cpp='$CPP $CPPFLAGS'
11716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718ac_compiler_gnu=$ac_cv_c_compiler_gnu
11719
11720 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11721 :; INTELCC=yes
11722 else
11723 :;
11724 fi
11725
11726
11727 if test "x$GCC" != "xyes"; then
11728 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11729echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11730if test "${wx_cv_c_exto+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732else
11733 cat >conftest.$ac_ext <<_ACEOF
11734/* confdefs.h. */
11735_ACEOF
11736cat confdefs.h >>conftest.$ac_ext
11737cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h. */
11739
11740int
11741main ()
11742{
11743
11744 ;
11745 return 0;
11746}
11747_ACEOF
11748rm -f conftest.$ac_objext conftest.$ac_ext.o
11749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11750 (eval $ac_compile) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; then
11754 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11755 case $ac_file in
11756 conftest.$ac_ext.o)
11757 wx_cv_c_exto="-ext o"
11758 ;;
11759 *)
11760 ;;
11761 esac
11762done
11763else
11764 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11765See \`config.log' for more details." >&5
11766echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11767See \`config.log' for more details." >&2;}
11768 { (exit 1); exit 1; }; }
11769
11770fi
11771
11772rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11773
11774fi
11775echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11776echo "${ECHO_T}$wx_cv_c_exto" >&6
11777if test "x$wx_cv_c_exto" '!=' "x"; then
11778 if test "c" = "c"; then
11779 CFLAGS="$wx_cv_c_exto $CFLAGS"
11780 fi
11781 if test "c" = "cxx"; then
11782 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11783 fi
11784fi
11785
ab0ad5f1
VZ
11786 if test "x$wx_cv_c_exto" '!=' "x"; then
11787 unset ac_cv_prog_cc_g
11788 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11789ac_save_CFLAGS=$CFLAGS
0ee4059d 11790CFLAGS="$CFLAGS -g"
480ccd21
DE
11791echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11792echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11793if test "${ac_cv_prog_cc_g+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h. */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h. */
11802
11803int
11804main ()
11805{
11806
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext
11812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
6ebeb4c7 11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; } &&
11826 { ac_try='test -s conftest.$ac_objext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_cv_prog_cc_g=yes
11833else
11834 echo "$as_me: failed program was:" >&5
11835sed 's/^/| /' conftest.$ac_ext >&5
11836
11837ac_cv_prog_cc_g=no
11838fi
11839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840fi
11841echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11842echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11843if test "$ac_test_CFLAGS" = set; then
11844 CFLAGS=$ac_save_CFLAGS
11845elif test $ac_cv_prog_cc_g = yes; then
11846 if test "$GCC" = yes; then
11847 CFLAGS="-g -O2"
11848 else
11849 CFLAGS="-g"
11850 fi
11851else
11852 if test "$GCC" = yes; then
11853 CFLAGS="-O2"
11854 else
11855 CFLAGS=
11856 fi
11857fi
ab0ad5f1
VZ
11858 fi
11859 ac_ext=c
95986553
DE
11860ac_cpp='$CPP $CPPFLAGS'
11861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863ac_compiler_gnu=$ac_cv_c_compiler_gnu
11864
11865echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11866echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11867if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869else
11870 cat >conftest.$ac_ext <<_ACEOF
11871/* confdefs.h. */
11872_ACEOF
11873cat confdefs.h >>conftest.$ac_ext
11874cat >>conftest.$ac_ext <<_ACEOF
11875/* end confdefs.h. */
11876
11877int
11878main ()
11879{
11880#ifndef __MWERKS__
11881 choke me
11882#endif
11883
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext
11889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890 (eval $ac_compile) 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
6ebeb4c7 11897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 bakefile_compiler_mwerks=yes
11910else
11911 echo "$as_me: failed program was:" >&5
11912sed 's/^/| /' conftest.$ac_ext >&5
11913
11914bakefile_compiler_mwerks=no
11915fi
11916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11918
11919fi
11920echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11921echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11922
0e6fa1d9 11923MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11924ac_ext=c
11925ac_cpp='$CPP $CPPFLAGS'
11926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928ac_compiler_gnu=$ac_cv_c_compiler_gnu
11929
11930
ab0ad5f1 11931 ac_ext=c
9273ffba
DE
11932ac_cpp='$CPP $CPPFLAGS'
11933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11935ac_compiler_gnu=$ac_cv_c_compiler_gnu
11936
11937echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11938echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11939if test "${wx_cv_c_compiler_xlc+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h. */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h. */
11948
11949int
11950main ()
11951{
11952#ifndef __xlC__
11953 choke me
11954#endif
11955
11956 ;
11957 return 0;
11958}
11959_ACEOF
11960rm -f conftest.$ac_objext
11961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
6ebeb4c7 11969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 wx_compiler_xlc=yes
11982else
11983 echo "$as_me: failed program was:" >&5
11984sed 's/^/| /' conftest.$ac_ext >&5
11985
11986wx_compiler_xlc=no
11987fi
11988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11989 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11990
11991fi
11992echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11993echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11994
0e6fa1d9 11995XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11996ac_ext=c
11997ac_cpp='$CPP $CPPFLAGS'
11998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12000ac_compiler_gnu=$ac_cv_c_compiler_gnu
12001
12002
a848cd7e 12003
6dcfc289 12004
0ad5d837
VZ
12005 ac_ext=c
12006ac_cpp='$CPP $CPPFLAGS'
12007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010
12011 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12012echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12013if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015else
12016 cat >conftest.$ac_ext <<_ACEOF
12017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
12022
12023int
12024main ()
12025{
12026
12027 #ifndef _SGI_COMPILER_VERSION
12028 choke me
12029 #endif
12030
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext
12036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } &&
12050 { ac_try='test -s conftest.$ac_objext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12062
12063fi
12064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065
12066
12067fi
12068echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12069echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12070 ac_ext=c
12071ac_cpp='$CPP $CPPFLAGS'
12072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075
12076 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12077 :; SGICC=yes
12078 else
12079 :;
12080 fi
12081
12082
12083
12084
a9e5b1f0
MW
12085 ac_ext=c
12086ac_cpp='$CPP $CPPFLAGS'
12087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12089ac_compiler_gnu=$ac_cv_c_compiler_gnu
12090
12091 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12092echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12093if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095else
12096 cat >conftest.$ac_ext <<_ACEOF
12097/* confdefs.h. */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h. */
12102
12103int
12104main ()
12105{
12106
12107 #ifndef __SUNPRO_C
12108 choke me
12109 #endif
12110
12111 ;
12112 return 0;
12113}
12114_ACEOF
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
6ebeb4c7 12124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest.$ac_objext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 bakefile_cv_c_compiler___SUNPRO_C=yes
12137else
12138 echo "$as_me: failed program was:" >&5
12139sed 's/^/| /' conftest.$ac_ext >&5
12140
12141bakefile_cv_c_compiler___SUNPRO_C=no
12142
12143fi
12144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145
12146
12147fi
12148echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12149echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12150 ac_ext=c
12151ac_cpp='$CPP $CPPFLAGS'
12152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154ac_compiler_gnu=$ac_cv_c_compiler_gnu
12155
12156 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12157 :; SUNCC=yes
12158 else
12159 :;
12160 fi
12161
12162
ab0ad5f1 12163 fi
a9e5b1f0
MW
12164
12165
a848cd7e
SC
12166ac_ext=c
12167ac_cpp='$CPP $CPPFLAGS'
12168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12170ac_compiler_gnu=$ac_cv_c_compiler_gnu
12171echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12172echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12173# On Suns, sometimes $CPP names a directory.
12174if test -n "$CPP" && test -d "$CPP"; then
12175 CPP=
12176fi
12177if test -z "$CPP"; then
12178 if test "${ac_cv_prog_CPP+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
12181 # Double quotes because CPP needs to be expanded
12182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12183 do
12184 ac_preproc_ok=false
12185for ac_c_preproc_warn_flag in '' yes
12186do
12187 # Use a header file that comes with gcc, so configuring glibc
12188 # with a fresh cross-compiler works.
12189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190 # <limits.h> exists even on freestanding compilers.
12191 # On the NeXT, cc -E runs the code through the compiler's parser,
12192 # not just through cpp. "Syntax error" is here to catch this case.
12193 cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199#ifdef __STDC__
12200# include <limits.h>
12201#else
12202# include <assert.h>
12203#endif
ac1cb8d3 12204 Syntax error
a848cd7e
SC
12205_ACEOF
12206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } >/dev/null; then
12214 if test -s conftest.err; then
12215 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12217 else
12218 ac_cpp_err=
12219 fi
12220else
12221 ac_cpp_err=yes
12222fi
12223if test -z "$ac_cpp_err"; then
12224 :
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 # Broken: fails on valid input.
12230continue
12231fi
12232rm -f conftest.err conftest.$ac_ext
12233
12234 # OK, works on sane cases. Now check whether non-existent headers
12235 # can be detected and how.
12236 cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242#include <ac_nonexistent.h>
12243_ACEOF
12244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } >/dev/null; then
12252 if test -s conftest.err; then
12253 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12255 else
12256 ac_cpp_err=
12257 fi
12258else
12259 ac_cpp_err=yes
12260fi
12261if test -z "$ac_cpp_err"; then
12262 # Broken: success on invalid input.
12263continue
12264else
12265 echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 # Passes both tests.
12269ac_preproc_ok=:
12270break
12271fi
12272rm -f conftest.err conftest.$ac_ext
12273
12274done
12275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12276rm -f conftest.err conftest.$ac_ext
12277if $ac_preproc_ok; then
12278 break
12279fi
12280
12281 done
12282 ac_cv_prog_CPP=$CPP
12283
12284fi
12285 CPP=$ac_cv_prog_CPP
12286else
12287 ac_cv_prog_CPP=$CPP
12288fi
12289echo "$as_me:$LINENO: result: $CPP" >&5
12290echo "${ECHO_T}$CPP" >&6
12291ac_preproc_ok=false
12292for ac_c_preproc_warn_flag in '' yes
12293do
12294 # Use a header file that comes with gcc, so configuring glibc
12295 # with a fresh cross-compiler works.
12296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12297 # <limits.h> exists even on freestanding compilers.
12298 # On the NeXT, cc -E runs the code through the compiler's parser,
12299 # not just through cpp. "Syntax error" is here to catch this case.
12300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306#ifdef __STDC__
12307# include <limits.h>
12308#else
12309# include <assert.h>
12310#endif
ac1cb8d3 12311 Syntax error
a848cd7e
SC
12312_ACEOF
12313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } >/dev/null; then
12321 if test -s conftest.err; then
12322 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12324 else
12325 ac_cpp_err=
12326 fi
12327else
12328 ac_cpp_err=yes
12329fi
12330if test -z "$ac_cpp_err"; then
12331 :
12332else
12333 echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 # Broken: fails on valid input.
12337continue
12338fi
12339rm -f conftest.err conftest.$ac_ext
12340
12341 # OK, works on sane cases. Now check whether non-existent headers
12342 # can be detected and how.
12343 cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349#include <ac_nonexistent.h>
12350_ACEOF
12351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } >/dev/null; then
12359 if test -s conftest.err; then
12360 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12362 else
12363 ac_cpp_err=
12364 fi
12365else
12366 ac_cpp_err=yes
12367fi
12368if test -z "$ac_cpp_err"; then
12369 # Broken: success on invalid input.
12370continue
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 # Passes both tests.
12376ac_preproc_ok=:
12377break
12378fi
12379rm -f conftest.err conftest.$ac_ext
12380
12381done
12382# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12383rm -f conftest.err conftest.$ac_ext
12384if $ac_preproc_ok; then
12385 :
12386else
12387 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12388See \`config.log' for more details." >&5
12389echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12390See \`config.log' for more details." >&2;}
12391 { (exit 1); exit 1; }; }
12392fi
12393
12394ac_ext=c
12395ac_cpp='$CPP $CPPFLAGS'
12396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398ac_compiler_gnu=$ac_cv_c_compiler_gnu
12399
12400
12401echo "$as_me:$LINENO: checking for egrep" >&5
12402echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12403if test "${ac_cv_prog_egrep+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405else
12406 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12407 then ac_cv_prog_egrep='grep -E'
12408 else ac_cv_prog_egrep='egrep'
12409 fi
12410fi
12411echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12412echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12413 EGREP=$ac_cv_prog_egrep
12414
12415
12416if test $ac_cv_c_compiler_gnu = yes; then
12417 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12418echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12419if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421else
12422 ac_pattern="Autoconf.*'x'"
12423 cat >conftest.$ac_ext <<_ACEOF
12424/* confdefs.h. */
12425_ACEOF
12426cat confdefs.h >>conftest.$ac_ext
12427cat >>conftest.$ac_ext <<_ACEOF
12428/* end confdefs.h. */
12429#include <sgtty.h>
12430Autoconf TIOCGETP
12431_ACEOF
12432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12433 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12434 ac_cv_prog_gcc_traditional=yes
12435else
12436 ac_cv_prog_gcc_traditional=no
12437fi
12438rm -f conftest*
12439
12440
12441 if test $ac_cv_prog_gcc_traditional = no; then
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448#include <termio.h>
12449Autoconf TCGETA
12450_ACEOF
12451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12453 ac_cv_prog_gcc_traditional=yes
12454fi
12455rm -f conftest*
12456
12457 fi
12458fi
12459echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12460echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12461 if test $ac_cv_prog_gcc_traditional = yes; then
12462 CC="$CC -traditional"
12463 fi
12464fi
12465
12466
12467
12468
12469ac_ext=cc
12470ac_cpp='$CXXCPP $CPPFLAGS'
12471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12474
12475
12476CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12477
12478
12479 ac_ext=cc
a848cd7e
SC
12480ac_cpp='$CXXCPP $CPPFLAGS'
12481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12484if test -n "$ac_tool_prefix"; then
12485 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12486 do
12487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12488set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12489echo "$as_me:$LINENO: checking for $ac_word" >&5
12490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12491if test "${ac_cv_prog_CXX+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493else
12494 if test -n "$CXX"; then
12495 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12496else
12497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498for as_dir in $PATH
12499do
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12504 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12506 break 2
12507 fi
12508done
12509done
12510
12511fi
12512fi
12513CXX=$ac_cv_prog_CXX
12514if test -n "$CXX"; then
12515 echo "$as_me:$LINENO: result: $CXX" >&5
12516echo "${ECHO_T}$CXX" >&6
12517else
12518 echo "$as_me:$LINENO: result: no" >&5
12519echo "${ECHO_T}no" >&6
12520fi
12521
12522 test -n "$CXX" && break
12523 done
12524fi
12525if test -z "$CXX"; then
12526 ac_ct_CXX=$CXX
12527 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12528do
12529 # Extract the first word of "$ac_prog", so it can be a program name with args.
12530set dummy $ac_prog; ac_word=$2
12531echo "$as_me:$LINENO: checking for $ac_word" >&5
12532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12533if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536 if test -n "$ac_ct_CXX"; then
12537 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12538else
12539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12540for as_dir in $PATH
12541do
12542 IFS=$as_save_IFS
12543 test -z "$as_dir" && as_dir=.
12544 for ac_exec_ext in '' $ac_executable_extensions; do
12545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12546 ac_cv_prog_ac_ct_CXX="$ac_prog"
12547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12548 break 2
12549 fi
12550done
12551done
12552
12553fi
12554fi
12555ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12556if test -n "$ac_ct_CXX"; then
12557 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12558echo "${ECHO_T}$ac_ct_CXX" >&6
12559else
12560 echo "$as_me:$LINENO: result: no" >&5
12561echo "${ECHO_T}no" >&6
12562fi
12563
12564 test -n "$ac_ct_CXX" && break
12565done
12566test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12567
12568 CXX=$ac_ct_CXX
12569fi
12570
12571
12572# Provide some information about the compiler.
12573echo "$as_me:$LINENO:" \
12574 "checking for C++ compiler version" >&5
12575ac_compiler=`set X $ac_compile; echo $2`
12576{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12577 (eval $ac_compiler --version </dev/null >&5) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }
12581{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12582 (eval $ac_compiler -v </dev/null >&5) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }
12586{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12587 (eval $ac_compiler -V </dev/null >&5) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }
12591
12592echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12593echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12594if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597 cat >conftest.$ac_ext <<_ACEOF
12598/* confdefs.h. */
12599_ACEOF
12600cat confdefs.h >>conftest.$ac_ext
12601cat >>conftest.$ac_ext <<_ACEOF
12602/* end confdefs.h. */
12603
12604int
12605main ()
12606{
12607#ifndef __GNUC__
12608 choke me
12609#endif
12610
12611 ;
12612 return 0;
12613}
12614_ACEOF
12615rm -f conftest.$ac_objext
12616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12617 (eval $ac_compile) 2>conftest.er1
a848cd7e 12618 ac_status=$?
ac1cb8d3
VS
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
a848cd7e
SC
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
6ebeb4c7 12624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 ac_compiler_gnu=yes
12637else
12638 echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
12641ac_compiler_gnu=no
12642fi
ac1cb8d3 12643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12644ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12645
12646fi
12647echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12648echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12649GXX=`test $ac_compiler_gnu = yes && echo yes`
12650ac_test_CXXFLAGS=${CXXFLAGS+set}
12651ac_save_CXXFLAGS=$CXXFLAGS
12652CXXFLAGS="-g"
12653echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12654echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12655if test "${ac_cv_prog_cxx_g+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657else
12658 cat >conftest.$ac_ext <<_ACEOF
12659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h. */
12664
12665int
12666main ()
12667{
12668
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673rm -f conftest.$ac_objext
12674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12675 (eval $ac_compile) 2>conftest.er1
a848cd7e 12676 ac_status=$?
ac1cb8d3
VS
12677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
a848cd7e
SC
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
6ebeb4c7 12682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 ac_cv_prog_cxx_g=yes
12695else
12696 echo "$as_me: failed program was:" >&5
12697sed 's/^/| /' conftest.$ac_ext >&5
12698
12699ac_cv_prog_cxx_g=no
12700fi
ac1cb8d3 12701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12702fi
12703echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12704echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12705if test "$ac_test_CXXFLAGS" = set; then
12706 CXXFLAGS=$ac_save_CXXFLAGS
12707elif test $ac_cv_prog_cxx_g = yes; then
12708 if test "$GXX" = yes; then
0ee4059d 12709 CXXFLAGS="$CXXFLAGS -g -O2"
a848cd7e 12710 else
0ee4059d 12711 CXXFLAGS="$CXXFLAGS -g"
a848cd7e
SC
12712 fi
12713else
12714 if test "$GXX" = yes; then
12715 CXXFLAGS="-O2"
12716 else
12717 CXXFLAGS=
12718 fi
12719fi
12720for ac_declaration in \
ac1cb8d3 12721 '' \
a848cd7e
SC
12722 'extern "C" void std::exit (int) throw (); using std::exit;' \
12723 'extern "C" void std::exit (int); using std::exit;' \
12724 'extern "C" void exit (int) throw ();' \
12725 'extern "C" void exit (int);' \
12726 'void exit (int);'
12727do
12728 cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
de59c161 12734$ac_declaration
ac1cb8d3 12735#include <stdlib.h>
a848cd7e
SC
12736int
12737main ()
12738{
12739exit (42);
12740 ;
12741 return 0;
12742}
12743_ACEOF
12744rm -f conftest.$ac_objext
12745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12746 (eval $ac_compile) 2>conftest.er1
a848cd7e 12747 ac_status=$?
ac1cb8d3
VS
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
a848cd7e
SC
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
6ebeb4c7 12753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 :
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770continue
12771fi
ac1cb8d3 12772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12773 cat >conftest.$ac_ext <<_ACEOF
12774/* confdefs.h. */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h. */
12779$ac_declaration
12780int
12781main ()
12782{
12783exit (42);
12784 ;
12785 return 0;
12786}
12787_ACEOF
12788rm -f conftest.$ac_objext
12789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12790 (eval $ac_compile) 2>conftest.er1
a848cd7e 12791 ac_status=$?
ac1cb8d3
VS
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
a848cd7e
SC
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
6ebeb4c7 12797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 break
12810else
12811 echo "$as_me: failed program was:" >&5
12812sed 's/^/| /' conftest.$ac_ext >&5
12813
12814fi
ac1cb8d3 12815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12816done
12817rm -f conftest*
12818if test -n "$ac_declaration"; then
12819 echo '#ifdef __cplusplus' >>confdefs.h
12820 echo $ac_declaration >>confdefs.h
12821 echo '#endif' >>confdefs.h
12822fi
12823
12824ac_ext=cc
12825ac_cpp='$CXXCPP $CPPFLAGS'
12826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12829
ab0ad5f1
VZ
12830
12831
12832 ac_ext=cc
12833ac_cpp='$CXXCPP $CPPFLAGS'
12834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12837
12838 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
12839echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
12840if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842else
12843 cat >conftest.$ac_ext <<_ACEOF
12844/* confdefs.h. */
12845_ACEOF
12846cat confdefs.h >>conftest.$ac_ext
12847cat >>conftest.$ac_ext <<_ACEOF
12848/* end confdefs.h. */
12849
12850int
12851main ()
12852{
12853
12854 #ifndef __INTEL_COMPILER
12855 choke me
12856 #endif
12857
12858 ;
12859 return 0;
12860}
12861_ACEOF
12862rm -f conftest.$ac_objext
12863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
12884else
12885 echo "$as_me: failed program was:" >&5
12886sed 's/^/| /' conftest.$ac_ext >&5
12887
12888bakefile_cv_cxx_compiler___INTEL_COMPILER=no
12889
12890fi
12891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12892
12893
12894fi
12895echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
12896echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
12897 ac_ext=cc
12898ac_cpp='$CXXCPP $CPPFLAGS'
12899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12902
12903 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
12904 :; INTELCXX=yes
12905 else
12906 :;
12907 fi
12908
12909
12910 if test "x$GXX" != "xyes"; then
12911 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12912echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12913if test "${wx_cv_cxx_exto+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915else
12916 cat >conftest.$ac_ext <<_ACEOF
12917/* confdefs.h. */
12918_ACEOF
12919cat confdefs.h >>conftest.$ac_ext
12920cat >>conftest.$ac_ext <<_ACEOF
12921/* end confdefs.h. */
12922
12923int
12924main ()
12925{
12926
12927 ;
12928 return 0;
12929}
12930_ACEOF
12931rm -f conftest.$ac_objext conftest.$ac_ext.o
12932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12933 (eval $ac_compile) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; then
12937 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12938 case $ac_file in
12939 conftest.$ac_ext.o)
12940 wx_cv_cxx_exto="-ext o"
12941 ;;
12942 *)
12943 ;;
12944 esac
12945done
12946else
12947 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12948See \`config.log' for more details." >&5
12949echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12950See \`config.log' for more details." >&2;}
12951 { (exit 1); exit 1; }; }
12952
12953fi
12954
12955rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12956
12957fi
12958echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12959echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12960if test "x$wx_cv_cxx_exto" '!=' "x"; then
12961 if test "cxx" = "c"; then
12962 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12963 fi
12964 if test "cxx" = "cxx"; then
12965 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12966 fi
12967fi
12968
ab0ad5f1
VZ
12969 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12970 unset ac_cv_prog_cxx_g
12971 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12972ac_save_CXXFLAGS=$CXXFLAGS
12973CXXFLAGS="-g"
12974echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12975echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12976if test "${ac_cv_prog_cxx_g+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978else
12979 cat >conftest.$ac_ext <<_ACEOF
12980/* confdefs.h. */
12981_ACEOF
12982cat confdefs.h >>conftest.$ac_ext
12983cat >>conftest.$ac_ext <<_ACEOF
12984/* end confdefs.h. */
12985
12986int
12987main ()
12988{
12989
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994rm -f conftest.$ac_objext
12995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12996 (eval $ac_compile) 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } &&
6ebeb4c7 13003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest.$ac_objext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 ac_cv_prog_cxx_g=yes
13016else
13017 echo "$as_me: failed program was:" >&5
13018sed 's/^/| /' conftest.$ac_ext >&5
13019
13020ac_cv_prog_cxx_g=no
13021fi
13022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13023fi
13024echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13025echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13026if test "$ac_test_CXXFLAGS" = set; then
13027 CXXFLAGS=$ac_save_CXXFLAGS
13028elif test $ac_cv_prog_cxx_g = yes; then
13029 if test "$GXX" = yes; then
0ee4059d 13030 CXXFLAGS="$CXXFLAGS -g -O2"
480ccd21 13031 else
0ee4059d 13032 CXXFLAGS="$CXXFLAGS -g"
480ccd21
DE
13033 fi
13034else
13035 if test "$GXX" = yes; then
13036 CXXFLAGS="-O2"
13037 else
13038 CXXFLAGS=
13039 fi
13040fi
ab0ad5f1
VZ
13041 fi
13042 ac_ext=cc
95986553
DE
13043ac_cpp='$CXXCPP $CPPFLAGS'
13044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13047
13048echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13049echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13050if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052else
13053 cat >conftest.$ac_ext <<_ACEOF
13054/* confdefs.h. */
13055_ACEOF
13056cat confdefs.h >>conftest.$ac_ext
13057cat >>conftest.$ac_ext <<_ACEOF
13058/* end confdefs.h. */
13059
13060int
13061main ()
13062{
13063#ifndef __MWERKS__
13064 choke me
13065#endif
13066
13067 ;
13068 return 0;
13069}
13070_ACEOF
13071rm -f conftest.$ac_objext
13072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13073 (eval $ac_compile) 2>conftest.er1
13074 ac_status=$?
13075 grep -v '^ *+' conftest.er1 >conftest.err
13076 rm -f conftest.er1
13077 cat conftest.err >&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
6ebeb4c7 13080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest.$ac_objext'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13092 bakefile_compiler_mwerks=yes
13093else
13094 echo "$as_me: failed program was:" >&5
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
13097bakefile_compiler_mwerks=no
13098fi
13099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13100 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13101
13102fi
13103echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13104echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13105
0e6fa1d9 13106MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13107ac_ext=cc
13108ac_cpp='$CXXCPP $CPPFLAGS'
13109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13112
13113
ab0ad5f1 13114 ac_ext=cc
9273ffba
DE
13115ac_cpp='$CXXCPP $CPPFLAGS'
13116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13119
13120echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13121echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13122if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13124else
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131
13132int
13133main ()
13134{
13135#ifndef __xlC__
13136 choke me
13137#endif
13138
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext
13144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
6ebeb4c7 13152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest.$ac_objext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 wx_compiler_xlc=yes
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169wx_compiler_xlc=no
13170fi
13171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13172 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
13173
13174fi
13175echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
13176echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
13177
0e6fa1d9 13178XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13179ac_ext=cc
13180ac_cpp='$CXXCPP $CPPFLAGS'
13181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13184
13185
95986553 13186
6dcfc289 13187
0ad5d837
VZ
13188 ac_ext=cc
13189ac_cpp='$CXXCPP $CPPFLAGS'
13190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13193
13194 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13195echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13196if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13198else
13199 cat >conftest.$ac_ext <<_ACEOF
13200/* confdefs.h. */
13201_ACEOF
13202cat confdefs.h >>conftest.$ac_ext
13203cat >>conftest.$ac_ext <<_ACEOF
13204/* end confdefs.h. */
13205
13206int
13207main ()
13208{
13209
13210 #ifndef _SGI_COMPILER_VERSION
13211 choke me
13212 #endif
13213
13214 ;
13215 return 0;
13216}
13217_ACEOF
13218rm -f conftest.$ac_objext
13219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13220 (eval $ac_compile) 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } &&
13227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13240else
13241 echo "$as_me: failed program was:" >&5
13242sed 's/^/| /' conftest.$ac_ext >&5
13243
13244bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13245
13246fi
13247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13248
13249
13250fi
13251echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13252echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13253 ac_ext=cc
13254ac_cpp='$CXXCPP $CPPFLAGS'
13255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13258
13259 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13260 :; SGICXX=yes
13261 else
13262 :;
13263 fi
13264
13265
13266
13267
a9e5b1f0
MW
13268 ac_ext=cc
13269ac_cpp='$CXXCPP $CPPFLAGS'
13270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13273
13274 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13275echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13276if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278else
13279 cat >conftest.$ac_ext <<_ACEOF
13280/* confdefs.h. */
13281_ACEOF
13282cat confdefs.h >>conftest.$ac_ext
13283cat >>conftest.$ac_ext <<_ACEOF
13284/* end confdefs.h. */
13285
13286int
13287main ()
13288{
13289
13290 #ifndef __SUNPRO_CC
13291 choke me
13292 #endif
13293
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298rm -f conftest.$ac_objext
13299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13300 (eval $ac_compile) 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
6ebeb4c7 13307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324bakefile_cv_cxx_compiler___SUNPRO_CC=no
13325
13326fi
13327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13328
13329
13330fi
13331echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13332echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13333 ac_ext=cc
13334ac_cpp='$CXXCPP $CPPFLAGS'
13335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13338
13339 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13340 :; SUNCXX=yes
13341 else
13342 :;
13343 fi
13344
13345
ab0ad5f1 13346 fi
a9e5b1f0
MW
13347
13348
a848cd7e
SC
13349ac_ext=c
13350ac_cpp='$CPP $CPPFLAGS'
13351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354
13355
a848cd7e
SC
13356if test -n "$ac_tool_prefix"; then
13357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13358set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13359echo "$as_me:$LINENO: checking for $ac_word" >&5
13360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13361if test "${ac_cv_prog_RANLIB+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363else
13364 if test -n "$RANLIB"; then
13365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13366else
13367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368for as_dir in $PATH
13369do
13370 IFS=$as_save_IFS
13371 test -z "$as_dir" && as_dir=.
13372 for ac_exec_ext in '' $ac_executable_extensions; do
13373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13374 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13376 break 2
13377 fi
13378done
13379done
13380
13381fi
13382fi
13383RANLIB=$ac_cv_prog_RANLIB
13384if test -n "$RANLIB"; then
13385 echo "$as_me:$LINENO: result: $RANLIB" >&5
13386echo "${ECHO_T}$RANLIB" >&6
13387else
13388 echo "$as_me:$LINENO: result: no" >&5
13389echo "${ECHO_T}no" >&6
13390fi
13391
13392fi
13393if test -z "$ac_cv_prog_RANLIB"; then
13394 ac_ct_RANLIB=$RANLIB
13395 # Extract the first word of "ranlib", so it can be a program name with args.
13396set dummy ranlib; ac_word=$2
13397echo "$as_me:$LINENO: checking for $ac_word" >&5
13398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13399if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401else
13402 if test -n "$ac_ct_RANLIB"; then
13403 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13404else
13405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412 ac_cv_prog_ac_ct_RANLIB="ranlib"
13413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13415 fi
13416done
13417done
13418
13419 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13420fi
13421fi
13422ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13423if test -n "$ac_ct_RANLIB"; then
13424 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13425echo "${ECHO_T}$ac_ct_RANLIB" >&6
13426else
13427 echo "$as_me:$LINENO: result: no" >&5
13428echo "${ECHO_T}no" >&6
13429fi
13430
13431 RANLIB=$ac_ct_RANLIB
13432else
13433 RANLIB="$ac_cv_prog_RANLIB"
13434fi
13435
13436
8c80d384
DE
13437if test -n "$ac_tool_prefix"; then
13438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13439set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
13440echo "$as_me:$LINENO: checking for $ac_word" >&5
13441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13442if test "${ac_cv_prog_AR+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445 if test -n "$AR"; then
13446 ac_cv_prog_AR="$AR" # Let the user override the test.
13447else
13448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449for as_dir in $PATH
13450do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13455 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
13456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459done
13460done
13461
13462fi
13463fi
13464AR=$ac_cv_prog_AR
13465if test -n "$AR"; then
13466 echo "$as_me:$LINENO: result: $AR" >&5
13467echo "${ECHO_T}$AR" >&6
13468else
13469 echo "$as_me:$LINENO: result: no" >&5
13470echo "${ECHO_T}no" >&6
13471fi
13472
8c80d384
DE
13473fi
13474if test -z "$ac_cv_prog_AR"; then
13475 ac_ct_AR=$AR
13476 # Extract the first word of "ar", so it can be a program name with args.
13477set dummy ar; ac_word=$2
13478echo "$as_me:$LINENO: checking for $ac_word" >&5
13479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13480if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482else
13483 if test -n "$ac_ct_AR"; then
13484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13485else
13486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487for as_dir in $PATH
13488do
13489 IFS=$as_save_IFS
13490 test -z "$as_dir" && as_dir=.
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13493 ac_cv_prog_ac_ct_AR="ar"
13494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13495 break 2
13496 fi
13497done
13498done
13499
13500fi
13501fi
13502ac_ct_AR=$ac_cv_prog_ac_ct_AR
13503if test -n "$ac_ct_AR"; then
13504 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13505echo "${ECHO_T}$ac_ct_AR" >&6
13506else
13507 echo "$as_me:$LINENO: result: no" >&5
13508echo "${ECHO_T}no" >&6
13509fi
13510
13511 AR=$ac_ct_AR
13512else
13513 AR="$ac_cv_prog_AR"
13514fi
13515
a848cd7e 13516if test "x$AR" = "x" ; then
77ffb593
JS
13517 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13518echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13519 { (exit 1); exit 1; }; }
13520fi
13521
13522# Find a good install program. We prefer a C program (faster),
13523# so one script is as good as another. But avoid the broken or
13524# incompatible versions:
13525# SysV /etc/install, /usr/sbin/install
13526# SunOS /usr/etc/install
13527# IRIX /sbin/install
13528# AIX /bin/install
13529# AmigaOS /C/install, which installs bootblocks on floppy discs
13530# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13531# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13532# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13533# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13534# ./install, which can be erroneously created by make from ./install.sh.
13535echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13536echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13537if test -z "$INSTALL"; then
13538if test "${ac_cv_path_install+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540else
13541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542for as_dir in $PATH
13543do
13544 IFS=$as_save_IFS
13545 test -z "$as_dir" && as_dir=.
13546 # Account for people who put trailing slashes in PATH elements.
13547case $as_dir/ in
13548 ./ | .// | /cC/* | \
13549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13550 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13551 /usr/ucb/* ) ;;
13552 *)
13553 # OSF1 and SCO ODT 3.0 have their own names for install.
13554 # Don't use installbsd from OSF since it installs stuff as root
13555 # by default.
13556 for ac_prog in ginstall scoinst install; do
13557 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13558 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13559 if test $ac_prog = install &&
13560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13561 # AIX install. It has an incompatible calling convention.
13562 :
13563 elif test $ac_prog = install &&
13564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13565 # program-specific install script used by HP pwplus--don't use.
13566 :
13567 else
13568 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13569 break 3
13570 fi
13571 fi
a848cd7e
SC
13572 done
13573 done
13574 ;;
13575esac
13576done
13577
13578
13579fi
13580 if test "${ac_cv_path_install+set}" = set; then
13581 INSTALL=$ac_cv_path_install
13582 else
13583 # As a last resort, use the slow shell script. We don't cache a
13584 # path for INSTALL within a source directory, because that will
13585 # break other packages using the cache if that directory is
13586 # removed, or if the path is relative.
13587 INSTALL=$ac_install_sh
13588 fi
13589fi
13590echo "$as_me:$LINENO: result: $INSTALL" >&5
13591echo "${ECHO_T}$INSTALL" >&6
13592
13593# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13594# It thinks the first close brace ends the variable substitution.
13595test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13596
13597test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13598
13599test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13600
13601
13602case ${INSTALL} in
13603 /* ) # Absolute
13604 ;;
13605 ?:* ) # Drive letter, considered as absolute.
13606 ;;
13607 *)
13608 INSTALL=`pwd`/${INSTALL} ;;
13609esac
13610
a848cd7e
SC
13611
13612case "${host}" in
13613
cfda0ea8 13614 *-*-darwin* )
a848cd7e
SC
13615 INSTALL_PROGRAM="cp -fp"
13616 INSTALL_DATA="cp -fp"
13617 ;;
13618 *)
13619 ;;
13620esac
13621
8c80d384
DE
13622if test -n "$ac_tool_prefix"; then
13623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13624set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
13625echo "$as_me:$LINENO: checking for $ac_word" >&5
13626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13627if test "${ac_cv_prog_STRIP+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629else
13630 if test -n "$STRIP"; then
13631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13632else
13633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634for as_dir in $PATH
13635do
13636 IFS=$as_save_IFS
13637 test -z "$as_dir" && as_dir=.
13638 for ac_exec_ext in '' $ac_executable_extensions; do
13639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
13641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 break 2
13643 fi
13644done
13645done
13646
a848cd7e
SC
13647fi
13648fi
13649STRIP=$ac_cv_prog_STRIP
13650if test -n "$STRIP"; then
13651 echo "$as_me:$LINENO: result: $STRIP" >&5
13652echo "${ECHO_T}$STRIP" >&6
13653else
13654 echo "$as_me:$LINENO: result: no" >&5
13655echo "${ECHO_T}no" >&6
13656fi
13657
8c80d384
DE
13658fi
13659if test -z "$ac_cv_prog_STRIP"; then
13660 ac_ct_STRIP=$STRIP
13661 # Extract the first word of "strip", so it can be a program name with args.
13662set dummy strip; ac_word=$2
13663echo "$as_me:$LINENO: checking for $ac_word" >&5
13664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13665if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668 if test -n "$ac_ct_STRIP"; then
13669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13670else
13671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672for as_dir in $PATH
13673do
13674 IFS=$as_save_IFS
13675 test -z "$as_dir" && as_dir=.
13676 for ac_exec_ext in '' $ac_executable_extensions; do
13677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678 ac_cv_prog_ac_ct_STRIP="strip"
13679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13680 break 2
13681 fi
13682done
13683done
13684
13685 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
13686fi
13687fi
13688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13689if test -n "$ac_ct_STRIP"; then
13690 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13691echo "${ECHO_T}$ac_ct_STRIP" >&6
13692else
13693 echo "$as_me:$LINENO: result: no" >&5
13694echo "${ECHO_T}no" >&6
13695fi
13696
13697 STRIP=$ac_ct_STRIP
13698else
13699 STRIP="$ac_cv_prog_STRIP"
13700fi
13701
13702
13703if test "$wxUSE_WINE" = "yes"; then
13704 if test -n "$ac_tool_prefix"; then
13705 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
13706set dummy ${ac_tool_prefix}wrc; ac_word=$2
13707echo "$as_me:$LINENO: checking for $ac_word" >&5
13708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13709if test "${ac_cv_prog_RESCOMP+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711else
13712 if test -n "$RESCOMP"; then
13713 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13714else
13715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716for as_dir in $PATH
13717do
13718 IFS=$as_save_IFS
13719 test -z "$as_dir" && as_dir=.
13720 for ac_exec_ext in '' $ac_executable_extensions; do
13721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13722 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
13723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13724 break 2
13725 fi
13726done
13727done
13728
13729fi
13730fi
13731RESCOMP=$ac_cv_prog_RESCOMP
13732if test -n "$RESCOMP"; then
13733 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13734echo "${ECHO_T}$RESCOMP" >&6
13735else
13736 echo "$as_me:$LINENO: result: no" >&5
13737echo "${ECHO_T}no" >&6
13738fi
13739
13740fi
13741if test -z "$ac_cv_prog_RESCOMP"; then
13742 ac_ct_RESCOMP=$RESCOMP
13743 # Extract the first word of "wrc", so it can be a program name with args.
13744set dummy wrc; ac_word=$2
13745echo "$as_me:$LINENO: checking for $ac_word" >&5
13746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13747if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749else
13750 if test -n "$ac_ct_RESCOMP"; then
13751 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13752else
13753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754for as_dir in $PATH
13755do
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13760 ac_cv_prog_ac_ct_RESCOMP="wrc"
13761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13763 fi
13764done
13765done
13766
13767fi
13768fi
13769ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13770if test -n "$ac_ct_RESCOMP"; then
13771 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13772echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13773else
13774 echo "$as_me:$LINENO: result: no" >&5
13775echo "${ECHO_T}no" >&6
13776fi
13777
13778 RESCOMP=$ac_ct_RESCOMP
13779else
13780 RESCOMP="$ac_cv_prog_RESCOMP"
13781fi
13782
13783else
13784 case "${host}" in
13785 *-*-cygwin* | *-*-mingw32* )
13786 if test -n "$ac_tool_prefix"; then
13787 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13788set dummy ${ac_tool_prefix}windres; ac_word=$2
13789echo "$as_me:$LINENO: checking for $ac_word" >&5
13790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13791if test "${ac_cv_prog_RESCOMP+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793else
13794 if test -n "$RESCOMP"; then
13795 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13796else
13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798for as_dir in $PATH
13799do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
13805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808done
13809done
13810
13811fi
13812fi
13813RESCOMP=$ac_cv_prog_RESCOMP
13814if test -n "$RESCOMP"; then
13815 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13816echo "${ECHO_T}$RESCOMP" >&6
13817else
13818 echo "$as_me:$LINENO: result: no" >&5
13819echo "${ECHO_T}no" >&6
13820fi
13821
13822fi
13823if test -z "$ac_cv_prog_RESCOMP"; then
13824 ac_ct_RESCOMP=$RESCOMP
13825 # Extract the first word of "windres", so it can be a program name with args.
13826set dummy windres; ac_word=$2
13827echo "$as_me:$LINENO: checking for $ac_word" >&5
13828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13829if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831else
13832 if test -n "$ac_ct_RESCOMP"; then
13833 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13834else
13835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836for as_dir in $PATH
13837do
13838 IFS=$as_save_IFS
13839 test -z "$as_dir" && as_dir=.
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13842 ac_cv_prog_ac_ct_RESCOMP="windres"
13843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 break 2
13845 fi
13846done
13847done
13848
13849fi
13850fi
13851ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13852if test -n "$ac_ct_RESCOMP"; then
13853 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13854echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13855else
13856 echo "$as_me:$LINENO: result: no" >&5
13857echo "${ECHO_T}no" >&6
13858fi
13859
13860 RESCOMP=$ac_ct_RESCOMP
13861else
13862 RESCOMP="$ac_cv_prog_RESCOMP"
13863fi
13864
13865 if test -n "$ac_tool_prefix"; then
13866 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13867set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13868echo "$as_me:$LINENO: checking for $ac_word" >&5
13869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13870if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 if test -n "$DLLTOOL"; then
13874 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13875else
13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877for as_dir in $PATH
13878do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13883 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887done
13888done
13889
13890fi
13891fi
13892DLLTOOL=$ac_cv_prog_DLLTOOL
13893if test -n "$DLLTOOL"; then
13894 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13895echo "${ECHO_T}$DLLTOOL" >&6
13896else
13897 echo "$as_me:$LINENO: result: no" >&5
13898echo "${ECHO_T}no" >&6
13899fi
13900
13901fi
13902if test -z "$ac_cv_prog_DLLTOOL"; then
13903 ac_ct_DLLTOOL=$DLLTOOL
13904 # Extract the first word of "dlltool", so it can be a program name with args.
13905set dummy dlltool; ac_word=$2
13906echo "$as_me:$LINENO: checking for $ac_word" >&5
13907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13908if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13910else
13911 if test -n "$ac_ct_DLLTOOL"; then
13912 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13913else
13914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915for as_dir in $PATH
13916do
13917 IFS=$as_save_IFS
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13921 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 break 2
13924 fi
13925done
13926done
13927
13928fi
13929fi
13930ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13931if test -n "$ac_ct_DLLTOOL"; then
13932 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13933echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13934else
13935 echo "$as_me:$LINENO: result: no" >&5
13936echo "${ECHO_T}no" >&6
13937fi
13938
13939 DLLTOOL=$ac_ct_DLLTOOL
13940else
13941 DLLTOOL="$ac_cv_prog_DLLTOOL"
13942fi
13943
13944 ;;
13945 esac
13946fi
a848cd7e
SC
13947
13948echo "$as_me:$LINENO: checking if make is GNU make" >&5
13949echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13950if test "${wx_cv_prog_makeisgnu+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952else
13953
13954 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13955 egrep -s GNU > /dev/null); then
13956 wx_cv_prog_makeisgnu="yes"
13957 else
13958 wx_cv_prog_makeisgnu="no"
13959 fi
13960
13961fi
13962echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13963echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13964
13965if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13966 IF_GNU_MAKE=""
13967else
13968 IF_GNU_MAKE="#"
13969fi
13970
13971
13972
13973if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13974echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13975echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13976if test "${wx_cv_prog_makevpath+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13978else
13979
13980cat - << EOF > confMake
13981check : file
13982 cp \$? \$@
13983 cp \$? final_file
13984EOF
13985
13986if test ! -d sub ; then
13987 mkdir sub
13988fi
13989echo dummy > sub/file
13990${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13991RESULT=$?
13992rm -f sub/file check final_file confMake
13993rmdir sub
13994if test "$RESULT" = 0; then
13995 wx_cv_prog_makevpath="yes"
13996else
13997 wx_cv_prog_makevpath="no"
13998fi
13999
14000fi
14001echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14002echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14003
14004if test "x$wx_cv_prog_makevpath" != "xyes"; then
14005{ { echo "$as_me:$LINENO: error:
14006You need a make-utility that is able to use the variable
14007VPATH correctly.
14008If your version of make does not support VPATH correctly,
14009please install GNU-make (possibly as gmake), and start
14010configure with the following command:
14011export MAKE=gmake; ./configure for sh-type shells
14012setenv MAKE gmake; ./configure for csh-type shells
14013Also please do remember to use gmake in this case every time
14014you are trying to compile.
14015" >&5
14016echo "$as_me: error:
14017You need a make-utility that is able to use the variable
14018VPATH correctly.
14019If your version of make does not support VPATH correctly,
14020please install GNU-make (possibly as gmake), and start
14021configure with the following command:
14022export MAKE=gmake; ./configure for sh-type shells
14023setenv MAKE gmake; ./configure for csh-type shells
14024Also please do remember to use gmake in this case every time
14025you are trying to compile.
14026" >&2;}
14027 { (exit 1); exit 1; }; }
14028fi fi
14029echo "$as_me:$LINENO: checking whether ln -s works" >&5
14030echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14031LN_S=$as_ln_s
14032if test "$LN_S" = "ln -s"; then
14033 echo "$as_me:$LINENO: result: yes" >&5
14034echo "${ECHO_T}yes" >&6
14035else
14036 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14037echo "${ECHO_T}no, using $LN_S" >&6
14038fi
14039
14040
14041
2113bc77 14042if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14043 CXXFLAGS="$CXXFLAGS -qunique"
14044fi
14045
4d7ec9f1
DE
14046case "${host}" in
14047 powerpc-*-darwin* )
14048 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14049echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14050 cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
14055/* end confdefs.h. */
14056
14057int
14058main ()
14059{
14060#ifndef __POWERPC__
14061 choke me for lack of PowerPC
14062#endif
14063
14064 ;
14065 return 0;
14066}
14067_ACEOF
14068rm -f conftest.$ac_objext
14069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14070 (eval $ac_compile) 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
6ebeb4c7 14077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 echo "$as_me:$LINENO: result: yes" >&5
14090echo "${ECHO_T}yes" >&6
14091else
14092 echo "$as_me: failed program was:" >&5
14093sed 's/^/| /' conftest.$ac_ext >&5
14094
14095echo "$as_me:$LINENO: result: no" >&5
14096echo "${ECHO_T}no" >&6
14097 cat >>confdefs.h <<\_ACEOF
14098#define __POWERPC__ 1
14099_ACEOF
14100
14101
14102fi
14103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14104 ;;
14105esac
14106
14107case "${host}" in
14108 *-*-darwin* )
4d7ec9f1
DE
14109 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14110echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14112/* confdefs.h. */
14113_ACEOF
14114cat confdefs.h >>conftest.$ac_ext
14115cat >>conftest.$ac_ext <<_ACEOF
14116/* end confdefs.h. */
14117#include <CoreFoundation/CFBase.h>
14118
14119int
14120main ()
14121{
14122
14123 ;
14124 return 0;
14125}
14126_ACEOF
14127rm -f conftest.$ac_objext
14128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>conftest.er1
14130 ac_status=$?
14131 grep -v '^ *+' conftest.er1 >conftest.err
14132 rm -f conftest.er1
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
6ebeb4c7 14136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; } &&
14142 { ac_try='test -s conftest.$ac_objext'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; }; then
14148 echo "$as_me:$LINENO: result: yes" >&5
14149echo "${ECHO_T}yes" >&6
14150else
14151 echo "$as_me: failed program was:" >&5
14152sed 's/^/| /' conftest.$ac_ext >&5
14153
14154echo "$as_me:$LINENO: result: no" >&5
14155echo "${ECHO_T}no" >&6
14156 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14157echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14158 cat >conftest.$ac_ext <<_ACEOF
14159/* confdefs.h. */
14160_ACEOF
14161cat confdefs.h >>conftest.$ac_ext
14162cat >>conftest.$ac_ext <<_ACEOF
14163/* end confdefs.h. */
14164#define __CF_USE_FRAMEWORK_INCLUDES__
14165#include <CoreFoundation/CFBase.h>
14166
14167int
14168main ()
14169{
14170
14171 ;
14172 return 0;
14173}
14174_ACEOF
14175rm -f conftest.$ac_objext
14176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14177 (eval $ac_compile) 2>conftest.er1
14178 ac_status=$?
14179 grep -v '^ *+' conftest.er1 >conftest.err
14180 rm -f conftest.er1
14181 cat conftest.err >&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
6ebeb4c7 14184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 echo "$as_me:$LINENO: result: yes" >&5
14197echo "${ECHO_T}yes" >&6
14198 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14199else
14200 echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
14203{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14204See \`config.log' for more details." >&5
14205echo "$as_me: error: no. CoreFoundation not available.
14206See \`config.log' for more details." >&2;}
14207 { (exit 1); exit 1; }; }
14208
14209fi
14210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14211
14212
14213fi
14214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14215 ;;
14216esac
14217
a848cd7e
SC
14218case "${host}" in
14219 *-pc-os2_emx | *-pc-os2-emx )
14220 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14221 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14222echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14223if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
14226 ac_check_lib_save_LIBS=$LIBS
14227LIBS="-lcExt $LIBS"
14228cat >conftest.$ac_ext <<_ACEOF
14229/* confdefs.h. */
14230_ACEOF
14231cat confdefs.h >>conftest.$ac_ext
14232cat >>conftest.$ac_ext <<_ACEOF
14233/* end confdefs.h. */
14234
14235/* Override any gcc2 internal prototype to avoid an error. */
14236#ifdef __cplusplus
14237extern "C"
14238#endif
14239/* We use char because int might match the return type of a gcc2
14240 builtin and then its argument prototype would still apply. */
14241char drand48 ();
14242int
14243main ()
14244{
14245drand48 ();
14246 ;
14247 return 0;
14248}
14249_ACEOF
14250rm -f conftest.$ac_objext conftest$ac_exeext
14251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14252 (eval $ac_link) 2>conftest.er1
a848cd7e 14253 ac_status=$?
ac1cb8d3
VS
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
a848cd7e
SC
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
6ebeb4c7 14259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_lib_cExt_drand48=yes
14272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276ac_cv_lib_cExt_drand48=no
14277fi
ac1cb8d3
VS
14278rm -f conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14280LIBS=$ac_check_lib_save_LIBS
14281fi
14282echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14283echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14284if test $ac_cv_lib_cExt_drand48 = yes; then
14285 LIBS="$LIBS -lcExt"
14286fi
14287
14288 else
14289 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14290 fi
69120ee4
VZ
14291 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14292echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14293if test "${wx_cv_gccversion+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295else
14296
391a765e
VS
14297 if test "$cross_compiling" = yes; then
14298 wx_cv_gccversion="EMX2"
14299
14300else
14301 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
14306/* end confdefs.h. */
14307
391a765e 14308 #include <stdio.h>
a848cd7e 14309
391a765e
VS
14310 int main()
14311 {
14312 FILE *f=fopen("conftestval", "w");
14313 if (!f) exit(1);
14314 fprintf(f,
a848cd7e 14315 #if (__GNUC__ < 3)
391a765e
VS
14316 "EMX2"
14317 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14318 "EMX3"
14319 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14320 "Innotek5"
14321 #else
14322 "Innotek6"
a848cd7e 14323 #endif
391a765e
VS
14324 );
14325 exit(0);
14326 }
a848cd7e 14327
a848cd7e 14328_ACEOF
391a765e
VS
14329rm -f conftest$ac_exeext
14330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14331 (eval $ac_link) 2>&5
ac1cb8d3
VS
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
391a765e 14340 wx_cv_gccversion=`cat conftestval`
a848cd7e 14341else
391a765e
VS
14342 echo "$as_me: program exited with status $ac_status" >&5
14343echo "$as_me: failed program was:" >&5
a848cd7e
SC
14344sed 's/^/| /' conftest.$ac_ext >&5
14345
391a765e
VS
14346( exit $ac_status )
14347wx_cv_gccversion="EMX2"
a848cd7e 14348fi
391a765e 14349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14350fi
a848cd7e
SC
14351
14352fi
14353echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14354echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14355 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14356 LIBS="$LIBS -lstdcpp"
14357 LDFLAGS="$LDFLAGS -Zsysv-signals"
14358 else
391a765e 14359 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14360 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14361 LDFLAGS="$LDFLAGS -Zsysv-signals"
14362 else
14363 LIBS="$LIBS -lstdc++"
14364 fi
14365 fi
94acd38e
DE
14366 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14367 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14368echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14369 wxUSE_OMF=yes
2da0c077 14370 enable_omf=yes
a848cd7e
SC
14371 fi
14372 ;;
14373 *)
14374
14375
14376
14377 ac_ext=cc
14378ac_cpp='$CXXCPP $CPPFLAGS'
14379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14382
14383
95986553 14384 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
14385echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14386if test "${ac_cv_string_strcasecmp+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388else
14389
14390 cat >conftest.$ac_ext <<_ACEOF
14391/* confdefs.h. */
14392_ACEOF
14393cat confdefs.h >>conftest.$ac_ext
14394cat >>conftest.$ac_ext <<_ACEOF
14395/* end confdefs.h. */
14396
14397 #include <string.h>
14398
14399int
14400main ()
14401{
14402
14403 strcasecmp("foo", "bar");
14404
14405 ;
14406 return 0;
14407}
14408_ACEOF
14409rm -f conftest.$ac_objext conftest$ac_exeext
14410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14411 (eval $ac_link) 2>conftest.er1
a848cd7e 14412 ac_status=$?
ac1cb8d3
VS
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
a848cd7e
SC
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
6ebeb4c7 14418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_cv_string_strcasecmp=yes
14431else
14432 echo "$as_me: failed program was:" >&5
14433sed 's/^/| /' conftest.$ac_ext >&5
14434
14435ac_cv_string_strcasecmp=no
14436
14437fi
ac1cb8d3
VS
14438rm -f conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14440
14441fi
14442echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
14443echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
14444
14445 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
14446 cat >>confdefs.h <<\_ACEOF
14447#define HAVE_STRCASECMP_IN_STRING_H 1
14448_ACEOF
14449
14450 else
14451 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
14452echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
14453if test "${ac_cv_strings_strcasecmp+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14455else
14456
14457 cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
14462/* end confdefs.h. */
14463
14464 #include <strings.h>
14465
14466int
14467main ()
14468{
14469
14470 strcasecmp("foo", "bar");
14471
14472 ;
14473 return 0;
14474}
14475_ACEOF
14476rm -f conftest.$ac_objext conftest$ac_exeext
14477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14478 (eval $ac_link) 2>conftest.er1
a848cd7e 14479 ac_status=$?
ac1cb8d3
VS
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
a848cd7e
SC
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
6ebeb4c7 14485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_strings_strcasecmp=yes
14498else
14499 echo "$as_me: failed program was:" >&5
14500sed 's/^/| /' conftest.$ac_ext >&5
14501
14502ac_cv_strings_strcasecmp=no
14503
14504fi
ac1cb8d3
VS
14505rm -f conftest.err conftest.$ac_objext \
14506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14507
14508fi
14509echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
14510echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
14511
0c3c69fc 14512 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
14513 cat >>confdefs.h <<\_ACEOF
14514#define HAVE_STRCASECMP_IN_STRINGS_H 1
14515_ACEOF
14516
14517 else
14518 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
14519echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
14520 { (exit 1); exit 1; }; }
14521 fi
14522 fi
14523
14524 ac_ext=c
14525ac_cpp='$CPP $CPPFLAGS'
14526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14528ac_compiler_gnu=$ac_cv_c_compiler_gnu
14529
14530 ;;
14531esac
14532
14533
14534echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14535echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14536if test "${ac_cv_header_stdc+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538else
14539 cat >conftest.$ac_ext <<_ACEOF
14540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
14544/* end confdefs.h. */
14545#include <stdlib.h>
14546#include <stdarg.h>
14547#include <string.h>
14548#include <float.h>
14549
14550int
14551main ()
14552{
14553
14554 ;
14555 return 0;
14556}
14557_ACEOF
14558rm -f conftest.$ac_objext
14559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14560 (eval $ac_compile) 2>conftest.er1
a848cd7e 14561 ac_status=$?
ac1cb8d3
VS
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
a848cd7e
SC
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
6ebeb4c7 14567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_cv_header_stdc=yes
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584ac_cv_header_stdc=no
14585fi
ac1cb8d3 14586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14587
14588if test $ac_cv_header_stdc = yes; then
14589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14590 cat >conftest.$ac_ext <<_ACEOF
14591/* confdefs.h. */
14592_ACEOF
14593cat confdefs.h >>conftest.$ac_ext
14594cat >>conftest.$ac_ext <<_ACEOF
14595/* end confdefs.h. */
14596#include <string.h>
14597
14598_ACEOF
14599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14600 $EGREP "memchr" >/dev/null 2>&1; then
14601 :
14602else
14603 ac_cv_header_stdc=no
14604fi
14605rm -f conftest*
14606
14607fi
14608
14609if test $ac_cv_header_stdc = yes; then
14610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14611 cat >conftest.$ac_ext <<_ACEOF
14612/* confdefs.h. */
14613_ACEOF
14614cat confdefs.h >>conftest.$ac_ext
14615cat >>conftest.$ac_ext <<_ACEOF
14616/* end confdefs.h. */
14617#include <stdlib.h>
14618
14619_ACEOF
14620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14621 $EGREP "free" >/dev/null 2>&1; then
14622 :
14623else
14624 ac_cv_header_stdc=no
14625fi
14626rm -f conftest*
14627
14628fi
14629
14630if test $ac_cv_header_stdc = yes; then
14631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14632 if test "$cross_compiling" = yes; then
14633 :
14634else
14635 cat >conftest.$ac_ext <<_ACEOF
14636/* confdefs.h. */
14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
14640/* end confdefs.h. */
14641#include <ctype.h>
14642#if ((' ' & 0x0FF) == 0x020)
14643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14645#else
14646# define ISLOWER(c) \
ac1cb8d3
VS
14647 (('a' <= (c) && (c) <= 'i') \
14648 || ('j' <= (c) && (c) <= 'r') \
14649 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14651#endif
14652
14653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14654int
14655main ()
14656{
14657 int i;
14658 for (i = 0; i < 256; i++)
14659 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14660 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14661 exit(2);
14662 exit (0);
14663}
14664_ACEOF
14665rm -f conftest$ac_exeext
14666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 :
14677else
14678 echo "$as_me: program exited with status $ac_status" >&5
14679echo "$as_me: failed program was:" >&5
14680sed 's/^/| /' conftest.$ac_ext >&5
14681
14682( exit $ac_status )
14683ac_cv_header_stdc=no
14684fi
ac1cb8d3 14685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14686fi
14687fi
14688fi
14689echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14690echo "${ECHO_T}$ac_cv_header_stdc" >&6
14691if test $ac_cv_header_stdc = yes; then
14692
14693cat >>confdefs.h <<\_ACEOF
14694#define STDC_HEADERS 1
14695_ACEOF
14696
14697fi
14698
14699# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14710 inttypes.h stdint.h unistd.h
a848cd7e
SC
14711do
14712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14713echo "$as_me:$LINENO: checking for $ac_header" >&5
14714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14715if eval "test \"\${$as_ac_Header+set}\" = set"; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717else
14718 cat >conftest.$ac_ext <<_ACEOF
14719/* confdefs.h. */
14720_ACEOF
14721cat confdefs.h >>conftest.$ac_ext
14722cat >>conftest.$ac_ext <<_ACEOF
14723/* end confdefs.h. */
14724$ac_includes_default
14725
14726#include <$ac_header>
14727_ACEOF
14728rm -f conftest.$ac_objext
14729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14730 (eval $ac_compile) 2>conftest.er1
a848cd7e 14731 ac_status=$?
ac1cb8d3
VS
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
a848cd7e
SC
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
6ebeb4c7 14737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; } &&
14743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14749 eval "$as_ac_Header=yes"
14750else
14751 echo "$as_me: failed program was:" >&5
14752sed 's/^/| /' conftest.$ac_ext >&5
14753
14754eval "$as_ac_Header=no"
14755fi
ac1cb8d3 14756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14757fi
14758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14760if test `eval echo '${'$as_ac_Header'}'` = yes; then
14761 cat >>confdefs.h <<_ACEOF
14762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14763_ACEOF
14764
14765fi
14766
14767done
14768
14769
14770
14771for ac_header in stdlib.h
14772do
14773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14774if eval "test \"\${$as_ac_Header+set}\" = set"; then
14775 echo "$as_me:$LINENO: checking for $ac_header" >&5
14776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14777if eval "test \"\${$as_ac_Header+set}\" = set"; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779fi
14780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14782else
14783 # Is the header compilable?
14784echo "$as_me:$LINENO: checking $ac_header usability" >&5
14785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14786cat >conftest.$ac_ext <<_ACEOF
14787/* confdefs.h. */
14788_ACEOF
14789cat confdefs.h >>conftest.$ac_ext
14790cat >>conftest.$ac_ext <<_ACEOF
14791/* end confdefs.h. */
14792$ac_includes_default
14793#include <$ac_header>
14794_ACEOF
14795rm -f conftest.$ac_objext
14796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14797 (eval $ac_compile) 2>conftest.er1
a848cd7e 14798 ac_status=$?
ac1cb8d3
VS
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
a848cd7e
SC
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
6ebeb4c7 14804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; } &&
14810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 ac_header_compiler=yes
14817else
14818 echo "$as_me: failed program was:" >&5
14819sed 's/^/| /' conftest.$ac_ext >&5
14820
14821ac_header_compiler=no
14822fi
ac1cb8d3 14823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14824echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14825echo "${ECHO_T}$ac_header_compiler" >&6
14826
14827# Is the header present?
14828echo "$as_me:$LINENO: checking $ac_header presence" >&5
14829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14830cat >conftest.$ac_ext <<_ACEOF
14831/* confdefs.h. */
14832_ACEOF
14833cat confdefs.h >>conftest.$ac_ext
14834cat >>conftest.$ac_ext <<_ACEOF
14835/* end confdefs.h. */
14836#include <$ac_header>
14837_ACEOF
14838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } >/dev/null; then
14846 if test -s conftest.err; then
14847 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14849 else
14850 ac_cpp_err=
14851 fi
14852else
14853 ac_cpp_err=yes
14854fi
14855if test -z "$ac_cpp_err"; then
14856 ac_header_preproc=yes
14857else
14858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
14861 ac_header_preproc=no
14862fi
14863rm -f conftest.err conftest.$ac_ext
14864echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14865echo "${ECHO_T}$ac_header_preproc" >&6
14866
14867# So? What about this header?
ac1cb8d3
VS
14868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14869 yes:no: )
a848cd7e
SC
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14871echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14873echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14874 ac_header_preproc=yes
a848cd7e 14875 ;;
ac1cb8d3 14876 no:yes:* )
a848cd7e
SC
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14878echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14880echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14882echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14884echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14886echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14888echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14889 (
14890 cat <<\_ASBOX
ac1cb8d3
VS
14891## ----------------------------------------- ##
14892## Report this to wx-dev@lists.wxwidgets.org ##
14893## ----------------------------------------- ##
a848cd7e
SC
14894_ASBOX
14895 ) |
14896 sed "s/^/$as_me: WARNING: /" >&2
14897 ;;
14898esac
14899echo "$as_me:$LINENO: checking for $ac_header" >&5
14900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14901if eval "test \"\${$as_ac_Header+set}\" = set"; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903else
ac1cb8d3 14904 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14905fi
14906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14908
14909fi
14910if test `eval echo '${'$as_ac_Header'}'` = yes; then
14911 cat >>confdefs.h <<_ACEOF
14912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14913_ACEOF
14914
14915fi
14916
14917done
14918
14919
14920for ac_header in malloc.h
14921do
14922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14923if eval "test \"\${$as_ac_Header+set}\" = set"; then
14924 echo "$as_me:$LINENO: checking for $ac_header" >&5
14925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14926if eval "test \"\${$as_ac_Header+set}\" = set"; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14928fi
14929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14931else
14932 # Is the header compilable?
14933echo "$as_me:$LINENO: checking $ac_header usability" >&5
14934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14935cat >conftest.$ac_ext <<_ACEOF
14936/* confdefs.h. */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h. */
14941$ac_includes_default
14942#include <$ac_header>
14943_ACEOF
14944rm -f conftest.$ac_objext
14945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14946 (eval $ac_compile) 2>conftest.er1
a848cd7e 14947 ac_status=$?
ac1cb8d3
VS
14948 grep -v '^ *+' conftest.er1 >conftest.err
14949 rm -f conftest.er1
14950 cat conftest.err >&5
a848cd7e
SC
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
6ebeb4c7 14953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; } &&
14959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_header_compiler=yes
14966else
14967 echo "$as_me: failed program was:" >&5
14968sed 's/^/| /' conftest.$ac_ext >&5
14969
14970ac_header_compiler=no
14971fi
ac1cb8d3 14972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14973echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14974echo "${ECHO_T}$ac_header_compiler" >&6
14975
14976# Is the header present?
14977echo "$as_me:$LINENO: checking $ac_header presence" >&5
14978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14979cat >conftest.$ac_ext <<_ACEOF
14980/* confdefs.h. */
14981_ACEOF
14982cat confdefs.h >>conftest.$ac_ext
14983cat >>conftest.$ac_ext <<_ACEOF
14984/* end confdefs.h. */
14985#include <$ac_header>
14986_ACEOF
14987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } >/dev/null; then
14995 if test -s conftest.err; then
14996 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14998 else
14999 ac_cpp_err=
15000 fi
15001else
15002 ac_cpp_err=yes
15003fi
15004if test -z "$ac_cpp_err"; then
15005 ac_header_preproc=yes
15006else
15007 echo "$as_me: failed program was:" >&5
15008sed 's/^/| /' conftest.$ac_ext >&5
15009
15010 ac_header_preproc=no
15011fi
15012rm -f conftest.err conftest.$ac_ext
15013echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15014echo "${ECHO_T}$ac_header_preproc" >&6
15015
15016# So? What about this header?
ac1cb8d3
VS
15017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15018 yes:no: )
a848cd7e
SC
15019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15023 ac_header_preproc=yes
a848cd7e 15024 ;;
ac1cb8d3 15025 no:yes:* )
a848cd7e
SC
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15038 (
15039 cat <<\_ASBOX
ac1cb8d3
VS
15040## ----------------------------------------- ##
15041## Report this to wx-dev@lists.wxwidgets.org ##
15042## ----------------------------------------- ##
a848cd7e
SC
15043_ASBOX
15044 ) |
15045 sed "s/^/$as_me: WARNING: /" >&2
15046 ;;
15047esac
15048echo "$as_me:$LINENO: checking for $ac_header" >&5
15049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15050if eval "test \"\${$as_ac_Header+set}\" = set"; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15052else
ac1cb8d3 15053 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15054fi
15055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15057
15058fi
15059if test `eval echo '${'$as_ac_Header'}'` = yes; then
15060 cat >>confdefs.h <<_ACEOF
15061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15062_ACEOF
15063
15064fi
15065
15066done
15067
15068
15069for ac_header in unistd.h
15070do
15071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15072if eval "test \"\${$as_ac_Header+set}\" = set"; then
15073 echo "$as_me:$LINENO: checking for $ac_header" >&5
15074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15075if eval "test \"\${$as_ac_Header+set}\" = set"; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15077fi
15078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15080else
15081 # Is the header compilable?
15082echo "$as_me:$LINENO: checking $ac_header usability" >&5
15083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15084cat >conftest.$ac_ext <<_ACEOF
15085/* confdefs.h. */
15086_ACEOF
15087cat confdefs.h >>conftest.$ac_ext
15088cat >>conftest.$ac_ext <<_ACEOF
15089/* end confdefs.h. */
15090$ac_includes_default
15091#include <$ac_header>
15092_ACEOF
15093rm -f conftest.$ac_objext
15094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15095 (eval $ac_compile) 2>conftest.er1
a848cd7e 15096 ac_status=$?
ac1cb8d3
VS
15097 grep -v '^ *+' conftest.er1 >conftest.err
15098 rm -f conftest.er1
15099 cat conftest.err >&5
a848cd7e
SC
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } &&
6ebeb4c7 15102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_header_compiler=yes
15115else
15116 echo "$as_me: failed program was:" >&5
15117sed 's/^/| /' conftest.$ac_ext >&5
15118
15119ac_header_compiler=no
15120fi
ac1cb8d3 15121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15122echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15123echo "${ECHO_T}$ac_header_compiler" >&6
15124
15125# Is the header present?
15126echo "$as_me:$LINENO: checking $ac_header presence" >&5
15127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15128cat >conftest.$ac_ext <<_ACEOF
15129/* confdefs.h. */
15130_ACEOF
15131cat confdefs.h >>conftest.$ac_ext
15132cat >>conftest.$ac_ext <<_ACEOF
15133/* end confdefs.h. */
15134#include <$ac_header>
15135_ACEOF
15136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } >/dev/null; then
15144 if test -s conftest.err; then
15145 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15147 else
15148 ac_cpp_err=
15149 fi
15150else
15151 ac_cpp_err=yes
15152fi
15153if test -z "$ac_cpp_err"; then
15154 ac_header_preproc=yes
15155else
15156 echo "$as_me: failed program was:" >&5
15157sed 's/^/| /' conftest.$ac_ext >&5
15158
15159 ac_header_preproc=no
15160fi
15161rm -f conftest.err conftest.$ac_ext
15162echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15163echo "${ECHO_T}$ac_header_preproc" >&6
15164
15165# So? What about this header?
ac1cb8d3
VS
15166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15167 yes:no: )
a848cd7e
SC
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15171echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15172 ac_header_preproc=yes
a848cd7e 15173 ;;
ac1cb8d3 15174 no:yes:* )
a848cd7e
SC
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15178echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15180echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15182echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15186echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15187 (
15188 cat <<\_ASBOX
ac1cb8d3
VS
15189## ----------------------------------------- ##
15190## Report this to wx-dev@lists.wxwidgets.org ##
15191## ----------------------------------------- ##
a848cd7e
SC
15192_ASBOX
15193 ) |
15194 sed "s/^/$as_me: WARNING: /" >&2
15195 ;;
15196esac
15197echo "$as_me:$LINENO: checking for $ac_header" >&5
15198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15199if eval "test \"\${$as_ac_Header+set}\" = set"; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201else
ac1cb8d3 15202 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15203fi
15204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15206
15207fi
15208if test `eval echo '${'$as_ac_Header'}'` = yes; then
15209 cat >>confdefs.h <<_ACEOF
15210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15211_ACEOF
15212
15213fi
15214
15215done
15216
15217
15218for ac_header in wchar.h
15219do
15220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15221if eval "test \"\${$as_ac_Header+set}\" = set"; then
15222 echo "$as_me:$LINENO: checking for $ac_header" >&5
15223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15224if eval "test \"\${$as_ac_Header+set}\" = set"; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15226fi
15227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15229else
15230 # Is the header compilable?
15231echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15233cat >conftest.$ac_ext <<_ACEOF
15234/* confdefs.h. */
15235_ACEOF
15236cat confdefs.h >>conftest.$ac_ext
15237cat >>conftest.$ac_ext <<_ACEOF
15238/* end confdefs.h. */
15239$ac_includes_default
15240#include <$ac_header>
15241_ACEOF
15242rm -f conftest.$ac_objext
15243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15244 (eval $ac_compile) 2>conftest.er1
a848cd7e 15245 ac_status=$?
ac1cb8d3
VS
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
a848cd7e
SC
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
6ebeb4c7 15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_header_compiler=yes
15264else
15265 echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
15268ac_header_compiler=no
15269fi
ac1cb8d3 15270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15272echo "${ECHO_T}$ac_header_compiler" >&6
15273
15274# Is the header present?
15275echo "$as_me:$LINENO: checking $ac_header presence" >&5
15276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15277cat >conftest.$ac_ext <<_ACEOF
15278/* confdefs.h. */
15279_ACEOF
15280cat confdefs.h >>conftest.$ac_ext
15281cat >>conftest.$ac_ext <<_ACEOF
15282/* end confdefs.h. */
15283#include <$ac_header>
15284_ACEOF
15285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } >/dev/null; then
15293 if test -s conftest.err; then
15294 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15296 else
15297 ac_cpp_err=
15298 fi
15299else
15300 ac_cpp_err=yes
15301fi
15302if test -z "$ac_cpp_err"; then
15303 ac_header_preproc=yes
15304else
15305 echo "$as_me: failed program was:" >&5
15306sed 's/^/| /' conftest.$ac_ext >&5
15307
15308 ac_header_preproc=no
15309fi
15310rm -f conftest.err conftest.$ac_ext
15311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15312echo "${ECHO_T}$ac_header_preproc" >&6
15313
15314# So? What about this header?
ac1cb8d3
VS
15315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15316 yes:no: )
a848cd7e
SC
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15321 ac_header_preproc=yes
a848cd7e 15322 ;;
ac1cb8d3 15323 no:yes:* )
a848cd7e
SC
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15336 (
15337 cat <<\_ASBOX
ac1cb8d3
VS
15338## ----------------------------------------- ##
15339## Report this to wx-dev@lists.wxwidgets.org ##
15340## ----------------------------------------- ##
a848cd7e
SC
15341_ASBOX
15342 ) |
15343 sed "s/^/$as_me: WARNING: /" >&2
15344 ;;
15345esac
15346echo "$as_me:$LINENO: checking for $ac_header" >&5
15347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15348if eval "test \"\${$as_ac_Header+set}\" = set"; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
ac1cb8d3 15351 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15352fi
15353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15355
15356fi
15357if test `eval echo '${'$as_ac_Header'}'` = yes; then
15358 cat >>confdefs.h <<_ACEOF
15359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15360_ACEOF
15361
15362fi
15363
15364done
15365
15366
15367if test "$ac_cv_header_wchar_h" != "yes"; then
15368
15369for ac_header in wcstr.h
15370do
15371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15372if eval "test \"\${$as_ac_Header+set}\" = set"; then
15373 echo "$as_me:$LINENO: checking for $ac_header" >&5
15374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15375if eval "test \"\${$as_ac_Header+set}\" = set"; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15377fi
15378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15380else
15381 # Is the header compilable?
15382echo "$as_me:$LINENO: checking $ac_header usability" >&5
15383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15384cat >conftest.$ac_ext <<_ACEOF
15385/* confdefs.h. */
15386_ACEOF
15387cat confdefs.h >>conftest.$ac_ext
15388cat >>conftest.$ac_ext <<_ACEOF
15389/* end confdefs.h. */
15390$ac_includes_default
15391#include <$ac_header>
15392_ACEOF
15393rm -f conftest.$ac_objext
15394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15395 (eval $ac_compile) 2>conftest.er1
a848cd7e 15396 ac_status=$?
ac1cb8d3
VS
15397 grep -v '^ *+' conftest.er1 >conftest.err
15398 rm -f conftest.er1
15399 cat conftest.err >&5
a848cd7e
SC
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
6ebeb4c7 15402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_header_compiler=yes
15415else
15416 echo "$as_me: failed program was:" >&5
15417sed 's/^/| /' conftest.$ac_ext >&5
15418
15419ac_header_compiler=no
15420fi
ac1cb8d3 15421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15423echo "${ECHO_T}$ac_header_compiler" >&6
15424
15425# Is the header present?
15426echo "$as_me:$LINENO: checking $ac_header presence" >&5
15427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15428cat >conftest.$ac_ext <<_ACEOF
15429/* confdefs.h. */
15430_ACEOF
15431cat confdefs.h >>conftest.$ac_ext
15432cat >>conftest.$ac_ext <<_ACEOF
15433/* end confdefs.h. */
15434#include <$ac_header>
15435_ACEOF
15436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } >/dev/null; then
15444 if test -s conftest.err; then
15445 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15447 else
15448 ac_cpp_err=
15449 fi
15450else
15451 ac_cpp_err=yes
15452fi
15453if test -z "$ac_cpp_err"; then
15454 ac_header_preproc=yes
15455else
15456 echo "$as_me: failed program was:" >&5
15457sed 's/^/| /' conftest.$ac_ext >&5
15458
15459 ac_header_preproc=no
15460fi
15461rm -f conftest.err conftest.$ac_ext
15462echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463echo "${ECHO_T}$ac_header_preproc" >&6
15464
15465# So? What about this header?
ac1cb8d3
VS
15466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467 yes:no: )
a848cd7e
SC
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15472 ac_header_preproc=yes
a848cd7e 15473 ;;
ac1cb8d3 15474 no:yes:* )
a848cd7e
SC
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15487 (
15488 cat <<\_ASBOX
ac1cb8d3
VS
15489## ----------------------------------------- ##
15490## Report this to wx-dev@lists.wxwidgets.org ##
15491## ----------------------------------------- ##
a848cd7e
SC
15492_ASBOX
15493 ) |
15494 sed "s/^/$as_me: WARNING: /" >&2
15495 ;;
15496esac
15497echo "$as_me:$LINENO: checking for $ac_header" >&5
15498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15499if eval "test \"\${$as_ac_Header+set}\" = set"; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501else
ac1cb8d3 15502 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15503fi
15504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15506
15507fi
15508if test `eval echo '${'$as_ac_Header'}'` = yes; then
15509 cat >>confdefs.h <<_ACEOF
15510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15511_ACEOF
15512
15513fi
15514
15515done
15516
15517fi
15518
15519
15520for ac_header in fnmatch.h
15521do
15522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15523if eval "test \"\${$as_ac_Header+set}\" = set"; then
15524 echo "$as_me:$LINENO: checking for $ac_header" >&5
15525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15526if eval "test \"\${$as_ac_Header+set}\" = set"; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528fi
15529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15531else
15532 # Is the header compilable?
15533echo "$as_me:$LINENO: checking $ac_header usability" >&5
15534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15535cat >conftest.$ac_ext <<_ACEOF
15536/* confdefs.h. */
15537_ACEOF
15538cat confdefs.h >>conftest.$ac_ext
15539cat >>conftest.$ac_ext <<_ACEOF
15540/* end confdefs.h. */
15541$ac_includes_default
15542#include <$ac_header>
15543_ACEOF
15544rm -f conftest.$ac_objext
15545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15546 (eval $ac_compile) 2>conftest.er1
a848cd7e 15547 ac_status=$?
ac1cb8d3
VS
15548 grep -v '^ *+' conftest.er1 >conftest.err
15549 rm -f conftest.er1
15550 cat conftest.err >&5
a848cd7e
SC
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
6ebeb4c7 15553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; } &&
15559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 ac_header_compiler=yes
15566else
15567 echo "$as_me: failed program was:" >&5
15568sed 's/^/| /' conftest.$ac_ext >&5
15569
15570ac_header_compiler=no
15571fi
ac1cb8d3 15572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15574echo "${ECHO_T}$ac_header_compiler" >&6
15575
15576# Is the header present?
15577echo "$as_me:$LINENO: checking $ac_header presence" >&5
15578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15579cat >conftest.$ac_ext <<_ACEOF
15580/* confdefs.h. */
15581_ACEOF
15582cat confdefs.h >>conftest.$ac_ext
15583cat >>conftest.$ac_ext <<_ACEOF
15584/* end confdefs.h. */
15585#include <$ac_header>
15586_ACEOF
15587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } >/dev/null; then
15595 if test -s conftest.err; then
15596 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15598 else
15599 ac_cpp_err=
15600 fi
15601else
15602 ac_cpp_err=yes
15603fi
15604if test -z "$ac_cpp_err"; then
15605 ac_header_preproc=yes
15606else
15607 echo "$as_me: failed program was:" >&5
15608sed 's/^/| /' conftest.$ac_ext >&5
15609
15610 ac_header_preproc=no
15611fi
15612rm -f conftest.err conftest.$ac_ext
15613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15614echo "${ECHO_T}$ac_header_preproc" >&6
15615
15616# So? What about this header?
ac1cb8d3
VS
15617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15618 yes:no: )
a848cd7e
SC
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15623 ac_header_preproc=yes
a848cd7e 15624 ;;
ac1cb8d3 15625 no:yes:* )
a848cd7e
SC
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15638 (
15639 cat <<\_ASBOX
ac1cb8d3
VS
15640## ----------------------------------------- ##
15641## Report this to wx-dev@lists.wxwidgets.org ##
15642## ----------------------------------------- ##
a848cd7e
SC
15643_ASBOX
15644 ) |
15645 sed "s/^/$as_me: WARNING: /" >&2
15646 ;;
15647esac
15648echo "$as_me:$LINENO: checking for $ac_header" >&5
15649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15650if eval "test \"\${$as_ac_Header+set}\" = set"; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15652else
ac1cb8d3 15653 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15654fi
15655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15657
15658fi
15659if test `eval echo '${'$as_ac_Header'}'` = yes; then
15660 cat >>confdefs.h <<_ACEOF
15661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15662_ACEOF
15663
15664fi
15665
15666done
15667
15668
a848cd7e
SC
15669
15670for ac_header in langinfo.h
15671do
15672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673if eval "test \"\${$as_ac_Header+set}\" = set"; then
15674 echo "$as_me:$LINENO: checking for $ac_header" >&5
15675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15676if eval "test \"\${$as_ac_Header+set}\" = set"; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678fi
15679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15681else
15682 # Is the header compilable?
15683echo "$as_me:$LINENO: checking $ac_header usability" >&5
15684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15685cat >conftest.$ac_ext <<_ACEOF
15686/* confdefs.h. */
15687_ACEOF
15688cat confdefs.h >>conftest.$ac_ext
15689cat >>conftest.$ac_ext <<_ACEOF
15690/* end confdefs.h. */
15691$ac_includes_default
15692#include <$ac_header>
15693_ACEOF
15694rm -f conftest.$ac_objext
15695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15696 (eval $ac_compile) 2>conftest.er1
a848cd7e 15697 ac_status=$?
ac1cb8d3
VS
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
a848cd7e
SC
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
6ebeb4c7 15703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_header_compiler=yes
15716else
15717 echo "$as_me: failed program was:" >&5
15718sed 's/^/| /' conftest.$ac_ext >&5
15719
15720ac_header_compiler=no
15721fi
ac1cb8d3 15722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15724echo "${ECHO_T}$ac_header_compiler" >&6
15725
15726# Is the header present?
15727echo "$as_me:$LINENO: checking $ac_header presence" >&5
15728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15729cat >conftest.$ac_ext <<_ACEOF
15730/* confdefs.h. */
15731_ACEOF
15732cat confdefs.h >>conftest.$ac_ext
15733cat >>conftest.$ac_ext <<_ACEOF
15734/* end confdefs.h. */
15735#include <$ac_header>
15736_ACEOF
15737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15739 ac_status=$?
15740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } >/dev/null; then
15745 if test -s conftest.err; then
15746 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15748 else
15749 ac_cpp_err=
15750 fi
15751else
15752 ac_cpp_err=yes
15753fi
15754if test -z "$ac_cpp_err"; then
15755 ac_header_preproc=yes
15756else
15757 echo "$as_me: failed program was:" >&5
15758sed 's/^/| /' conftest.$ac_ext >&5
15759
15760 ac_header_preproc=no
15761fi
15762rm -f conftest.err conftest.$ac_ext
15763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15764echo "${ECHO_T}$ac_header_preproc" >&6
15765
15766# So? What about this header?
ac1cb8d3
VS
15767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15768 yes:no: )
a848cd7e
SC
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15773 ac_header_preproc=yes
a848cd7e 15774 ;;
ac1cb8d3 15775 no:yes:* )
a848cd7e
SC
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15788 (
15789 cat <<\_ASBOX
ac1cb8d3
VS
15790## ----------------------------------------- ##
15791## Report this to wx-dev@lists.wxwidgets.org ##
15792## ----------------------------------------- ##
a848cd7e
SC
15793_ASBOX
15794 ) |
15795 sed "s/^/$as_me: WARNING: /" >&2
15796 ;;
15797esac
15798echo "$as_me:$LINENO: checking for $ac_header" >&5
15799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15800if eval "test \"\${$as_ac_Header+set}\" = set"; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15802else
ac1cb8d3 15803 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15804fi
15805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15807
15808fi
15809if test `eval echo '${'$as_ac_Header'}'` = yes; then
15810 cat >>confdefs.h <<_ACEOF
15811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15812_ACEOF
15813
15814fi
15815
15816done
15817
15818
15819case "${host}" in
15820 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15821 if test $ac_cv_header_langinfo_h = "yes" \
15822 -a \( "$wx_cv_gccversion" = "EMX2" \
15823 -o "$wx_cv_gccversion" = "EMX3" \
15824 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15825 LIBS="$LIBS -lintl"
15826 fi
15827 ;;
15828esac
15829
a848cd7e
SC
15830
15831echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15832echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15833if test "${ac_cv_c_const+set}" = set; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15835else
15836 cat >conftest.$ac_ext <<_ACEOF
15837/* confdefs.h. */
15838_ACEOF
15839cat confdefs.h >>conftest.$ac_ext
15840cat >>conftest.$ac_ext <<_ACEOF
15841/* end confdefs.h. */
15842
15843int
15844main ()
15845{
15846/* FIXME: Include the comments suggested by Paul. */
15847#ifndef __cplusplus
15848 /* Ultrix mips cc rejects this. */
15849 typedef int charset[2];
15850 const charset x;
15851 /* SunOS 4.1.1 cc rejects this. */
15852 char const *const *ccp;
15853 char **p;
15854 /* NEC SVR4.0.2 mips cc rejects this. */
15855 struct point {int x, y;};
15856 static struct point const zero = {0,0};
15857 /* AIX XL C 1.02.0.0 rejects this.
15858 It does not let you subtract one const X* pointer from another in
15859 an arm of an if-expression whose if-part is not a constant
15860 expression */
15861 const char *g = "string";
15862 ccp = &g + (g ? g-g : 0);
15863 /* HPUX 7.0 cc rejects these. */
15864 ++ccp;
15865 p = (char**) ccp;
15866 ccp = (char const *const *) p;
15867 { /* SCO 3.2v4 cc rejects this. */
15868 char *t;
15869 char const *s = 0 ? (char *) 0 : (char const *) 0;
15870
15871 *t++ = 0;
15872 }
15873 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15874 int x[] = {25, 17};
15875 const int *foo = &x[0];
15876 ++foo;
15877 }
15878 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15879 typedef const int *iptr;
15880 iptr p = 0;
15881 ++p;
15882 }
15883 { /* AIX XL C 1.02.0.0 rejects this saying
15884 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15885 struct s { int j; const int *ap[3]; };
15886 struct s *b; b->j = 5;
15887 }
15888 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15889 const int foo = 10;
15890 }
15891#endif
15892
15893 ;
15894 return 0;
15895}
15896_ACEOF
15897rm -f conftest.$ac_objext
15898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15899 (eval $ac_compile) 2>conftest.er1
a848cd7e 15900 ac_status=$?
ac1cb8d3
VS
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
a848cd7e
SC
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
6ebeb4c7 15906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; } &&
15912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; }; then
15918 ac_cv_c_const=yes
15919else
15920 echo "$as_me: failed program was:" >&5
15921sed 's/^/| /' conftest.$ac_ext >&5
15922
15923ac_cv_c_const=no
15924fi
ac1cb8d3 15925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15926fi
15927echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15928echo "${ECHO_T}$ac_cv_c_const" >&6
15929if test $ac_cv_c_const = no; then
15930
15931cat >>confdefs.h <<\_ACEOF
15932#define const
15933_ACEOF
15934
15935fi
15936
15937echo "$as_me:$LINENO: checking for inline" >&5
15938echo $ECHO_N "checking for inline... $ECHO_C" >&6
15939if test "${ac_cv_c_inline+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15941else
15942 ac_cv_c_inline=no
15943for ac_kw in inline __inline__ __inline; do
15944 cat >conftest.$ac_ext <<_ACEOF
15945/* confdefs.h. */
15946_ACEOF
15947cat confdefs.h >>conftest.$ac_ext
15948cat >>conftest.$ac_ext <<_ACEOF
15949/* end confdefs.h. */
15950#ifndef __cplusplus
15951typedef int foo_t;
15952static $ac_kw foo_t static_foo () {return 0; }
15953$ac_kw foo_t foo () {return 0; }
15954#endif
15955
15956_ACEOF
15957rm -f conftest.$ac_objext
15958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15959 (eval $ac_compile) 2>conftest.er1
a848cd7e 15960 ac_status=$?
ac1cb8d3
VS
15961 grep -v '^ *+' conftest.er1 >conftest.err
15962 rm -f conftest.er1
15963 cat conftest.err >&5
a848cd7e
SC
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } &&
6ebeb4c7 15966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 ac_cv_c_inline=$ac_kw; break
15979else
15980 echo "$as_me: failed program was:" >&5
15981sed 's/^/| /' conftest.$ac_ext >&5
15982
15983fi
ac1cb8d3 15984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15985done
15986
15987fi
15988echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15989echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15990
15991
a848cd7e
SC
15992case $ac_cv_c_inline in
15993 inline | yes) ;;
ac1cb8d3
VS
15994 *)
15995 case $ac_cv_c_inline in
15996 no) ac_val=;;
15997 *) ac_val=$ac_cv_c_inline;;
15998 esac
15999 cat >>confdefs.h <<_ACEOF
16000#ifndef __cplusplus
16001#define inline $ac_val
16002#endif
de59c161 16003_ACEOF
ac1cb8d3 16004 ;;
a848cd7e
SC
16005esac
16006
16007
16008echo "$as_me:$LINENO: checking for char" >&5
16009echo $ECHO_N "checking for char... $ECHO_C" >&6
16010if test "${ac_cv_type_char+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16012else
16013 cat >conftest.$ac_ext <<_ACEOF
16014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
16019$ac_includes_default
16020int
16021main ()
16022{
16023if ((char *) 0)
16024 return 0;
16025if (sizeof (char))
16026 return 0;
16027 ;
16028 return 0;
16029}
16030_ACEOF
16031rm -f conftest.$ac_objext
16032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16033 (eval $ac_compile) 2>conftest.er1
a848cd7e 16034 ac_status=$?
ac1cb8d3
VS
16035 grep -v '^ *+' conftest.er1 >conftest.err
16036 rm -f conftest.er1
16037 cat conftest.err >&5
a848cd7e
SC
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
6ebeb4c7 16040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_cv_type_char=yes
16053else
16054 echo "$as_me: failed program was:" >&5
16055sed 's/^/| /' conftest.$ac_ext >&5
16056
16057ac_cv_type_char=no
16058fi
ac1cb8d3 16059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16060fi
16061echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16062echo "${ECHO_T}$ac_cv_type_char" >&6
16063
16064echo "$as_me:$LINENO: checking size of char" >&5
16065echo $ECHO_N "checking size of char... $ECHO_C" >&6
16066if test "${ac_cv_sizeof_char+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16068else
16069 if test "$ac_cv_type_char" = yes; then
16070 # The cast to unsigned long works around a bug in the HP C Compiler
16071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16073 # This bug is HP SR number 8606223364.
16074 if test "$cross_compiling" = yes; then
16075 # Depending upon the size, compute the lo and hi bounds.
16076cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
16082$ac_includes_default
16083int
16084main ()
16085{
16086static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16087test_array [0] = 0
16088
16089 ;
16090 return 0;
16091}
16092_ACEOF
16093rm -f conftest.$ac_objext
16094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16095 (eval $ac_compile) 2>conftest.er1
a848cd7e 16096 ac_status=$?
ac1cb8d3
VS
16097 grep -v '^ *+' conftest.er1 >conftest.err
16098 rm -f conftest.er1
16099 cat conftest.err >&5
a848cd7e
SC
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } &&
6ebeb4c7 16102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_lo=0 ac_mid=0
16115 while :; do
16116 cat >conftest.$ac_ext <<_ACEOF
16117/* confdefs.h. */
16118_ACEOF
16119cat confdefs.h >>conftest.$ac_ext
16120cat >>conftest.$ac_ext <<_ACEOF
16121/* end confdefs.h. */
16122$ac_includes_default
16123int
16124main ()
16125{
16126static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16127test_array [0] = 0
16128
16129 ;
16130 return 0;
16131}
16132_ACEOF
16133rm -f conftest.$ac_objext
16134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16135 (eval $ac_compile) 2>conftest.er1
a848cd7e 16136 ac_status=$?
ac1cb8d3
VS
16137 grep -v '^ *+' conftest.er1 >conftest.err
16138 rm -f conftest.er1
16139 cat conftest.err >&5
a848cd7e
SC
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
6ebeb4c7 16142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_hi=$ac_mid; break
16155else
16156 echo "$as_me: failed program was:" >&5
16157sed 's/^/| /' conftest.$ac_ext >&5
16158
16159ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16160 if test $ac_lo -le $ac_mid; then
16161 ac_lo= ac_hi=
16162 break
16163 fi
16164 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16165fi
ac1cb8d3 16166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16167 done
16168else
16169 echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
16172cat >conftest.$ac_ext <<_ACEOF
16173/* confdefs.h. */
16174_ACEOF
16175cat confdefs.h >>conftest.$ac_ext
16176cat >>conftest.$ac_ext <<_ACEOF
16177/* end confdefs.h. */
16178$ac_includes_default
16179int
16180main ()
16181{
16182static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16183test_array [0] = 0
16184
16185 ;
16186 return 0;
16187}
16188_ACEOF
16189rm -f conftest.$ac_objext
16190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16191 (eval $ac_compile) 2>conftest.er1
a848cd7e 16192 ac_status=$?
ac1cb8d3
VS
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
a848cd7e
SC
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
6ebeb4c7 16198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_hi=-1 ac_mid=-1
16211 while :; do
16212 cat >conftest.$ac_ext <<_ACEOF
16213/* confdefs.h. */
16214_ACEOF
16215cat confdefs.h >>conftest.$ac_ext
16216cat >>conftest.$ac_ext <<_ACEOF
16217/* end confdefs.h. */
16218$ac_includes_default
16219int
16220main ()
16221{
16222static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16223test_array [0] = 0
16224
16225 ;
16226 return 0;
16227}
16228_ACEOF
16229rm -f conftest.$ac_objext
16230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16231 (eval $ac_compile) 2>conftest.er1
a848cd7e 16232 ac_status=$?
ac1cb8d3
VS
16233 grep -v '^ *+' conftest.er1 >conftest.err
16234 rm -f conftest.er1
16235 cat conftest.err >&5
a848cd7e
SC
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } &&
6ebeb4c7 16238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; } &&
16244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_lo=$ac_mid; break
16251else
16252 echo "$as_me: failed program was:" >&5
16253sed 's/^/| /' conftest.$ac_ext >&5
16254
16255ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16256 if test $ac_mid -le $ac_hi; then
16257 ac_lo= ac_hi=
16258 break
16259 fi
16260 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16261fi
ac1cb8d3 16262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16263 done
16264else
16265 echo "$as_me: failed program was:" >&5
16266sed 's/^/| /' conftest.$ac_ext >&5
16267
16268ac_lo= ac_hi=
16269fi
ac1cb8d3 16270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16271fi
ac1cb8d3 16272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16273# Binary search between lo and hi bounds.
16274while test "x$ac_lo" != "x$ac_hi"; do
16275 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16276 cat >conftest.$ac_ext <<_ACEOF
16277/* confdefs.h. */
16278_ACEOF
16279cat confdefs.h >>conftest.$ac_ext
16280cat >>conftest.$ac_ext <<_ACEOF
16281/* end confdefs.h. */
16282$ac_includes_default
16283int
16284main ()
16285{
16286static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16287test_array [0] = 0
16288
16289 ;
16290 return 0;
16291}
16292_ACEOF
16293rm -f conftest.$ac_objext
16294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16295 (eval $ac_compile) 2>conftest.er1
a848cd7e 16296 ac_status=$?
ac1cb8d3
VS
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
a848cd7e
SC
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
6ebeb4c7 16302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16314 ac_hi=$ac_mid
16315else
16316 echo "$as_me: failed program was:" >&5
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
16319ac_lo=`expr '(' $ac_mid ')' + 1`
16320fi
ac1cb8d3 16321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16322done
16323case $ac_lo in
16324?*) ac_cv_sizeof_char=$ac_lo;;
16325'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16326See \`config.log' for more details." >&5
16327echo "$as_me: error: cannot compute sizeof (char), 77
16328See \`config.log' for more details." >&2;}
16329 { (exit 1); exit 1; }; } ;;
16330esac
16331else
16332 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16333 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16334echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16335 { (exit 1); exit 1; }; }
16336else
16337 cat >conftest.$ac_ext <<_ACEOF
16338/* confdefs.h. */
16339_ACEOF
16340cat confdefs.h >>conftest.$ac_ext
16341cat >>conftest.$ac_ext <<_ACEOF
16342/* end confdefs.h. */
16343$ac_includes_default
16344long longval () { return (long) (sizeof (char)); }
16345unsigned long ulongval () { return (long) (sizeof (char)); }
16346#include <stdio.h>
16347#include <stdlib.h>
16348int
16349main ()
16350{
16351
16352 FILE *f = fopen ("conftest.val", "w");
16353 if (! f)
16354 exit (1);
16355 if (((long) (sizeof (char))) < 0)
16356 {
16357 long i = longval ();
16358 if (i != ((long) (sizeof (char))))
16359 exit (1);
16360 fprintf (f, "%ld\n", i);
16361 }
16362 else
16363 {
16364 unsigned long i = ulongval ();
16365 if (i != ((long) (sizeof (char))))
16366 exit (1);
16367 fprintf (f, "%lu\n", i);
16368 }
16369 exit (ferror (f) || fclose (f) != 0);
16370
16371 ;
16372 return 0;
16373}
16374_ACEOF
16375rm -f conftest$ac_exeext
16376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16377 (eval $ac_link) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 ac_cv_sizeof_char=`cat conftest.val`
16387else
16388 echo "$as_me: program exited with status $ac_status" >&5
16389echo "$as_me: failed program was:" >&5
16390sed 's/^/| /' conftest.$ac_ext >&5
16391
16392( exit $ac_status )
16393{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16394See \`config.log' for more details." >&5
16395echo "$as_me: error: cannot compute sizeof (char), 77
16396See \`config.log' for more details." >&2;}
16397 { (exit 1); exit 1; }; }
16398fi
ac1cb8d3 16399rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16400fi
16401fi
16402rm -f conftest.val
16403else
16404 ac_cv_sizeof_char=0
16405fi
16406fi
16407echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16408echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16409cat >>confdefs.h <<_ACEOF
16410#define SIZEOF_CHAR $ac_cv_sizeof_char
16411_ACEOF
16412
16413
16414echo "$as_me:$LINENO: checking for short" >&5
16415echo $ECHO_N "checking for short... $ECHO_C" >&6
16416if test "${ac_cv_type_short+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418else
16419 cat >conftest.$ac_ext <<_ACEOF
16420/* confdefs.h. */
16421_ACEOF
16422cat confdefs.h >>conftest.$ac_ext
16423cat >>conftest.$ac_ext <<_ACEOF
16424/* end confdefs.h. */
16425$ac_includes_default
16426int
16427main ()
16428{
16429if ((short *) 0)
16430 return 0;
16431if (sizeof (short))
16432 return 0;
16433 ;
16434 return 0;
16435}
16436_ACEOF
16437rm -f conftest.$ac_objext
16438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16439 (eval $ac_compile) 2>conftest.er1
a848cd7e 16440 ac_status=$?
ac1cb8d3
VS
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
a848cd7e
SC
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
6ebeb4c7 16446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_cv_type_short=yes
16459else
16460 echo "$as_me: failed program was:" >&5
16461sed 's/^/| /' conftest.$ac_ext >&5
16462
16463ac_cv_type_short=no
16464fi
ac1cb8d3 16465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16466fi
16467echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16468echo "${ECHO_T}$ac_cv_type_short" >&6
16469
16470echo "$as_me:$LINENO: checking size of short" >&5
16471echo $ECHO_N "checking size of short... $ECHO_C" >&6
16472if test "${ac_cv_sizeof_short+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16474else
16475 if test "$ac_cv_type_short" = yes; then
16476 # The cast to unsigned long works around a bug in the HP C Compiler
16477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16479 # This bug is HP SR number 8606223364.
16480 if test "$cross_compiling" = yes; then
16481 # Depending upon the size, compute the lo and hi bounds.
16482cat >conftest.$ac_ext <<_ACEOF
16483/* confdefs.h. */
16484_ACEOF
16485cat confdefs.h >>conftest.$ac_ext
16486cat >>conftest.$ac_ext <<_ACEOF
16487/* end confdefs.h. */
16488$ac_includes_default
16489int
16490main ()
16491{
16492static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16493test_array [0] = 0
16494
16495 ;
16496 return 0;
16497}
16498_ACEOF
16499rm -f conftest.$ac_objext
16500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16501 (eval $ac_compile) 2>conftest.er1
a848cd7e 16502 ac_status=$?
ac1cb8d3
VS
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
a848cd7e
SC
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
6ebeb4c7 16508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_lo=0 ac_mid=0
16521 while :; do
16522 cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528$ac_includes_default
16529int
16530main ()
16531{
16532static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16533test_array [0] = 0
16534
16535 ;
16536 return 0;
16537}
16538_ACEOF
16539rm -f conftest.$ac_objext
16540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16541 (eval $ac_compile) 2>conftest.er1
a848cd7e 16542 ac_status=$?
ac1cb8d3
VS
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
a848cd7e
SC
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
6ebeb4c7 16548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; } &&
16554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_hi=$ac_mid; break
16561else
16562 echo "$as_me: failed program was:" >&5
16563sed 's/^/| /' conftest.$ac_ext >&5
16564
16565ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16566 if test $ac_lo -le $ac_mid; then
16567 ac_lo= ac_hi=
16568 break
16569 fi
16570 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16571fi
ac1cb8d3 16572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16573 done
16574else
16575 echo "$as_me: failed program was:" >&5
16576sed 's/^/| /' conftest.$ac_ext >&5
16577
16578cat >conftest.$ac_ext <<_ACEOF
16579/* confdefs.h. */
16580_ACEOF
16581cat confdefs.h >>conftest.$ac_ext
16582cat >>conftest.$ac_ext <<_ACEOF
16583/* end confdefs.h. */
16584$ac_includes_default
16585int
16586main ()
16587{
16588static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16589test_array [0] = 0
16590
16591 ;
16592 return 0;
16593}
16594_ACEOF
16595rm -f conftest.$ac_objext
16596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16597 (eval $ac_compile) 2>conftest.er1
a848cd7e 16598 ac_status=$?
ac1cb8d3
VS
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
a848cd7e
SC
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
6ebeb4c7 16604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_hi=-1 ac_mid=-1
16617 while :; do
16618 cat >conftest.$ac_ext <<_ACEOF
16619/* confdefs.h. */
16620_ACEOF
16621cat confdefs.h >>conftest.$ac_ext
16622cat >>conftest.$ac_ext <<_ACEOF
16623/* end confdefs.h. */
16624$ac_includes_default
16625int
16626main ()
16627{
16628static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16629test_array [0] = 0
16630
16631 ;
16632 return 0;
16633}
16634_ACEOF
16635rm -f conftest.$ac_objext
16636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16637 (eval $ac_compile) 2>conftest.er1
a848cd7e 16638 ac_status=$?
ac1cb8d3
VS
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
a848cd7e
SC
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
6ebeb4c7 16644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16647 ac_status=$?
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; } &&
16650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; }; then
16656 ac_lo=$ac_mid; break
16657else
16658 echo "$as_me: failed program was:" >&5
16659sed 's/^/| /' conftest.$ac_ext >&5
16660
16661ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16662 if test $ac_mid -le $ac_hi; then
16663 ac_lo= ac_hi=
16664 break
16665 fi
16666 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16667fi
ac1cb8d3 16668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16669 done
16670else
16671 echo "$as_me: failed program was:" >&5
16672sed 's/^/| /' conftest.$ac_ext >&5
16673
16674ac_lo= ac_hi=
16675fi
ac1cb8d3 16676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16677fi
ac1cb8d3 16678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16679# Binary search between lo and hi bounds.
16680while test "x$ac_lo" != "x$ac_hi"; do
16681 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16682 cat >conftest.$ac_ext <<_ACEOF
16683/* confdefs.h. */
16684_ACEOF
16685cat confdefs.h >>conftest.$ac_ext
16686cat >>conftest.$ac_ext <<_ACEOF
16687/* end confdefs.h. */
16688$ac_includes_default
16689int
16690main ()
16691{
16692static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16693test_array [0] = 0
16694
16695 ;
16696 return 0;
16697}
16698_ACEOF
16699rm -f conftest.$ac_objext
16700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16701 (eval $ac_compile) 2>conftest.er1
a848cd7e 16702 ac_status=$?
ac1cb8d3
VS
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
a848cd7e
SC
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
6ebeb4c7 16708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 ac_hi=$ac_mid
16721else
16722 echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
16725ac_lo=`expr '(' $ac_mid ')' + 1`
16726fi
ac1cb8d3 16727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16728done
16729case $ac_lo in
16730?*) ac_cv_sizeof_short=$ac_lo;;
16731'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16732See \`config.log' for more details." >&5
16733echo "$as_me: error: cannot compute sizeof (short), 77
16734See \`config.log' for more details." >&2;}
16735 { (exit 1); exit 1; }; } ;;
16736esac
16737else
16738 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16739 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16740echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16741 { (exit 1); exit 1; }; }
16742else
16743 cat >conftest.$ac_ext <<_ACEOF
16744/* confdefs.h. */
16745_ACEOF
16746cat confdefs.h >>conftest.$ac_ext
16747cat >>conftest.$ac_ext <<_ACEOF
16748/* end confdefs.h. */
16749$ac_includes_default
16750long longval () { return (long) (sizeof (short)); }
16751unsigned long ulongval () { return (long) (sizeof (short)); }
16752#include <stdio.h>
16753#include <stdlib.h>
16754int
16755main ()
16756{
16757
16758 FILE *f = fopen ("conftest.val", "w");
16759 if (! f)
16760 exit (1);
16761 if (((long) (sizeof (short))) < 0)
16762 {
16763 long i = longval ();
16764 if (i != ((long) (sizeof (short))))
16765 exit (1);
16766 fprintf (f, "%ld\n", i);
16767 }
16768 else
16769 {
16770 unsigned long i = ulongval ();
16771 if (i != ((long) (sizeof (short))))
16772 exit (1);
16773 fprintf (f, "%lu\n", i);
16774 }
16775 exit (ferror (f) || fclose (f) != 0);
16776
16777 ;
16778 return 0;
16779}
16780_ACEOF
16781rm -f conftest$ac_exeext
16782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16783 (eval $ac_link) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_cv_sizeof_short=`cat conftest.val`
16793else
16794 echo "$as_me: program exited with status $ac_status" >&5
16795echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
16798( exit $ac_status )
16799{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16800See \`config.log' for more details." >&5
16801echo "$as_me: error: cannot compute sizeof (short), 77
16802See \`config.log' for more details." >&2;}
16803 { (exit 1); exit 1; }; }
16804fi
ac1cb8d3 16805rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16806fi
16807fi
16808rm -f conftest.val
16809else
16810 ac_cv_sizeof_short=0
16811fi
16812fi
16813echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16814echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16815cat >>confdefs.h <<_ACEOF
16816#define SIZEOF_SHORT $ac_cv_sizeof_short
16817_ACEOF
16818
16819
16820echo "$as_me:$LINENO: checking for void *" >&5
16821echo $ECHO_N "checking for void *... $ECHO_C" >&6
16822if test "${ac_cv_type_void_p+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824else
16825 cat >conftest.$ac_ext <<_ACEOF
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
16831$ac_includes_default
16832int
16833main ()
16834{
16835if ((void * *) 0)
16836 return 0;
16837if (sizeof (void *))
16838 return 0;
16839 ;
16840 return 0;
16841}
16842_ACEOF
16843rm -f conftest.$ac_objext
16844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16845 (eval $ac_compile) 2>conftest.er1
a848cd7e 16846 ac_status=$?
ac1cb8d3
VS
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
a848cd7e
SC
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
6ebeb4c7 16852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_type_void_p=yes
16865else
16866 echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
16869ac_cv_type_void_p=no
16870fi
ac1cb8d3 16871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16872fi
16873echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16874echo "${ECHO_T}$ac_cv_type_void_p" >&6
16875
16876echo "$as_me:$LINENO: checking size of void *" >&5
16877echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16878if test "${ac_cv_sizeof_void_p+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16880else
16881 if test "$ac_cv_type_void_p" = yes; then
16882 # The cast to unsigned long works around a bug in the HP C Compiler
16883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16885 # This bug is HP SR number 8606223364.
16886 if test "$cross_compiling" = yes; then
16887 # Depending upon the size, compute the lo and hi bounds.
16888cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895int
16896main ()
16897{
16898static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16899test_array [0] = 0
16900
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
16906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16907 (eval $ac_compile) 2>conftest.er1
a848cd7e 16908 ac_status=$?
ac1cb8d3
VS
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
a848cd7e
SC
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
6ebeb4c7 16914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 ac_lo=0 ac_mid=0
16927 while :; do
16928 cat >conftest.$ac_ext <<_ACEOF
16929/* confdefs.h. */
16930_ACEOF
16931cat confdefs.h >>conftest.$ac_ext
16932cat >>conftest.$ac_ext <<_ACEOF
16933/* end confdefs.h. */
16934$ac_includes_default
16935int
16936main ()
16937{
16938static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16939test_array [0] = 0
16940
16941 ;
16942 return 0;
16943}
16944_ACEOF
16945rm -f conftest.$ac_objext
16946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16947 (eval $ac_compile) 2>conftest.er1
a848cd7e 16948 ac_status=$?
ac1cb8d3
VS
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
a848cd7e
SC
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
6ebeb4c7 16954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_hi=$ac_mid; break
16967else
16968 echo "$as_me: failed program was:" >&5
16969sed 's/^/| /' conftest.$ac_ext >&5
16970
16971ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16972 if test $ac_lo -le $ac_mid; then
16973 ac_lo= ac_hi=
16974 break
16975 fi
16976 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16977fi
ac1cb8d3 16978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16979 done
16980else
16981 echo "$as_me: failed program was:" >&5
16982sed 's/^/| /' conftest.$ac_ext >&5
16983
16984cat >conftest.$ac_ext <<_ACEOF
16985/* confdefs.h. */
16986_ACEOF
16987cat confdefs.h >>conftest.$ac_ext
16988cat >>conftest.$ac_ext <<_ACEOF
16989/* end confdefs.h. */
16990$ac_includes_default
16991int
16992main ()
16993{
16994static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16995test_array [0] = 0
16996
16997 ;
16998 return 0;
16999}
17000_ACEOF
17001rm -f conftest.$ac_objext
17002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17003 (eval $ac_compile) 2>conftest.er1
a848cd7e 17004 ac_status=$?
ac1cb8d3
VS
17005 grep -v '^ *+' conftest.er1 >conftest.err
17006 rm -f conftest.er1
17007 cat conftest.err >&5
a848cd7e
SC
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } &&
6ebeb4c7 17010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; } &&
17016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_hi=-1 ac_mid=-1
17023 while :; do
17024 cat >conftest.$ac_ext <<_ACEOF
17025/* confdefs.h. */
17026_ACEOF
17027cat confdefs.h >>conftest.$ac_ext
17028cat >>conftest.$ac_ext <<_ACEOF
17029/* end confdefs.h. */
17030$ac_includes_default
17031int
17032main ()
17033{
17034static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17035test_array [0] = 0
17036
17037 ;
17038 return 0;
17039}
17040_ACEOF
17041rm -f conftest.$ac_objext
17042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17043 (eval $ac_compile) 2>conftest.er1
a848cd7e 17044 ac_status=$?
ac1cb8d3
VS
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
a848cd7e
SC
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
6ebeb4c7 17050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; } &&
17056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_lo=$ac_mid; break
17063else
17064 echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17068 if test $ac_mid -le $ac_hi; then
17069 ac_lo= ac_hi=
17070 break
17071 fi
17072 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17073fi
ac1cb8d3 17074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17075 done
17076else
17077 echo "$as_me: failed program was:" >&5
17078sed 's/^/| /' conftest.$ac_ext >&5
17079
17080ac_lo= ac_hi=
17081fi
ac1cb8d3 17082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17083fi
ac1cb8d3 17084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17085# Binary search between lo and hi bounds.
17086while test "x$ac_lo" != "x$ac_hi"; do
17087 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17088 cat >conftest.$ac_ext <<_ACEOF
17089/* confdefs.h. */
17090_ACEOF
17091cat confdefs.h >>conftest.$ac_ext
17092cat >>conftest.$ac_ext <<_ACEOF
17093/* end confdefs.h. */
17094$ac_includes_default
17095int
17096main ()
17097{
17098static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17099test_array [0] = 0
17100
17101 ;
17102 return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext
17106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17107 (eval $ac_compile) 2>conftest.er1
a848cd7e 17108 ac_status=$?
ac1cb8d3
VS
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
a848cd7e
SC
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
6ebeb4c7 17114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_hi=$ac_mid
17127else
17128 echo "$as_me: failed program was:" >&5
17129sed 's/^/| /' conftest.$ac_ext >&5
17130
17131ac_lo=`expr '(' $ac_mid ')' + 1`
17132fi
ac1cb8d3 17133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17134done
17135case $ac_lo in
17136?*) ac_cv_sizeof_void_p=$ac_lo;;
17137'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17138See \`config.log' for more details." >&5
17139echo "$as_me: error: cannot compute sizeof (void *), 77
17140See \`config.log' for more details." >&2;}
17141 { (exit 1); exit 1; }; } ;;
17142esac
17143else
17144 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17145 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17146echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17147 { (exit 1); exit 1; }; }
17148else
17149 cat >conftest.$ac_ext <<_ACEOF
17150/* confdefs.h. */
17151_ACEOF
17152cat confdefs.h >>conftest.$ac_ext
17153cat >>conftest.$ac_ext <<_ACEOF
17154/* end confdefs.h. */
17155$ac_includes_default
17156long longval () { return (long) (sizeof (void *)); }
17157unsigned long ulongval () { return (long) (sizeof (void *)); }
17158#include <stdio.h>
17159#include <stdlib.h>
17160int
17161main ()
17162{
17163
17164 FILE *f = fopen ("conftest.val", "w");
17165 if (! f)
17166 exit (1);
17167 if (((long) (sizeof (void *))) < 0)
17168 {
17169 long i = longval ();
17170 if (i != ((long) (sizeof (void *))))
17171 exit (1);
17172 fprintf (f, "%ld\n", i);
17173 }
17174 else
17175 {
17176 unsigned long i = ulongval ();
17177 if (i != ((long) (sizeof (void *))))
17178 exit (1);
17179 fprintf (f, "%lu\n", i);
17180 }
17181 exit (ferror (f) || fclose (f) != 0);
17182
17183 ;
17184 return 0;
17185}
17186_ACEOF
17187rm -f conftest$ac_exeext
17188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189 (eval $ac_link) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_cv_sizeof_void_p=`cat conftest.val`
17199else
17200 echo "$as_me: program exited with status $ac_status" >&5
17201echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204( exit $ac_status )
17205{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17206See \`config.log' for more details." >&5
17207echo "$as_me: error: cannot compute sizeof (void *), 77
17208See \`config.log' for more details." >&2;}
17209 { (exit 1); exit 1; }; }
17210fi
ac1cb8d3 17211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17212fi
17213fi
17214rm -f conftest.val
17215else
17216 ac_cv_sizeof_void_p=0
17217fi
17218fi
17219echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17220echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17221cat >>confdefs.h <<_ACEOF
17222#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17223_ACEOF
17224
17225
17226echo "$as_me:$LINENO: checking for int" >&5
17227echo $ECHO_N "checking for int... $ECHO_C" >&6
17228if test "${ac_cv_type_int+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230else
17231 cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
17237$ac_includes_default
17238int
17239main ()
17240{
17241if ((int *) 0)
17242 return 0;
17243if (sizeof (int))
17244 return 0;
17245 ;
17246 return 0;
17247}
17248_ACEOF
17249rm -f conftest.$ac_objext
17250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17251 (eval $ac_compile) 2>conftest.er1
a848cd7e 17252 ac_status=$?
ac1cb8d3
VS
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
a848cd7e
SC
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
6ebeb4c7 17258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; } &&
17264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_type_int=yes
17271else
17272 echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275ac_cv_type_int=no
17276fi
ac1cb8d3 17277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17278fi
17279echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17280echo "${ECHO_T}$ac_cv_type_int" >&6
17281
17282echo "$as_me:$LINENO: checking size of int" >&5
17283echo $ECHO_N "checking size of int... $ECHO_C" >&6
17284if test "${ac_cv_sizeof_int+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286else
17287 if test "$ac_cv_type_int" = yes; then
17288 # The cast to unsigned long works around a bug in the HP C Compiler
17289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17291 # This bug is HP SR number 8606223364.
17292 if test "$cross_compiling" = yes; then
17293 # Depending upon the size, compute the lo and hi bounds.
17294cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300$ac_includes_default
17301int
17302main ()
17303{
17304static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17305test_array [0] = 0
17306
17307 ;
17308 return 0;
17309}
17310_ACEOF
17311rm -f conftest.$ac_objext
17312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17313 (eval $ac_compile) 2>conftest.er1
a848cd7e 17314 ac_status=$?
ac1cb8d3
VS
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
a848cd7e
SC
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
6ebeb4c7 17320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_lo=0 ac_mid=0
17333 while :; do
17334 cat >conftest.$ac_ext <<_ACEOF
17335/* confdefs.h. */
17336_ACEOF
17337cat confdefs.h >>conftest.$ac_ext
17338cat >>conftest.$ac_ext <<_ACEOF
17339/* end confdefs.h. */
17340$ac_includes_default
17341int
17342main ()
17343{
17344static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17345test_array [0] = 0
17346
17347 ;
17348 return 0;
17349}
17350_ACEOF
17351rm -f conftest.$ac_objext
17352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17353 (eval $ac_compile) 2>conftest.er1
a848cd7e 17354 ac_status=$?
ac1cb8d3
VS
17355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
a848cd7e
SC
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
6ebeb4c7 17360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 ac_hi=$ac_mid; break
17373else
17374 echo "$as_me: failed program was:" >&5
17375sed 's/^/| /' conftest.$ac_ext >&5
17376
17377ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17378 if test $ac_lo -le $ac_mid; then
17379 ac_lo= ac_hi=
17380 break
17381 fi
17382 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17383fi
ac1cb8d3 17384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17385 done
17386else
17387 echo "$as_me: failed program was:" >&5
17388sed 's/^/| /' conftest.$ac_ext >&5
17389
17390cat >conftest.$ac_ext <<_ACEOF
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
17396$ac_includes_default
17397int
17398main ()
17399{
17400static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17401test_array [0] = 0
17402
17403 ;
17404 return 0;
17405}
17406_ACEOF
17407rm -f conftest.$ac_objext
17408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17409 (eval $ac_compile) 2>conftest.er1
a848cd7e 17410 ac_status=$?
ac1cb8d3
VS
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
a848cd7e
SC
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
6ebeb4c7 17416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; } &&
17422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 ac_hi=-1 ac_mid=-1
17429 while :; do
17430 cat >conftest.$ac_ext <<_ACEOF
17431/* confdefs.h. */
17432_ACEOF
17433cat confdefs.h >>conftest.$ac_ext
17434cat >>conftest.$ac_ext <<_ACEOF
17435/* end confdefs.h. */
17436$ac_includes_default
17437int
17438main ()
17439{
17440static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17441test_array [0] = 0
17442
17443 ;
17444 return 0;
17445}
17446_ACEOF
17447rm -f conftest.$ac_objext
17448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17449 (eval $ac_compile) 2>conftest.er1
a848cd7e 17450 ac_status=$?
ac1cb8d3
VS
17451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
a848cd7e
SC
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
6ebeb4c7 17456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; } &&
17462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 ac_lo=$ac_mid; break
17469else
17470 echo "$as_me: failed program was:" >&5
17471sed 's/^/| /' conftest.$ac_ext >&5
17472
17473ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17474 if test $ac_mid -le $ac_hi; then
17475 ac_lo= ac_hi=
17476 break
17477 fi
17478 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17479fi
ac1cb8d3 17480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17481 done
17482else
17483 echo "$as_me: failed program was:" >&5
17484sed 's/^/| /' conftest.$ac_ext >&5
17485
17486ac_lo= ac_hi=
17487fi
ac1cb8d3 17488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17489fi
ac1cb8d3 17490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17491# Binary search between lo and hi bounds.
17492while test "x$ac_lo" != "x$ac_hi"; do
17493 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17494 cat >conftest.$ac_ext <<_ACEOF
17495/* confdefs.h. */
17496_ACEOF
17497cat confdefs.h >>conftest.$ac_ext
17498cat >>conftest.$ac_ext <<_ACEOF
17499/* end confdefs.h. */
17500$ac_includes_default
17501int
17502main ()
17503{
17504static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17505test_array [0] = 0
17506
17507 ;
17508 return 0;
17509}
17510_ACEOF
17511rm -f conftest.$ac_objext
17512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17513 (eval $ac_compile) 2>conftest.er1
a848cd7e 17514 ac_status=$?
ac1cb8d3
VS
17515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
a848cd7e
SC
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
6ebeb4c7 17520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; } &&
17526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_hi=$ac_mid
17533else
17534 echo "$as_me: failed program was:" >&5
17535sed 's/^/| /' conftest.$ac_ext >&5
17536
17537ac_lo=`expr '(' $ac_mid ')' + 1`
17538fi
ac1cb8d3 17539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17540done
17541case $ac_lo in
17542?*) ac_cv_sizeof_int=$ac_lo;;
17543'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17544See \`config.log' for more details." >&5
17545echo "$as_me: error: cannot compute sizeof (int), 77
17546See \`config.log' for more details." >&2;}
17547 { (exit 1); exit 1; }; } ;;
17548esac
17549else
17550 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17551 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17552echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17553 { (exit 1); exit 1; }; }
17554else
17555 cat >conftest.$ac_ext <<_ACEOF
17556/* confdefs.h. */
17557_ACEOF
17558cat confdefs.h >>conftest.$ac_ext
17559cat >>conftest.$ac_ext <<_ACEOF
17560/* end confdefs.h. */
17561$ac_includes_default
17562long longval () { return (long) (sizeof (int)); }
17563unsigned long ulongval () { return (long) (sizeof (int)); }
17564#include <stdio.h>
17565#include <stdlib.h>
17566int
17567main ()
17568{
17569
17570 FILE *f = fopen ("conftest.val", "w");
17571 if (! f)
17572 exit (1);
17573 if (((long) (sizeof (int))) < 0)
17574 {
17575 long i = longval ();
17576 if (i != ((long) (sizeof (int))))
17577 exit (1);
17578 fprintf (f, "%ld\n", i);
17579 }
17580 else
17581 {
17582 unsigned long i = ulongval ();
17583 if (i != ((long) (sizeof (int))))
17584 exit (1);
17585 fprintf (f, "%lu\n", i);
17586 }
17587 exit (ferror (f) || fclose (f) != 0);
17588
17589 ;
17590 return 0;
17591}
17592_ACEOF
17593rm -f conftest$ac_exeext
17594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595 (eval $ac_link) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_sizeof_int=`cat conftest.val`
17605else
17606 echo "$as_me: program exited with status $ac_status" >&5
17607echo "$as_me: failed program was:" >&5
17608sed 's/^/| /' conftest.$ac_ext >&5
17609
17610( exit $ac_status )
17611{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17612See \`config.log' for more details." >&5
17613echo "$as_me: error: cannot compute sizeof (int), 77
17614See \`config.log' for more details." >&2;}
17615 { (exit 1); exit 1; }; }
17616fi
ac1cb8d3 17617rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17618fi
17619fi
17620rm -f conftest.val
17621else
17622 ac_cv_sizeof_int=0
17623fi
17624fi
17625echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17626echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17627cat >>confdefs.h <<_ACEOF
17628#define SIZEOF_INT $ac_cv_sizeof_int
17629_ACEOF
17630
17631
17632echo "$as_me:$LINENO: checking for long" >&5
17633echo $ECHO_N "checking for long... $ECHO_C" >&6
17634if test "${ac_cv_type_long+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636else
17637 cat >conftest.$ac_ext <<_ACEOF
17638/* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
17643$ac_includes_default
17644int
17645main ()
17646{
17647if ((long *) 0)
17648 return 0;
17649if (sizeof (long))
17650 return 0;
17651 ;
17652 return 0;
17653}
17654_ACEOF
17655rm -f conftest.$ac_objext
17656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17657 (eval $ac_compile) 2>conftest.er1
a848cd7e 17658 ac_status=$?
ac1cb8d3
VS
17659 grep -v '^ *+' conftest.er1 >conftest.err
17660 rm -f conftest.er1
17661 cat conftest.err >&5
a848cd7e
SC
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
6ebeb4c7 17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_cv_type_long=yes
17677else
17678 echo "$as_me: failed program was:" >&5
17679sed 's/^/| /' conftest.$ac_ext >&5
17680
17681ac_cv_type_long=no
17682fi
ac1cb8d3 17683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17684fi
17685echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17686echo "${ECHO_T}$ac_cv_type_long" >&6
17687
17688echo "$as_me:$LINENO: checking size of long" >&5
17689echo $ECHO_N "checking size of long... $ECHO_C" >&6
17690if test "${ac_cv_sizeof_long+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692else
17693 if test "$ac_cv_type_long" = yes; then
17694 # The cast to unsigned long works around a bug in the HP C Compiler
17695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17697 # This bug is HP SR number 8606223364.
17698 if test "$cross_compiling" = yes; then
17699 # Depending upon the size, compute the lo and hi bounds.
17700cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
17706$ac_includes_default
17707int
17708main ()
17709{
17710static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17711test_array [0] = 0
17712
17713 ;
17714 return 0;
17715}
17716_ACEOF
17717rm -f conftest.$ac_objext
17718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17719 (eval $ac_compile) 2>conftest.er1
a848cd7e 17720 ac_status=$?
ac1cb8d3
VS
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
a848cd7e
SC
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
6ebeb4c7 17726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 ac_lo=0 ac_mid=0
17739 while :; do
17740 cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h. */
17746$ac_includes_default
17747int
17748main ()
17749{
17750static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17751test_array [0] = 0
17752
17753 ;
17754 return 0;
17755}
17756_ACEOF
17757rm -f conftest.$ac_objext
17758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17759 (eval $ac_compile) 2>conftest.er1
a848cd7e 17760 ac_status=$?
ac1cb8d3
VS
17761 grep -v '^ *+' conftest.er1 >conftest.err
17762 rm -f conftest.er1
17763 cat conftest.err >&5
a848cd7e
SC
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
6ebeb4c7 17766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_hi=$ac_mid; break
17779else
17780 echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17784 if test $ac_lo -le $ac_mid; then
17785 ac_lo= ac_hi=
17786 break
17787 fi
17788 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17789fi
ac1cb8d3 17790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17791 done
17792else
17793 echo "$as_me: failed program was:" >&5
17794sed 's/^/| /' conftest.$ac_ext >&5
17795
17796cat >conftest.$ac_ext <<_ACEOF
17797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h. */
17802$ac_includes_default
17803int
17804main ()
17805{
17806static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17807test_array [0] = 0
17808
17809 ;
17810 return 0;
17811}
17812_ACEOF
17813rm -f conftest.$ac_objext
17814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17815 (eval $ac_compile) 2>conftest.er1
a848cd7e 17816 ac_status=$?
ac1cb8d3
VS
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
a848cd7e
SC
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
6ebeb4c7 17822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_hi=-1 ac_mid=-1
17835 while :; do
17836 cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h. */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h. */
17842$ac_includes_default
17843int
17844main ()
17845{
17846static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17847test_array [0] = 0
17848
17849 ;
17850 return 0;
17851}
17852_ACEOF
17853rm -f conftest.$ac_objext
17854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17855 (eval $ac_compile) 2>conftest.er1
a848cd7e 17856 ac_status=$?
ac1cb8d3
VS
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
a848cd7e
SC
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
6ebeb4c7 17862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; } &&
17868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870 (eval $ac_try) 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; }; then
17874 ac_lo=$ac_mid; break
17875else
17876 echo "$as_me: failed program was:" >&5
17877sed 's/^/| /' conftest.$ac_ext >&5
17878
17879ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17880 if test $ac_mid -le $ac_hi; then
17881 ac_lo= ac_hi=
17882 break
17883 fi
17884 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17885fi
ac1cb8d3 17886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17887 done
17888else
17889 echo "$as_me: failed program was:" >&5
17890sed 's/^/| /' conftest.$ac_ext >&5
17891
17892ac_lo= ac_hi=
17893fi
ac1cb8d3 17894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17895fi
ac1cb8d3 17896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17897# Binary search between lo and hi bounds.
17898while test "x$ac_lo" != "x$ac_hi"; do
17899 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17900 cat >conftest.$ac_ext <<_ACEOF
17901/* confdefs.h. */
17902_ACEOF
17903cat confdefs.h >>conftest.$ac_ext
17904cat >>conftest.$ac_ext <<_ACEOF
17905/* end confdefs.h. */
17906$ac_includes_default
17907int
17908main ()
17909{
17910static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17911test_array [0] = 0
17912
17913 ;
17914 return 0;
17915}
17916_ACEOF
17917rm -f conftest.$ac_objext
17918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17919 (eval $ac_compile) 2>conftest.er1
a848cd7e 17920 ac_status=$?
ac1cb8d3
VS
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
a848cd7e
SC
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
6ebeb4c7 17926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; } &&
17932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; }; then
17938 ac_hi=$ac_mid
17939else
17940 echo "$as_me: failed program was:" >&5
17941sed 's/^/| /' conftest.$ac_ext >&5
17942
17943ac_lo=`expr '(' $ac_mid ')' + 1`
17944fi
ac1cb8d3 17945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17946done
17947case $ac_lo in
17948?*) ac_cv_sizeof_long=$ac_lo;;
17949'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17950See \`config.log' for more details." >&5
17951echo "$as_me: error: cannot compute sizeof (long), 77
17952See \`config.log' for more details." >&2;}
17953 { (exit 1); exit 1; }; } ;;
17954esac
17955else
17956 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17957 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17958echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17959 { (exit 1); exit 1; }; }
17960else
17961 cat >conftest.$ac_ext <<_ACEOF
17962/* confdefs.h. */
17963_ACEOF
17964cat confdefs.h >>conftest.$ac_ext
17965cat >>conftest.$ac_ext <<_ACEOF
17966/* end confdefs.h. */
17967$ac_includes_default
17968long longval () { return (long) (sizeof (long)); }
17969unsigned long ulongval () { return (long) (sizeof (long)); }
17970#include <stdio.h>
17971#include <stdlib.h>
17972int
17973main ()
17974{
17975
17976 FILE *f = fopen ("conftest.val", "w");
17977 if (! f)
17978 exit (1);
17979 if (((long) (sizeof (long))) < 0)
17980 {
17981 long i = longval ();
17982 if (i != ((long) (sizeof (long))))
17983 exit (1);
17984 fprintf (f, "%ld\n", i);
17985 }
17986 else
17987 {
17988 unsigned long i = ulongval ();
17989 if (i != ((long) (sizeof (long))))
17990 exit (1);
17991 fprintf (f, "%lu\n", i);
17992 }
17993 exit (ferror (f) || fclose (f) != 0);
17994
17995 ;
17996 return 0;
17997}
17998_ACEOF
17999rm -f conftest$ac_exeext
18000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18001 (eval $ac_link) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 ac_cv_sizeof_long=`cat conftest.val`
18011else
18012 echo "$as_me: program exited with status $ac_status" >&5
18013echo "$as_me: failed program was:" >&5
18014sed 's/^/| /' conftest.$ac_ext >&5
18015
18016( exit $ac_status )
18017{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18018See \`config.log' for more details." >&5
18019echo "$as_me: error: cannot compute sizeof (long), 77
18020See \`config.log' for more details." >&2;}
18021 { (exit 1); exit 1; }; }
18022fi
ac1cb8d3 18023rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18024fi
18025fi
18026rm -f conftest.val
18027else
18028 ac_cv_sizeof_long=0
18029fi
18030fi
18031echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18032echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18033cat >>confdefs.h <<_ACEOF
18034#define SIZEOF_LONG $ac_cv_sizeof_long
18035_ACEOF
18036
18037
18038echo "$as_me:$LINENO: checking for size_t" >&5
18039echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18040if test "${ac_cv_type_size_t+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18042else
18043 cat >conftest.$ac_ext <<_ACEOF
18044/* confdefs.h. */
18045_ACEOF
18046cat confdefs.h >>conftest.$ac_ext
18047cat >>conftest.$ac_ext <<_ACEOF
18048/* end confdefs.h. */
18049$ac_includes_default
18050int
18051main ()
18052{
18053if ((size_t *) 0)
18054 return 0;
18055if (sizeof (size_t))
18056 return 0;
18057 ;
18058 return 0;
18059}
18060_ACEOF
18061rm -f conftest.$ac_objext
18062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18063 (eval $ac_compile) 2>conftest.er1
a848cd7e 18064 ac_status=$?
ac1cb8d3
VS
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
a848cd7e
SC
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
6ebeb4c7 18070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 ac_cv_type_size_t=yes
18083else
18084 echo "$as_me: failed program was:" >&5
18085sed 's/^/| /' conftest.$ac_ext >&5
18086
18087ac_cv_type_size_t=no
18088fi
ac1cb8d3 18089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18090fi
18091echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18092echo "${ECHO_T}$ac_cv_type_size_t" >&6
18093
18094echo "$as_me:$LINENO: checking size of size_t" >&5
18095echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18096if test "${ac_cv_sizeof_size_t+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098else
18099 if test "$ac_cv_type_size_t" = yes; then
18100 # The cast to unsigned long works around a bug in the HP C Compiler
18101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18103 # This bug is HP SR number 8606223364.
18104 if test "$cross_compiling" = yes; then
18105 # Depending upon the size, compute the lo and hi bounds.
18106cat >conftest.$ac_ext <<_ACEOF
18107/* confdefs.h. */
18108_ACEOF
18109cat confdefs.h >>conftest.$ac_ext
18110cat >>conftest.$ac_ext <<_ACEOF
18111/* end confdefs.h. */
18112$ac_includes_default
18113int
18114main ()
18115{
18116static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18117test_array [0] = 0
18118
18119 ;
18120 return 0;
18121}
18122_ACEOF
18123rm -f conftest.$ac_objext
18124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18125 (eval $ac_compile) 2>conftest.er1
a848cd7e 18126 ac_status=$?
ac1cb8d3
VS
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
a848cd7e
SC
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } &&
6ebeb4c7 18132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; } &&
18138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; }; then
18144 ac_lo=0 ac_mid=0
18145 while :; do
18146 cat >conftest.$ac_ext <<_ACEOF
18147/* confdefs.h. */
18148_ACEOF
18149cat confdefs.h >>conftest.$ac_ext
18150cat >>conftest.$ac_ext <<_ACEOF
18151/* end confdefs.h. */
18152$ac_includes_default
18153int
18154main ()
18155{
18156static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18157test_array [0] = 0
18158
18159 ;
18160 return 0;
18161}
18162_ACEOF
18163rm -f conftest.$ac_objext
18164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18165 (eval $ac_compile) 2>conftest.er1
a848cd7e 18166 ac_status=$?
ac1cb8d3
VS
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
a848cd7e
SC
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
6ebeb4c7 18172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 ac_hi=$ac_mid; break
18185else
18186 echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
18189ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18190 if test $ac_lo -le $ac_mid; then
18191 ac_lo= ac_hi=
18192 break
18193 fi
18194 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18195fi
ac1cb8d3 18196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18197 done
18198else
18199 echo "$as_me: failed program was:" >&5
18200sed 's/^/| /' conftest.$ac_ext >&5
18201
18202cat >conftest.$ac_ext <<_ACEOF
18203/* confdefs.h. */
18204_ACEOF
18205cat confdefs.h >>conftest.$ac_ext
18206cat >>conftest.$ac_ext <<_ACEOF
18207/* end confdefs.h. */
18208$ac_includes_default
18209int
18210main ()
18211{
18212static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18213test_array [0] = 0
18214
18215 ;
18216 return 0;
18217}
18218_ACEOF
18219rm -f conftest.$ac_objext
18220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18221 (eval $ac_compile) 2>conftest.er1
a848cd7e 18222 ac_status=$?
ac1cb8d3
VS
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
a848cd7e
SC
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
6ebeb4c7 18228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 ac_hi=-1 ac_mid=-1
18241 while :; do
18242 cat >conftest.$ac_ext <<_ACEOF
18243/* confdefs.h. */
18244_ACEOF
18245cat confdefs.h >>conftest.$ac_ext
18246cat >>conftest.$ac_ext <<_ACEOF
18247/* end confdefs.h. */
18248$ac_includes_default
18249int
18250main ()
18251{
18252static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18253test_array [0] = 0
18254
18255 ;
18256 return 0;
18257}
18258_ACEOF
18259rm -f conftest.$ac_objext
18260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18261 (eval $ac_compile) 2>conftest.er1
a848cd7e 18262 ac_status=$?
ac1cb8d3
VS
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
a848cd7e
SC
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
6ebeb4c7 18268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; }; then
18280 ac_lo=$ac_mid; break
18281else
18282 echo "$as_me: failed program was:" >&5
18283sed 's/^/| /' conftest.$ac_ext >&5
18284
18285ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18286 if test $ac_mid -le $ac_hi; then
18287 ac_lo= ac_hi=
18288 break
18289 fi
18290 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18291fi
ac1cb8d3 18292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18293 done
18294else
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298ac_lo= ac_hi=
18299fi
ac1cb8d3 18300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18301fi
ac1cb8d3 18302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18303# Binary search between lo and hi bounds.
18304while test "x$ac_lo" != "x$ac_hi"; do
18305 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18306 cat >conftest.$ac_ext <<_ACEOF
18307/* confdefs.h. */
18308_ACEOF
18309cat confdefs.h >>conftest.$ac_ext
18310cat >>conftest.$ac_ext <<_ACEOF
18311/* end confdefs.h. */
18312$ac_includes_default
18313int
18314main ()
18315{
18316static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18317test_array [0] = 0
18318
18319 ;
18320 return 0;
18321}
18322_ACEOF
18323rm -f conftest.$ac_objext
18324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18325 (eval $ac_compile) 2>conftest.er1
a848cd7e 18326 ac_status=$?
ac1cb8d3
VS
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
a848cd7e
SC
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
6ebeb4c7 18332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_hi=$ac_mid
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349ac_lo=`expr '(' $ac_mid ')' + 1`
18350fi
ac1cb8d3 18351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18352done
18353case $ac_lo in
18354?*) ac_cv_sizeof_size_t=$ac_lo;;
18355'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18356See \`config.log' for more details." >&5
18357echo "$as_me: error: cannot compute sizeof (size_t), 77
18358See \`config.log' for more details." >&2;}
18359 { (exit 1); exit 1; }; } ;;
18360esac
18361else
18362 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18363 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18364echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18365 { (exit 1); exit 1; }; }
18366else
18367 cat >conftest.$ac_ext <<_ACEOF
18368/* confdefs.h. */
18369_ACEOF
18370cat confdefs.h >>conftest.$ac_ext
18371cat >>conftest.$ac_ext <<_ACEOF
18372/* end confdefs.h. */
18373$ac_includes_default
18374long longval () { return (long) (sizeof (size_t)); }
18375unsigned long ulongval () { return (long) (sizeof (size_t)); }
18376#include <stdio.h>
18377#include <stdlib.h>
18378int
18379main ()
18380{
18381
18382 FILE *f = fopen ("conftest.val", "w");
18383 if (! f)
18384 exit (1);
18385 if (((long) (sizeof (size_t))) < 0)
18386 {
18387 long i = longval ();
18388 if (i != ((long) (sizeof (size_t))))
18389 exit (1);
18390 fprintf (f, "%ld\n", i);
18391 }
18392 else
18393 {
18394 unsigned long i = ulongval ();
18395 if (i != ((long) (sizeof (size_t))))
18396 exit (1);
18397 fprintf (f, "%lu\n", i);
18398 }
18399 exit (ferror (f) || fclose (f) != 0);
18400
18401 ;
18402 return 0;
18403}
18404_ACEOF
18405rm -f conftest$ac_exeext
18406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18407 (eval $ac_link) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 ac_cv_sizeof_size_t=`cat conftest.val`
18417else
18418 echo "$as_me: program exited with status $ac_status" >&5
18419echo "$as_me: failed program was:" >&5
18420sed 's/^/| /' conftest.$ac_ext >&5
18421
18422( exit $ac_status )
18423{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18424See \`config.log' for more details." >&5
18425echo "$as_me: error: cannot compute sizeof (size_t), 77
18426See \`config.log' for more details." >&2;}
18427 { (exit 1); exit 1; }; }
18428fi
ac1cb8d3 18429rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18430fi
18431fi
18432rm -f conftest.val
18433else
18434 ac_cv_sizeof_size_t=0
18435fi
18436fi
18437echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18438echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18439cat >>confdefs.h <<_ACEOF
18440#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18441_ACEOF
18442
18443
18444
18445case "${host}" in
18446 arm-*-linux* )
18447 echo "$as_me:$LINENO: checking for long long" >&5
18448echo $ECHO_N "checking for long long... $ECHO_C" >&6
18449if test "${ac_cv_type_long_long+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18451else
18452 cat >conftest.$ac_ext <<_ACEOF
18453/* confdefs.h. */
18454_ACEOF
18455cat confdefs.h >>conftest.$ac_ext
18456cat >>conftest.$ac_ext <<_ACEOF
18457/* end confdefs.h. */
18458$ac_includes_default
18459int
18460main ()
18461{
18462if ((long long *) 0)
18463 return 0;
18464if (sizeof (long long))
18465 return 0;
18466 ;
18467 return 0;
18468}
18469_ACEOF
18470rm -f conftest.$ac_objext
18471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18472 (eval $ac_compile) 2>conftest.er1
a848cd7e 18473 ac_status=$?
ac1cb8d3
VS
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
a848cd7e
SC
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
6ebeb4c7 18479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; } &&
18485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 ac_cv_type_long_long=yes
18492else
18493 echo "$as_me: failed program was:" >&5
18494sed 's/^/| /' conftest.$ac_ext >&5
18495
18496ac_cv_type_long_long=no
18497fi
ac1cb8d3 18498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18499fi
18500echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18501echo "${ECHO_T}$ac_cv_type_long_long" >&6
18502
18503echo "$as_me:$LINENO: checking size of long long" >&5
18504echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18505if test "${ac_cv_sizeof_long_long+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507else
18508 if test "$ac_cv_type_long_long" = yes; then
18509 # The cast to unsigned long works around a bug in the HP C Compiler
18510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18512 # This bug is HP SR number 8606223364.
18513 if test "$cross_compiling" = yes; then
18514 # Depending upon the size, compute the lo and hi bounds.
18515cat >conftest.$ac_ext <<_ACEOF
18516/* confdefs.h. */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h. */
18521$ac_includes_default
18522int
18523main ()
18524{
18525static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18526test_array [0] = 0
18527
18528 ;
18529 return 0;
18530}
18531_ACEOF
18532rm -f conftest.$ac_objext
18533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18534 (eval $ac_compile) 2>conftest.er1
a848cd7e 18535 ac_status=$?
ac1cb8d3
VS
18536 grep -v '^ *+' conftest.er1 >conftest.err
18537 rm -f conftest.er1
18538 cat conftest.err >&5
a848cd7e
SC
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
6ebeb4c7 18541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_lo=0 ac_mid=0
18554 while :; do
18555 cat >conftest.$ac_ext <<_ACEOF
18556/* confdefs.h. */
18557_ACEOF
18558cat confdefs.h >>conftest.$ac_ext
18559cat >>conftest.$ac_ext <<_ACEOF
18560/* end confdefs.h. */
18561$ac_includes_default
18562int
18563main ()
18564{
18565static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18566test_array [0] = 0
18567
18568 ;
18569 return 0;
18570}
18571_ACEOF
18572rm -f conftest.$ac_objext
18573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18574 (eval $ac_compile) 2>conftest.er1
a848cd7e 18575 ac_status=$?
ac1cb8d3
VS
18576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
a848cd7e
SC
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
6ebeb4c7 18581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; } &&
18587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; }; then
18593 ac_hi=$ac_mid; break
18594else
18595 echo "$as_me: failed program was:" >&5
18596sed 's/^/| /' conftest.$ac_ext >&5
18597
18598ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18599 if test $ac_lo -le $ac_mid; then
18600 ac_lo= ac_hi=
18601 break
18602 fi
18603 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18604fi
ac1cb8d3 18605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18606 done
18607else
18608 echo "$as_me: failed program was:" >&5
18609sed 's/^/| /' conftest.$ac_ext >&5
18610
18611cat >conftest.$ac_ext <<_ACEOF
18612/* confdefs.h. */
18613_ACEOF
18614cat confdefs.h >>conftest.$ac_ext
18615cat >>conftest.$ac_ext <<_ACEOF
18616/* end confdefs.h. */
18617$ac_includes_default
18618int
18619main ()
18620{
18621static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18622test_array [0] = 0
18623
18624 ;
18625 return 0;
18626}
18627_ACEOF
18628rm -f conftest.$ac_objext
18629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18630 (eval $ac_compile) 2>conftest.er1
a848cd7e 18631 ac_status=$?
ac1cb8d3
VS
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
a848cd7e
SC
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
6ebeb4c7 18637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; } &&
18643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18646 ac_status=$?
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; }; then
18649 ac_hi=-1 ac_mid=-1
18650 while :; do
18651 cat >conftest.$ac_ext <<_ACEOF
18652/* confdefs.h. */
18653_ACEOF
18654cat confdefs.h >>conftest.$ac_ext
18655cat >>conftest.$ac_ext <<_ACEOF
18656/* end confdefs.h. */
18657$ac_includes_default
18658int
18659main ()
18660{
18661static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18662test_array [0] = 0
18663
18664 ;
18665 return 0;
18666}
18667_ACEOF
18668rm -f conftest.$ac_objext
18669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18670 (eval $ac_compile) 2>conftest.er1
a848cd7e 18671 ac_status=$?
ac1cb8d3
VS
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
a848cd7e
SC
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
6ebeb4c7 18677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 ac_lo=$ac_mid; break
18690else
18691 echo "$as_me: failed program was:" >&5
18692sed 's/^/| /' conftest.$ac_ext >&5
18693
18694ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18695 if test $ac_mid -le $ac_hi; then
18696 ac_lo= ac_hi=
18697 break
18698 fi
18699 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18700fi
ac1cb8d3 18701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18702 done
18703else
18704 echo "$as_me: failed program was:" >&5
18705sed 's/^/| /' conftest.$ac_ext >&5
18706
18707ac_lo= ac_hi=
18708fi
ac1cb8d3 18709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18710fi
ac1cb8d3 18711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18712# Binary search between lo and hi bounds.
18713while test "x$ac_lo" != "x$ac_hi"; do
18714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18715 cat >conftest.$ac_ext <<_ACEOF
18716/* confdefs.h. */
18717_ACEOF
18718cat confdefs.h >>conftest.$ac_ext
18719cat >>conftest.$ac_ext <<_ACEOF
18720/* end confdefs.h. */
18721$ac_includes_default
18722int
18723main ()
18724{
18725static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18726test_array [0] = 0
18727
18728 ;
18729 return 0;
18730}
18731_ACEOF
18732rm -f conftest.$ac_objext
18733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18734 (eval $ac_compile) 2>conftest.er1
a848cd7e 18735 ac_status=$?
ac1cb8d3
VS
18736 grep -v '^ *+' conftest.er1 >conftest.err
18737 rm -f conftest.er1
18738 cat conftest.err >&5
a848cd7e
SC
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } &&
6ebeb4c7 18741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; } &&
18747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_hi=$ac_mid
18754else
18755 echo "$as_me: failed program was:" >&5
18756sed 's/^/| /' conftest.$ac_ext >&5
18757
18758ac_lo=`expr '(' $ac_mid ')' + 1`
18759fi
ac1cb8d3 18760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18761done
18762case $ac_lo in
18763?*) ac_cv_sizeof_long_long=$ac_lo;;
18764'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18765See \`config.log' for more details." >&5
18766echo "$as_me: error: cannot compute sizeof (long long), 77
18767See \`config.log' for more details." >&2;}
18768 { (exit 1); exit 1; }; } ;;
18769esac
18770else
18771 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18772 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18773echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18774 { (exit 1); exit 1; }; }
18775else
18776 cat >conftest.$ac_ext <<_ACEOF
18777/* confdefs.h. */
18778_ACEOF
18779cat confdefs.h >>conftest.$ac_ext
18780cat >>conftest.$ac_ext <<_ACEOF
18781/* end confdefs.h. */
18782$ac_includes_default
18783long longval () { return (long) (sizeof (long long)); }
18784unsigned long ulongval () { return (long) (sizeof (long long)); }
18785#include <stdio.h>
18786#include <stdlib.h>
18787int
18788main ()
18789{
18790
18791 FILE *f = fopen ("conftest.val", "w");
18792 if (! f)
18793 exit (1);
18794 if (((long) (sizeof (long long))) < 0)
18795 {
18796 long i = longval ();
18797 if (i != ((long) (sizeof (long long))))
18798 exit (1);
18799 fprintf (f, "%ld\n", i);
18800 }
18801 else
18802 {
18803 unsigned long i = ulongval ();
18804 if (i != ((long) (sizeof (long long))))
18805 exit (1);
18806 fprintf (f, "%lu\n", i);
18807 }
18808 exit (ferror (f) || fclose (f) != 0);
18809
18810 ;
18811 return 0;
18812}
18813_ACEOF
18814rm -f conftest$ac_exeext
18815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18816 (eval $ac_link) 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; }; then
18825 ac_cv_sizeof_long_long=`cat conftest.val`
18826else
18827 echo "$as_me: program exited with status $ac_status" >&5
18828echo "$as_me: failed program was:" >&5
18829sed 's/^/| /' conftest.$ac_ext >&5
18830
18831( exit $ac_status )
18832{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18833See \`config.log' for more details." >&5
18834echo "$as_me: error: cannot compute sizeof (long long), 77
18835See \`config.log' for more details." >&2;}
18836 { (exit 1); exit 1; }; }
18837fi
ac1cb8d3 18838rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18839fi
18840fi
18841rm -f conftest.val
18842else
18843 ac_cv_sizeof_long_long=0
18844fi
18845fi
18846echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18847echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18848cat >>confdefs.h <<_ACEOF
18849#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18850_ACEOF
18851
18852
18853 ;;
18854 *-hp-hpux* )
18855 echo "$as_me:$LINENO: checking for long long" >&5
18856echo $ECHO_N "checking for long long... $ECHO_C" >&6
18857if test "${ac_cv_type_long_long+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
18860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866$ac_includes_default
18867int
18868main ()
18869{
18870if ((long long *) 0)
18871 return 0;
18872if (sizeof (long long))
18873 return 0;
18874 ;
18875 return 0;
18876}
18877_ACEOF
18878rm -f conftest.$ac_objext
18879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18880 (eval $ac_compile) 2>conftest.er1
a848cd7e 18881 ac_status=$?
ac1cb8d3
VS
18882 grep -v '^ *+' conftest.er1 >conftest.err
18883 rm -f conftest.er1
18884 cat conftest.err >&5
a848cd7e
SC
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
6ebeb4c7 18887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_cv_type_long_long=yes
18900else
18901 echo "$as_me: failed program was:" >&5
18902sed 's/^/| /' conftest.$ac_ext >&5
18903
18904ac_cv_type_long_long=no
18905fi
ac1cb8d3 18906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18907fi
18908echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18909echo "${ECHO_T}$ac_cv_type_long_long" >&6
18910
18911echo "$as_me:$LINENO: checking size of long long" >&5
18912echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18913if test "${ac_cv_sizeof_long_long+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915else
18916 if test "$ac_cv_type_long_long" = yes; then
18917 # The cast to unsigned long works around a bug in the HP C Compiler
18918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18920 # This bug is HP SR number 8606223364.
18921 if test "$cross_compiling" = yes; then
18922 # Depending upon the size, compute the lo and hi bounds.
18923cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h. */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h. */
18929$ac_includes_default
18930int
18931main ()
18932{
18933static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18934test_array [0] = 0
18935
18936 ;
18937 return 0;
18938}
18939_ACEOF
18940rm -f conftest.$ac_objext
18941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18942 (eval $ac_compile) 2>conftest.er1
a848cd7e 18943 ac_status=$?
ac1cb8d3
VS
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
a848cd7e
SC
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
6ebeb4c7 18949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 ac_lo=0 ac_mid=0
18962 while :; do
18963 cat >conftest.$ac_ext <<_ACEOF
18964/* confdefs.h. */
18965_ACEOF
18966cat confdefs.h >>conftest.$ac_ext
18967cat >>conftest.$ac_ext <<_ACEOF
18968/* end confdefs.h. */
18969$ac_includes_default
18970int
18971main ()
18972{
18973static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18974test_array [0] = 0
18975
18976 ;
18977 return 0;
18978}
18979_ACEOF
18980rm -f conftest.$ac_objext
18981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18982 (eval $ac_compile) 2>conftest.er1
a848cd7e 18983 ac_status=$?
ac1cb8d3
VS
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
a848cd7e
SC
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
6ebeb4c7 18989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; } &&
18995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19001 ac_hi=$ac_mid; break
19002else
19003 echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19007 if test $ac_lo -le $ac_mid; then
19008 ac_lo= ac_hi=
19009 break
19010 fi
19011 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19012fi
ac1cb8d3 19013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19014 done
19015else
19016 echo "$as_me: failed program was:" >&5
19017sed 's/^/| /' conftest.$ac_ext >&5
19018
19019cat >conftest.$ac_ext <<_ACEOF
19020/* confdefs.h. */
19021_ACEOF
19022cat confdefs.h >>conftest.$ac_ext
19023cat >>conftest.$ac_ext <<_ACEOF
19024/* end confdefs.h. */
19025$ac_includes_default
19026int
19027main ()
19028{
19029static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19030test_array [0] = 0
19031
19032 ;
19033 return 0;
19034}
19035_ACEOF
19036rm -f conftest.$ac_objext
19037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19038 (eval $ac_compile) 2>conftest.er1
a848cd7e 19039 ac_status=$?
ac1cb8d3
VS
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
a848cd7e
SC
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
6ebeb4c7 19045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_hi=-1 ac_mid=-1
19058 while :; do
19059 cat >conftest.$ac_ext <<_ACEOF
19060/* confdefs.h. */
19061_ACEOF
19062cat confdefs.h >>conftest.$ac_ext
19063cat >>conftest.$ac_ext <<_ACEOF
19064/* end confdefs.h. */
19065$ac_includes_default
19066int
19067main ()
19068{
19069static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19070test_array [0] = 0
19071
19072 ;
19073 return 0;
19074}
19075_ACEOF
19076rm -f conftest.$ac_objext
19077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19078 (eval $ac_compile) 2>conftest.er1
a848cd7e 19079 ac_status=$?
ac1cb8d3
VS
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
a848cd7e
SC
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
6ebeb4c7 19085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19088 ac_status=$?
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_lo=$ac_mid; break
19098else
19099 echo "$as_me: failed program was:" >&5
19100sed 's/^/| /' conftest.$ac_ext >&5
19101
19102ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19103 if test $ac_mid -le $ac_hi; then
19104 ac_lo= ac_hi=
19105 break
19106 fi
19107 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19108fi
ac1cb8d3 19109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19110 done
19111else
19112 echo "$as_me: failed program was:" >&5
19113sed 's/^/| /' conftest.$ac_ext >&5
19114
19115ac_lo= ac_hi=
19116fi
ac1cb8d3 19117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19118fi
ac1cb8d3 19119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19120# Binary search between lo and hi bounds.
19121while test "x$ac_lo" != "x$ac_hi"; do
19122 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19123 cat >conftest.$ac_ext <<_ACEOF
19124/* confdefs.h. */
19125_ACEOF
19126cat confdefs.h >>conftest.$ac_ext
19127cat >>conftest.$ac_ext <<_ACEOF
19128/* end confdefs.h. */
19129$ac_includes_default
19130int
19131main ()
19132{
19133static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19134test_array [0] = 0
19135
19136 ;
19137 return 0;
19138}
19139_ACEOF
19140rm -f conftest.$ac_objext
19141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19142 (eval $ac_compile) 2>conftest.er1
a848cd7e 19143 ac_status=$?
ac1cb8d3
VS
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
a848cd7e
SC
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
6ebeb4c7 19149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_hi=$ac_mid
19162else
19163 echo "$as_me: failed program was:" >&5
19164sed 's/^/| /' conftest.$ac_ext >&5
19165
19166ac_lo=`expr '(' $ac_mid ')' + 1`
19167fi
ac1cb8d3 19168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19169done
19170case $ac_lo in
19171?*) ac_cv_sizeof_long_long=$ac_lo;;
19172'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19173See \`config.log' for more details." >&5
19174echo "$as_me: error: cannot compute sizeof (long long), 77
19175See \`config.log' for more details." >&2;}
19176 { (exit 1); exit 1; }; } ;;
19177esac
19178else
19179 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19180 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19181echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19182 { (exit 1); exit 1; }; }
19183else
19184 cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190$ac_includes_default
19191long longval () { return (long) (sizeof (long long)); }
19192unsigned long ulongval () { return (long) (sizeof (long long)); }
19193#include <stdio.h>
19194#include <stdlib.h>
19195int
19196main ()
19197{
19198
19199 FILE *f = fopen ("conftest.val", "w");
19200 if (! f)
19201 exit (1);
19202 if (((long) (sizeof (long long))) < 0)
19203 {
19204 long i = longval ();
19205 if (i != ((long) (sizeof (long long))))
19206 exit (1);
19207 fprintf (f, "%ld\n", i);
19208 }
19209 else
19210 {
19211 unsigned long i = ulongval ();
19212 if (i != ((long) (sizeof (long long))))
19213 exit (1);
19214 fprintf (f, "%lu\n", i);
19215 }
19216 exit (ferror (f) || fclose (f) != 0);
19217
19218 ;
19219 return 0;
19220}
19221_ACEOF
19222rm -f conftest$ac_exeext
19223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19224 (eval $ac_link) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_cv_sizeof_long_long=`cat conftest.val`
19234else
19235 echo "$as_me: program exited with status $ac_status" >&5
19236echo "$as_me: failed program was:" >&5
19237sed 's/^/| /' conftest.$ac_ext >&5
19238
19239( exit $ac_status )
19240{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19241See \`config.log' for more details." >&5
19242echo "$as_me: error: cannot compute sizeof (long long), 77
19243See \`config.log' for more details." >&2;}
19244 { (exit 1); exit 1; }; }
19245fi
ac1cb8d3 19246rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19247fi
19248fi
19249rm -f conftest.val
19250else
19251 ac_cv_sizeof_long_long=0
19252fi
19253fi
19254echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19255echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19256cat >>confdefs.h <<_ACEOF
19257#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19258_ACEOF
19259
19260
19261 if test "$ac_cv_sizeof_long_long" != "0"; then
19262 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19263 fi
19264 ;;
19265 * )
19266 echo "$as_me:$LINENO: checking for long long" >&5
19267echo $ECHO_N "checking for long long... $ECHO_C" >&6
19268if test "${ac_cv_type_long_long+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270else
19271 cat >conftest.$ac_ext <<_ACEOF
19272/* confdefs.h. */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h. */
19277$ac_includes_default
19278int
19279main ()
19280{
19281if ((long long *) 0)
19282 return 0;
19283if (sizeof (long long))
19284 return 0;
19285 ;
19286 return 0;
19287}
19288_ACEOF
19289rm -f conftest.$ac_objext
19290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19291 (eval $ac_compile) 2>conftest.er1
a848cd7e 19292 ac_status=$?
ac1cb8d3
VS
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
a848cd7e
SC
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
6ebeb4c7 19298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; } &&
19304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_type_long_long=yes
19311else
19312 echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315ac_cv_type_long_long=no
19316fi
ac1cb8d3 19317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19318fi
19319echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19320echo "${ECHO_T}$ac_cv_type_long_long" >&6
19321
19322echo "$as_me:$LINENO: checking size of long long" >&5
19323echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19324if test "${ac_cv_sizeof_long_long+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19326else
19327 if test "$ac_cv_type_long_long" = yes; then
19328 # The cast to unsigned long works around a bug in the HP C Compiler
19329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19331 # This bug is HP SR number 8606223364.
19332 if test "$cross_compiling" = yes; then
19333 # Depending upon the size, compute the lo and hi bounds.
19334cat >conftest.$ac_ext <<_ACEOF
19335/* confdefs.h. */
19336_ACEOF
19337cat confdefs.h >>conftest.$ac_ext
19338cat >>conftest.$ac_ext <<_ACEOF
19339/* end confdefs.h. */
19340$ac_includes_default
19341int
19342main ()
19343{
19344static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19345test_array [0] = 0
19346
19347 ;
19348 return 0;
19349}
19350_ACEOF
19351rm -f conftest.$ac_objext
19352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19353 (eval $ac_compile) 2>conftest.er1
a848cd7e 19354 ac_status=$?
ac1cb8d3
VS
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
a848cd7e
SC
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } &&
6ebeb4c7 19360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 ac_lo=0 ac_mid=0
19373 while :; do
19374 cat >conftest.$ac_ext <<_ACEOF
19375/* confdefs.h. */
19376_ACEOF
19377cat confdefs.h >>conftest.$ac_ext
19378cat >>conftest.$ac_ext <<_ACEOF
19379/* end confdefs.h. */
19380$ac_includes_default
19381int
19382main ()
19383{
19384static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19385test_array [0] = 0
19386
19387 ;
19388 return 0;
19389}
19390_ACEOF
19391rm -f conftest.$ac_objext
19392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19393 (eval $ac_compile) 2>conftest.er1
a848cd7e 19394 ac_status=$?
ac1cb8d3
VS
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
a848cd7e
SC
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
6ebeb4c7 19400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_hi=$ac_mid; break
19413else
19414 echo "$as_me: failed program was:" >&5
19415sed 's/^/| /' conftest.$ac_ext >&5
19416
19417ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19418 if test $ac_lo -le $ac_mid; then
19419 ac_lo= ac_hi=
19420 break
19421 fi
19422 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19423fi
ac1cb8d3 19424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19425 done
19426else
19427 echo "$as_me: failed program was:" >&5
19428sed 's/^/| /' conftest.$ac_ext >&5
19429
19430cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h. */
19436$ac_includes_default
19437int
19438main ()
19439{
19440static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19441test_array [0] = 0
19442
19443 ;
19444 return 0;
19445}
19446_ACEOF
19447rm -f conftest.$ac_objext
19448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19449 (eval $ac_compile) 2>conftest.er1
a848cd7e 19450 ac_status=$?
ac1cb8d3
VS
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
a848cd7e
SC
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
6ebeb4c7 19456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; } &&
19462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 ac_hi=-1 ac_mid=-1
19469 while :; do
19470 cat >conftest.$ac_ext <<_ACEOF
19471/* confdefs.h. */
19472_ACEOF
19473cat confdefs.h >>conftest.$ac_ext
19474cat >>conftest.$ac_ext <<_ACEOF
19475/* end confdefs.h. */
19476$ac_includes_default
19477int
19478main ()
19479{
19480static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19481test_array [0] = 0
19482
19483 ;
19484 return 0;
19485}
19486_ACEOF
19487rm -f conftest.$ac_objext
19488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19489 (eval $ac_compile) 2>conftest.er1
a848cd7e 19490 ac_status=$?
ac1cb8d3
VS
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
a848cd7e
SC
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
6ebeb4c7 19496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_lo=$ac_mid; break
19509else
19510 echo "$as_me: failed program was:" >&5
19511sed 's/^/| /' conftest.$ac_ext >&5
19512
19513ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19514 if test $ac_mid -le $ac_hi; then
19515 ac_lo= ac_hi=
19516 break
19517 fi
19518 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19519fi
ac1cb8d3 19520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19521 done
19522else
19523 echo "$as_me: failed program was:" >&5
19524sed 's/^/| /' conftest.$ac_ext >&5
19525
19526ac_lo= ac_hi=
19527fi
ac1cb8d3 19528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19529fi
ac1cb8d3 19530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19531# Binary search between lo and hi bounds.
19532while test "x$ac_lo" != "x$ac_hi"; do
19533 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19534 cat >conftest.$ac_ext <<_ACEOF
19535/* confdefs.h. */
19536_ACEOF
19537cat confdefs.h >>conftest.$ac_ext
19538cat >>conftest.$ac_ext <<_ACEOF
19539/* end confdefs.h. */
19540$ac_includes_default
19541int
19542main ()
19543{
19544static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19545test_array [0] = 0
19546
19547 ;
19548 return 0;
19549}
19550_ACEOF
19551rm -f conftest.$ac_objext
19552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19553 (eval $ac_compile) 2>conftest.er1
a848cd7e 19554 ac_status=$?
ac1cb8d3
VS
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
a848cd7e
SC
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } &&
6ebeb4c7 19560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19563 ac_status=$?
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; } &&
19566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
19572 ac_hi=$ac_mid
19573else
19574 echo "$as_me: failed program was:" >&5
19575sed 's/^/| /' conftest.$ac_ext >&5
19576
19577ac_lo=`expr '(' $ac_mid ')' + 1`
19578fi
ac1cb8d3 19579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19580done
19581case $ac_lo in
19582?*) ac_cv_sizeof_long_long=$ac_lo;;
19583'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19584See \`config.log' for more details." >&5
19585echo "$as_me: error: cannot compute sizeof (long long), 77
19586See \`config.log' for more details." >&2;}
19587 { (exit 1); exit 1; }; } ;;
19588esac
19589else
19590 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19591 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19592echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19593 { (exit 1); exit 1; }; }
19594else
19595 cat >conftest.$ac_ext <<_ACEOF
19596/* confdefs.h. */
19597_ACEOF
19598cat confdefs.h >>conftest.$ac_ext
19599cat >>conftest.$ac_ext <<_ACEOF
19600/* end confdefs.h. */
19601$ac_includes_default
19602long longval () { return (long) (sizeof (long long)); }
19603unsigned long ulongval () { return (long) (sizeof (long long)); }
19604#include <stdio.h>
19605#include <stdlib.h>
19606int
19607main ()
19608{
19609
19610 FILE *f = fopen ("conftest.val", "w");
19611 if (! f)
19612 exit (1);
19613 if (((long) (sizeof (long long))) < 0)
19614 {
19615 long i = longval ();
19616 if (i != ((long) (sizeof (long long))))
19617 exit (1);
19618 fprintf (f, "%ld\n", i);
19619 }
19620 else
19621 {
19622 unsigned long i = ulongval ();
19623 if (i != ((long) (sizeof (long long))))
19624 exit (1);
19625 fprintf (f, "%lu\n", i);
19626 }
19627 exit (ferror (f) || fclose (f) != 0);
19628
19629 ;
19630 return 0;
19631}
19632_ACEOF
19633rm -f conftest$ac_exeext
19634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635 (eval $ac_link) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_cv_sizeof_long_long=`cat conftest.val`
19645else
19646 echo "$as_me: program exited with status $ac_status" >&5
19647echo "$as_me: failed program was:" >&5
19648sed 's/^/| /' conftest.$ac_ext >&5
19649
19650( exit $ac_status )
19651{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19652See \`config.log' for more details." >&5
19653echo "$as_me: error: cannot compute sizeof (long long), 77
19654See \`config.log' for more details." >&2;}
19655 { (exit 1); exit 1; }; }
19656fi
ac1cb8d3 19657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19658fi
19659fi
19660rm -f conftest.val
19661else
19662 ac_cv_sizeof_long_long=0
19663fi
19664fi
19665echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19666echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19667cat >>confdefs.h <<_ACEOF
19668#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19669_ACEOF
19670
19671
19672esac
19673
238ecede
MW
19674echo "$as_me:$LINENO: checking for wchar_t" >&5
19675echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19676if test "${ac_cv_type_wchar_t+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19678else
19679 cat >conftest.$ac_ext <<_ACEOF
19680/* confdefs.h. */
19681_ACEOF
19682cat confdefs.h >>conftest.$ac_ext
19683cat >>conftest.$ac_ext <<_ACEOF
19684/* end confdefs.h. */
19685
83d8eb47
MW
19686 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19687 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19688 # error "fake wchar_t"
19689 #endif
19690 #ifdef HAVE_WCHAR_H
19691 # ifdef __CYGWIN__
19692 # include <stddef.h>
19693 # endif
19694 # include <wchar.h>
19695 #endif
19696 #ifdef HAVE_STDLIB_H
19697 # include <stdlib.h>
19698 #endif
19699 #include <stdio.h>
19700
19701
19702
19703int
19704main ()
19705{
19706if ((wchar_t *) 0)
19707 return 0;
19708if (sizeof (wchar_t))
19709 return 0;
19710 ;
19711 return 0;
19712}
19713_ACEOF
19714rm -f conftest.$ac_objext
19715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716 (eval $ac_compile) 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
6ebeb4c7 19723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest.$ac_objext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_type_wchar_t=yes
19736else
19737 echo "$as_me: failed program was:" >&5
19738sed 's/^/| /' conftest.$ac_ext >&5
19739
19740ac_cv_type_wchar_t=no
19741fi
19742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19743fi
19744echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19745echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19746
a848cd7e
SC
19747echo "$as_me:$LINENO: checking size of wchar_t" >&5
19748echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19749if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751else
238ecede
MW
19752 if test "$ac_cv_type_wchar_t" = yes; then
19753 # The cast to unsigned long works around a bug in the HP C Compiler
19754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19756 # This bug is HP SR number 8606223364.
19757 if test "$cross_compiling" = yes; then
19758 # Depending upon the size, compute the lo and hi bounds.
19759cat >conftest.$ac_ext <<_ACEOF
19760/* confdefs.h. */
19761_ACEOF
19762cat confdefs.h >>conftest.$ac_ext
19763cat >>conftest.$ac_ext <<_ACEOF
19764/* end confdefs.h. */
19765
83d8eb47
MW
19766 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19767 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19768 # error "fake wchar_t"
19769 #endif
19770 #ifdef HAVE_WCHAR_H
19771 # ifdef __CYGWIN__
19772 # include <stddef.h>
19773 # endif
19774 # include <wchar.h>
19775 #endif
19776 #ifdef HAVE_STDLIB_H
19777 # include <stdlib.h>
19778 #endif
19779 #include <stdio.h>
19780
19781
19782
19783int
19784main ()
19785{
19786static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19787test_array [0] = 0
19788
19789 ;
19790 return 0;
19791}
19792_ACEOF
19793rm -f conftest.$ac_objext
19794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19795 (eval $ac_compile) 2>conftest.er1
19796 ac_status=$?
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
6ebeb4c7 19802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest.$ac_objext'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 ac_lo=0 ac_mid=0
19815 while :; do
19816 cat >conftest.$ac_ext <<_ACEOF
19817/* confdefs.h. */
19818_ACEOF
19819cat confdefs.h >>conftest.$ac_ext
19820cat >>conftest.$ac_ext <<_ACEOF
19821/* end confdefs.h. */
19822
83d8eb47
MW
19823 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19824 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19825 # error "fake wchar_t"
19826 #endif
19827 #ifdef HAVE_WCHAR_H
19828 # ifdef __CYGWIN__
19829 # include <stddef.h>
19830 # endif
19831 # include <wchar.h>
19832 #endif
19833 #ifdef HAVE_STDLIB_H
19834 # include <stdlib.h>
19835 #endif
19836 #include <stdio.h>
19837
19838
19839
19840int
19841main ()
19842{
19843static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19844test_array [0] = 0
19845
19846 ;
19847 return 0;
19848}
19849_ACEOF
19850rm -f conftest.$ac_objext
19851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19852 (eval $ac_compile) 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
6ebeb4c7 19859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest.$ac_objext'
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; }; then
19871 ac_hi=$ac_mid; break
19872else
19873 echo "$as_me: failed program was:" >&5
19874sed 's/^/| /' conftest.$ac_ext >&5
19875
19876ac_lo=`expr $ac_mid + 1`
19877 if test $ac_lo -le $ac_mid; then
19878 ac_lo= ac_hi=
19879 break
19880 fi
19881 ac_mid=`expr 2 '*' $ac_mid + 1`
19882fi
19883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19884 done
19885else
19886 echo "$as_me: failed program was:" >&5
19887sed 's/^/| /' conftest.$ac_ext >&5
19888
19889cat >conftest.$ac_ext <<_ACEOF
19890/* confdefs.h. */
19891_ACEOF
19892cat confdefs.h >>conftest.$ac_ext
19893cat >>conftest.$ac_ext <<_ACEOF
19894/* end confdefs.h. */
19895
83d8eb47
MW
19896 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19897 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19898 # error "fake wchar_t"
19899 #endif
19900 #ifdef HAVE_WCHAR_H
19901 # ifdef __CYGWIN__
19902 # include <stddef.h>
19903 # endif
19904 # include <wchar.h>
19905 #endif
19906 #ifdef HAVE_STDLIB_H
19907 # include <stdlib.h>
19908 #endif
19909 #include <stdio.h>
19910
19911
19912
19913int
19914main ()
19915{
19916static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19917test_array [0] = 0
19918
19919 ;
19920 return 0;
19921}
19922_ACEOF
19923rm -f conftest.$ac_objext
19924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925 (eval $ac_compile) 2>conftest.er1
19926 ac_status=$?
19927 grep -v '^ *+' conftest.er1 >conftest.err
19928 rm -f conftest.er1
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
6ebeb4c7 19932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; } &&
19938 { ac_try='test -s conftest.$ac_objext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_hi=-1 ac_mid=-1
19945 while :; do
19946 cat >conftest.$ac_ext <<_ACEOF
19947/* confdefs.h. */
19948_ACEOF
19949cat confdefs.h >>conftest.$ac_ext
19950cat >>conftest.$ac_ext <<_ACEOF
19951/* end confdefs.h. */
19952
83d8eb47
MW
19953 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19954 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19955 # error "fake wchar_t"
19956 #endif
19957 #ifdef HAVE_WCHAR_H
19958 # ifdef __CYGWIN__
19959 # include <stddef.h>
19960 # endif
19961 # include <wchar.h>
19962 #endif
19963 #ifdef HAVE_STDLIB_H
19964 # include <stdlib.h>
19965 #endif
19966 #include <stdio.h>
19967
19968
19969
19970int
19971main ()
19972{
19973static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19974test_array [0] = 0
19975
19976 ;
19977 return 0;
19978}
19979_ACEOF
19980rm -f conftest.$ac_objext
19981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19982 (eval $ac_compile) 2>conftest.er1
19983 ac_status=$?
19984 grep -v '^ *+' conftest.er1 >conftest.err
19985 rm -f conftest.er1
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } &&
6ebeb4c7 19989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest.$ac_objext'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_lo=$ac_mid; break
20002else
20003 echo "$as_me: failed program was:" >&5
20004sed 's/^/| /' conftest.$ac_ext >&5
20005
20006ac_hi=`expr '(' $ac_mid ')' - 1`
20007 if test $ac_mid -le $ac_hi; then
20008 ac_lo= ac_hi=
20009 break
20010 fi
20011 ac_mid=`expr 2 '*' $ac_mid`
20012fi
20013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20014 done
20015else
20016 echo "$as_me: failed program was:" >&5
20017sed 's/^/| /' conftest.$ac_ext >&5
20018
20019ac_lo= ac_hi=
20020fi
20021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20022fi
20023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20024# Binary search between lo and hi bounds.
20025while test "x$ac_lo" != "x$ac_hi"; do
20026 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20027 cat >conftest.$ac_ext <<_ACEOF
20028/* confdefs.h. */
20029_ACEOF
20030cat confdefs.h >>conftest.$ac_ext
20031cat >>conftest.$ac_ext <<_ACEOF
20032/* end confdefs.h. */
20033
83d8eb47
MW
20034 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20035 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20036 # error "fake wchar_t"
20037 #endif
20038 #ifdef HAVE_WCHAR_H
20039 # ifdef __CYGWIN__
20040 # include <stddef.h>
20041 # endif
20042 # include <wchar.h>
20043 #endif
20044 #ifdef HAVE_STDLIB_H
20045 # include <stdlib.h>
20046 #endif
20047 #include <stdio.h>
a848cd7e 20048
a848cd7e 20049
a848cd7e 20050
238ecede
MW
20051int
20052main ()
20053{
20054static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20055test_array [0] = 0
a848cd7e 20056
238ecede
MW
20057 ;
20058 return 0;
20059}
20060_ACEOF
20061rm -f conftest.$ac_objext
20062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
6ebeb4c7 20070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest.$ac_objext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_hi=$ac_mid
20083else
20084 echo "$as_me: failed program was:" >&5
20085sed 's/^/| /' conftest.$ac_ext >&5
20086
20087ac_lo=`expr '(' $ac_mid ')' + 1`
20088fi
20089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20090done
20091case $ac_lo in
20092?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20093'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20094See \`config.log' for more details." >&5
20095echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20096See \`config.log' for more details." >&2;}
20097 { (exit 1); exit 1; }; } ;;
20098esac
20099else
20100 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
20101 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20102echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20103 { (exit 1); exit 1; }; }
a848cd7e
SC
20104else
20105 cat >conftest.$ac_ext <<_ACEOF
20106/* confdefs.h. */
20107_ACEOF
20108cat confdefs.h >>conftest.$ac_ext
20109cat >>conftest.$ac_ext <<_ACEOF
20110/* end confdefs.h. */
20111
83d8eb47
MW
20112 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20113 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20114 # error "fake wchar_t"
20115 #endif
20116 #ifdef HAVE_WCHAR_H
20117 # ifdef __CYGWIN__
20118 # include <stddef.h>
20119 # endif
20120 # include <wchar.h>
20121 #endif
20122 #ifdef HAVE_STDLIB_H
20123 # include <stdlib.h>
20124 #endif
20125 #include <stdio.h>
20126
20127
20128
20129long longval () { return (long) (sizeof (wchar_t)); }
20130unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20131#include <stdio.h>
20132#include <stdlib.h>
20133int
20134main ()
20135{
a848cd7e 20136
238ecede
MW
20137 FILE *f = fopen ("conftest.val", "w");
20138 if (! f)
20139 exit (1);
20140 if (((long) (sizeof (wchar_t))) < 0)
20141 {
20142 long i = longval ();
20143 if (i != ((long) (sizeof (wchar_t))))
20144 exit (1);
20145 fprintf (f, "%ld\n", i);
20146 }
20147 else
20148 {
20149 unsigned long i = ulongval ();
20150 if (i != ((long) (sizeof (wchar_t))))
20151 exit (1);
20152 fprintf (f, "%lu\n", i);
20153 }
20154 exit (ferror (f) || fclose (f) != 0);
20155
20156 ;
20157 return 0;
20158}
a848cd7e
SC
20159_ACEOF
20160rm -f conftest$ac_exeext
20161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20162 (eval $ac_link) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167 (eval $ac_try) 2>&5
20168 ac_status=$?
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); }; }; then
238ecede 20171 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20172else
20173 echo "$as_me: program exited with status $ac_status" >&5
20174echo "$as_me: failed program was:" >&5
20175sed 's/^/| /' conftest.$ac_ext >&5
20176
20177( exit $ac_status )
238ecede
MW
20178{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20179See \`config.log' for more details." >&5
20180echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20181See \`config.log' for more details." >&2;}
20182 { (exit 1); exit 1; }; }
a848cd7e 20183fi
ac1cb8d3 20184rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20185fi
a848cd7e 20186fi
238ecede
MW
20187rm -f conftest.val
20188else
20189 ac_cv_sizeof_wchar_t=0
20190fi
20191fi
20192echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20193echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20194cat >>confdefs.h <<_ACEOF
238ecede 20195#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20196_ACEOF
20197
20198
47a7e797
MW
20199if test "$ac_cv_sizeof_wchar_t" != "0"; then
20200 wxUSE_WCHAR_T=yes
20201else
20202 wxUSE_WCHAR_T=no
20203fi
238ecede 20204
ba3d13e1
VZ
20205echo "$as_me:$LINENO: checking for va_copy" >&5
20206echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20207if test "${wx_cv_func_va_copy+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20209else
20210
20211 cat >conftest.$ac_ext <<_ACEOF
20212
20213 #include <stdarg.h>
20214 void foo(char *f, ...)
20215 {
20216 va_list ap1, ap2;
20217 va_start(ap1, f);
20218 va_copy(ap2, ap1);
20219 va_end(ap2);
20220 va_end(ap1);
20221 }
5886b072
VZ
20222 int main()
20223 {
b902e639
VZ
20224 foo("hi", 17);
20225 return 0;
5886b072 20226 }
ba3d13e1
VZ
20227_ACEOF
20228rm -f conftest.$ac_objext conftest$ac_exeext
20229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20230 (eval $ac_link) 2>conftest.er1
20231 ac_status=$?
20232 grep -v '^ *+' conftest.er1 >conftest.err
20233 rm -f conftest.er1
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
6ebeb4c7 20237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest$ac_exeext'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 wx_cv_func_va_copy=yes
20250else
20251 echo "$as_me: failed program was:" >&5
20252sed 's/^/| /' conftest.$ac_ext >&5
20253
20254wx_cv_func_va_copy=no
20255
20256fi
20257rm -f conftest.err conftest.$ac_objext \
20258 conftest$ac_exeext conftest.$ac_ext
20259
20260
20261fi
20262echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20263echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20264
20265if test $wx_cv_func_va_copy = "yes"; then
20266 cat >>confdefs.h <<\_ACEOF
20267#define HAVE_VA_COPY 1
20268_ACEOF
20269
20270else
20271 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20272echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20273if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20275else
20276
20277 if test "$cross_compiling" = yes; then
20278 wx_cv_type_va_list_lvalue=yes
20279
20280else
20281 cat >conftest.$ac_ext <<_ACEOF
20282
20283 #include <stdarg.h>
20284 int foo(char *f, ...)
20285 {
20286 va_list ap1, ap2;
20287 va_start(ap1, f);
20288 ap2 = ap1;
20289 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20290 return 1;
20291 va_end(ap2);
20292 va_end(ap1);
20293 return 0;
20294 }
20295 int main()
20296 {
20297 return foo("hi", 17);
20298 }
20299_ACEOF
20300rm -f conftest$ac_exeext
20301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20302 (eval $ac_link) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 wx_cv_type_va_list_lvalue=yes
20312else
20313 echo "$as_me: program exited with status $ac_status" >&5
20314echo "$as_me: failed program was:" >&5
20315sed 's/^/| /' conftest.$ac_ext >&5
20316
20317( exit $ac_status )
20318wx_cv_type_va_list_lvalue=no
20319fi
20320rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20321fi
20322
20323
20324fi
20325echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20326echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20327
20328 if test $wx_cv_type_va_list_lvalue != "yes"; then
20329 cat >>confdefs.h <<\_ACEOF
20330#define VA_LIST_IS_ARRAY 1
20331_ACEOF
20332
20333 fi
20334fi
20335
a848cd7e
SC
20336# Check whether --enable-largefile or --disable-largefile was given.
20337if test "${enable_largefile+set}" = set; then
20338 enableval="$enable_largefile"
20339
20340fi;
20341if test "$enable_largefile" != no; then
20342 wx_largefile=no
20343
20344 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20345echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20346if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20348else
20349
20350 cat >conftest.$ac_ext <<_ACEOF
20351/* confdefs.h. */
20352_ACEOF
20353cat confdefs.h >>conftest.$ac_ext
20354cat >>conftest.$ac_ext <<_ACEOF
20355/* end confdefs.h. */
20356#define _FILE_OFFSET_BITS 64
20357 #include <sys/types.h>
20358int
20359main ()
20360{
20361typedef struct {
20362 unsigned int field: sizeof(off_t) == 8;
20363} wxlf;
20364
20365 ;
20366 return 0;
20367}
20368_ACEOF
20369rm -f conftest.$ac_objext
20370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20371 (eval $ac_compile) 2>conftest.er1
a848cd7e 20372 ac_status=$?
ac1cb8d3
VS
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
a848cd7e
SC
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
6ebeb4c7 20378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; } &&
20384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20390 ac_cv_sys_file_offset_bits=64
20391else
20392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395ac_cv_sys_file_offset_bits=no
20396fi
ac1cb8d3 20397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20398
20399
20400fi
20401echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20402echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20403
20404 if test "$ac_cv_sys_file_offset_bits" != no; then
20405 wx_largefile=yes
20406 cat >>confdefs.h <<_ACEOF
20407#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20408_ACEOF
20409
20410 fi
20411
20412 if test "x$wx_largefile" != "xyes"; then
20413
20414 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20415echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20416if test "${ac_cv_sys_large_files+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418else
20419
20420 cat >conftest.$ac_ext <<_ACEOF
20421/* confdefs.h. */
20422_ACEOF
20423cat confdefs.h >>conftest.$ac_ext
20424cat >>conftest.$ac_ext <<_ACEOF
20425/* end confdefs.h. */
20426#define _LARGE_FILES 1
20427 #include <sys/types.h>
20428int
20429main ()
20430{
20431typedef struct {
20432 unsigned int field: sizeof(off_t) == 8;
20433} wxlf;
20434
20435 ;
20436 return 0;
20437}
20438_ACEOF
20439rm -f conftest.$ac_objext
20440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20441 (eval $ac_compile) 2>conftest.er1
a848cd7e 20442 ac_status=$?
ac1cb8d3
VS
20443 grep -v '^ *+' conftest.er1 >conftest.err
20444 rm -f conftest.er1
20445 cat conftest.err >&5
a848cd7e
SC
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } &&
6ebeb4c7 20448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 ac_cv_sys_large_files=1
20461else
20462 echo "$as_me: failed program was:" >&5
20463sed 's/^/| /' conftest.$ac_ext >&5
20464
20465ac_cv_sys_large_files=no
20466fi
ac1cb8d3 20467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20468
20469
20470fi
20471echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20472echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20473
20474 if test "$ac_cv_sys_large_files" != no; then
20475 wx_largefile=yes
20476 cat >>confdefs.h <<_ACEOF
20477#define _LARGE_FILES $ac_cv_sys_large_files
20478_ACEOF
20479
20480 fi
20481
20482 fi
20483
20484 echo "$as_me:$LINENO: checking if large file support is available" >&5
20485echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20486 if test "x$wx_largefile" = "xyes"; then
20487 cat >>confdefs.h <<\_ACEOF
20488#define HAVE_LARGEFILE_SUPPORT 1
20489_ACEOF
20490
20491 fi
20492 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20493echo "${ECHO_T}$wx_largefile" >&6
20494fi
20495
5b674b9d
DE
20496
20497if test "x$wx_largefile" = "xyes"; then
20498 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20499 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
20500
20501 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
20502 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
20503echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
20504if test "${wx_cv_STDC_EXT_required+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506else
20507
20508
20509
20510 ac_ext=cc
20511ac_cpp='$CXXCPP $CPPFLAGS'
20512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20515
20516 cat >conftest.$ac_ext <<_ACEOF
20517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
20522
20523int
20524main ()
20525{
20526
20527 #ifndef __STDC_EXT__
20528 choke me
20529 #endif
20530
20531 ;
20532 return 0;
20533}
20534_ACEOF
20535rm -f conftest.$ac_objext
20536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537 (eval $ac_compile) 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest.$ac_objext'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 wx_cv_STDC_EXT_required=no
20557else
20558 echo "$as_me: failed program was:" >&5
20559sed 's/^/| /' conftest.$ac_ext >&5
20560
20561wx_cv_STDC_EXT_required=yes
20562
20563fi
20564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20565 ac_ext=c
20566ac_cpp='$CPP $CPPFLAGS'
20567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20569ac_compiler_gnu=$ac_cv_c_compiler_gnu
20570
20571
20572
20573fi
20574echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
20575echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
20576 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
20577 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
20578 fi
20579 fi
5b674b9d
DE
20580 else
20581 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20582 fi
20583 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20584echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20585if test "${ac_cv_sys_largefile_source+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20587else
20588 while :; do
20589 ac_cv_sys_largefile_source=no
20590 cat >conftest.$ac_ext <<_ACEOF
20591/* confdefs.h. */
20592_ACEOF
20593cat confdefs.h >>conftest.$ac_ext
20594cat >>conftest.$ac_ext <<_ACEOF
20595/* end confdefs.h. */
20596#include <stdio.h>
20597int
20598main ()
20599{
20600return !fseeko;
20601 ;
20602 return 0;
20603}
20604_ACEOF
20605rm -f conftest.$ac_objext
20606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20607 (eval $ac_compile) 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
6ebeb4c7 20614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20617 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; } &&
20620 { ac_try='test -s conftest.$ac_objext'
20621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622 (eval $ac_try) 2>&5
20623 ac_status=$?
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 break
20627else
20628 echo "$as_me: failed program was:" >&5
20629sed 's/^/| /' conftest.$ac_ext >&5
20630
20631fi
20632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20633 cat >conftest.$ac_ext <<_ACEOF
20634/* confdefs.h. */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
20638/* end confdefs.h. */
20639#define _LARGEFILE_SOURCE 1
20640#include <stdio.h>
20641int
20642main ()
20643{
20644return !fseeko;
20645 ;
20646 return 0;
20647}
20648_ACEOF
20649rm -f conftest.$ac_objext
20650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20651 (eval $ac_compile) 2>conftest.er1
20652 ac_status=$?
20653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
6ebeb4c7 20658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest.$ac_objext'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 ac_cv_sys_largefile_source=1; break
20671else
20672 echo "$as_me: failed program was:" >&5
20673sed 's/^/| /' conftest.$ac_ext >&5
20674
20675fi
20676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20677 break
20678done
20679fi
20680echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20681echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20682if test "$ac_cv_sys_largefile_source" != no; then
20683
20684cat >>confdefs.h <<_ACEOF
20685#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20686_ACEOF
20687
20688fi
20689rm -f conftest*
20690
20691# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20692# in glibc 2.1.3, but that breaks too many other things.
20693# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20694echo "$as_me:$LINENO: checking for fseeko" >&5
20695echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20696if test "${ac_cv_func_fseeko+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20698else
20699 cat >conftest.$ac_ext <<_ACEOF
20700/* confdefs.h. */
20701_ACEOF
20702cat confdefs.h >>conftest.$ac_ext
20703cat >>conftest.$ac_ext <<_ACEOF
20704/* end confdefs.h. */
20705#include <stdio.h>
20706int
20707main ()
20708{
20709return fseeko && fseeko (stdin, 0, 0);
20710 ;
20711 return 0;
20712}
20713_ACEOF
20714rm -f conftest.$ac_objext conftest$ac_exeext
20715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716 (eval $ac_link) 2>conftest.er1
20717 ac_status=$?
20718 grep -v '^ *+' conftest.er1 >conftest.err
20719 rm -f conftest.er1
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
6ebeb4c7 20723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20726 ac_status=$?
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; } &&
20729 { ac_try='test -s conftest$ac_exeext'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20732 ac_status=$?
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 ac_cv_func_fseeko=yes
20736else
20737 echo "$as_me: failed program was:" >&5
20738sed 's/^/| /' conftest.$ac_ext >&5
20739
20740ac_cv_func_fseeko=no
20741fi
20742rm -f conftest.err conftest.$ac_objext \
20743 conftest$ac_exeext conftest.$ac_ext
20744fi
20745echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20746echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20747if test $ac_cv_func_fseeko = yes; then
20748
20749cat >>confdefs.h <<\_ACEOF
20750#define HAVE_FSEEKO 1
20751_ACEOF
20752
20753fi
20754
5b674b9d
DE
20755 if test "$ac_cv_sys_largefile_source" != no; then
20756 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20757 fi
20758 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20759fi
20760
20761echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20762echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20763if test "${ac_cv_c_bigendian+set}" = set; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20765else
20766 ac_cv_c_bigendian=unknown
20767# See if sys/param.h defines the BYTE_ORDER macro.
20768cat >conftest.$ac_ext <<_ACEOF
20769/* confdefs.h. */
20770_ACEOF
20771cat confdefs.h >>conftest.$ac_ext
20772cat >>conftest.$ac_ext <<_ACEOF
20773/* end confdefs.h. */
20774#include <sys/types.h>
20775#include <sys/param.h>
20776int
20777main ()
20778{
20779
20780#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20781 bogus endian macros
20782#endif
20783 ;
20784 return 0;
20785}
20786_ACEOF
20787rm -f conftest.$ac_objext
20788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20789 (eval $ac_compile) 2>conftest.er1
a848cd7e 20790 ac_status=$?
ac1cb8d3
VS
20791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
a848cd7e
SC
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } &&
6ebeb4c7 20796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798 (eval $ac_try) 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; } &&
20802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20808 # It does; now see whether it defined to BIG_ENDIAN or not.
20809cat >conftest.$ac_ext <<_ACEOF
20810/* confdefs.h. */
20811_ACEOF
20812cat confdefs.h >>conftest.$ac_ext
20813cat >>conftest.$ac_ext <<_ACEOF
20814/* end confdefs.h. */
20815#include <sys/types.h>
20816#include <sys/param.h>
20817int
20818main ()
20819{
20820
20821#if BYTE_ORDER != BIG_ENDIAN
20822 not big endian
20823#endif
20824 ;
20825 return 0;
20826}
20827_ACEOF
20828rm -f conftest.$ac_objext
20829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20830 (eval $ac_compile) 2>conftest.er1
a848cd7e 20831 ac_status=$?
ac1cb8d3
VS
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
a848cd7e
SC
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
6ebeb4c7 20837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; } &&
20843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20846 ac_status=$?
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; }; then
20849 ac_cv_c_bigendian=yes
20850else
20851 echo "$as_me: failed program was:" >&5
20852sed 's/^/| /' conftest.$ac_ext >&5
20853
20854ac_cv_c_bigendian=no
20855fi
ac1cb8d3 20856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20857else
20858 echo "$as_me: failed program was:" >&5
20859sed 's/^/| /' conftest.$ac_ext >&5
20860
20861fi
ac1cb8d3 20862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20863if test $ac_cv_c_bigendian = unknown; then
20864if test "$cross_compiling" = yes; then
20865 ac_cv_c_bigendian=unknown
20866else
20867 cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
20873main () {
20874 /* Are we little or big endian? From Harbison&Steele. */
20875 union
20876 {
20877 long l;
20878 char c[sizeof (long)];
20879 } u;
20880 u.l = 1;
20881 exit (u.c[sizeof (long) - 1] == 1);
20882}
20883_ACEOF
20884rm -f conftest$ac_exeext
20885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886 (eval $ac_link) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 ac_cv_c_bigendian=no
20896else
20897 echo "$as_me: program exited with status $ac_status" >&5
20898echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901( exit $ac_status )
20902ac_cv_c_bigendian=yes
20903fi
ac1cb8d3 20904rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20905fi
20906fi
20907fi
20908echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20909echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20910if test $ac_cv_c_bigendian = unknown; then
20911 { 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
20912echo "$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;}
20913fi
20914if test $ac_cv_c_bigendian = yes; then
20915 cat >>confdefs.h <<\_ACEOF
20916#define WORDS_BIGENDIAN 1
20917_ACEOF
20918
20919fi
20920
20921
20922ac_ext=cc
20923ac_cpp='$CXXCPP $CPPFLAGS'
20924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20927echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20928echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20929if test -z "$CXXCPP"; then
20930 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932else
20933 # Double quotes because CXXCPP needs to be expanded
20934 for CXXCPP in "$CXX -E" "/lib/cpp"
20935 do
20936 ac_preproc_ok=false
20937for ac_cxx_preproc_warn_flag in '' yes
20938do
20939 # Use a header file that comes with gcc, so configuring glibc
20940 # with a fresh cross-compiler works.
20941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20942 # <limits.h> exists even on freestanding compilers.
20943 # On the NeXT, cc -E runs the code through the compiler's parser,
20944 # not just through cpp. "Syntax error" is here to catch this case.
20945 cat >conftest.$ac_ext <<_ACEOF
20946/* confdefs.h. */
20947_ACEOF
20948cat confdefs.h >>conftest.$ac_ext
20949cat >>conftest.$ac_ext <<_ACEOF
20950/* end confdefs.h. */
20951#ifdef __STDC__
20952# include <limits.h>
20953#else
20954# include <assert.h>
20955#endif
ac1cb8d3 20956 Syntax error
a848cd7e
SC
20957_ACEOF
20958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20960 ac_status=$?
20961 grep -v '^ *+' conftest.er1 >conftest.err
20962 rm -f conftest.er1
20963 cat conftest.err >&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } >/dev/null; then
20966 if test -s conftest.err; then
20967 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20969 else
20970 ac_cpp_err=
20971 fi
20972else
20973 ac_cpp_err=yes
20974fi
20975if test -z "$ac_cpp_err"; then
20976 :
20977else
20978 echo "$as_me: failed program was:" >&5
20979sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 # Broken: fails on valid input.
20982continue
20983fi
20984rm -f conftest.err conftest.$ac_ext
20985
20986 # OK, works on sane cases. Now check whether non-existent headers
20987 # can be detected and how.
20988 cat >conftest.$ac_ext <<_ACEOF
20989/* confdefs.h. */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h. */
20994#include <ac_nonexistent.h>
20995_ACEOF
20996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20998 ac_status=$?
20999 grep -v '^ *+' conftest.er1 >conftest.err
21000 rm -f conftest.er1
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } >/dev/null; then
21004 if test -s conftest.err; then
21005 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21006 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21007 else
21008 ac_cpp_err=
21009 fi
21010else
21011 ac_cpp_err=yes
21012fi
21013if test -z "$ac_cpp_err"; then
21014 # Broken: success on invalid input.
21015continue
21016else
21017 echo "$as_me: failed program was:" >&5
21018sed 's/^/| /' conftest.$ac_ext >&5
21019
21020 # Passes both tests.
21021ac_preproc_ok=:
21022break
21023fi
21024rm -f conftest.err conftest.$ac_ext
21025
21026done
21027# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21028rm -f conftest.err conftest.$ac_ext
21029if $ac_preproc_ok; then
21030 break
21031fi
21032
21033 done
21034 ac_cv_prog_CXXCPP=$CXXCPP
21035
21036fi
21037 CXXCPP=$ac_cv_prog_CXXCPP
21038else
21039 ac_cv_prog_CXXCPP=$CXXCPP
21040fi
21041echo "$as_me:$LINENO: result: $CXXCPP" >&5
21042echo "${ECHO_T}$CXXCPP" >&6
21043ac_preproc_ok=false
21044for ac_cxx_preproc_warn_flag in '' yes
21045do
21046 # Use a header file that comes with gcc, so configuring glibc
21047 # with a fresh cross-compiler works.
21048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21049 # <limits.h> exists even on freestanding compilers.
21050 # On the NeXT, cc -E runs the code through the compiler's parser,
21051 # not just through cpp. "Syntax error" is here to catch this case.
21052 cat >conftest.$ac_ext <<_ACEOF
21053/* confdefs.h. */
21054_ACEOF
21055cat confdefs.h >>conftest.$ac_ext
21056cat >>conftest.$ac_ext <<_ACEOF
21057/* end confdefs.h. */
21058#ifdef __STDC__
21059# include <limits.h>
21060#else
21061# include <assert.h>
21062#endif
ac1cb8d3 21063 Syntax error
a848cd7e
SC
21064_ACEOF
21065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21067 ac_status=$?
21068 grep -v '^ *+' conftest.er1 >conftest.err
21069 rm -f conftest.er1
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } >/dev/null; then
21073 if test -s conftest.err; then
21074 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21075 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21076 else
21077 ac_cpp_err=
21078 fi
21079else
21080 ac_cpp_err=yes
21081fi
21082if test -z "$ac_cpp_err"; then
21083 :
21084else
21085 echo "$as_me: failed program was:" >&5
21086sed 's/^/| /' conftest.$ac_ext >&5
21087
21088 # Broken: fails on valid input.
21089continue
21090fi
21091rm -f conftest.err conftest.$ac_ext
21092
21093 # OK, works on sane cases. Now check whether non-existent headers
21094 # can be detected and how.
21095 cat >conftest.$ac_ext <<_ACEOF
21096/* confdefs.h. */
21097_ACEOF
21098cat confdefs.h >>conftest.$ac_ext
21099cat >>conftest.$ac_ext <<_ACEOF
21100/* end confdefs.h. */
21101#include <ac_nonexistent.h>
21102_ACEOF
21103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21105 ac_status=$?
21106 grep -v '^ *+' conftest.er1 >conftest.err
21107 rm -f conftest.er1
21108 cat conftest.err >&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } >/dev/null; then
21111 if test -s conftest.err; then
21112 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21113 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21114 else
21115 ac_cpp_err=
21116 fi
21117else
21118 ac_cpp_err=yes
21119fi
21120if test -z "$ac_cpp_err"; then
21121 # Broken: success on invalid input.
21122continue
21123else
21124 echo "$as_me: failed program was:" >&5
21125sed 's/^/| /' conftest.$ac_ext >&5
21126
21127 # Passes both tests.
21128ac_preproc_ok=:
21129break
21130fi
21131rm -f conftest.err conftest.$ac_ext
21132
21133done
21134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21135rm -f conftest.err conftest.$ac_ext
21136if $ac_preproc_ok; then
21137 :
21138else
21139 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21140See \`config.log' for more details." >&5
21141echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21142See \`config.log' for more details." >&2;}
21143 { (exit 1); exit 1; }; }
21144fi
21145
21146ac_ext=cc
21147ac_cpp='$CXXCPP $CPPFLAGS'
21148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21151
21152
21153
21154
21155
21156 ac_ext=cc
21157ac_cpp='$CXXCPP $CPPFLAGS'
21158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21161
21162
21163
21164for ac_header in iostream
21165do
21166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21167if eval "test \"\${$as_ac_Header+set}\" = set"; then
21168 echo "$as_me:$LINENO: checking for $ac_header" >&5
21169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21170if eval "test \"\${$as_ac_Header+set}\" = set"; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172fi
21173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21175else
21176 # Is the header compilable?
21177echo "$as_me:$LINENO: checking $ac_header usability" >&5
21178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21179cat >conftest.$ac_ext <<_ACEOF
21180/* confdefs.h. */
21181_ACEOF
21182cat confdefs.h >>conftest.$ac_ext
21183cat >>conftest.$ac_ext <<_ACEOF
21184/* end confdefs.h. */
21185$ac_includes_default
21186#include <$ac_header>
21187_ACEOF
21188rm -f conftest.$ac_objext
21189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21190 (eval $ac_compile) 2>conftest.er1
a848cd7e 21191 ac_status=$?
ac1cb8d3
VS
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
a848cd7e
SC
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
6ebeb4c7 21197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; } &&
21203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 ac_header_compiler=yes
21210else
21211 echo "$as_me: failed program was:" >&5
21212sed 's/^/| /' conftest.$ac_ext >&5
21213
21214ac_header_compiler=no
21215fi
ac1cb8d3 21216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21218echo "${ECHO_T}$ac_header_compiler" >&6
21219
21220# Is the header present?
21221echo "$as_me:$LINENO: checking $ac_header presence" >&5
21222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21223cat >conftest.$ac_ext <<_ACEOF
21224/* confdefs.h. */
21225_ACEOF
21226cat confdefs.h >>conftest.$ac_ext
21227cat >>conftest.$ac_ext <<_ACEOF
21228/* end confdefs.h. */
21229#include <$ac_header>
21230_ACEOF
21231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } >/dev/null; then
21239 if test -s conftest.err; then
21240 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21241 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21242 else
21243 ac_cpp_err=
21244 fi
21245else
21246 ac_cpp_err=yes
21247fi
21248if test -z "$ac_cpp_err"; then
21249 ac_header_preproc=yes
21250else
21251 echo "$as_me: failed program was:" >&5
21252sed 's/^/| /' conftest.$ac_ext >&5
21253
21254 ac_header_preproc=no
21255fi
21256rm -f conftest.err conftest.$ac_ext
21257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21258echo "${ECHO_T}$ac_header_preproc" >&6
21259
21260# So? What about this header?
ac1cb8d3
VS
21261case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21262 yes:no: )
a848cd7e
SC
21263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21267 ac_header_preproc=yes
a848cd7e 21268 ;;
ac1cb8d3 21269 no:yes:* )
a848cd7e
SC
21270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21273echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21277echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21282 (
21283 cat <<\_ASBOX
ac1cb8d3
VS
21284## ----------------------------------------- ##
21285## Report this to wx-dev@lists.wxwidgets.org ##
21286## ----------------------------------------- ##
a848cd7e
SC
21287_ASBOX
21288 ) |
21289 sed "s/^/$as_me: WARNING: /" >&2
21290 ;;
21291esac
21292echo "$as_me:$LINENO: checking for $ac_header" >&5
21293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21294if eval "test \"\${$as_ac_Header+set}\" = set"; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21296else
ac1cb8d3 21297 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21298fi
21299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21301
21302fi
21303if test `eval echo '${'$as_ac_Header'}'` = yes; then
21304 cat >>confdefs.h <<_ACEOF
21305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21306_ACEOF
21307
21308fi
21309
21310done
21311
21312
21313 if test "$ac_cv_header_iostream" = "yes" ; then
21314 :
21315 else
21316 cat >>confdefs.h <<\_ACEOF
21317#define wxUSE_IOSTREAMH 1
21318_ACEOF
21319
21320 fi
21321
21322 ac_ext=c
21323ac_cpp='$CPP $CPPFLAGS'
21324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21326ac_compiler_gnu=$ac_cv_c_compiler_gnu
21327
21328
21329
21330
21331 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21332echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21333if test "${wx_cv_cpp_bool+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335else
21336
21337
21338
21339 ac_ext=cc
21340ac_cpp='$CXXCPP $CPPFLAGS'
21341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21344
21345
21346 cat >conftest.$ac_ext <<_ACEOF
21347/* confdefs.h. */
21348_ACEOF
21349cat confdefs.h >>conftest.$ac_ext
21350cat >>conftest.$ac_ext <<_ACEOF
21351/* end confdefs.h. */
21352
21353
21354int
21355main ()
21356{
21357
21358 bool b = true;
21359
21360 return 0;
21361
21362 ;
21363 return 0;
21364}
21365_ACEOF
21366rm -f conftest.$ac_objext
21367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21368 (eval $ac_compile) 2>conftest.er1
a848cd7e 21369 ac_status=$?
ac1cb8d3
VS
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
a848cd7e
SC
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } &&
6ebeb4c7 21375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; } &&
21381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387
21388 wx_cv_cpp_bool=yes
21389
21390else
21391 echo "$as_me: failed program was:" >&5
21392sed 's/^/| /' conftest.$ac_ext >&5
21393
21394
21395 wx_cv_cpp_bool=no
21396
21397
21398fi
ac1cb8d3 21399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21400
21401 ac_ext=c
21402ac_cpp='$CPP $CPPFLAGS'
21403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21405ac_compiler_gnu=$ac_cv_c_compiler_gnu
21406
21407
21408fi
21409echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21410echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21411
21412 if test "$wx_cv_cpp_bool" = "yes"; then
21413 cat >>confdefs.h <<\_ACEOF
21414#define HAVE_BOOL 1
21415_ACEOF
21416
21417 fi
21418
21419
21420
21421 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21422echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21423if test "${wx_cv_explicit+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425else
21426
21427
21428
21429 ac_ext=cc
21430ac_cpp='$CXXCPP $CPPFLAGS'
21431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21434
21435
21436 cat >conftest.$ac_ext <<_ACEOF
21437/* confdefs.h. */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
21441/* end confdefs.h. */
21442
21443 class Foo { public: explicit Foo(int) {} };
21444
21445int
21446main ()
21447{
21448
21449 return 0;
21450
21451 ;
21452 return 0;
21453}
21454_ACEOF
21455rm -f conftest.$ac_objext
21456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21457 (eval $ac_compile) 2>conftest.er1
a848cd7e 21458 ac_status=$?
ac1cb8d3
VS
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
a848cd7e
SC
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } &&
6ebeb4c7 21464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476
21477 cat >conftest.$ac_ext <<_ACEOF
21478/* confdefs.h. */
21479_ACEOF
21480cat confdefs.h >>conftest.$ac_ext
21481cat >>conftest.$ac_ext <<_ACEOF
21482/* end confdefs.h. */
21483
21484 class Foo { public: explicit Foo(int) {} };
21485 static void TakeFoo(const Foo& foo) { }
21486
21487int
21488main ()
21489{
21490
21491 TakeFoo(17);
21492 return 0;
21493
21494 ;
21495 return 0;
21496}
21497_ACEOF
21498rm -f conftest.$ac_objext
21499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21500 (eval $ac_compile) 2>conftest.er1
a848cd7e 21501 ac_status=$?
ac1cb8d3
VS
21502 grep -v '^ *+' conftest.er1 >conftest.err
21503 rm -f conftest.er1
21504 cat conftest.err >&5
a848cd7e
SC
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } &&
6ebeb4c7 21507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21510 ac_status=$?
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; } &&
21513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; }; then
21519 wx_cv_explicit=no
21520else
21521 echo "$as_me: failed program was:" >&5
21522sed 's/^/| /' conftest.$ac_ext >&5
21523
21524wx_cv_explicit=yes
21525
21526fi
ac1cb8d3 21527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21528
21529else
21530 echo "$as_me: failed program was:" >&5
21531sed 's/^/| /' conftest.$ac_ext >&5
21532
21533wx_cv_explicit=no
21534
21535fi
ac1cb8d3 21536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21537
21538 ac_ext=c
21539ac_cpp='$CPP $CPPFLAGS'
21540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21542ac_compiler_gnu=$ac_cv_c_compiler_gnu
21543
21544
21545fi
21546echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21547echo "${ECHO_T}$wx_cv_explicit" >&6
21548
21549 if test "$wx_cv_explicit" = "yes"; then
21550 cat >>confdefs.h <<\_ACEOF
21551#define HAVE_EXPLICIT 1
21552_ACEOF
21553
21554 fi
21555
21556
21557echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21558echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21559if test "${ac_cv_cxx_const_cast+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561else
21562
21563
21564 ac_ext=cc
21565ac_cpp='$CXXCPP $CPPFLAGS'
21566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21569
21570 cat >conftest.$ac_ext <<_ACEOF
21571/* confdefs.h. */
21572_ACEOF
21573cat confdefs.h >>conftest.$ac_ext
21574cat >>conftest.$ac_ext <<_ACEOF
21575/* end confdefs.h. */
21576
21577int
21578main ()
21579{
21580int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21581 ;
21582 return 0;
21583}
21584_ACEOF
21585rm -f conftest.$ac_objext
21586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21587 (eval $ac_compile) 2>conftest.er1
a848cd7e 21588 ac_status=$?
ac1cb8d3
VS
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
a848cd7e
SC
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } &&
6ebeb4c7 21594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; } &&
21600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21603 ac_status=$?
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; }; then
21606 ac_cv_cxx_const_cast=yes
21607else
21608 echo "$as_me: failed program was:" >&5
21609sed 's/^/| /' conftest.$ac_ext >&5
21610
21611ac_cv_cxx_const_cast=no
21612fi
ac1cb8d3 21613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21614 ac_ext=c
21615ac_cpp='$CPP $CPPFLAGS'
21616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21618ac_compiler_gnu=$ac_cv_c_compiler_gnu
21619
21620
21621fi
21622echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21623echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21624if test "$ac_cv_cxx_const_cast" = yes; then
21625
21626cat >>confdefs.h <<\_ACEOF
21627#define HAVE_CONST_CAST
21628_ACEOF
21629
21630fi
21631
7714864e
RL
21632echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21633echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21634if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636else
21637
21638
21639 ac_ext=cc
21640ac_cpp='$CXXCPP $CPPFLAGS'
21641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21644
21645 cat >conftest.$ac_ext <<_ACEOF
21646/* confdefs.h. */
21647_ACEOF
21648cat confdefs.h >>conftest.$ac_ext
21649cat >>conftest.$ac_ext <<_ACEOF
21650/* end confdefs.h. */
21651#include <typeinfo>
21652class Base { public : Base () {} virtual void f () = 0;};
21653class Derived : public Base { public : Derived () {} virtual void f () {} };
21654class Unrelated { public : Unrelated () {} };
21655int g (Unrelated&) { return 0; }
21656int
21657main ()
21658{
21659
21660Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21661 ;
21662 return 0;
21663}
21664_ACEOF
21665rm -f conftest.$ac_objext
21666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21667 (eval $ac_compile) 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } &&
6ebeb4c7 21674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21677 ac_status=$?
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; } &&
21680 { ac_try='test -s conftest.$ac_objext'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }; then
21686 ac_cv_cxx_reinterpret_cast=yes
21687else
21688 echo "$as_me: failed program was:" >&5
21689sed 's/^/| /' conftest.$ac_ext >&5
21690
21691ac_cv_cxx_reinterpret_cast=no
21692fi
21693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21694 ac_ext=c
21695ac_cpp='$CPP $CPPFLAGS'
21696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21698ac_compiler_gnu=$ac_cv_c_compiler_gnu
21699
21700
21701fi
21702echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21703echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21704if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21705
21706cat >>confdefs.h <<\_ACEOF
21707#define HAVE_REINTERPRET_CAST
21708_ACEOF
21709
21710fi
21711
a848cd7e
SC
21712echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21713echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21714if test "${ac_cv_cxx_static_cast+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21716else
21717
21718
21719 ac_ext=cc
21720ac_cpp='$CXXCPP $CPPFLAGS'
21721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21724
21725 cat >conftest.$ac_ext <<_ACEOF
21726/* confdefs.h. */
21727_ACEOF
21728cat confdefs.h >>conftest.$ac_ext
21729cat >>conftest.$ac_ext <<_ACEOF
21730/* end confdefs.h. */
21731#include <typeinfo>
21732class Base { public : Base () {} virtual void f () = 0; };
21733class Derived : public Base { public : Derived () {} virtual void f () {} };
21734int g (Derived&) { return 0; }
21735int
21736main ()
21737{
21738
21739Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21740 ;
21741 return 0;
21742}
21743_ACEOF
21744rm -f conftest.$ac_objext
21745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21746 (eval $ac_compile) 2>conftest.er1
a848cd7e 21747 ac_status=$?
ac1cb8d3
VS
21748 grep -v '^ *+' conftest.er1 >conftest.err
21749 rm -f conftest.er1
21750 cat conftest.err >&5
a848cd7e
SC
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } &&
6ebeb4c7 21753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; } &&
21759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 ac_cv_cxx_static_cast=yes
21766else
21767 echo "$as_me: failed program was:" >&5
21768sed 's/^/| /' conftest.$ac_ext >&5
21769
21770ac_cv_cxx_static_cast=no
21771fi
ac1cb8d3 21772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21773 ac_ext=c
21774ac_cpp='$CPP $CPPFLAGS'
21775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21777ac_compiler_gnu=$ac_cv_c_compiler_gnu
21778
21779
21780fi
21781echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21782echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21783if test "$ac_cv_cxx_static_cast" = yes; then
21784
21785cat >>confdefs.h <<\_ACEOF
21786#define HAVE_STATIC_CAST
21787_ACEOF
21788
21789fi
21790
21791
3c28b7cb
MW
21792if test "x$SUNCXX" = xyes; then
21793 CXXFLAGS="$CXXFLAGS -features=tmplife"
21794fi
21795
9122d155
VZ
21796if test "x$SUNCC" = xyes; then
21797 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
21798fi
21799
0ad5d837
VZ
21800if test "x$SGICC" = "xyes"; then
21801 CFLAGS="$CFLAGS -woff 3970"
21802fi
21803if test "x$SGICXX" = "xyes"; then
21804 CXXFLAGS="$CXXFLAGS -woff 3970"
21805fi
21806
f56c22b4 21807if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21808 ac_ext=cc
21809ac_cpp='$CXXCPP $CPPFLAGS'
21810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21813
21814
f56c22b4
MW
21815 if test "$wxUSE_UNICODE" = "yes"; then
21816 std_string="std::wstring"
21817 char_type="wchar_t"
21818 else
21819 std_string="std::string"
21820 char_type="char"
21821 fi
21822
21823 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21824echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21825 cat >conftest.$ac_ext <<_ACEOF
21826/* confdefs.h. */
21827_ACEOF
21828cat confdefs.h >>conftest.$ac_ext
21829cat >>conftest.$ac_ext <<_ACEOF
21830/* end confdefs.h. */
21831#include <string>
a848cd7e
SC
21832int
21833main ()
21834{
f56c22b4 21835$std_string foo;
a848cd7e
SC
21836 ;
21837 return 0;
21838}
21839_ACEOF
21840rm -f conftest.$ac_objext
21841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21842 (eval $ac_compile) 2>conftest.er1
a848cd7e 21843 ac_status=$?
ac1cb8d3
VS
21844 grep -v '^ *+' conftest.er1 >conftest.err
21845 rm -f conftest.er1
21846 cat conftest.err >&5
a848cd7e
SC
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } &&
6ebeb4c7 21849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851 (eval $ac_try) 2>&5
21852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; } &&
21855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21858 ac_status=$?
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; }; then
21861 echo "$as_me:$LINENO: result: yes" >&5
21862echo "${ECHO_T}yes" >&6
0a08f02a
MB
21863 cat >>confdefs.h <<\_ACEOF
21864#define HAVE_STD_WSTRING 1
21865_ACEOF
21866
a848cd7e
SC
21867else
21868 echo "$as_me: failed program was:" >&5
21869sed 's/^/| /' conftest.$ac_ext >&5
21870
21871echo "$as_me:$LINENO: result: no" >&5
21872echo "${ECHO_T}no" >&6
f56c22b4
MW
21873 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21874echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21875 cat >conftest.$ac_ext <<_ACEOF
21876/* confdefs.h. */
21877_ACEOF
21878cat confdefs.h >>conftest.$ac_ext
21879cat >>conftest.$ac_ext <<_ACEOF
21880/* end confdefs.h. */
21881
21882 #ifdef HAVE_WCHAR_H
21883 # ifdef __CYGWIN__
21884 # include <stddef.h>
21885 # endif
21886 # include <wchar.h>
21887 #endif
21888 #ifdef HAVE_STDLIB_H
21889 # include <stdlib.h>
21890 #endif
21891 #include <stdio.h>
21892 #include <string>
21893
21894int
21895main ()
21896{
f56c22b4
MW
21897std::basic_string<$char_type> foo;
21898 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21899 ;
21900 return 0;
21901}
21902_ACEOF
21903rm -f conftest.$ac_objext
21904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21905 (eval $ac_compile) 2>conftest.er1
21906 ac_status=$?
21907 grep -v '^ *+' conftest.er1 >conftest.err
21908 rm -f conftest.er1
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } &&
6ebeb4c7 21912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; } &&
21918 { ac_try='test -s conftest.$ac_objext'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; }; then
21924 echo "$as_me:$LINENO: result: yes" >&5
21925echo "${ECHO_T}yes" >&6
21926else
21927 echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
21930echo "$as_me:$LINENO: result: no" >&5
21931echo "${ECHO_T}no" >&6
f56c22b4 21932 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21933 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21934echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21935 { (exit 1); exit 1; }; }
21936 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21937 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21938echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21939 { (exit 1); exit 1; }; }
f56c22b4
MW
21940 else
21941 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21942echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21943 wxUSE_STD_STRING=no
21944 fi
21945
0a08f02a 21946
a848cd7e 21947fi
ac1cb8d3 21948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21949
0a08f02a
MB
21950fi
21951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21952
21953 ac_ext=c
21954ac_cpp='$CPP $CPPFLAGS'
21955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21957ac_compiler_gnu=$ac_cv_c_compiler_gnu
21958
21959fi
21960
21961if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21962 ac_ext=cc
21963ac_cpp='$CXXCPP $CPPFLAGS'
21964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21967
21968
21969 echo "$as_me:$LINENO: checking for std::istream" >&5
21970echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21971if test "${ac_cv_type_std__istream+set}" = set; then
21972 echo $ECHO_N "(cached) $ECHO_C" >&6
21973else
21974 cat >conftest.$ac_ext <<_ACEOF
21975/* confdefs.h. */
21976_ACEOF
21977cat confdefs.h >>conftest.$ac_ext
21978cat >>conftest.$ac_ext <<_ACEOF
21979/* end confdefs.h. */
21980#include <iostream>
21981
21982int
21983main ()
21984{
21985if ((std::istream *) 0)
21986 return 0;
21987if (sizeof (std::istream))
21988 return 0;
21989 ;
21990 return 0;
21991}
21992_ACEOF
21993rm -f conftest.$ac_objext
21994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21995 (eval $ac_compile) 2>conftest.er1
21996 ac_status=$?
21997 grep -v '^ *+' conftest.er1 >conftest.err
21998 rm -f conftest.er1
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } &&
6ebeb4c7 22002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; } &&
22008 { ac_try='test -s conftest.$ac_objext'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ac_cv_type_std__istream=yes
22015else
22016 echo "$as_me: failed program was:" >&5
22017sed 's/^/| /' conftest.$ac_ext >&5
22018
22019ac_cv_type_std__istream=no
22020fi
22021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22022fi
22023echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22024echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22025if test $ac_cv_type_std__istream = yes; then
22026
22027cat >>confdefs.h <<_ACEOF
22028#define HAVE_STD__ISTREAM 1
22029_ACEOF
22030
22031
22032else
22033 wxUSE_STD_IOSTREAM=no
22034fi
22035echo "$as_me:$LINENO: checking for std::ostream" >&5
22036echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22037if test "${ac_cv_type_std__ostream+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22039else
22040 cat >conftest.$ac_ext <<_ACEOF
22041/* confdefs.h. */
22042_ACEOF
22043cat confdefs.h >>conftest.$ac_ext
22044cat >>conftest.$ac_ext <<_ACEOF
22045/* end confdefs.h. */
22046#include <iostream>
22047
22048int
22049main ()
22050{
22051if ((std::ostream *) 0)
22052 return 0;
22053if (sizeof (std::ostream))
22054 return 0;
22055 ;
22056 return 0;
22057}
22058_ACEOF
22059rm -f conftest.$ac_objext
22060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22061 (eval $ac_compile) 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
6ebeb4c7 22068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest.$ac_objext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 ac_cv_type_std__ostream=yes
22081else
22082 echo "$as_me: failed program was:" >&5
22083sed 's/^/| /' conftest.$ac_ext >&5
22084
22085ac_cv_type_std__ostream=no
22086fi
22087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22088fi
22089echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22090echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22091if test $ac_cv_type_std__ostream = yes; then
22092
22093cat >>confdefs.h <<_ACEOF
22094#define HAVE_STD__OSTREAM 1
22095_ACEOF
22096
22097
22098else
22099 wxUSE_STD_IOSTREAM=no
22100fi
22101
22102
22103 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22104 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22105 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22106echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22107 { (exit 1); exit 1; }; }
22108 else
22109 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22110echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22111 fi
f56c22b4
MW
22112 fi
22113
22114 ac_ext=c
22115ac_cpp='$CPP $CPPFLAGS'
22116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22118ac_compiler_gnu=$ac_cv_c_compiler_gnu
22119
22120fi
22121
22122if test "$wxUSE_STL" = "yes"; then
22123 ac_ext=cc
22124ac_cpp='$CXXCPP $CPPFLAGS'
22125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22128
22129
22130 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22131echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22132 cat >conftest.$ac_ext <<_ACEOF
22133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
22138#include <string>
0a08f02a
MB
22139 #include <functional>
22140 #include <algorithm>
22141 #include <vector>
22142 #include <list>
a848cd7e
SC
22143int
22144main ()
22145{
0a08f02a
MB
22146std::vector<int> moo;
22147 std::list<int> foo;
22148 std::vector<int>::iterator it =
22149 std::find_if(moo.begin(), moo.end(),
22150 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22151 ;
22152 return 0;
22153}
22154_ACEOF
22155rm -f conftest.$ac_objext
22156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22157 (eval $ac_compile) 2>conftest.er1
a848cd7e 22158 ac_status=$?
ac1cb8d3
VS
22159 grep -v '^ *+' conftest.er1 >conftest.err
22160 rm -f conftest.er1
22161 cat conftest.err >&5
a848cd7e
SC
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } &&
6ebeb4c7 22164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166 (eval $ac_try) 2>&5
22167 ac_status=$?
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; } &&
22170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172 (eval $ac_try) 2>&5
22173 ac_status=$?
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); }; }; then
22176 echo "$as_me:$LINENO: result: yes" >&5
22177echo "${ECHO_T}yes" >&6
a848cd7e
SC
22178else
22179 echo "$as_me: failed program was:" >&5
22180sed 's/^/| /' conftest.$ac_ext >&5
22181
22182echo "$as_me:$LINENO: result: no" >&5
22183echo "${ECHO_T}no" >&6
0a08f02a
MB
22184 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22185echo "$as_me: error: Basic STL functionality missing" >&2;}
22186 { (exit 1); exit 1; }; }
a848cd7e 22187fi
ac1cb8d3 22188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22189
22190 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22191echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22192 cat >conftest.$ac_ext <<_ACEOF
22193/* confdefs.h. */
22194_ACEOF
22195cat confdefs.h >>conftest.$ac_ext
22196cat >>conftest.$ac_ext <<_ACEOF
22197/* end confdefs.h. */
22198#include <string>
22199int
22200main ()
22201{
22202std::string foo, bar;
22203 foo.compare(bar);
22204 foo.compare(1, 1, bar);
22205 foo.compare(1, 1, bar, 1, 1);
22206 foo.compare("");
22207 foo.compare(1, 1, "");
22208 foo.compare(1, 1, "", 2);
22209 ;
22210 return 0;
22211}
22212_ACEOF
22213rm -f conftest.$ac_objext
22214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22215 (eval $ac_compile) 2>conftest.er1
a848cd7e 22216 ac_status=$?
ac1cb8d3
VS
22217 grep -v '^ *+' conftest.er1 >conftest.err
22218 rm -f conftest.er1
22219 cat conftest.err >&5
a848cd7e
SC
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); } &&
6ebeb4c7 22222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22225 ac_status=$?
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; } &&
22228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; }; then
22234 echo "$as_me:$LINENO: result: yes" >&5
22235echo "${ECHO_T}yes" >&6
22236 cat >>confdefs.h <<\_ACEOF
22237#define HAVE_STD_STRING_COMPARE 1
22238_ACEOF
22239
22240else
22241 echo "$as_me: failed program was:" >&5
22242sed 's/^/| /' conftest.$ac_ext >&5
22243
22244echo "$as_me:$LINENO: result: no" >&5
22245echo "${ECHO_T}no" >&6
22246fi
ac1cb8d3 22247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22248
22249 if test "${ac_cv_header_hash_map+set}" = set; then
22250 echo "$as_me:$LINENO: checking for hash_map" >&5
22251echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22252if test "${ac_cv_header_hash_map+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22254fi
22255echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22256echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22257else
22258 # Is the header compilable?
22259echo "$as_me:$LINENO: checking hash_map usability" >&5
22260echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22261cat >conftest.$ac_ext <<_ACEOF
22262/* confdefs.h. */
22263_ACEOF
22264cat confdefs.h >>conftest.$ac_ext
22265cat >>conftest.$ac_ext <<_ACEOF
22266/* end confdefs.h. */
22267$ac_includes_default
22268#include <hash_map>
22269_ACEOF
22270rm -f conftest.$ac_objext
22271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22272 (eval $ac_compile) 2>conftest.er1
bdcade0a 22273 ac_status=$?
ac1cb8d3
VS
22274 grep -v '^ *+' conftest.er1 >conftest.err
22275 rm -f conftest.er1
22276 cat conftest.err >&5
bdcade0a
MB
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } &&
6ebeb4c7 22279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; } &&
22285 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 ac_header_compiler=yes
22292else
22293 echo "$as_me: failed program was:" >&5
22294sed 's/^/| /' conftest.$ac_ext >&5
22295
22296ac_header_compiler=no
22297fi
ac1cb8d3 22298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22300echo "${ECHO_T}$ac_header_compiler" >&6
22301
22302# Is the header present?
22303echo "$as_me:$LINENO: checking hash_map presence" >&5
22304echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22305cat >conftest.$ac_ext <<_ACEOF
22306/* confdefs.h. */
22307_ACEOF
22308cat confdefs.h >>conftest.$ac_ext
22309cat >>conftest.$ac_ext <<_ACEOF
22310/* end confdefs.h. */
22311#include <hash_map>
22312_ACEOF
22313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22315 ac_status=$?
22316 grep -v '^ *+' conftest.er1 >conftest.err
22317 rm -f conftest.er1
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } >/dev/null; then
22321 if test -s conftest.err; then
22322 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22323 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22324 else
22325 ac_cpp_err=
22326 fi
22327else
22328 ac_cpp_err=yes
22329fi
22330if test -z "$ac_cpp_err"; then
22331 ac_header_preproc=yes
22332else
22333 echo "$as_me: failed program was:" >&5
22334sed 's/^/| /' conftest.$ac_ext >&5
22335
22336 ac_header_preproc=no
22337fi
22338rm -f conftest.err conftest.$ac_ext
22339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22340echo "${ECHO_T}$ac_header_preproc" >&6
22341
22342# So? What about this header?
ac1cb8d3
VS
22343case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22344 yes:no: )
bdcade0a
MB
22345 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22346echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22347 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22348echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22349 ac_header_preproc=yes
bdcade0a 22350 ;;
ac1cb8d3 22351 no:yes:* )
bdcade0a
MB
22352 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22353echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22354 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22355echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22357echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22359echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22360 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22361echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22362 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22363echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22364 (
22365 cat <<\_ASBOX
ac1cb8d3
VS
22366## ----------------------------------------- ##
22367## Report this to wx-dev@lists.wxwidgets.org ##
22368## ----------------------------------------- ##
bdcade0a
MB
22369_ASBOX
22370 ) |
22371 sed "s/^/$as_me: WARNING: /" >&2
22372 ;;
22373esac
22374echo "$as_me:$LINENO: checking for hash_map" >&5
22375echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22376if test "${ac_cv_header_hash_map+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22378else
22379 ac_cv_header_hash_map=$ac_header_preproc
22380fi
22381echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22382echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22383
22384fi
22385if test $ac_cv_header_hash_map = yes; then
22386 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22387echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22388 cat >conftest.$ac_ext <<_ACEOF
22389/* confdefs.h. */
22390_ACEOF
22391cat confdefs.h >>conftest.$ac_ext
22392cat >>conftest.$ac_ext <<_ACEOF
22393/* end confdefs.h. */
22394#include <hash_map>
22395 #include <hash_set>
22396int
22397main ()
22398{
22399std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22400 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22401 ;
22402 return 0;
22403}
22404_ACEOF
22405rm -f conftest.$ac_objext
22406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22407 (eval $ac_compile) 2>conftest.er1
bdcade0a 22408 ac_status=$?
ac1cb8d3
VS
22409 grep -v '^ *+' conftest.er1 >conftest.err
22410 rm -f conftest.er1
22411 cat conftest.err >&5
bdcade0a
MB
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } &&
6ebeb4c7 22414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416 (eval $ac_try) 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; } &&
22420 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422 (eval $ac_try) 2>&5
22423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; }; then
22426 echo "$as_me:$LINENO: result: yes" >&5
22427echo "${ECHO_T}yes" >&6
22428 cat >>confdefs.h <<\_ACEOF
22429#define HAVE_HASH_MAP 1
22430_ACEOF
22431
22432 cat >>confdefs.h <<\_ACEOF
22433#define HAVE_STD_HASH_MAP 1
22434_ACEOF
22435
22436else
22437 echo "$as_me: failed program was:" >&5
22438sed 's/^/| /' conftest.$ac_ext >&5
22439
22440echo "$as_me:$LINENO: result: no" >&5
22441echo "${ECHO_T}no" >&6
22442fi
ac1cb8d3 22443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22444
22445fi
22446
22447
22448
22449 if test "${ac_cv_header_ext_hash_map+set}" = set; then
22450 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22451echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22452if test "${ac_cv_header_ext_hash_map+set}" = set; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454fi
22455echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22456echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22457else
22458 # Is the header compilable?
22459echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22460echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22461cat >conftest.$ac_ext <<_ACEOF
22462/* confdefs.h. */
22463_ACEOF
22464cat confdefs.h >>conftest.$ac_ext
22465cat >>conftest.$ac_ext <<_ACEOF
22466/* end confdefs.h. */
22467$ac_includes_default
22468#include <ext/hash_map>
22469_ACEOF
22470rm -f conftest.$ac_objext
22471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22472 (eval $ac_compile) 2>conftest.er1
bdcade0a 22473 ac_status=$?
ac1cb8d3
VS
22474 grep -v '^ *+' conftest.er1 >conftest.err
22475 rm -f conftest.er1
22476 cat conftest.err >&5
bdcade0a
MB
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } &&
6ebeb4c7 22479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; } &&
22485 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22488 ac_status=$?
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; }; then
22491 ac_header_compiler=yes
22492else
22493 echo "$as_me: failed program was:" >&5
22494sed 's/^/| /' conftest.$ac_ext >&5
22495
22496ac_header_compiler=no
22497fi
ac1cb8d3 22498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22500echo "${ECHO_T}$ac_header_compiler" >&6
22501
22502# Is the header present?
22503echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22504echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22505cat >conftest.$ac_ext <<_ACEOF
22506/* confdefs.h. */
22507_ACEOF
22508cat confdefs.h >>conftest.$ac_ext
22509cat >>conftest.$ac_ext <<_ACEOF
22510/* end confdefs.h. */
22511#include <ext/hash_map>
22512_ACEOF
22513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22515 ac_status=$?
22516 grep -v '^ *+' conftest.er1 >conftest.err
22517 rm -f conftest.er1
22518 cat conftest.err >&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } >/dev/null; then
22521 if test -s conftest.err; then
22522 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22523 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22524 else
22525 ac_cpp_err=
22526 fi
22527else
22528 ac_cpp_err=yes
22529fi
22530if test -z "$ac_cpp_err"; then
22531 ac_header_preproc=yes
22532else
22533 echo "$as_me: failed program was:" >&5
22534sed 's/^/| /' conftest.$ac_ext >&5
22535
22536 ac_header_preproc=no
22537fi
22538rm -f conftest.err conftest.$ac_ext
22539echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22540echo "${ECHO_T}$ac_header_preproc" >&6
22541
22542# So? What about this header?
ac1cb8d3
VS
22543case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22544 yes:no: )
bdcade0a
MB
22545 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22546echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22547 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22548echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22549 ac_header_preproc=yes
bdcade0a 22550 ;;
ac1cb8d3 22551 no:yes:* )
bdcade0a
MB
22552 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22553echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22554 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22555echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22556 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22557echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22558 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22559echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22560 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22561echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22562 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22563echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22564 (
22565 cat <<\_ASBOX
ac1cb8d3
VS
22566## ----------------------------------------- ##
22567## Report this to wx-dev@lists.wxwidgets.org ##
22568## ----------------------------------------- ##
bdcade0a
MB
22569_ASBOX
22570 ) |
22571 sed "s/^/$as_me: WARNING: /" >&2
22572 ;;
22573esac
22574echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22575echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22576if test "${ac_cv_header_ext_hash_map+set}" = set; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22578else
22579 ac_cv_header_ext_hash_map=$ac_header_preproc
22580fi
22581echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22582echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22583
22584fi
22585if test $ac_cv_header_ext_hash_map = yes; then
22586 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22587echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22588 cat >conftest.$ac_ext <<_ACEOF
22589/* confdefs.h. */
22590_ACEOF
22591cat confdefs.h >>conftest.$ac_ext
22592cat >>conftest.$ac_ext <<_ACEOF
22593/* end confdefs.h. */
22594#include <ext/hash_map>
22595 #include <ext/hash_set>
22596int
22597main ()
22598{
22599__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22600 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22601 ;
22602 return 0;
22603}
22604_ACEOF
22605rm -f conftest.$ac_objext
22606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22607 (eval $ac_compile) 2>conftest.er1
bdcade0a 22608 ac_status=$?
ac1cb8d3
VS
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
bdcade0a
MB
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } &&
6ebeb4c7 22614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; } &&
22620 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; }; then
22626 echo "$as_me:$LINENO: result: yes" >&5
22627echo "${ECHO_T}yes" >&6
22628 cat >>confdefs.h <<\_ACEOF
22629#define HAVE_EXT_HASH_MAP 1
22630_ACEOF
22631
22632 cat >>confdefs.h <<\_ACEOF
22633#define HAVE_GNU_CXX_HASH_MAP 1
22634_ACEOF
22635
22636else
22637 echo "$as_me: failed program was:" >&5
22638sed 's/^/| /' conftest.$ac_ext >&5
22639
22640echo "$as_me:$LINENO: result: no" >&5
22641echo "${ECHO_T}no" >&6
22642fi
ac1cb8d3 22643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22644
22645fi
22646
22647
a848cd7e
SC
22648
22649 ac_ext=c
22650ac_cpp='$CPP $CPPFLAGS'
22651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22653ac_compiler_gnu=$ac_cv_c_compiler_gnu
22654
22655fi
22656
22657
22658SEARCH_INCLUDE="\
22659 /usr/local/include \
22660 \
22661 /usr/Motif-2.1/include \
22662 /usr/Motif-1.2/include \
22663 /usr/include/Motif1.2 \
a848cd7e
SC
22664 \
22665 /usr/dt/include \
22666 /usr/openwin/include \
22667 \
22668 /usr/include/Xm \
22669 \
22670 /usr/X11R6/include \
22671 /usr/X11R6.4/include \
22672 /usr/X11R5/include \
22673 /usr/X11R4/include \
22674 \
22675 /usr/include/X11R6 \
22676 /usr/include/X11R5 \
22677 /usr/include/X11R4 \
22678 \
22679 /usr/local/X11R6/include \
22680 /usr/local/X11R5/include \
22681 /usr/local/X11R4/include \
22682 \
22683 /usr/local/include/X11R6 \
22684 /usr/local/include/X11R5 \
22685 /usr/local/include/X11R4 \
22686 \
22687 /usr/X11/include \
22688 /usr/include/X11 \
22689 /usr/local/X11/include \
22690 /usr/local/include/X11 \
22691 \
a848cd7e 22692 /usr/XFree86/include/X11 \
e051b34e
MW
22693 /usr/pkg/include \
22694 \
a848cd7e
SC
22695 /usr/openwin/share/include"
22696
6f9cf1e6 22697echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 22698echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
22699
22700case "${host}" in
22701 *-*-irix6* )
22702 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
22704else
22705
c687b303
VZ
22706 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
22707 for e in a so sl dylib dll.a; do
22708 libc="$d/libc.$e"
22709 if test -f $libc; then
22710 save_LIBS="$LIBS"
22711 LIBS="$libc"
22712 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
22713int main() { return 0; }
22714_ACEOF
22715rm -f conftest.$ac_objext conftest$ac_exeext
22716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22717 (eval $ac_link) 2>conftest.er1
22718 ac_status=$?
22719 grep -v '^ *+' conftest.er1 >conftest.err
22720 rm -f conftest.er1
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } &&
22724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; } &&
22730 { ac_try='test -s conftest$ac_exeext'
22731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22732 (eval $ac_try) 2>&5
22733 ac_status=$?
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); }; }; then
22736 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
22737else
22738 echo "$as_me: failed program was:" >&5
22739sed 's/^/| /' conftest.$ac_ext >&5
22740
22741fi
22742rm -f conftest.err conftest.$ac_objext \
22743 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
22744 LIBS="$save_LIBS"
22745 if test "x$wx_cv_std_libpath" != "x"; then
22746 break 2
22747 fi
22748 fi
22749 done
22750 done
22751 if test "x$wx_cv_std_libpath" = "x"; then
22752 wx_cv_std_libpath="lib"
0ad5d837 22753 fi
0ad5d837
VZ
22754
22755
22756fi
6f9cf1e6
MW
22757
22758 ;;
22759
22760 *-*-solaris2* )
22761 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
22762 wx_cv_std_libpath="lib/64"
22763 else
22764 wx_cv_std_libpath="lib"
22765 fi
22766 ;;
22767
22768 *-*-linux* )
22769 if test "$ac_cv_sizeof_void_p" = 8 -a \
22770 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
22771 wx_cv_std_libpath="lib64"
22772 else
22773 wx_cv_std_libpath="lib"
22774 fi
c687b303
VZ
22775 ;;
22776
22777 *)
22778 wx_cv_std_libpath="lib";
22779 ;;
22780esac
0ad5d837 22781
6f9cf1e6
MW
22782echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
22783echo "${ECHO_T}$wx_cv_std_libpath" >&6
22784
22785SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 22786
3eca31dc
MW
22787if test "$build" != "$host" -a "$GCC" = yes; then
22788 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22789 cross_root=`dirname $cross_root`
22790 cross_root=`dirname $cross_root`
22791
22792 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22793 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22794
22795 if test -z "$PKG_CONFIG_PATH"; then
22796 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22797 export PKG_CONFIG_PATH
22798 fi
22799
22800 if test -z "$x_includes" -o "$x_includes" = NONE; then
22801
22802ac_find_includes=
22803for ac_dir in $SEARCH_INCLUDE /usr/include;
22804 do
22805 if test -f "$ac_dir/X11/Intrinsic.h"; then
22806 ac_find_includes=$ac_dir
22807 break
22808 fi
22809 done
22810
22811 x_includes=$ac_find_includes
22812 fi
22813 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22814
0ad5d837
VZ
22815 ac_find_libraries=
22816 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
22817 do
22818 for ac_extension in a so sl dylib dll.a; do
22819 if test -f "$ac_dir/libXt.$ac_extension"; then
22820 ac_find_libraries=$ac_dir
22821 break 2
22822 fi
22823 done
22824 done
22825
22826 x_libraries=$ac_find_libraries
22827 fi
22828 fi
22829fi
22830
a848cd7e
SC
22831
22832cat >confcache <<\_ACEOF
22833# This file is a shell script that caches the results of configure
22834# tests run on this system so they can be shared between configure
22835# scripts and configure runs, see configure's option --config-cache.
22836# It is not useful on other systems. If it contains results you don't
22837# want to keep, you may remove or edit it.
22838#
22839# config.status only pays attention to the cache file if you give it
22840# the --recheck option to rerun configure.
22841#
22842# `ac_cv_env_foo' variables (set or unset) will be overridden when
22843# loading this file, other *unset* `ac_cv_foo' will be assigned the
22844# following values.
22845
22846_ACEOF
22847
22848# The following way of writing the cache mishandles newlines in values,
22849# but we know of no workaround that is simple, portable, and efficient.
22850# So, don't put newlines in cache variables' values.
22851# Ultrix sh set writes to stderr and can't be redirected directly,
22852# and sets the high bit in the cache file unless we assign to the vars.
22853{
22854 (set) 2>&1 |
22855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22856 *ac_space=\ *)
22857 # `set' does not quote correctly, so add quotes (double-quote
22858 # substitution turns \\\\ into \\, and sed turns \\ into \).
22859 sed -n \
ac1cb8d3
VS
22860 "s/'/'\\\\''/g;
22861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22862 ;;
22863 *)
22864 # `set' quotes correctly as required by POSIX, so do not add quotes.
22865 sed -n \
ac1cb8d3 22866 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22867 ;;
22868 esac;
22869} |
22870 sed '
22871 t clear
22872 : clear
22873 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22874 t end
22875 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22876 : end' >>confcache
22877if diff $cache_file confcache >/dev/null 2>&1; then :; else
22878 if test -w $cache_file; then
22879 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22880 cat confcache >$cache_file
22881 else
22882 echo "not updating unwritable cache $cache_file"
22883 fi
22884fi
22885rm -f confcache
22886
22887if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22888 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22889echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22890if test "${wx_cv_lib_glibc21+set}" = set; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22892else
22893
22894 cat >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#include <features.h>
22901int
22902main ()
22903{
22904
22905 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 22906 not glibc 2.1
a848cd7e
SC
22907 #endif
22908
22909 ;
22910 return 0;
22911}
22912_ACEOF
22913rm -f conftest.$ac_objext
22914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22915 (eval $ac_compile) 2>conftest.er1
a848cd7e 22916 ac_status=$?
ac1cb8d3
VS
22917 grep -v '^ *+' conftest.er1 >conftest.err
22918 rm -f conftest.er1
22919 cat conftest.err >&5
a848cd7e
SC
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } &&
6ebeb4c7 22922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924 (eval $ac_try) 2>&5
22925 ac_status=$?
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); }; } &&
22928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22931 ac_status=$?
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); }; }; then
22934
22935 wx_cv_lib_glibc21=yes
22936
22937else
22938 echo "$as_me: failed program was:" >&5
22939sed 's/^/| /' conftest.$ac_ext >&5
22940
22941
22942 wx_cv_lib_glibc21=no
22943
22944
22945fi
ac1cb8d3 22946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22947
22948fi
22949echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22950echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22951 if test "$wx_cv_lib_glibc21" = "yes"; then
22952 cat >>confdefs.h <<\_ACEOF
22953#define wxHAVE_GLIBC2 1
22954_ACEOF
22955
22956 fi
22957fi
22958
22959if test "x$wx_cv_lib_glibc21" = "xyes"; then
22960 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22961 cat >>confdefs.h <<\_ACEOF
22962#define _GNU_SOURCE 1
22963_ACEOF
22964
22965 fi
22966fi
22967
22968
22969
22970if test "$wxUSE_REGEX" != "no"; then
22971 cat >>confdefs.h <<\_ACEOF
22972#define wxUSE_REGEX 1
22973_ACEOF
22974
22975
22976 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22977 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22978echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22979 wxUSE_REGEX=builtin
22980 fi
22981
22982 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22983 if test "${ac_cv_header_regex_h+set}" = set; then
22984 echo "$as_me:$LINENO: checking for regex.h" >&5
22985echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22986if test "${ac_cv_header_regex_h+set}" = set; then
22987 echo $ECHO_N "(cached) $ECHO_C" >&6
22988fi
22989echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22990echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22991else
22992 # Is the header compilable?
22993echo "$as_me:$LINENO: checking regex.h usability" >&5
22994echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22995cat >conftest.$ac_ext <<_ACEOF
22996/* confdefs.h. */
22997_ACEOF
22998cat confdefs.h >>conftest.$ac_ext
22999cat >>conftest.$ac_ext <<_ACEOF
23000/* end confdefs.h. */
23001$ac_includes_default
23002#include <regex.h>
23003_ACEOF
23004rm -f conftest.$ac_objext
23005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23006 (eval $ac_compile) 2>conftest.er1
a848cd7e 23007 ac_status=$?
ac1cb8d3
VS
23008 grep -v '^ *+' conftest.er1 >conftest.err
23009 rm -f conftest.er1
23010 cat conftest.err >&5
a848cd7e
SC
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } &&
6ebeb4c7 23013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23016 ac_status=$?
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; } &&
23019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 ac_header_compiler=yes
23026else
23027 echo "$as_me: failed program was:" >&5
23028sed 's/^/| /' conftest.$ac_ext >&5
23029
23030ac_header_compiler=no
23031fi
ac1cb8d3 23032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23034echo "${ECHO_T}$ac_header_compiler" >&6
23035
23036# Is the header present?
23037echo "$as_me:$LINENO: checking regex.h presence" >&5
23038echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23039cat >conftest.$ac_ext <<_ACEOF
23040/* confdefs.h. */
23041_ACEOF
23042cat confdefs.h >>conftest.$ac_ext
23043cat >>conftest.$ac_ext <<_ACEOF
23044/* end confdefs.h. */
23045#include <regex.h>
23046_ACEOF
23047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } >/dev/null; then
23055 if test -s conftest.err; then
23056 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23058 else
23059 ac_cpp_err=
23060 fi
23061else
23062 ac_cpp_err=yes
23063fi
23064if test -z "$ac_cpp_err"; then
23065 ac_header_preproc=yes
23066else
23067 echo "$as_me: failed program was:" >&5
23068sed 's/^/| /' conftest.$ac_ext >&5
23069
23070 ac_header_preproc=no
23071fi
23072rm -f conftest.err conftest.$ac_ext
23073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23074echo "${ECHO_T}$ac_header_preproc" >&6
23075
23076# So? What about this header?
ac1cb8d3
VS
23077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23078 yes:no: )
a848cd7e
SC
23079 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23080echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23081 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23082echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23083 ac_header_preproc=yes
a848cd7e 23084 ;;
ac1cb8d3 23085 no:yes:* )
a848cd7e
SC
23086 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23087echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23088 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23089echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23090 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23091echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23093echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23094 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23095echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23096 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23097echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23098 (
23099 cat <<\_ASBOX
ac1cb8d3
VS
23100## ----------------------------------------- ##
23101## Report this to wx-dev@lists.wxwidgets.org ##
23102## ----------------------------------------- ##
a848cd7e
SC
23103_ASBOX
23104 ) |
23105 sed "s/^/$as_me: WARNING: /" >&2
23106 ;;
23107esac
23108echo "$as_me:$LINENO: checking for regex.h" >&5
23109echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23110if test "${ac_cv_header_regex_h+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112else
23113 ac_cv_header_regex_h=$ac_header_preproc
23114fi
23115echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23116echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23117
23118fi
23119if test $ac_cv_header_regex_h = yes; then
23120
23121for ac_func in regcomp
23122do
23123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23124echo "$as_me:$LINENO: checking for $ac_func" >&5
23125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23126if eval "test \"\${$as_ac_var+set}\" = set"; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23128else
23129 cat >conftest.$ac_ext <<_ACEOF
23130/* confdefs.h. */
23131_ACEOF
23132cat confdefs.h >>conftest.$ac_ext
23133cat >>conftest.$ac_ext <<_ACEOF
23134/* end confdefs.h. */
ac1cb8d3
VS
23135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23137#define $ac_func innocuous_$ac_func
23138
a848cd7e
SC
23139/* System header to define __stub macros and hopefully few prototypes,
23140 which can conflict with char $ac_func (); below.
23141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23142 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23143
a848cd7e
SC
23144#ifdef __STDC__
23145# include <limits.h>
23146#else
23147# include <assert.h>
23148#endif
ac1cb8d3
VS
23149
23150#undef $ac_func
23151
a848cd7e
SC
23152/* Override any gcc2 internal prototype to avoid an error. */
23153#ifdef __cplusplus
23154extern "C"
23155{
23156#endif
23157/* We use char because int might match the return type of a gcc2
23158 builtin and then its argument prototype would still apply. */
23159char $ac_func ();
23160/* The GNU C library defines this for functions which it implements
23161 to always fail with ENOSYS. Some functions are actually named
23162 something starting with __ and the normal name is an alias. */
23163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23164choke me
23165#else
23166char (*f) () = $ac_func;
23167#endif
23168#ifdef __cplusplus
23169}
23170#endif
23171
23172int
23173main ()
23174{
23175return f != $ac_func;
23176 ;
23177 return 0;
23178}
23179_ACEOF
23180rm -f conftest.$ac_objext conftest$ac_exeext
23181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23182 (eval $ac_link) 2>conftest.er1
a848cd7e 23183 ac_status=$?
ac1cb8d3
VS
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
a848cd7e
SC
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } &&
6ebeb4c7 23189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; } &&
23195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201 eval "$as_ac_var=yes"
23202else
23203 echo "$as_me: failed program was:" >&5
23204sed 's/^/| /' conftest.$ac_ext >&5
23205
23206eval "$as_ac_var=no"
23207fi
ac1cb8d3
VS
23208rm -f conftest.err conftest.$ac_objext \
23209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23210fi
23211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23213if test `eval echo '${'$as_ac_var'}'` = yes; then
23214 cat >>confdefs.h <<_ACEOF
23215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23216_ACEOF
23217
23218fi
23219done
23220
23221fi
23222
23223
23224
23225 if test "x$ac_cv_func_regcomp" != "xyes"; then
23226 if test "$wxUSE_REGEX" = "sys" ; then
23227 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23228echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23229 { (exit 1); exit 1; }; }
23230 else
23231 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23232echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23233 wxUSE_REGEX=builtin
23234 fi
23235 else
23236 wxUSE_REGEX=sys
23237 cat >>confdefs.h <<\_ACEOF
23238#define WX_NO_REGEX_ADVANCED 1
23239_ACEOF
23240
23241 fi
23242 fi
23243fi
23244
23245
23246ZLIB_LINK=
23247if test "$wxUSE_ZLIB" != "no" ; then
23248 cat >>confdefs.h <<\_ACEOF
23249#define wxUSE_ZLIB 1
23250_ACEOF
23251
23252
23253 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23254 if test "$USE_DARWIN" = 1; then
23255 system_zlib_h_ok="yes"
23256 else
23257 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23258echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23259if test "${ac_cv_header_zlib_h+set}" = set; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23261else
23262 if test "$cross_compiling" = yes; then
23263 unset ac_cv_header_zlib_h
23264
23265else
23266 cat >conftest.$ac_ext <<_ACEOF
23267/* confdefs.h. */
23268_ACEOF
23269cat confdefs.h >>conftest.$ac_ext
23270cat >>conftest.$ac_ext <<_ACEOF
23271/* end confdefs.h. */
23272
23273 #include <zlib.h>
23274 #include <stdio.h>
23275
23276 int main()
23277 {
23278 FILE *f=fopen("conftestval", "w");
23279 if (!f) exit(1);
23280 fprintf(f, "%s",
23281 ZLIB_VERSION[0] == '1' &&
23282 (ZLIB_VERSION[2] > '1' ||
23283 (ZLIB_VERSION[2] == '1' &&
23284 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23285 exit(0);
23286 }
23287
23288_ACEOF
23289rm -f conftest$ac_exeext
23290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23291 (eval $ac_link) 2>&5
23292 ac_status=$?
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 ac_cv_header_zlib_h=`cat conftestval`
23301else
23302 echo "$as_me: program exited with status $ac_status" >&5
23303echo "$as_me: failed program was:" >&5
23304sed 's/^/| /' conftest.$ac_ext >&5
23305
23306( exit $ac_status )
23307ac_cv_header_zlib_h=no
23308fi
ac1cb8d3 23309rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23310fi
23311
23312fi
23313echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23314echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23315 if test "${ac_cv_header_zlib_h+set}" = set; then
23316 echo "$as_me:$LINENO: checking for zlib.h" >&5
23317echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23318if test "${ac_cv_header_zlib_h+set}" = set; then
23319 echo $ECHO_N "(cached) $ECHO_C" >&6
23320fi
23321echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23322echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23323else
23324 # Is the header compilable?
23325echo "$as_me:$LINENO: checking zlib.h usability" >&5
23326echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23327cat >conftest.$ac_ext <<_ACEOF
23328/* confdefs.h. */
23329_ACEOF
23330cat confdefs.h >>conftest.$ac_ext
23331cat >>conftest.$ac_ext <<_ACEOF
23332/* end confdefs.h. */
23333$ac_includes_default
23334#include <zlib.h>
23335_ACEOF
23336rm -f conftest.$ac_objext
23337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23338 (eval $ac_compile) 2>conftest.er1
a848cd7e 23339 ac_status=$?
ac1cb8d3
VS
23340 grep -v '^ *+' conftest.er1 >conftest.err
23341 rm -f conftest.er1
23342 cat conftest.err >&5
a848cd7e
SC
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } &&
6ebeb4c7 23345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; } &&
23351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 ac_header_compiler=yes
23358else
23359 echo "$as_me: failed program was:" >&5
23360sed 's/^/| /' conftest.$ac_ext >&5
23361
23362ac_header_compiler=no
23363fi
ac1cb8d3 23364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23365echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23366echo "${ECHO_T}$ac_header_compiler" >&6
23367
23368# Is the header present?
23369echo "$as_me:$LINENO: checking zlib.h presence" >&5
23370echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23371cat >conftest.$ac_ext <<_ACEOF
23372/* confdefs.h. */
23373_ACEOF
23374cat confdefs.h >>conftest.$ac_ext
23375cat >>conftest.$ac_ext <<_ACEOF
23376/* end confdefs.h. */
23377#include <zlib.h>
23378_ACEOF
23379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23381 ac_status=$?
23382 grep -v '^ *+' conftest.er1 >conftest.err
23383 rm -f conftest.er1
23384 cat conftest.err >&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } >/dev/null; then
23387 if test -s conftest.err; then
23388 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23390 else
23391 ac_cpp_err=
23392 fi
23393else
23394 ac_cpp_err=yes
23395fi
23396if test -z "$ac_cpp_err"; then
23397 ac_header_preproc=yes
23398else
23399 echo "$as_me: failed program was:" >&5
23400sed 's/^/| /' conftest.$ac_ext >&5
23401
23402 ac_header_preproc=no
23403fi
23404rm -f conftest.err conftest.$ac_ext
23405echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23406echo "${ECHO_T}$ac_header_preproc" >&6
23407
23408# So? What about this header?
ac1cb8d3
VS
23409case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23410 yes:no: )
a848cd7e
SC
23411 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23412echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23413 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23414echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23415 ac_header_preproc=yes
a848cd7e 23416 ;;
ac1cb8d3 23417 no:yes:* )
a848cd7e
SC
23418 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23419echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23420 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23421echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23422 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23423echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23424 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23425echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23426 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23427echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23428 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23429echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23430 (
23431 cat <<\_ASBOX
ac1cb8d3
VS
23432## ----------------------------------------- ##
23433## Report this to wx-dev@lists.wxwidgets.org ##
23434## ----------------------------------------- ##
a848cd7e
SC
23435_ASBOX
23436 ) |
23437 sed "s/^/$as_me: WARNING: /" >&2
23438 ;;
23439esac
23440echo "$as_me:$LINENO: checking for zlib.h" >&5
23441echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23442if test "${ac_cv_header_zlib_h+set}" = set; then
23443 echo $ECHO_N "(cached) $ECHO_C" >&6
23444else
23445 ac_cv_header_zlib_h=$ac_header_preproc
23446fi
23447echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23448echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23449
23450fi
23451
23452
23453
23454 system_zlib_h_ok=$ac_cv_header_zlib_h
23455 fi
23456
23457 if test "$system_zlib_h_ok" = "yes"; then
23458 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
23459echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
23460if test "${ac_cv_lib_z_deflate+set}" = set; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23462else
23463 ac_check_lib_save_LIBS=$LIBS
23464LIBS="-lz $LIBS"
23465cat >conftest.$ac_ext <<_ACEOF
23466/* confdefs.h. */
23467_ACEOF
23468cat confdefs.h >>conftest.$ac_ext
23469cat >>conftest.$ac_ext <<_ACEOF
23470/* end confdefs.h. */
23471
23472/* Override any gcc2 internal prototype to avoid an error. */
23473#ifdef __cplusplus
23474extern "C"
23475#endif
23476/* We use char because int might match the return type of a gcc2
23477 builtin and then its argument prototype would still apply. */
23478char deflate ();
23479int
23480main ()
23481{
23482deflate ();
23483 ;
23484 return 0;
23485}
23486_ACEOF
23487rm -f conftest.$ac_objext conftest$ac_exeext
23488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23489 (eval $ac_link) 2>conftest.er1
a848cd7e 23490 ac_status=$?
ac1cb8d3
VS
23491 grep -v '^ *+' conftest.er1 >conftest.err
23492 rm -f conftest.er1
23493 cat conftest.err >&5
a848cd7e
SC
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); } &&
6ebeb4c7 23496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498 (eval $ac_try) 2>&5
23499 ac_status=$?
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); }; } &&
23502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23504 (eval $ac_try) 2>&5
23505 ac_status=$?
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); }; }; then
23508 ac_cv_lib_z_deflate=yes
23509else
23510 echo "$as_me: failed program was:" >&5
23511sed 's/^/| /' conftest.$ac_ext >&5
23512
23513ac_cv_lib_z_deflate=no
23514fi
ac1cb8d3
VS
23515rm -f conftest.err conftest.$ac_objext \
23516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23517LIBS=$ac_check_lib_save_LIBS
23518fi
23519echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23520echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23521if test $ac_cv_lib_z_deflate = yes; then
23522 ZLIB_LINK=" -lz"
23523fi
23524
23525 fi
23526
23527 if test "x$ZLIB_LINK" = "x" ; then
23528 if test "$wxUSE_ZLIB" = "sys" ; then
23529 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
23530echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
23531 { (exit 1); exit 1; }; }
23532 else
23533 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
23534echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
23535 wxUSE_ZLIB=builtin
23536 fi
23537 else
23538 wxUSE_ZLIB=sys
23539 fi
23540 fi
23541fi
23542
23543
23544PNG_LINK=
23545if test "$wxUSE_LIBPNG" != "no" ; then
23546 cat >>confdefs.h <<\_ACEOF
23547#define wxUSE_LIBPNG 1
23548_ACEOF
23549
23550
23551 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
23552 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
23553echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
23554 wxUSE_LIBPNG=sys
23555 fi
23556
23557 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
23558 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
23559echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
23560 wxUSE_LIBPNG=builtin
23561 fi
23562
23563 if test "$wxUSE_MGL" != 1 ; then
23564 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23565 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23566echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23567if test "${ac_cv_header_png_h+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23569else
23570 if test "$cross_compiling" = yes; then
23571 unset ac_cv_header_png_h
23572
23573else
23574 cat >conftest.$ac_ext <<_ACEOF
23575/* confdefs.h. */
23576_ACEOF
23577cat confdefs.h >>conftest.$ac_ext
23578cat >>conftest.$ac_ext <<_ACEOF
23579/* end confdefs.h. */
23580
23581 #include <png.h>
23582 #include <stdio.h>
23583
23584 int main()
23585 {
23586 FILE *f=fopen("conftestval", "w");
23587 if (!f) exit(1);
23588 fprintf(f, "%s",
23589 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23590 exit(0);
23591 }
23592
23593_ACEOF
23594rm -f conftest$ac_exeext
23595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23596 (eval $ac_link) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23605 ac_cv_header_png_h=`cat conftestval`
23606else
23607 echo "$as_me: program exited with status $ac_status" >&5
23608echo "$as_me: failed program was:" >&5
23609sed 's/^/| /' conftest.$ac_ext >&5
23610
23611( exit $ac_status )
23612ac_cv_header_png_h=no
23613fi
ac1cb8d3 23614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23615fi
23616
23617fi
23618echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23619echo "${ECHO_T}$ac_cv_header_png_h" >&6
23620 if test "${ac_cv_header_png_h+set}" = set; then
23621 echo "$as_me:$LINENO: checking for png.h" >&5
23622echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23623if test "${ac_cv_header_png_h+set}" = set; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23625fi
23626echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23627echo "${ECHO_T}$ac_cv_header_png_h" >&6
23628else
23629 # Is the header compilable?
23630echo "$as_me:$LINENO: checking png.h usability" >&5
23631echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23632cat >conftest.$ac_ext <<_ACEOF
23633/* confdefs.h. */
23634_ACEOF
23635cat confdefs.h >>conftest.$ac_ext
23636cat >>conftest.$ac_ext <<_ACEOF
23637/* end confdefs.h. */
23638$ac_includes_default
23639#include <png.h>
23640_ACEOF
23641rm -f conftest.$ac_objext
23642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23643 (eval $ac_compile) 2>conftest.er1
a848cd7e 23644 ac_status=$?
ac1cb8d3
VS
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
a848cd7e
SC
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } &&
6ebeb4c7 23650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 ac_header_compiler=yes
23663else
23664 echo "$as_me: failed program was:" >&5
23665sed 's/^/| /' conftest.$ac_ext >&5
23666
23667ac_header_compiler=no
23668fi
ac1cb8d3 23669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23671echo "${ECHO_T}$ac_header_compiler" >&6
23672
23673# Is the header present?
23674echo "$as_me:$LINENO: checking png.h presence" >&5
23675echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23676cat >conftest.$ac_ext <<_ACEOF
23677/* confdefs.h. */
23678_ACEOF
23679cat confdefs.h >>conftest.$ac_ext
23680cat >>conftest.$ac_ext <<_ACEOF
23681/* end confdefs.h. */
23682#include <png.h>
23683_ACEOF
23684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23686 ac_status=$?
23687 grep -v '^ *+' conftest.er1 >conftest.err
23688 rm -f conftest.er1
23689 cat conftest.err >&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } >/dev/null; then
23692 if test -s conftest.err; then
23693 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23695 else
23696 ac_cpp_err=
23697 fi
23698else
23699 ac_cpp_err=yes
23700fi
23701if test -z "$ac_cpp_err"; then
23702 ac_header_preproc=yes
23703else
23704 echo "$as_me: failed program was:" >&5
23705sed 's/^/| /' conftest.$ac_ext >&5
23706
23707 ac_header_preproc=no
23708fi
23709rm -f conftest.err conftest.$ac_ext
23710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23711echo "${ECHO_T}$ac_header_preproc" >&6
23712
23713# So? What about this header?
ac1cb8d3
VS
23714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23715 yes:no: )
a848cd7e
SC
23716 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23717echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23718 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23719echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23720 ac_header_preproc=yes
a848cd7e 23721 ;;
ac1cb8d3 23722 no:yes:* )
a848cd7e
SC
23723 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23724echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23725 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23726echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23727 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23728echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23729 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23730echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23731 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23732echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23733 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23734echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23735 (
23736 cat <<\_ASBOX
ac1cb8d3
VS
23737## ----------------------------------------- ##
23738## Report this to wx-dev@lists.wxwidgets.org ##
23739## ----------------------------------------- ##
a848cd7e
SC
23740_ASBOX
23741 ) |
23742 sed "s/^/$as_me: WARNING: /" >&2
23743 ;;
23744esac
23745echo "$as_me:$LINENO: checking for png.h" >&5
23746echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23747if test "${ac_cv_header_png_h+set}" = set; then
23748 echo $ECHO_N "(cached) $ECHO_C" >&6
23749else
23750 ac_cv_header_png_h=$ac_header_preproc
23751fi
23752echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23753echo "${ECHO_T}$ac_cv_header_png_h" >&6
23754
23755fi
23756
23757
23758
23759 if test "$ac_cv_header_png_h" = "yes"; then
23760 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23761echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23762if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23764else
23765 ac_check_lib_save_LIBS=$LIBS
23766LIBS="-lpng -lz -lm $LIBS"
23767cat >conftest.$ac_ext <<_ACEOF
23768/* confdefs.h. */
23769_ACEOF
23770cat confdefs.h >>conftest.$ac_ext
23771cat >>conftest.$ac_ext <<_ACEOF
23772/* end confdefs.h. */
23773
23774/* Override any gcc2 internal prototype to avoid an error. */
23775#ifdef __cplusplus
23776extern "C"
23777#endif
23778/* We use char because int might match the return type of a gcc2
23779 builtin and then its argument prototype would still apply. */
23780char png_check_sig ();
23781int
23782main ()
23783{
23784png_check_sig ();
23785 ;
23786 return 0;
23787}
23788_ACEOF
23789rm -f conftest.$ac_objext conftest$ac_exeext
23790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23791 (eval $ac_link) 2>conftest.er1
a848cd7e 23792 ac_status=$?
ac1cb8d3
VS
23793 grep -v '^ *+' conftest.er1 >conftest.err
23794 rm -f conftest.er1
23795 cat conftest.err >&5
a848cd7e
SC
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } &&
6ebeb4c7 23798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800 (eval $ac_try) 2>&5
23801 ac_status=$?
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; } &&
23804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23806 (eval $ac_try) 2>&5
23807 ac_status=$?
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); }; }; then
23810 ac_cv_lib_png_png_check_sig=yes
23811else
23812 echo "$as_me: failed program was:" >&5
23813sed 's/^/| /' conftest.$ac_ext >&5
23814
23815ac_cv_lib_png_png_check_sig=no
23816fi
ac1cb8d3
VS
23817rm -f conftest.err conftest.$ac_objext \
23818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23819LIBS=$ac_check_lib_save_LIBS
23820fi
23821echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23822echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23823if test $ac_cv_lib_png_png_check_sig = yes; then
23824 PNG_LINK=" -lpng -lz"
23825fi
23826
23827 fi
23828
23829 if test "x$PNG_LINK" = "x" ; then
23830 if test "$wxUSE_LIBPNG" = "sys" ; then
23831 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23832echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23833 { (exit 1); exit 1; }; }
23834 else
23835 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23836echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23837 wxUSE_LIBPNG=builtin
23838 fi
23839 else
23840 wxUSE_LIBPNG=sys
23841 fi
23842 fi
23843 fi
23844
23845 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23846fi
23847
23848
23849JPEG_LINK=
23850if test "$wxUSE_LIBJPEG" != "no" ; then
23851 cat >>confdefs.h <<\_ACEOF
23852#define wxUSE_LIBJPEG 1
23853_ACEOF
23854
23855
23856 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23857 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23858echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23859 wxUSE_LIBJPEG=sys
23860 fi
23861
23862 if test "$wxUSE_MGL" != 1 ; then
23863 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23864 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23865echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23866 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23868else
23869 cat >conftest.$ac_ext <<_ACEOF
23870/* confdefs.h. */
23871_ACEOF
23872cat confdefs.h >>conftest.$ac_ext
23873cat >>conftest.$ac_ext <<_ACEOF
23874/* end confdefs.h. */
23875
23876 #undef HAVE_STDLIB_H
23877 #include <stdio.h>
23878 #include <jpeglib.h>
23879
23880int
23881main ()
23882{
23883
23884
23885 ;
23886 return 0;
23887}
23888_ACEOF
23889rm -f conftest.$ac_objext
23890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23891 (eval $ac_compile) 2>conftest.er1
a848cd7e 23892 ac_status=$?
ac1cb8d3
VS
23893 grep -v '^ *+' conftest.er1 >conftest.err
23894 rm -f conftest.er1
23895 cat conftest.err >&5
a848cd7e
SC
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } &&
6ebeb4c7 23898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; } &&
23904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; }; then
23910 ac_cv_header_jpeglib_h=yes
23911else
23912 echo "$as_me: failed program was:" >&5
23913sed 's/^/| /' conftest.$ac_ext >&5
23914
23915ac_cv_header_jpeglib_h=no
23916
23917fi
ac1cb8d3 23918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23919
23920fi
23921
23922 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23923echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23924
23925 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23926 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23927echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23928if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23929 echo $ECHO_N "(cached) $ECHO_C" >&6
23930else
23931 ac_check_lib_save_LIBS=$LIBS
23932LIBS="-ljpeg $LIBS"
23933cat >conftest.$ac_ext <<_ACEOF
23934/* confdefs.h. */
23935_ACEOF
23936cat confdefs.h >>conftest.$ac_ext
23937cat >>conftest.$ac_ext <<_ACEOF
23938/* end confdefs.h. */
23939
23940/* Override any gcc2 internal prototype to avoid an error. */
23941#ifdef __cplusplus
23942extern "C"
23943#endif
23944/* We use char because int might match the return type of a gcc2
23945 builtin and then its argument prototype would still apply. */
23946char jpeg_read_header ();
23947int
23948main ()
23949{
23950jpeg_read_header ();
23951 ;
23952 return 0;
23953}
23954_ACEOF
23955rm -f conftest.$ac_objext conftest$ac_exeext
23956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23957 (eval $ac_link) 2>conftest.er1
a848cd7e 23958 ac_status=$?
ac1cb8d3
VS
23959 grep -v '^ *+' conftest.er1 >conftest.err
23960 rm -f conftest.er1
23961 cat conftest.err >&5
a848cd7e
SC
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } &&
6ebeb4c7 23964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23967 ac_status=$?
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; } &&
23970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; }; then
23976 ac_cv_lib_jpeg_jpeg_read_header=yes
23977else
23978 echo "$as_me: failed program was:" >&5
23979sed 's/^/| /' conftest.$ac_ext >&5
23980
23981ac_cv_lib_jpeg_jpeg_read_header=no
23982fi
ac1cb8d3
VS
23983rm -f conftest.err conftest.$ac_objext \
23984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23985LIBS=$ac_check_lib_save_LIBS
23986fi
23987echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23988echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23989if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23990 JPEG_LINK=" -ljpeg"
23991fi
23992
23993 fi
23994
23995 if test "x$JPEG_LINK" = "x" ; then
23996 if test "$wxUSE_LIBJPEG" = "sys" ; then
23997 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23998echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23999 { (exit 1); exit 1; }; }
24000 else
24001 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24002echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24003 wxUSE_LIBJPEG=builtin
24004 fi
24005 else
24006 wxUSE_LIBJPEG=sys
24007 fi
24008 fi
24009 fi
24010fi
24011
24012
24013TIFF_LINK=
24014TIFF_PREREQ_LINKS=-lm
24015if test "$wxUSE_LIBTIFF" != "no" ; then
24016 cat >>confdefs.h <<\_ACEOF
24017#define wxUSE_LIBTIFF 1
24018_ACEOF
24019
24020
24021 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24022 if test "$wxUSE_LIBJPEG" = "sys"; then
24023 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24024 fi
24025 if test "$wxUSE_ZLIB" = "sys"; then
24026 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24027 fi
24028 if test "${ac_cv_header_tiffio_h+set}" = set; then
24029 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24030echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24031if test "${ac_cv_header_tiffio_h+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24033fi
24034echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24035echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24036else
24037 # Is the header compilable?
24038echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24039echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24040cat >conftest.$ac_ext <<_ACEOF
24041/* confdefs.h. */
24042_ACEOF
24043cat confdefs.h >>conftest.$ac_ext
24044cat >>conftest.$ac_ext <<_ACEOF
24045/* end confdefs.h. */
24046$ac_includes_default
24047#include <tiffio.h>
24048_ACEOF
24049rm -f conftest.$ac_objext
24050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24051 (eval $ac_compile) 2>conftest.er1
a848cd7e 24052 ac_status=$?
ac1cb8d3
VS
24053 grep -v '^ *+' conftest.er1 >conftest.err
24054 rm -f conftest.er1
24055 cat conftest.err >&5
a848cd7e
SC
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); } &&
6ebeb4c7 24058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); }; } &&
24064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); }; }; then
24070 ac_header_compiler=yes
24071else
24072 echo "$as_me: failed program was:" >&5
24073sed 's/^/| /' conftest.$ac_ext >&5
24074
24075ac_header_compiler=no
24076fi
ac1cb8d3 24077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24078echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24079echo "${ECHO_T}$ac_header_compiler" >&6
24080
24081# Is the header present?
24082echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24083echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24084cat >conftest.$ac_ext <<_ACEOF
24085/* confdefs.h. */
24086_ACEOF
24087cat confdefs.h >>conftest.$ac_ext
24088cat >>conftest.$ac_ext <<_ACEOF
24089/* end confdefs.h. */
24090#include <tiffio.h>
24091_ACEOF
24092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24094 ac_status=$?
24095 grep -v '^ *+' conftest.er1 >conftest.err
24096 rm -f conftest.er1
24097 cat conftest.err >&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } >/dev/null; then
24100 if test -s conftest.err; then
24101 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24103 else
24104 ac_cpp_err=
24105 fi
24106else
24107 ac_cpp_err=yes
24108fi
24109if test -z "$ac_cpp_err"; then
24110 ac_header_preproc=yes
24111else
24112 echo "$as_me: failed program was:" >&5
24113sed 's/^/| /' conftest.$ac_ext >&5
24114
24115 ac_header_preproc=no
24116fi
24117rm -f conftest.err conftest.$ac_ext
24118echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24119echo "${ECHO_T}$ac_header_preproc" >&6
24120
24121# So? What about this header?
ac1cb8d3
VS
24122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24123 yes:no: )
a848cd7e
SC
24124 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24125echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24126 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24127echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24128 ac_header_preproc=yes
a848cd7e 24129 ;;
ac1cb8d3 24130 no:yes:* )
a848cd7e
SC
24131 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24132echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24133 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24134echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24135 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24136echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24137 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24138echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24139 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24140echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24141 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24142echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24143 (
24144 cat <<\_ASBOX
ac1cb8d3
VS
24145## ----------------------------------------- ##
24146## Report this to wx-dev@lists.wxwidgets.org ##
24147## ----------------------------------------- ##
a848cd7e
SC
24148_ASBOX
24149 ) |
24150 sed "s/^/$as_me: WARNING: /" >&2
24151 ;;
24152esac
24153echo "$as_me:$LINENO: checking for tiffio.h" >&5
24154echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24155if test "${ac_cv_header_tiffio_h+set}" = set; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24157else
24158 ac_cv_header_tiffio_h=$ac_header_preproc
24159fi
24160echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24161echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24162
24163fi
24164if test $ac_cv_header_tiffio_h = yes; then
24165
24166 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24167echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24168if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
24170else
24171 ac_check_lib_save_LIBS=$LIBS
24172LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24173cat >conftest.$ac_ext <<_ACEOF
24174/* confdefs.h. */
24175_ACEOF
24176cat confdefs.h >>conftest.$ac_ext
24177cat >>conftest.$ac_ext <<_ACEOF
24178/* end confdefs.h. */
24179
24180/* Override any gcc2 internal prototype to avoid an error. */
24181#ifdef __cplusplus
24182extern "C"
24183#endif
24184/* We use char because int might match the return type of a gcc2
24185 builtin and then its argument prototype would still apply. */
24186char TIFFError ();
24187int
24188main ()
24189{
24190TIFFError ();
24191 ;
24192 return 0;
24193}
24194_ACEOF
24195rm -f conftest.$ac_objext conftest$ac_exeext
24196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24197 (eval $ac_link) 2>conftest.er1
a848cd7e 24198 ac_status=$?
ac1cb8d3
VS
24199 grep -v '^ *+' conftest.er1 >conftest.err
24200 rm -f conftest.er1
24201 cat conftest.err >&5
a848cd7e
SC
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } &&
6ebeb4c7 24204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24206 (eval $ac_try) 2>&5
24207 ac_status=$?
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); }; } &&
24210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24212 (eval $ac_try) 2>&5
24213 ac_status=$?
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); }; }; then
24216 ac_cv_lib_tiff_TIFFError=yes
24217else
24218 echo "$as_me: failed program was:" >&5
24219sed 's/^/| /' conftest.$ac_ext >&5
24220
24221ac_cv_lib_tiff_TIFFError=no
24222fi
ac1cb8d3
VS
24223rm -f conftest.err conftest.$ac_objext \
24224 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24225LIBS=$ac_check_lib_save_LIBS
24226fi
24227echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24228echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24229if test $ac_cv_lib_tiff_TIFFError = yes; then
24230 TIFF_LINK=" -ltiff"
24231fi
24232
24233
24234
24235fi
24236
24237
24238
24239 if test "x$TIFF_LINK" = "x" ; then
24240 if test "$wxUSE_LIBTIFF" = "sys" ; then
24241 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24242echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24243 { (exit 1); exit 1; }; }
24244 else
24245 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24246echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24247 wxUSE_LIBTIFF=builtin
24248 fi
24249 else
24250 wxUSE_LIBTIFF=sys
24251 fi
24252 fi
24253fi
24254
24255
47a7e797
MW
24256if test "$wxUSE_WCHAR_T" != "yes"; then
24257 if test "$wxUSE_EXPAT" != "no"; then
24258 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24259echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24260 wxUSE_EXPAT=no
24261 fi
24262 if test "$wxUSE_XML" != "no"; then
24263 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24264echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24265 wxUSE_XML=no
24266 fi
24267fi
24268
a848cd7e
SC
24269if test "$wxUSE_EXPAT" != "no"; then
24270 wxUSE_XML=yes
24271 cat >>confdefs.h <<\_ACEOF
24272#define wxUSE_EXPAT 1
24273_ACEOF
24274
24275 cat >>confdefs.h <<\_ACEOF
24276#define wxUSE_XML 1
24277_ACEOF
24278
24279
24280 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24281 if test "${ac_cv_header_expat_h+set}" = set; then
24282 echo "$as_me:$LINENO: checking for expat.h" >&5
24283echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24284if test "${ac_cv_header_expat_h+set}" = set; then
24285 echo $ECHO_N "(cached) $ECHO_C" >&6
24286fi
24287echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24288echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24289else
24290 # Is the header compilable?
24291echo "$as_me:$LINENO: checking expat.h usability" >&5
24292echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24293cat >conftest.$ac_ext <<_ACEOF
24294/* confdefs.h. */
24295_ACEOF
24296cat confdefs.h >>conftest.$ac_ext
24297cat >>conftest.$ac_ext <<_ACEOF
24298/* end confdefs.h. */
24299$ac_includes_default
24300#include <expat.h>
24301_ACEOF
24302rm -f conftest.$ac_objext
24303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24304 (eval $ac_compile) 2>conftest.er1
a848cd7e 24305 ac_status=$?
ac1cb8d3
VS
24306 grep -v '^ *+' conftest.er1 >conftest.err
24307 rm -f conftest.er1
24308 cat conftest.err >&5
a848cd7e
SC
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } &&
6ebeb4c7 24311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313 (eval $ac_try) 2>&5
24314 ac_status=$?
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; } &&
24317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24319 (eval $ac_try) 2>&5
24320 ac_status=$?
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }; }; then
24323 ac_header_compiler=yes
24324else
24325 echo "$as_me: failed program was:" >&5
24326sed 's/^/| /' conftest.$ac_ext >&5
24327
24328ac_header_compiler=no
24329fi
ac1cb8d3 24330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24332echo "${ECHO_T}$ac_header_compiler" >&6
24333
24334# Is the header present?
24335echo "$as_me:$LINENO: checking expat.h presence" >&5
24336echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24337cat >conftest.$ac_ext <<_ACEOF
24338/* confdefs.h. */
24339_ACEOF
24340cat confdefs.h >>conftest.$ac_ext
24341cat >>conftest.$ac_ext <<_ACEOF
24342/* end confdefs.h. */
24343#include <expat.h>
24344_ACEOF
24345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24347 ac_status=$?
24348 grep -v '^ *+' conftest.er1 >conftest.err
24349 rm -f conftest.er1
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } >/dev/null; then
24353 if test -s conftest.err; then
24354 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24356 else
24357 ac_cpp_err=
24358 fi
24359else
24360 ac_cpp_err=yes
24361fi
24362if test -z "$ac_cpp_err"; then
24363 ac_header_preproc=yes
24364else
24365 echo "$as_me: failed program was:" >&5
24366sed 's/^/| /' conftest.$ac_ext >&5
24367
24368 ac_header_preproc=no
24369fi
24370rm -f conftest.err conftest.$ac_ext
24371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24372echo "${ECHO_T}$ac_header_preproc" >&6
24373
24374# So? What about this header?
ac1cb8d3
VS
24375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24376 yes:no: )
a848cd7e
SC
24377 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24378echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24379 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24380echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
24381 ac_header_preproc=yes
a848cd7e 24382 ;;
ac1cb8d3 24383 no:yes:* )
a848cd7e
SC
24384 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
24385echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24386 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
24387echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
24388 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
24389echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
24390 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
24391echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24392 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
24393echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24394 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
24395echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24396 (
24397 cat <<\_ASBOX
ac1cb8d3
VS
24398## ----------------------------------------- ##
24399## Report this to wx-dev@lists.wxwidgets.org ##
24400## ----------------------------------------- ##
a848cd7e
SC
24401_ASBOX
24402 ) |
24403 sed "s/^/$as_me: WARNING: /" >&2
24404 ;;
24405esac
24406echo "$as_me:$LINENO: checking for expat.h" >&5
24407echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24408if test "${ac_cv_header_expat_h+set}" = set; then
24409 echo $ECHO_N "(cached) $ECHO_C" >&6
24410else
24411 ac_cv_header_expat_h=$ac_header_preproc
24412fi
24413echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24414echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24415
24416fi
24417if test $ac_cv_header_expat_h = yes; then
24418 found_expat_h=1
24419fi
24420
24421
24422 if test "x$found_expat_h" = "x1"; then
24423 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24424echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24425if test "${wx_cv_expat_is_not_broken+set}" = set; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24427else
24428
24429
24430
24431 ac_ext=cc
24432ac_cpp='$CXXCPP $CPPFLAGS'
24433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24436
24437 cat >conftest.$ac_ext <<_ACEOF
24438/* confdefs.h. */
24439_ACEOF
24440cat confdefs.h >>conftest.$ac_ext
24441cat >>conftest.$ac_ext <<_ACEOF
24442/* end confdefs.h. */
24443#include <expat.h>
24444int
24445main ()
24446{
24447
24448 ;
24449 return 0;
24450}
24451_ACEOF
24452rm -f conftest.$ac_objext
24453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24454 (eval $ac_compile) 2>conftest.er1
a848cd7e 24455 ac_status=$?
ac1cb8d3
VS
24456 grep -v '^ *+' conftest.er1 >conftest.err
24457 rm -f conftest.er1
24458 cat conftest.err >&5
a848cd7e
SC
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); } &&
6ebeb4c7 24461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24464 ac_status=$?
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; } &&
24467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); }; }; then
24473 wx_cv_expat_is_not_broken=yes
24474else
24475 echo "$as_me: failed program was:" >&5
24476sed 's/^/| /' conftest.$ac_ext >&5
24477
24478wx_cv_expat_is_not_broken=no
24479
24480fi
ac1cb8d3 24481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24482 ac_ext=c
24483ac_cpp='$CPP $CPPFLAGS'
24484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24486ac_compiler_gnu=$ac_cv_c_compiler_gnu
24487
24488
24489
24490fi
24491echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
24492echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
24493 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
24494 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
24495echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
24496if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
24497 echo $ECHO_N "(cached) $ECHO_C" >&6
24498else
24499 ac_check_lib_save_LIBS=$LIBS
24500LIBS="-lexpat $LIBS"
24501cat >conftest.$ac_ext <<_ACEOF
24502/* confdefs.h. */
24503_ACEOF
24504cat confdefs.h >>conftest.$ac_ext
24505cat >>conftest.$ac_ext <<_ACEOF
24506/* end confdefs.h. */
24507
24508/* Override any gcc2 internal prototype to avoid an error. */
24509#ifdef __cplusplus
24510extern "C"
24511#endif
24512/* We use char because int might match the return type of a gcc2
24513 builtin and then its argument prototype would still apply. */
24514char XML_ParserCreate ();
24515int
24516main ()
24517{
24518XML_ParserCreate ();
24519 ;
24520 return 0;
24521}
24522_ACEOF
24523rm -f conftest.$ac_objext conftest$ac_exeext
24524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24525 (eval $ac_link) 2>conftest.er1
a848cd7e 24526 ac_status=$?
ac1cb8d3
VS
24527 grep -v '^ *+' conftest.er1 >conftest.err
24528 rm -f conftest.er1
24529 cat conftest.err >&5
a848cd7e
SC
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); } &&
6ebeb4c7 24532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); }; } &&
24538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24540 (eval $ac_try) 2>&5
24541 ac_status=$?
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); }; }; then
24544 ac_cv_lib_expat_XML_ParserCreate=yes
24545else
24546 echo "$as_me: failed program was:" >&5
24547sed 's/^/| /' conftest.$ac_ext >&5
24548
24549ac_cv_lib_expat_XML_ParserCreate=no
24550fi
ac1cb8d3
VS
24551rm -f conftest.err conftest.$ac_objext \
24552 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24553LIBS=$ac_check_lib_save_LIBS
24554fi
24555echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
24556echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
24557if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
24558 EXPAT_LINK=" -lexpat"
24559fi
24560
24561 fi
24562 fi
24563 if test "x$EXPAT_LINK" = "x" ; then
24564 if test "$wxUSE_EXPAT" = "sys" ; then
24565 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24566echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24567 { (exit 1); exit 1; }; }
24568 else
24569 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24570echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24571 wxUSE_EXPAT=builtin
24572 fi
24573 else
24574 wxUSE_EXPAT=sys
24575 fi
24576 fi
24577 if test "$wxUSE_EXPAT" = "builtin" ; then
24578
24579
24580subdirs="$subdirs src/expat"
24581
24582 fi
24583fi
24584
24585
24586
24587if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24588 if test "${ac_cv_header_mspack_h+set}" = set; then
24589 echo "$as_me:$LINENO: checking for mspack.h" >&5
24590echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24591if test "${ac_cv_header_mspack_h+set}" = set; then
24592 echo $ECHO_N "(cached) $ECHO_C" >&6
24593fi
24594echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24595echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24596else
24597 # Is the header compilable?
24598echo "$as_me:$LINENO: checking mspack.h usability" >&5
24599echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24600cat >conftest.$ac_ext <<_ACEOF
24601/* confdefs.h. */
24602_ACEOF
24603cat confdefs.h >>conftest.$ac_ext
24604cat >>conftest.$ac_ext <<_ACEOF
24605/* end confdefs.h. */
24606$ac_includes_default
24607#include <mspack.h>
24608_ACEOF
24609rm -f conftest.$ac_objext
24610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24611 (eval $ac_compile) 2>conftest.er1
a848cd7e 24612 ac_status=$?
ac1cb8d3
VS
24613 grep -v '^ *+' conftest.er1 >conftest.err
24614 rm -f conftest.er1
24615 cat conftest.err >&5
a848cd7e
SC
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } &&
6ebeb4c7 24618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620 (eval $ac_try) 2>&5
24621 ac_status=$?
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); }; } &&
24624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626 (eval $ac_try) 2>&5
24627 ac_status=$?
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; }; then
24630 ac_header_compiler=yes
24631else
24632 echo "$as_me: failed program was:" >&5
24633sed 's/^/| /' conftest.$ac_ext >&5
24634
24635ac_header_compiler=no
24636fi
ac1cb8d3 24637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24639echo "${ECHO_T}$ac_header_compiler" >&6
24640
24641# Is the header present?
24642echo "$as_me:$LINENO: checking mspack.h presence" >&5
24643echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24644cat >conftest.$ac_ext <<_ACEOF
24645/* confdefs.h. */
24646_ACEOF
24647cat confdefs.h >>conftest.$ac_ext
24648cat >>conftest.$ac_ext <<_ACEOF
24649/* end confdefs.h. */
24650#include <mspack.h>
24651_ACEOF
24652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24654 ac_status=$?
24655 grep -v '^ *+' conftest.er1 >conftest.err
24656 rm -f conftest.er1
24657 cat conftest.err >&5
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); } >/dev/null; then
24660 if test -s conftest.err; then
24661 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24663 else
24664 ac_cpp_err=
24665 fi
24666else
24667 ac_cpp_err=yes
24668fi
24669if test -z "$ac_cpp_err"; then
24670 ac_header_preproc=yes
24671else
24672 echo "$as_me: failed program was:" >&5
24673sed 's/^/| /' conftest.$ac_ext >&5
24674
24675 ac_header_preproc=no
24676fi
24677rm -f conftest.err conftest.$ac_ext
24678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24679echo "${ECHO_T}$ac_header_preproc" >&6
24680
24681# So? What about this header?
ac1cb8d3
VS
24682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24683 yes:no: )
a848cd7e
SC
24684 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24685echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24686 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24687echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24688 ac_header_preproc=yes
a848cd7e 24689 ;;
ac1cb8d3 24690 no:yes:* )
a848cd7e
SC
24691 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24692echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24693 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24694echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24695 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24696echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24697 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24698echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24699 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24700echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24701 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24702echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24703 (
24704 cat <<\_ASBOX
ac1cb8d3
VS
24705## ----------------------------------------- ##
24706## Report this to wx-dev@lists.wxwidgets.org ##
24707## ----------------------------------------- ##
a848cd7e
SC
24708_ASBOX
24709 ) |
24710 sed "s/^/$as_me: WARNING: /" >&2
24711 ;;
24712esac
24713echo "$as_me:$LINENO: checking for mspack.h" >&5
24714echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24715if test "${ac_cv_header_mspack_h+set}" = set; then
24716 echo $ECHO_N "(cached) $ECHO_C" >&6
24717else
24718 ac_cv_header_mspack_h=$ac_header_preproc
24719fi
24720echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24721echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24722
24723fi
24724if test $ac_cv_header_mspack_h = yes; then
24725 found_mspack_h=1
24726fi
24727
24728
24729 if test "x$found_mspack_h" = "x1"; then
24730 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24731echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24732if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24733 echo $ECHO_N "(cached) $ECHO_C" >&6
24734else
24735 ac_check_lib_save_LIBS=$LIBS
24736LIBS="-lmspack $LIBS"
24737cat >conftest.$ac_ext <<_ACEOF
24738/* confdefs.h. */
24739_ACEOF
24740cat confdefs.h >>conftest.$ac_ext
24741cat >>conftest.$ac_ext <<_ACEOF
24742/* end confdefs.h. */
24743
24744/* Override any gcc2 internal prototype to avoid an error. */
24745#ifdef __cplusplus
24746extern "C"
24747#endif
24748/* We use char because int might match the return type of a gcc2
24749 builtin and then its argument prototype would still apply. */
24750char mspack_create_chm_decompressor ();
24751int
24752main ()
24753{
24754mspack_create_chm_decompressor ();
24755 ;
24756 return 0;
24757}
24758_ACEOF
24759rm -f conftest.$ac_objext conftest$ac_exeext
24760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24761 (eval $ac_link) 2>conftest.er1
a848cd7e 24762 ac_status=$?
ac1cb8d3
VS
24763 grep -v '^ *+' conftest.er1 >conftest.err
24764 rm -f conftest.er1
24765 cat conftest.err >&5
a848cd7e
SC
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } &&
6ebeb4c7 24768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770 (eval $ac_try) 2>&5
24771 ac_status=$?
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); }; } &&
24774 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24776 (eval $ac_try) 2>&5
24777 ac_status=$?
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24781else
24782 echo "$as_me: failed program was:" >&5
24783sed 's/^/| /' conftest.$ac_ext >&5
24784
24785ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24786fi
ac1cb8d3
VS
24787rm -f conftest.err conftest.$ac_objext \
24788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24789LIBS=$ac_check_lib_save_LIBS
24790fi
24791echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24792echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24793if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24794 MSPACK_LINK=" -lmspack"
24795fi
24796
24797 fi
24798 if test "x$MSPACK_LINK" = "x" ; then
24799 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24800 fi
24801fi
24802
24803if test "$wxUSE_LIBMSPACK" != "no"; then
24804 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24805#define wxUSE_LIBMSPACK 1
24806_ACEOF
24807
a848cd7e
SC
24808fi
24809
24810
24811
24812AFMINSTALL=
24813WIN32INSTALL=
24814
24815TOOLKIT=
24816TOOLKIT_INCLUDE=
24817WIDGET_SET=
24818
24819if test "$USE_WIN32" = 1 ; then
24820
24821for ac_header in w32api.h
24822do
24823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24824if eval "test \"\${$as_ac_Header+set}\" = set"; then
24825 echo "$as_me:$LINENO: checking for $ac_header" >&5
24826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24827if eval "test \"\${$as_ac_Header+set}\" = set"; then
24828 echo $ECHO_N "(cached) $ECHO_C" >&6
24829fi
24830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24832else
24833 # Is the header compilable?
24834echo "$as_me:$LINENO: checking $ac_header usability" >&5
24835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24836cat >conftest.$ac_ext <<_ACEOF
24837/* confdefs.h. */
24838_ACEOF
24839cat confdefs.h >>conftest.$ac_ext
24840cat >>conftest.$ac_ext <<_ACEOF
24841/* end confdefs.h. */
24842$ac_includes_default
24843#include <$ac_header>
24844_ACEOF
24845rm -f conftest.$ac_objext
24846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24847 (eval $ac_compile) 2>conftest.er1
a848cd7e 24848 ac_status=$?
ac1cb8d3
VS
24849 grep -v '^ *+' conftest.er1 >conftest.err
24850 rm -f conftest.er1
24851 cat conftest.err >&5
a848cd7e
SC
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } &&
6ebeb4c7 24854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; } &&
24860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; }; then
24866 ac_header_compiler=yes
24867else
24868 echo "$as_me: failed program was:" >&5
24869sed 's/^/| /' conftest.$ac_ext >&5
24870
24871ac_header_compiler=no
24872fi
ac1cb8d3 24873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24875echo "${ECHO_T}$ac_header_compiler" >&6
24876
24877# Is the header present?
24878echo "$as_me:$LINENO: checking $ac_header presence" >&5
24879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24880cat >conftest.$ac_ext <<_ACEOF
24881/* confdefs.h. */
24882_ACEOF
24883cat confdefs.h >>conftest.$ac_ext
24884cat >>conftest.$ac_ext <<_ACEOF
24885/* end confdefs.h. */
24886#include <$ac_header>
24887_ACEOF
24888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24890 ac_status=$?
24891 grep -v '^ *+' conftest.er1 >conftest.err
24892 rm -f conftest.er1
24893 cat conftest.err >&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); } >/dev/null; then
24896 if test -s conftest.err; then
24897 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24899 else
24900 ac_cpp_err=
24901 fi
24902else
24903 ac_cpp_err=yes
24904fi
24905if test -z "$ac_cpp_err"; then
24906 ac_header_preproc=yes
24907else
24908 echo "$as_me: failed program was:" >&5
24909sed 's/^/| /' conftest.$ac_ext >&5
24910
24911 ac_header_preproc=no
24912fi
24913rm -f conftest.err conftest.$ac_ext
24914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24915echo "${ECHO_T}$ac_header_preproc" >&6
24916
24917# So? What about this header?
ac1cb8d3
VS
24918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24919 yes:no: )
a848cd7e
SC
24920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24924 ac_header_preproc=yes
a848cd7e 24925 ;;
ac1cb8d3 24926 no:yes:* )
a848cd7e
SC
24927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24939 (
24940 cat <<\_ASBOX
ac1cb8d3
VS
24941## ----------------------------------------- ##
24942## Report this to wx-dev@lists.wxwidgets.org ##
24943## ----------------------------------------- ##
a848cd7e
SC
24944_ASBOX
24945 ) |
24946 sed "s/^/$as_me: WARNING: /" >&2
24947 ;;
24948esac
24949echo "$as_me:$LINENO: checking for $ac_header" >&5
24950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24951if eval "test \"\${$as_ac_Header+set}\" = set"; then
24952 echo $ECHO_N "(cached) $ECHO_C" >&6
24953else
ac1cb8d3 24954 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24955fi
24956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24958
24959fi
24960if test `eval echo '${'$as_ac_Header'}'` = yes; then
24961 cat >>confdefs.h <<_ACEOF
24962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24963_ACEOF
24964
24965fi
24966
24967done
24968
24969 if test "${ac_cv_header_windows_h+set}" = set; then
24970 echo "$as_me:$LINENO: checking for windows.h" >&5
24971echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24972if test "${ac_cv_header_windows_h+set}" = set; then
24973 echo $ECHO_N "(cached) $ECHO_C" >&6
24974fi
24975echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24976echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24977else
24978 # Is the header compilable?
24979echo "$as_me:$LINENO: checking windows.h usability" >&5
24980echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24981cat >conftest.$ac_ext <<_ACEOF
24982/* confdefs.h. */
24983_ACEOF
24984cat confdefs.h >>conftest.$ac_ext
24985cat >>conftest.$ac_ext <<_ACEOF
24986/* end confdefs.h. */
24987$ac_includes_default
24988#include <windows.h>
24989_ACEOF
24990rm -f conftest.$ac_objext
24991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24992 (eval $ac_compile) 2>conftest.er1
a848cd7e 24993 ac_status=$?
ac1cb8d3
VS
24994 grep -v '^ *+' conftest.er1 >conftest.err
24995 rm -f conftest.er1
24996 cat conftest.err >&5
a848cd7e
SC
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } &&
6ebeb4c7 24999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; } &&
25005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007 (eval $ac_try) 2>&5
25008 ac_status=$?
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); }; }; then
25011 ac_header_compiler=yes
25012else
25013 echo "$as_me: failed program was:" >&5
25014sed 's/^/| /' conftest.$ac_ext >&5
25015
25016ac_header_compiler=no
25017fi
ac1cb8d3 25018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25019echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25020echo "${ECHO_T}$ac_header_compiler" >&6
25021
25022# Is the header present?
25023echo "$as_me:$LINENO: checking windows.h presence" >&5
25024echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25025cat >conftest.$ac_ext <<_ACEOF
25026/* confdefs.h. */
25027_ACEOF
25028cat confdefs.h >>conftest.$ac_ext
25029cat >>conftest.$ac_ext <<_ACEOF
25030/* end confdefs.h. */
25031#include <windows.h>
25032_ACEOF
25033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25035 ac_status=$?
25036 grep -v '^ *+' conftest.er1 >conftest.err
25037 rm -f conftest.er1
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } >/dev/null; then
25041 if test -s conftest.err; then
25042 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25044 else
25045 ac_cpp_err=
25046 fi
25047else
25048 ac_cpp_err=yes
25049fi
25050if test -z "$ac_cpp_err"; then
25051 ac_header_preproc=yes
25052else
25053 echo "$as_me: failed program was:" >&5
25054sed 's/^/| /' conftest.$ac_ext >&5
25055
25056 ac_header_preproc=no
25057fi
25058rm -f conftest.err conftest.$ac_ext
25059echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25060echo "${ECHO_T}$ac_header_preproc" >&6
25061
25062# So? What about this header?
ac1cb8d3
VS
25063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25064 yes:no: )
a848cd7e
SC
25065 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25066echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25067 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25068echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25069 ac_header_preproc=yes
a848cd7e 25070 ;;
ac1cb8d3 25071 no:yes:* )
a848cd7e
SC
25072 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25073echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25074 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25075echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25076 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25077echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25078 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25079echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25080 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25081echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25082 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25083echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25084 (
25085 cat <<\_ASBOX
ac1cb8d3
VS
25086## ----------------------------------------- ##
25087## Report this to wx-dev@lists.wxwidgets.org ##
25088## ----------------------------------------- ##
a848cd7e
SC
25089_ASBOX
25090 ) |
25091 sed "s/^/$as_me: WARNING: /" >&2
25092 ;;
25093esac
25094echo "$as_me:$LINENO: checking for windows.h" >&5
25095echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25096if test "${ac_cv_header_windows_h+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25098else
25099 ac_cv_header_windows_h=$ac_header_preproc
25100fi
25101echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25102echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25103
25104fi
25105if test $ac_cv_header_windows_h = yes; then
25106 :
25107else
25108
25109 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25110echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25111 { (exit 1); exit 1; }; }
25112
25113fi
25114
25115
25116
25117 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25118
25119 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25120 LIBS="$LIBS -loleacc"
25121 fi
25122
25123 case "${host}" in
25124 *-*-cygwin* )
25125 LIBS="$LIBS -lkernel32 -luser32"
25126 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25127 esac
25128
25129 if test "$wxUSE_ODBC" = "sys" ; then
25130 wxUSE_ODBC = "yes"
25131 fi
25132 if test "$wxUSE_ODBC" = "yes" ; then
25133 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25134 cat >>confdefs.h <<\_ACEOF
25135#define wxUSE_ODBC 1
25136_ACEOF
25137
25138 fi
25139
25140 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25141 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25142
25143 WIN32INSTALL=win32install
25144fi
25145
25146if test "$wxUSE_GUI" = "yes"; then
25147 USE_GUI=1
25148
25149 GUI_TK_LIBRARY=
25150
25151 WXGTK12=
25152 WXGTK127=
25153 WXGTK20=
25154 WXGPE=
25155
207bc66c
RN
25156 if test "$wxUSE_COCOA" = 1 ; then
25157 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25158 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25159echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25160 wxUSE_PRINTING_ARCHITECTURE=no
25161 fi
25162 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25163 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25164echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25165 wxUSE_DRAG_AND_DROP=no
25166 fi
25167 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25168 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25169echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25170 wxUSE_DRAGIMAGE=no
25171 fi
25172 fi
25173
a848cd7e
SC
25174 if test "$wxUSE_MSW" = 1 ; then
25175 TOOLKIT=MSW
25176 GUIDIST=MSW_DIST
25177
ceec2216 25178 case "${host}" in
a848cd7e
SC
25179 *-*-mingw32* )
25180 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25181 esac
25182 fi
25183
25184 if test "$wxUSE_GTK" = 1; then
25185 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25186echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25187
25188 gtk_version_cached=1
25189 if test "${wx_cv_lib_gtk+set}" = set; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25191else
25192
25193 gtk_version_cached=0
25194 echo "$as_me:$LINENO: result: " >&5
25195echo "${ECHO_T}" >&6
25196
25197 GTK_MODULES=
25198 if test "$wxUSE_THREADS" = "yes"; then
25199 GTK_MODULES=gthread
25200 fi
25201
f597b41c 25202 wx_cv_lib_gtk=
5001df0d
MW
25203 if test "x$wxGTK_VERSION" != "x1"
25204 then
25205 case "${host}" in
25206 *-*-solaris2* )
25207 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25208 enable_gtktest=no
25209 fi
25210 esac
25211
a848cd7e
SC
25212 # Check whether --enable-gtktest or --disable-gtktest was given.
25213if test "${enable_gtktest+set}" = set; then
25214 enableval="$enable_gtktest"
25215
25216else
25217 enable_gtktest=yes
25218fi;
25219
25220 pkg_config_args=gtk+-2.0
25221 for module in . $GTK_MODULES
25222 do
25223 case "$module" in
25224 gthread)
25225 pkg_config_args="$pkg_config_args gthread-2.0"
25226 ;;
25227 esac
25228 done
25229
25230 no_gtk=""
25231
25232 # Extract the first word of "pkg-config", so it can be a program name with args.
25233set dummy pkg-config; ac_word=$2
25234echo "$as_me:$LINENO: checking for $ac_word" >&5
25235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25236if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
25238else
25239 case $PKG_CONFIG in
25240 [\\/]* | ?:[\\/]*)
25241 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25242 ;;
25243 *)
25244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25245for as_dir in $PATH
25246do
25247 IFS=$as_save_IFS
25248 test -z "$as_dir" && as_dir=.
25249 for ac_exec_ext in '' $ac_executable_extensions; do
25250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25251 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25253 break 2
25254 fi
25255done
25256done
25257
25258 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25259 ;;
25260esac
25261fi
25262PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25263
25264if test -n "$PKG_CONFIG"; then
25265 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25266echo "${ECHO_T}$PKG_CONFIG" >&6
25267else
25268 echo "$as_me:$LINENO: result: no" >&5
25269echo "${ECHO_T}no" >&6
25270fi
25271
25272
25273 if test x$PKG_CONFIG != xno ; then
25274 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25275 :
25276 else
c2218763 25277 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25278 no_gtk=yes
25279 PKG_CONFIG=no
25280 fi
25281 else
25282 no_gtk=yes
25283 fi
25284
25285 min_gtk_version=2.0.0
25286 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25287echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25288
25289 if test x$PKG_CONFIG != xno ; then
25290 ## don't try to run the test against uninstalled libtool libs
25291 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25292 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25293 enable_gtktest=no
25294 fi
25295
25296 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25297 :
25298 else
25299 no_gtk=yes
25300 fi
25301 fi
25302
25303 if test x"$no_gtk" = x ; then
25304 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25305 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25306 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25307 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25308 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25309 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25310 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25311 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25312 if test "x$enable_gtktest" = "xyes" ; then
25313 ac_save_CFLAGS="$CFLAGS"
25314 ac_save_LIBS="$LIBS"
25315 CFLAGS="$CFLAGS $GTK_CFLAGS"
25316 LIBS="$GTK_LIBS $LIBS"
25317 rm -f conf.gtktest
25318 if test "$cross_compiling" = yes; then
25319 echo $ac_n "cross compiling; assumed OK... $ac_c"
25320else
25321 cat >conftest.$ac_ext <<_ACEOF
25322/* confdefs.h. */
25323_ACEOF
25324cat confdefs.h >>conftest.$ac_ext
25325cat >>conftest.$ac_ext <<_ACEOF
25326/* end confdefs.h. */
25327
25328#include <gtk/gtk.h>
25329#include <stdio.h>
25330#include <stdlib.h>
25331
25332int
25333main ()
25334{
25335 int major, minor, micro;
25336 char *tmp_version;
25337
25338 system ("touch conf.gtktest");
25339
25340 /* HP/UX 9 (%@#!) writes to sscanf strings */
25341 tmp_version = g_strdup("$min_gtk_version");
25342 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25343 printf("%s, bad version string\n", "$min_gtk_version");
25344 exit(1);
25345 }
25346
25347 if ((gtk_major_version != $gtk_config_major_version) ||
25348 (gtk_minor_version != $gtk_config_minor_version) ||
25349 (gtk_micro_version != $gtk_config_micro_version))
25350 {
25351 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25352 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25353 gtk_major_version, gtk_minor_version, gtk_micro_version);
25354 printf ("*** was found! If pkg-config was correct, then it is best\n");
25355 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25356 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25357 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25358 printf("*** required on your system.\n");
25359 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25360 printf("*** to point to the correct configuration files\n");
25361 }
25362 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25363 (gtk_minor_version != GTK_MINOR_VERSION) ||
25364 (gtk_micro_version != GTK_MICRO_VERSION))
25365 {
25366 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25367 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25368 printf("*** library (version %d.%d.%d)\n",
25369 gtk_major_version, gtk_minor_version, gtk_micro_version);
25370 }
25371 else
25372 {
25373 if ((gtk_major_version > major) ||
25374 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25375 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25376 {
25377 return 0;
25378 }
25379 else
25380 {
25381 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25382 gtk_major_version, gtk_minor_version, gtk_micro_version);
25383 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25384 major, minor, micro);
25385 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25386 printf("***\n");
25387 printf("*** If you have already installed a sufficiently new version, this error\n");
25388 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
25389 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25390 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
25391 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
25392 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25393 printf("*** so that the correct libraries are found at run-time))\n");
25394 }
25395 }
25396 return 1;
25397}
25398
25399_ACEOF
25400rm -f conftest$ac_exeext
25401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25402 (eval $ac_link) 2>&5
25403 ac_status=$?
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25408 ac_status=$?
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; }; then
25411 :
25412else
25413 echo "$as_me: program exited with status $ac_status" >&5
25414echo "$as_me: failed program was:" >&5
25415sed 's/^/| /' conftest.$ac_ext >&5
25416
25417( exit $ac_status )
25418no_gtk=yes
25419fi
ac1cb8d3 25420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25421fi
25422 CFLAGS="$ac_save_CFLAGS"
25423 LIBS="$ac_save_LIBS"
25424 fi
25425 fi
25426 if test "x$no_gtk" = x ; then
25427 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
25428echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
25429 wx_cv_lib_gtk=2.0
25430 else
25431 echo "$as_me:$LINENO: result: no" >&5
25432echo "${ECHO_T}no" >&6
25433 if test "$PKG_CONFIG" = "no" ; then
25434 echo "*** A new enough version of pkg-config was not found."
25435 echo "*** See http://pkgconfig.sourceforge.net"
25436 else
25437 if test -f conf.gtktest ; then
25438 :
25439 else
25440 echo "*** Could not run GTK+ test program, checking why..."
25441 ac_save_CFLAGS="$CFLAGS"
25442 ac_save_LIBS="$LIBS"
25443 CFLAGS="$CFLAGS $GTK_CFLAGS"
25444 LIBS="$LIBS $GTK_LIBS"
25445 cat >conftest.$ac_ext <<_ACEOF
25446/* confdefs.h. */
25447_ACEOF
25448cat confdefs.h >>conftest.$ac_ext
25449cat >>conftest.$ac_ext <<_ACEOF
25450/* end confdefs.h. */
25451
25452#include <gtk/gtk.h>
25453#include <stdio.h>
25454
25455int
25456main ()
25457{
25458 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25459 ;
25460 return 0;
25461}
25462_ACEOF
25463rm -f conftest.$ac_objext conftest$ac_exeext
25464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25465 (eval $ac_link) 2>conftest.er1
a848cd7e 25466 ac_status=$?
ac1cb8d3
VS
25467 grep -v '^ *+' conftest.er1 >conftest.err
25468 rm -f conftest.er1
25469 cat conftest.err >&5
a848cd7e
SC
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } &&
6ebeb4c7 25472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); }; } &&
25478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; }; then
25484 echo "*** The test program compiled, but did not run. This usually means"
25485 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
25486 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
25487 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25488 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25489 echo "*** is required on your system"
25490 echo "***"
25491 echo "*** If you have an old version installed, it is best to remove it, although"
25492 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25493else
25494 echo "$as_me: failed program was:" >&5
25495sed 's/^/| /' conftest.$ac_ext >&5
25496
25497 echo "*** The test program failed to compile or link. See the file config.log for the"
25498 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
25499fi
ac1cb8d3
VS
25500rm -f conftest.err conftest.$ac_objext \
25501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25502 CFLAGS="$ac_save_CFLAGS"
25503 LIBS="$ac_save_LIBS"
25504 fi
25505 fi
25506 GTK_CFLAGS=""
25507 GTK_LIBS=""
25508 :
25509 fi
25510
25511
25512 rm -f conf.gtktest
25513
5001df0d
MW
25514
25515 case "${host}" in
25516 *-*-solaris2* )
25517 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25518 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
25519 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
25520 fi
25521 if test "$wxUSE_SHARED" != "yes"; then
25522 GTK_LIBS="$GTK_LIBS -lX11"
25523 fi
25524 esac
f597b41c
MW
25525 fi
25526
f34ca037
MW
25527 if test -z "$wx_cv_lib_gtk"; then
25528 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
25529
25530# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25531if test "${with_gtk_prefix+set}" = set; then
25532 withval="$with_gtk_prefix"
25533 gtk_config_prefix="$withval"
25534else
25535 gtk_config_prefix=""
25536fi;
25537
25538# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25539if test "${with_gtk_exec_prefix+set}" = set; then
25540 withval="$with_gtk_exec_prefix"
25541 gtk_config_exec_prefix="$withval"
25542else
25543 gtk_config_exec_prefix=""
25544fi;
25545# Check whether --enable-gtktest or --disable-gtktest was given.
25546if test "${enable_gtktest+set}" = set; then
25547 enableval="$enable_gtktest"
25548
25549else
25550 enable_gtktest=yes
25551fi;
25552
25553 for module in . $GTK_MODULES
25554 do
25555 case "$module" in
25556 gthread)
25557 gtk_config_args="$gtk_config_args gthread"
25558 ;;
25559 esac
25560 done
25561
25562 if test x$gtk_config_exec_prefix != x ; then
25563 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25564 if test x${GTK_CONFIG+set} != xset ; then
25565 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25566 fi
25567 fi
25568 if test x$gtk_config_prefix != x ; then
25569 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25570 if test x${GTK_CONFIG+set} != xset ; then
25571 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25572 fi
25573 fi
25574
25575 # Extract the first word of "gtk-config", so it can be a program name with args.
25576set dummy gtk-config; ac_word=$2
25577echo "$as_me:$LINENO: checking for $ac_word" >&5
25578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25579if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25581else
25582 case $GTK_CONFIG in
25583 [\\/]* | ?:[\\/]*)
25584 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25585 ;;
25586 *)
25587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25588for as_dir in $PATH
25589do
25590 IFS=$as_save_IFS
25591 test -z "$as_dir" && as_dir=.
25592 for ac_exec_ext in '' $ac_executable_extensions; do
25593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25594 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25596 break 2
25597 fi
25598done
25599done
25600
25601 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25602 ;;
25603esac
25604fi
25605GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25606
25607if test -n "$GTK_CONFIG"; then
25608 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25609echo "${ECHO_T}$GTK_CONFIG" >&6
25610else
25611 echo "$as_me:$LINENO: result: no" >&5
25612echo "${ECHO_T}no" >&6
25613fi
25614
25615 min_gtk_version=1.2.7
25616 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25617echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25618 no_gtk=""
25619 if test "$GTK_CONFIG" = "no" ; then
25620 no_gtk=yes
25621 else
25622 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25623 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25624 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25625 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25626 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25627 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25628 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25629 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25630 if test "x$enable_gtktest" = "xyes" ; then
25631 ac_save_CFLAGS="$CFLAGS"
25632 ac_save_LIBS="$LIBS"
25633 CFLAGS="$CFLAGS $GTK_CFLAGS"
25634 LIBS="$GTK_LIBS $LIBS"
25635 rm -f conf.gtktest
25636 if test "$cross_compiling" = yes; then
25637 echo $ac_n "cross compiling; assumed OK... $ac_c"
25638else
25639 cat >conftest.$ac_ext <<_ACEOF
25640/* confdefs.h. */
25641_ACEOF
25642cat confdefs.h >>conftest.$ac_ext
25643cat >>conftest.$ac_ext <<_ACEOF
25644/* end confdefs.h. */
25645
25646#include <gtk/gtk.h>
25647#include <stdio.h>
25648#include <stdlib.h>
25649
25650int
25651main ()
25652{
25653 int major, minor, micro;
25654 char *tmp_version;
25655
25656 system ("touch conf.gtktest");
25657
25658 /* HP/UX 9 (%@#!) writes to sscanf strings */
25659 tmp_version = g_strdup("$min_gtk_version");
25660 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25661 printf("%s, bad version string\n", "$min_gtk_version");
25662 exit(1);
25663 }
25664
25665 if ((gtk_major_version != $gtk_config_major_version) ||
25666 (gtk_minor_version != $gtk_config_minor_version) ||
25667 (gtk_micro_version != $gtk_config_micro_version))
25668 {
25669 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25670 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25671 gtk_major_version, gtk_minor_version, gtk_micro_version);
25672 printf ("*** was found! If gtk-config was correct, then it is best\n");
25673 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25674 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25675 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25676 printf("*** required on your system.\n");
25677 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25678 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25679 printf("*** before re-running configure\n");
25680 }
25681#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25682 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25683 (gtk_minor_version != GTK_MINOR_VERSION) ||
25684 (gtk_micro_version != GTK_MICRO_VERSION))
25685 {
25686 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25687 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25688 printf("*** library (version %d.%d.%d)\n",
25689 gtk_major_version, gtk_minor_version, gtk_micro_version);
25690 }
25691#endif /* defined (GTK_MAJOR_VERSION) ... */
25692 else
25693 {
25694 if ((gtk_major_version > major) ||
25695 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25696 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25697 {
25698 return 0;
25699 }
25700 else
25701 {
25702 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25703 gtk_major_version, gtk_minor_version, gtk_micro_version);
25704 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25705 major, minor, micro);
25706 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25707 printf("***\n");
25708 printf("*** If you have already installed a sufficiently new version, this error\n");
25709 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25710 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25711 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25712 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25713 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25714 printf("*** so that the correct libraries are found at run-time))\n");
25715 }
25716 }
25717 return 1;
25718}
25719
25720_ACEOF
25721rm -f conftest$ac_exeext
25722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25723 (eval $ac_link) 2>&5
25724 ac_status=$?
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 :
25733else
25734 echo "$as_me: program exited with status $ac_status" >&5
25735echo "$as_me: failed program was:" >&5
25736sed 's/^/| /' conftest.$ac_ext >&5
25737
25738( exit $ac_status )
25739no_gtk=yes
25740fi
ac1cb8d3 25741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25742fi
25743 CFLAGS="$ac_save_CFLAGS"
25744 LIBS="$ac_save_LIBS"
25745 fi
25746 fi
25747 if test "x$no_gtk" = x ; then
25748 echo "$as_me:$LINENO: result: yes" >&5
25749echo "${ECHO_T}yes" >&6
25750 wx_cv_lib_gtk=1.2.7
25751 else
25752 echo "$as_me:$LINENO: result: no" >&5
25753echo "${ECHO_T}no" >&6
25754 if test "$GTK_CONFIG" = "no" ; then
25755 echo "*** The gtk-config script installed by GTK could not be found"
25756 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25757 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25758 echo "*** full path to gtk-config."
25759 else
25760 if test -f conf.gtktest ; then
25761 :
25762 else
25763 echo "*** Could not run GTK test program, checking why..."
25764 CFLAGS="$CFLAGS $GTK_CFLAGS"
25765 LIBS="$LIBS $GTK_LIBS"
25766 cat >conftest.$ac_ext <<_ACEOF
25767/* confdefs.h. */
25768_ACEOF
25769cat confdefs.h >>conftest.$ac_ext
25770cat >>conftest.$ac_ext <<_ACEOF
25771/* end confdefs.h. */
25772
25773#include <gtk/gtk.h>
25774#include <stdio.h>
25775
25776int
25777main ()
25778{
25779 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25780 ;
25781 return 0;
25782}
25783_ACEOF
25784rm -f conftest.$ac_objext conftest$ac_exeext
25785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25786 (eval $ac_link) 2>conftest.er1
a848cd7e 25787 ac_status=$?
ac1cb8d3
VS
25788 grep -v '^ *+' conftest.er1 >conftest.err
25789 rm -f conftest.er1
25790 cat conftest.err >&5
a848cd7e
SC
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); } &&
6ebeb4c7 25793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25795 (eval $ac_try) 2>&5
25796 ac_status=$?
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); }; } &&
25799 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25801 (eval $ac_try) 2>&5
25802 ac_status=$?
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); }; }; then
25805 echo "*** The test program compiled, but did not run. This usually means"
25806 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25807 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25808 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25809 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25810 echo "*** is required on your system"
25811 echo "***"
25812 echo "*** If you have an old version installed, it is best to remove it, although"
25813 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25814 echo "***"
25815 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25816 echo "*** came with the system with the command"
25817 echo "***"
25818 echo "*** rpm --erase --nodeps gtk gtk-devel"
25819else
25820 echo "$as_me: failed program was:" >&5
25821sed 's/^/| /' conftest.$ac_ext >&5
25822
25823 echo "*** The test program failed to compile or link. See the file config.log for the"
25824 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25825 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25826 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25827fi
ac1cb8d3
VS
25828rm -f conftest.err conftest.$ac_objext \
25829 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25830 CFLAGS="$ac_save_CFLAGS"
25831 LIBS="$ac_save_LIBS"
25832 fi
25833 fi
25834 GTK_CFLAGS=""
25835 GTK_LIBS=""
25836 :
25837 fi
25838
25839
25840 rm -f conf.gtktest
25841
25842
f34ca037 25843 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25844
25845# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25846if test "${with_gtk_prefix+set}" = set; then
25847 withval="$with_gtk_prefix"
25848 gtk_config_prefix="$withval"
25849else
25850 gtk_config_prefix=""
25851fi;
25852
25853# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25854if test "${with_gtk_exec_prefix+set}" = set; then
25855 withval="$with_gtk_exec_prefix"
25856 gtk_config_exec_prefix="$withval"
25857else
25858 gtk_config_exec_prefix=""
25859fi;
25860# Check whether --enable-gtktest or --disable-gtktest was given.
25861if test "${enable_gtktest+set}" = set; then
25862 enableval="$enable_gtktest"
25863
25864else
25865 enable_gtktest=yes
25866fi;
25867
25868 for module in . $GTK_MODULES
25869 do
25870 case "$module" in
25871 gthread)
25872 gtk_config_args="$gtk_config_args gthread"
25873 ;;
25874 esac
25875 done
25876
25877 if test x$gtk_config_exec_prefix != x ; then
25878 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25879 if test x${GTK_CONFIG+set} != xset ; then
25880 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25881 fi
25882 fi
25883 if test x$gtk_config_prefix != x ; then
25884 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25885 if test x${GTK_CONFIG+set} != xset ; then
25886 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25887 fi
25888 fi
25889
25890 # Extract the first word of "gtk-config", so it can be a program name with args.
25891set dummy gtk-config; ac_word=$2
25892echo "$as_me:$LINENO: checking for $ac_word" >&5
25893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25894if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25895 echo $ECHO_N "(cached) $ECHO_C" >&6
25896else
25897 case $GTK_CONFIG in
25898 [\\/]* | ?:[\\/]*)
25899 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25900 ;;
25901 *)
25902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25903for as_dir in $PATH
25904do
25905 IFS=$as_save_IFS
25906 test -z "$as_dir" && as_dir=.
25907 for ac_exec_ext in '' $ac_executable_extensions; do
25908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25909 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25911 break 2
25912 fi
25913done
25914done
25915
25916 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25917 ;;
25918esac
25919fi
25920GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25921
25922if test -n "$GTK_CONFIG"; then
25923 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25924echo "${ECHO_T}$GTK_CONFIG" >&6
25925else
25926 echo "$as_me:$LINENO: result: no" >&5
25927echo "${ECHO_T}no" >&6
25928fi
25929
25930 min_gtk_version=1.2.3
25931 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25932echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25933 no_gtk=""
25934 if test "$GTK_CONFIG" = "no" ; then
25935 no_gtk=yes
25936 else
25937 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25938 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25939 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25940 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25941 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25942 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25943 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25944 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25945 if test "x$enable_gtktest" = "xyes" ; then
25946 ac_save_CFLAGS="$CFLAGS"
25947 ac_save_LIBS="$LIBS"
25948 CFLAGS="$CFLAGS $GTK_CFLAGS"
25949 LIBS="$GTK_LIBS $LIBS"
25950 rm -f conf.gtktest
25951 if test "$cross_compiling" = yes; then
25952 echo $ac_n "cross compiling; assumed OK... $ac_c"
25953else
25954 cat >conftest.$ac_ext <<_ACEOF
25955/* confdefs.h. */
25956_ACEOF
25957cat confdefs.h >>conftest.$ac_ext
25958cat >>conftest.$ac_ext <<_ACEOF
25959/* end confdefs.h. */
25960
25961#include <gtk/gtk.h>
25962#include <stdio.h>
25963#include <stdlib.h>
25964
25965int
25966main ()
25967{
25968 int major, minor, micro;
25969 char *tmp_version;
25970
25971 system ("touch conf.gtktest");
25972
25973 /* HP/UX 9 (%@#!) writes to sscanf strings */
25974 tmp_version = g_strdup("$min_gtk_version");
25975 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25976 printf("%s, bad version string\n", "$min_gtk_version");
25977 exit(1);
25978 }
25979
25980 if ((gtk_major_version != $gtk_config_major_version) ||
25981 (gtk_minor_version != $gtk_config_minor_version) ||
25982 (gtk_micro_version != $gtk_config_micro_version))
25983 {
25984 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25985 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25986 gtk_major_version, gtk_minor_version, gtk_micro_version);
25987 printf ("*** was found! If gtk-config was correct, then it is best\n");
25988 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25989 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25990 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25991 printf("*** required on your system.\n");
25992 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25993 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25994 printf("*** before re-running configure\n");
25995 }
25996#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25997 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25998 (gtk_minor_version != GTK_MINOR_VERSION) ||
25999 (gtk_micro_version != GTK_MICRO_VERSION))
26000 {
26001 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26002 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26003 printf("*** library (version %d.%d.%d)\n",
26004 gtk_major_version, gtk_minor_version, gtk_micro_version);
26005 }
26006#endif /* defined (GTK_MAJOR_VERSION) ... */
26007 else
26008 {
26009 if ((gtk_major_version > major) ||
26010 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26011 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26012 {
26013 return 0;
26014 }
26015 else
26016 {
26017 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26018 gtk_major_version, gtk_minor_version, gtk_micro_version);
26019 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26020 major, minor, micro);
26021 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26022 printf("***\n");
26023 printf("*** If you have already installed a sufficiently new version, this error\n");
26024 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26025 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26026 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26027 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26028 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26029 printf("*** so that the correct libraries are found at run-time))\n");
26030 }
26031 }
26032 return 1;
26033}
26034
26035_ACEOF
26036rm -f conftest$ac_exeext
26037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26038 (eval $ac_link) 2>&5
26039 ac_status=$?
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 :
26048else
26049 echo "$as_me: program exited with status $ac_status" >&5
26050echo "$as_me: failed program was:" >&5
26051sed 's/^/| /' conftest.$ac_ext >&5
26052
26053( exit $ac_status )
26054no_gtk=yes
26055fi
ac1cb8d3 26056rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26057fi
26058 CFLAGS="$ac_save_CFLAGS"
26059 LIBS="$ac_save_LIBS"
26060 fi
26061 fi
26062 if test "x$no_gtk" = x ; then
26063 echo "$as_me:$LINENO: result: yes" >&5
26064echo "${ECHO_T}yes" >&6
26065 wx_cv_lib_gtk=1.2.3
26066 else
26067 echo "$as_me:$LINENO: result: no" >&5
26068echo "${ECHO_T}no" >&6
26069 if test "$GTK_CONFIG" = "no" ; then
26070 echo "*** The gtk-config script installed by GTK could not be found"
26071 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26072 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26073 echo "*** full path to gtk-config."
26074 else
26075 if test -f conf.gtktest ; then
26076 :
26077 else
26078 echo "*** Could not run GTK test program, checking why..."
26079 CFLAGS="$CFLAGS $GTK_CFLAGS"
26080 LIBS="$LIBS $GTK_LIBS"
26081 cat >conftest.$ac_ext <<_ACEOF
26082/* confdefs.h. */
26083_ACEOF
26084cat confdefs.h >>conftest.$ac_ext
26085cat >>conftest.$ac_ext <<_ACEOF
26086/* end confdefs.h. */
26087
26088#include <gtk/gtk.h>
26089#include <stdio.h>
26090
26091int
26092main ()
26093{
26094 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26095 ;
26096 return 0;
26097}
26098_ACEOF
26099rm -f conftest.$ac_objext conftest$ac_exeext
26100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26101 (eval $ac_link) 2>conftest.er1
a848cd7e 26102 ac_status=$?
ac1cb8d3
VS
26103 grep -v '^ *+' conftest.er1 >conftest.err
26104 rm -f conftest.er1
26105 cat conftest.err >&5
a848cd7e
SC
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); } &&
6ebeb4c7 26108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110 (eval $ac_try) 2>&5
26111 ac_status=$?
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); }; } &&
26114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116 (eval $ac_try) 2>&5
26117 ac_status=$?
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); }; }; then
26120 echo "*** The test program compiled, but did not run. This usually means"
26121 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26122 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26123 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26124 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26125 echo "*** is required on your system"
26126 echo "***"
26127 echo "*** If you have an old version installed, it is best to remove it, although"
26128 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26129 echo "***"
26130 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26131 echo "*** came with the system with the command"
26132 echo "***"
26133 echo "*** rpm --erase --nodeps gtk gtk-devel"
26134else
26135 echo "$as_me: failed program was:" >&5
26136sed 's/^/| /' conftest.$ac_ext >&5
26137
26138 echo "*** The test program failed to compile or link. See the file config.log for the"
26139 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26140 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26141 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26142fi
ac1cb8d3
VS
26143rm -f conftest.err conftest.$ac_objext \
26144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26145 CFLAGS="$ac_save_CFLAGS"
26146 LIBS="$ac_save_LIBS"
26147 fi
26148 fi
26149 GTK_CFLAGS=""
26150 GTK_LIBS=""
26151 :
26152 fi
26153
26154
26155 rm -f conf.gtktest
26156
f34ca037 26157 fi
a848cd7e
SC
26158 fi
26159 fi
26160
26161 if test -z "$wx_cv_lib_gtk"; then
26162 wx_cv_lib_gtk=none
26163 else
26164 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26165 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26166 fi
26167
26168
26169fi
26170
26171
26172 if test "$gtk_version_cached" = 1; then
26173 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26174echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26175 fi
26176
26177 case "$wx_cv_lib_gtk" in
26178 2.0) WXGTK20=1
26179 TOOLKIT_VERSION=2
26180 ;;
26181 1.2.7) WXGTK127=1
26182 WXGTK12=1
26183 ;;
26184 1.2.3) WXGTK12=1
26185 ;;
26186 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26187The development files for GTK+ were not found. For GTK+ 2, please
26188ensure that pkg-config is in the path and that gtk+-2.0.pc is
26189installed. For GTK+ 1.2 please check that gtk-config is in the path,
26190and that the version is 1.2.3 or above. Also check that the
26191libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26192--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26193 " >&5
26194echo "$as_me: error:
f597b41c
MW
26195The development files for GTK+ were not found. For GTK+ 2, please
26196ensure that pkg-config is in the path and that gtk+-2.0.pc is
26197installed. For GTK+ 1.2 please check that gtk-config is in the path,
26198and that the version is 1.2.3 or above. Also check that the
26199libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26200--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26201 " >&2;}
26202 { (exit 1); exit 1; }; }
26203 ;;
26204 esac
26205
26206 if test "$WXGTK20" = 1; then
304205f1
VS
26207 save_CFLAGS="$CFLAGS"
26208 save_LIBS="$LIBS"
9d271838 26209 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26210 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26211
d12aef51
VZ
26212 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26213echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26214 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26215/* confdefs.h. */
26216_ACEOF
26217cat confdefs.h >>conftest.$ac_ext
26218cat >>conftest.$ac_ext <<_ACEOF
26219/* end confdefs.h. */
304205f1 26220
d12aef51 26221 #include <gtk/gtk.h>
304205f1 26222
d12aef51
VZ
26223int
26224main ()
26225{
304205f1 26226
d12aef51 26227 void *f = gtk_icon_size_lookup;
abc736fd
MW
26228
26229 ;
26230 return 0;
26231}
26232_ACEOF
26233rm -f conftest.$ac_objext
26234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26235 (eval $ac_compile) 2>conftest.er1
26236 ac_status=$?
26237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } &&
6ebeb4c7 26242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26244 (eval $ac_try) 2>&5
26245 ac_status=$?
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); }; } &&
26248 { ac_try='test -s conftest.$ac_objext'
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26251 ac_status=$?
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; }; then
26254
26255 echo "$as_me:$LINENO: result: no" >&5
26256echo "${ECHO_T}no" >&6
26257
26258else
26259 echo "$as_me: failed program was:" >&5
26260sed 's/^/| /' conftest.$ac_ext >&5
26261
26262
26263 cat >>confdefs.h <<\_ACEOF
26264#define NEED_GTK_ICON_SIZE_LOOKUP 1
26265_ACEOF
26266
26267 echo "$as_me:$LINENO: result: yes" >&5
26268echo "${ECHO_T}yes" >&6
26269
26270fi
26271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26272
9755e73b
VS
26273 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26274echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26275 cat >conftest.$ac_ext <<_ACEOF
26276/* confdefs.h. */
26277_ACEOF
26278cat confdefs.h >>conftest.$ac_ext
26279cat >>conftest.$ac_ext <<_ACEOF
26280/* end confdefs.h. */
26281
26282 #include <gtk/gtk.h>
26283
26284int
26285main ()
26286{
26287
26288 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26289 Not GTK+ 2.4
9755e73b
VS
26290 #endif
26291
26292 ;
26293 return 0;
26294}
26295_ACEOF
26296rm -f conftest.$ac_objext
26297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26298 (eval $ac_compile) 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); } &&
6ebeb4c7 26305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
26306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307 (eval $ac_try) 2>&5
26308 ac_status=$?
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); }; } &&
26311 { ac_try='test -s conftest.$ac_objext'
26312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313 (eval $ac_try) 2>&5
26314 ac_status=$?
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); }; }; then
26317
26318 cat >>confdefs.h <<\_ACEOF
26319#define __WXGTK24__ 1
26320_ACEOF
26321
26322 echo "$as_me:$LINENO: result: yes" >&5
26323echo "${ECHO_T}yes" >&6
26324
26325else
26326 echo "$as_me: failed program was:" >&5
26327sed 's/^/| /' conftest.$ac_ext >&5
26328
26329
26330 echo "$as_me:$LINENO: result: no" >&5
26331echo "${ECHO_T}no" >&6
26332
26333fi
26334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26335
304205f1
VS
26336 CFLAGS="$save_CFLAGS"
26337 LIBS="$save_LIBS"
a848cd7e
SC
26338 else
26339 if test "$wxUSE_UNICODE" = "yes"; then
26340 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26341echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26342 wxUSE_UNICODE=no
26343 fi
26344 fi
26345
26346 if test "$USE_DARWIN" != 1; then
26347
26348for ac_func in poll
26349do
26350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26351echo "$as_me:$LINENO: checking for $ac_func" >&5
26352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26353if eval "test \"\${$as_ac_var+set}\" = set"; then
26354 echo $ECHO_N "(cached) $ECHO_C" >&6
26355else
26356 cat >conftest.$ac_ext <<_ACEOF
26357/* confdefs.h. */
26358_ACEOF
26359cat confdefs.h >>conftest.$ac_ext
26360cat >>conftest.$ac_ext <<_ACEOF
26361/* end confdefs.h. */
ac1cb8d3
VS
26362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26364#define $ac_func innocuous_$ac_func
26365
a848cd7e
SC
26366/* System header to define __stub macros and hopefully few prototypes,
26367 which can conflict with char $ac_func (); below.
26368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26369 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26370
a848cd7e
SC
26371#ifdef __STDC__
26372# include <limits.h>
26373#else
26374# include <assert.h>
26375#endif
ac1cb8d3
VS
26376
26377#undef $ac_func
26378
a848cd7e
SC
26379/* Override any gcc2 internal prototype to avoid an error. */
26380#ifdef __cplusplus
26381extern "C"
26382{
26383#endif
26384/* We use char because int might match the return type of a gcc2
26385 builtin and then its argument prototype would still apply. */
26386char $ac_func ();
26387/* The GNU C library defines this for functions which it implements
26388 to always fail with ENOSYS. Some functions are actually named
26389 something starting with __ and the normal name is an alias. */
26390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26391choke me
26392#else
26393char (*f) () = $ac_func;
26394#endif
26395#ifdef __cplusplus
26396}
26397#endif
26398
26399int
26400main ()
26401{
26402return f != $ac_func;
26403 ;
26404 return 0;
26405}
26406_ACEOF
26407rm -f conftest.$ac_objext conftest$ac_exeext
26408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26409 (eval $ac_link) 2>conftest.er1
a848cd7e 26410 ac_status=$?
ac1cb8d3
VS
26411 grep -v '^ *+' conftest.er1 >conftest.err
26412 rm -f conftest.er1
26413 cat conftest.err >&5
a848cd7e
SC
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); } &&
6ebeb4c7 26416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26419 ac_status=$?
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; } &&
26422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424 (eval $ac_try) 2>&5
26425 ac_status=$?
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); }; }; then
26428 eval "$as_ac_var=yes"
26429else
26430 echo "$as_me: failed program was:" >&5
26431sed 's/^/| /' conftest.$ac_ext >&5
26432
26433eval "$as_ac_var=no"
26434fi
ac1cb8d3
VS
26435rm -f conftest.err conftest.$ac_objext \
26436 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26437fi
26438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26439echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26440if test `eval echo '${'$as_ac_var'}'` = yes; then
26441 cat >>confdefs.h <<_ACEOF
26442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26443_ACEOF
26444
26445fi
26446done
26447
26448 fi
26449
26450 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
26451 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
26452
26453 AFMINSTALL=afminstall
26454 TOOLKIT=GTK
26455 GUIDIST=GTK_DIST
26456
26457 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
26458echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
26459if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
26460 echo $ECHO_N "(cached) $ECHO_C" >&6
26461else
26462 ac_check_lib_save_LIBS=$LIBS
26463LIBS="-lgdk $LIBS"
26464cat >conftest.$ac_ext <<_ACEOF
26465/* confdefs.h. */
26466_ACEOF
26467cat confdefs.h >>conftest.$ac_ext
26468cat >>conftest.$ac_ext <<_ACEOF
26469/* end confdefs.h. */
26470
26471/* Override any gcc2 internal prototype to avoid an error. */
26472#ifdef __cplusplus
26473extern "C"
26474#endif
26475/* We use char because int might match the return type of a gcc2
26476 builtin and then its argument prototype would still apply. */
26477char gdk_im_open ();
26478int
26479main ()
26480{
26481gdk_im_open ();
26482 ;
26483 return 0;
26484}
26485_ACEOF
26486rm -f conftest.$ac_objext conftest$ac_exeext
26487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26488 (eval $ac_link) 2>conftest.er1
a848cd7e 26489 ac_status=$?
ac1cb8d3
VS
26490 grep -v '^ *+' conftest.er1 >conftest.err
26491 rm -f conftest.er1
26492 cat conftest.err >&5
a848cd7e
SC
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } &&
6ebeb4c7 26495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497 (eval $ac_try) 2>&5
26498 ac_status=$?
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); }; } &&
26501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503 (eval $ac_try) 2>&5
26504 ac_status=$?
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); }; }; then
26507 ac_cv_lib_gdk_gdk_im_open=yes
26508else
26509 echo "$as_me: failed program was:" >&5
26510sed 's/^/| /' conftest.$ac_ext >&5
26511
26512ac_cv_lib_gdk_gdk_im_open=no
26513fi
ac1cb8d3
VS
26514rm -f conftest.err conftest.$ac_objext \
26515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26516LIBS=$ac_check_lib_save_LIBS
26517fi
26518echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26519echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26520if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26521 cat >>confdefs.h <<\_ACEOF
26522#define HAVE_XIM 1
26523_ACEOF
26524
26525fi
26526
26527
26528
26529 if test "$wxUSE_GPE" = "yes"; then
26530 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26531echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26532
0ad5d837
VZ
26533 ac_find_libraries=
26534 for ac_dir in $SEARCH_LIB;
a848cd7e 26535 do
3eca31dc 26536 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26537 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26538 ac_find_libraries=$ac_dir
26539 break 2
26540 fi
26541 done
26542 done
26543
26544 if test "$ac_find_libraries" != "" ; then
26545
0ad5d837 26546 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
26547 ac_path_to_link=""
26548 else
0ad5d837
VZ
26549 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26550 result=$?
26551 if test $result = 0; then
26552 ac_path_to_link=""
26553 else
26554 ac_path_to_link=" -L$ac_find_libraries"
26555 fi
a848cd7e
SC
26556 fi
26557
26558 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26559 WXGPE=1
0ad5d837
VZ
26560 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
26561echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
26562 else
26563 echo "$as_me:$LINENO: result: not found" >&5
26564echo "${ECHO_T}not found" >&6
26565 fi
26566
26567 fi
26568 fi
26569
26570 if test "$wxUSE_MGL" = 1; then
26571 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26572echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26573 if test "x$MGL_ROOT" = x ; then
26574 echo "$as_me:$LINENO: result: not found" >&5
26575echo "${ECHO_T}not found" >&6
26576 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26577echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26578 { (exit 1); exit 1; }; }
26579 else
26580 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26581echo "${ECHO_T}$MGL_ROOT" >&6
26582 fi
26583
26584 echo "$as_me:$LINENO: checking for libmgl location" >&5
26585echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26586 case "${host}" in
26587 *-*-linux* )
26588 if test "x$wxUSE_SHARED" = xyes ; then
26589 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26590 else
26591 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26592 fi
26593 ;;
26594 *-pc-msdosdjgpp )
26595 mgl_os_candidates="dos32/dj2"
26596 ;;
26597 *)
26598 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26599echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26600 { (exit 1); exit 1; }; }
26601 esac
26602
26603 mgl_lib_type=""
26604 mgl_os=""
26605
26606 for mgl_os_i in $mgl_os_candidates ; do
26607 if test "x$mgl_os" = x ; then
26608 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26609 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26610 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26611 mgl_lib_type=debug
26612 mgl_os=$mgl_os_i
26613 fi
26614 fi
26615 if test "x$mgl_lib_type" = x ; then
26616 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26617 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26618 mgl_lib_type=release
26619 mgl_os=$mgl_os_i
26620 fi
26621 fi
26622 fi
26623 done
26624
26625 if test "x$mgl_os" = x ; then
26626 echo "$as_me:$LINENO: result: not found" >&5
26627echo "${ECHO_T}not found" >&6
26628 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26629echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26630 { (exit 1); exit 1; }; }
26631 fi
26632 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26633echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26634
26635 wxUSE_UNIVERSAL="yes"
26636
26637 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26638 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26639
26640 AFMINSTALL=afminstall
26641 TOOLKIT=MGL
26642 GUIDIST=MGL_DIST
26643 fi
26644
26645 if test "$wxUSE_MICROWIN" = 1; then
26646 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26647echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26648 if test "x$MICROWINDOWS" = x ; then
26649 echo "$as_me:$LINENO: result: not found" >&5
26650echo "${ECHO_T}not found" >&6
26651 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26652echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26653 { (exit 1); exit 1; }; }
26654 else
26655 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26656echo "${ECHO_T}$MICROWINDOWS" >&6
26657 fi
26658
26659 if test -f $MICROWINDOWS/lib/libmwin.a; then
26660 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26661echo "${ECHO_T}MicroWindows' libraries found." >&6
26662 else
26663 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26664echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26665 { (exit 1); exit 1; }; }
26666 fi
26667
26668 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26669 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26670
26671 wxUSE_UNIVERSAL="yes"
26672
26673 AFMINSTALL=afminstall
26674 TOOLKIT=MICROWIN
26675 GUIDIST=MICROWIN_DIST
26676
26677 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26678 fi
26679
74b84332 26680 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26681
26682if test "x$ac_path_x_has_been_run" != xyes; then
26683 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26684echo $ECHO_N "checking for X... $ECHO_C" >&6
26685
6ebeb4c7 26686ac_path_x_has_been_run=yes
a848cd7e
SC
26687
26688# Check whether --with-x or --without-x was given.
26689if test "${with_x+set}" = set; then
26690 withval="$with_x"
26691
26692fi;
26693# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26694if test "x$with_x" = xno; then
26695 # The user explicitly disabled X.
26696 have_x=disabled
26697else
26698 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26699 # Both variables are already set.
26700 have_x=yes
26701 else
26702 if test "${ac_cv_have_x+set}" = set; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26704else
26705 # One or both of the vars are not set, and there is no cached value.
26706ac_x_includes=no ac_x_libraries=no
26707rm -fr conftest.dir
26708if mkdir conftest.dir; then
26709 cd conftest.dir
26710 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26711 cat >Imakefile <<'_ACEOF'
26712acfindx:
26713 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26714_ACEOF
26715 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26717 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26718 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26719 for ac_extension in a so sl; do
26720 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26721 test -f $ac_im_libdir/libX11.$ac_extension; then
26722 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26723 fi
26724 done
26725 # Screen out bogus values from the imake configuration. They are
26726 # bogus both because they are the default anyway, and because
26727 # using them would break gcc on systems where it needs fixed includes.
26728 case $ac_im_incroot in
26729 /usr/include) ;;
26730 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26731 esac
26732 case $ac_im_usrlibdir in
26733 /usr/lib | /lib) ;;
26734 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26735 esac
26736 fi
26737 cd ..
26738 rm -fr conftest.dir
26739fi
26740
26741# Standard set of common directories for X headers.
26742# Check X11 before X11Rn because it is often a symlink to the current release.
26743ac_x_header_dirs='
26744/usr/X11/include
26745/usr/X11R6/include
26746/usr/X11R5/include
26747/usr/X11R4/include
26748
26749/usr/include/X11
26750/usr/include/X11R6
26751/usr/include/X11R5
26752/usr/include/X11R4
26753
26754/usr/local/X11/include
26755/usr/local/X11R6/include
26756/usr/local/X11R5/include
26757/usr/local/X11R4/include
26758
26759/usr/local/include/X11
26760/usr/local/include/X11R6
26761/usr/local/include/X11R5
26762/usr/local/include/X11R4
26763
26764/usr/X386/include
26765/usr/x386/include
26766/usr/XFree86/include/X11
26767
26768/usr/include
26769/usr/local/include
26770/usr/unsupported/include
26771/usr/athena/include
26772/usr/local/x11r5/include
26773/usr/lpp/Xamples/include
26774
26775/usr/openwin/include
26776/usr/openwin/share/include'
26777
26778if test "$ac_x_includes" = no; then
6ebeb4c7 26779 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26780 # First, try using that file with no special directory specified.
26781 cat >conftest.$ac_ext <<_ACEOF
26782/* confdefs.h. */
26783_ACEOF
26784cat confdefs.h >>conftest.$ac_ext
26785cat >>conftest.$ac_ext <<_ACEOF
26786/* end confdefs.h. */
26787#include <X11/Intrinsic.h>
26788_ACEOF
26789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26791 ac_status=$?
26792 grep -v '^ *+' conftest.er1 >conftest.err
26793 rm -f conftest.er1
26794 cat conftest.err >&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } >/dev/null; then
26797 if test -s conftest.err; then
26798 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26800 else
26801 ac_cpp_err=
26802 fi
26803else
26804 ac_cpp_err=yes
26805fi
26806if test -z "$ac_cpp_err"; then
26807 # We can compile using X headers with no special include directory.
26808ac_x_includes=
26809else
26810 echo "$as_me: failed program was:" >&5
26811sed 's/^/| /' conftest.$ac_ext >&5
26812
26813 for ac_dir in $ac_x_header_dirs; do
26814 if test -r "$ac_dir/X11/Intrinsic.h"; then
26815 ac_x_includes=$ac_dir
26816 break
26817 fi
26818done
26819fi
26820rm -f conftest.err conftest.$ac_ext
26821fi # $ac_x_includes = no
26822
26823if test "$ac_x_libraries" = no; then
26824 # Check for the libraries.
26825 # See if we find them without any special options.
26826 # Don't add to $LIBS permanently.
26827 ac_save_LIBS=$LIBS
26828 LIBS="-lXt $LIBS"
26829 cat >conftest.$ac_ext <<_ACEOF
26830/* confdefs.h. */
26831_ACEOF
26832cat confdefs.h >>conftest.$ac_ext
26833cat >>conftest.$ac_ext <<_ACEOF
26834/* end confdefs.h. */
26835#include <X11/Intrinsic.h>
26836int
26837main ()
26838{
26839XtMalloc (0)
26840 ;
26841 return 0;
26842}
26843_ACEOF
26844rm -f conftest.$ac_objext conftest$ac_exeext
26845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26846 (eval $ac_link) 2>conftest.er1
a848cd7e 26847 ac_status=$?
ac1cb8d3
VS
26848 grep -v '^ *+' conftest.er1 >conftest.err
26849 rm -f conftest.er1
26850 cat conftest.err >&5
a848cd7e
SC
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); } &&
6ebeb4c7 26853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26856 ac_status=$?
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; } &&
26859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861 (eval $ac_try) 2>&5
26862 ac_status=$?
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); }; }; then
26865 LIBS=$ac_save_LIBS
26866# We can link X programs with no special library path.
26867ac_x_libraries=
26868else
26869 echo "$as_me: failed program was:" >&5
26870sed 's/^/| /' conftest.$ac_ext >&5
26871
26872LIBS=$ac_save_LIBS
26873for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26874do
26875 # Don't even attempt the hair of trying to link an X program!
26876 for ac_extension in a so sl; do
26877 if test -r $ac_dir/libXt.$ac_extension; then
26878 ac_x_libraries=$ac_dir
26879 break 2
26880 fi
26881 done
26882done
26883fi
ac1cb8d3
VS
26884rm -f conftest.err conftest.$ac_objext \
26885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26886fi # $ac_x_libraries = no
26887
26888if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26889 # Didn't find X anywhere. Cache the known absence of X.
26890 ac_cv_have_x="have_x=no"
26891else
26892 # Record where we found X for the cache.
26893 ac_cv_have_x="have_x=yes \
ac1cb8d3 26894 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26895fi
26896fi
26897
26898 fi
26899 eval "$ac_cv_have_x"
26900fi # $with_x != no
26901
26902if test "$have_x" != yes; then
26903 echo "$as_me:$LINENO: result: $have_x" >&5
26904echo "${ECHO_T}$have_x" >&6
26905 no_x=yes
26906else
26907 # If each of the values was on the command line, it overrides each guess.
26908 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26909 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26910 # Update the cache value to reflect the command line values.
26911 ac_cv_have_x="have_x=yes \
26912 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26913 # It might be that x_includes is empty (headers are found in the
26914 # standard search path. Then output the corresponding message
26915 ac_out_x_includes=$x_includes
26916 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26917 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26918echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26919fi
26920
6ebeb4c7 26921fi
a848cd7e
SC
26922if test "$no_x" = yes; then
26923 # Not all programs may use this symbol, but it does not hurt to define it.
26924
26925cat >>confdefs.h <<\_ACEOF
26926#define X_DISPLAY_MISSING 1
26927_ACEOF
26928
26929 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26930else
26931 if test -n "$x_includes"; then
26932 X_CFLAGS="$X_CFLAGS -I$x_includes"
26933 fi
26934
26935 # It would also be nice to do this for all -L options, not just this one.
26936 if test -n "$x_libraries"; then
26937 X_LIBS="$X_LIBS -L$x_libraries"
26938 # For Solaris; some versions of Sun CC require a space after -R and
26939 # others require no space. Words are not sufficient . . . .
26940 case `(uname -sr) 2>/dev/null` in
26941 "SunOS 5"*)
26942 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26943echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26944 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26945 cat >conftest.$ac_ext <<_ACEOF
26946/* confdefs.h. */
26947_ACEOF
26948cat confdefs.h >>conftest.$ac_ext
26949cat >>conftest.$ac_ext <<_ACEOF
26950/* end confdefs.h. */
26951
26952int
26953main ()
26954{
26955
26956 ;
26957 return 0;
26958}
26959_ACEOF
26960rm -f conftest.$ac_objext conftest$ac_exeext
26961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26962 (eval $ac_link) 2>conftest.er1
a848cd7e 26963 ac_status=$?
ac1cb8d3
VS
26964 grep -v '^ *+' conftest.er1 >conftest.err
26965 rm -f conftest.er1
26966 cat conftest.err >&5
a848cd7e
SC
26967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 (exit $ac_status); } &&
6ebeb4c7 26969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26971 (eval $ac_try) 2>&5
26972 ac_status=$?
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); }; } &&
26975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26978 ac_status=$?
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); }; }; then
26981 ac_R_nospace=yes
26982else
26983 echo "$as_me: failed program was:" >&5
26984sed 's/^/| /' conftest.$ac_ext >&5
26985
26986ac_R_nospace=no
26987fi
ac1cb8d3
VS
26988rm -f conftest.err conftest.$ac_objext \
26989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26990 if test $ac_R_nospace = yes; then
26991 echo "$as_me:$LINENO: result: no" >&5
26992echo "${ECHO_T}no" >&6
26993 X_LIBS="$X_LIBS -R$x_libraries"
26994 else
26995 LIBS="$ac_xsave_LIBS -R $x_libraries"
26996 cat >conftest.$ac_ext <<_ACEOF
26997/* confdefs.h. */
26998_ACEOF
26999cat confdefs.h >>conftest.$ac_ext
27000cat >>conftest.$ac_ext <<_ACEOF
27001/* end confdefs.h. */
27002
27003int
27004main ()
27005{
27006
27007 ;
27008 return 0;
27009}
27010_ACEOF
27011rm -f conftest.$ac_objext conftest$ac_exeext
27012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27013 (eval $ac_link) 2>conftest.er1
a848cd7e 27014 ac_status=$?
ac1cb8d3
VS
27015 grep -v '^ *+' conftest.er1 >conftest.err
27016 rm -f conftest.er1
27017 cat conftest.err >&5
a848cd7e
SC
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); } &&
6ebeb4c7 27020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022 (eval $ac_try) 2>&5
27023 ac_status=$?
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); }; } &&
27026 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; }; then
27032 ac_R_space=yes
27033else
27034 echo "$as_me: failed program was:" >&5
27035sed 's/^/| /' conftest.$ac_ext >&5
27036
27037ac_R_space=no
27038fi
ac1cb8d3
VS
27039rm -f conftest.err conftest.$ac_objext \
27040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27041 if test $ac_R_space = yes; then
27042 echo "$as_me:$LINENO: result: yes" >&5
27043echo "${ECHO_T}yes" >&6
27044 X_LIBS="$X_LIBS -R $x_libraries"
27045 else
27046 echo "$as_me:$LINENO: result: neither works" >&5
27047echo "${ECHO_T}neither works" >&6
27048 fi
27049 fi
27050 LIBS=$ac_xsave_LIBS
27051 esac
27052 fi
27053
27054 # Check for system-dependent libraries X programs must link with.
27055 # Do this before checking for the system-independent R6 libraries
27056 # (-lICE), since we may need -lsocket or whatever for X linking.
27057
27058 if test "$ISC" = yes; then
27059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27060 else
27061 # Martyn Johnson says this is needed for Ultrix, if the X
27062 # libraries were built with DECnet support. And Karl Berry says
27063 # the Alpha needs dnet_stub (dnet does not exist).
27064 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27065 cat >conftest.$ac_ext <<_ACEOF
27066/* confdefs.h. */
27067_ACEOF
27068cat confdefs.h >>conftest.$ac_ext
27069cat >>conftest.$ac_ext <<_ACEOF
27070/* end confdefs.h. */
27071
27072/* Override any gcc2 internal prototype to avoid an error. */
27073#ifdef __cplusplus
27074extern "C"
27075#endif
27076/* We use char because int might match the return type of a gcc2
27077 builtin and then its argument prototype would still apply. */
27078char XOpenDisplay ();
27079int
27080main ()
27081{
27082XOpenDisplay ();
27083 ;
27084 return 0;
27085}
27086_ACEOF
27087rm -f conftest.$ac_objext conftest$ac_exeext
27088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27089 (eval $ac_link) 2>conftest.er1
a848cd7e 27090 ac_status=$?
ac1cb8d3
VS
27091 grep -v '^ *+' conftest.er1 >conftest.err
27092 rm -f conftest.er1
27093 cat conftest.err >&5
a848cd7e
SC
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } &&
6ebeb4c7 27096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27098 (eval $ac_try) 2>&5
27099 ac_status=$?
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); }; } &&
27102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; }; then
27108 :
27109else
27110 echo "$as_me: failed program was:" >&5
27111sed 's/^/| /' conftest.$ac_ext >&5
27112
27113echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27114echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27115if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27116 echo $ECHO_N "(cached) $ECHO_C" >&6
27117else
27118 ac_check_lib_save_LIBS=$LIBS
27119LIBS="-ldnet $LIBS"
27120cat >conftest.$ac_ext <<_ACEOF
27121/* confdefs.h. */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h. */
27126
27127/* Override any gcc2 internal prototype to avoid an error. */
27128#ifdef __cplusplus
27129extern "C"
27130#endif
27131/* We use char because int might match the return type of a gcc2
27132 builtin and then its argument prototype would still apply. */
27133char dnet_ntoa ();
27134int
27135main ()
27136{
27137dnet_ntoa ();
27138 ;
27139 return 0;
27140}
27141_ACEOF
27142rm -f conftest.$ac_objext conftest$ac_exeext
27143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27144 (eval $ac_link) 2>conftest.er1
a848cd7e 27145 ac_status=$?
ac1cb8d3
VS
27146 grep -v '^ *+' conftest.er1 >conftest.err
27147 rm -f conftest.er1
27148 cat conftest.err >&5
a848cd7e
SC
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); } &&
6ebeb4c7 27151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27153 (eval $ac_try) 2>&5
27154 ac_status=$?
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); }; } &&
27157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27159 (eval $ac_try) 2>&5
27160 ac_status=$?
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); }; }; then
27163 ac_cv_lib_dnet_dnet_ntoa=yes
27164else
27165 echo "$as_me: failed program was:" >&5
27166sed 's/^/| /' conftest.$ac_ext >&5
27167
27168ac_cv_lib_dnet_dnet_ntoa=no
27169fi
ac1cb8d3
VS
27170rm -f conftest.err conftest.$ac_objext \
27171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27172LIBS=$ac_check_lib_save_LIBS
27173fi
27174echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27175echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27176if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27177 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27178fi
27179
27180 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27181 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27182echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27183if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27184 echo $ECHO_N "(cached) $ECHO_C" >&6
27185else
27186 ac_check_lib_save_LIBS=$LIBS
27187LIBS="-ldnet_stub $LIBS"
27188cat >conftest.$ac_ext <<_ACEOF
27189/* confdefs.h. */
27190_ACEOF
27191cat confdefs.h >>conftest.$ac_ext
27192cat >>conftest.$ac_ext <<_ACEOF
27193/* end confdefs.h. */
27194
27195/* Override any gcc2 internal prototype to avoid an error. */
27196#ifdef __cplusplus
27197extern "C"
27198#endif
27199/* We use char because int might match the return type of a gcc2
27200 builtin and then its argument prototype would still apply. */
27201char dnet_ntoa ();
27202int
27203main ()
27204{
27205dnet_ntoa ();
27206 ;
27207 return 0;
27208}
27209_ACEOF
27210rm -f conftest.$ac_objext conftest$ac_exeext
27211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27212 (eval $ac_link) 2>conftest.er1
a848cd7e 27213 ac_status=$?
ac1cb8d3
VS
27214 grep -v '^ *+' conftest.er1 >conftest.err
27215 rm -f conftest.er1
27216 cat conftest.err >&5
a848cd7e
SC
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); } &&
6ebeb4c7 27219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; } &&
27225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; }; then
27231 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27232else
27233 echo "$as_me: failed program was:" >&5
27234sed 's/^/| /' conftest.$ac_ext >&5
27235
27236ac_cv_lib_dnet_stub_dnet_ntoa=no
27237fi
ac1cb8d3
VS
27238rm -f conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27240LIBS=$ac_check_lib_save_LIBS
27241fi
27242echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27243echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27244if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27245 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27246fi
27247
27248 fi
27249fi
ac1cb8d3
VS
27250rm -f conftest.err conftest.$ac_objext \
27251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27252 LIBS="$ac_xsave_LIBS"
27253
27254 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27255 # to get the SysV transport functions.
27256 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27257 # needs -lnsl.
27258 # The nsl library prevents programs from opening the X display
27259 # on Irix 5.2, according to T.E. Dickey.
27260 # The functions gethostbyname, getservbyname, and inet_addr are
27261 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27262 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27263echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27264if test "${ac_cv_func_gethostbyname+set}" = set; then
27265 echo $ECHO_N "(cached) $ECHO_C" >&6
27266else
27267 cat >conftest.$ac_ext <<_ACEOF
27268/* confdefs.h. */
27269_ACEOF
27270cat confdefs.h >>conftest.$ac_ext
27271cat >>conftest.$ac_ext <<_ACEOF
27272/* end confdefs.h. */
ac1cb8d3
VS
27273/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27275#define gethostbyname innocuous_gethostbyname
27276
a848cd7e
SC
27277/* System header to define __stub macros and hopefully few prototypes,
27278 which can conflict with char gethostbyname (); below.
27279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27280 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27281
a848cd7e
SC
27282#ifdef __STDC__
27283# include <limits.h>
27284#else
27285# include <assert.h>
27286#endif
ac1cb8d3
VS
27287
27288#undef gethostbyname
27289
a848cd7e
SC
27290/* Override any gcc2 internal prototype to avoid an error. */
27291#ifdef __cplusplus
27292extern "C"
27293{
27294#endif
27295/* We use char because int might match the return type of a gcc2
27296 builtin and then its argument prototype would still apply. */
27297char gethostbyname ();
27298/* The GNU C library defines this for functions which it implements
27299 to always fail with ENOSYS. Some functions are actually named
27300 something starting with __ and the normal name is an alias. */
27301#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27302choke me
27303#else
27304char (*f) () = gethostbyname;
27305#endif
27306#ifdef __cplusplus
27307}
27308#endif
27309
27310int
27311main ()
27312{
27313return f != gethostbyname;
27314 ;
27315 return 0;
27316}
27317_ACEOF
27318rm -f conftest.$ac_objext conftest$ac_exeext
27319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27320 (eval $ac_link) 2>conftest.er1
a848cd7e 27321 ac_status=$?
ac1cb8d3
VS
27322 grep -v '^ *+' conftest.er1 >conftest.err
27323 rm -f conftest.er1
27324 cat conftest.err >&5
a848cd7e
SC
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); } &&
6ebeb4c7 27327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329 (eval $ac_try) 2>&5
27330 ac_status=$?
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; } &&
27333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27336 ac_status=$?
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
27339 ac_cv_func_gethostbyname=yes
27340else
27341 echo "$as_me: failed program was:" >&5
27342sed 's/^/| /' conftest.$ac_ext >&5
27343
27344ac_cv_func_gethostbyname=no
27345fi
ac1cb8d3
VS
27346rm -f conftest.err conftest.$ac_objext \
27347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27348fi
27349echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27350echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27351
27352 if test $ac_cv_func_gethostbyname = no; then
27353 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27354echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27355if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27356 echo $ECHO_N "(cached) $ECHO_C" >&6
27357else
27358 ac_check_lib_save_LIBS=$LIBS
27359LIBS="-lnsl $LIBS"
27360cat >conftest.$ac_ext <<_ACEOF
27361/* confdefs.h. */
27362_ACEOF
27363cat confdefs.h >>conftest.$ac_ext
27364cat >>conftest.$ac_ext <<_ACEOF
27365/* end confdefs.h. */
27366
27367/* Override any gcc2 internal prototype to avoid an error. */
27368#ifdef __cplusplus
27369extern "C"
27370#endif
27371/* We use char because int might match the return type of a gcc2
27372 builtin and then its argument prototype would still apply. */
27373char gethostbyname ();
27374int
27375main ()
27376{
27377gethostbyname ();
27378 ;
27379 return 0;
27380}
27381_ACEOF
27382rm -f conftest.$ac_objext conftest$ac_exeext
27383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
27384 (eval $ac_link) 2>conftest.er1
27385 ac_status=$?
27386 grep -v '^ *+' conftest.er1 >conftest.err
27387 rm -f conftest.er1
27388 cat conftest.err >&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); } &&
6ebeb4c7 27391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27394 ac_status=$?
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest$ac_exeext'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27403 ac_cv_lib_nsl_gethostbyname=yes
27404else
27405 echo "$as_me: failed program was:" >&5
27406sed 's/^/| /' conftest.$ac_ext >&5
27407
27408ac_cv_lib_nsl_gethostbyname=no
27409fi
27410rm -f conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
27412LIBS=$ac_check_lib_save_LIBS
27413fi
27414echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27415echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27416if test $ac_cv_lib_nsl_gethostbyname = yes; then
27417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27418fi
27419
27420 if test $ac_cv_lib_nsl_gethostbyname = no; then
27421 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27422echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27423if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27425else
27426 ac_check_lib_save_LIBS=$LIBS
27427LIBS="-lbsd $LIBS"
27428cat >conftest.$ac_ext <<_ACEOF
27429/* confdefs.h. */
27430_ACEOF
27431cat confdefs.h >>conftest.$ac_ext
27432cat >>conftest.$ac_ext <<_ACEOF
27433/* end confdefs.h. */
27434
27435/* Override any gcc2 internal prototype to avoid an error. */
27436#ifdef __cplusplus
27437extern "C"
27438#endif
27439/* We use char because int might match the return type of a gcc2
27440 builtin and then its argument prototype would still apply. */
27441char gethostbyname ();
27442int
27443main ()
27444{
27445gethostbyname ();
27446 ;
27447 return 0;
27448}
27449_ACEOF
27450rm -f conftest.$ac_objext conftest$ac_exeext
27451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27452 (eval $ac_link) 2>conftest.er1
a848cd7e 27453 ac_status=$?
ac1cb8d3
VS
27454 grep -v '^ *+' conftest.er1 >conftest.err
27455 rm -f conftest.er1
27456 cat conftest.err >&5
a848cd7e
SC
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
6ebeb4c7 27459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461 (eval $ac_try) 2>&5
27462 ac_status=$?
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
27464 (exit $ac_status); }; } &&
27465 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27468 ac_status=$?
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; }; then
27471 ac_cv_lib_bsd_gethostbyname=yes
27472else
27473 echo "$as_me: failed program was:" >&5
27474sed 's/^/| /' conftest.$ac_ext >&5
27475
27476ac_cv_lib_bsd_gethostbyname=no
27477fi
ac1cb8d3
VS
27478rm -f conftest.err conftest.$ac_objext \
27479 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27480LIBS=$ac_check_lib_save_LIBS
27481fi
27482echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27483echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27484if test $ac_cv_lib_bsd_gethostbyname = yes; then
27485 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27486fi
27487
27488 fi
27489 fi
27490
27491 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27492 # socket/setsockopt and other routines are undefined under SCO ODT
27493 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27494 # on later versions), says Simon Leinen: it contains gethostby*
27495 # variants that don't use the name server (or something). -lsocket
27496 # must be given before -lnsl if both are needed. We assume that
27497 # if connect needs -lnsl, so does gethostbyname.
27498 echo "$as_me:$LINENO: checking for connect" >&5
27499echo $ECHO_N "checking for connect... $ECHO_C" >&6
27500if test "${ac_cv_func_connect+set}" = set; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27502else
27503 cat >conftest.$ac_ext <<_ACEOF
27504/* confdefs.h. */
27505_ACEOF
27506cat confdefs.h >>conftest.$ac_ext
27507cat >>conftest.$ac_ext <<_ACEOF
27508/* end confdefs.h. */
ac1cb8d3
VS
27509/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27511#define connect innocuous_connect
27512
a848cd7e
SC
27513/* System header to define __stub macros and hopefully few prototypes,
27514 which can conflict with char connect (); below.
27515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27516 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27517
a848cd7e
SC
27518#ifdef __STDC__
27519# include <limits.h>
27520#else
27521# include <assert.h>
27522#endif
ac1cb8d3
VS
27523
27524#undef connect
27525
a848cd7e
SC
27526/* Override any gcc2 internal prototype to avoid an error. */
27527#ifdef __cplusplus
27528extern "C"
27529{
27530#endif
27531/* We use char because int might match the return type of a gcc2
27532 builtin and then its argument prototype would still apply. */
27533char connect ();
27534/* The GNU C library defines this for functions which it implements
27535 to always fail with ENOSYS. Some functions are actually named
27536 something starting with __ and the normal name is an alias. */
27537#if defined (__stub_connect) || defined (__stub___connect)
27538choke me
27539#else
27540char (*f) () = connect;
27541#endif
27542#ifdef __cplusplus
27543}
27544#endif
27545
27546int
27547main ()
27548{
27549return f != connect;
27550 ;
27551 return 0;
27552}
27553_ACEOF
27554rm -f conftest.$ac_objext conftest$ac_exeext
27555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27556 (eval $ac_link) 2>conftest.er1
a848cd7e 27557 ac_status=$?
ac1cb8d3
VS
27558 grep -v '^ *+' conftest.er1 >conftest.err
27559 rm -f conftest.er1
27560 cat conftest.err >&5
a848cd7e
SC
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } &&
6ebeb4c7 27563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565 (eval $ac_try) 2>&5
27566 ac_status=$?
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; } &&
27569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; }; then
27575 ac_cv_func_connect=yes
27576else
27577 echo "$as_me: failed program was:" >&5
27578sed 's/^/| /' conftest.$ac_ext >&5
27579
27580ac_cv_func_connect=no
27581fi
ac1cb8d3
VS
27582rm -f conftest.err conftest.$ac_objext \
27583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27584fi
27585echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27586echo "${ECHO_T}$ac_cv_func_connect" >&6
27587
27588 if test $ac_cv_func_connect = no; then
27589 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27590echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27591if test "${ac_cv_lib_socket_connect+set}" = set; then
27592 echo $ECHO_N "(cached) $ECHO_C" >&6
27593else
27594 ac_check_lib_save_LIBS=$LIBS
27595LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27596cat >conftest.$ac_ext <<_ACEOF
27597/* confdefs.h. */
27598_ACEOF
27599cat confdefs.h >>conftest.$ac_ext
27600cat >>conftest.$ac_ext <<_ACEOF
27601/* end confdefs.h. */
27602
27603/* Override any gcc2 internal prototype to avoid an error. */
27604#ifdef __cplusplus
27605extern "C"
27606#endif
27607/* We use char because int might match the return type of a gcc2
27608 builtin and then its argument prototype would still apply. */
27609char connect ();
27610int
27611main ()
27612{
27613connect ();
27614 ;
27615 return 0;
27616}
27617_ACEOF
27618rm -f conftest.$ac_objext conftest$ac_exeext
27619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27620 (eval $ac_link) 2>conftest.er1
a848cd7e 27621 ac_status=$?
ac1cb8d3
VS
27622 grep -v '^ *+' conftest.er1 >conftest.err
27623 rm -f conftest.er1
27624 cat conftest.err >&5
a848cd7e
SC
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } &&
6ebeb4c7 27627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629 (eval $ac_try) 2>&5
27630 ac_status=$?
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); }; } &&
27633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27636 ac_status=$?
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; }; then
27639 ac_cv_lib_socket_connect=yes
27640else
27641 echo "$as_me: failed program was:" >&5
27642sed 's/^/| /' conftest.$ac_ext >&5
27643
27644ac_cv_lib_socket_connect=no
27645fi
ac1cb8d3
VS
27646rm -f conftest.err conftest.$ac_objext \
27647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27648LIBS=$ac_check_lib_save_LIBS
27649fi
27650echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27651echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27652if test $ac_cv_lib_socket_connect = yes; then
27653 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27654fi
27655
27656 fi
27657
27658 # Guillermo Gomez says -lposix is necessary on A/UX.
27659 echo "$as_me:$LINENO: checking for remove" >&5
27660echo $ECHO_N "checking for remove... $ECHO_C" >&6
27661if test "${ac_cv_func_remove+set}" = set; then
27662 echo $ECHO_N "(cached) $ECHO_C" >&6
27663else
27664 cat >conftest.$ac_ext <<_ACEOF
27665/* confdefs.h. */
27666_ACEOF
27667cat confdefs.h >>conftest.$ac_ext
27668cat >>conftest.$ac_ext <<_ACEOF
27669/* end confdefs.h. */
ac1cb8d3
VS
27670/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27672#define remove innocuous_remove
27673
a848cd7e
SC
27674/* System header to define __stub macros and hopefully few prototypes,
27675 which can conflict with char remove (); below.
27676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27677 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27678
a848cd7e
SC
27679#ifdef __STDC__
27680# include <limits.h>
27681#else
27682# include <assert.h>
27683#endif
ac1cb8d3
VS
27684
27685#undef remove
27686
a848cd7e
SC
27687/* Override any gcc2 internal prototype to avoid an error. */
27688#ifdef __cplusplus
27689extern "C"
27690{
27691#endif
27692/* We use char because int might match the return type of a gcc2
27693 builtin and then its argument prototype would still apply. */
27694char remove ();
27695/* The GNU C library defines this for functions which it implements
27696 to always fail with ENOSYS. Some functions are actually named
27697 something starting with __ and the normal name is an alias. */
27698#if defined (__stub_remove) || defined (__stub___remove)
27699choke me
27700#else
27701char (*f) () = remove;
27702#endif
27703#ifdef __cplusplus
27704}
27705#endif
27706
27707int
27708main ()
27709{
27710return f != remove;
27711 ;
27712 return 0;
27713}
27714_ACEOF
27715rm -f conftest.$ac_objext conftest$ac_exeext
27716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27717 (eval $ac_link) 2>conftest.er1
a848cd7e 27718 ac_status=$?
ac1cb8d3
VS
27719 grep -v '^ *+' conftest.er1 >conftest.err
27720 rm -f conftest.er1
27721 cat conftest.err >&5
a848cd7e
SC
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } &&
6ebeb4c7 27724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726 (eval $ac_try) 2>&5
27727 ac_status=$?
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; } &&
27730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27732 (eval $ac_try) 2>&5
27733 ac_status=$?
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); }; }; then
27736 ac_cv_func_remove=yes
27737else
27738 echo "$as_me: failed program was:" >&5
27739sed 's/^/| /' conftest.$ac_ext >&5
27740
27741ac_cv_func_remove=no
27742fi
ac1cb8d3
VS
27743rm -f conftest.err conftest.$ac_objext \
27744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27745fi
27746echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27747echo "${ECHO_T}$ac_cv_func_remove" >&6
27748
27749 if test $ac_cv_func_remove = no; then
27750 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27751echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27752if test "${ac_cv_lib_posix_remove+set}" = set; then
27753 echo $ECHO_N "(cached) $ECHO_C" >&6
27754else
27755 ac_check_lib_save_LIBS=$LIBS
27756LIBS="-lposix $LIBS"
27757cat >conftest.$ac_ext <<_ACEOF
27758/* confdefs.h. */
27759_ACEOF
27760cat confdefs.h >>conftest.$ac_ext
27761cat >>conftest.$ac_ext <<_ACEOF
27762/* end confdefs.h. */
27763
27764/* Override any gcc2 internal prototype to avoid an error. */
27765#ifdef __cplusplus
27766extern "C"
27767#endif
27768/* We use char because int might match the return type of a gcc2
27769 builtin and then its argument prototype would still apply. */
27770char remove ();
27771int
27772main ()
27773{
27774remove ();
27775 ;
27776 return 0;
27777}
27778_ACEOF
27779rm -f conftest.$ac_objext conftest$ac_exeext
27780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27781 (eval $ac_link) 2>conftest.er1
a848cd7e 27782 ac_status=$?
ac1cb8d3
VS
27783 grep -v '^ *+' conftest.er1 >conftest.err
27784 rm -f conftest.er1
27785 cat conftest.err >&5
a848cd7e
SC
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); } &&
6ebeb4c7 27788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; } &&
27794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796 (eval $ac_try) 2>&5
27797 ac_status=$?
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; }; then
27800 ac_cv_lib_posix_remove=yes
27801else
27802 echo "$as_me: failed program was:" >&5
27803sed 's/^/| /' conftest.$ac_ext >&5
27804
27805ac_cv_lib_posix_remove=no
27806fi
ac1cb8d3
VS
27807rm -f conftest.err conftest.$ac_objext \
27808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27809LIBS=$ac_check_lib_save_LIBS
27810fi
27811echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27812echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27813if test $ac_cv_lib_posix_remove = yes; then
27814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27815fi
27816
27817 fi
27818
27819 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27820 echo "$as_me:$LINENO: checking for shmat" >&5
27821echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27822if test "${ac_cv_func_shmat+set}" = set; then
27823 echo $ECHO_N "(cached) $ECHO_C" >&6
27824else
27825 cat >conftest.$ac_ext <<_ACEOF
27826/* confdefs.h. */
27827_ACEOF
27828cat confdefs.h >>conftest.$ac_ext
27829cat >>conftest.$ac_ext <<_ACEOF
27830/* end confdefs.h. */
ac1cb8d3
VS
27831/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27833#define shmat innocuous_shmat
27834
a848cd7e
SC
27835/* System header to define __stub macros and hopefully few prototypes,
27836 which can conflict with char shmat (); below.
27837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27839
a848cd7e
SC
27840#ifdef __STDC__
27841# include <limits.h>
27842#else
27843# include <assert.h>
27844#endif
ac1cb8d3
VS
27845
27846#undef shmat
27847
a848cd7e
SC
27848/* Override any gcc2 internal prototype to avoid an error. */
27849#ifdef __cplusplus
27850extern "C"
27851{
27852#endif
27853/* We use char because int might match the return type of a gcc2
27854 builtin and then its argument prototype would still apply. */
27855char shmat ();
27856/* The GNU C library defines this for functions which it implements
27857 to always fail with ENOSYS. Some functions are actually named
27858 something starting with __ and the normal name is an alias. */
27859#if defined (__stub_shmat) || defined (__stub___shmat)
27860choke me
27861#else
27862char (*f) () = shmat;
27863#endif
27864#ifdef __cplusplus
27865}
27866#endif
27867
27868int
27869main ()
27870{
27871return f != shmat;
27872 ;
27873 return 0;
27874}
27875_ACEOF
27876rm -f conftest.$ac_objext conftest$ac_exeext
27877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27878 (eval $ac_link) 2>conftest.er1
a848cd7e 27879 ac_status=$?
ac1cb8d3
VS
27880 grep -v '^ *+' conftest.er1 >conftest.err
27881 rm -f conftest.er1
27882 cat conftest.err >&5
a848cd7e
SC
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } &&
6ebeb4c7 27885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887 (eval $ac_try) 2>&5
27888 ac_status=$?
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; } &&
27891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893 (eval $ac_try) 2>&5
27894 ac_status=$?
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; }; then
27897 ac_cv_func_shmat=yes
27898else
27899 echo "$as_me: failed program was:" >&5
27900sed 's/^/| /' conftest.$ac_ext >&5
27901
27902ac_cv_func_shmat=no
27903fi
ac1cb8d3
VS
27904rm -f conftest.err conftest.$ac_objext \
27905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27906fi
27907echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27908echo "${ECHO_T}$ac_cv_func_shmat" >&6
27909
27910 if test $ac_cv_func_shmat = no; then
27911 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27912echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27913if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27915else
27916 ac_check_lib_save_LIBS=$LIBS
27917LIBS="-lipc $LIBS"
27918cat >conftest.$ac_ext <<_ACEOF
27919/* confdefs.h. */
27920_ACEOF
27921cat confdefs.h >>conftest.$ac_ext
27922cat >>conftest.$ac_ext <<_ACEOF
27923/* end confdefs.h. */
27924
27925/* Override any gcc2 internal prototype to avoid an error. */
27926#ifdef __cplusplus
27927extern "C"
27928#endif
27929/* We use char because int might match the return type of a gcc2
27930 builtin and then its argument prototype would still apply. */
27931char shmat ();
27932int
27933main ()
27934{
27935shmat ();
27936 ;
27937 return 0;
27938}
27939_ACEOF
27940rm -f conftest.$ac_objext conftest$ac_exeext
27941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27942 (eval $ac_link) 2>conftest.er1
a848cd7e 27943 ac_status=$?
ac1cb8d3
VS
27944 grep -v '^ *+' conftest.er1 >conftest.err
27945 rm -f conftest.er1
27946 cat conftest.err >&5
a848cd7e
SC
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } &&
6ebeb4c7 27949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27951 (eval $ac_try) 2>&5
27952 ac_status=$?
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); }; } &&
27955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957 (eval $ac_try) 2>&5
27958 ac_status=$?
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); }; }; then
27961 ac_cv_lib_ipc_shmat=yes
27962else
27963 echo "$as_me: failed program was:" >&5
27964sed 's/^/| /' conftest.$ac_ext >&5
27965
27966ac_cv_lib_ipc_shmat=no
27967fi
ac1cb8d3
VS
27968rm -f conftest.err conftest.$ac_objext \
27969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27970LIBS=$ac_check_lib_save_LIBS
27971fi
27972echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27973echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27974if test $ac_cv_lib_ipc_shmat = yes; then
27975 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27976fi
27977
27978 fi
27979 fi
27980
27981 # Check for libraries that X11R6 Xt/Xaw programs need.
27982 ac_save_LDFLAGS=$LDFLAGS
27983 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27984 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27985 # check for ICE first), but we must link in the order -lSM -lICE or
27986 # we get undefined symbols. So assume we have SM if we have ICE.
27987 # These have to be linked with before -lX11, unlike the other
27988 # libraries we check for below, so use a different variable.
27989 # John Interrante, Karl Berry
27990 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27991echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27992if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27993 echo $ECHO_N "(cached) $ECHO_C" >&6
27994else
27995 ac_check_lib_save_LIBS=$LIBS
27996LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27997cat >conftest.$ac_ext <<_ACEOF
27998/* confdefs.h. */
27999_ACEOF
28000cat confdefs.h >>conftest.$ac_ext
28001cat >>conftest.$ac_ext <<_ACEOF
28002/* end confdefs.h. */
28003
28004/* Override any gcc2 internal prototype to avoid an error. */
28005#ifdef __cplusplus
28006extern "C"
28007#endif
28008/* We use char because int might match the return type of a gcc2
28009 builtin and then its argument prototype would still apply. */
28010char IceConnectionNumber ();
28011int
28012main ()
28013{
28014IceConnectionNumber ();
28015 ;
28016 return 0;
28017}
28018_ACEOF
28019rm -f conftest.$ac_objext conftest$ac_exeext
28020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28021 (eval $ac_link) 2>conftest.er1
a848cd7e 28022 ac_status=$?
ac1cb8d3
VS
28023 grep -v '^ *+' conftest.er1 >conftest.err
28024 rm -f conftest.er1
28025 cat conftest.err >&5
a848cd7e
SC
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); } &&
6ebeb4c7 28028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28030 (eval $ac_try) 2>&5
28031 ac_status=$?
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); }; } &&
28034 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28036 (eval $ac_try) 2>&5
28037 ac_status=$?
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); }; }; then
28040 ac_cv_lib_ICE_IceConnectionNumber=yes
28041else
28042 echo "$as_me: failed program was:" >&5
28043sed 's/^/| /' conftest.$ac_ext >&5
28044
28045ac_cv_lib_ICE_IceConnectionNumber=no
28046fi
ac1cb8d3
VS
28047rm -f conftest.err conftest.$ac_objext \
28048 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28049LIBS=$ac_check_lib_save_LIBS
28050fi
28051echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28052echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28053if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28054 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28055fi
28056
28057 LDFLAGS=$ac_save_LDFLAGS
28058
28059fi
28060
28061
28062 if test "$no_x" = "yes"; then
28063 { { echo "$as_me:$LINENO: error: X11 not found" >&5
28064echo "$as_me: error: X11 not found" >&2;}
28065 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
28066 fi
28067
74b84332
VS
28068 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28069 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28070 AFMINSTALL=afminstall
28071 COMPILED_X_PROGRAM=0
28072
74b84332
VS
28073 fi
28074
28075 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28076 if test "$wxUSE_NANOX" = "yes"; then
28077 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28078echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28079 if test "x$MICROWIN" = x ; then
28080 echo "$as_me:$LINENO: result: not found" >&5
28081echo "${ECHO_T}not found" >&6
28082 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28083echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28084 { (exit 1); exit 1; }; }
28085 else
28086 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28087echo "${ECHO_T}$MICROWIN" >&6
28088 cat >>confdefs.h <<\_ACEOF
28089#define wxUSE_NANOX 1
28090_ACEOF
28091
28092 fi
28093 fi
28094
28095 if test "$wxUSE_UNICODE" = "yes"; then
28096
28097 succeeded=no
28098
28099 if test -z "$PKG_CONFIG"; then
28100 # Extract the first word of "pkg-config", so it can be a program name with args.
28101set dummy pkg-config; ac_word=$2
28102echo "$as_me:$LINENO: checking for $ac_word" >&5
28103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28104if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28105 echo $ECHO_N "(cached) $ECHO_C" >&6
28106else
28107 case $PKG_CONFIG in
28108 [\\/]* | ?:[\\/]*)
28109 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28110 ;;
28111 *)
28112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28113for as_dir in $PATH
28114do
28115 IFS=$as_save_IFS
28116 test -z "$as_dir" && as_dir=.
28117 for ac_exec_ext in '' $ac_executable_extensions; do
28118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28119 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28121 break 2
28122 fi
28123done
28124done
28125
28126 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28127 ;;
28128esac
28129fi
28130PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28131
28132if test -n "$PKG_CONFIG"; then
28133 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28134echo "${ECHO_T}$PKG_CONFIG" >&6
28135else
28136 echo "$as_me:$LINENO: result: no" >&5
28137echo "${ECHO_T}no" >&6
28138fi
28139
28140 fi
28141
28142 if test "$PKG_CONFIG" = "no" ; then
28143 echo "*** The pkg-config script could not be found. Make sure it is"
28144 echo "*** in your path, or set the PKG_CONFIG environment variable"
28145 echo "*** to the full path to pkg-config."
28146 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28147 else
28148 PKG_CONFIG_MIN_VERSION=0.9.0
28149 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28150 echo "$as_me:$LINENO: checking for pangox" >&5
28151echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28152
28153 if $PKG_CONFIG --exists "pangox" ; then
28154 echo "$as_me:$LINENO: result: yes" >&5
28155echo "${ECHO_T}yes" >&6
28156 succeeded=yes
28157
28158 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28159echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28160 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28161 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28162echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28163
28164 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28165echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28166 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28167 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28168echo "${ECHO_T}$PANGOX_LIBS" >&6
28169 else
28170 PANGOX_CFLAGS=""
28171 PANGOX_LIBS=""
28172 ## If we have a custom action on failure, don't print errors, but
28173 ## do set a variable so people can do so.
28174 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28175
28176 fi
28177
28178
28179
28180 else
28181 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28182 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28183 fi
28184 fi
28185
28186 if test $succeeded = yes; then
28187
28188 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28189 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28190
28191 else
28192
28193 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28194echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28195 { (exit 1); exit 1; }; }
28196
28197
28198 fi
28199
28200
28201 succeeded=no
28202
28203 if test -z "$PKG_CONFIG"; then
28204 # Extract the first word of "pkg-config", so it can be a program name with args.
28205set dummy pkg-config; ac_word=$2
28206echo "$as_me:$LINENO: checking for $ac_word" >&5
28207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28208if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28210else
28211 case $PKG_CONFIG in
28212 [\\/]* | ?:[\\/]*)
28213 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28214 ;;
28215 *)
28216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28217for as_dir in $PATH
28218do
28219 IFS=$as_save_IFS
28220 test -z "$as_dir" && as_dir=.
28221 for ac_exec_ext in '' $ac_executable_extensions; do
28222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28223 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28225 break 2
28226 fi
28227done
28228done
28229
28230 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28231 ;;
28232esac
28233fi
28234PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28235
28236if test -n "$PKG_CONFIG"; then
28237 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28238echo "${ECHO_T}$PKG_CONFIG" >&6
28239else
28240 echo "$as_me:$LINENO: result: no" >&5
28241echo "${ECHO_T}no" >&6
28242fi
28243
28244 fi
28245
28246 if test "$PKG_CONFIG" = "no" ; then
28247 echo "*** The pkg-config script could not be found. Make sure it is"
28248 echo "*** in your path, or set the PKG_CONFIG environment variable"
28249 echo "*** to the full path to pkg-config."
28250 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28251 else
28252 PKG_CONFIG_MIN_VERSION=0.9.0
28253 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28254 echo "$as_me:$LINENO: checking for pangoft2" >&5
28255echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28256
28257 if $PKG_CONFIG --exists "pangoft2" ; then
28258 echo "$as_me:$LINENO: result: yes" >&5
28259echo "${ECHO_T}yes" >&6
28260 succeeded=yes
28261
28262 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28263echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28264 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28265 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28266echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28267
28268 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28269echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28270 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28271 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28272echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28273 else
28274 PANGOFT2_CFLAGS=""
28275 PANGOFT2_LIBS=""
28276 ## If we have a custom action on failure, don't print errors, but
28277 ## do set a variable so people can do so.
28278 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28279
28280 fi
28281
28282
28283
28284 else
28285 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28286 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28287 fi
28288 fi
28289
28290 if test $succeeded = yes; then
28291
28292 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28293 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28294
28295 else
28296
28297 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28298echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28299 wxUSE_PRINTING_ARCHITECTURE="no"
28300
28301
28302 fi
28303
28304
28305 succeeded=no
28306
28307 if test -z "$PKG_CONFIG"; then
28308 # Extract the first word of "pkg-config", so it can be a program name with args.
28309set dummy pkg-config; ac_word=$2
28310echo "$as_me:$LINENO: checking for $ac_word" >&5
28311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28312if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28313 echo $ECHO_N "(cached) $ECHO_C" >&6
28314else
28315 case $PKG_CONFIG in
28316 [\\/]* | ?:[\\/]*)
28317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28318 ;;
28319 *)
28320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28321for as_dir in $PATH
28322do
28323 IFS=$as_save_IFS
28324 test -z "$as_dir" && as_dir=.
28325 for ac_exec_ext in '' $ac_executable_extensions; do
28326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28329 break 2
28330 fi
28331done
28332done
28333
28334 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28335 ;;
28336esac
28337fi
28338PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28339
28340if test -n "$PKG_CONFIG"; then
28341 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28342echo "${ECHO_T}$PKG_CONFIG" >&6
28343else
28344 echo "$as_me:$LINENO: result: no" >&5
28345echo "${ECHO_T}no" >&6
28346fi
28347
28348 fi
28349
28350 if test "$PKG_CONFIG" = "no" ; then
28351 echo "*** The pkg-config script could not be found. Make sure it is"
28352 echo "*** in your path, or set the PKG_CONFIG environment variable"
28353 echo "*** to the full path to pkg-config."
28354 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28355 else
28356 PKG_CONFIG_MIN_VERSION=0.9.0
28357 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28358 echo "$as_me:$LINENO: checking for pangoxft" >&5
28359echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28360
28361 if $PKG_CONFIG --exists "pangoxft" ; then
28362 echo "$as_me:$LINENO: result: yes" >&5
28363echo "${ECHO_T}yes" >&6
28364 succeeded=yes
28365
28366 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28367echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28368 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28369 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28370echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28371
28372 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28373echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28374 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28375 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28376echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28377 else
28378 PANGOXFT_CFLAGS=""
28379 PANGOXFT_LIBS=""
28380 ## If we have a custom action on failure, don't print errors, but
28381 ## do set a variable so people can do so.
28382 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
28383
28384 fi
28385
28386
28387
28388 else
28389 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28390 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28391 fi
28392 fi
28393
28394 if test $succeeded = yes; then
28395
4ae1af05
MB
28396 cat >>confdefs.h <<\_ACEOF
28397#define HAVE_PANGO_XFT 1
28398_ACEOF
28399
a848cd7e
SC
28400 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
28401 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
28402
28403 else
28404
28405 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
28406echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
28407
28408
28409 fi
28410
304205f1
VS
28411 save_CFLAGS="$CFLAGS"
28412 save_LIBS="$LIBS"
28413 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28414 LIBS="$LIBS $PANGOX_LIBS"
28415
28416for ac_func in pango_font_family_is_monospace
28417do
28418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28419echo "$as_me:$LINENO: checking for $ac_func" >&5
28420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28421if eval "test \"\${$as_ac_var+set}\" = set"; then
28422 echo $ECHO_N "(cached) $ECHO_C" >&6
28423else
28424 cat >conftest.$ac_ext <<_ACEOF
28425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
28430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28432#define $ac_func innocuous_$ac_func
28433
28434/* System header to define __stub macros and hopefully few prototypes,
28435 which can conflict with char $ac_func (); below.
28436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28437 <limits.h> exists even on freestanding compilers. */
28438
28439#ifdef __STDC__
28440# include <limits.h>
28441#else
28442# include <assert.h>
28443#endif
28444
28445#undef $ac_func
28446
28447/* Override any gcc2 internal prototype to avoid an error. */
28448#ifdef __cplusplus
28449extern "C"
28450{
28451#endif
28452/* We use char because int might match the return type of a gcc2
28453 builtin and then its argument prototype would still apply. */
28454char $ac_func ();
28455/* The GNU C library defines this for functions which it implements
28456 to always fail with ENOSYS. Some functions are actually named
28457 something starting with __ and the normal name is an alias. */
28458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28459choke me
28460#else
28461char (*f) () = $ac_func;
28462#endif
28463#ifdef __cplusplus
28464}
28465#endif
28466
28467int
28468main ()
28469{
28470return f != $ac_func;
28471 ;
28472 return 0;
28473}
28474_ACEOF
28475rm -f conftest.$ac_objext conftest$ac_exeext
28476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28477 (eval $ac_link) 2>conftest.er1
28478 ac_status=$?
28479 grep -v '^ *+' conftest.er1 >conftest.err
28480 rm -f conftest.er1
28481 cat conftest.err >&5
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); } &&
6ebeb4c7 28484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
28485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28486 (eval $ac_try) 2>&5
28487 ac_status=$?
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); }; } &&
28490 { ac_try='test -s conftest$ac_exeext'
28491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28492 (eval $ac_try) 2>&5
28493 ac_status=$?
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); }; }; then
28496 eval "$as_ac_var=yes"
28497else
28498 echo "$as_me: failed program was:" >&5
28499sed 's/^/| /' conftest.$ac_ext >&5
28500
28501eval "$as_ac_var=no"
28502fi
28503rm -f conftest.err conftest.$ac_objext \
28504 conftest$ac_exeext conftest.$ac_ext
28505fi
28506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28508if test `eval echo '${'$as_ac_var'}'` = yes; then
28509 cat >>confdefs.h <<_ACEOF
28510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28511_ACEOF
28512
28513fi
28514done
28515
28516 CFLAGS="$save_CFLAGS"
28517 LIBS="$save_LIBS"
a848cd7e
SC
28518 fi
28519
28520 wxUSE_UNIVERSAL="yes"
28521
28522 if test "$wxUSE_NANOX" = "yes"; then
28523 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28524 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"
28525 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28526 else
28527 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28528 fi
28529
a848cd7e
SC
28530 TOOLKIT=X11
28531 GUIDIST=X11_DIST
28532 fi
28533
28534 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28535 if test "$wxUSE_UNICODE" = "yes"; then
28536 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28537echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28538 { (exit 1); exit 1; }; }
28539 fi
28540
74b84332
VS
28541 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28542echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28543
74b84332
VS
28544ac_find_includes=
28545for ac_dir in $SEARCH_INCLUDE /usr/include;
28546 do
28547 if test -f "$ac_dir/Xm/Xm.h"; then
28548 ac_find_includes=$ac_dir
28549 break
28550 fi
28551 done
a848cd7e 28552
74b84332
VS
28553 if test "$ac_find_includes" != "" ; then
28554 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28555echo "${ECHO_T}found in $ac_find_includes" >&6
28556
28557 if test "x$ac_find_includes" = "x/usr/include"; then
28558 ac_path_to_include=""
28559 else
28560 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28561 result=$?
28562 if test $result = 0; then
28563 ac_path_to_include=""
28564 else
28565 ac_path_to_include=" -I$ac_find_includes"
28566 fi
a848cd7e
SC
28567 fi
28568
74b84332
VS
28569 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28570 else
e051b34e
MW
28571 save_CFLAGS=$CFLAGS
28572 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28573
74b84332 28574 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28575/* confdefs.h. */
28576_ACEOF
28577cat confdefs.h >>conftest.$ac_ext
28578cat >>conftest.$ac_ext <<_ACEOF
28579/* end confdefs.h. */
28580
74b84332
VS
28581 #include <Xm/Xm.h>
28582
a848cd7e
SC
28583int
28584main ()
28585{
28586
74b84332
VS
28587 int version;
28588 version = xmUseVersion;
28589
a848cd7e
SC
28590 ;
28591 return 0;
28592}
28593_ACEOF
74b84332
VS
28594rm -f conftest.$ac_objext
28595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28596 (eval $ac_compile) 2>conftest.er1
a848cd7e 28597 ac_status=$?
ac1cb8d3
VS
28598 grep -v '^ *+' conftest.er1 >conftest.err
28599 rm -f conftest.er1
28600 cat conftest.err >&5
a848cd7e
SC
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); } &&
6ebeb4c7 28603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605 (eval $ac_try) 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; } &&
74b84332 28609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611 (eval $ac_try) 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; }; then
74b84332
VS
28615
28616 echo "$as_me:$LINENO: result: found in default search path" >&5
28617echo "${ECHO_T}found in default search path" >&6
28618 COMPILED_X_PROGRAM=1
28619
a848cd7e
SC
28620else
28621 echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
a848cd7e 28624
74b84332
VS
28625 echo "$as_me:$LINENO: result: no" >&5
28626echo "${ECHO_T}no" >&6
e051b34e
MW
28627 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
28628echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 28629 { (exit 1); exit 1; }; }
a848cd7e 28630
a848cd7e 28631
a848cd7e 28632fi
74b84332 28633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
28634
28635 CFLAGS=$save_CFLAGS
74b84332
VS
28636 fi
28637
0ad5d837
VZ
28638
28639 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
28640echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28641
0ad5d837
VZ
28642 ac_find_libraries=
28643 for ac_dir in $SEARCH_LIB;
74b84332 28644 do
3eca31dc 28645 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28646 if test -f "$ac_dir/libXm.$ac_extension"; then
28647 ac_find_libraries=$ac_dir
28648 break 2
a848cd7e 28649 fi
74b84332
VS
28650 done
28651 done
a848cd7e 28652
0ad5d837
VZ
28653
28654 if test "x$ac_find_libraries" != "x" ; then
28655 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28656echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 28657
74b84332 28658
0ad5d837 28659 if test "$ac_find_libraries" = "default location"; then
74b84332 28660 ac_path_to_link=""
a848cd7e 28661 else
0ad5d837
VZ
28662 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28663 result=$?
28664 if test $result = 0; then
28665 ac_path_to_link=""
28666 else
28667 ac_path_to_link=" -L$ac_find_libraries"
28668 fi
74b84332
VS
28669 fi
28670
0ad5d837
VZ
28671 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28672 else
28673 save_CFLAGS=$CFLAGS
28674 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
28675 save_LIBS="$LIBS"
28676 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 28677
0ad5d837 28678 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28679/* confdefs.h. */
28680_ACEOF
28681cat confdefs.h >>conftest.$ac_ext
28682cat >>conftest.$ac_ext <<_ACEOF
28683/* end confdefs.h. */
28684
0ad5d837 28685 #include <Xm/Xm.h>
74b84332 28686
a848cd7e
SC
28687int
28688main ()
28689{
74b84332 28690
0ad5d837
VZ
28691 int version;
28692 version = xmUseVersion;
74b84332 28693
a848cd7e
SC
28694 ;
28695 return 0;
28696}
28697_ACEOF
0ad5d837
VZ
28698rm -f conftest.$ac_objext conftest$ac_exeext
28699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28700 (eval $ac_link) 2>conftest.er1
a848cd7e 28701 ac_status=$?
ac1cb8d3
VS
28702 grep -v '^ *+' conftest.er1 >conftest.err
28703 rm -f conftest.er1
28704 cat conftest.err >&5
a848cd7e
SC
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } &&
6ebeb4c7 28707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28709 (eval $ac_try) 2>&5
28710 ac_status=$?
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); }; } &&
0ad5d837 28713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; }; then
74b84332 28719
0ad5d837 28720 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 28721echo "${ECHO_T}found in default search path" >&6
0ad5d837 28722 COMPILED_X_PROGRAM=1
74b84332 28723
a848cd7e
SC
28724else
28725 echo "$as_me: failed program was:" >&5
28726sed 's/^/| /' conftest.$ac_ext >&5
28727
74b84332 28728
6f9cf1e6 28729 echo "$as_me:$LINENO: result: no" >&5
74b84332 28730echo "${ECHO_T}no" >&6
6f9cf1e6 28731 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
28732echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28733 { (exit 1); exit 1; }; }
28734
28735
28736fi
0ad5d837
VZ
28737rm -f conftest.err conftest.$ac_objext \
28738 conftest$ac_exeext conftest.$ac_ext
74b84332 28739
0ad5d837 28740 CFLAGS=$save_CFLAGS
6f9cf1e6 28741 LIBS="$save_LIBS"
74b84332
VS
28742 fi
28743
28744 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28745echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28746 libp_link=""
28747 libsm_ice_link=""
28748 libs_found=0
28749 for libp in "" " -lXp"; do
28750 if test "$libs_found" = "0"; then
28751 for libsm_ice in "" " -lSM -lICE"; do
28752 if test "$libs_found" = "0"; then
28753 save_LIBS="$LIBS"
28754 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28755 save_CFLAGS=$CFLAGS
28756 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28757
28758 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28759/* confdefs.h. */
28760_ACEOF
28761cat confdefs.h >>conftest.$ac_ext
28762cat >>conftest.$ac_ext <<_ACEOF
28763/* end confdefs.h. */
28764
74b84332
VS
28765 #include <Xm/Xm.h>
28766 #include <Xm/List.h>
28767
a848cd7e
SC
28768int
28769main ()
28770{
74b84332
VS
28771
28772 XmString string = NULL;
28773 Widget w = NULL;
28774 int position = 0;
28775 XmListAddItem(w, string, position);
28776
a848cd7e
SC
28777 ;
28778 return 0;
28779}
28780_ACEOF
28781rm -f conftest.$ac_objext conftest$ac_exeext
28782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28783 (eval $ac_link) 2>conftest.er1
a848cd7e 28784 ac_status=$?
ac1cb8d3
VS
28785 grep -v '^ *+' conftest.er1 >conftest.err
28786 rm -f conftest.er1
28787 cat conftest.err >&5
a848cd7e
SC
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); } &&
6ebeb4c7 28790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792 (eval $ac_try) 2>&5
28793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; } &&
28796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798 (eval $ac_try) 2>&5
28799 ac_status=$?
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; }; then
28802
28803 libp_link="$libp"
28804 libsm_ice_link="$libsm_ice"
28805 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28806echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28807 libs_found=1
28808
28809else
28810 echo "$as_me: failed program was:" >&5
28811sed 's/^/| /' conftest.$ac_ext >&5
28812
28813
28814
28815fi
ac1cb8d3
VS
28816rm -f conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28818
28819 LIBS="$save_LIBS"
28820 CFLAGS=$save_CFLAGS
28821 fi
28822 done
28823 fi
28824 done
28825
28826 if test "$libs_found" = "0"; then
28827 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28828echo "${ECHO_T}can't find the right libraries" >&6
28829 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28830echo "$as_me: error: can't link a simple motif program" >&2;}
28831 { (exit 1); exit 1; }; }
28832 fi
28833
62fa8b3a
MW
28834 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
28835echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
28836if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
28837 echo $ECHO_N "(cached) $ECHO_C" >&6
28838else
28839 ac_check_lib_save_LIBS=$LIBS
28840LIBS="-lSgm $LIBS"
28841cat >conftest.$ac_ext <<_ACEOF
28842/* confdefs.h. */
28843_ACEOF
28844cat confdefs.h >>conftest.$ac_ext
28845cat >>conftest.$ac_ext <<_ACEOF
28846/* end confdefs.h. */
28847
28848/* Override any gcc2 internal prototype to avoid an error. */
28849#ifdef __cplusplus
28850extern "C"
28851#endif
28852/* We use char because int might match the return type of a gcc2
28853 builtin and then its argument prototype would still apply. */
28854char SgCreateList ();
28855int
28856main ()
28857{
28858SgCreateList ();
28859 ;
28860 return 0;
28861}
28862_ACEOF
28863rm -f conftest.$ac_objext conftest$ac_exeext
28864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28865 (eval $ac_link) 2>conftest.er1
28866 ac_status=$?
28867 grep -v '^ *+' conftest.er1 >conftest.err
28868 rm -f conftest.er1
28869 cat conftest.err >&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } &&
28872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874 (eval $ac_try) 2>&5
28875 ac_status=$?
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; } &&
28878 { ac_try='test -s conftest$ac_exeext'
28879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880 (eval $ac_try) 2>&5
28881 ac_status=$?
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; }; then
28884 ac_cv_lib_Sgm_SgCreateList=yes
28885else
28886 echo "$as_me: failed program was:" >&5
28887sed 's/^/| /' conftest.$ac_ext >&5
28888
28889ac_cv_lib_Sgm_SgCreateList=no
28890fi
28891rm -f conftest.err conftest.$ac_objext \
28892 conftest$ac_exeext conftest.$ac_ext
28893LIBS=$ac_check_lib_save_LIBS
28894fi
28895echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
28896echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
28897if test $ac_cv_lib_Sgm_SgCreateList = yes; then
28898 libsgm_link=" -lSgm"
28899fi
28900
28901
a848cd7e
SC
28902 save_CFLAGS=$CFLAGS
28903 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 28904
a848cd7e
SC
28905 echo "$as_me:$LINENO: checking for Motif 2" >&5
28906echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
28907if test "${wx_cv_lib_motif2+set}" = set; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28909else
28910 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28911/* confdefs.h. */
28912_ACEOF
28913cat confdefs.h >>conftest.$ac_ext
28914cat >>conftest.$ac_ext <<_ACEOF
28915/* end confdefs.h. */
28916
0ad5d837 28917 #include <Xm/Xm.h>
a848cd7e
SC
28918
28919int
28920main ()
28921{
28922
0ad5d837
VZ
28923 #if XmVersion < 2000
28924 Not Motif 2
28925 #endif
a848cd7e
SC
28926
28927 ;
28928 return 0;
28929}
28930_ACEOF
28931rm -f conftest.$ac_objext
28932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28933 (eval $ac_compile) 2>conftest.er1
a848cd7e 28934 ac_status=$?
ac1cb8d3
VS
28935 grep -v '^ *+' conftest.er1 >conftest.err
28936 rm -f conftest.er1
28937 cat conftest.err >&5
a848cd7e
SC
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
6ebeb4c7 28940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; }; then
0ad5d837 28952 wx_cv_lib_motif2="yes"
a848cd7e
SC
28953else
28954 echo "$as_me: failed program was:" >&5
28955sed 's/^/| /' conftest.$ac_ext >&5
28956
0ad5d837
VZ
28957wx_cv_lib_motif2="no"
28958fi
28959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28960fi
28961echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
28962echo "${ECHO_T}$wx_cv_lib_motif2" >&6
28963 if test "$wx_cv_lib_motif2" = "yes"; then
28964 cat >>confdefs.h <<\_ACEOF
28965#define __WXMOTIF20__ 1
28966_ACEOF
a848cd7e 28967
0ad5d837
VZ
28968 else
28969 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28970#define __WXMOTIF20__ 0
28971_ACEOF
28972
0ad5d837 28973 fi
2113bc77
MW
28974
28975 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28976echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
28977if test "${wx_cv_lib_lesstif+set}" = set; then
28978 echo $ECHO_N "(cached) $ECHO_C" >&6
28979else
28980 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
28981/* confdefs.h. */
28982_ACEOF
28983cat confdefs.h >>conftest.$ac_ext
28984cat >>conftest.$ac_ext <<_ACEOF
28985/* end confdefs.h. */
28986
0ad5d837 28987 #include <Xm/Xm.h>
2113bc77
MW
28988
28989int
28990main ()
28991{
28992
0ad5d837
VZ
28993 #if !defined(LesstifVersion) || LesstifVersion <= 0
28994 Not Lesstif
28995 #endif
2113bc77
MW
28996
28997 ;
28998 return 0;
28999}
29000_ACEOF
29001rm -f conftest.$ac_objext
29002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29003 (eval $ac_compile) 2>conftest.er1
29004 ac_status=$?
29005 grep -v '^ *+' conftest.er1 >conftest.err
29006 rm -f conftest.er1
29007 cat conftest.err >&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } &&
6ebeb4c7 29010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012 (eval $ac_try) 2>&5
29013 ac_status=$?
29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); }; } &&
29016 { ac_try='test -s conftest.$ac_objext'
29017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29018 (eval $ac_try) 2>&5
29019 ac_status=$?
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); }; }; then
0ad5d837 29022 wx_cv_lib_lesstif="yes"
2113bc77
MW
29023else
29024 echo "$as_me: failed program was:" >&5
29025sed 's/^/| /' conftest.$ac_ext >&5
29026
0ad5d837
VZ
29027wx_cv_lib_lesstif="no"
29028fi
29029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29030
0ad5d837
VZ
29031fi
29032echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29033echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29034 if test "$wx_cv_lib_lesstif" = "yes"; then
29035 cat >>confdefs.h <<\_ACEOF
29036#define __WXLESSTIF__ 1
29037_ACEOF
29038
29039 else
29040 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29041#define __WXLESSTIF__ 0
29042_ACEOF
29043
0ad5d837 29044 fi
2113bc77 29045
a848cd7e
SC
29046 CFLAGS=$save_CFLAGS
29047
62fa8b3a 29048 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29049 TOOLKIT=MOTIF
29050 GUIDIST=MOTIF_DIST
29051 fi
29052
74b84332 29053 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29054 if test "$wxUSE_LIBXPM" = "sys"; then
29055 echo "$as_me:$LINENO: checking for Xpm library" >&5
29056echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29057
0ad5d837
VZ
29058 ac_find_libraries=
29059 for ac_dir in $SEARCH_LIB;
a848cd7e 29060 do
3eca31dc 29061 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29062 if test -f "$ac_dir/libXpm.$ac_extension"; then
29063 ac_find_libraries=$ac_dir
29064 break 2
29065 fi
29066 done
29067 done
29068
29069 if test "$ac_find_libraries" != "" ; then
29070
0ad5d837 29071 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29072 ac_path_to_link=""
29073 else
0ad5d837
VZ
29074 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29075 result=$?
29076 if test $result = 0; then
29077 ac_path_to_link=""
29078 else
29079 ac_path_to_link=" -L$ac_find_libraries"
29080 fi
a848cd7e
SC
29081 fi
29082
29083 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29084 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29085echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29086
29087 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29088echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29089if test "${wx_cv_x11_xpm_h+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29091else
29092
29093 save_CFLAGS=$CFLAGS
29094 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29095
29096 cat >conftest.$ac_ext <<_ACEOF
29097/* confdefs.h. */
29098_ACEOF
29099cat confdefs.h >>conftest.$ac_ext
29100cat >>conftest.$ac_ext <<_ACEOF
29101/* end confdefs.h. */
29102
29103 #include <X11/xpm.h>
29104
29105int
29106main ()
29107{
29108
29109 int version;
29110 version = XpmLibraryVersion();
29111
29112 ;
29113 return 0;
29114}
29115_ACEOF
29116rm -f conftest.$ac_objext
29117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29118 (eval $ac_compile) 2>conftest.er1
a848cd7e 29119 ac_status=$?
ac1cb8d3
VS
29120 grep -v '^ *+' conftest.er1 >conftest.err
29121 rm -f conftest.er1
29122 cat conftest.err >&5
a848cd7e
SC
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); } &&
6ebeb4c7 29125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127 (eval $ac_try) 2>&5
29128 ac_status=$?
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); }; } &&
29131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133 (eval $ac_try) 2>&5
29134 ac_status=$?
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; }; then
29137 wx_cv_x11_xpm_h=yes
29138else
29139 echo "$as_me: failed program was:" >&5
29140sed 's/^/| /' conftest.$ac_ext >&5
29141
29142wx_cv_x11_xpm_h=no
29143
29144fi
ac1cb8d3 29145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29146
29147 CFLAGS=$save_CFLAGS
29148
29149
29150fi
29151echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29152echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29153
29154 if test $wx_cv_x11_xpm_h = "yes"; then
29155 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29156 cat >>confdefs.h <<\_ACEOF
29157#define wxHAVE_LIB_XPM 1
29158_ACEOF
29159
29160 else
29161 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29162echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29163 fi
29164 fi
29165
29166 fi
29167
29168 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29169echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29170if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29171 echo $ECHO_N "(cached) $ECHO_C" >&6
29172else
29173 ac_check_lib_save_LIBS=$LIBS
29174LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29175cat >conftest.$ac_ext <<_ACEOF
29176/* confdefs.h. */
29177_ACEOF
29178cat confdefs.h >>conftest.$ac_ext
29179cat >>conftest.$ac_ext <<_ACEOF
29180/* end confdefs.h. */
29181
29182/* Override any gcc2 internal prototype to avoid an error. */
29183#ifdef __cplusplus
29184extern "C"
29185#endif
29186/* We use char because int might match the return type of a gcc2
29187 builtin and then its argument prototype would still apply. */
29188char XShapeQueryExtension ();
29189int
29190main ()
29191{
29192XShapeQueryExtension ();
29193 ;
29194 return 0;
29195}
29196_ACEOF
29197rm -f conftest.$ac_objext conftest$ac_exeext
29198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29199 (eval $ac_link) 2>conftest.er1
a848cd7e 29200 ac_status=$?
ac1cb8d3
VS
29201 grep -v '^ *+' conftest.er1 >conftest.err
29202 rm -f conftest.er1
29203 cat conftest.err >&5
a848cd7e
SC
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } &&
6ebeb4c7 29206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208 (eval $ac_try) 2>&5
29209 ac_status=$?
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); }; } &&
29212 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214 (eval $ac_try) 2>&5
29215 ac_status=$?
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; }; then
29218 ac_cv_lib_Xext_XShapeQueryExtension=yes
29219else
29220 echo "$as_me: failed program was:" >&5
29221sed 's/^/| /' conftest.$ac_ext >&5
29222
29223ac_cv_lib_Xext_XShapeQueryExtension=no
29224fi
ac1cb8d3
VS
29225rm -f conftest.err conftest.$ac_objext \
29226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29227LIBS=$ac_check_lib_save_LIBS
29228fi
29229echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29230echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29231if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29232
29233 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29234 wxHAVE_XEXT_LIB=1
29235
29236fi
29237
29238
29239 if test "$wxHAVE_XEXT_LIB" = 1; then
29240 save_CFLAGS="$CFLAGS"
29241 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29242
29243 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29244echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29245 cat >conftest.$ac_ext <<_ACEOF
29246/* confdefs.h. */
29247_ACEOF
29248cat confdefs.h >>conftest.$ac_ext
29249cat >>conftest.$ac_ext <<_ACEOF
29250/* end confdefs.h. */
29251
29252 #include <X11/Xlib.h>
29253 #include <X11/extensions/shape.h>
29254
29255int
29256main ()
29257{
29258
29259 int dummy1, dummy2;
29260 XShapeQueryExtension((Display*)NULL,
29261 (int*)NULL, (int*)NULL);
29262
29263 ;
29264 return 0;
29265}
29266_ACEOF
29267rm -f conftest.$ac_objext
29268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29269 (eval $ac_compile) 2>conftest.er1
a848cd7e 29270 ac_status=$?
ac1cb8d3
VS
29271 grep -v '^ *+' conftest.er1 >conftest.err
29272 rm -f conftest.er1
29273 cat conftest.err >&5
a848cd7e
SC
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); } &&
6ebeb4c7 29276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29278 (eval $ac_try) 2>&5
29279 ac_status=$?
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); }; } &&
29282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284 (eval $ac_try) 2>&5
29285 ac_status=$?
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; }; then
29288
29289 cat >>confdefs.h <<\_ACEOF
29290#define HAVE_XSHAPE 1
29291_ACEOF
29292
29293 echo "$as_me:$LINENO: result: found" >&5
29294echo "${ECHO_T}found" >&6
29295
29296else
29297 echo "$as_me: failed program was:" >&5
29298sed 's/^/| /' conftest.$ac_ext >&5
29299
29300
29301 echo "$as_me:$LINENO: result: not found" >&5
29302echo "${ECHO_T}not found" >&6
29303
29304fi
ac1cb8d3 29305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29306 CFLAGS="$save_CFLAGS"
29307
29308 fi
29309 fi
29310
29311 if test "$wxUSE_MAC" = 1; then
29312 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29313echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29314 if test "$GCC" = yes; then
29315 echo "$as_me:$LINENO: result: gcc" >&5
29316echo "${ECHO_T}gcc" >&6
29317 CPPFLAGS_PASCAL="-fpascal-strings"
29318 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29319 echo "$as_me:$LINENO: result: xlc" >&5
29320echo "${ECHO_T}xlc" >&6
29321 CPPFLAGS_PASCAL="-qmacpstr"
29322 else
29323 echo "$as_me:$LINENO: result: none" >&5
29324echo "${ECHO_T}none" >&6
29325 fi
29326
1e9e8aba
DE
29327 if test "x$wxUSE_UNIX" = "xyes"; then
29328 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29329 else
29330 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29331 fi
a848cd7e 29332
a848cd7e
SC
29333 TOOLKIT=MAC
29334 GUIDIST=MACX_DIST
dd21ced8 29335 WXBASEPORT="_carbon"
a848cd7e
SC
29336 fi
29337
29338 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
29339 TOOLKIT=COCOA
29340 GUIDIST=COCOA_DIST
29341 fi
29342
29343 if test "$wxUSE_PM" = 1; then
29344 TOOLKIT=PM
de59c161
RD
29345 GUIDIST=PM_DIST
29346 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29347echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29348if test "${wx_cv_spbcdata+set}" = set; then
29349 echo $ECHO_N "(cached) $ECHO_C" >&6
29350else
29351
29352 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29353/* confdefs.h. */
29354_ACEOF
29355cat confdefs.h >>conftest.$ac_ext
29356cat >>conftest.$ac_ext <<_ACEOF
29357/* end confdefs.h. */
29358
29359 #define INCL_PM
29360 #include <os2.h>
29361
29362int
29363main ()
29364{
29365
29366 SPBCDATA test;
29367
29368 ;
29369 return 0;
29370}
29371_ACEOF
29372rm -f conftest.$ac_objext
29373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29374 (eval $ac_compile) 2>conftest.er1
de59c161 29375 ac_status=$?
ac1cb8d3
VS
29376 grep -v '^ *+' conftest.er1 >conftest.err
29377 rm -f conftest.er1
29378 cat conftest.err >&5
de59c161
RD
29379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380 (exit $ac_status); } &&
6ebeb4c7 29381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29383 (eval $ac_try) 2>&5
29384 ac_status=$?
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; } &&
29387 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
29388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29389 (eval $ac_try) 2>&5
29390 ac_status=$?
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); }; }; then
29393 wx_cv_spbcdata=yes
29394else
29395 echo "$as_me: failed program was:" >&5
29396sed 's/^/| /' conftest.$ac_ext >&5
29397
29398wx_cv_spbcdata=no
29399
29400fi
ac1cb8d3 29401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
29402
29403
29404fi
29405echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
29406echo "${ECHO_T}$wx_cv_spbcdata" >&6
29407
29408 if test $wx_cv_spbcdata = "yes"; then
29409 cat >>confdefs.h <<\_ACEOF
29410#define HAVE_SPBCDATA 1
29411_ACEOF
29412
29413 fi
a848cd7e
SC
29414 fi
29415
29416 if test "$TOOLKIT" = "PM" ; then
29417 TOOLKIT_DIR="os2"
29418 else
29419 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
29420 fi
29421
a848cd7e 29422 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
29423 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
29424 WIDGET_SET=univ
a848cd7e
SC
29425 fi
29426
29427 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
29428 DISTDIR="wx\$(TOOLKIT)"
29429else
29430 USE_GUI=0
29431
29432 TOOLKIT_DIR="base"
29433
29434 if test "$USE_WIN32" = 1 ; then
a848cd7e 29435 TOOLKIT="MSW"
a848cd7e
SC
29436 fi
29437
a848cd7e
SC
29438 GUIDIST="BASE_DIST"
29439 DISTDIR="wxBase"
29440fi
29441
29442
d12aef51
VZ
29443if test "$wxUSE_GUI" = "yes"; then
29444 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
29445
29446for ac_header in X11/Xlib.h
29447do
29448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29449if eval "test \"\${$as_ac_Header+set}\" = set"; then
29450 echo "$as_me:$LINENO: checking for $ac_header" >&5
29451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29452if eval "test \"\${$as_ac_Header+set}\" = set"; then
29453 echo $ECHO_N "(cached) $ECHO_C" >&6
29454fi
29455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29457else
29458 # Is the header compilable?
29459echo "$as_me:$LINENO: checking $ac_header usability" >&5
29460echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29461cat >conftest.$ac_ext <<_ACEOF
29462/* confdefs.h. */
29463_ACEOF
29464cat confdefs.h >>conftest.$ac_ext
29465cat >>conftest.$ac_ext <<_ACEOF
29466/* end confdefs.h. */
29467$ac_includes_default
29468#include <$ac_header>
29469_ACEOF
29470rm -f conftest.$ac_objext
29471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29472 (eval $ac_compile) 2>conftest.er1
29473 ac_status=$?
29474 grep -v '^ *+' conftest.er1 >conftest.err
29475 rm -f conftest.er1
29476 cat conftest.err >&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); } &&
29479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29481 (eval $ac_try) 2>&5
29482 ac_status=$?
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); }; } &&
29485 { ac_try='test -s conftest.$ac_objext'
29486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29487 (eval $ac_try) 2>&5
29488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; }; then
29491 ac_header_compiler=yes
29492else
29493 echo "$as_me: failed program was:" >&5
29494sed 's/^/| /' conftest.$ac_ext >&5
29495
29496ac_header_compiler=no
29497fi
29498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29500echo "${ECHO_T}$ac_header_compiler" >&6
29501
29502# Is the header present?
29503echo "$as_me:$LINENO: checking $ac_header presence" >&5
29504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29505cat >conftest.$ac_ext <<_ACEOF
29506/* confdefs.h. */
29507_ACEOF
29508cat confdefs.h >>conftest.$ac_ext
29509cat >>conftest.$ac_ext <<_ACEOF
29510/* end confdefs.h. */
29511#include <$ac_header>
29512_ACEOF
29513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29515 ac_status=$?
29516 grep -v '^ *+' conftest.er1 >conftest.err
29517 rm -f conftest.er1
29518 cat conftest.err >&5
29519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520 (exit $ac_status); } >/dev/null; then
29521 if test -s conftest.err; then
29522 ac_cpp_err=$ac_c_preproc_warn_flag
29523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29524 else
29525 ac_cpp_err=
29526 fi
29527else
29528 ac_cpp_err=yes
29529fi
29530if test -z "$ac_cpp_err"; then
29531 ac_header_preproc=yes
29532else
29533 echo "$as_me: failed program was:" >&5
29534sed 's/^/| /' conftest.$ac_ext >&5
29535
29536 ac_header_preproc=no
29537fi
29538rm -f conftest.err conftest.$ac_ext
29539echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29540echo "${ECHO_T}$ac_header_preproc" >&6
29541
29542# So? What about this header?
29543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29544 yes:no: )
29545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29549 ac_header_preproc=yes
29550 ;;
29551 no:yes:* )
29552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29555echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29559echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29564 (
29565 cat <<\_ASBOX
29566## ----------------------------------------- ##
29567## Report this to wx-dev@lists.wxwidgets.org ##
29568## ----------------------------------------- ##
29569_ASBOX
29570 ) |
29571 sed "s/^/$as_me: WARNING: /" >&2
29572 ;;
29573esac
29574echo "$as_me:$LINENO: checking for $ac_header" >&5
29575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29576if eval "test \"\${$as_ac_Header+set}\" = set"; then
29577 echo $ECHO_N "(cached) $ECHO_C" >&6
29578else
29579 eval "$as_ac_Header=\$ac_header_preproc"
29580fi
29581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29583
29584fi
29585if test `eval echo '${'$as_ac_Header'}'` = yes; then
29586 cat >>confdefs.h <<_ACEOF
29587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29588_ACEOF
29589
29590fi
29591
29592done
29593
29594
29595for ac_header in X11/XKBlib.h
29596do
29597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29598echo "$as_me:$LINENO: checking for $ac_header" >&5
29599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29600if eval "test \"\${$as_ac_Header+set}\" = set"; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29602else
29603 cat >conftest.$ac_ext <<_ACEOF
29604/* confdefs.h. */
29605_ACEOF
29606cat confdefs.h >>conftest.$ac_ext
29607cat >>conftest.$ac_ext <<_ACEOF
29608/* end confdefs.h. */
29609
29610 #if HAVE_X11_XLIB_H
29611 #include <X11/Xlib.h>
29612 #endif
29613
29614
29615#include <$ac_header>
29616_ACEOF
29617rm -f conftest.$ac_objext
29618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29619 (eval $ac_compile) 2>conftest.er1
29620 ac_status=$?
29621 grep -v '^ *+' conftest.er1 >conftest.err
29622 rm -f conftest.er1
29623 cat conftest.err >&5
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); } &&
29626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628 (eval $ac_try) 2>&5
29629 ac_status=$?
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); }; } &&
29632 { ac_try='test -s conftest.$ac_objext'
29633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634 (eval $ac_try) 2>&5
29635 ac_status=$?
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; }; then
29638 eval "$as_ac_Header=yes"
29639else
29640 echo "$as_me: failed program was:" >&5
29641sed 's/^/| /' conftest.$ac_ext >&5
29642
29643eval "$as_ac_Header=no"
29644fi
29645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29646fi
29647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29649if test `eval echo '${'$as_ac_Header'}'` = yes; then
29650 cat >>confdefs.h <<_ACEOF
29651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29652_ACEOF
29653
29654fi
29655
29656done
29657
29658 fi
29659fi
29660
a848cd7e
SC
29661
29662
29663IODBC_C_SRC=""
29664
29665
29666if test "$TOOLKIT" != "MSW" ; then
29667
29668 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
29669
29670 if test "${ac_cv_header_sql_h+set}" = set; then
29671 echo "$as_me:$LINENO: checking for sql.h" >&5
29672echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29673if test "${ac_cv_header_sql_h+set}" = set; then
29674 echo $ECHO_N "(cached) $ECHO_C" >&6
29675fi
29676echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29677echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29678else
29679 # Is the header compilable?
29680echo "$as_me:$LINENO: checking sql.h usability" >&5
29681echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
29682cat >conftest.$ac_ext <<_ACEOF
29683/* confdefs.h. */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h. */
29688$ac_includes_default
29689#include <sql.h>
29690_ACEOF
29691rm -f conftest.$ac_objext
29692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29693 (eval $ac_compile) 2>conftest.er1
a848cd7e 29694 ac_status=$?
ac1cb8d3
VS
29695 grep -v '^ *+' conftest.er1 >conftest.err
29696 rm -f conftest.er1
29697 cat conftest.err >&5
a848cd7e
SC
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } &&
6ebeb4c7 29700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702 (eval $ac_try) 2>&5
29703 ac_status=$?
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; } &&
29706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708 (eval $ac_try) 2>&5
29709 ac_status=$?
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); }; }; then
29712 ac_header_compiler=yes
29713else
29714 echo "$as_me: failed program was:" >&5
29715sed 's/^/| /' conftest.$ac_ext >&5
29716
29717ac_header_compiler=no
29718fi
ac1cb8d3 29719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29721echo "${ECHO_T}$ac_header_compiler" >&6
29722
29723# Is the header present?
29724echo "$as_me:$LINENO: checking sql.h presence" >&5
29725echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
29726cat >conftest.$ac_ext <<_ACEOF
29727/* confdefs.h. */
29728_ACEOF
29729cat confdefs.h >>conftest.$ac_ext
29730cat >>conftest.$ac_ext <<_ACEOF
29731/* end confdefs.h. */
29732#include <sql.h>
29733_ACEOF
29734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29736 ac_status=$?
29737 grep -v '^ *+' conftest.er1 >conftest.err
29738 rm -f conftest.er1
29739 cat conftest.err >&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } >/dev/null; then
29742 if test -s conftest.err; then
29743 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29745 else
29746 ac_cpp_err=
29747 fi
29748else
29749 ac_cpp_err=yes
29750fi
29751if test -z "$ac_cpp_err"; then
29752 ac_header_preproc=yes
29753else
29754 echo "$as_me: failed program was:" >&5
29755sed 's/^/| /' conftest.$ac_ext >&5
29756
29757 ac_header_preproc=no
29758fi
29759rm -f conftest.err conftest.$ac_ext
29760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29761echo "${ECHO_T}$ac_header_preproc" >&6
29762
29763# So? What about this header?
ac1cb8d3
VS
29764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29765 yes:no: )
a848cd7e
SC
29766 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29767echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29768 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
29769echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
29770 ac_header_preproc=yes
a848cd7e 29771 ;;
ac1cb8d3 29772 no:yes:* )
a848cd7e
SC
29773 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
29774echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29775 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
29776echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
29777 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
29778echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
29779 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
29780echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29781 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
29782echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29783 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
29784echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29785 (
29786 cat <<\_ASBOX
ac1cb8d3
VS
29787## ----------------------------------------- ##
29788## Report this to wx-dev@lists.wxwidgets.org ##
29789## ----------------------------------------- ##
a848cd7e
SC
29790_ASBOX
29791 ) |
29792 sed "s/^/$as_me: WARNING: /" >&2
29793 ;;
29794esac
29795echo "$as_me:$LINENO: checking for sql.h" >&5
29796echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29797if test "${ac_cv_header_sql_h+set}" = set; then
29798 echo $ECHO_N "(cached) $ECHO_C" >&6
29799else
29800 ac_cv_header_sql_h=$ac_header_preproc
29801fi
29802echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29803echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29804
29805fi
29806if test $ac_cv_header_sql_h = yes; then
29807 found_sql_h=1
29808fi
29809
29810
29811 if test "x$found_sql_h" = "x1" ; then
29812 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29813echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29814if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29815 echo $ECHO_N "(cached) $ECHO_C" >&6
29816else
29817 ac_check_lib_save_LIBS=$LIBS
29818LIBS="-liodbc $LIBS"
29819cat >conftest.$ac_ext <<_ACEOF
29820/* confdefs.h. */
29821_ACEOF
29822cat confdefs.h >>conftest.$ac_ext
29823cat >>conftest.$ac_ext <<_ACEOF
29824/* end confdefs.h. */
29825
29826/* Override any gcc2 internal prototype to avoid an error. */
29827#ifdef __cplusplus
29828extern "C"
29829#endif
29830/* We use char because int might match the return type of a gcc2
29831 builtin and then its argument prototype would still apply. */
29832char SQLAllocEnv ();
29833int
29834main ()
29835{
29836SQLAllocEnv ();
29837 ;
29838 return 0;
29839}
29840_ACEOF
29841rm -f conftest.$ac_objext conftest$ac_exeext
29842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29843 (eval $ac_link) 2>conftest.er1
a848cd7e 29844 ac_status=$?
ac1cb8d3
VS
29845 grep -v '^ *+' conftest.er1 >conftest.err
29846 rm -f conftest.er1
29847 cat conftest.err >&5
a848cd7e
SC
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } &&
6ebeb4c7 29850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852 (eval $ac_try) 2>&5
29853 ac_status=$?
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; } &&
29856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858 (eval $ac_try) 2>&5
29859 ac_status=$?
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; }; then
29862 ac_cv_lib_iodbc_SQLAllocEnv=yes
29863else
29864 echo "$as_me: failed program was:" >&5
29865sed 's/^/| /' conftest.$ac_ext >&5
29866
29867ac_cv_lib_iodbc_SQLAllocEnv=no
29868fi
ac1cb8d3
VS
29869rm -f conftest.err conftest.$ac_objext \
29870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29871LIBS=$ac_check_lib_save_LIBS
29872fi
29873echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29874echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29875if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29876 ODBC_LINK=" -liodbc"
29877else
29878
29879 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29880echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29881if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29882 echo $ECHO_N "(cached) $ECHO_C" >&6
29883else
29884 ac_check_lib_save_LIBS=$LIBS
29885LIBS="-lunixodbc $LIBS"
29886cat >conftest.$ac_ext <<_ACEOF
29887/* confdefs.h. */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h. */
29892
29893/* Override any gcc2 internal prototype to avoid an error. */
29894#ifdef __cplusplus
29895extern "C"
29896#endif
29897/* We use char because int might match the return type of a gcc2
29898 builtin and then its argument prototype would still apply. */
29899char SQLAllocEnv ();
29900int
29901main ()
29902{
29903SQLAllocEnv ();
29904 ;
29905 return 0;
29906}
29907_ACEOF
29908rm -f conftest.$ac_objext conftest$ac_exeext
29909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29910 (eval $ac_link) 2>conftest.er1
a848cd7e 29911 ac_status=$?
ac1cb8d3
VS
29912 grep -v '^ *+' conftest.er1 >conftest.err
29913 rm -f conftest.er1
29914 cat conftest.err >&5
a848cd7e
SC
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); } &&
6ebeb4c7 29917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29919 (eval $ac_try) 2>&5
29920 ac_status=$?
29921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922 (exit $ac_status); }; } &&
29923 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925 (eval $ac_try) 2>&5
29926 ac_status=$?
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); }; }; then
29929 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29930else
29931 echo "$as_me: failed program was:" >&5
29932sed 's/^/| /' conftest.$ac_ext >&5
29933
29934ac_cv_lib_unixodbc_SQLAllocEnv=no
29935fi
ac1cb8d3
VS
29936rm -f conftest.err conftest.$ac_objext \
29937 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29938LIBS=$ac_check_lib_save_LIBS
29939fi
29940echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29941echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29942if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29943 ODBC_LINK=" -lunixodbc"
29944else
29945
29946 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29947echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29948if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29949 echo $ECHO_N "(cached) $ECHO_C" >&6
29950else
29951 ac_check_lib_save_LIBS=$LIBS
29952LIBS="-lodbc $LIBS"
29953cat >conftest.$ac_ext <<_ACEOF
29954/* confdefs.h. */
29955_ACEOF
29956cat confdefs.h >>conftest.$ac_ext
29957cat >>conftest.$ac_ext <<_ACEOF
29958/* end confdefs.h. */
29959
29960/* Override any gcc2 internal prototype to avoid an error. */
29961#ifdef __cplusplus
29962extern "C"
29963#endif
29964/* We use char because int might match the return type of a gcc2
29965 builtin and then its argument prototype would still apply. */
29966char SQLAllocEnv ();
29967int
29968main ()
29969{
29970SQLAllocEnv ();
29971 ;
29972 return 0;
29973}
29974_ACEOF
29975rm -f conftest.$ac_objext conftest$ac_exeext
29976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29977 (eval $ac_link) 2>conftest.er1
a848cd7e 29978 ac_status=$?
ac1cb8d3
VS
29979 grep -v '^ *+' conftest.er1 >conftest.err
29980 rm -f conftest.er1
29981 cat conftest.err >&5
a848cd7e
SC
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } &&
6ebeb4c7 29984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986 (eval $ac_try) 2>&5
29987 ac_status=$?
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); }; } &&
29990 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 (eval $ac_try) 2>&5
29993 ac_status=$?
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; }; then
29996 ac_cv_lib_odbc_SQLAllocEnv=yes
29997else
29998 echo "$as_me: failed program was:" >&5
29999sed 's/^/| /' conftest.$ac_ext >&5
30000
30001ac_cv_lib_odbc_SQLAllocEnv=no
30002fi
ac1cb8d3
VS
30003rm -f conftest.err conftest.$ac_objext \
30004 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30005LIBS=$ac_check_lib_save_LIBS
30006fi
30007echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30008echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30009if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30010 ODBC_LINK=" -lodbc"
30011fi
30012
30013
30014fi
30015
30016
30017fi
30018
30019 fi
30020 if test "x$ODBC_LINK" = "x" ; then
30021 if test "$wxUSE_ODBC" = "sys" ; then
30022 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30023echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30024 { (exit 1); exit 1; }; }
30025 else
30026 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30027echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30028 wxUSE_ODBC=builtin
30029 fi
30030 else
30031 wxUSE_ODBC=sys
30032 fi
30033 fi
a848cd7e 30034
2da0c077
RD
30035 if test "$wxUSE_ODBC" = "builtin" ; then
30036 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30037#define wxUSE_BUILTIN_IODBC 1
30038_ACEOF
30039
a848cd7e
SC
30040 fi
30041fi
30042
2da0c077
RD
30043if test "$wxUSE_ODBC" != "no" ; then
30044 cat >>confdefs.h <<\_ACEOF
30045#define wxUSE_ODBC 1
30046_ACEOF
30047
30048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30049
30050 WXODBCFLAG="-D_IODBC_"
30051fi
a848cd7e 30052
01cb68df 30053
a848cd7e 30054if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30055 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30056 echo "$as_me:$LINENO: checking for Xinerama" >&5
30057echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30058
0ad5d837
VZ
30059 ac_find_libraries=
30060 for ac_dir in $SEARCH_LIB;
30061 do
30062 for ac_extension in a so sl dylib dll.a; do
30063 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30064 ac_find_libraries=$ac_dir
30065 break 2
30066 fi
30067 done
30068 done
30069
a848cd7e
SC
30070 if test "$ac_find_libraries" != "" ; then
30071
0ad5d837 30072 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30073 ac_path_to_link=""
30074 else
0ad5d837
VZ
30075 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30076 result=$?
30077 if test $result = 0; then
30078 ac_path_to_link=""
30079 else
30080 ac_path_to_link=" -L$ac_find_libraries"
30081 fi
a848cd7e
SC
30082 fi
30083
30084 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30085 LDFLAGS="$LDFLAGS $ac_path_to_link"
30086 fi
30087 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30088 echo "$as_me:$LINENO: result: yes" >&5
30089echo "${ECHO_T}yes" >&6
30090
30091 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30092echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30093
0ad5d837
VZ
30094 ac_find_libraries=
30095 for ac_dir in $SEARCH_LIB;
a848cd7e 30096 do
3eca31dc 30097 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30098 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30099 ac_find_libraries=$ac_dir
30100 break 2
30101 fi
30102 done
30103 done
30104
30105 if test "$ac_find_libraries" != "" ; then
30106 echo "$as_me:$LINENO: result: yes" >&5
30107echo "${ECHO_T}yes" >&6
30108
30109for ac_header in X11/extensions/xf86vmode.h
30110do
30111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30112echo "$as_me:$LINENO: checking for $ac_header" >&5
30113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30114if eval "test \"\${$as_ac_Header+set}\" = set"; then
30115 echo $ECHO_N "(cached) $ECHO_C" >&6
30116else
30117 cat >conftest.$ac_ext <<_ACEOF
30118/* confdefs.h. */
30119_ACEOF
30120cat confdefs.h >>conftest.$ac_ext
30121cat >>conftest.$ac_ext <<_ACEOF
30122/* end confdefs.h. */
30123
30124 #if HAVE_X11_XLIB_H
30125 #include <X11/Xlib.h>
30126 #endif
30127
30128
30129#include <$ac_header>
30130_ACEOF
30131rm -f conftest.$ac_objext
30132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30133 (eval $ac_compile) 2>conftest.er1
a848cd7e 30134 ac_status=$?
ac1cb8d3
VS
30135 grep -v '^ *+' conftest.er1 >conftest.err
30136 rm -f conftest.er1
30137 cat conftest.err >&5
a848cd7e
SC
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); } &&
6ebeb4c7 30140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142 (eval $ac_try) 2>&5
30143 ac_status=$?
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; } &&
30146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30149 ac_status=$?
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; }; then
30152 eval "$as_ac_Header=yes"
30153else
30154 echo "$as_me: failed program was:" >&5
30155sed 's/^/| /' conftest.$ac_ext >&5
30156
30157eval "$as_ac_Header=no"
30158fi
ac1cb8d3 30159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30160fi
30161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30163if test `eval echo '${'$as_ac_Header'}'` = yes; then
30164 cat >>confdefs.h <<_ACEOF
30165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30166_ACEOF
30167
30168 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30169
30170fi
30171
30172done
30173
30174 else
30175 echo "$as_me:$LINENO: result: no" >&5
30176echo "${ECHO_T}no" >&6
30177 fi
30178
30179 else
30180 echo "$as_me:$LINENO: result: no" >&5
30181echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30182 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30183echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30184 wxUSE_DISPLAY="no"
30185 fi
01cb68df
RG
30186 elif test "$wxUSE_MSW" = 1; then
30187
30188
30189for ac_header in multimon.h ddraw.h
30190do
30191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30192echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30194if eval "test \"\${$as_ac_Header+set}\" = set"; then
30195 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30196else
5294a27e 30197 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30198/* confdefs.h. */
30199_ACEOF
30200cat confdefs.h >>conftest.$ac_ext
30201cat >>conftest.$ac_ext <<_ACEOF
30202/* end confdefs.h. */
5294a27e
VZ
30203#include <windows.h>
30204
01cb68df
RG
30205#include <$ac_header>
30206_ACEOF
30207rm -f conftest.$ac_objext
30208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30209 (eval $ac_compile) 2>conftest.er1
01cb68df 30210 ac_status=$?
ac1cb8d3
VS
30211 grep -v '^ *+' conftest.er1 >conftest.err
30212 rm -f conftest.er1
30213 cat conftest.err >&5
01cb68df
RG
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); } &&
6ebeb4c7 30216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218 (eval $ac_try) 2>&5
30219 ac_status=$?
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; } &&
30222 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30224 (eval $ac_try) 2>&5
30225 ac_status=$?
30226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); }; }; then
5294a27e 30228 eval "$as_ac_Header=yes"
01cb68df
RG
30229else
30230 echo "$as_me: failed program was:" >&5
30231sed 's/^/| /' conftest.$ac_ext >&5
30232
5294a27e 30233eval "$as_ac_Header=no"
01cb68df 30234fi
ac1cb8d3 30235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30236fi
30237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30239if test `eval echo '${'$as_ac_Header'}'` = yes; then
30240 cat >>confdefs.h <<_ACEOF
30241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30242_ACEOF
30243
30244else
30245
5294a27e
VZ
30246 wxUSE_DISPLAY="no"
30247 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30248echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30249
30250fi
30251
30252done
30253
a848cd7e
SC
30254 fi
30255fi
30256
30257
30258USE_OPENGL=0
30259if test "$wxUSE_OPENGL" = "yes"; then
30260 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30261 OPENGL_LIBS="-framework OpenGL -framework AGL"
30262 elif test "$wxUSE_MSW" = 1; then
30263 OPENGL_LIBS="-lopengl32 -lglu32"
30264 else
30265
30266
30267ac_find_includes=
30268for ac_dir in $SEARCH_INCLUDE /usr/include;
30269 do
30270 if test -f "$ac_dir/GL/gl.h"; then
30271 ac_find_includes=$ac_dir
30272 break
30273 fi
30274 done
30275
30276 if test "$ac_find_includes" != "" ; then
30277 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30278echo "${ECHO_T}found in $ac_find_includes" >&6
30279
30280 if test "x$ac_find_includes" = "x/usr/include"; then
30281 ac_path_to_include=""
30282 else
30283 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30284 result=$?
30285 if test $result = 0; then
30286 ac_path_to_include=""
30287 else
30288 ac_path_to_include=" -I$ac_find_includes"
30289 fi
30290 fi
30291
30292 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30293 fi
30294
30295 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30296 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30297echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30298if test "${ac_cv_header_GL_gl_h+set}" = set; then
30299 echo $ECHO_N "(cached) $ECHO_C" >&6
30300fi
30301echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30302echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30303else
30304 # Is the header compilable?
30305echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30306echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30307cat >conftest.$ac_ext <<_ACEOF
30308/* confdefs.h. */
30309_ACEOF
30310cat confdefs.h >>conftest.$ac_ext
30311cat >>conftest.$ac_ext <<_ACEOF
30312/* end confdefs.h. */
30313$ac_includes_default
30314#include <GL/gl.h>
30315_ACEOF
30316rm -f conftest.$ac_objext
30317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30318 (eval $ac_compile) 2>conftest.er1
a848cd7e 30319 ac_status=$?
ac1cb8d3
VS
30320 grep -v '^ *+' conftest.er1 >conftest.err
30321 rm -f conftest.er1
30322 cat conftest.err >&5
a848cd7e
SC
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); } &&
6ebeb4c7 30325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30327 (eval $ac_try) 2>&5
30328 ac_status=$?
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); }; } &&
30331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30333 (eval $ac_try) 2>&5
30334 ac_status=$?
30335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336 (exit $ac_status); }; }; then
30337 ac_header_compiler=yes
30338else
30339 echo "$as_me: failed program was:" >&5
30340sed 's/^/| /' conftest.$ac_ext >&5
30341
30342ac_header_compiler=no
30343fi
ac1cb8d3 30344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30345echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30346echo "${ECHO_T}$ac_header_compiler" >&6
30347
30348# Is the header present?
30349echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30350echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30351cat >conftest.$ac_ext <<_ACEOF
30352/* confdefs.h. */
30353_ACEOF
30354cat confdefs.h >>conftest.$ac_ext
30355cat >>conftest.$ac_ext <<_ACEOF
30356/* end confdefs.h. */
30357#include <GL/gl.h>
30358_ACEOF
30359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30361 ac_status=$?
30362 grep -v '^ *+' conftest.er1 >conftest.err
30363 rm -f conftest.er1
30364 cat conftest.err >&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } >/dev/null; then
30367 if test -s conftest.err; then
30368 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30370 else
30371 ac_cpp_err=
30372 fi
30373else
30374 ac_cpp_err=yes
30375fi
30376if test -z "$ac_cpp_err"; then
30377 ac_header_preproc=yes
30378else
30379 echo "$as_me: failed program was:" >&5
30380sed 's/^/| /' conftest.$ac_ext >&5
30381
30382 ac_header_preproc=no
30383fi
30384rm -f conftest.err conftest.$ac_ext
30385echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30386echo "${ECHO_T}$ac_header_preproc" >&6
30387
30388# So? What about this header?
ac1cb8d3
VS
30389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30390 yes:no: )
a848cd7e
SC
30391 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30392echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30393 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
30394echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
30395 ac_header_preproc=yes
a848cd7e 30396 ;;
ac1cb8d3 30397 no:yes:* )
a848cd7e
SC
30398 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
30399echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30400 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
30401echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
30402 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
30403echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
30404 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
30405echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30406 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
30407echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30408 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
30409echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30410 (
30411 cat <<\_ASBOX
ac1cb8d3
VS
30412## ----------------------------------------- ##
30413## Report this to wx-dev@lists.wxwidgets.org ##
30414## ----------------------------------------- ##
a848cd7e
SC
30415_ASBOX
30416 ) |
30417 sed "s/^/$as_me: WARNING: /" >&2
30418 ;;
30419esac
30420echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30421echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30422if test "${ac_cv_header_GL_gl_h+set}" = set; then
30423 echo $ECHO_N "(cached) $ECHO_C" >&6
30424else
30425 ac_cv_header_GL_gl_h=$ac_header_preproc
30426fi
30427echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30428echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30429
30430fi
30431if test $ac_cv_header_GL_gl_h = yes; then
30432
30433 found_gl=0
30434
30435 echo "$as_me:$LINENO: checking for -lGL" >&5
30436echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
30437
0ad5d837
VZ
30438 ac_find_libraries=
30439 for ac_dir in $SEARCH_LIB;
a848cd7e 30440 do
3eca31dc 30441 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30442 if test -f "$ac_dir/libGL.$ac_extension"; then
30443 ac_find_libraries=$ac_dir
30444 break 2
30445 fi
30446 done
30447 done
30448
30449 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
30450 echo "$as_me:$LINENO: result: yes" >&5
30451echo "${ECHO_T}yes" >&6
30452
a848cd7e 30453
0ad5d837 30454 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30455 ac_path_to_link=""
30456 else
0ad5d837
VZ
30457 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30458 result=$?
30459 if test $result = 0; then
30460 ac_path_to_link=""
30461 else
30462 ac_path_to_link=" -L$ac_find_libraries"
30463 fi
a848cd7e
SC
30464 fi
30465
30466 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30467 LDFLAGS_GL="$ac_path_to_link"
30468 fi
30469
69120ee4
VZ
30470 echo "$as_me:$LINENO: checking for -lGLU" >&5
30471echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 30472
0ad5d837
VZ
30473 ac_find_libraries=
30474 for ac_dir in $SEARCH_LIB;
30475 do
30476 for ac_extension in a so sl dylib dll.a; do
30477 if test -f "$ac_dir/libGLU.$ac_extension"; then
30478 ac_find_libraries=$ac_dir
30479 break 2
30480 fi
30481 done
30482 done
30483
a848cd7e
SC
30484 if test "$ac_find_libraries" != "" ; then
30485
0ad5d837 30486 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30487 ac_path_to_link=""
30488 else
0ad5d837
VZ
30489 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30490 result=$?
30491 if test $result = 0; then
30492 ac_path_to_link=""
30493 else
30494 ac_path_to_link=" -L$ac_find_libraries"
30495 fi
a848cd7e
SC
30496 fi
30497
30498 if test "$ac_path_to_link" != " -L/usr/lib" -a \
30499 "$ac_path_to_link" != "$LDFLAGS_GL"; then
30500 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
30501 fi
30502
30503 found_gl=1
30504 OPENGL_LIBS="-lGL -lGLU"
30505 echo "$as_me:$LINENO: result: yes" >&5
30506echo "${ECHO_T}yes" >&6
69120ee4
VZ
30507 else
30508 echo "$as_me:$LINENO: result: no" >&5
30509echo "${ECHO_T}no" >&6
a848cd7e 30510 fi
69120ee4
VZ
30511 else
30512 echo "$as_me:$LINENO: result: no" >&5
30513echo "${ECHO_T}no" >&6
a848cd7e
SC
30514 fi
30515
30516 if test "$found_gl" != 1; then
a848cd7e
SC
30517 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
30518echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
30519
0ad5d837
VZ
30520 ac_find_libraries=
30521 for ac_dir in $SEARCH_LIB;
a848cd7e 30522 do
3eca31dc 30523 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30524 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
30525 ac_find_libraries=$ac_dir
30526 break 2
30527 fi
30528 done
30529 done
30530
30531 if test "$ac_find_libraries" != "" ; then
30532
0ad5d837 30533 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30534 ac_path_to_link=""
30535 else
0ad5d837
VZ
30536 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30537 result=$?
30538 if test $result = 0; then
30539 ac_path_to_link=""
30540 else
30541 ac_path_to_link=" -L$ac_find_libraries"
30542 fi
a848cd7e
SC
30543 fi
30544
30545 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
30546 OPENGL_LIBS="-lMesaGL -lMesaGLU"
30547 echo "$as_me:$LINENO: result: yes" >&5
30548echo "${ECHO_T}yes" >&6
30549 else
30550 echo "$as_me:$LINENO: result: no" >&5
30551echo "${ECHO_T}no" >&6
30552 fi
30553 fi
30554
30555fi
30556
30557
30558
30559 if test "x$OPENGL_LIBS" = "x"; then
30560 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
30561echo "$as_me: error: OpenGL libraries not available" >&2;}
30562 { (exit 1); exit 1; }; }
30563 fi
30564 fi
30565
30566 if test "$wxUSE_OPENGL" = "yes"; then
30567 USE_OPENGL=1
30568 cat >>confdefs.h <<\_ACEOF
30569#define wxUSE_OPENGL 1
30570_ACEOF
30571
30572 cat >>confdefs.h <<\_ACEOF
30573#define wxUSE_GLCANVAS 1
30574_ACEOF
30575
30576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
30577 fi
30578fi
30579
a848cd7e
SC
30580
30581if test -n "$TOOLKIT" ; then
30582 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
30583fi
30584
a848cd7e
SC
30585
30586
30587if test "$wxUSE_SHARED" = "yes"; then
30588 case "${host}" in
30589 *-pc-msdosdjgpp )
30590 wxUSE_SHARED=no
30591 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
30592echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
30593 ;;
30594 esac
30595fi
30596
a848cd7e 30597if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
30598
30599
30600 found_versioning=no
30601
30602
30603 if test $found_versioning = no ; then
30604 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
30605echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
30606if test "${wx_cv_version_script+set}" = set; then
30607 echo $ECHO_N "(cached) $ECHO_C" >&6
30608else
30609
30610 echo "VER_1 { *; };" >conftest.sym
30611 echo "int main() { return 0; }" >conftest.cpp
30612
30613 if { ac_try='
30614 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30615 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
30616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30617 (eval $ac_try) 2>&5
30618 ac_status=$?
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); }; } ; then
30621 if test -s conftest.stderr ; then
30622 wx_cv_version_script=no
30623 else
30624 wx_cv_version_script=yes
30625 fi
30626 else
30627 wx_cv_version_script=no
30628 fi
e5d4b470
MW
30629
30630 if test $wx_cv_version_script = yes
30631 then
30632 echo "struct B { virtual ~B() { } }; \
30633 struct D : public B { }; \
30634 void F() { D d; }" > conftest.cpp
30635
30636 if { ac_try='
30637 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30638 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
30639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640 (eval $ac_try) 2>&5
30641 ac_status=$?
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; } &&
30644 { ac_try='
30645 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30646 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
30647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30648 (eval $ac_try) 2>&5
30649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; }
30652 then
30653 if { ac_try='
30654 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30655 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30658 ac_status=$?
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; }
30661 then
30662 wx_cv_version_script=yes
30663 else
30664 wx_cv_version_script=no
30665 fi
30666 fi
30667 fi
30668
a848cd7e 30669 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 30670 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
30671
30672fi
30673echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
30674echo "${ECHO_T}$wx_cv_version_script" >&6
30675 if test $wx_cv_version_script = yes ; then
30676 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
30677 fi
30678 fi
30679
30680
30681 case "${host}" in
30682 *-*-linux* | *-*-gnu* )
30683 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30684 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 30685 ;;
a848cd7e
SC
30686
30687 *-*-solaris2* )
30688 if test "$GCC" = yes ; then
30689 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
30690
30691 saveLdflags="$LDFLAGS"
30692 LDFLAGS="$saveLdflags -Wl,-rpath,/"
30693 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
30694echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
30695 cat >conftest.$ac_ext <<_ACEOF
30696/* confdefs.h. */
30697_ACEOF
30698cat confdefs.h >>conftest.$ac_ext
30699cat >>conftest.$ac_ext <<_ACEOF
30700/* end confdefs.h. */
30701
30702int
30703main ()
30704{
30705
30706 ;
30707 return 0;
30708}
30709_ACEOF
30710rm -f conftest.$ac_objext conftest$ac_exeext
30711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30712 (eval $ac_link) 2>conftest.er1
a848cd7e 30713 ac_status=$?
ac1cb8d3
VS
30714 grep -v '^ *+' conftest.er1 >conftest.err
30715 rm -f conftest.er1
30716 cat conftest.err >&5
a848cd7e
SC
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); } &&
6ebeb4c7 30719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30721 (eval $ac_try) 2>&5
30722 ac_status=$?
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); }; } &&
30725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727 (eval $ac_try) 2>&5
30728 ac_status=$?
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
30731
30732 echo "$as_me:$LINENO: result: yes" >&5
30733echo "${ECHO_T}yes" >&6
30734 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30735 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
30736
30737else
30738 echo "$as_me: failed program was:" >&5
30739sed 's/^/| /' conftest.$ac_ext >&5
30740
30741
30742 echo "$as_me:$LINENO: result: no" >&5
30743echo "${ECHO_T}no" >&6
30744 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
30745echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
30746 LDFLAGS="$saveLdflags -Wl,-R,/"
30747 cat >conftest.$ac_ext <<_ACEOF
30748/* confdefs.h. */
30749_ACEOF
30750cat confdefs.h >>conftest.$ac_ext
30751cat >>conftest.$ac_ext <<_ACEOF
30752/* end confdefs.h. */
30753
30754int
30755main ()
30756{
30757
30758 ;
30759 return 0;
30760}
30761_ACEOF
30762rm -f conftest.$ac_objext conftest$ac_exeext
30763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30764 (eval $ac_link) 2>conftest.er1
a848cd7e 30765 ac_status=$?
ac1cb8d3
VS
30766 grep -v '^ *+' conftest.er1 >conftest.err
30767 rm -f conftest.er1
30768 cat conftest.err >&5
a848cd7e
SC
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); } &&
6ebeb4c7 30771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30773 (eval $ac_try) 2>&5
30774 ac_status=$?
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); }; } &&
30777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30779 (eval $ac_try) 2>&5
30780 ac_status=$?
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); }; }; then
30783
ffa0583f 30784 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30785echo "${ECHO_T}yes" >&6
ffa0583f
RL
30786 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
30787 WXCONFIG_RPATH="-Wl,-R,\$libdir"
30788
a848cd7e
SC
30789else
30790 echo "$as_me: failed program was:" >&5
30791sed 's/^/| /' conftest.$ac_ext >&5
30792
30793
30794 echo "$as_me:$LINENO: result: no" >&5
30795echo "${ECHO_T}no" >&6
30796
30797fi
ac1cb8d3
VS
30798rm -f conftest.err conftest.$ac_objext \
30799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30800
30801fi
ac1cb8d3
VS
30802rm -f conftest.err conftest.$ac_objext \
30803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30804 LDFLAGS="$saveLdflags"
30805 else
a848cd7e 30806 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 30807 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
30808 fi
30809 ;;
30810
cfda0ea8 30811 *-*-darwin* )
0caebc27
MW
30812 install_name_tool=`which install_name_tool`
30813 if test "$install_name_tool" -a -x "$install_name_tool"; then
30814 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
30815 cat <<EOF >change-install-names
a848cd7e
SC
30816#!/bin/sh
30817libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30818inst_cmd="install_name_tool "
30819for i in \${libnames} ; do
30820 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30821done
30822\${inst_cmd} \${3}
30823EOF
0caebc27
MW
30824 chmod +x change-install-names
30825 fi
a848cd7e
SC
30826 ;;
30827
30828 *-*-cygwin* | *-*-mingw32* )
30829 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30830 ;;
30831
81f90336
MW
30832 *-*-hpux* )
30833 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30834 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30835 ;;
30836
a848cd7e 30837 esac
ceec2216 30838
ffa0583f
RL
30839 if test $wxUSE_RPATH = "no"; then
30840 SAMPLES_RPATH_FLAG=''
30841 SAMPLES_RPATH_POSTLINK=''
30842 WXCONFIG_RPATH=''
30843 fi
30844
30845 SHARED=1
30846
30847else
30848
ceec2216
RL
30849 config_linkage_component="-static"
30850 SHARED=0
ffa0583f 30851
ceec2216 30852fi
a848cd7e 30853
a848cd7e 30854
ceec2216
RL
30855UNICODE=0
30856lib_unicode_suffix=
30857WX_CHARTYPE="ansi"
30858if test "$wxUSE_UNICODE" = "yes"; then
30859 lib_unicode_suffix=u
30860 WX_CHARTYPE="unicode"
30861 UNICODE=1
a848cd7e
SC
30862fi
30863
ceec2216
RL
30864lib_debug_suffix=
30865WX_DEBUGTYPE="release"
30866DEBUG_FLAG=0
30867if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30868 lib_debug_suffix=d
30869 WX_DEBUGTYPE="debug"
30870 DEBUG_FLAG=1
30871fi
a848cd7e 30872
ceec2216
RL
30873WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30874WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30875
ceec2216
RL
30876DEBUG_INFO=0
30877if test "$wxUSE_DEBUG_INFO" = "yes"; then
30878 DEBUG_INFO=1
30879fi
a848cd7e 30880
ceec2216 30881WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30882
ceec2216 30883TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30884
ceec2216 30885TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30886
ceec2216
RL
30887if test "$cross_compiling" = "yes"; then
30888 HOST_SUFFIX="-$host_alias"
30889 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30890 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30891fi
30892
dd21ced8 30893WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30894if test "${TOOLKIT_DIR}" = "os2"; then
30895 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30896else
30897 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30898fi
ceec2216
RL
30899
30900
30901
1d1af5ea
DE
30902if test "$wxUSE_COCOA" = 1; then
30903
30904
30905 ac_ext=c
30906ac_cpp='$CPP $CPPFLAGS'
30907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30909ac_compiler_gnu=$ac_cv_c_compiler_gnu
30910
30911ac_ext=m
30912
30913 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30914echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30915 cat >conftest.$ac_ext <<_ACEOF
30916/* confdefs.h. */
30917_ACEOF
30918cat confdefs.h >>conftest.$ac_ext
30919cat >>conftest.$ac_ext <<_ACEOF
30920/* end confdefs.h. */
30921#include <AppKit/NSEvent.h>
30922#include <CoreFoundation/CoreFoundation.h>
30923
30924int
30925main ()
30926{
30927
30928 ;
30929 return 0;
30930}
30931_ACEOF
30932rm -f conftest.$ac_objext
30933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30934 (eval $ac_compile) 2>conftest.er1
30935 ac_status=$?
30936 grep -v '^ *+' conftest.er1 >conftest.err
30937 rm -f conftest.er1
30938 cat conftest.err >&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); } &&
6ebeb4c7 30941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30943 (eval $ac_try) 2>&5
30944 ac_status=$?
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); }; } &&
30947 { ac_try='test -s conftest.$ac_objext'
30948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30949 (eval $ac_try) 2>&5
30950 ac_status=$?
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); }; }; then
30953 echo "$as_me:$LINENO: result: no" >&5
30954echo "${ECHO_T}no" >&6
30955else
30956 echo "$as_me: failed program was:" >&5
30957sed 's/^/| /' conftest.$ac_ext >&5
30958
30959echo "$as_me:$LINENO: result: yes" >&5
30960echo "${ECHO_T}yes" >&6
30961 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30962echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30963 cat >conftest.$ac_ext <<_ACEOF
30964/* confdefs.h. */
30965_ACEOF
30966cat confdefs.h >>conftest.$ac_ext
30967cat >>conftest.$ac_ext <<_ACEOF
30968/* end confdefs.h. */
30969#define __Point__ 1
30970#include <AppKit/NSEvent.h>
30971#include <CoreFoundation/CoreFoundation.h>
30972
30973int
30974main ()
30975{
30976
30977 ;
30978 return 0;
30979}
30980_ACEOF
30981rm -f conftest.$ac_objext
30982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30983 (eval $ac_compile) 2>conftest.er1
30984 ac_status=$?
30985 grep -v '^ *+' conftest.er1 >conftest.err
30986 rm -f conftest.er1
30987 cat conftest.err >&5
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); } &&
6ebeb4c7 30990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30992 (eval $ac_try) 2>&5
30993 ac_status=$?
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); }; } &&
30996 { ac_try='test -s conftest.$ac_objext'
30997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30998 (eval $ac_try) 2>&5
30999 ac_status=$?
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; }; then
31002 echo "$as_me:$LINENO: result: yes" >&5
31003echo "${ECHO_T}yes" >&6
31004 cat >>confdefs.h <<\_ACEOF
31005#define __Point__ 1
31006_ACEOF
31007
31008
31009else
31010 echo "$as_me: failed program was:" >&5
31011sed 's/^/| /' conftest.$ac_ext >&5
31012
31013{ { echo "$as_me:$LINENO: error: no
31014See \`config.log' for more details." >&5
31015echo "$as_me: error: no
31016See \`config.log' for more details." >&2;}
31017 { (exit 1); exit 1; }; }
31018
31019fi
31020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31021
31022fi
31023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31024 ac_ext=c
31025ac_cpp='$CPP $CPPFLAGS'
31026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31028ac_compiler_gnu=$ac_cv_c_compiler_gnu
31029
31030fi
31031
a848cd7e 31032if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31033 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31034 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31035
a848cd7e 31036 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31037
31038 # Extract the first word of "Rez", so it can be a program name with args.
31039set dummy Rez; ac_word=$2
31040echo "$as_me:$LINENO: checking for $ac_word" >&5
31041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31042if test "${ac_cv_prog_RESCOMP+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31044else
31045 if test -n "$RESCOMP"; then
31046 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31047else
31048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31049for as_dir in $PATH
31050do
31051 IFS=$as_save_IFS
31052 test -z "$as_dir" && as_dir=.
31053 for ac_exec_ext in '' $ac_executable_extensions; do
31054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31055 ac_cv_prog_RESCOMP="Rez"
31056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31057 break 2
31058 fi
31059done
31060done
31061
31062 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31063fi
31064fi
31065RESCOMP=$ac_cv_prog_RESCOMP
31066if test -n "$RESCOMP"; then
31067 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31068echo "${ECHO_T}$RESCOMP" >&6
31069else
31070 echo "$as_me:$LINENO: result: no" >&5
31071echo "${ECHO_T}no" >&6
31072fi
31073
31074 # Extract the first word of "DeRez", so it can be a program name with args.
31075set dummy DeRez; ac_word=$2
31076echo "$as_me:$LINENO: checking for $ac_word" >&5
31077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31078if test "${ac_cv_prog_DEREZ+set}" = set; then
31079 echo $ECHO_N "(cached) $ECHO_C" >&6
31080else
31081 if test -n "$DEREZ"; then
31082 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31083else
31084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31085for as_dir in $PATH
31086do
31087 IFS=$as_save_IFS
31088 test -z "$as_dir" && as_dir=.
31089 for ac_exec_ext in '' $ac_executable_extensions; do
31090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31091 ac_cv_prog_DEREZ="DeRez"
31092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31093 break 2
31094 fi
31095done
31096done
31097
31098 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31099fi
31100fi
31101DEREZ=$ac_cv_prog_DEREZ
31102if test -n "$DEREZ"; then
31103 echo "$as_me:$LINENO: result: $DEREZ" >&5
31104echo "${ECHO_T}$DEREZ" >&6
31105else
31106 echo "$as_me:$LINENO: result: no" >&5
31107echo "${ECHO_T}no" >&6
31108fi
31109
31110 # Extract the first word of "SetFile", so it can be a program name with args.
31111set dummy SetFile; ac_word=$2
31112echo "$as_me:$LINENO: checking for $ac_word" >&5
31113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31114if test "${ac_cv_prog_SETFILE+set}" = set; then
31115 echo $ECHO_N "(cached) $ECHO_C" >&6
31116else
31117 if test -n "$SETFILE"; then
31118 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31119else
31120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31121for as_dir in $PATH
31122do
31123 IFS=$as_save_IFS
31124 test -z "$as_dir" && as_dir=.
31125 for ac_exec_ext in '' $ac_executable_extensions; do
31126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31127 ac_cv_prog_SETFILE="SetFile"
31128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31129 break 2
31130 fi
31131done
31132done
31133
31134 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31135fi
31136fi
31137SETFILE=$ac_cv_prog_SETFILE
31138if test -n "$SETFILE"; then
31139 echo "$as_me:$LINENO: result: $SETFILE" >&5
31140echo "${ECHO_T}$SETFILE" >&6
31141else
31142 echo "$as_me:$LINENO: result: no" >&5
31143echo "${ECHO_T}no" >&6
31144fi
31145
31146
31147 MACSETFILE="\$(SETFILE)"
31148
31149 if test "$wxUSE_MAC" = 1; then
1a79f136 31150 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31151
1a79f136 31152 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31153 else
31154 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31155 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31156 fi
31157else
ffa0583f
RL
31158 MACSETFILE="@true"
31159 MACRESWXCONFIG="@true"
a848cd7e
SC
31160
31161 if test "$wxUSE_PM" = 1; then
31162 MACRESCOMP="emxbind -ep"
31163 else
ffa0583f 31164 MACRESCOMP="@true"
a848cd7e
SC
31165 fi
31166fi
31167
31168
31169
31170echo "$as_me:$LINENO: checking for mode_t" >&5
31171echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31172if test "${ac_cv_type_mode_t+set}" = set; then
31173 echo $ECHO_N "(cached) $ECHO_C" >&6
31174else
31175 cat >conftest.$ac_ext <<_ACEOF
31176/* confdefs.h. */
31177_ACEOF
31178cat confdefs.h >>conftest.$ac_ext
31179cat >>conftest.$ac_ext <<_ACEOF
31180/* end confdefs.h. */
31181$ac_includes_default
31182int
31183main ()
31184{
31185if ((mode_t *) 0)
31186 return 0;
31187if (sizeof (mode_t))
31188 return 0;
31189 ;
31190 return 0;
31191}
31192_ACEOF
31193rm -f conftest.$ac_objext
31194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31195 (eval $ac_compile) 2>conftest.er1
a848cd7e 31196 ac_status=$?
ac1cb8d3
VS
31197 grep -v '^ *+' conftest.er1 >conftest.err
31198 rm -f conftest.er1
31199 cat conftest.err >&5
a848cd7e
SC
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); } &&
6ebeb4c7 31202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204 (eval $ac_try) 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; } &&
31208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31210 (eval $ac_try) 2>&5
31211 ac_status=$?
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); }; }; then
31214 ac_cv_type_mode_t=yes
31215else
31216 echo "$as_me: failed program was:" >&5
31217sed 's/^/| /' conftest.$ac_ext >&5
31218
31219ac_cv_type_mode_t=no
31220fi
ac1cb8d3 31221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31222fi
31223echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31224echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31225if test $ac_cv_type_mode_t = yes; then
31226 :
31227else
31228
31229cat >>confdefs.h <<_ACEOF
31230#define mode_t int
31231_ACEOF
31232
31233fi
31234
31235echo "$as_me:$LINENO: checking for off_t" >&5
31236echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31237if test "${ac_cv_type_off_t+set}" = set; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31239else
31240 cat >conftest.$ac_ext <<_ACEOF
31241/* confdefs.h. */
31242_ACEOF
31243cat confdefs.h >>conftest.$ac_ext
31244cat >>conftest.$ac_ext <<_ACEOF
31245/* end confdefs.h. */
31246$ac_includes_default
31247int
31248main ()
31249{
31250if ((off_t *) 0)
31251 return 0;
31252if (sizeof (off_t))
31253 return 0;
31254 ;
31255 return 0;
31256}
31257_ACEOF
31258rm -f conftest.$ac_objext
31259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31260 (eval $ac_compile) 2>conftest.er1
a848cd7e 31261 ac_status=$?
ac1cb8d3
VS
31262 grep -v '^ *+' conftest.er1 >conftest.err
31263 rm -f conftest.er1
31264 cat conftest.err >&5
a848cd7e
SC
31265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266 (exit $ac_status); } &&
6ebeb4c7 31267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269 (eval $ac_try) 2>&5
31270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; } &&
31273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31275 (eval $ac_try) 2>&5
31276 ac_status=$?
31277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278 (exit $ac_status); }; }; then
31279 ac_cv_type_off_t=yes
31280else
31281 echo "$as_me: failed program was:" >&5
31282sed 's/^/| /' conftest.$ac_ext >&5
31283
31284ac_cv_type_off_t=no
31285fi
ac1cb8d3 31286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31287fi
31288echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31289echo "${ECHO_T}$ac_cv_type_off_t" >&6
31290if test $ac_cv_type_off_t = yes; then
31291 :
31292else
31293
31294cat >>confdefs.h <<_ACEOF
31295#define off_t long
31296_ACEOF
31297
31298fi
31299
31300echo "$as_me:$LINENO: checking for pid_t" >&5
31301echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31302if test "${ac_cv_type_pid_t+set}" = set; then
31303 echo $ECHO_N "(cached) $ECHO_C" >&6
31304else
31305 cat >conftest.$ac_ext <<_ACEOF
31306/* confdefs.h. */
31307_ACEOF
31308cat confdefs.h >>conftest.$ac_ext
31309cat >>conftest.$ac_ext <<_ACEOF
31310/* end confdefs.h. */
31311$ac_includes_default
31312int
31313main ()
31314{
31315if ((pid_t *) 0)
31316 return 0;
31317if (sizeof (pid_t))
31318 return 0;
31319 ;
31320 return 0;
31321}
31322_ACEOF
31323rm -f conftest.$ac_objext
31324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31325 (eval $ac_compile) 2>conftest.er1
a848cd7e 31326 ac_status=$?
ac1cb8d3
VS
31327 grep -v '^ *+' conftest.er1 >conftest.err
31328 rm -f conftest.er1
31329 cat conftest.err >&5
a848cd7e
SC
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); } &&
6ebeb4c7 31332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31334 (eval $ac_try) 2>&5
31335 ac_status=$?
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); }; } &&
31338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340 (eval $ac_try) 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; }; then
31344 ac_cv_type_pid_t=yes
31345else
31346 echo "$as_me: failed program was:" >&5
31347sed 's/^/| /' conftest.$ac_ext >&5
31348
31349ac_cv_type_pid_t=no
31350fi
ac1cb8d3 31351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31352fi
31353echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31354echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31355if test $ac_cv_type_pid_t = yes; then
31356 :
31357else
31358
31359cat >>confdefs.h <<_ACEOF
31360#define pid_t int
31361_ACEOF
31362
31363fi
31364
31365echo "$as_me:$LINENO: checking for size_t" >&5
31366echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31367if test "${ac_cv_type_size_t+set}" = set; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31369else
31370 cat >conftest.$ac_ext <<_ACEOF
31371/* confdefs.h. */
31372_ACEOF
31373cat confdefs.h >>conftest.$ac_ext
31374cat >>conftest.$ac_ext <<_ACEOF
31375/* end confdefs.h. */
31376$ac_includes_default
31377int
31378main ()
31379{
31380if ((size_t *) 0)
31381 return 0;
31382if (sizeof (size_t))
31383 return 0;
31384 ;
31385 return 0;
31386}
31387_ACEOF
31388rm -f conftest.$ac_objext
31389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31390 (eval $ac_compile) 2>conftest.er1
a848cd7e 31391 ac_status=$?
ac1cb8d3
VS
31392 grep -v '^ *+' conftest.er1 >conftest.err
31393 rm -f conftest.er1
31394 cat conftest.err >&5
a848cd7e
SC
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); } &&
6ebeb4c7 31397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31399 (eval $ac_try) 2>&5
31400 ac_status=$?
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); }; } &&
31403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31405 (eval $ac_try) 2>&5
31406 ac_status=$?
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; }; then
31409 ac_cv_type_size_t=yes
31410else
31411 echo "$as_me: failed program was:" >&5
31412sed 's/^/| /' conftest.$ac_ext >&5
31413
31414ac_cv_type_size_t=no
31415fi
ac1cb8d3 31416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31417fi
31418echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31419echo "${ECHO_T}$ac_cv_type_size_t" >&6
31420if test $ac_cv_type_size_t = yes; then
31421 :
31422else
31423
31424cat >>confdefs.h <<_ACEOF
31425#define size_t unsigned
31426_ACEOF
31427
31428fi
31429
31430echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
31431echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
31432if test "${ac_cv_type_uid_t+set}" = set; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31434else
31435 cat >conftest.$ac_ext <<_ACEOF
31436/* confdefs.h. */
31437_ACEOF
31438cat confdefs.h >>conftest.$ac_ext
31439cat >>conftest.$ac_ext <<_ACEOF
31440/* end confdefs.h. */
31441#include <sys/types.h>
31442
31443_ACEOF
31444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31445 $EGREP "uid_t" >/dev/null 2>&1; then
31446 ac_cv_type_uid_t=yes
31447else
31448 ac_cv_type_uid_t=no
31449fi
31450rm -f conftest*
31451
31452fi
31453echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31454echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31455if test $ac_cv_type_uid_t = no; then
31456
31457cat >>confdefs.h <<\_ACEOF
31458#define uid_t int
31459_ACEOF
31460
31461
31462cat >>confdefs.h <<\_ACEOF
31463#define gid_t int
31464_ACEOF
31465
31466fi
31467
31468
d51253e8
RL
31469echo "$as_me:$LINENO: checking for ssize_t" >&5
31470echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31471if test "${ac_cv_type_ssize_t+set}" = set; then
31472 echo $ECHO_N "(cached) $ECHO_C" >&6
31473else
31474 cat >conftest.$ac_ext <<_ACEOF
31475/* confdefs.h. */
31476_ACEOF
31477cat confdefs.h >>conftest.$ac_ext
31478cat >>conftest.$ac_ext <<_ACEOF
31479/* end confdefs.h. */
31480$ac_includes_default
31481int
31482main ()
31483{
31484if ((ssize_t *) 0)
31485 return 0;
31486if (sizeof (ssize_t))
31487 return 0;
31488 ;
31489 return 0;
31490}
31491_ACEOF
31492rm -f conftest.$ac_objext
31493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31494 (eval $ac_compile) 2>conftest.er1
31495 ac_status=$?
31496 grep -v '^ *+' conftest.er1 >conftest.err
31497 rm -f conftest.er1
31498 cat conftest.err >&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } &&
6ebeb4c7 31501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
31502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31503 (eval $ac_try) 2>&5
31504 ac_status=$?
31505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31506 (exit $ac_status); }; } &&
31507 { ac_try='test -s conftest.$ac_objext'
31508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31509 (eval $ac_try) 2>&5
31510 ac_status=$?
31511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512 (exit $ac_status); }; }; then
31513 ac_cv_type_ssize_t=yes
31514else
31515 echo "$as_me: failed program was:" >&5
31516sed 's/^/| /' conftest.$ac_ext >&5
31517
31518ac_cv_type_ssize_t=no
31519fi
31520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31521fi
31522echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31523echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31524if test $ac_cv_type_ssize_t = yes; then
31525
31526cat >>confdefs.h <<_ACEOF
31527#define HAVE_SSIZE_T 1
31528_ACEOF
31529
31530
31531fi
31532
31533
a848cd7e
SC
31534
31535
31536ac_ext=cc
31537ac_cpp='$CXXCPP $CPPFLAGS'
31538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31541
31542echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
31543echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
31544if test "${wx_cv_size_t_is_uint+set}" = set; then
31545 echo $ECHO_N "(cached) $ECHO_C" >&6
31546else
31547
31548 cat >conftest.$ac_ext <<_ACEOF
31549/* confdefs.h. */
31550_ACEOF
31551cat confdefs.h >>conftest.$ac_ext
31552cat >>conftest.$ac_ext <<_ACEOF
31553/* end confdefs.h. */
31554#include <stddef.h>
31555int
31556main ()
31557{
31558
31559 return 0; }
31560
31561 struct Foo { void foo(size_t); void foo(unsigned int); };
31562
31563 int bar() {
31564
31565 ;
31566 return 0;
31567}
31568_ACEOF
31569rm -f conftest.$ac_objext
31570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31571 (eval $ac_compile) 2>conftest.er1
a848cd7e 31572 ac_status=$?
ac1cb8d3
VS
31573 grep -v '^ *+' conftest.er1 >conftest.err
31574 rm -f conftest.er1
31575 cat conftest.err >&5
a848cd7e
SC
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); } &&
6ebeb4c7 31578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31580 (eval $ac_try) 2>&5
31581 ac_status=$?
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); }; } &&
31584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31586 (eval $ac_try) 2>&5
31587 ac_status=$?
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; }; then
31590 wx_cv_size_t_is_uint=no
31591else
31592 echo "$as_me: failed program was:" >&5
31593sed 's/^/| /' conftest.$ac_ext >&5
31594
31595wx_cv_size_t_is_uint=yes
31596
31597fi
ac1cb8d3 31598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31599
31600
31601fi
31602echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
31603echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
31604
31605if test "$wx_cv_size_t_is_uint" = "yes"; then
31606 cat >>confdefs.h <<\_ACEOF
31607#define wxSIZE_T_IS_UINT 1
31608_ACEOF
31609
31610else
31611 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
31612echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
31613if test "${wx_cv_size_t_is_ulong+set}" = set; then
31614 echo $ECHO_N "(cached) $ECHO_C" >&6
31615else
31616 cat >conftest.$ac_ext <<_ACEOF
31617/* confdefs.h. */
31618_ACEOF
31619cat confdefs.h >>conftest.$ac_ext
31620cat >>conftest.$ac_ext <<_ACEOF
31621/* end confdefs.h. */
31622#include <stddef.h>
31623int
31624main ()
31625{
31626
31627 return 0; }
31628
31629 struct Foo { void foo(size_t); void foo(unsigned long); };
31630
31631 int bar() {
31632
31633 ;
31634 return 0;
31635}
31636_ACEOF
31637rm -f conftest.$ac_objext
31638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31639 (eval $ac_compile) 2>conftest.er1
a848cd7e 31640 ac_status=$?
ac1cb8d3
VS
31641 grep -v '^ *+' conftest.er1 >conftest.err
31642 rm -f conftest.er1
31643 cat conftest.err >&5
a848cd7e
SC
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); } &&
6ebeb4c7 31646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31648 (eval $ac_try) 2>&5
31649 ac_status=$?
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); }; } &&
31652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31654 (eval $ac_try) 2>&5
31655 ac_status=$?
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); }; }; then
31658 wx_cv_size_t_is_ulong=no
31659else
31660 echo "$as_me: failed program was:" >&5
31661sed 's/^/| /' conftest.$ac_ext >&5
31662
31663wx_cv_size_t_is_ulong=yes
31664
31665fi
ac1cb8d3 31666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31667
31668fi
31669echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
31670echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
31671
31672 if test "$wx_cv_size_t_is_ulong" = "yes"; then
31673 cat >>confdefs.h <<\_ACEOF
31674#define wxSIZE_T_IS_ULONG 1
31675_ACEOF
31676
31677 fi
31678fi
31679
31680ac_ext=c
31681ac_cpp='$CPP $CPPFLAGS'
31682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31684ac_compiler_gnu=$ac_cv_c_compiler_gnu
31685
31686
31687
31688echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
31689echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
31690if test "${wx_cv_struct_pw_gecos+set}" = set; then
31691 echo $ECHO_N "(cached) $ECHO_C" >&6
31692else
31693
31694 cat >conftest.$ac_ext <<_ACEOF
31695/* confdefs.h. */
31696_ACEOF
31697cat confdefs.h >>conftest.$ac_ext
31698cat >>conftest.$ac_ext <<_ACEOF
31699/* end confdefs.h. */
31700#include <pwd.h>
31701int
31702main ()
31703{
31704
31705 char *p;
31706 struct passwd *pw;
31707 p = pw->pw_gecos;
31708
31709 ;
31710 return 0;
31711}
31712_ACEOF
31713rm -f conftest.$ac_objext
31714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31715 (eval $ac_compile) 2>conftest.er1
a848cd7e 31716 ac_status=$?
ac1cb8d3
VS
31717 grep -v '^ *+' conftest.er1 >conftest.err
31718 rm -f conftest.er1
31719 cat conftest.err >&5
a848cd7e
SC
31720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721 (exit $ac_status); } &&
6ebeb4c7 31722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31724 (eval $ac_try) 2>&5
31725 ac_status=$?
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); }; } &&
31728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31730 (eval $ac_try) 2>&5
31731 ac_status=$?
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); }; }; then
31734
31735 wx_cv_struct_pw_gecos=yes
31736
31737else
31738 echo "$as_me: failed program was:" >&5
31739sed 's/^/| /' conftest.$ac_ext >&5
31740
31741
31742 wx_cv_struct_pw_gecos=no
31743
31744
31745fi
ac1cb8d3 31746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31747
31748
31749fi
31750echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
31751echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
31752
31753if test "$wx_cv_struct_pw_gecos" = "yes"; then
31754 cat >>confdefs.h <<\_ACEOF
31755#define HAVE_PW_GECOS 1
31756_ACEOF
31757
31758fi
31759
31760
47a7e797 31761if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
31762 cat >>confdefs.h <<\_ACEOF
31763#define wxUSE_WCHAR_T 1
31764_ACEOF
31765
31766
31767 WCSLEN_FOUND=0
31768 WCHAR_LINK=
31769
31770for ac_func in wcslen
31771do
31772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31773echo "$as_me:$LINENO: checking for $ac_func" >&5
31774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31775if eval "test \"\${$as_ac_var+set}\" = set"; then
31776 echo $ECHO_N "(cached) $ECHO_C" >&6
31777else
31778 cat >conftest.$ac_ext <<_ACEOF
31779/* confdefs.h. */
31780_ACEOF
31781cat confdefs.h >>conftest.$ac_ext
31782cat >>conftest.$ac_ext <<_ACEOF
31783/* end confdefs.h. */
ac1cb8d3
VS
31784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31786#define $ac_func innocuous_$ac_func
31787
a848cd7e
SC
31788/* System header to define __stub macros and hopefully few prototypes,
31789 which can conflict with char $ac_func (); below.
31790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31791 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31792
a848cd7e
SC
31793#ifdef __STDC__
31794# include <limits.h>
31795#else
31796# include <assert.h>
31797#endif
ac1cb8d3
VS
31798
31799#undef $ac_func
31800
a848cd7e
SC
31801/* Override any gcc2 internal prototype to avoid an error. */
31802#ifdef __cplusplus
31803extern "C"
31804{
31805#endif
31806/* We use char because int might match the return type of a gcc2
31807 builtin and then its argument prototype would still apply. */
31808char $ac_func ();
31809/* The GNU C library defines this for functions which it implements
31810 to always fail with ENOSYS. Some functions are actually named
31811 something starting with __ and the normal name is an alias. */
31812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31813choke me
31814#else
31815char (*f) () = $ac_func;
31816#endif
31817#ifdef __cplusplus
31818}
31819#endif
31820
31821int
31822main ()
31823{
31824return f != $ac_func;
31825 ;
31826 return 0;
31827}
31828_ACEOF
31829rm -f conftest.$ac_objext conftest$ac_exeext
31830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31831 (eval $ac_link) 2>conftest.er1
a848cd7e 31832 ac_status=$?
ac1cb8d3
VS
31833 grep -v '^ *+' conftest.er1 >conftest.err
31834 rm -f conftest.er1
31835 cat conftest.err >&5
a848cd7e
SC
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } &&
6ebeb4c7 31838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31840 (eval $ac_try) 2>&5
31841 ac_status=$?
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; } &&
31844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; }; then
31850 eval "$as_ac_var=yes"
31851else
31852 echo "$as_me: failed program was:" >&5
31853sed 's/^/| /' conftest.$ac_ext >&5
31854
31855eval "$as_ac_var=no"
31856fi
ac1cb8d3
VS
31857rm -f conftest.err conftest.$ac_objext \
31858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31859fi
31860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31862if test `eval echo '${'$as_ac_var'}'` = yes; then
31863 cat >>confdefs.h <<_ACEOF
31864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31865_ACEOF
31866 WCSLEN_FOUND=1
31867fi
31868done
31869
31870
31871 if test "$WCSLEN_FOUND" = 0; then
31872 if test "$TOOLKIT" = "MSW"; then
31873 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31874echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31875if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31876 echo $ECHO_N "(cached) $ECHO_C" >&6
31877else
31878 ac_check_lib_save_LIBS=$LIBS
31879LIBS="-lmsvcrt $LIBS"
31880cat >conftest.$ac_ext <<_ACEOF
31881/* confdefs.h. */
31882_ACEOF
31883cat confdefs.h >>conftest.$ac_ext
31884cat >>conftest.$ac_ext <<_ACEOF
31885/* end confdefs.h. */
31886
31887/* Override any gcc2 internal prototype to avoid an error. */
31888#ifdef __cplusplus
31889extern "C"
31890#endif
31891/* We use char because int might match the return type of a gcc2
31892 builtin and then its argument prototype would still apply. */
31893char wcslen ();
31894int
31895main ()
31896{
31897wcslen ();
31898 ;
31899 return 0;
31900}
31901_ACEOF
31902rm -f conftest.$ac_objext conftest$ac_exeext
31903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31904 (eval $ac_link) 2>conftest.er1
a848cd7e 31905 ac_status=$?
ac1cb8d3
VS
31906 grep -v '^ *+' conftest.er1 >conftest.err
31907 rm -f conftest.er1
31908 cat conftest.err >&5
a848cd7e
SC
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); } &&
6ebeb4c7 31911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31913 (eval $ac_try) 2>&5
31914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; } &&
31917 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31919 (eval $ac_try) 2>&5
31920 ac_status=$?
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); }; }; then
31923 ac_cv_lib_msvcrt_wcslen=yes
31924else
31925 echo "$as_me: failed program was:" >&5
31926sed 's/^/| /' conftest.$ac_ext >&5
31927
31928ac_cv_lib_msvcrt_wcslen=no
31929fi
ac1cb8d3
VS
31930rm -f conftest.err conftest.$ac_objext \
31931 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31932LIBS=$ac_check_lib_save_LIBS
31933fi
31934echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31935echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31936if test $ac_cv_lib_msvcrt_wcslen = yes; then
31937 WCHAR_OK=1
31938fi
31939
31940 else
31941 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31942echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31943if test "${ac_cv_lib_w_wcslen+set}" = set; then
31944 echo $ECHO_N "(cached) $ECHO_C" >&6
31945else
31946 ac_check_lib_save_LIBS=$LIBS
31947LIBS="-lw $LIBS"
31948cat >conftest.$ac_ext <<_ACEOF
31949/* confdefs.h. */
31950_ACEOF
31951cat confdefs.h >>conftest.$ac_ext
31952cat >>conftest.$ac_ext <<_ACEOF
31953/* end confdefs.h. */
31954
31955/* Override any gcc2 internal prototype to avoid an error. */
31956#ifdef __cplusplus
31957extern "C"
31958#endif
31959/* We use char because int might match the return type of a gcc2
31960 builtin and then its argument prototype would still apply. */
31961char wcslen ();
31962int
31963main ()
31964{
31965wcslen ();
31966 ;
31967 return 0;
31968}
31969_ACEOF
31970rm -f conftest.$ac_objext conftest$ac_exeext
31971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31972 (eval $ac_link) 2>conftest.er1
a848cd7e 31973 ac_status=$?
ac1cb8d3
VS
31974 grep -v '^ *+' conftest.er1 >conftest.err
31975 rm -f conftest.er1
31976 cat conftest.err >&5
a848cd7e
SC
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); } &&
6ebeb4c7 31979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31981 (eval $ac_try) 2>&5
31982 ac_status=$?
31983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); }; } &&
31985 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31987 (eval $ac_try) 2>&5
31988 ac_status=$?
31989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); }; }; then
31991 ac_cv_lib_w_wcslen=yes
31992else
31993 echo "$as_me: failed program was:" >&5
31994sed 's/^/| /' conftest.$ac_ext >&5
31995
31996ac_cv_lib_w_wcslen=no
31997fi
ac1cb8d3
VS
31998rm -f conftest.err conftest.$ac_objext \
31999 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32000LIBS=$ac_check_lib_save_LIBS
32001fi
32002echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32003echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32004if test $ac_cv_lib_w_wcslen = yes; then
32005
32006 WCHAR_LINK=" -lw"
32007 WCSLEN_FOUND=1
32008
32009fi
32010
32011 fi
32012 fi
32013
32014 if test "$WCSLEN_FOUND" = 1; then
32015 cat >>confdefs.h <<\_ACEOF
32016#define HAVE_WCSLEN 1
32017_ACEOF
32018
32019 fi
32020
efdf6afe 32021 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32022 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32023 fi
32024
efdf6afe
VZ
32025 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32026echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32027if test "${ac_cv_type_mbstate_t+set}" = set; then
32028 echo $ECHO_N "(cached) $ECHO_C" >&6
32029else
32030 cat >conftest.$ac_ext <<_ACEOF
32031/* confdefs.h. */
32032_ACEOF
32033cat confdefs.h >>conftest.$ac_ext
32034cat >>conftest.$ac_ext <<_ACEOF
32035/* end confdefs.h. */
32036#include <wchar.h>
32037
32038int
32039main ()
32040{
32041if ((mbstate_t *) 0)
32042 return 0;
32043if (sizeof (mbstate_t))
32044 return 0;
32045 ;
32046 return 0;
32047}
32048_ACEOF
32049rm -f conftest.$ac_objext
32050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32051 (eval $ac_compile) 2>conftest.er1
32052 ac_status=$?
32053 grep -v '^ *+' conftest.er1 >conftest.err
32054 rm -f conftest.er1
32055 cat conftest.err >&5
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); } &&
32058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060 (eval $ac_try) 2>&5
32061 ac_status=$?
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; } &&
32064 { ac_try='test -s conftest.$ac_objext'
32065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066 (eval $ac_try) 2>&5
32067 ac_status=$?
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; }; then
32070 ac_cv_type_mbstate_t=yes
32071else
32072 echo "$as_me: failed program was:" >&5
32073sed 's/^/| /' conftest.$ac_ext >&5
32074
32075ac_cv_type_mbstate_t=no
32076fi
32077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32078fi
32079echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32080echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32081if test $ac_cv_type_mbstate_t = yes; then
32082
32083cat >>confdefs.h <<_ACEOF
32084#define HAVE_MBSTATE_T 1
32085_ACEOF
32086
a848cd7e
SC
32087
32088for ac_func in wcsrtombs
32089do
32090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32091echo "$as_me:$LINENO: checking for $ac_func" >&5
32092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32093if eval "test \"\${$as_ac_var+set}\" = set"; then
32094 echo $ECHO_N "(cached) $ECHO_C" >&6
32095else
32096 cat >conftest.$ac_ext <<_ACEOF
32097/* confdefs.h. */
32098_ACEOF
32099cat confdefs.h >>conftest.$ac_ext
32100cat >>conftest.$ac_ext <<_ACEOF
32101/* end confdefs.h. */
ac1cb8d3
VS
32102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32104#define $ac_func innocuous_$ac_func
32105
a848cd7e
SC
32106/* System header to define __stub macros and hopefully few prototypes,
32107 which can conflict with char $ac_func (); below.
32108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32109 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32110
a848cd7e
SC
32111#ifdef __STDC__
32112# include <limits.h>
32113#else
32114# include <assert.h>
32115#endif
ac1cb8d3
VS
32116
32117#undef $ac_func
32118
a848cd7e
SC
32119/* Override any gcc2 internal prototype to avoid an error. */
32120#ifdef __cplusplus
32121extern "C"
32122{
32123#endif
32124/* We use char because int might match the return type of a gcc2
32125 builtin and then its argument prototype would still apply. */
32126char $ac_func ();
32127/* The GNU C library defines this for functions which it implements
32128 to always fail with ENOSYS. Some functions are actually named
32129 something starting with __ and the normal name is an alias. */
32130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32131choke me
32132#else
32133char (*f) () = $ac_func;
32134#endif
32135#ifdef __cplusplus
32136}
32137#endif
32138
32139int
32140main ()
32141{
32142return f != $ac_func;
32143 ;
32144 return 0;
32145}
32146_ACEOF
32147rm -f conftest.$ac_objext conftest$ac_exeext
32148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32149 (eval $ac_link) 2>conftest.er1
a848cd7e 32150 ac_status=$?
ac1cb8d3
VS
32151 grep -v '^ *+' conftest.er1 >conftest.err
32152 rm -f conftest.er1
32153 cat conftest.err >&5
a848cd7e
SC
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } &&
6ebeb4c7 32156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32158 (eval $ac_try) 2>&5
32159 ac_status=$?
32160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161 (exit $ac_status); }; } &&
32162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32164 (eval $ac_try) 2>&5
32165 ac_status=$?
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; }; then
32168 eval "$as_ac_var=yes"
32169else
32170 echo "$as_me: failed program was:" >&5
32171sed 's/^/| /' conftest.$ac_ext >&5
32172
32173eval "$as_ac_var=no"
32174fi
ac1cb8d3
VS
32175rm -f conftest.err conftest.$ac_objext \
32176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32177fi
32178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32180if test `eval echo '${'$as_ac_var'}'` = yes; then
32181 cat >>confdefs.h <<_ACEOF
32182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32183_ACEOF
32184
32185fi
32186done
32187
efdf6afe
VZ
32188fi
32189
a848cd7e
SC
32190else
32191 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32192echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32193fi
32194
32195
32196
32197ac_ext=cc
32198ac_cpp='$CXXCPP $CPPFLAGS'
32199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32202
32203
32204
4a767dd5
VZ
32205
32206for ac_func in snprintf vsnprintf
a848cd7e
SC
32207do
32208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32209echo "$as_me:$LINENO: checking for $ac_func" >&5
32210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32211if eval "test \"\${$as_ac_var+set}\" = set"; then
32212 echo $ECHO_N "(cached) $ECHO_C" >&6
32213else
32214 cat >conftest.$ac_ext <<_ACEOF
32215/* confdefs.h. */
32216_ACEOF
32217cat confdefs.h >>conftest.$ac_ext
32218cat >>conftest.$ac_ext <<_ACEOF
32219/* end confdefs.h. */
ac1cb8d3
VS
32220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32222#define $ac_func innocuous_$ac_func
32223
a848cd7e
SC
32224/* System header to define __stub macros and hopefully few prototypes,
32225 which can conflict with char $ac_func (); below.
32226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32227 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32228
a848cd7e
SC
32229#ifdef __STDC__
32230# include <limits.h>
32231#else
32232# include <assert.h>
32233#endif
ac1cb8d3
VS
32234
32235#undef $ac_func
32236
a848cd7e
SC
32237/* Override any gcc2 internal prototype to avoid an error. */
32238#ifdef __cplusplus
32239extern "C"
32240{
32241#endif
32242/* We use char because int might match the return type of a gcc2
32243 builtin and then its argument prototype would still apply. */
32244char $ac_func ();
32245/* The GNU C library defines this for functions which it implements
32246 to always fail with ENOSYS. Some functions are actually named
32247 something starting with __ and the normal name is an alias. */
32248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32249choke me
32250#else
32251char (*f) () = $ac_func;
32252#endif
32253#ifdef __cplusplus
32254}
32255#endif
32256
32257int
32258main ()
32259{
32260return f != $ac_func;
32261 ;
32262 return 0;
32263}
32264_ACEOF
32265rm -f conftest.$ac_objext conftest$ac_exeext
32266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32267 (eval $ac_link) 2>conftest.er1
a848cd7e 32268 ac_status=$?
ac1cb8d3
VS
32269 grep -v '^ *+' conftest.er1 >conftest.err
32270 rm -f conftest.er1
32271 cat conftest.err >&5
a848cd7e
SC
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } &&
6ebeb4c7 32274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32276 (eval $ac_try) 2>&5
32277 ac_status=$?
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); }; } &&
32280 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282 (eval $ac_try) 2>&5
32283 ac_status=$?
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; }; then
32286 eval "$as_ac_var=yes"
32287else
32288 echo "$as_me: failed program was:" >&5
32289sed 's/^/| /' conftest.$ac_ext >&5
32290
32291eval "$as_ac_var=no"
32292fi
ac1cb8d3
VS
32293rm -f conftest.err conftest.$ac_objext \
32294 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32295fi
32296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32298if test `eval echo '${'$as_ac_var'}'` = yes; then
32299 cat >>confdefs.h <<_ACEOF
32300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32301_ACEOF
32302
32303fi
32304done
32305
32306
32307if test "$ac_cv_func_vsnprintf" = "yes"; then
32308 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32309echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32310if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32311 echo $ECHO_N "(cached) $ECHO_C" >&6
32312else
32313
efdf6afe 32314 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32315/* confdefs.h. */
32316_ACEOF
32317cat confdefs.h >>conftest.$ac_ext
32318cat >>conftest.$ac_ext <<_ACEOF
32319/* end confdefs.h. */
32320
32321 #include <stdio.h>
32322 #include <stdarg.h>
efdf6afe
VZ
32323 #ifdef __MSL__
32324 #if __MSL__ >= 0x6000
32325 namespace std {}
32326 using namespace std;
32327 #endif
32328 #endif
a848cd7e
SC
32329
32330int
32331main ()
32332{
32333
32334 char *buf;
32335 va_list ap;
62fa8b3a 32336 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
32337
32338 ;
32339 return 0;
32340}
32341_ACEOF
32342rm -f conftest.$ac_objext
32343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32344 (eval $ac_compile) 2>conftest.er1
32345 ac_status=$?
32346 grep -v '^ *+' conftest.er1 >conftest.err
32347 rm -f conftest.er1
32348 cat conftest.err >&5
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); } &&
6ebeb4c7 32351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
32352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32353 (eval $ac_try) 2>&5
32354 ac_status=$?
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); }; } &&
32357 { ac_try='test -s conftest.$ac_objext'
32358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359 (eval $ac_try) 2>&5
32360 ac_status=$?
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); }; }; then
32363 wx_cv_func_vsnprintf_decl=yes
32364else
32365 echo "$as_me: failed program was:" >&5
32366sed 's/^/| /' conftest.$ac_ext >&5
32367
a848cd7e
SC
32368wx_cv_func_vsnprintf_decl=no
32369
32370fi
ac1cb8d3 32371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32372
32373
32374fi
32375echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
32376echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
32377
32378 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
32379 cat >>confdefs.h <<\_ACEOF
32380#define HAVE_VSNPRINTF_DECL 1
32381_ACEOF
32382
62fa8b3a
MW
32383
32384 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
32385echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
32386if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
32387 echo $ECHO_N "(cached) $ECHO_C" >&6
32388else
32389
32390 cat >conftest.$ac_ext <<_ACEOF
32391/* confdefs.h. */
32392_ACEOF
32393cat confdefs.h >>conftest.$ac_ext
32394cat >>conftest.$ac_ext <<_ACEOF
32395/* end confdefs.h. */
32396
32397 #include <stdio.h>
32398 #include <stdarg.h>
32399 #ifdef __MSL__
32400 #if __MSL__ >= 0x6000
32401 namespace std {}
32402 using namespace std;
32403 #endif
32404 #endif
32405
32406int
32407main ()
32408{
32409
32410 char *buf;
32411 va_list ap;
32412 const char *fmt = "%s";
32413 vsnprintf(buf, 10u, fmt, ap);
32414
32415 ;
32416 return 0;
32417}
32418_ACEOF
32419rm -f conftest.$ac_objext
32420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32421 (eval $ac_compile) 2>conftest.er1
32422 ac_status=$?
32423 grep -v '^ *+' conftest.er1 >conftest.err
32424 rm -f conftest.er1
32425 cat conftest.err >&5
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); } &&
32428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32430 (eval $ac_try) 2>&5
32431 ac_status=$?
32432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433 (exit $ac_status); }; } &&
32434 { ac_try='test -s conftest.$ac_objext'
32435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32436 (eval $ac_try) 2>&5
32437 ac_status=$?
32438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439 (exit $ac_status); }; }; then
32440 wx_cv_func_broken_vsnprintf_decl=no
32441else
32442 echo "$as_me: failed program was:" >&5
32443sed 's/^/| /' conftest.$ac_ext >&5
32444
32445wx_cv_func_broken_vsnprintf_decl=yes
32446
32447fi
32448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32449
32450
32451fi
32452echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
32453echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
32454
32455 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
32456 cat >>confdefs.h <<\_ACEOF
32457#define HAVE_BROKEN_VSNPRINTF_DECL 1
32458_ACEOF
32459
32460 fi
a848cd7e
SC
32461 fi
32462fi
32463
4a767dd5
VZ
32464if test "$ac_cv_func_snprintf" = "yes"; then
32465 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
32466echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
32467if test "${wx_cv_func_snprintf_decl+set}" = set; then
32468 echo $ECHO_N "(cached) $ECHO_C" >&6
32469else
32470
32471 cat >conftest.$ac_ext <<_ACEOF
32472/* confdefs.h. */
32473_ACEOF
32474cat confdefs.h >>conftest.$ac_ext
32475cat >>conftest.$ac_ext <<_ACEOF
32476/* end confdefs.h. */
32477
32478 #include <stdio.h>
32479 #include <stdarg.h>
32480 #ifdef __MSL__
32481 #if __MSL__ >= 0x6000
32482 namespace std {}
32483 using namespace std;
32484 #endif
32485 #endif
32486
32487int
32488main ()
32489{
32490
32491 char *buf;
62fa8b3a 32492 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
32493
32494 ;
32495 return 0;
32496}
32497_ACEOF
32498rm -f conftest.$ac_objext
32499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32500 (eval $ac_compile) 2>conftest.er1
32501 ac_status=$?
32502 grep -v '^ *+' conftest.er1 >conftest.err
32503 rm -f conftest.er1
32504 cat conftest.err >&5
32505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506 (exit $ac_status); } &&
32507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32509 (eval $ac_try) 2>&5
32510 ac_status=$?
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); }; } &&
32513 { ac_try='test -s conftest.$ac_objext'
32514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32515 (eval $ac_try) 2>&5
32516 ac_status=$?
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); }; }; then
32519 wx_cv_func_snprintf_decl=yes
32520else
32521 echo "$as_me: failed program was:" >&5
32522sed 's/^/| /' conftest.$ac_ext >&5
32523
32524wx_cv_func_snprintf_decl=no
32525
32526fi
32527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32528
32529
32530fi
32531echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
32532echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
32533
32534 if test "$wx_cv_func_snprintf_decl" = "yes"; then
32535 cat >>confdefs.h <<\_ACEOF
32536#define HAVE_SNPRINTF_DECL 1
32537_ACEOF
32538
62fa8b3a
MW
32539
32540 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
32541echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
32542if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
32543 echo $ECHO_N "(cached) $ECHO_C" >&6
32544else
32545
32546 cat >conftest.$ac_ext <<_ACEOF
32547/* confdefs.h. */
32548_ACEOF
32549cat confdefs.h >>conftest.$ac_ext
32550cat >>conftest.$ac_ext <<_ACEOF
32551/* end confdefs.h. */
32552
32553 #include <stdio.h>
32554 #include <stdarg.h>
32555 #ifdef __MSL__
32556 #if __MSL__ >= 0x6000
32557 namespace std {}
32558 using namespace std;
32559 #endif
32560 #endif
32561
32562int
32563main ()
32564{
32565
32566 char *buf;
32567 const char *fmt = "%s";
32568 snprintf(buf, 10u, fmt, "wx");
32569
32570 ;
32571 return 0;
32572}
32573_ACEOF
32574rm -f conftest.$ac_objext
32575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32576 (eval $ac_compile) 2>conftest.er1
32577 ac_status=$?
32578 grep -v '^ *+' conftest.er1 >conftest.err
32579 rm -f conftest.er1
32580 cat conftest.err >&5
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); } &&
32583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32585 (eval $ac_try) 2>&5
32586 ac_status=$?
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); }; } &&
32589 { ac_try='test -s conftest.$ac_objext'
32590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32591 (eval $ac_try) 2>&5
32592 ac_status=$?
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); }; }; then
32595 wx_cv_func_broken_snprintf_decl=no
32596else
32597 echo "$as_me: failed program was:" >&5
32598sed 's/^/| /' conftest.$ac_ext >&5
32599
32600wx_cv_func_broken_snprintf_decl=yes
32601
32602fi
32603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32604
32605
32606fi
32607echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
32608echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
32609
32610 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
32611 cat >>confdefs.h <<\_ACEOF
32612#define HAVE_BROKEN_SNPRINTF_DECL 1
32613_ACEOF
32614
32615 fi
4a767dd5
VZ
32616 fi
32617fi
32618
a848cd7e
SC
32619if test "$wxUSE_UNICODE" = yes; then
32620
32621
32622
fbe47c7b
VS
32623
32624
32625
32626for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
32627do
32628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32629echo "$as_me:$LINENO: checking for $ac_func" >&5
32630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32631if eval "test \"\${$as_ac_var+set}\" = set"; then
32632 echo $ECHO_N "(cached) $ECHO_C" >&6
32633else
32634 cat >conftest.$ac_ext <<_ACEOF
32635/* confdefs.h. */
32636_ACEOF
32637cat confdefs.h >>conftest.$ac_ext
32638cat >>conftest.$ac_ext <<_ACEOF
32639/* end confdefs.h. */
ac1cb8d3
VS
32640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32642#define $ac_func innocuous_$ac_func
32643
a848cd7e
SC
32644/* System header to define __stub macros and hopefully few prototypes,
32645 which can conflict with char $ac_func (); below.
32646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32647 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32648
a848cd7e
SC
32649#ifdef __STDC__
32650# include <limits.h>
32651#else
32652# include <assert.h>
32653#endif
ac1cb8d3
VS
32654
32655#undef $ac_func
32656
a848cd7e
SC
32657/* Override any gcc2 internal prototype to avoid an error. */
32658#ifdef __cplusplus
32659extern "C"
32660{
32661#endif
32662/* We use char because int might match the return type of a gcc2
32663 builtin and then its argument prototype would still apply. */
32664char $ac_func ();
32665/* The GNU C library defines this for functions which it implements
32666 to always fail with ENOSYS. Some functions are actually named
32667 something starting with __ and the normal name is an alias. */
32668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32669choke me
32670#else
32671char (*f) () = $ac_func;
32672#endif
32673#ifdef __cplusplus
32674}
32675#endif
32676
32677int
32678main ()
32679{
32680return f != $ac_func;
32681 ;
32682 return 0;
32683}
32684_ACEOF
32685rm -f conftest.$ac_objext conftest$ac_exeext
32686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32687 (eval $ac_link) 2>conftest.er1
a848cd7e 32688 ac_status=$?
ac1cb8d3
VS
32689 grep -v '^ *+' conftest.er1 >conftest.err
32690 rm -f conftest.er1
32691 cat conftest.err >&5
a848cd7e
SC
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); } &&
6ebeb4c7 32694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32696 (eval $ac_try) 2>&5
32697 ac_status=$?
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); }; } &&
32700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32702 (eval $ac_try) 2>&5
32703 ac_status=$?
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; }; then
32706 eval "$as_ac_var=yes"
32707else
32708 echo "$as_me: failed program was:" >&5
32709sed 's/^/| /' conftest.$ac_ext >&5
32710
32711eval "$as_ac_var=no"
32712fi
ac1cb8d3
VS
32713rm -f conftest.err conftest.$ac_objext \
32714 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32715fi
32716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32718if test `eval echo '${'$as_ac_var'}'` = yes; then
32719 cat >>confdefs.h <<_ACEOF
32720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32721_ACEOF
32722
32723fi
32724done
32725
32726
32727 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
32728echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
32729 cat >conftest.$ac_ext <<_ACEOF
32730/* confdefs.h. */
32731_ACEOF
32732cat confdefs.h >>conftest.$ac_ext
32733cat >>conftest.$ac_ext <<_ACEOF
32734/* end confdefs.h. */
32735#include <wchar.h>
32736int
32737main ()
32738{
32739&_vsnwprintf;
32740 ;
32741 return 0;
32742}
32743_ACEOF
32744rm -f conftest.$ac_objext
32745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32746 (eval $ac_compile) 2>conftest.er1
a848cd7e 32747 ac_status=$?
ac1cb8d3
VS
32748 grep -v '^ *+' conftest.er1 >conftest.err
32749 rm -f conftest.er1
32750 cat conftest.err >&5
a848cd7e
SC
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); } &&
6ebeb4c7 32753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32755 (eval $ac_try) 2>&5
32756 ac_status=$?
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); }; } &&
32759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32761 (eval $ac_try) 2>&5
32762 ac_status=$?
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); }; }; then
32765 echo "$as_me:$LINENO: result: yes" >&5
32766echo "${ECHO_T}yes" >&6
32767 cat >>confdefs.h <<\_ACEOF
32768#define HAVE__VSNWPRINTF 1
32769_ACEOF
32770
32771else
32772 echo "$as_me: failed program was:" >&5
32773sed 's/^/| /' conftest.$ac_ext >&5
32774
32775echo "$as_me:$LINENO: result: no" >&5
32776echo "${ECHO_T}no" >&6
32777fi
ac1cb8d3 32778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
32779fi
32780
32781ac_ext=c
32782ac_cpp='$CPP $CPPFLAGS'
32783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32785ac_compiler_gnu=$ac_cv_c_compiler_gnu
32786
32787
6ebeb4c7
VZ
32788if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
32789
32790for ac_func in fnmatch
32791do
32792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32793echo "$as_me:$LINENO: checking for $ac_func" >&5
32794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32795if eval "test \"\${$as_ac_var+set}\" = set"; then
32796 echo $ECHO_N "(cached) $ECHO_C" >&6
32797else
32798 cat >conftest.$ac_ext <<_ACEOF
32799/* confdefs.h. */
32800_ACEOF
32801cat confdefs.h >>conftest.$ac_ext
32802cat >>conftest.$ac_ext <<_ACEOF
32803/* end confdefs.h. */
32804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32806#define $ac_func innocuous_$ac_func
32807
32808/* System header to define __stub macros and hopefully few prototypes,
32809 which can conflict with char $ac_func (); below.
32810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32811 <limits.h> exists even on freestanding compilers. */
32812
32813#ifdef __STDC__
32814# include <limits.h>
32815#else
32816# include <assert.h>
32817#endif
32818
32819#undef $ac_func
32820
32821/* Override any gcc2 internal prototype to avoid an error. */
32822#ifdef __cplusplus
32823extern "C"
32824{
32825#endif
32826/* We use char because int might match the return type of a gcc2
32827 builtin and then its argument prototype would still apply. */
32828char $ac_func ();
32829/* The GNU C library defines this for functions which it implements
32830 to always fail with ENOSYS. Some functions are actually named
32831 something starting with __ and the normal name is an alias. */
32832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32833choke me
32834#else
32835char (*f) () = $ac_func;
32836#endif
32837#ifdef __cplusplus
32838}
32839#endif
32840
32841int
32842main ()
32843{
32844return f != $ac_func;
32845 ;
32846 return 0;
32847}
32848_ACEOF
32849rm -f conftest.$ac_objext conftest$ac_exeext
32850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32851 (eval $ac_link) 2>conftest.er1
32852 ac_status=$?
32853 grep -v '^ *+' conftest.er1 >conftest.err
32854 rm -f conftest.er1
32855 cat conftest.err >&5
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); } &&
32858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860 (eval $ac_try) 2>&5
32861 ac_status=$?
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; } &&
32864 { ac_try='test -s conftest$ac_exeext'
32865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32866 (eval $ac_try) 2>&5
32867 ac_status=$?
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); }; }; then
32870 eval "$as_ac_var=yes"
32871else
32872 echo "$as_me: failed program was:" >&5
32873sed 's/^/| /' conftest.$ac_ext >&5
32874
32875eval "$as_ac_var=no"
32876fi
32877rm -f conftest.err conftest.$ac_objext \
32878 conftest$ac_exeext conftest.$ac_ext
32879fi
32880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32881echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32882if test `eval echo '${'$as_ac_var'}'` = yes; then
32883 cat >>confdefs.h <<_ACEOF
32884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32885_ACEOF
32886
32887fi
32888done
32889
32890fi
32891
32892if test "$wxUSE_FILE" = "yes"; then
32893
32894for ac_func in fsync
32895do
32896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32897echo "$as_me:$LINENO: checking for $ac_func" >&5
32898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32899if eval "test \"\${$as_ac_var+set}\" = set"; then
32900 echo $ECHO_N "(cached) $ECHO_C" >&6
32901else
32902 cat >conftest.$ac_ext <<_ACEOF
32903/* confdefs.h. */
32904_ACEOF
32905cat confdefs.h >>conftest.$ac_ext
32906cat >>conftest.$ac_ext <<_ACEOF
32907/* end confdefs.h. */
32908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32910#define $ac_func innocuous_$ac_func
32911
32912/* System header to define __stub macros and hopefully few prototypes,
32913 which can conflict with char $ac_func (); below.
32914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32915 <limits.h> exists even on freestanding compilers. */
32916
32917#ifdef __STDC__
32918# include <limits.h>
32919#else
32920# include <assert.h>
32921#endif
32922
32923#undef $ac_func
32924
32925/* Override any gcc2 internal prototype to avoid an error. */
32926#ifdef __cplusplus
32927extern "C"
32928{
32929#endif
32930/* We use char because int might match the return type of a gcc2
32931 builtin and then its argument prototype would still apply. */
32932char $ac_func ();
32933/* The GNU C library defines this for functions which it implements
32934 to always fail with ENOSYS. Some functions are actually named
32935 something starting with __ and the normal name is an alias. */
32936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32937choke me
32938#else
32939char (*f) () = $ac_func;
32940#endif
32941#ifdef __cplusplus
32942}
32943#endif
32944
32945int
32946main ()
32947{
32948return f != $ac_func;
32949 ;
32950 return 0;
32951}
32952_ACEOF
32953rm -f conftest.$ac_objext conftest$ac_exeext
32954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32955 (eval $ac_link) 2>conftest.er1
32956 ac_status=$?
32957 grep -v '^ *+' conftest.er1 >conftest.err
32958 rm -f conftest.er1
32959 cat conftest.err >&5
32960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961 (exit $ac_status); } &&
32962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32964 (eval $ac_try) 2>&5
32965 ac_status=$?
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; } &&
32968 { ac_try='test -s conftest$ac_exeext'
32969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32970 (eval $ac_try) 2>&5
32971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; }; then
32974 eval "$as_ac_var=yes"
32975else
32976 echo "$as_me: failed program was:" >&5
32977sed 's/^/| /' conftest.$ac_ext >&5
32978
32979eval "$as_ac_var=no"
32980fi
32981rm -f conftest.err conftest.$ac_objext \
32982 conftest$ac_exeext conftest.$ac_ext
32983fi
32984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32986if test `eval echo '${'$as_ac_var'}'` = yes; then
32987 cat >>confdefs.h <<_ACEOF
32988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32989_ACEOF
32990
32991fi
32992done
32993
32994fi
a848cd7e
SC
32995
32996
32997if test "$TOOLKIT" != "MSW"; then
32998
32999
33000
33001
33002ac_ext=cc
33003ac_cpp='$CXXCPP $CPPFLAGS'
33004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33007
33008
33009
33010
33011# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33012if test "${with_libiconv_prefix+set}" = set; then
33013 withval="$with_libiconv_prefix"
33014
33015 for dir in `echo "$withval" | tr : ' '`; do
33016 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33017 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33018 done
33019
33020fi;
33021
33022 echo "$as_me:$LINENO: checking for iconv" >&5
33023echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33024if test "${am_cv_func_iconv+set}" = set; then
33025 echo $ECHO_N "(cached) $ECHO_C" >&6
33026else
33027
33028 am_cv_func_iconv="no, consider installing GNU libiconv"
33029 am_cv_lib_iconv=no
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. */
33036#include <stdlib.h>
33037#include <iconv.h>
33038int
33039main ()
33040{
33041iconv_t cd = iconv_open("","");
33042 iconv(cd,NULL,NULL,NULL,NULL);
33043 iconv_close(cd);
33044 ;
33045 return 0;
33046}
33047_ACEOF
33048rm -f conftest.$ac_objext conftest$ac_exeext
33049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33050 (eval $ac_link) 2>conftest.er1
a848cd7e 33051 ac_status=$?
ac1cb8d3
VS
33052 grep -v '^ *+' conftest.er1 >conftest.err
33053 rm -f conftest.er1
33054 cat conftest.err >&5
a848cd7e
SC
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); } &&
6ebeb4c7 33057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059 (eval $ac_try) 2>&5
33060 ac_status=$?
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; } &&
33063 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33065 (eval $ac_try) 2>&5
33066 ac_status=$?
33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); }; }; then
33069 am_cv_func_iconv=yes
33070else
33071 echo "$as_me: failed program was:" >&5
33072sed 's/^/| /' conftest.$ac_ext >&5
33073
33074fi
ac1cb8d3
VS
33075rm -f conftest.err conftest.$ac_objext \
33076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33077 if test "$am_cv_func_iconv" != yes; then
33078 am_save_LIBS="$LIBS"
33079 LIBS="$LIBS -liconv"
33080 cat >conftest.$ac_ext <<_ACEOF
33081/* confdefs.h. */
33082_ACEOF
33083cat confdefs.h >>conftest.$ac_ext
33084cat >>conftest.$ac_ext <<_ACEOF
33085/* end confdefs.h. */
33086#include <stdlib.h>
33087#include <iconv.h>
33088int
33089main ()
33090{
33091iconv_t cd = iconv_open("","");
33092 iconv(cd,NULL,NULL,NULL,NULL);
33093 iconv_close(cd);
33094 ;
33095 return 0;
33096}
33097_ACEOF
33098rm -f conftest.$ac_objext conftest$ac_exeext
33099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33100 (eval $ac_link) 2>conftest.er1
a848cd7e 33101 ac_status=$?
ac1cb8d3
VS
33102 grep -v '^ *+' conftest.er1 >conftest.err
33103 rm -f conftest.er1
33104 cat conftest.err >&5
a848cd7e
SC
33105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106 (exit $ac_status); } &&
6ebeb4c7 33107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33109 (eval $ac_try) 2>&5
33110 ac_status=$?
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); }; } &&
33113 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33115 (eval $ac_try) 2>&5
33116 ac_status=$?
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); }; }; then
33119 am_cv_lib_iconv=yes
33120 am_cv_func_iconv=yes
33121else
33122 echo "$as_me: failed program was:" >&5
33123sed 's/^/| /' conftest.$ac_ext >&5
33124
33125fi
ac1cb8d3
VS
33126rm -f conftest.err conftest.$ac_objext \
33127 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33128 LIBS="$am_save_LIBS"
33129 fi
33130
33131fi
33132echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33133echo "${ECHO_T}$am_cv_func_iconv" >&6
33134 if test "$am_cv_func_iconv" = yes; then
33135
33136cat >>confdefs.h <<\_ACEOF
33137#define HAVE_ICONV 1
33138_ACEOF
33139
33140 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33141echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33142if test "${wx_cv_func_iconv_const+set}" = set; then
33143 echo $ECHO_N "(cached) $ECHO_C" >&6
33144else
33145 cat >conftest.$ac_ext <<_ACEOF
33146/* confdefs.h. */
33147_ACEOF
33148cat confdefs.h >>conftest.$ac_ext
33149cat >>conftest.$ac_ext <<_ACEOF
33150/* end confdefs.h. */
33151
33152#include <stdlib.h>
33153#include <iconv.h>
33154extern
33155#ifdef __cplusplus
33156"C"
33157#endif
33158#if defined(__STDC__) || defined(__cplusplus)
33159size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33160#else
33161size_t iconv();
33162#endif
33163
33164int
33165main ()
33166{
33167
33168 ;
33169 return 0;
33170}
33171_ACEOF
33172rm -f conftest.$ac_objext
33173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33174 (eval $ac_compile) 2>conftest.er1
a848cd7e 33175 ac_status=$?
ac1cb8d3
VS
33176 grep -v '^ *+' conftest.er1 >conftest.err
33177 rm -f conftest.er1
33178 cat conftest.err >&5
a848cd7e
SC
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); } &&
6ebeb4c7 33181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33183 (eval $ac_try) 2>&5
33184 ac_status=$?
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); }; } &&
33187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33189 (eval $ac_try) 2>&5
33190 ac_status=$?
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); }; }; then
33193 wx_cv_func_iconv_const="no"
33194else
33195 echo "$as_me: failed program was:" >&5
33196sed 's/^/| /' conftest.$ac_ext >&5
33197
33198wx_cv_func_iconv_const="yes"
33199
33200fi
ac1cb8d3 33201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33202
33203fi
33204echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33205echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33206
33207 iconv_const=
33208 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33209 iconv_const="const"
33210 fi
33211
33212
33213cat >>confdefs.h <<_ACEOF
33214#define ICONV_CONST $iconv_const
33215_ACEOF
33216
33217 fi
33218 LIBICONV=
33219 if test "$am_cv_lib_iconv" = yes; then
33220 LIBICONV="-liconv"
33221 fi
33222
33223
33224LIBS="$LIBICONV $LIBS"
33225ac_ext=c
33226ac_cpp='$CPP $CPPFLAGS'
33227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33229ac_compiler_gnu=$ac_cv_c_compiler_gnu
33230
33231
33232if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33233
33234for ac_func in sigaction
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
33331fi
33332done
33333
33334
33335 if test "$ac_cv_func_sigaction" = "no"; then
33336 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33337echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33338 wxUSE_ON_FATAL_EXCEPTION=no
33339 fi
33340
33341 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33342
33343
33344 ac_ext=cc
33345ac_cpp='$CXXCPP $CPPFLAGS'
33346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33349
33350
33351 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33352echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33353if test "${wx_cv_type_sa_handler+set}" = set; then
33354 echo $ECHO_N "(cached) $ECHO_C" >&6
33355else
33356
33357 cat >conftest.$ac_ext <<_ACEOF
33358/* confdefs.h. */
33359_ACEOF
33360cat confdefs.h >>conftest.$ac_ext
33361cat >>conftest.$ac_ext <<_ACEOF
33362/* end confdefs.h. */
33363#include <signal.h>
33364int
33365main ()
33366{
33367
33368 extern void testSigHandler(int);
33369
33370 struct sigaction sa;
33371 sa.sa_handler = testSigHandler;
33372
33373 ;
33374 return 0;
33375}
33376_ACEOF
33377rm -f conftest.$ac_objext
33378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33379 (eval $ac_compile) 2>conftest.er1
a848cd7e 33380 ac_status=$?
ac1cb8d3
VS
33381 grep -v '^ *+' conftest.er1 >conftest.err
33382 rm -f conftest.er1
33383 cat conftest.err >&5
a848cd7e
SC
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); } &&
6ebeb4c7 33386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33388 (eval $ac_try) 2>&5
33389 ac_status=$?
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; } &&
33392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33394 (eval $ac_try) 2>&5
33395 ac_status=$?
33396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397 (exit $ac_status); }; }; then
33398
33399 wx_cv_type_sa_handler=int
33400
33401else
33402 echo "$as_me: failed program was:" >&5
33403sed 's/^/| /' conftest.$ac_ext >&5
33404
33405
33406 wx_cv_type_sa_handler=void
33407
33408fi
ac1cb8d3 33409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33410
33411fi
33412echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
33413echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
33414
33415 ac_ext=c
33416ac_cpp='$CPP $CPPFLAGS'
33417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33419ac_compiler_gnu=$ac_cv_c_compiler_gnu
33420
33421
33422 cat >>confdefs.h <<_ACEOF
33423#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
33424_ACEOF
33425
33426 fi
33427fi
33428
eaff0f0d
VZ
33429if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33430
33431
33432 ac_ext=cc
33433ac_cpp='$CXXCPP $CPPFLAGS'
33434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33437
33438
33439 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
33440echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
33441if test "${wx_cv_func_backtrace+set}" = set; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33443else
33444
33445 cat >conftest.$ac_ext <<_ACEOF
33446/* confdefs.h. */
33447_ACEOF
33448cat confdefs.h >>conftest.$ac_ext
33449cat >>conftest.$ac_ext <<_ACEOF
33450/* end confdefs.h. */
33451#include <execinfo.h>
33452int
33453main ()
33454{
33455
33456 void *trace[1];
33457 char **messages;
33458
33459 backtrace(trace, 1);
33460 messages = backtrace_symbols(trace, 1);
33461
33462 ;
33463 return 0;
33464}
33465_ACEOF
33466rm -f conftest.$ac_objext
33467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33468 (eval $ac_compile) 2>conftest.er1
33469 ac_status=$?
33470 grep -v '^ *+' conftest.er1 >conftest.err
33471 rm -f conftest.er1
33472 cat conftest.err >&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); } &&
6ebeb4c7 33475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33477 (eval $ac_try) 2>&5
33478 ac_status=$?
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; } &&
33481 { ac_try='test -s conftest.$ac_objext'
33482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33483 (eval $ac_try) 2>&5
33484 ac_status=$?
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; }; then
33487 wx_cv_func_backtrace=yes
33488else
33489 echo "$as_me: failed program was:" >&5
33490sed 's/^/| /' conftest.$ac_ext >&5
33491
33492wx_cv_func_backtrace=no
33493
33494fi
33495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33496
33497
33498fi
33499echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
33500echo "${ECHO_T}$wx_cv_func_backtrace" >&6
33501
33502
33503 if test "$wx_cv_func_backtrace" = "no"; then
33504 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
33505echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
33506 wxUSE_STACKWALKER=no
33507 else
33508 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
33509echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
33510if test "${wx_cv_func_cxa_demangle+set}" = set; then
33511 echo $ECHO_N "(cached) $ECHO_C" >&6
33512else
33513
33514 cat >conftest.$ac_ext <<_ACEOF
33515/* confdefs.h. */
33516_ACEOF
33517cat confdefs.h >>conftest.$ac_ext
33518cat >>conftest.$ac_ext <<_ACEOF
33519/* end confdefs.h. */
33520#include <cxxabi.h>
33521int
33522main ()
33523{
33524
33525 int rc;
33526 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
33527
33528 ;
33529 return 0;
33530}
33531_ACEOF
dfe0c803
JS
33532rm -f conftest.$ac_objext conftest$ac_exeext
33533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33534 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
33535 ac_status=$?
33536 grep -v '^ *+' conftest.er1 >conftest.err
33537 rm -f conftest.er1
33538 cat conftest.err >&5
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); } &&
6ebeb4c7 33541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33544 ac_status=$?
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; } &&
dfe0c803 33547 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
33548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33549 (eval $ac_try) 2>&5
33550 ac_status=$?
33551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552 (exit $ac_status); }; }; then
33553 wx_cv_func_cxa_demangle=yes
33554else
33555 echo "$as_me: failed program was:" >&5
33556sed 's/^/| /' conftest.$ac_ext >&5
33557
33558wx_cv_func_cxa_demangle=no
33559
33560fi
dfe0c803
JS
33561rm -f conftest.err conftest.$ac_objext \
33562 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
33563
33564
33565fi
33566echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
33567echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
33568
33569 if test "$wx_cv_func_cxa_demangle" = "yes"; then
33570 cat >>confdefs.h <<\_ACEOF
33571#define HAVE_CXA_DEMANGLE 1
33572_ACEOF
33573
33574 fi
33575 fi
33576
33577 ac_ext=c
33578ac_cpp='$CPP $CPPFLAGS'
33579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33581ac_compiler_gnu=$ac_cv_c_compiler_gnu
33582
33583fi
33584
898beab1
DE
33585if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
33586 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
33587echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
33588 wxUSE_STACKWALKER=no
33589fi
33590
33591
a848cd7e
SC
33592
33593
33594for ac_func in mkstemp mktemp
33595do
33596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33597echo "$as_me:$LINENO: checking for $ac_func" >&5
33598echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33599if eval "test \"\${$as_ac_var+set}\" = set"; then
33600 echo $ECHO_N "(cached) $ECHO_C" >&6
33601else
33602 cat >conftest.$ac_ext <<_ACEOF
33603/* confdefs.h. */
33604_ACEOF
33605cat confdefs.h >>conftest.$ac_ext
33606cat >>conftest.$ac_ext <<_ACEOF
33607/* end confdefs.h. */
ac1cb8d3
VS
33608/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33610#define $ac_func innocuous_$ac_func
33611
a848cd7e
SC
33612/* System header to define __stub macros and hopefully few prototypes,
33613 which can conflict with char $ac_func (); below.
33614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33615 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33616
a848cd7e
SC
33617#ifdef __STDC__
33618# include <limits.h>
33619#else
33620# include <assert.h>
33621#endif
ac1cb8d3
VS
33622
33623#undef $ac_func
33624
a848cd7e
SC
33625/* Override any gcc2 internal prototype to avoid an error. */
33626#ifdef __cplusplus
33627extern "C"
33628{
33629#endif
33630/* We use char because int might match the return type of a gcc2
33631 builtin and then its argument prototype would still apply. */
33632char $ac_func ();
33633/* The GNU C library defines this for functions which it implements
33634 to always fail with ENOSYS. Some functions are actually named
33635 something starting with __ and the normal name is an alias. */
33636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33637choke me
33638#else
33639char (*f) () = $ac_func;
33640#endif
33641#ifdef __cplusplus
33642}
33643#endif
33644
33645int
33646main ()
33647{
33648return f != $ac_func;
33649 ;
33650 return 0;
33651}
33652_ACEOF
33653rm -f conftest.$ac_objext conftest$ac_exeext
33654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33655 (eval $ac_link) 2>conftest.er1
a848cd7e 33656 ac_status=$?
ac1cb8d3
VS
33657 grep -v '^ *+' conftest.er1 >conftest.err
33658 rm -f conftest.er1
33659 cat conftest.err >&5
a848cd7e
SC
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); } &&
6ebeb4c7 33662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33664 (eval $ac_try) 2>&5
33665 ac_status=$?
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); }; } &&
33668 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33670 (eval $ac_try) 2>&5
33671 ac_status=$?
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); }; }; then
33674 eval "$as_ac_var=yes"
33675else
33676 echo "$as_me: failed program was:" >&5
33677sed 's/^/| /' conftest.$ac_ext >&5
33678
33679eval "$as_ac_var=no"
33680fi
ac1cb8d3
VS
33681rm -f conftest.err conftest.$ac_objext \
33682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33683fi
33684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33685echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33686if test `eval echo '${'$as_ac_var'}'` = yes; then
33687 cat >>confdefs.h <<_ACEOF
33688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33689_ACEOF
33690 break
33691fi
33692done
33693
33694
33695echo "$as_me:$LINENO: checking for statfs" >&5
33696echo $ECHO_N "checking for statfs... $ECHO_C" >&6
33697if test "${wx_cv_func_statfs+set}" = set; then
33698 echo $ECHO_N "(cached) $ECHO_C" >&6
33699else
33700 cat >conftest.$ac_ext <<_ACEOF
33701/* confdefs.h. */
33702_ACEOF
33703cat confdefs.h >>conftest.$ac_ext
33704cat >>conftest.$ac_ext <<_ACEOF
33705/* end confdefs.h. */
33706
33707 #if defined(__BSD__)
84ae7ca4
VZ
33708 #include <sys/param.h>
33709 #include <sys/mount.h>
a848cd7e 33710 #else
84ae7ca4 33711 #include <sys/vfs.h>
a848cd7e
SC
33712 #endif
33713
33714int
33715main ()
33716{
33717
33718 long l;
33719 struct statfs fs;
33720 statfs("/", &fs);
33721 l = fs.f_bsize;
33722 l += fs.f_blocks;
33723 l += fs.f_bavail;
33724
33725 ;
33726 return 0;
33727}
33728_ACEOF
33729rm -f conftest.$ac_objext
33730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33731 (eval $ac_compile) 2>conftest.er1
a848cd7e 33732 ac_status=$?
ac1cb8d3
VS
33733 grep -v '^ *+' conftest.er1 >conftest.err
33734 rm -f conftest.er1
33735 cat conftest.err >&5
a848cd7e
SC
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); } &&
6ebeb4c7 33738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33740 (eval $ac_try) 2>&5
33741 ac_status=$?
33742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33743 (exit $ac_status); }; } &&
33744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33746 (eval $ac_try) 2>&5
33747 ac_status=$?
33748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749 (exit $ac_status); }; }; then
84ae7ca4 33750 wx_cv_func_statfs=yes
a848cd7e
SC
33751else
33752 echo "$as_me: failed program was:" >&5
33753sed 's/^/| /' conftest.$ac_ext >&5
33754
84ae7ca4 33755wx_cv_func_statfs=no
a848cd7e
SC
33756
33757fi
ac1cb8d3 33758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33759
33760fi
33761echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
33762echo "${ECHO_T}$wx_cv_func_statfs" >&6
33763
33764if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
33765
33766
33767 ac_ext=cc
33768ac_cpp='$CXXCPP $CPPFLAGS'
33769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33772
33773 echo "$as_me:$LINENO: checking for statfs declaration" >&5
33774echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
33775if test "${wx_cv_func_statfs_decl+set}" = set; then
33776 echo $ECHO_N "(cached) $ECHO_C" >&6
33777else
0683aca6
VZ
33778 cat >conftest.$ac_ext <<_ACEOF
33779/* confdefs.h. */
33780_ACEOF
33781cat confdefs.h >>conftest.$ac_ext
33782cat >>conftest.$ac_ext <<_ACEOF
33783/* end confdefs.h. */
84ae7ca4 33784
0683aca6
VZ
33785 #if defined(__BSD__)
33786 #include <sys/param.h>
33787 #include <sys/mount.h>
33788 #else
33789 #include <sys/vfs.h>
33790 #endif
33791
33792int
33793main ()
33794{
33795
33796 struct statfs fs;
33797 statfs("", &fs);
33798
33799 ;
33800 return 0;
33801}
33802_ACEOF
33803rm -f conftest.$ac_objext
33804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33805 (eval $ac_compile) 2>conftest.er1
33806 ac_status=$?
33807 grep -v '^ *+' conftest.er1 >conftest.err
33808 rm -f conftest.er1
33809 cat conftest.err >&5
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); } &&
33812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33814 (eval $ac_try) 2>&5
33815 ac_status=$?
33816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817 (exit $ac_status); }; } &&
33818 { ac_try='test -s conftest.$ac_objext'
33819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33820 (eval $ac_try) 2>&5
33821 ac_status=$?
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); }; }; then
33824 wx_cv_func_statfs_decl=yes
33825else
33826 echo "$as_me: failed program was:" >&5
33827sed 's/^/| /' conftest.$ac_ext >&5
33828
33829wx_cv_func_statfs_decl=no
33830
33831fi
33832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
33833
33834fi
33835echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
33836echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
33837 ac_ext=c
33838ac_cpp='$CPP $CPPFLAGS'
33839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33841ac_compiler_gnu=$ac_cv_c_compiler_gnu
33842
33843
33844 if test "$wx_cv_func_statfs_decl" = "yes"; then
33845 cat >>confdefs.h <<\_ACEOF
33846#define HAVE_STATFS_DECL 1
33847_ACEOF
33848
33849 fi
33850
a848cd7e
SC
33851 wx_cv_type_statvfs_t="struct statfs"
33852 cat >>confdefs.h <<\_ACEOF
33853#define HAVE_STATFS 1
33854_ACEOF
33855
33856else
33857 echo "$as_me:$LINENO: checking for statvfs" >&5
33858echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
33859if test "${wx_cv_func_statvfs+set}" = set; then
33860 echo $ECHO_N "(cached) $ECHO_C" >&6
33861else
33862 cat >conftest.$ac_ext <<_ACEOF
33863/* confdefs.h. */
33864_ACEOF
33865cat confdefs.h >>conftest.$ac_ext
33866cat >>conftest.$ac_ext <<_ACEOF
33867/* end confdefs.h. */
33868
33869 #include <stddef.h>
33870 #include <sys/statvfs.h>
33871
33872int
33873main ()
33874{
33875
33876 statvfs("/", NULL);
33877
33878 ;
33879 return 0;
33880}
33881_ACEOF
33882rm -f conftest.$ac_objext
33883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33884 (eval $ac_compile) 2>conftest.er1
a848cd7e 33885 ac_status=$?
ac1cb8d3
VS
33886 grep -v '^ *+' conftest.er1 >conftest.err
33887 rm -f conftest.er1
33888 cat conftest.err >&5
a848cd7e
SC
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); } &&
6ebeb4c7 33891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33893 (eval $ac_try) 2>&5
33894 ac_status=$?
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); }; } &&
33897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33899 (eval $ac_try) 2>&5
33900 ac_status=$?
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; }; then
33903 wx_cv_func_statvfs=yes
33904else
33905 echo "$as_me: failed program was:" >&5
33906sed 's/^/| /' conftest.$ac_ext >&5
33907
33908wx_cv_func_statvfs=no
33909
33910fi
ac1cb8d3 33911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33912
33913fi
33914echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
33915echo "${ECHO_T}$wx_cv_func_statvfs" >&6
33916
33917 if test "$wx_cv_func_statvfs" = "yes"; then
33918
33919
33920 ac_ext=cc
33921ac_cpp='$CXXCPP $CPPFLAGS'
33922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33925
33926
33927 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
33928echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
33929if test "${wx_cv_type_statvfs_t+set}" = set; then
33930 echo $ECHO_N "(cached) $ECHO_C" >&6
33931else
33932 cat >conftest.$ac_ext <<_ACEOF
33933/* confdefs.h. */
33934_ACEOF
33935cat confdefs.h >>conftest.$ac_ext
33936cat >>conftest.$ac_ext <<_ACEOF
33937/* end confdefs.h. */
33938
33939 #include <sys/statvfs.h>
33940
33941int
33942main ()
33943{
33944
33945 long l;
33946 statvfs_t fs;
33947 statvfs("/", &fs);
33948 l = fs.f_bsize;
33949 l += fs.f_blocks;
33950 l += fs.f_bavail;
33951
33952 ;
33953 return 0;
33954}
33955_ACEOF
33956rm -f conftest.$ac_objext
33957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33958 (eval $ac_compile) 2>conftest.er1
a848cd7e 33959 ac_status=$?
ac1cb8d3
VS
33960 grep -v '^ *+' conftest.er1 >conftest.err
33961 rm -f conftest.er1
33962 cat conftest.err >&5
a848cd7e
SC
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); } &&
6ebeb4c7 33965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33967 (eval $ac_try) 2>&5
33968 ac_status=$?
33969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970 (exit $ac_status); }; } &&
33971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33973 (eval $ac_try) 2>&5
33974 ac_status=$?
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); }; }; then
33977 wx_cv_type_statvfs_t=statvfs_t
33978else
33979 echo "$as_me: failed program was:" >&5
33980sed 's/^/| /' conftest.$ac_ext >&5
33981
33982
33983 cat >conftest.$ac_ext <<_ACEOF
33984/* confdefs.h. */
33985_ACEOF
33986cat confdefs.h >>conftest.$ac_ext
33987cat >>conftest.$ac_ext <<_ACEOF
33988/* end confdefs.h. */
33989
33990 #include <sys/statvfs.h>
33991
33992int
33993main ()
33994{
33995
33996 long l;
33997 struct statvfs fs;
33998 statvfs("/", &fs);
33999 l = fs.f_bsize;
34000 l += fs.f_blocks;
34001 l += fs.f_bavail;
34002
34003 ;
34004 return 0;
34005}
34006_ACEOF
34007rm -f conftest.$ac_objext
34008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34009 (eval $ac_compile) 2>conftest.er1
a848cd7e 34010 ac_status=$?
ac1cb8d3
VS
34011 grep -v '^ *+' conftest.er1 >conftest.err
34012 rm -f conftest.er1
34013 cat conftest.err >&5
a848cd7e
SC
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); } &&
6ebeb4c7 34016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34018 (eval $ac_try) 2>&5
34019 ac_status=$?
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); }; } &&
34022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34024 (eval $ac_try) 2>&5
34025 ac_status=$?
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); }; }; then
34028 wx_cv_type_statvfs_t="struct statvfs"
34029else
34030 echo "$as_me: failed program was:" >&5
34031sed 's/^/| /' conftest.$ac_ext >&5
34032
34033wx_cv_type_statvfs_t="unknown"
34034
34035fi
ac1cb8d3 34036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34037
34038
34039fi
ac1cb8d3 34040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34041
34042fi
34043echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34044echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34045
34046 ac_ext=c
34047ac_cpp='$CPP $CPPFLAGS'
34048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34050ac_compiler_gnu=$ac_cv_c_compiler_gnu
34051
34052
34053 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34054 cat >>confdefs.h <<\_ACEOF
34055#define HAVE_STATVFS 1
34056_ACEOF
34057
34058 fi
34059 else
34060 wx_cv_type_statvfs_t="unknown"
34061 fi
34062fi
34063
34064if test "$wx_cv_type_statvfs_t" != "unknown"; then
34065 cat >>confdefs.h <<_ACEOF
34066#define WX_STATFS_T $wx_cv_type_statvfs_t
34067_ACEOF
34068
34069else
34070 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34071echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34072fi
34073
34074if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34075
34076
34077for ac_func in fcntl flock
34078do
34079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34080echo "$as_me:$LINENO: checking for $ac_func" >&5
34081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34082if eval "test \"\${$as_ac_var+set}\" = set"; then
34083 echo $ECHO_N "(cached) $ECHO_C" >&6
34084else
34085 cat >conftest.$ac_ext <<_ACEOF
34086/* confdefs.h. */
34087_ACEOF
34088cat confdefs.h >>conftest.$ac_ext
34089cat >>conftest.$ac_ext <<_ACEOF
34090/* end confdefs.h. */
ac1cb8d3
VS
34091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34093#define $ac_func innocuous_$ac_func
34094
a848cd7e
SC
34095/* System header to define __stub macros and hopefully few prototypes,
34096 which can conflict with char $ac_func (); below.
34097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34098 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34099
a848cd7e
SC
34100#ifdef __STDC__
34101# include <limits.h>
34102#else
34103# include <assert.h>
34104#endif
ac1cb8d3
VS
34105
34106#undef $ac_func
34107
a848cd7e
SC
34108/* Override any gcc2 internal prototype to avoid an error. */
34109#ifdef __cplusplus
34110extern "C"
34111{
34112#endif
34113/* We use char because int might match the return type of a gcc2
34114 builtin and then its argument prototype would still apply. */
34115char $ac_func ();
34116/* The GNU C library defines this for functions which it implements
34117 to always fail with ENOSYS. Some functions are actually named
34118 something starting with __ and the normal name is an alias. */
34119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34120choke me
34121#else
34122char (*f) () = $ac_func;
34123#endif
34124#ifdef __cplusplus
34125}
34126#endif
34127
34128int
34129main ()
34130{
34131return f != $ac_func;
34132 ;
34133 return 0;
34134}
34135_ACEOF
34136rm -f conftest.$ac_objext conftest$ac_exeext
34137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34138 (eval $ac_link) 2>conftest.er1
a848cd7e 34139 ac_status=$?
ac1cb8d3
VS
34140 grep -v '^ *+' conftest.er1 >conftest.err
34141 rm -f conftest.er1
34142 cat conftest.err >&5
a848cd7e
SC
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); } &&
6ebeb4c7 34145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34147 (eval $ac_try) 2>&5
34148 ac_status=$?
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); }; } &&
34151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34153 (eval $ac_try) 2>&5
34154 ac_status=$?
34155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); }; }; then
34157 eval "$as_ac_var=yes"
34158else
34159 echo "$as_me: failed program was:" >&5
34160sed 's/^/| /' conftest.$ac_ext >&5
34161
34162eval "$as_ac_var=no"
34163fi
ac1cb8d3
VS
34164rm -f conftest.err conftest.$ac_objext \
34165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34166fi
34167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34168echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34169if test `eval echo '${'$as_ac_var'}'` = yes; then
34170 cat >>confdefs.h <<_ACEOF
34171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34172_ACEOF
34173 break
34174fi
34175done
34176
34177
34178 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34179 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34180echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34181 wxUSE_SNGLINST_CHECKER=no
34182 fi
34183fi
34184
34185
34186for ac_func in timegm
34187do
34188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34189echo "$as_me:$LINENO: checking for $ac_func" >&5
34190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34191if eval "test \"\${$as_ac_var+set}\" = set"; then
34192 echo $ECHO_N "(cached) $ECHO_C" >&6
34193else
34194 cat >conftest.$ac_ext <<_ACEOF
34195/* confdefs.h. */
34196_ACEOF
34197cat confdefs.h >>conftest.$ac_ext
34198cat >>conftest.$ac_ext <<_ACEOF
34199/* end confdefs.h. */
ac1cb8d3
VS
34200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34202#define $ac_func innocuous_$ac_func
34203
a848cd7e
SC
34204/* System header to define __stub macros and hopefully few prototypes,
34205 which can conflict with char $ac_func (); below.
34206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34207 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34208
a848cd7e
SC
34209#ifdef __STDC__
34210# include <limits.h>
34211#else
34212# include <assert.h>
34213#endif
ac1cb8d3
VS
34214
34215#undef $ac_func
34216
a848cd7e
SC
34217/* Override any gcc2 internal prototype to avoid an error. */
34218#ifdef __cplusplus
34219extern "C"
34220{
34221#endif
34222/* We use char because int might match the return type of a gcc2
34223 builtin and then its argument prototype would still apply. */
34224char $ac_func ();
34225/* The GNU C library defines this for functions which it implements
34226 to always fail with ENOSYS. Some functions are actually named
34227 something starting with __ and the normal name is an alias. */
34228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34229choke me
34230#else
34231char (*f) () = $ac_func;
34232#endif
34233#ifdef __cplusplus
34234}
34235#endif
34236
34237int
34238main ()
34239{
34240return f != $ac_func;
34241 ;
34242 return 0;
34243}
34244_ACEOF
34245rm -f conftest.$ac_objext conftest$ac_exeext
34246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34247 (eval $ac_link) 2>conftest.er1
a848cd7e 34248 ac_status=$?
ac1cb8d3
VS
34249 grep -v '^ *+' conftest.er1 >conftest.err
34250 rm -f conftest.er1
34251 cat conftest.err >&5
a848cd7e
SC
34252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253 (exit $ac_status); } &&
6ebeb4c7 34254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34256 (eval $ac_try) 2>&5
34257 ac_status=$?
34258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34259 (exit $ac_status); }; } &&
34260 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34262 (eval $ac_try) 2>&5
34263 ac_status=$?
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); }; }; then
34266 eval "$as_ac_var=yes"
34267else
34268 echo "$as_me: failed program was:" >&5
34269sed 's/^/| /' conftest.$ac_ext >&5
34270
34271eval "$as_ac_var=no"
34272fi
ac1cb8d3
VS
34273rm -f conftest.err conftest.$ac_objext \
34274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34275fi
34276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34277echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34278if test `eval echo '${'$as_ac_var'}'` = yes; then
34279 cat >>confdefs.h <<_ACEOF
34280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34281_ACEOF
34282
34283fi
34284done
34285
34286
34287
34288
34289for ac_func in putenv setenv
34290do
34291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34292echo "$as_me:$LINENO: checking for $ac_func" >&5
34293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34294if eval "test \"\${$as_ac_var+set}\" = set"; then
34295 echo $ECHO_N "(cached) $ECHO_C" >&6
34296else
34297 cat >conftest.$ac_ext <<_ACEOF
34298/* confdefs.h. */
34299_ACEOF
34300cat confdefs.h >>conftest.$ac_ext
34301cat >>conftest.$ac_ext <<_ACEOF
34302/* end confdefs.h. */
ac1cb8d3
VS
34303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34305#define $ac_func innocuous_$ac_func
34306
a848cd7e
SC
34307/* System header to define __stub macros and hopefully few prototypes,
34308 which can conflict with char $ac_func (); below.
34309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34310 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34311
a848cd7e
SC
34312#ifdef __STDC__
34313# include <limits.h>
34314#else
34315# include <assert.h>
34316#endif
ac1cb8d3
VS
34317
34318#undef $ac_func
34319
a848cd7e
SC
34320/* Override any gcc2 internal prototype to avoid an error. */
34321#ifdef __cplusplus
34322extern "C"
34323{
34324#endif
34325/* We use char because int might match the return type of a gcc2
34326 builtin and then its argument prototype would still apply. */
34327char $ac_func ();
34328/* The GNU C library defines this for functions which it implements
34329 to always fail with ENOSYS. Some functions are actually named
34330 something starting with __ and the normal name is an alias. */
34331#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34332choke me
34333#else
34334char (*f) () = $ac_func;
34335#endif
34336#ifdef __cplusplus
34337}
34338#endif
34339
34340int
34341main ()
34342{
34343return f != $ac_func;
34344 ;
34345 return 0;
34346}
34347_ACEOF
34348rm -f conftest.$ac_objext conftest$ac_exeext
34349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34350 (eval $ac_link) 2>conftest.er1
a848cd7e 34351 ac_status=$?
ac1cb8d3
VS
34352 grep -v '^ *+' conftest.er1 >conftest.err
34353 rm -f conftest.er1
34354 cat conftest.err >&5
a848cd7e
SC
34355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356 (exit $ac_status); } &&
6ebeb4c7 34357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34359 (eval $ac_try) 2>&5
34360 ac_status=$?
34361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362 (exit $ac_status); }; } &&
34363 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34365 (eval $ac_try) 2>&5
34366 ac_status=$?
34367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 (exit $ac_status); }; }; then
34369 eval "$as_ac_var=yes"
34370else
34371 echo "$as_me: failed program was:" >&5
34372sed 's/^/| /' conftest.$ac_ext >&5
34373
34374eval "$as_ac_var=no"
34375fi
ac1cb8d3
VS
34376rm -f conftest.err conftest.$ac_objext \
34377 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34378fi
34379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34380echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34381if test `eval echo '${'$as_ac_var'}'` = yes; then
34382 cat >>confdefs.h <<_ACEOF
34383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34384_ACEOF
34385 break
34386fi
34387done
34388
34389
34390HAVE_SOME_SLEEP_FUNC=0
34391if test "$USE_BEOS" = 1; then
34392 cat >>confdefs.h <<\_ACEOF
34393#define HAVE_SLEEP 1
34394_ACEOF
34395
34396 HAVE_SOME_SLEEP_FUNC=1
34397fi
34398
34399if test "$USE_DARWIN" = 1; then
34400 cat >>confdefs.h <<\_ACEOF
34401#define HAVE_USLEEP 1
34402_ACEOF
34403
34404 HAVE_SOME_SLEEP_FUNC=1
34405fi
34406
34407if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
34408 POSIX4_LINK=
34409
34410for ac_func in nanosleep
34411do
34412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34413echo "$as_me:$LINENO: checking for $ac_func" >&5
34414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34415if eval "test \"\${$as_ac_var+set}\" = set"; then
34416 echo $ECHO_N "(cached) $ECHO_C" >&6
34417else
34418 cat >conftest.$ac_ext <<_ACEOF
34419/* confdefs.h. */
34420_ACEOF
34421cat confdefs.h >>conftest.$ac_ext
34422cat >>conftest.$ac_ext <<_ACEOF
34423/* end confdefs.h. */
ac1cb8d3
VS
34424/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34426#define $ac_func innocuous_$ac_func
34427
a848cd7e
SC
34428/* System header to define __stub macros and hopefully few prototypes,
34429 which can conflict with char $ac_func (); below.
34430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34431 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34432
a848cd7e
SC
34433#ifdef __STDC__
34434# include <limits.h>
34435#else
34436# include <assert.h>
34437#endif
ac1cb8d3
VS
34438
34439#undef $ac_func
34440
a848cd7e
SC
34441/* Override any gcc2 internal prototype to avoid an error. */
34442#ifdef __cplusplus
34443extern "C"
34444{
34445#endif
34446/* We use char because int might match the return type of a gcc2
34447 builtin and then its argument prototype would still apply. */
34448char $ac_func ();
34449/* The GNU C library defines this for functions which it implements
34450 to always fail with ENOSYS. Some functions are actually named
34451 something starting with __ and the normal name is an alias. */
34452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34453choke me
34454#else
34455char (*f) () = $ac_func;
34456#endif
34457#ifdef __cplusplus
34458}
34459#endif
34460
34461int
34462main ()
34463{
34464return f != $ac_func;
34465 ;
34466 return 0;
34467}
34468_ACEOF
34469rm -f conftest.$ac_objext conftest$ac_exeext
34470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34471 (eval $ac_link) 2>conftest.er1
a848cd7e 34472 ac_status=$?
ac1cb8d3
VS
34473 grep -v '^ *+' conftest.er1 >conftest.err
34474 rm -f conftest.er1
34475 cat conftest.err >&5
a848cd7e
SC
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); } &&
6ebeb4c7 34478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34480 (eval $ac_try) 2>&5
34481 ac_status=$?
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); }; } &&
34484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34486 (eval $ac_try) 2>&5
34487 ac_status=$?
34488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34489 (exit $ac_status); }; }; then
34490 eval "$as_ac_var=yes"
34491else
34492 echo "$as_me: failed program was:" >&5
34493sed 's/^/| /' conftest.$ac_ext >&5
34494
34495eval "$as_ac_var=no"
34496fi
ac1cb8d3
VS
34497rm -f conftest.err conftest.$ac_objext \
34498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34499fi
34500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34501echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34502if test `eval echo '${'$as_ac_var'}'` = yes; then
34503 cat >>confdefs.h <<_ACEOF
34504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34505_ACEOF
34506 cat >>confdefs.h <<\_ACEOF
34507#define HAVE_NANOSLEEP 1
34508_ACEOF
34509
34510else
34511
34512 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
34513echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
34514if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
34515 echo $ECHO_N "(cached) $ECHO_C" >&6
34516else
34517 ac_check_lib_save_LIBS=$LIBS
34518LIBS="-lposix4 $LIBS"
34519cat >conftest.$ac_ext <<_ACEOF
34520/* confdefs.h. */
34521_ACEOF
34522cat confdefs.h >>conftest.$ac_ext
34523cat >>conftest.$ac_ext <<_ACEOF
34524/* end confdefs.h. */
34525
34526/* Override any gcc2 internal prototype to avoid an error. */
34527#ifdef __cplusplus
34528extern "C"
34529#endif
34530/* We use char because int might match the return type of a gcc2
34531 builtin and then its argument prototype would still apply. */
34532char nanosleep ();
34533int
34534main ()
34535{
34536nanosleep ();
34537 ;
34538 return 0;
34539}
34540_ACEOF
34541rm -f conftest.$ac_objext conftest$ac_exeext
34542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34543 (eval $ac_link) 2>conftest.er1
a848cd7e 34544 ac_status=$?
ac1cb8d3
VS
34545 grep -v '^ *+' conftest.er1 >conftest.err
34546 rm -f conftest.er1
34547 cat conftest.err >&5
a848cd7e
SC
34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549 (exit $ac_status); } &&
6ebeb4c7 34550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34552 (eval $ac_try) 2>&5
34553 ac_status=$?
34554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555 (exit $ac_status); }; } &&
34556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34558 (eval $ac_try) 2>&5
34559 ac_status=$?
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; }; then
34562 ac_cv_lib_posix4_nanosleep=yes
34563else
34564 echo "$as_me: failed program was:" >&5
34565sed 's/^/| /' conftest.$ac_ext >&5
34566
34567ac_cv_lib_posix4_nanosleep=no
34568fi
ac1cb8d3
VS
34569rm -f conftest.err conftest.$ac_objext \
34570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34571LIBS=$ac_check_lib_save_LIBS
34572fi
34573echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
34574echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
34575if test $ac_cv_lib_posix4_nanosleep = yes; then
34576
34577 cat >>confdefs.h <<\_ACEOF
34578#define HAVE_NANOSLEEP 1
34579_ACEOF
34580
34581 POSIX4_LINK=" -lposix4"
34582
34583else
34584
34585
34586for ac_func in usleep
34587do
34588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34589echo "$as_me:$LINENO: checking for $ac_func" >&5
34590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34591if eval "test \"\${$as_ac_var+set}\" = set"; then
34592 echo $ECHO_N "(cached) $ECHO_C" >&6
34593else
34594 cat >conftest.$ac_ext <<_ACEOF
34595/* confdefs.h. */
34596_ACEOF
34597cat confdefs.h >>conftest.$ac_ext
34598cat >>conftest.$ac_ext <<_ACEOF
34599/* end confdefs.h. */
ac1cb8d3
VS
34600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34602#define $ac_func innocuous_$ac_func
34603
a848cd7e
SC
34604/* System header to define __stub macros and hopefully few prototypes,
34605 which can conflict with char $ac_func (); below.
34606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34607 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34608
a848cd7e
SC
34609#ifdef __STDC__
34610# include <limits.h>
34611#else
34612# include <assert.h>
34613#endif
ac1cb8d3
VS
34614
34615#undef $ac_func
34616
a848cd7e
SC
34617/* Override any gcc2 internal prototype to avoid an error. */
34618#ifdef __cplusplus
34619extern "C"
34620{
34621#endif
34622/* We use char because int might match the return type of a gcc2
34623 builtin and then its argument prototype would still apply. */
34624char $ac_func ();
34625/* The GNU C library defines this for functions which it implements
34626 to always fail with ENOSYS. Some functions are actually named
34627 something starting with __ and the normal name is an alias. */
34628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34629choke me
34630#else
34631char (*f) () = $ac_func;
34632#endif
34633#ifdef __cplusplus
34634}
34635#endif
34636
34637int
34638main ()
34639{
34640return f != $ac_func;
34641 ;
34642 return 0;
34643}
34644_ACEOF
34645rm -f conftest.$ac_objext conftest$ac_exeext
34646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34647 (eval $ac_link) 2>conftest.er1
a848cd7e 34648 ac_status=$?
ac1cb8d3
VS
34649 grep -v '^ *+' conftest.er1 >conftest.err
34650 rm -f conftest.er1
34651 cat conftest.err >&5
a848cd7e
SC
34652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653 (exit $ac_status); } &&
6ebeb4c7 34654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34656 (eval $ac_try) 2>&5
34657 ac_status=$?
34658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); }; } &&
34660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34662 (eval $ac_try) 2>&5
34663 ac_status=$?
34664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665 (exit $ac_status); }; }; then
34666 eval "$as_ac_var=yes"
34667else
34668 echo "$as_me: failed program was:" >&5
34669sed 's/^/| /' conftest.$ac_ext >&5
34670
34671eval "$as_ac_var=no"
34672fi
ac1cb8d3
VS
34673rm -f conftest.err conftest.$ac_objext \
34674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34675fi
34676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34678if test `eval echo '${'$as_ac_var'}'` = yes; then
34679 cat >>confdefs.h <<_ACEOF
34680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34681_ACEOF
34682 cat >>confdefs.h <<\_ACEOF
34683#define HAVE_USLEEP 1
34684_ACEOF
34685
34686else
34687 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
34688echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
34689
34690fi
34691done
34692
34693
34694
34695fi
34696
34697
34698
34699fi
34700done
34701
34702fi
34703
34704
34705
34706for ac_func in uname gethostname
34707do
34708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34709echo "$as_me:$LINENO: checking for $ac_func" >&5
34710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34711if eval "test \"\${$as_ac_var+set}\" = set"; then
34712 echo $ECHO_N "(cached) $ECHO_C" >&6
34713else
34714 cat >conftest.$ac_ext <<_ACEOF
34715/* confdefs.h. */
34716_ACEOF
34717cat confdefs.h >>conftest.$ac_ext
34718cat >>conftest.$ac_ext <<_ACEOF
34719/* end confdefs.h. */
ac1cb8d3
VS
34720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34722#define $ac_func innocuous_$ac_func
34723
a848cd7e
SC
34724/* System header to define __stub macros and hopefully few prototypes,
34725 which can conflict with char $ac_func (); below.
34726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34727 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34728
a848cd7e
SC
34729#ifdef __STDC__
34730# include <limits.h>
34731#else
34732# include <assert.h>
34733#endif
ac1cb8d3
VS
34734
34735#undef $ac_func
34736
a848cd7e
SC
34737/* Override any gcc2 internal prototype to avoid an error. */
34738#ifdef __cplusplus
34739extern "C"
34740{
34741#endif
34742/* We use char because int might match the return type of a gcc2
34743 builtin and then its argument prototype would still apply. */
34744char $ac_func ();
34745/* The GNU C library defines this for functions which it implements
34746 to always fail with ENOSYS. Some functions are actually named
34747 something starting with __ and the normal name is an alias. */
34748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34749choke me
34750#else
34751char (*f) () = $ac_func;
34752#endif
34753#ifdef __cplusplus
34754}
34755#endif
34756
34757int
34758main ()
34759{
34760return f != $ac_func;
34761 ;
34762 return 0;
34763}
34764_ACEOF
34765rm -f conftest.$ac_objext conftest$ac_exeext
34766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34767 (eval $ac_link) 2>conftest.er1
a848cd7e 34768 ac_status=$?
ac1cb8d3
VS
34769 grep -v '^ *+' conftest.er1 >conftest.err
34770 rm -f conftest.er1
34771 cat conftest.err >&5
a848cd7e
SC
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); } &&
6ebeb4c7 34774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34777 ac_status=$?
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; } &&
34780 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782 (eval $ac_try) 2>&5
34783 ac_status=$?
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34786 eval "$as_ac_var=yes"
34787else
34788 echo "$as_me: failed program was:" >&5
34789sed 's/^/| /' conftest.$ac_ext >&5
34790
34791eval "$as_ac_var=no"
34792fi
ac1cb8d3
VS
34793rm -f conftest.err conftest.$ac_objext \
34794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34795fi
34796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34798if test `eval echo '${'$as_ac_var'}'` = yes; then
34799 cat >>confdefs.h <<_ACEOF
34800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34801_ACEOF
34802 break
34803fi
34804done
34805
34806
34807
34808
34809ac_ext=cc
34810ac_cpp='$CXXCPP $CPPFLAGS'
34811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34814
34815
34816
34817for ac_func in strtok_r
34818do
34819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34820echo "$as_me:$LINENO: checking for $ac_func" >&5
34821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34822if eval "test \"\${$as_ac_var+set}\" = set"; then
34823 echo $ECHO_N "(cached) $ECHO_C" >&6
34824else
34825 cat >conftest.$ac_ext <<_ACEOF
34826/* confdefs.h. */
34827_ACEOF
34828cat confdefs.h >>conftest.$ac_ext
34829cat >>conftest.$ac_ext <<_ACEOF
34830/* end confdefs.h. */
ac1cb8d3
VS
34831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34833#define $ac_func innocuous_$ac_func
34834
a848cd7e
SC
34835/* System header to define __stub macros and hopefully few prototypes,
34836 which can conflict with char $ac_func (); below.
34837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34839
a848cd7e
SC
34840#ifdef __STDC__
34841# include <limits.h>
34842#else
34843# include <assert.h>
34844#endif
ac1cb8d3
VS
34845
34846#undef $ac_func
34847
a848cd7e
SC
34848/* Override any gcc2 internal prototype to avoid an error. */
34849#ifdef __cplusplus
34850extern "C"
34851{
34852#endif
34853/* We use char because int might match the return type of a gcc2
34854 builtin and then its argument prototype would still apply. */
34855char $ac_func ();
34856/* The GNU C library defines this for functions which it implements
34857 to always fail with ENOSYS. Some functions are actually named
34858 something starting with __ and the normal name is an alias. */
34859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34860choke me
34861#else
34862char (*f) () = $ac_func;
34863#endif
34864#ifdef __cplusplus
34865}
34866#endif
34867
34868int
34869main ()
34870{
34871return f != $ac_func;
34872 ;
34873 return 0;
34874}
34875_ACEOF
34876rm -f conftest.$ac_objext conftest$ac_exeext
34877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34878 (eval $ac_link) 2>conftest.er1
a848cd7e 34879 ac_status=$?
ac1cb8d3
VS
34880 grep -v '^ *+' conftest.er1 >conftest.err
34881 rm -f conftest.er1
34882 cat conftest.err >&5
a848cd7e
SC
34883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34884 (exit $ac_status); } &&
6ebeb4c7 34885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34887 (eval $ac_try) 2>&5
34888 ac_status=$?
34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890 (exit $ac_status); }; } &&
34891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893 (eval $ac_try) 2>&5
34894 ac_status=$?
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); }; }; then
34897 eval "$as_ac_var=yes"
34898else
34899 echo "$as_me: failed program was:" >&5
34900sed 's/^/| /' conftest.$ac_ext >&5
34901
34902eval "$as_ac_var=no"
34903fi
ac1cb8d3
VS
34904rm -f conftest.err conftest.$ac_objext \
34905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34906fi
34907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34909if test `eval echo '${'$as_ac_var'}'` = yes; then
34910 cat >>confdefs.h <<_ACEOF
34911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34912_ACEOF
34913
34914fi
34915done
34916
34917
34918ac_ext=c
34919ac_cpp='$CPP $CPPFLAGS'
34920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34922ac_compiler_gnu=$ac_cv_c_compiler_gnu
34923
34924
34925INET_LINK=
34926
34927for ac_func in inet_addr
34928do
34929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34930echo "$as_me:$LINENO: checking for $ac_func" >&5
34931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34932if eval "test \"\${$as_ac_var+set}\" = set"; then
34933 echo $ECHO_N "(cached) $ECHO_C" >&6
34934else
34935 cat >conftest.$ac_ext <<_ACEOF
34936/* confdefs.h. */
34937_ACEOF
34938cat confdefs.h >>conftest.$ac_ext
34939cat >>conftest.$ac_ext <<_ACEOF
34940/* end confdefs.h. */
ac1cb8d3
VS
34941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34943#define $ac_func innocuous_$ac_func
34944
a848cd7e
SC
34945/* System header to define __stub macros and hopefully few prototypes,
34946 which can conflict with char $ac_func (); below.
34947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34948 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34949
a848cd7e
SC
34950#ifdef __STDC__
34951# include <limits.h>
34952#else
34953# include <assert.h>
34954#endif
ac1cb8d3
VS
34955
34956#undef $ac_func
34957
a848cd7e
SC
34958/* Override any gcc2 internal prototype to avoid an error. */
34959#ifdef __cplusplus
34960extern "C"
34961{
34962#endif
34963/* We use char because int might match the return type of a gcc2
34964 builtin and then its argument prototype would still apply. */
34965char $ac_func ();
34966/* The GNU C library defines this for functions which it implements
34967 to always fail with ENOSYS. Some functions are actually named
34968 something starting with __ and the normal name is an alias. */
34969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34970choke me
34971#else
34972char (*f) () = $ac_func;
34973#endif
34974#ifdef __cplusplus
34975}
34976#endif
34977
34978int
34979main ()
34980{
34981return f != $ac_func;
34982 ;
34983 return 0;
34984}
34985_ACEOF
34986rm -f conftest.$ac_objext conftest$ac_exeext
34987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34988 (eval $ac_link) 2>conftest.er1
a848cd7e 34989 ac_status=$?
ac1cb8d3
VS
34990 grep -v '^ *+' conftest.er1 >conftest.err
34991 rm -f conftest.er1
34992 cat conftest.err >&5
a848cd7e
SC
34993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994 (exit $ac_status); } &&
6ebeb4c7 34995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34997 (eval $ac_try) 2>&5
34998 ac_status=$?
34999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000 (exit $ac_status); }; } &&
35001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35003 (eval $ac_try) 2>&5
35004 ac_status=$?
35005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006 (exit $ac_status); }; }; then
35007 eval "$as_ac_var=yes"
35008else
35009 echo "$as_me: failed program was:" >&5
35010sed 's/^/| /' conftest.$ac_ext >&5
35011
35012eval "$as_ac_var=no"
35013fi
ac1cb8d3
VS
35014rm -f conftest.err conftest.$ac_objext \
35015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35016fi
35017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35018echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35019if test `eval echo '${'$as_ac_var'}'` = yes; then
35020 cat >>confdefs.h <<_ACEOF
35021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35022_ACEOF
35023 cat >>confdefs.h <<\_ACEOF
35024#define HAVE_INET_ADDR 1
35025_ACEOF
35026
35027else
35028
35029 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35030echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35031if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35032 echo $ECHO_N "(cached) $ECHO_C" >&6
35033else
35034 ac_check_lib_save_LIBS=$LIBS
35035LIBS="-lnsl $LIBS"
35036cat >conftest.$ac_ext <<_ACEOF
35037/* confdefs.h. */
35038_ACEOF
35039cat confdefs.h >>conftest.$ac_ext
35040cat >>conftest.$ac_ext <<_ACEOF
35041/* end confdefs.h. */
35042
35043/* Override any gcc2 internal prototype to avoid an error. */
35044#ifdef __cplusplus
35045extern "C"
35046#endif
35047/* We use char because int might match the return type of a gcc2
35048 builtin and then its argument prototype would still apply. */
35049char inet_addr ();
35050int
35051main ()
35052{
35053inet_addr ();
35054 ;
35055 return 0;
35056}
35057_ACEOF
35058rm -f conftest.$ac_objext conftest$ac_exeext
35059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35060 (eval $ac_link) 2>conftest.er1
a848cd7e 35061 ac_status=$?
ac1cb8d3
VS
35062 grep -v '^ *+' conftest.er1 >conftest.err
35063 rm -f conftest.er1
35064 cat conftest.err >&5
a848cd7e
SC
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); } &&
6ebeb4c7 35067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35069 (eval $ac_try) 2>&5
35070 ac_status=$?
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 (exit $ac_status); }; } &&
35073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35075 (eval $ac_try) 2>&5
35076 ac_status=$?
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); }; }; then
35079 ac_cv_lib_nsl_inet_addr=yes
35080else
35081 echo "$as_me: failed program was:" >&5
35082sed 's/^/| /' conftest.$ac_ext >&5
35083
35084ac_cv_lib_nsl_inet_addr=no
35085fi
ac1cb8d3
VS
35086rm -f conftest.err conftest.$ac_objext \
35087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35088LIBS=$ac_check_lib_save_LIBS
35089fi
35090echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35091echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35092if test $ac_cv_lib_nsl_inet_addr = yes; then
35093 INET_LINK="nsl"
35094else
35095
35096 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35097echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35098if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35099 echo $ECHO_N "(cached) $ECHO_C" >&6
35100else
35101 ac_check_lib_save_LIBS=$LIBS
35102LIBS="-lresolv $LIBS"
35103cat >conftest.$ac_ext <<_ACEOF
35104/* confdefs.h. */
35105_ACEOF
35106cat confdefs.h >>conftest.$ac_ext
35107cat >>conftest.$ac_ext <<_ACEOF
35108/* end confdefs.h. */
35109
35110/* Override any gcc2 internal prototype to avoid an error. */
35111#ifdef __cplusplus
35112extern "C"
35113#endif
35114/* We use char because int might match the return type of a gcc2
35115 builtin and then its argument prototype would still apply. */
35116char inet_addr ();
35117int
35118main ()
35119{
35120inet_addr ();
35121 ;
35122 return 0;
35123}
35124_ACEOF
35125rm -f conftest.$ac_objext conftest$ac_exeext
35126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35127 (eval $ac_link) 2>conftest.er1
a848cd7e 35128 ac_status=$?
ac1cb8d3
VS
35129 grep -v '^ *+' conftest.er1 >conftest.err
35130 rm -f conftest.er1
35131 cat conftest.err >&5
a848cd7e
SC
35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133 (exit $ac_status); } &&
6ebeb4c7 35134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136 (eval $ac_try) 2>&5
35137 ac_status=$?
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); }; } &&
35140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35142 (eval $ac_try) 2>&5
35143 ac_status=$?
35144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); }; }; then
35146 ac_cv_lib_resolv_inet_addr=yes
35147else
35148 echo "$as_me: failed program was:" >&5
35149sed 's/^/| /' conftest.$ac_ext >&5
35150
35151ac_cv_lib_resolv_inet_addr=no
35152fi
ac1cb8d3
VS
35153rm -f conftest.err conftest.$ac_objext \
35154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35155LIBS=$ac_check_lib_save_LIBS
35156fi
35157echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35158echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35159if test $ac_cv_lib_resolv_inet_addr = yes; then
35160 INET_LINK="resolv"
35161else
35162
35163 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35164echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35165if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35166 echo $ECHO_N "(cached) $ECHO_C" >&6
35167else
35168 ac_check_lib_save_LIBS=$LIBS
35169LIBS="-lsocket $LIBS"
35170cat >conftest.$ac_ext <<_ACEOF
35171/* confdefs.h. */
35172_ACEOF
35173cat confdefs.h >>conftest.$ac_ext
35174cat >>conftest.$ac_ext <<_ACEOF
35175/* end confdefs.h. */
35176
35177/* Override any gcc2 internal prototype to avoid an error. */
35178#ifdef __cplusplus
35179extern "C"
35180#endif
35181/* We use char because int might match the return type of a gcc2
35182 builtin and then its argument prototype would still apply. */
35183char inet_addr ();
35184int
35185main ()
35186{
35187inet_addr ();
35188 ;
35189 return 0;
35190}
35191_ACEOF
35192rm -f conftest.$ac_objext conftest$ac_exeext
35193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35194 (eval $ac_link) 2>conftest.er1
a848cd7e 35195 ac_status=$?
ac1cb8d3
VS
35196 grep -v '^ *+' conftest.er1 >conftest.err
35197 rm -f conftest.er1
35198 cat conftest.err >&5
a848cd7e
SC
35199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200 (exit $ac_status); } &&
6ebeb4c7 35201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35203 (eval $ac_try) 2>&5
35204 ac_status=$?
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); }; } &&
35207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209 (eval $ac_try) 2>&5
35210 ac_status=$?
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); }; }; then
35213 ac_cv_lib_socket_inet_addr=yes
35214else
35215 echo "$as_me: failed program was:" >&5
35216sed 's/^/| /' conftest.$ac_ext >&5
35217
35218ac_cv_lib_socket_inet_addr=no
35219fi
ac1cb8d3
VS
35220rm -f conftest.err conftest.$ac_objext \
35221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35222LIBS=$ac_check_lib_save_LIBS
35223fi
35224echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35225echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35226if test $ac_cv_lib_socket_inet_addr = yes; then
35227 INET_LINK="socket"
35228
35229fi
35230
35231
35232
35233fi
35234
35235
35236
35237fi
35238
35239
35240
35241fi
35242done
35243
35244
35245
35246for ac_func in inet_aton
35247do
35248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35249echo "$as_me:$LINENO: checking for $ac_func" >&5
35250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35251if eval "test \"\${$as_ac_var+set}\" = set"; then
35252 echo $ECHO_N "(cached) $ECHO_C" >&6
35253else
35254 cat >conftest.$ac_ext <<_ACEOF
35255/* confdefs.h. */
35256_ACEOF
35257cat confdefs.h >>conftest.$ac_ext
35258cat >>conftest.$ac_ext <<_ACEOF
35259/* end confdefs.h. */
ac1cb8d3
VS
35260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35262#define $ac_func innocuous_$ac_func
35263
a848cd7e
SC
35264/* System header to define __stub macros and hopefully few prototypes,
35265 which can conflict with char $ac_func (); below.
35266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35267 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35268
a848cd7e
SC
35269#ifdef __STDC__
35270# include <limits.h>
35271#else
35272# include <assert.h>
35273#endif
ac1cb8d3
VS
35274
35275#undef $ac_func
35276
a848cd7e
SC
35277/* Override any gcc2 internal prototype to avoid an error. */
35278#ifdef __cplusplus
35279extern "C"
35280{
35281#endif
35282/* We use char because int might match the return type of a gcc2
35283 builtin and then its argument prototype would still apply. */
35284char $ac_func ();
35285/* The GNU C library defines this for functions which it implements
35286 to always fail with ENOSYS. Some functions are actually named
35287 something starting with __ and the normal name is an alias. */
35288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35289choke me
35290#else
35291char (*f) () = $ac_func;
35292#endif
35293#ifdef __cplusplus
35294}
35295#endif
35296
35297int
35298main ()
35299{
35300return f != $ac_func;
35301 ;
35302 return 0;
35303}
35304_ACEOF
35305rm -f conftest.$ac_objext conftest$ac_exeext
35306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35307 (eval $ac_link) 2>conftest.er1
a848cd7e 35308 ac_status=$?
ac1cb8d3
VS
35309 grep -v '^ *+' conftest.er1 >conftest.err
35310 rm -f conftest.er1
35311 cat conftest.err >&5
a848cd7e
SC
35312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313 (exit $ac_status); } &&
6ebeb4c7 35314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35316 (eval $ac_try) 2>&5
35317 ac_status=$?
35318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319 (exit $ac_status); }; } &&
35320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35322 (eval $ac_try) 2>&5
35323 ac_status=$?
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); }; }; then
35326 eval "$as_ac_var=yes"
35327else
35328 echo "$as_me: failed program was:" >&5
35329sed 's/^/| /' conftest.$ac_ext >&5
35330
35331eval "$as_ac_var=no"
35332fi
ac1cb8d3
VS
35333rm -f conftest.err conftest.$ac_objext \
35334 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35335fi
35336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35337echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35338if test `eval echo '${'$as_ac_var'}'` = yes; then
35339 cat >>confdefs.h <<_ACEOF
35340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35341_ACEOF
35342 cat >>confdefs.h <<\_ACEOF
35343#define HAVE_INET_ATON 1
35344_ACEOF
35345
35346else
35347
35348 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
35349echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
35350echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
35351if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35352 echo $ECHO_N "(cached) $ECHO_C" >&6
35353else
35354 ac_check_lib_save_LIBS=$LIBS
35355LIBS="-l$INET_LINK $LIBS"
35356cat >conftest.$ac_ext <<_ACEOF
35357/* confdefs.h. */
35358_ACEOF
35359cat confdefs.h >>conftest.$ac_ext
35360cat >>conftest.$ac_ext <<_ACEOF
35361/* end confdefs.h. */
35362
35363/* Override any gcc2 internal prototype to avoid an error. */
35364#ifdef __cplusplus
35365extern "C"
35366#endif
35367/* We use char because int might match the return type of a gcc2
35368 builtin and then its argument prototype would still apply. */
35369char inet_aton ();
35370int
35371main ()
35372{
35373inet_aton ();
35374 ;
35375 return 0;
35376}
35377_ACEOF
35378rm -f conftest.$ac_objext conftest$ac_exeext
35379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35380 (eval $ac_link) 2>conftest.er1
a848cd7e 35381 ac_status=$?
ac1cb8d3
VS
35382 grep -v '^ *+' conftest.er1 >conftest.err
35383 rm -f conftest.er1
35384 cat conftest.err >&5
a848cd7e
SC
35385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35386 (exit $ac_status); } &&
6ebeb4c7 35387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35389 (eval $ac_try) 2>&5
35390 ac_status=$?
35391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392 (exit $ac_status); }; } &&
35393 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35395 (eval $ac_try) 2>&5
35396 ac_status=$?
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); }; }; then
35399 eval "$as_ac_Lib=yes"
35400else
35401 echo "$as_me: failed program was:" >&5
35402sed 's/^/| /' conftest.$ac_ext >&5
35403
35404eval "$as_ac_Lib=no"
35405fi
ac1cb8d3
VS
35406rm -f conftest.err conftest.$ac_objext \
35407 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35408LIBS=$ac_check_lib_save_LIBS
35409fi
35410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
35411echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
35412if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35413 cat >>confdefs.h <<\_ACEOF
35414#define HAVE_INET_ATON 1
35415_ACEOF
35416
35417fi
35418
35419
35420fi
35421done
35422
35423
35424if test "x$INET_LINK" != "x"; then
35425 cat >>confdefs.h <<\_ACEOF
35426#define HAVE_INET_ADDR 1
35427_ACEOF
35428
35429 INET_LINK=" -l$INET_LINK"
35430fi
35431
35432fi
35433
35434
35435
35436EXTRALIBS_ESD=
35437echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
35438echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
35439if test "${ac_cv_lib_esd_esd_close+set}" = set; then
35440 echo $ECHO_N "(cached) $ECHO_C" >&6
35441else
35442 ac_check_lib_save_LIBS=$LIBS
35443LIBS="-lesd $LIBS"
35444cat >conftest.$ac_ext <<_ACEOF
35445/* confdefs.h. */
35446_ACEOF
35447cat confdefs.h >>conftest.$ac_ext
35448cat >>conftest.$ac_ext <<_ACEOF
35449/* end confdefs.h. */
35450
35451/* Override any gcc2 internal prototype to avoid an error. */
35452#ifdef __cplusplus
35453extern "C"
35454#endif
35455/* We use char because int might match the return type of a gcc2
35456 builtin and then its argument prototype would still apply. */
35457char esd_close ();
35458int
35459main ()
35460{
35461esd_close ();
35462 ;
35463 return 0;
35464}
35465_ACEOF
35466rm -f conftest.$ac_objext conftest$ac_exeext
35467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35468 (eval $ac_link) 2>conftest.er1
a848cd7e 35469 ac_status=$?
ac1cb8d3
VS
35470 grep -v '^ *+' conftest.er1 >conftest.err
35471 rm -f conftest.er1
35472 cat conftest.err >&5
a848cd7e
SC
35473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474 (exit $ac_status); } &&
6ebeb4c7 35475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
35481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483 (eval $ac_try) 2>&5
35484 ac_status=$?
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); }; }; then
35487 ac_cv_lib_esd_esd_close=yes
35488else
35489 echo "$as_me: failed program was:" >&5
35490sed 's/^/| /' conftest.$ac_ext >&5
35491
35492ac_cv_lib_esd_esd_close=no
35493fi
ac1cb8d3
VS
35494rm -f conftest.err conftest.$ac_objext \
35495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35496LIBS=$ac_check_lib_save_LIBS
35497fi
35498echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
35499echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
35500if test $ac_cv_lib_esd_esd_close = yes; then
35501
35502
35503for ac_header in esd.h
35504do
35505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35506if eval "test \"\${$as_ac_Header+set}\" = set"; then
35507 echo "$as_me:$LINENO: checking for $ac_header" >&5
35508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35509if eval "test \"\${$as_ac_Header+set}\" = set"; then
35510 echo $ECHO_N "(cached) $ECHO_C" >&6
35511fi
35512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35514else
35515 # Is the header compilable?
35516echo "$as_me:$LINENO: checking $ac_header usability" >&5
35517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35518cat >conftest.$ac_ext <<_ACEOF
35519/* confdefs.h. */
35520_ACEOF
35521cat confdefs.h >>conftest.$ac_ext
35522cat >>conftest.$ac_ext <<_ACEOF
35523/* end confdefs.h. */
35524$ac_includes_default
35525#include <$ac_header>
35526_ACEOF
35527rm -f conftest.$ac_objext
35528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35529 (eval $ac_compile) 2>conftest.er1
a848cd7e 35530 ac_status=$?
ac1cb8d3
VS
35531 grep -v '^ *+' conftest.er1 >conftest.err
35532 rm -f conftest.er1
35533 cat conftest.err >&5
a848cd7e
SC
35534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35535 (exit $ac_status); } &&
6ebeb4c7 35536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35538 (eval $ac_try) 2>&5
35539 ac_status=$?
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); }; } &&
35542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35544 (eval $ac_try) 2>&5
35545 ac_status=$?
35546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 (exit $ac_status); }; }; then
35548 ac_header_compiler=yes
35549else
35550 echo "$as_me: failed program was:" >&5
35551sed 's/^/| /' conftest.$ac_ext >&5
35552
35553ac_header_compiler=no
35554fi
ac1cb8d3 35555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35557echo "${ECHO_T}$ac_header_compiler" >&6
35558
35559# Is the header present?
35560echo "$as_me:$LINENO: checking $ac_header presence" >&5
35561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35562cat >conftest.$ac_ext <<_ACEOF
35563/* confdefs.h. */
35564_ACEOF
35565cat confdefs.h >>conftest.$ac_ext
35566cat >>conftest.$ac_ext <<_ACEOF
35567/* end confdefs.h. */
35568#include <$ac_header>
35569_ACEOF
35570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35572 ac_status=$?
35573 grep -v '^ *+' conftest.er1 >conftest.err
35574 rm -f conftest.er1
35575 cat conftest.err >&5
35576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577 (exit $ac_status); } >/dev/null; then
35578 if test -s conftest.err; then
35579 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35581 else
35582 ac_cpp_err=
35583 fi
35584else
35585 ac_cpp_err=yes
35586fi
35587if test -z "$ac_cpp_err"; then
35588 ac_header_preproc=yes
35589else
35590 echo "$as_me: failed program was:" >&5
35591sed 's/^/| /' conftest.$ac_ext >&5
35592
35593 ac_header_preproc=no
35594fi
35595rm -f conftest.err conftest.$ac_ext
35596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35597echo "${ECHO_T}$ac_header_preproc" >&6
35598
35599# So? What about this header?
ac1cb8d3
VS
35600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35601 yes:no: )
a848cd7e
SC
35602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35606 ac_header_preproc=yes
a848cd7e 35607 ;;
ac1cb8d3 35608 no:yes:* )
a848cd7e
SC
35609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35621 (
35622 cat <<\_ASBOX
ac1cb8d3
VS
35623## ----------------------------------------- ##
35624## Report this to wx-dev@lists.wxwidgets.org ##
35625## ----------------------------------------- ##
a848cd7e
SC
35626_ASBOX
35627 ) |
35628 sed "s/^/$as_me: WARNING: /" >&2
35629 ;;
35630esac
35631echo "$as_me:$LINENO: checking for $ac_header" >&5
35632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35633if eval "test \"\${$as_ac_Header+set}\" = set"; then
35634 echo $ECHO_N "(cached) $ECHO_C" >&6
35635else
ac1cb8d3 35636 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35637fi
35638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35640
35641fi
35642if test `eval echo '${'$as_ac_Header'}'` = yes; then
35643 cat >>confdefs.h <<_ACEOF
35644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35645_ACEOF
35646
35647 EXTRALIBS_ESD="-lesd"
35648
35649fi
35650
35651done
35652
35653
35654fi
35655
35656
35657
35658echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
35659echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
35660cat >conftest.$ac_ext <<_ACEOF
35661/* confdefs.h. */
35662_ACEOF
35663cat confdefs.h >>conftest.$ac_ext
35664cat >>conftest.$ac_ext <<_ACEOF
35665/* end confdefs.h. */
35666#ifdef __linux__
35667 #include <linux/cdrom.h>
35668 #else
35669 /* For Solaris */
35670 #include <sys/cdio.h>
35671 #endif
35672
35673int
35674main ()
35675{
35676struct cdrom_tocentry entry, old_entry;
35677 ;
35678 return 0;
35679}
35680_ACEOF
35681rm -f conftest.$ac_objext
35682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35683 (eval $ac_compile) 2>conftest.er1
a848cd7e 35684 ac_status=$?
ac1cb8d3
VS
35685 grep -v '^ *+' conftest.er1 >conftest.err
35686 rm -f conftest.er1
35687 cat conftest.err >&5
a848cd7e
SC
35688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689 (exit $ac_status); } &&
6ebeb4c7 35690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35692 (eval $ac_try) 2>&5
35693 ac_status=$?
35694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695 (exit $ac_status); }; } &&
35696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35698 (eval $ac_try) 2>&5
35699 ac_status=$?
35700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701 (exit $ac_status); }; }; then
35702 echo "$as_me:$LINENO: result: yes" >&5
35703echo "${ECHO_T}yes" >&6
35704 cat >>confdefs.h <<\_ACEOF
35705#define HAVE_KNOWN_CDROM_INTERFACE 1
35706_ACEOF
35707
35708else
35709 echo "$as_me: failed program was:" >&5
35710sed 's/^/| /' conftest.$ac_ext >&5
35711
35712echo "$as_me:$LINENO: result: no" >&5
35713echo "${ECHO_T}no" >&6
35714fi
ac1cb8d3 35715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35716
35717
35718cat >confcache <<\_ACEOF
35719# This file is a shell script that caches the results of configure
35720# tests run on this system so they can be shared between configure
35721# scripts and configure runs, see configure's option --config-cache.
35722# It is not useful on other systems. If it contains results you don't
35723# want to keep, you may remove or edit it.
35724#
35725# config.status only pays attention to the cache file if you give it
35726# the --recheck option to rerun configure.
35727#
35728# `ac_cv_env_foo' variables (set or unset) will be overridden when
35729# loading this file, other *unset* `ac_cv_foo' will be assigned the
35730# following values.
35731
35732_ACEOF
35733
35734# The following way of writing the cache mishandles newlines in values,
35735# but we know of no workaround that is simple, portable, and efficient.
35736# So, don't put newlines in cache variables' values.
35737# Ultrix sh set writes to stderr and can't be redirected directly,
35738# and sets the high bit in the cache file unless we assign to the vars.
35739{
35740 (set) 2>&1 |
35741 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35742 *ac_space=\ *)
35743 # `set' does not quote correctly, so add quotes (double-quote
35744 # substitution turns \\\\ into \\, and sed turns \\ into \).
35745 sed -n \
ac1cb8d3
VS
35746 "s/'/'\\\\''/g;
35747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
35748 ;;
35749 *)
35750 # `set' quotes correctly as required by POSIX, so do not add quotes.
35751 sed -n \
ac1cb8d3 35752 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
35753 ;;
35754 esac;
35755} |
35756 sed '
35757 t clear
35758 : clear
35759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35760 t end
35761 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35762 : end' >>confcache
35763if diff $cache_file confcache >/dev/null 2>&1; then :; else
35764 if test -w $cache_file; then
35765 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35766 cat confcache >$cache_file
35767 else
35768 echo "not updating unwritable cache $cache_file"
35769 fi
35770fi
35771rm -f confcache
35772
35773
35774CPP_MT_FLAG=
35775if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35776
35777
35778 THREADS_LINK=
35779 THREADS_CFLAGS=
35780
35781 if test "$wxUSE_THREADS" = "yes" ; then
35782 if test "$USE_BEOS" = 1; then
35783 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
35784echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
35785 wxUSE_THREADS="no"
35786 fi
35787 fi
35788
35789 if test "$wxUSE_THREADS" = "yes" ; then
35790
35791
35792 THREAD_OPTS="-pthread"
35793 case "${host}" in
35794 *-*-solaris2* | *-*-sunos4* )
35795 if test "x$GCC" = "xyes"; then
35796 THREAD_OPTS="-pthreads $THREAD_OPTS"
35797 else
35798 THREAD_OPTS="-mt $THREAD_OPTS"
35799 fi
35800 ;;
35801 *-*-freebsd*)
35802 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
35803 ;;
35804 *-*-darwin* | *-*-cygwin* )
35805 THREAD_OPTS=""
35806 ;;
35807 *-*-aix*)
35808 THREAD_OPTS="pthreads"
35809 ;;
35810 *-hp-hpux* )
00421666
MW
35811 if test "x$GCC" = "xyes"; then
35812 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
35813 THREAD_OPTS=""
35814 else
efdf6afe 35815 THREAD_OPTS=""
a848cd7e
SC
35816 fi
35817 ;;
35818
35819 *-*-irix* )
35820 if test "x$GCC" = "xyes"; then
35821 THREAD_OPTS=""
35822 fi
35823 ;;
35824
35825 *-*-*UnixWare*)
35826 if test "x$GCC" != "xyes"; then
35827 THREAD_OPTS="-Ethread"
35828 fi
35829 ;;
35830 esac
35831
35832 THREAD_OPTS="$THREAD_OPTS pthread none"
35833
35834 THREADS_OK=no
35835 for flag in $THREAD_OPTS; do
35836 case $flag in
35837 none)
35838 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
35839echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
35840 ;;
35841
35842 -*)
35843 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
35844echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
35845 THREADS_CFLAGS="$flag"
35846 ;;
35847
35848 *)
35849 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
35850echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
35851 THREADS_LINK="-l$flag"
35852 ;;
35853 esac
35854
35855 save_LIBS="$LIBS"
35856 save_CFLAGS="$CFLAGS"
35857 LIBS="$THREADS_LINK $LIBS"
35858 CFLAGS="$THREADS_CFLAGS $CFLAGS"
35859
35860 cat >conftest.$ac_ext <<_ACEOF
35861/* confdefs.h. */
35862_ACEOF
35863cat confdefs.h >>conftest.$ac_ext
35864cat >>conftest.$ac_ext <<_ACEOF
35865/* end confdefs.h. */
35866#include <pthread.h>
35867int
35868main ()
35869{
35870pthread_create(0,0,0,0);
35871 ;
35872 return 0;
35873}
35874_ACEOF
35875rm -f conftest.$ac_objext conftest$ac_exeext
35876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35877 (eval $ac_link) 2>conftest.er1
a848cd7e 35878 ac_status=$?
ac1cb8d3
VS
35879 grep -v '^ *+' conftest.er1 >conftest.err
35880 rm -f conftest.er1
35881 cat conftest.err >&5
a848cd7e
SC
35882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35883 (exit $ac_status); } &&
6ebeb4c7 35884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35886 (eval $ac_try) 2>&5
35887 ac_status=$?
35888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35889 (exit $ac_status); }; } &&
35890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35892 (eval $ac_try) 2>&5
35893 ac_status=$?
35894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895 (exit $ac_status); }; }; then
35896 THREADS_OK=yes
35897else
35898 echo "$as_me: failed program was:" >&5
35899sed 's/^/| /' conftest.$ac_ext >&5
35900
35901fi
ac1cb8d3
VS
35902rm -f conftest.err conftest.$ac_objext \
35903 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35904
35905 LIBS="$save_LIBS"
35906 CFLAGS="$save_CFLAGS"
35907
35908 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
35909echo "${ECHO_T}$THREADS_OK" >&6
35910 if test "x$THREADS_OK" = "xyes"; then
35911 break;
35912 fi
35913
35914 THREADS_LINK=""
35915 THREADS_CFLAGS=""
35916 done
35917
35918 if test "x$THREADS_OK" != "xyes"; then
35919 wxUSE_THREADS=no
35920 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
35921echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
35922 else
35923 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
35924 LIBS="$THREADS_LINK $LIBS"
35925
35926 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
35927echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
35928 flag=no
35929 case "${host}" in
35930 *-aix*)
35931 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
35932 flag="-D_THREAD_SAFE"
35933 ;;
35934 *-freebsd*)
35935 flag="-D_THREAD_SAFE"
35936 ;;
35937 *-hp-hpux* )
35938 flag="-D_REENTRANT"
35939 if test "x$GCC" != "xyes"; then
35940 flag="$flag -D_RWSTD_MULTI_THREAD"
35941 fi
35942 ;;
35943 *solaris* | alpha*-osf*)
35944 flag="-D_REENTRANT"
35945 ;;
35946 esac
35947 echo "$as_me:$LINENO: result: ${flag}" >&5
35948echo "${ECHO_T}${flag}" >&6
35949 if test "x$flag" != xno; then
35950 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
35951 fi
35952
35953 if test "x$THREADS_CFLAGS" != "x"; then
35954 CFLAGS="$CFLAGS $THREADS_CFLAGS"
35955 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
35956 fi
35957 fi
35958 fi
35959
35960 if test "$wxUSE_THREADS" = "yes" ; then
35961
35962for ac_func in thr_setconcurrency
35963do
35964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35965echo "$as_me:$LINENO: checking for $ac_func" >&5
35966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35967if eval "test \"\${$as_ac_var+set}\" = set"; then
35968 echo $ECHO_N "(cached) $ECHO_C" >&6
35969else
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. */
ac1cb8d3
VS
35976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35978#define $ac_func innocuous_$ac_func
35979
a848cd7e
SC
35980/* System header to define __stub macros and hopefully few prototypes,
35981 which can conflict with char $ac_func (); below.
35982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35983 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35984
a848cd7e
SC
35985#ifdef __STDC__
35986# include <limits.h>
35987#else
35988# include <assert.h>
35989#endif
ac1cb8d3
VS
35990
35991#undef $ac_func
35992
a848cd7e
SC
35993/* Override any gcc2 internal prototype to avoid an error. */
35994#ifdef __cplusplus
35995extern "C"
35996{
35997#endif
35998/* We use char because int might match the return type of a gcc2
35999 builtin and then its argument prototype would still apply. */
36000char $ac_func ();
36001/* The GNU C library defines this for functions which it implements
36002 to always fail with ENOSYS. Some functions are actually named
36003 something starting with __ and the normal name is an alias. */
36004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36005choke me
36006#else
36007char (*f) () = $ac_func;
36008#endif
36009#ifdef __cplusplus
36010}
36011#endif
36012
36013int
36014main ()
36015{
36016return f != $ac_func;
36017 ;
36018 return 0;
36019}
36020_ACEOF
36021rm -f conftest.$ac_objext conftest$ac_exeext
36022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36023 (eval $ac_link) 2>conftest.er1
a848cd7e 36024 ac_status=$?
ac1cb8d3
VS
36025 grep -v '^ *+' conftest.er1 >conftest.err
36026 rm -f conftest.er1
36027 cat conftest.err >&5
a848cd7e
SC
36028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); } &&
6ebeb4c7 36030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36032 (eval $ac_try) 2>&5
36033 ac_status=$?
36034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); }; } &&
36036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36038 (eval $ac_try) 2>&5
36039 ac_status=$?
36040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36041 (exit $ac_status); }; }; then
36042 eval "$as_ac_var=yes"
36043else
36044 echo "$as_me: failed program was:" >&5
36045sed 's/^/| /' conftest.$ac_ext >&5
36046
36047eval "$as_ac_var=no"
36048fi
ac1cb8d3
VS
36049rm -f conftest.err conftest.$ac_objext \
36050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36051fi
36052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36053echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36054if test `eval echo '${'$as_ac_var'}'` = yes; then
36055 cat >>confdefs.h <<_ACEOF
36056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36057_ACEOF
36058
36059fi
36060done
36061
36062
6ebeb4c7
VZ
36063 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36064echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36065if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36066 echo $ECHO_N "(cached) $ECHO_C" >&6
36067else
36068
36069 cat >conftest.$ac_ext <<_ACEOF
36070/* confdefs.h. */
36071_ACEOF
36072cat confdefs.h >>conftest.$ac_ext
36073cat >>conftest.$ac_ext <<_ACEOF
36074/* end confdefs.h. */
36075#include <pthread.h>
36076 void ThreadCleanupFunc(void *p);
36077
36078int
36079main ()
36080{
36081
36082 void *p;
36083 pthread_cleanup_push(ThreadCleanupFunc, p);
36084 pthread_cleanup_pop(0);
36085
36086 ;
36087 return 0;
36088}
36089_ACEOF
36090rm -f conftest.$ac_objext
36091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36092 (eval $ac_compile) 2>conftest.er1
36093 ac_status=$?
36094 grep -v '^ *+' conftest.er1 >conftest.err
36095 rm -f conftest.er1
36096 cat conftest.err >&5
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); } &&
36099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36101 (eval $ac_try) 2>&5
36102 ac_status=$?
36103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104 (exit $ac_status); }; } &&
36105 { ac_try='test -s conftest.$ac_objext'
36106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36107 (eval $ac_try) 2>&5
36108 ac_status=$?
36109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110 (exit $ac_status); }; }; then
36111
36112 wx_cv_func_pthread_cleanup=yes
36113
36114else
36115 echo "$as_me: failed program was:" >&5
36116sed 's/^/| /' conftest.$ac_ext >&5
36117
36118
36119 wx_cv_func_pthread_cleanup=no
36120
36121
36122fi
36123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36124
36125fi
36126echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36127echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36128 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36129 cat >>confdefs.h <<\_ACEOF
36130#define wxHAVE_PTHREAD_CLEANUP 1
36131_ACEOF
36132
36133 fi
36134
a848cd7e
SC
36135
36136for ac_header in sched.h
36137do
36138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36139if eval "test \"\${$as_ac_Header+set}\" = set"; then
36140 echo "$as_me:$LINENO: checking for $ac_header" >&5
36141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36142if eval "test \"\${$as_ac_Header+set}\" = set"; then
36143 echo $ECHO_N "(cached) $ECHO_C" >&6
36144fi
36145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36147else
36148 # Is the header compilable?
36149echo "$as_me:$LINENO: checking $ac_header usability" >&5
36150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36151cat >conftest.$ac_ext <<_ACEOF
36152/* confdefs.h. */
36153_ACEOF
36154cat confdefs.h >>conftest.$ac_ext
36155cat >>conftest.$ac_ext <<_ACEOF
36156/* end confdefs.h. */
36157$ac_includes_default
36158#include <$ac_header>
36159_ACEOF
36160rm -f conftest.$ac_objext
36161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36162 (eval $ac_compile) 2>conftest.er1
a848cd7e 36163 ac_status=$?
ac1cb8d3
VS
36164 grep -v '^ *+' conftest.er1 >conftest.err
36165 rm -f conftest.er1
36166 cat conftest.err >&5
a848cd7e
SC
36167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168 (exit $ac_status); } &&
6ebeb4c7 36169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36171 (eval $ac_try) 2>&5
36172 ac_status=$?
36173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36174 (exit $ac_status); }; } &&
36175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36177 (eval $ac_try) 2>&5
36178 ac_status=$?
36179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180 (exit $ac_status); }; }; then
36181 ac_header_compiler=yes
36182else
36183 echo "$as_me: failed program was:" >&5
36184sed 's/^/| /' conftest.$ac_ext >&5
36185
36186ac_header_compiler=no
36187fi
ac1cb8d3 36188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36189echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36190echo "${ECHO_T}$ac_header_compiler" >&6
36191
36192# Is the header present?
36193echo "$as_me:$LINENO: checking $ac_header presence" >&5
36194echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36195cat >conftest.$ac_ext <<_ACEOF
36196/* confdefs.h. */
36197_ACEOF
36198cat confdefs.h >>conftest.$ac_ext
36199cat >>conftest.$ac_ext <<_ACEOF
36200/* end confdefs.h. */
36201#include <$ac_header>
36202_ACEOF
36203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36205 ac_status=$?
36206 grep -v '^ *+' conftest.er1 >conftest.err
36207 rm -f conftest.er1
36208 cat conftest.err >&5
36209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210 (exit $ac_status); } >/dev/null; then
36211 if test -s conftest.err; then
36212 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36214 else
36215 ac_cpp_err=
36216 fi
36217else
36218 ac_cpp_err=yes
36219fi
36220if test -z "$ac_cpp_err"; then
36221 ac_header_preproc=yes
36222else
36223 echo "$as_me: failed program was:" >&5
36224sed 's/^/| /' conftest.$ac_ext >&5
36225
36226 ac_header_preproc=no
36227fi
36228rm -f conftest.err conftest.$ac_ext
36229echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36230echo "${ECHO_T}$ac_header_preproc" >&6
36231
36232# So? What about this header?
ac1cb8d3
VS
36233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36234 yes:no: )
a848cd7e
SC
36235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36236echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36238echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36239 ac_header_preproc=yes
a848cd7e 36240 ;;
ac1cb8d3 36241 no:yes:* )
a848cd7e
SC
36242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36243echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36245echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36247echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36249echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36253echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36254 (
36255 cat <<\_ASBOX
ac1cb8d3
VS
36256## ----------------------------------------- ##
36257## Report this to wx-dev@lists.wxwidgets.org ##
36258## ----------------------------------------- ##
a848cd7e
SC
36259_ASBOX
36260 ) |
36261 sed "s/^/$as_me: WARNING: /" >&2
36262 ;;
36263esac
36264echo "$as_me:$LINENO: checking for $ac_header" >&5
36265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36266if eval "test \"\${$as_ac_Header+set}\" = set"; then
36267 echo $ECHO_N "(cached) $ECHO_C" >&6
36268else
ac1cb8d3 36269 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36270fi
36271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36273
36274fi
36275if test `eval echo '${'$as_ac_Header'}'` = yes; then
36276 cat >>confdefs.h <<_ACEOF
36277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36278_ACEOF
36279
36280fi
36281
36282done
36283
36284 if test "$ac_cv_header_sched_h" = "yes"; then
36285 echo "$as_me:$LINENO: checking for sched_yield" >&5
36286echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36287if test "${ac_cv_func_sched_yield+set}" = set; then
36288 echo $ECHO_N "(cached) $ECHO_C" >&6
36289else
36290 cat >conftest.$ac_ext <<_ACEOF
36291/* confdefs.h. */
36292_ACEOF
36293cat confdefs.h >>conftest.$ac_ext
36294cat >>conftest.$ac_ext <<_ACEOF
36295/* end confdefs.h. */
ac1cb8d3
VS
36296/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36298#define sched_yield innocuous_sched_yield
36299
a848cd7e
SC
36300/* System header to define __stub macros and hopefully few prototypes,
36301 which can conflict with char sched_yield (); below.
36302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36303 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36304
a848cd7e
SC
36305#ifdef __STDC__
36306# include <limits.h>
36307#else
36308# include <assert.h>
36309#endif
ac1cb8d3
VS
36310
36311#undef sched_yield
36312
a848cd7e
SC
36313/* Override any gcc2 internal prototype to avoid an error. */
36314#ifdef __cplusplus
36315extern "C"
36316{
36317#endif
36318/* We use char because int might match the return type of a gcc2
36319 builtin and then its argument prototype would still apply. */
36320char sched_yield ();
36321/* The GNU C library defines this for functions which it implements
36322 to always fail with ENOSYS. Some functions are actually named
36323 something starting with __ and the normal name is an alias. */
36324#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36325choke me
36326#else
36327char (*f) () = sched_yield;
36328#endif
36329#ifdef __cplusplus
36330}
36331#endif
36332
36333int
36334main ()
36335{
36336return f != sched_yield;
36337 ;
36338 return 0;
36339}
36340_ACEOF
36341rm -f conftest.$ac_objext conftest$ac_exeext
36342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36343 (eval $ac_link) 2>conftest.er1
a848cd7e 36344 ac_status=$?
ac1cb8d3
VS
36345 grep -v '^ *+' conftest.er1 >conftest.err
36346 rm -f conftest.er1
36347 cat conftest.err >&5
a848cd7e
SC
36348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36349 (exit $ac_status); } &&
6ebeb4c7 36350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36352 (eval $ac_try) 2>&5
36353 ac_status=$?
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); }; } &&
36356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358 (eval $ac_try) 2>&5
36359 ac_status=$?
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); }; }; then
36362 ac_cv_func_sched_yield=yes
36363else
36364 echo "$as_me: failed program was:" >&5
36365sed 's/^/| /' conftest.$ac_ext >&5
36366
36367ac_cv_func_sched_yield=no
36368fi
ac1cb8d3
VS
36369rm -f conftest.err conftest.$ac_objext \
36370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36371fi
36372echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
36373echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
36374if test $ac_cv_func_sched_yield = yes; then
36375 cat >>confdefs.h <<\_ACEOF
36376#define HAVE_SCHED_YIELD 1
36377_ACEOF
36378
36379else
36380
36381 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
36382echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
36383if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
36384 echo $ECHO_N "(cached) $ECHO_C" >&6
36385else
36386 ac_check_lib_save_LIBS=$LIBS
36387LIBS="-lposix4 $LIBS"
36388cat >conftest.$ac_ext <<_ACEOF
36389/* confdefs.h. */
36390_ACEOF
36391cat confdefs.h >>conftest.$ac_ext
36392cat >>conftest.$ac_ext <<_ACEOF
36393/* end confdefs.h. */
36394
36395/* Override any gcc2 internal prototype to avoid an error. */
36396#ifdef __cplusplus
36397extern "C"
36398#endif
36399/* We use char because int might match the return type of a gcc2
36400 builtin and then its argument prototype would still apply. */
36401char sched_yield ();
36402int
36403main ()
36404{
36405sched_yield ();
36406 ;
36407 return 0;
36408}
36409_ACEOF
36410rm -f conftest.$ac_objext conftest$ac_exeext
36411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36412 (eval $ac_link) 2>conftest.er1
a848cd7e 36413 ac_status=$?
ac1cb8d3
VS
36414 grep -v '^ *+' conftest.er1 >conftest.err
36415 rm -f conftest.er1
36416 cat conftest.err >&5
a848cd7e
SC
36417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418 (exit $ac_status); } &&
6ebeb4c7 36419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36421 (eval $ac_try) 2>&5
36422 ac_status=$?
36423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36424 (exit $ac_status); }; } &&
36425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36427 (eval $ac_try) 2>&5
36428 ac_status=$?
36429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36430 (exit $ac_status); }; }; then
36431 ac_cv_lib_posix4_sched_yield=yes
36432else
36433 echo "$as_me: failed program was:" >&5
36434sed 's/^/| /' conftest.$ac_ext >&5
36435
36436ac_cv_lib_posix4_sched_yield=no
36437fi
ac1cb8d3
VS
36438rm -f conftest.err conftest.$ac_objext \
36439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36440LIBS=$ac_check_lib_save_LIBS
36441fi
36442echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
36443echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
36444if test $ac_cv_lib_posix4_sched_yield = yes; then
36445 cat >>confdefs.h <<\_ACEOF
36446#define HAVE_SCHED_YIELD 1
36447_ACEOF
36448 POSIX4_LINK=" -lposix4"
36449else
36450 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
36451echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
36452
36453fi
36454
36455
36456
36457fi
36458
36459 fi
36460
36461 HAVE_PRIOR_FUNCS=0
36462 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
36463echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
36464if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
36465 echo $ECHO_N "(cached) $ECHO_C" >&6
36466else
36467 cat >conftest.$ac_ext <<_ACEOF
36468/* confdefs.h. */
36469_ACEOF
36470cat confdefs.h >>conftest.$ac_ext
36471cat >>conftest.$ac_ext <<_ACEOF
36472/* end confdefs.h. */
ac1cb8d3
VS
36473/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
36474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36475#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
36476
a848cd7e
SC
36477/* System header to define __stub macros and hopefully few prototypes,
36478 which can conflict with char pthread_attr_getschedpolicy (); below.
36479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36480 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36481
a848cd7e
SC
36482#ifdef __STDC__
36483# include <limits.h>
36484#else
36485# include <assert.h>
36486#endif
ac1cb8d3
VS
36487
36488#undef pthread_attr_getschedpolicy
36489
a848cd7e
SC
36490/* Override any gcc2 internal prototype to avoid an error. */
36491#ifdef __cplusplus
36492extern "C"
36493{
36494#endif
36495/* We use char because int might match the return type of a gcc2
36496 builtin and then its argument prototype would still apply. */
36497char pthread_attr_getschedpolicy ();
36498/* The GNU C library defines this for functions which it implements
36499 to always fail with ENOSYS. Some functions are actually named
36500 something starting with __ and the normal name is an alias. */
36501#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
36502choke me
36503#else
36504char (*f) () = pthread_attr_getschedpolicy;
36505#endif
36506#ifdef __cplusplus
36507}
36508#endif
36509
36510int
36511main ()
36512{
36513return f != pthread_attr_getschedpolicy;
36514 ;
36515 return 0;
36516}
36517_ACEOF
36518rm -f conftest.$ac_objext conftest$ac_exeext
36519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36520 (eval $ac_link) 2>conftest.er1
a848cd7e 36521 ac_status=$?
ac1cb8d3
VS
36522 grep -v '^ *+' conftest.er1 >conftest.err
36523 rm -f conftest.er1
36524 cat conftest.err >&5
a848cd7e
SC
36525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36526 (exit $ac_status); } &&
6ebeb4c7 36527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36529 (eval $ac_try) 2>&5
36530 ac_status=$?
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); }; } &&
36533 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36535 (eval $ac_try) 2>&5
36536 ac_status=$?
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); }; }; then
36539 ac_cv_func_pthread_attr_getschedpolicy=yes
36540else
36541 echo "$as_me: failed program was:" >&5
36542sed 's/^/| /' conftest.$ac_ext >&5
36543
36544ac_cv_func_pthread_attr_getschedpolicy=no
36545fi
ac1cb8d3
VS
36546rm -f conftest.err conftest.$ac_objext \
36547 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36548fi
36549echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
36550echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
36551if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
36552 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
36553echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
36554if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
36555 echo $ECHO_N "(cached) $ECHO_C" >&6
36556else
36557 cat >conftest.$ac_ext <<_ACEOF
36558/* confdefs.h. */
36559_ACEOF
36560cat confdefs.h >>conftest.$ac_ext
36561cat >>conftest.$ac_ext <<_ACEOF
36562/* end confdefs.h. */
ac1cb8d3
VS
36563/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
36564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36565#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
36566
a848cd7e
SC
36567/* System header to define __stub macros and hopefully few prototypes,
36568 which can conflict with char pthread_attr_setschedparam (); below.
36569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36570 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36571
a848cd7e
SC
36572#ifdef __STDC__
36573# include <limits.h>
36574#else
36575# include <assert.h>
36576#endif
ac1cb8d3
VS
36577
36578#undef pthread_attr_setschedparam
36579
a848cd7e
SC
36580/* Override any gcc2 internal prototype to avoid an error. */
36581#ifdef __cplusplus
36582extern "C"
36583{
36584#endif
36585/* We use char because int might match the return type of a gcc2
36586 builtin and then its argument prototype would still apply. */
36587char pthread_attr_setschedparam ();
36588/* The GNU C library defines this for functions which it implements
36589 to always fail with ENOSYS. Some functions are actually named
36590 something starting with __ and the normal name is an alias. */
36591#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
36592choke me
36593#else
36594char (*f) () = pthread_attr_setschedparam;
36595#endif
36596#ifdef __cplusplus
36597}
36598#endif
36599
36600int
36601main ()
36602{
36603return f != pthread_attr_setschedparam;
36604 ;
36605 return 0;
36606}
36607_ACEOF
36608rm -f conftest.$ac_objext conftest$ac_exeext
36609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36610 (eval $ac_link) 2>conftest.er1
a848cd7e 36611 ac_status=$?
ac1cb8d3
VS
36612 grep -v '^ *+' conftest.er1 >conftest.err
36613 rm -f conftest.er1
36614 cat conftest.err >&5
a848cd7e
SC
36615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616 (exit $ac_status); } &&
6ebeb4c7 36617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36619 (eval $ac_try) 2>&5
36620 ac_status=$?
36621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622 (exit $ac_status); }; } &&
36623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36625 (eval $ac_try) 2>&5
36626 ac_status=$?
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); }; }; then
36629 ac_cv_func_pthread_attr_setschedparam=yes
36630else
36631 echo "$as_me: failed program was:" >&5
36632sed 's/^/| /' conftest.$ac_ext >&5
36633
36634ac_cv_func_pthread_attr_setschedparam=no
36635fi
ac1cb8d3
VS
36636rm -f conftest.err conftest.$ac_objext \
36637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36638fi
36639echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
36640echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
36641if test $ac_cv_func_pthread_attr_setschedparam = yes; then
36642 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
36643echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
36644if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
36645 echo $ECHO_N "(cached) $ECHO_C" >&6
36646else
36647 cat >conftest.$ac_ext <<_ACEOF
36648/* confdefs.h. */
36649_ACEOF
36650cat confdefs.h >>conftest.$ac_ext
36651cat >>conftest.$ac_ext <<_ACEOF
36652/* end confdefs.h. */
ac1cb8d3
VS
36653/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
36654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36655#define sched_get_priority_max innocuous_sched_get_priority_max
36656
a848cd7e
SC
36657/* System header to define __stub macros and hopefully few prototypes,
36658 which can conflict with char sched_get_priority_max (); below.
36659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36660 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36661
a848cd7e
SC
36662#ifdef __STDC__
36663# include <limits.h>
36664#else
36665# include <assert.h>
36666#endif
ac1cb8d3
VS
36667
36668#undef sched_get_priority_max
36669
a848cd7e
SC
36670/* Override any gcc2 internal prototype to avoid an error. */
36671#ifdef __cplusplus
36672extern "C"
36673{
36674#endif
36675/* We use char because int might match the return type of a gcc2
36676 builtin and then its argument prototype would still apply. */
36677char sched_get_priority_max ();
36678/* The GNU C library defines this for functions which it implements
36679 to always fail with ENOSYS. Some functions are actually named
36680 something starting with __ and the normal name is an alias. */
36681#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
36682choke me
36683#else
36684char (*f) () = sched_get_priority_max;
36685#endif
36686#ifdef __cplusplus
36687}
36688#endif
36689
36690int
36691main ()
36692{
36693return f != sched_get_priority_max;
36694 ;
36695 return 0;
36696}
36697_ACEOF
36698rm -f conftest.$ac_objext conftest$ac_exeext
36699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36700 (eval $ac_link) 2>conftest.er1
a848cd7e 36701 ac_status=$?
ac1cb8d3
VS
36702 grep -v '^ *+' conftest.er1 >conftest.err
36703 rm -f conftest.er1
36704 cat conftest.err >&5
a848cd7e
SC
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); } &&
6ebeb4c7 36707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36709 (eval $ac_try) 2>&5
36710 ac_status=$?
36711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36712 (exit $ac_status); }; } &&
36713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36715 (eval $ac_try) 2>&5
36716 ac_status=$?
36717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718 (exit $ac_status); }; }; then
36719 ac_cv_func_sched_get_priority_max=yes
36720else
36721 echo "$as_me: failed program was:" >&5
36722sed 's/^/| /' conftest.$ac_ext >&5
36723
36724ac_cv_func_sched_get_priority_max=no
36725fi
ac1cb8d3
VS
36726rm -f conftest.err conftest.$ac_objext \
36727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36728fi
36729echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
36730echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
36731if test $ac_cv_func_sched_get_priority_max = yes; then
36732 HAVE_PRIOR_FUNCS=1
36733else
36734 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
36735echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
36736if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
36737 echo $ECHO_N "(cached) $ECHO_C" >&6
36738else
36739 ac_check_lib_save_LIBS=$LIBS
36740LIBS="-lposix4 $LIBS"
36741cat >conftest.$ac_ext <<_ACEOF
36742/* confdefs.h. */
36743_ACEOF
36744cat confdefs.h >>conftest.$ac_ext
36745cat >>conftest.$ac_ext <<_ACEOF
36746/* end confdefs.h. */
36747
36748/* Override any gcc2 internal prototype to avoid an error. */
36749#ifdef __cplusplus
36750extern "C"
36751#endif
36752/* We use char because int might match the return type of a gcc2
36753 builtin and then its argument prototype would still apply. */
36754char sched_get_priority_max ();
36755int
36756main ()
36757{
36758sched_get_priority_max ();
36759 ;
36760 return 0;
36761}
36762_ACEOF
36763rm -f conftest.$ac_objext conftest$ac_exeext
36764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36765 (eval $ac_link) 2>conftest.er1
a848cd7e 36766 ac_status=$?
ac1cb8d3
VS
36767 grep -v '^ *+' conftest.er1 >conftest.err
36768 rm -f conftest.er1
36769 cat conftest.err >&5
a848cd7e
SC
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); } &&
6ebeb4c7 36772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36774 (eval $ac_try) 2>&5
36775 ac_status=$?
36776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777 (exit $ac_status); }; } &&
36778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36780 (eval $ac_try) 2>&5
36781 ac_status=$?
36782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783 (exit $ac_status); }; }; then
36784 ac_cv_lib_posix4_sched_get_priority_max=yes
36785else
36786 echo "$as_me: failed program was:" >&5
36787sed 's/^/| /' conftest.$ac_ext >&5
36788
36789ac_cv_lib_posix4_sched_get_priority_max=no
36790fi
ac1cb8d3
VS
36791rm -f conftest.err conftest.$ac_objext \
36792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36793LIBS=$ac_check_lib_save_LIBS
36794fi
36795echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
36796echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
36797if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
36798
36799 HAVE_PRIOR_FUNCS=1
36800 POSIX4_LINK=" -lposix4"
36801
36802fi
36803
36804
36805fi
36806
36807
36808fi
36809
36810
36811fi
36812
36813
36814 if test "$HAVE_PRIOR_FUNCS" = 1; then
36815 cat >>confdefs.h <<\_ACEOF
36816#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
36817_ACEOF
36818
36819 else
36820 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
36821echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
36822 fi
36823
36824 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
36825echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
36826if test "${ac_cv_func_pthread_cancel+set}" = set; then
36827 echo $ECHO_N "(cached) $ECHO_C" >&6
36828else
36829 cat >conftest.$ac_ext <<_ACEOF
36830/* confdefs.h. */
36831_ACEOF
36832cat confdefs.h >>conftest.$ac_ext
36833cat >>conftest.$ac_ext <<_ACEOF
36834/* end confdefs.h. */
ac1cb8d3
VS
36835/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
36836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36837#define pthread_cancel innocuous_pthread_cancel
36838
a848cd7e
SC
36839/* System header to define __stub macros and hopefully few prototypes,
36840 which can conflict with char pthread_cancel (); below.
36841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36842 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36843
a848cd7e
SC
36844#ifdef __STDC__
36845# include <limits.h>
36846#else
36847# include <assert.h>
36848#endif
ac1cb8d3
VS
36849
36850#undef pthread_cancel
36851
a848cd7e
SC
36852/* Override any gcc2 internal prototype to avoid an error. */
36853#ifdef __cplusplus
36854extern "C"
36855{
36856#endif
36857/* We use char because int might match the return type of a gcc2
36858 builtin and then its argument prototype would still apply. */
36859char pthread_cancel ();
36860/* The GNU C library defines this for functions which it implements
36861 to always fail with ENOSYS. Some functions are actually named
36862 something starting with __ and the normal name is an alias. */
36863#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
36864choke me
36865#else
36866char (*f) () = pthread_cancel;
36867#endif
36868#ifdef __cplusplus
36869}
36870#endif
36871
36872int
36873main ()
36874{
36875return f != pthread_cancel;
36876 ;
36877 return 0;
36878}
36879_ACEOF
36880rm -f conftest.$ac_objext conftest$ac_exeext
36881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36882 (eval $ac_link) 2>conftest.er1
a848cd7e 36883 ac_status=$?
ac1cb8d3
VS
36884 grep -v '^ *+' conftest.er1 >conftest.err
36885 rm -f conftest.er1
36886 cat conftest.err >&5
a848cd7e
SC
36887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888 (exit $ac_status); } &&
6ebeb4c7 36889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36891 (eval $ac_try) 2>&5
36892 ac_status=$?
36893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36894 (exit $ac_status); }; } &&
36895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36897 (eval $ac_try) 2>&5
36898 ac_status=$?
36899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900 (exit $ac_status); }; }; then
36901 ac_cv_func_pthread_cancel=yes
36902else
36903 echo "$as_me: failed program was:" >&5
36904sed 's/^/| /' conftest.$ac_ext >&5
36905
36906ac_cv_func_pthread_cancel=no
36907fi
ac1cb8d3
VS
36908rm -f conftest.err conftest.$ac_objext \
36909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36910fi
36911echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
36912echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
36913if test $ac_cv_func_pthread_cancel = yes; then
36914 cat >>confdefs.h <<\_ACEOF
36915#define HAVE_PTHREAD_CANCEL 1
36916_ACEOF
36917
36918else
36919 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
36920echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
36921fi
36922
36923
abc736fd
MW
36924 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
36925echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
36926if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
36927 echo $ECHO_N "(cached) $ECHO_C" >&6
36928else
36929 cat >conftest.$ac_ext <<_ACEOF
36930/* confdefs.h. */
36931_ACEOF
36932cat confdefs.h >>conftest.$ac_ext
36933cat >>conftest.$ac_ext <<_ACEOF
36934/* end confdefs.h. */
36935/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
36936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36937#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
36938
36939/* System header to define __stub macros and hopefully few prototypes,
36940 which can conflict with char pthread_attr_setstacksize (); below.
36941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36942 <limits.h> exists even on freestanding compilers. */
36943
36944#ifdef __STDC__
36945# include <limits.h>
36946#else
36947# include <assert.h>
36948#endif
36949
36950#undef pthread_attr_setstacksize
36951
36952/* Override any gcc2 internal prototype to avoid an error. */
36953#ifdef __cplusplus
36954extern "C"
36955{
36956#endif
36957/* We use char because int might match the return type of a gcc2
36958 builtin and then its argument prototype would still apply. */
36959char pthread_attr_setstacksize ();
36960/* The GNU C library defines this for functions which it implements
36961 to always fail with ENOSYS. Some functions are actually named
36962 something starting with __ and the normal name is an alias. */
36963#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
36964choke me
36965#else
36966char (*f) () = pthread_attr_setstacksize;
36967#endif
36968#ifdef __cplusplus
36969}
36970#endif
36971
36972int
36973main ()
36974{
36975return f != pthread_attr_setstacksize;
36976 ;
36977 return 0;
36978}
36979_ACEOF
36980rm -f conftest.$ac_objext conftest$ac_exeext
36981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36982 (eval $ac_link) 2>conftest.er1
36983 ac_status=$?
36984 grep -v '^ *+' conftest.er1 >conftest.err
36985 rm -f conftest.er1
36986 cat conftest.err >&5
36987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36988 (exit $ac_status); } &&
6ebeb4c7 36989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
36990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36991 (eval $ac_try) 2>&5
36992 ac_status=$?
36993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36994 (exit $ac_status); }; } &&
36995 { ac_try='test -s conftest$ac_exeext'
36996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36997 (eval $ac_try) 2>&5
36998 ac_status=$?
36999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000 (exit $ac_status); }; }; then
37001 ac_cv_func_pthread_attr_setstacksize=yes
37002else
37003 echo "$as_me: failed program was:" >&5
37004sed 's/^/| /' conftest.$ac_ext >&5
37005
37006ac_cv_func_pthread_attr_setstacksize=no
37007fi
37008rm -f conftest.err conftest.$ac_objext \
37009 conftest$ac_exeext conftest.$ac_ext
37010fi
37011echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37012echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37013if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37014 cat >>confdefs.h <<\_ACEOF
37015#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37016_ACEOF
37017
37018fi
37019
a848cd7e
SC
37020
37021
37022 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37023echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37024if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37025 echo $ECHO_N "(cached) $ECHO_C" >&6
37026else
37027
37028 cat >conftest.$ac_ext <<_ACEOF
37029/* confdefs.h. */
37030_ACEOF
37031cat confdefs.h >>conftest.$ac_ext
37032cat >>conftest.$ac_ext <<_ACEOF
37033/* end confdefs.h. */
37034#include <pthread.h>
37035int
37036main ()
37037{
37038
37039 pthread_mutexattr_t attr;
37040 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37041
37042 ;
37043 return 0;
37044}
37045_ACEOF
37046rm -f conftest.$ac_objext
37047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37048 (eval $ac_compile) 2>conftest.er1
a848cd7e 37049 ac_status=$?
ac1cb8d3
VS
37050 grep -v '^ *+' conftest.er1 >conftest.err
37051 rm -f conftest.er1
37052 cat conftest.err >&5
a848cd7e
SC
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); } &&
6ebeb4c7 37055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057 (eval $ac_try) 2>&5
37058 ac_status=$?
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); }; } &&
37061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37063 (eval $ac_try) 2>&5
37064 ac_status=$?
37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); }; }; then
123dca7d 37067 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37068else
37069 echo "$as_me: failed program was:" >&5
37070sed 's/^/| /' conftest.$ac_ext >&5
37071
123dca7d 37072wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37073
37074fi
ac1cb8d3 37075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37076
37077fi
37078echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37079echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37080
37081 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37082 cat >>confdefs.h <<\_ACEOF
37083#define HAVE_PTHREAD_MUTEXATTR_T 1
37084_ACEOF
37085
123dca7d
VZ
37086
37087 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37088echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37089if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37090 echo $ECHO_N "(cached) $ECHO_C" >&6
37091else
37092
37093 cat >conftest.$ac_ext <<_ACEOF
37094/* confdefs.h. */
37095_ACEOF
37096cat confdefs.h >>conftest.$ac_ext
37097cat >>conftest.$ac_ext <<_ACEOF
37098/* end confdefs.h. */
37099#include <pthread.h>
37100int
37101main ()
37102{
37103
37104 pthread_mutexattr_t attr;
37105 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37106
37107 ;
37108 return 0;
37109}
37110_ACEOF
37111rm -f conftest.$ac_objext
37112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37113 (eval $ac_compile) 2>conftest.er1
37114 ac_status=$?
37115 grep -v '^ *+' conftest.er1 >conftest.err
37116 rm -f conftest.er1
37117 cat conftest.err >&5
37118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37119 (exit $ac_status); } &&
37120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37122 (eval $ac_try) 2>&5
37123 ac_status=$?
37124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125 (exit $ac_status); }; } &&
37126 { ac_try='test -s conftest.$ac_objext'
37127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37128 (eval $ac_try) 2>&5
37129 ac_status=$?
37130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37131 (exit $ac_status); }; }; then
37132 wx_cv_func_pthread_mutexattr_settype_decl=yes
37133else
37134 echo "$as_me: failed program was:" >&5
37135sed 's/^/| /' conftest.$ac_ext >&5
37136
37137wx_cv_func_pthread_mutexattr_settype_decl=no
37138
37139fi
37140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37141
37142fi
37143echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37144echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37145 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37146 cat >>confdefs.h <<\_ACEOF
37147#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37148_ACEOF
37149
37150 fi
a848cd7e
SC
37151 else
37152 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37153echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37154if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37155 echo $ECHO_N "(cached) $ECHO_C" >&6
37156else
37157
37158 cat >conftest.$ac_ext <<_ACEOF
37159/* confdefs.h. */
37160_ACEOF
37161cat confdefs.h >>conftest.$ac_ext
37162cat >>conftest.$ac_ext <<_ACEOF
37163/* end confdefs.h. */
37164#include <pthread.h>
37165int
37166main ()
37167{
37168
37169 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37170
37171 ;
37172 return 0;
37173}
37174_ACEOF
37175rm -f conftest.$ac_objext
37176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37177 (eval $ac_compile) 2>conftest.er1
a848cd7e 37178 ac_status=$?
ac1cb8d3
VS
37179 grep -v '^ *+' conftest.er1 >conftest.err
37180 rm -f conftest.er1
37181 cat conftest.err >&5
a848cd7e
SC
37182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183 (exit $ac_status); } &&
6ebeb4c7 37184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37186 (eval $ac_try) 2>&5
37187 ac_status=$?
37188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37189 (exit $ac_status); }; } &&
37190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37192 (eval $ac_try) 2>&5
37193 ac_status=$?
37194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37195 (exit $ac_status); }; }; then
37196
37197 wx_cv_type_pthread_rec_mutex_init=yes
37198
37199else
37200 echo "$as_me: failed program was:" >&5
37201sed 's/^/| /' conftest.$ac_ext >&5
37202
37203
37204 wx_cv_type_pthread_rec_mutex_init=no
37205
37206
37207fi
ac1cb8d3 37208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37209
37210fi
37211echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37212echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37213 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37214 cat >>confdefs.h <<\_ACEOF
37215#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37216_ACEOF
37217
37218 else
37219 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37220echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37221 fi
37222 fi
37223 fi
37224
37225else
37226 if test "$wxUSE_THREADS" = "yes" ; then
37227 case "${host}" in
37228 *-*-mingw32* )
37229 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37230echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37231if test "${wx_cv_cflags_mthread+set}" = set; then
37232 echo $ECHO_N "(cached) $ECHO_C" >&6
37233else
37234
37235 CFLAGS_OLD="$CFLAGS"
37236 CFLAGS="$CFLAGS -mthreads"
37237 cat >conftest.$ac_ext <<_ACEOF
37238/* confdefs.h. */
37239_ACEOF
37240cat confdefs.h >>conftest.$ac_ext
37241cat >>conftest.$ac_ext <<_ACEOF
37242/* end confdefs.h. */
37243
37244int
37245main ()
37246{
37247
37248 ;
37249 return 0;
37250}
37251_ACEOF
37252rm -f conftest.$ac_objext
37253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37254 (eval $ac_compile) 2>conftest.er1
a848cd7e 37255 ac_status=$?
ac1cb8d3
VS
37256 grep -v '^ *+' conftest.er1 >conftest.err
37257 rm -f conftest.er1
37258 cat conftest.err >&5
a848cd7e
SC
37259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); } &&
6ebeb4c7 37261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37263 (eval $ac_try) 2>&5
37264 ac_status=$?
37265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); }; } &&
37267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37269 (eval $ac_try) 2>&5
37270 ac_status=$?
37271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272 (exit $ac_status); }; }; then
37273 wx_cv_cflags_mthread=yes
37274else
37275 echo "$as_me: failed program was:" >&5
37276sed 's/^/| /' conftest.$ac_ext >&5
37277
37278wx_cv_cflags_mthread=no
37279
37280fi
ac1cb8d3 37281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37282
37283
37284fi
37285echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37286echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37287
37288 if test "$wx_cv_cflags_mthread" = "yes"; then
37289 CXXFLAGS="$CXXFLAGS -mthreads"
37290 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37291 LDFLAGS="$LDFLAGS -mthreads"
37292 else
37293 CFLAGS="$CFLAGS_OLD"
37294 fi
37295 ;;
37296 *-pc-os2*emx )
37297 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37298 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37299 LDFLAGS="$LDFLAGS -Zmt"
37300 ;;
37301 esac
37302 fi
37303fi
37304
37305if test "$wxUSE_THREADS" = "yes"; then
37306 cat >>confdefs.h <<\_ACEOF
37307#define wxUSE_THREADS 1
37308_ACEOF
37309
37310
37311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37312else
37313 if test "$ac_cv_func_strtok_r" = "yes"; then
37314 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37315echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37316 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37317 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37318 echo "$as_me:$LINENO: result: yes" >&5
37319echo "${ECHO_T}yes" >&6
37320 else
37321 echo "$as_me:$LINENO: result: no" >&5
37322echo "${ECHO_T}no" >&6
37323 fi
37324 fi
37325fi
37326
37327if test "$WXGTK20" = 1 ; then
37328 cat >>confdefs.h <<_ACEOF
37329#define __WXGTK20__ $WXGTK20
37330_ACEOF
37331
37332 WXGTK12=1
37333fi
37334
37335if test "$WXGTK12" = 1 ; then
37336 cat >>confdefs.h <<_ACEOF
37337#define __WXGTK12__ $WXGTK12
37338_ACEOF
37339
37340fi
37341
37342if test "$WXGTK127" = 1 ; then
37343 cat >>confdefs.h <<_ACEOF
37344#define __WXGTK127__ $WXGTK127
37345_ACEOF
37346
37347fi
37348
37349if test "$WXGPE" = 1 ; then
37350 cat >>confdefs.h <<_ACEOF
37351#define __WXGPE__ $WXGPE
37352_ACEOF
37353
37354fi
37355
37356WXDEBUG=
37357
37358if test "$wxUSE_DEBUG_INFO" = "yes" ; then
37359 WXDEBUG="-g"
37360 wxUSE_OPTIMISE=no
37361fi
37362
37363if test "$wxUSE_DEBUG_GDB" = "yes" ; then
37364 wxUSE_DEBUG_INFO=yes
18228ab4
MW
37365 if test "$GCC" = yes; then
37366 WXDEBUG="-ggdb"
37367 fi
a848cd7e
SC
37368fi
37369
37370if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
37371 cat >>confdefs.h <<\_ACEOF
37372#define WXDEBUG 1
37373_ACEOF
37374
37375 WXDEBUG_DEFINE="-D__WXDEBUG__"
37376else
37377 if test "$wxUSE_GTK" = 1 ; then
37378 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
37379 fi
37380fi
37381
37382if test "$wxUSE_MEM_TRACING" = "yes" ; then
37383 cat >>confdefs.h <<\_ACEOF
37384#define wxUSE_MEMORY_TRACING 1
37385_ACEOF
37386
37387 cat >>confdefs.h <<\_ACEOF
37388#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
37389_ACEOF
37390
37391 cat >>confdefs.h <<\_ACEOF
37392#define wxUSE_DEBUG_NEW_ALWAYS 1
37393_ACEOF
37394
37395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
37396fi
37397
37398if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 37399 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
37400fi
37401
37402PROFILE=
37403if test "$wxUSE_PROFILE" = "yes" ; then
37404 PROFILE=" -pg"
37405fi
37406
37407CODE_GEN_FLAGS=
37408CODE_GEN_FLAGS_CXX=
37409if test "$GCC" = "yes" ; then
37410 if test "$wxUSE_NO_RTTI" = "yes" ; then
37411 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
37412 fi
37413 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37414 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
37415 fi
37416 if test "$wxUSE_PERMISSIVE" = "yes" ; then
37417 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
37418 fi
37419
37420 case "${host}" in
37421 powerpc*-*-aix* )
37422 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
37423 ;;
37424 *-hppa* )
37425 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
37426 ;;
37427 esac
37428fi
37429
37430OPTIMISE=
37431if test "$wxUSE_OPTIMISE" = "no" ; then
37432 if test "$GCC" = yes ; then
37433 OPTIMISE="-O0"
37434 fi
37435else
37436 if test "$GCC" = yes ; then
37437 OPTIMISE="-O2"
37438
37439 case "${host}" in
37440 i586-*-*|i686-*-* )
37441 OPTIMISE="${OPTIMISE} "
37442 ;;
37443 esac
37444 else
37445 OPTIMISE="-O"
37446 fi
37447fi
37448
37449
37450if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
37451 cat >>confdefs.h <<\_ACEOF
37452#define WXWIN_COMPATIBILITY_2_2 1
37453_ACEOF
37454
37455
37456 WXWIN_COMPATIBILITY_2_4="yes"
37457fi
37458
37459if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
37460 cat >>confdefs.h <<\_ACEOF
37461#define WXWIN_COMPATIBILITY_2_4 1
37462_ACEOF
37463
37464fi
37465
37466
37467if test "$wxUSE_GUI" = "yes"; then
881bfcd6 37468 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37469#define wxUSE_GUI 1
37470_ACEOF
37471
37472
370fd4c2 37473 fi
a848cd7e
SC
37474
37475
37476if test "$wxUSE_UNIX" = "yes"; then
37477 cat >>confdefs.h <<\_ACEOF
37478#define wxUSE_UNIX 1
37479_ACEOF
37480
37481fi
37482
37483
37484if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37485
37486 HAVE_DL_FUNCS=0
37487 HAVE_SHL_FUNCS=0
37488 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37489 if test "$USE_DARWIN" = 1; then
37490 HAVE_DL_FUNCS=1
47a7e797
MW
37491 elif test "$USE_DOS" = 1; then
37492 HAVE_DL_FUNCS=0
a848cd7e
SC
37493 else
37494
37495for ac_func in dlopen
37496do
37497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37498echo "$as_me:$LINENO: checking for $ac_func" >&5
37499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37500if eval "test \"\${$as_ac_var+set}\" = set"; then
37501 echo $ECHO_N "(cached) $ECHO_C" >&6
37502else
37503 cat >conftest.$ac_ext <<_ACEOF
37504/* confdefs.h. */
37505_ACEOF
37506cat confdefs.h >>conftest.$ac_ext
37507cat >>conftest.$ac_ext <<_ACEOF
37508/* end confdefs.h. */
ac1cb8d3
VS
37509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37511#define $ac_func innocuous_$ac_func
37512
a848cd7e
SC
37513/* System header to define __stub macros and hopefully few prototypes,
37514 which can conflict with char $ac_func (); below.
37515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37516 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37517
a848cd7e
SC
37518#ifdef __STDC__
37519# include <limits.h>
37520#else
37521# include <assert.h>
37522#endif
ac1cb8d3
VS
37523
37524#undef $ac_func
37525
a848cd7e
SC
37526/* Override any gcc2 internal prototype to avoid an error. */
37527#ifdef __cplusplus
37528extern "C"
37529{
37530#endif
37531/* We use char because int might match the return type of a gcc2
37532 builtin and then its argument prototype would still apply. */
37533char $ac_func ();
37534/* The GNU C library defines this for functions which it implements
37535 to always fail with ENOSYS. Some functions are actually named
37536 something starting with __ and the normal name is an alias. */
37537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37538choke me
37539#else
37540char (*f) () = $ac_func;
37541#endif
37542#ifdef __cplusplus
37543}
37544#endif
37545
37546int
37547main ()
37548{
37549return f != $ac_func;
37550 ;
37551 return 0;
37552}
37553_ACEOF
37554rm -f conftest.$ac_objext conftest$ac_exeext
37555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37556 (eval $ac_link) 2>conftest.er1
a848cd7e 37557 ac_status=$?
ac1cb8d3
VS
37558 grep -v '^ *+' conftest.er1 >conftest.err
37559 rm -f conftest.er1
37560 cat conftest.err >&5
a848cd7e
SC
37561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562 (exit $ac_status); } &&
6ebeb4c7 37563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37565 (eval $ac_try) 2>&5
37566 ac_status=$?
37567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37568 (exit $ac_status); }; } &&
37569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37571 (eval $ac_try) 2>&5
37572 ac_status=$?
37573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574 (exit $ac_status); }; }; then
37575 eval "$as_ac_var=yes"
37576else
37577 echo "$as_me: failed program was:" >&5
37578sed 's/^/| /' conftest.$ac_ext >&5
37579
37580eval "$as_ac_var=no"
37581fi
ac1cb8d3
VS
37582rm -f conftest.err conftest.$ac_objext \
37583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37584fi
37585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37586echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37587if test `eval echo '${'$as_ac_var'}'` = yes; then
37588 cat >>confdefs.h <<_ACEOF
37589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37590_ACEOF
37591
37592 cat >>confdefs.h <<\_ACEOF
37593#define HAVE_DLOPEN 1
37594_ACEOF
37595
37596 HAVE_DL_FUNCS=1
37597
37598else
37599
37600 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37601echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
37602if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37603 echo $ECHO_N "(cached) $ECHO_C" >&6
37604else
37605 ac_check_lib_save_LIBS=$LIBS
37606LIBS="-ldl $LIBS"
37607cat >conftest.$ac_ext <<_ACEOF
37608/* confdefs.h. */
37609_ACEOF
37610cat confdefs.h >>conftest.$ac_ext
37611cat >>conftest.$ac_ext <<_ACEOF
37612/* end confdefs.h. */
37613
37614/* Override any gcc2 internal prototype to avoid an error. */
37615#ifdef __cplusplus
37616extern "C"
37617#endif
37618/* We use char because int might match the return type of a gcc2
37619 builtin and then its argument prototype would still apply. */
37620char dlopen ();
37621int
37622main ()
37623{
37624dlopen ();
37625 ;
37626 return 0;
37627}
37628_ACEOF
37629rm -f conftest.$ac_objext conftest$ac_exeext
37630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37631 (eval $ac_link) 2>conftest.er1
a848cd7e 37632 ac_status=$?
ac1cb8d3
VS
37633 grep -v '^ *+' conftest.er1 >conftest.err
37634 rm -f conftest.er1
37635 cat conftest.err >&5
a848cd7e
SC
37636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37637 (exit $ac_status); } &&
6ebeb4c7 37638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37640 (eval $ac_try) 2>&5
37641 ac_status=$?
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); }; } &&
37644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37646 (eval $ac_try) 2>&5
37647 ac_status=$?
37648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649 (exit $ac_status); }; }; then
37650 ac_cv_lib_dl_dlopen=yes
37651else
37652 echo "$as_me: failed program was:" >&5
37653sed 's/^/| /' conftest.$ac_ext >&5
37654
37655ac_cv_lib_dl_dlopen=no
37656fi
ac1cb8d3
VS
37657rm -f conftest.err conftest.$ac_objext \
37658 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37659LIBS=$ac_check_lib_save_LIBS
37660fi
37661echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37662echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
37663if test $ac_cv_lib_dl_dlopen = yes; then
37664
37665 cat >>confdefs.h <<\_ACEOF
37666#define HAVE_DLOPEN 1
37667_ACEOF
37668
37669 HAVE_DL_FUNCS=1
37670 DL_LINK=" -ldl$DL_LINK"
37671
37672else
37673
37674
37675for ac_func in shl_load
37676do
37677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37678echo "$as_me:$LINENO: checking for $ac_func" >&5
37679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37680if eval "test \"\${$as_ac_var+set}\" = set"; then
37681 echo $ECHO_N "(cached) $ECHO_C" >&6
37682else
37683 cat >conftest.$ac_ext <<_ACEOF
37684/* confdefs.h. */
37685_ACEOF
37686cat confdefs.h >>conftest.$ac_ext
37687cat >>conftest.$ac_ext <<_ACEOF
37688/* end confdefs.h. */
ac1cb8d3
VS
37689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37691#define $ac_func innocuous_$ac_func
37692
a848cd7e
SC
37693/* System header to define __stub macros and hopefully few prototypes,
37694 which can conflict with char $ac_func (); below.
37695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37696 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37697
a848cd7e
SC
37698#ifdef __STDC__
37699# include <limits.h>
37700#else
37701# include <assert.h>
37702#endif
ac1cb8d3
VS
37703
37704#undef $ac_func
37705
a848cd7e
SC
37706/* Override any gcc2 internal prototype to avoid an error. */
37707#ifdef __cplusplus
37708extern "C"
37709{
37710#endif
37711/* We use char because int might match the return type of a gcc2
37712 builtin and then its argument prototype would still apply. */
37713char $ac_func ();
37714/* The GNU C library defines this for functions which it implements
37715 to always fail with ENOSYS. Some functions are actually named
37716 something starting with __ and the normal name is an alias. */
37717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37718choke me
37719#else
37720char (*f) () = $ac_func;
37721#endif
37722#ifdef __cplusplus
37723}
37724#endif
37725
37726int
37727main ()
37728{
37729return f != $ac_func;
37730 ;
37731 return 0;
37732}
37733_ACEOF
37734rm -f conftest.$ac_objext conftest$ac_exeext
37735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37736 (eval $ac_link) 2>conftest.er1
a848cd7e 37737 ac_status=$?
ac1cb8d3
VS
37738 grep -v '^ *+' conftest.er1 >conftest.err
37739 rm -f conftest.er1
37740 cat conftest.err >&5
a848cd7e
SC
37741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37742 (exit $ac_status); } &&
6ebeb4c7 37743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37745 (eval $ac_try) 2>&5
37746 ac_status=$?
37747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748 (exit $ac_status); }; } &&
37749 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37751 (eval $ac_try) 2>&5
37752 ac_status=$?
37753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754 (exit $ac_status); }; }; then
37755 eval "$as_ac_var=yes"
37756else
37757 echo "$as_me: failed program was:" >&5
37758sed 's/^/| /' conftest.$ac_ext >&5
37759
37760eval "$as_ac_var=no"
37761fi
ac1cb8d3
VS
37762rm -f conftest.err conftest.$ac_objext \
37763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37764fi
37765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37767if test `eval echo '${'$as_ac_var'}'` = yes; then
37768 cat >>confdefs.h <<_ACEOF
37769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37770_ACEOF
37771
37772 cat >>confdefs.h <<\_ACEOF
37773#define HAVE_SHL_LOAD 1
37774_ACEOF
37775
37776 HAVE_SHL_FUNCS=1
37777
37778else
37779
37780 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
37781echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
37782if test "${ac_cv_lib_shl_load_dld+set}" = set; then
37783 echo $ECHO_N "(cached) $ECHO_C" >&6
37784else
37785 ac_check_lib_save_LIBS=$LIBS
37786LIBS="-lshl_load $LIBS"
37787cat >conftest.$ac_ext <<_ACEOF
37788/* confdefs.h. */
37789_ACEOF
37790cat confdefs.h >>conftest.$ac_ext
37791cat >>conftest.$ac_ext <<_ACEOF
37792/* end confdefs.h. */
37793
37794/* Override any gcc2 internal prototype to avoid an error. */
37795#ifdef __cplusplus
37796extern "C"
37797#endif
37798/* We use char because int might match the return type of a gcc2
37799 builtin and then its argument prototype would still apply. */
37800char dld ();
37801int
37802main ()
37803{
37804dld ();
37805 ;
37806 return 0;
37807}
37808_ACEOF
37809rm -f conftest.$ac_objext conftest$ac_exeext
37810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37811 (eval $ac_link) 2>conftest.er1
a848cd7e 37812 ac_status=$?
ac1cb8d3
VS
37813 grep -v '^ *+' conftest.er1 >conftest.err
37814 rm -f conftest.er1
37815 cat conftest.err >&5
a848cd7e
SC
37816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37817 (exit $ac_status); } &&
6ebeb4c7 37818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37820 (eval $ac_try) 2>&5
37821 ac_status=$?
37822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823 (exit $ac_status); }; } &&
37824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37826 (eval $ac_try) 2>&5
37827 ac_status=$?
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); }; }; then
37830 ac_cv_lib_shl_load_dld=yes
37831else
37832 echo "$as_me: failed program was:" >&5
37833sed 's/^/| /' conftest.$ac_ext >&5
37834
37835ac_cv_lib_shl_load_dld=no
37836fi
ac1cb8d3
VS
37837rm -f conftest.err conftest.$ac_objext \
37838 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37839LIBS=$ac_check_lib_save_LIBS
37840fi
37841echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
37842echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
37843if test $ac_cv_lib_shl_load_dld = yes; then
37844
37845 HAVE_SHL_FUNCS=1
37846 DL_LINK=" -ldld$DL_LINK"
37847
37848fi
37849
37850
37851fi
37852done
37853
37854
37855fi
37856
37857
37858fi
37859done
37860
37861
37862 if test "$HAVE_DL_FUNCS" = 1; then
37863
37864for ac_func in dlerror
37865do
37866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37867echo "$as_me:$LINENO: checking for $ac_func" >&5
37868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37869if eval "test \"\${$as_ac_var+set}\" = set"; then
37870 echo $ECHO_N "(cached) $ECHO_C" >&6
37871else
37872 cat >conftest.$ac_ext <<_ACEOF
37873/* confdefs.h. */
37874_ACEOF
37875cat confdefs.h >>conftest.$ac_ext
37876cat >>conftest.$ac_ext <<_ACEOF
37877/* end confdefs.h. */
ac1cb8d3
VS
37878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37880#define $ac_func innocuous_$ac_func
37881
a848cd7e
SC
37882/* System header to define __stub macros and hopefully few prototypes,
37883 which can conflict with char $ac_func (); below.
37884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37885 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37886
a848cd7e
SC
37887#ifdef __STDC__
37888# include <limits.h>
37889#else
37890# include <assert.h>
37891#endif
ac1cb8d3
VS
37892
37893#undef $ac_func
37894
a848cd7e
SC
37895/* Override any gcc2 internal prototype to avoid an error. */
37896#ifdef __cplusplus
37897extern "C"
37898{
37899#endif
37900/* We use char because int might match the return type of a gcc2
37901 builtin and then its argument prototype would still apply. */
37902char $ac_func ();
37903/* The GNU C library defines this for functions which it implements
37904 to always fail with ENOSYS. Some functions are actually named
37905 something starting with __ and the normal name is an alias. */
37906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37907choke me
37908#else
37909char (*f) () = $ac_func;
37910#endif
37911#ifdef __cplusplus
37912}
37913#endif
37914
37915int
37916main ()
37917{
37918return f != $ac_func;
37919 ;
37920 return 0;
37921}
37922_ACEOF
37923rm -f conftest.$ac_objext conftest$ac_exeext
37924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37925 (eval $ac_link) 2>conftest.er1
a848cd7e 37926 ac_status=$?
ac1cb8d3
VS
37927 grep -v '^ *+' conftest.er1 >conftest.err
37928 rm -f conftest.er1
37929 cat conftest.err >&5
a848cd7e
SC
37930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37931 (exit $ac_status); } &&
6ebeb4c7 37932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37934 (eval $ac_try) 2>&5
37935 ac_status=$?
37936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937 (exit $ac_status); }; } &&
37938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940 (eval $ac_try) 2>&5
37941 ac_status=$?
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); }; }; then
37944 eval "$as_ac_var=yes"
37945else
37946 echo "$as_me: failed program was:" >&5
37947sed 's/^/| /' conftest.$ac_ext >&5
37948
37949eval "$as_ac_var=no"
37950fi
ac1cb8d3
VS
37951rm -f conftest.err conftest.$ac_objext \
37952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37953fi
37954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37956if test `eval echo '${'$as_ac_var'}'` = yes; then
37957 cat >>confdefs.h <<_ACEOF
37958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37959_ACEOF
37960 cat >>confdefs.h <<\_ACEOF
37961#define HAVE_DLERROR 1
37962_ACEOF
37963
37964else
37965
37966 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
37967echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
37968if test "${ac_cv_lib_dl_dlerror+set}" = set; then
37969 echo $ECHO_N "(cached) $ECHO_C" >&6
37970else
37971 ac_check_lib_save_LIBS=$LIBS
37972LIBS="-ldl $LIBS"
37973cat >conftest.$ac_ext <<_ACEOF
37974/* confdefs.h. */
37975_ACEOF
37976cat confdefs.h >>conftest.$ac_ext
37977cat >>conftest.$ac_ext <<_ACEOF
37978/* end confdefs.h. */
37979
37980/* Override any gcc2 internal prototype to avoid an error. */
37981#ifdef __cplusplus
37982extern "C"
37983#endif
37984/* We use char because int might match the return type of a gcc2
37985 builtin and then its argument prototype would still apply. */
37986char dlerror ();
37987int
37988main ()
37989{
37990dlerror ();
37991 ;
37992 return 0;
37993}
37994_ACEOF
37995rm -f conftest.$ac_objext conftest$ac_exeext
37996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37997 (eval $ac_link) 2>conftest.er1
a848cd7e 37998 ac_status=$?
ac1cb8d3
VS
37999 grep -v '^ *+' conftest.er1 >conftest.err
38000 rm -f conftest.er1
38001 cat conftest.err >&5
a848cd7e
SC
38002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003 (exit $ac_status); } &&
6ebeb4c7 38004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38006 (eval $ac_try) 2>&5
38007 ac_status=$?
38008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38009 (exit $ac_status); }; } &&
38010 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38012 (eval $ac_try) 2>&5
38013 ac_status=$?
38014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38015 (exit $ac_status); }; }; then
38016 ac_cv_lib_dl_dlerror=yes
38017else
38018 echo "$as_me: failed program was:" >&5
38019sed 's/^/| /' conftest.$ac_ext >&5
38020
38021ac_cv_lib_dl_dlerror=no
38022fi
ac1cb8d3
VS
38023rm -f conftest.err conftest.$ac_objext \
38024 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38025LIBS=$ac_check_lib_save_LIBS
38026fi
38027echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38028echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38029if test $ac_cv_lib_dl_dlerror = yes; then
38030 cat >>confdefs.h <<\_ACEOF
38031#define HAVE_DLERROR 1
38032_ACEOF
38033
38034fi
38035
38036
38037
38038fi
38039done
38040
38041 fi
38042 fi
38043
38044 if test "$HAVE_DL_FUNCS" = 0; then
38045 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 38046 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
38047 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38048echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38049 wxUSE_DYNAMIC_LOADER=no
38050 wxUSE_DYNLIB_CLASS=no
38051 else
38052 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38053echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38054 fi
38055 fi
38056 fi
38057 fi
38058fi
38059
38060if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38061 cat >>confdefs.h <<\_ACEOF
38062#define wxUSE_DYNAMIC_LOADER 1
38063_ACEOF
38064
38065fi
38066if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38067 cat >>confdefs.h <<\_ACEOF
38068#define wxUSE_DYNLIB_CLASS 1
38069_ACEOF
38070
38071fi
38072
38073
38074
38075if test "$wxUSE_PLUGINS" = "yes" ; then
38076 if test "$wxUSE_SHARED" = "no" ; then
38077 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38078echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38079 wxUSE_PLUGINS=no
38080 fi
38081 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38082 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38083echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38084 wxUSE_PLUGINS=no
38085 fi
38086 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38087 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38088echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38089 wxUSE_PLUGINS=no
38090 fi
38091 if test "$wxUSE_PLUGINS" = "yes" ; then
38092 cat >>confdefs.h <<\_ACEOF
38093#define wxUSE_PLUGINS 1
38094_ACEOF
38095
38096 fi
38097fi
38098
38099
38100if test "$wxUSE_STL" = "yes"; then
38101 cat >>confdefs.h <<\_ACEOF
38102#define wxUSE_STL 1
38103_ACEOF
38104
38105fi
38106
38107if test "$wxUSE_APPLE_IEEE" = "yes"; then
38108 cat >>confdefs.h <<\_ACEOF
38109#define wxUSE_APPLE_IEEE 1
38110_ACEOF
38111
38112fi
38113
38114if test "$wxUSE_TIMER" = "yes"; then
38115 cat >>confdefs.h <<\_ACEOF
38116#define wxUSE_TIMER 1
38117_ACEOF
38118
38119fi
38120
9c112555 38121if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38122 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38123echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38124if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38125 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38126else
d12aef51
VZ
38127
38128 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38129/* confdefs.h. */
38130_ACEOF
38131cat confdefs.h >>conftest.$ac_ext
38132cat >>conftest.$ac_ext <<_ACEOF
38133/* end confdefs.h. */
d12aef51
VZ
38134
38135 #include <sys/soundcard.h>
38136
38137int
38138main ()
38139{
38140
38141 ioctl(0, SNDCTL_DSP_SYNC, 0);
38142
38143 ;
38144 return 0;
38145}
a848cd7e 38146_ACEOF
d12aef51
VZ
38147rm -f conftest.$ac_objext conftest$ac_exeext
38148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38149 (eval $ac_link) 2>conftest.er1
a848cd7e 38150 ac_status=$?
ac1cb8d3
VS
38151 grep -v '^ *+' conftest.er1 >conftest.err
38152 rm -f conftest.er1
38153 cat conftest.err >&5
a848cd7e
SC
38154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155 (exit $ac_status); } &&
6ebeb4c7 38156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38158 (eval $ac_try) 2>&5
38159 ac_status=$?
38160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161 (exit $ac_status); }; } &&
d12aef51 38162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38164 (eval $ac_try) 2>&5
38165 ac_status=$?
38166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38167 (exit $ac_status); }; }; then
d12aef51 38168 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38169else
38170 echo "$as_me: failed program was:" >&5
38171sed 's/^/| /' conftest.$ac_ext >&5
38172
a848cd7e 38173
d12aef51
VZ
38174 saveLibs="$LIBS"
38175 LIBS="$saveLibs -lossaudio"
38176 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38177/* confdefs.h. */
38178_ACEOF
38179cat confdefs.h >>conftest.$ac_ext
38180cat >>conftest.$ac_ext <<_ACEOF
38181/* end confdefs.h. */
d12aef51
VZ
38182
38183 #include <sys/soundcard.h>
38184
38185int
38186main ()
38187{
38188
38189 ioctl(0, SNDCTL_DSP_SYNC, 0);
38190
38191 ;
38192 return 0;
38193}
a848cd7e 38194_ACEOF
d12aef51
VZ
38195rm -f conftest.$ac_objext conftest$ac_exeext
38196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38197 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38198 ac_status=$?
38199 grep -v '^ *+' conftest.er1 >conftest.err
38200 rm -f conftest.er1
38201 cat conftest.err >&5
38202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51
VZ
38203 (exit $ac_status); } &&
38204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38206 (eval $ac_try) 2>&5
38207 ac_status=$?
38208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209 (exit $ac_status); }; } &&
38210 { ac_try='test -s conftest$ac_exeext'
38211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38212 (eval $ac_try) 2>&5
38213 ac_status=$?
38214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215 (exit $ac_status); }; }; then
38216 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38217else
38218 echo "$as_me: failed program was:" >&5
38219sed 's/^/| /' conftest.$ac_ext >&5
38220
a848cd7e 38221
d12aef51
VZ
38222 LIBS="$saveLibs"
38223 ac_cv_header_sys_soundcard=no
38224
38225
a848cd7e 38226fi
d12aef51
VZ
38227rm -f conftest.err conftest.$ac_objext \
38228 conftest$ac_exeext conftest.$ac_ext
38229
a848cd7e
SC
38230
38231fi
d12aef51
VZ
38232rm -f conftest.err conftest.$ac_objext \
38233 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38234
38235fi
d12aef51
VZ
38236echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38237echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38238
d12aef51
VZ
38239 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38240 cat >>confdefs.h <<\_ACEOF
38241#define HAVE_SYS_SOUNDCARD_H 1
38242_ACEOF
a848cd7e 38243
d12aef51
VZ
38244 else
38245 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38246 fi
9c112555
MW
38247fi
38248WITH_PLUGIN_SDL=0
38249if test "$wxUSE_SOUND" = "yes"; then
38250 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38251 if test "$wxUSE_LIBSDL" != "no"; then
38252
38253# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38254if test "${with_sdl_prefix+set}" = set; then
38255 withval="$with_sdl_prefix"
38256 sdl_prefix="$withval"
38257else
38258 sdl_prefix=""
38259fi;
38260
38261# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38262if test "${with_sdl_exec_prefix+set}" = set; then
38263 withval="$with_sdl_exec_prefix"
38264 sdl_exec_prefix="$withval"
38265else
38266 sdl_exec_prefix=""
38267fi;
38268# Check whether --enable-sdltest or --disable-sdltest was given.
38269if test "${enable_sdltest+set}" = set; then
38270 enableval="$enable_sdltest"
38271
38272else
38273 enable_sdltest=yes
38274fi;
38275
38276 if test x$sdl_exec_prefix != x ; then
38277 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38278 if test x${SDL_CONFIG+set} != xset ; then
38279 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38280 fi
38281 fi
38282 if test x$sdl_prefix != x ; then
38283 sdl_args="$sdl_args --prefix=$sdl_prefix"
38284 if test x${SDL_CONFIG+set} != xset ; then
38285 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38286 fi
38287 fi
38288
38289
38290 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38291 # Extract the first word of "sdl-config", so it can be a program name with args.
38292set dummy sdl-config; ac_word=$2
38293echo "$as_me:$LINENO: checking for $ac_word" >&5
38294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38295if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38296 echo $ECHO_N "(cached) $ECHO_C" >&6
38297else
38298 case $SDL_CONFIG in
38299 [\\/]* | ?:[\\/]*)
38300 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38301 ;;
38302 *)
38303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38304for as_dir in $PATH
38305do
38306 IFS=$as_save_IFS
38307 test -z "$as_dir" && as_dir=.
38308 for ac_exec_ext in '' $ac_executable_extensions; do
38309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38310 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38312 break 2
38313 fi
38314done
38315done
38316
38317 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38318 ;;
38319esac
38320fi
38321SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38322
38323if test -n "$SDL_CONFIG"; then
38324 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38325echo "${ECHO_T}$SDL_CONFIG" >&6
38326else
38327 echo "$as_me:$LINENO: result: no" >&5
38328echo "${ECHO_T}no" >&6
38329fi
38330
38331 min_sdl_version=1.2.0
38332 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38333echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38334 no_sdl=""
38335 if test "$SDL_CONFIG" = "no" ; then
38336 no_sdl=yes
38337 else
38338 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
38339 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
38340
38341 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
38342 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38343 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
38344 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38345 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
38346 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38347 if test "x$enable_sdltest" = "xyes" ; then
38348 ac_save_CFLAGS="$CFLAGS"
94acd38e 38349 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
38350 ac_save_LIBS="$LIBS"
38351 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38352 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38353 LIBS="$LIBS $SDL_LIBS"
38354 rm -f conf.sdltest
38355 if test "$cross_compiling" = yes; then
38356 echo $ac_n "cross compiling; assumed OK... $ac_c"
38357else
38358 cat >conftest.$ac_ext <<_ACEOF
38359/* confdefs.h. */
38360_ACEOF
38361cat confdefs.h >>conftest.$ac_ext
38362cat >>conftest.$ac_ext <<_ACEOF
38363/* end confdefs.h. */
38364
38365#include <stdio.h>
38366#include <stdlib.h>
38367#include <string.h>
38368#include "SDL.h"
38369
38370char*
38371my_strdup (char *str)
38372{
38373 char *new_str;
38374
38375 if (str)
38376 {
38377 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
38378 strcpy (new_str, str);
38379 }
38380 else
38381 new_str = NULL;
38382
38383 return new_str;
38384}
38385
38386int main (int argc, char *argv[])
38387{
38388 int major, minor, micro;
38389 char *tmp_version;
38390
38391 /* This hangs on some systems (?)
38392 system ("touch conf.sdltest");
38393 */
38394 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
38395
38396 /* HP/UX 9 (%@#!) writes to sscanf strings */
38397 tmp_version = my_strdup("$min_sdl_version");
38398 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
38399 printf("%s, bad version string\n", "$min_sdl_version");
38400 exit(1);
38401 }
38402
38403 if (($sdl_major_version > major) ||
38404 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
38405 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
38406 {
38407 return 0;
38408 }
38409 else
38410 {
38411 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
38412 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
38413 printf("*** best to upgrade to the required version.\n");
38414 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
38415 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
38416 printf("*** config.cache before re-running configure\n");
38417 return 1;
38418 }
38419}
38420
38421
38422_ACEOF
38423rm -f conftest$ac_exeext
38424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38425 (eval $ac_link) 2>&5
38426 ac_status=$?
38427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38430 (eval $ac_try) 2>&5
38431 ac_status=$?
38432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433 (exit $ac_status); }; }; then
38434 :
38435else
38436 echo "$as_me: program exited with status $ac_status" >&5
38437echo "$as_me: failed program was:" >&5
38438sed 's/^/| /' conftest.$ac_ext >&5
38439
38440( exit $ac_status )
38441no_sdl=yes
38442fi
ac1cb8d3 38443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38444fi
38445 CFLAGS="$ac_save_CFLAGS"
94acd38e 38446 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38447 LIBS="$ac_save_LIBS"
38448 fi
38449 fi
38450 if test "x$no_sdl" = x ; then
38451 echo "$as_me:$LINENO: result: yes" >&5
38452echo "${ECHO_T}yes" >&6
38453
38454 EXTRALIBS_SDL="$SDL_LIBS"
38455 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
38456 cat >>confdefs.h <<\_ACEOF
38457#define wxUSE_LIBSDL 1
38458_ACEOF
38459
38460
38461 else
38462 echo "$as_me:$LINENO: result: no" >&5
38463echo "${ECHO_T}no" >&6
38464 if test "$SDL_CONFIG" = "no" ; then
38465 echo "*** The sdl-config script installed by SDL could not be found"
38466 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
38467 echo "*** your path, or set the SDL_CONFIG environment variable to the"
38468 echo "*** full path to sdl-config."
38469 else
38470 if test -f conf.sdltest ; then
38471 :
38472 else
38473 echo "*** Could not run SDL test program, checking why..."
38474 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38475 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38476 LIBS="$LIBS $SDL_LIBS"
38477 cat >conftest.$ac_ext <<_ACEOF
38478/* confdefs.h. */
38479_ACEOF
38480cat confdefs.h >>conftest.$ac_ext
38481cat >>conftest.$ac_ext <<_ACEOF
38482/* end confdefs.h. */
38483
38484#include <stdio.h>
38485#include "SDL.h"
38486
38487int main(int argc, char *argv[])
38488{ return 0; }
38489#undef main
38490#define main K_and_R_C_main
38491
38492int
38493main ()
38494{
38495 return 0;
38496 ;
38497 return 0;
38498}
38499_ACEOF
38500rm -f conftest.$ac_objext conftest$ac_exeext
38501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38502 (eval $ac_link) 2>conftest.er1
a848cd7e 38503 ac_status=$?
ac1cb8d3
VS
38504 grep -v '^ *+' conftest.er1 >conftest.err
38505 rm -f conftest.er1
38506 cat conftest.err >&5
a848cd7e
SC
38507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38508 (exit $ac_status); } &&
6ebeb4c7 38509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38511 (eval $ac_try) 2>&5
38512 ac_status=$?
38513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); }; } &&
38515 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38517 (eval $ac_try) 2>&5
38518 ac_status=$?
38519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520 (exit $ac_status); }; }; then
38521 echo "*** The test program compiled, but did not run. This usually means"
38522 echo "*** that the run-time linker is not finding SDL or finding the wrong"
38523 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
38524 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38525 echo "*** to the installed location Also, make sure you have run ldconfig if that"
38526 echo "*** is required on your system"
38527 echo "***"
38528 echo "*** If you have an old version installed, it is best to remove it, although"
38529 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38530else
38531 echo "$as_me: failed program was:" >&5
38532sed 's/^/| /' conftest.$ac_ext >&5
38533
38534 echo "*** The test program failed to compile or link. See the file config.log for the"
38535 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
38536 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
38537 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
38538fi
ac1cb8d3
VS
38539rm -f conftest.err conftest.$ac_objext \
38540 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38541 CFLAGS="$ac_save_CFLAGS"
94acd38e 38542 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38543 LIBS="$ac_save_LIBS"
38544 fi
38545 fi
38546 SDL_CFLAGS=""
38547 SDL_LIBS=""
38548 wxUSE_LIBSDL="no"
38549 fi
38550
38551
38552 rm -f conf.sdltest
38553
38554 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
38555 WITH_PLUGIN_SDL=1
38556 fi
38557 fi
38558 fi
38559
38560 cat >>confdefs.h <<\_ACEOF
38561#define wxUSE_SOUND 1
38562_ACEOF
38563
38564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
38565fi
38566
d1c38808
VZ
38567if test "$WXGTK20" = 1; then
38568 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38569 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
38570
38571
38572 succeeded=no
38573
38574 if test -z "$PKG_CONFIG"; then
38575 # Extract the first word of "pkg-config", so it can be a program name with args.
38576set dummy pkg-config; ac_word=$2
38577echo "$as_me:$LINENO: checking for $ac_word" >&5
38578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38579if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38580 echo $ECHO_N "(cached) $ECHO_C" >&6
38581else
38582 case $PKG_CONFIG in
38583 [\\/]* | ?:[\\/]*)
38584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38585 ;;
38586 *)
38587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38588for as_dir in $PATH
38589do
38590 IFS=$as_save_IFS
38591 test -z "$as_dir" && as_dir=.
38592 for ac_exec_ext in '' $ac_executable_extensions; do
38593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38596 break 2
38597 fi
38598done
38599done
38600
38601 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38602 ;;
38603esac
38604fi
38605PKG_CONFIG=$ac_cv_path_PKG_CONFIG
38606
38607if test -n "$PKG_CONFIG"; then
38608 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
38609echo "${ECHO_T}$PKG_CONFIG" >&6
38610else
38611 echo "$as_me:$LINENO: result: no" >&5
38612echo "${ECHO_T}no" >&6
38613fi
38614
38615 fi
38616
38617 if test "$PKG_CONFIG" = "no" ; then
38618 echo "*** The pkg-config script could not be found. Make sure it is"
38619 echo "*** in your path, or set the PKG_CONFIG environment variable"
38620 echo "*** to the full path to pkg-config."
38621 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
38622 else
38623 PKG_CONFIG_MIN_VERSION=0.9.0
38624 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
38625 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
38626echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 38627
ffa762ff 38628 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
38629 echo "$as_me:$LINENO: result: yes" >&5
38630echo "${ECHO_T}yes" >&6
38631 succeeded=yes
38632
38633 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
38634echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 38635 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38636 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
38637echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
38638
38639 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
38640echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 38641 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38642 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
38643echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
38644 else
38645 LIBGNOMEPRINTUI_CFLAGS=""
38646 LIBGNOMEPRINTUI_LIBS=""
38647 ## If we have a custom action on failure, don't print errors, but
38648 ## do set a variable so people can do so.
ffa762ff 38649 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38650
38651 fi
38652
38653
38654
38655 else
38656 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
38657 echo "*** See http://www.freedesktop.org/software/pkgconfig"
38658 fi
38659 fi
38660
38661 if test $succeeded = yes; then
38662
d1c38808
VZ
38663 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
38664 cat >>confdefs.h <<\_ACEOF
38665#define wxUSE_LIBGNOMEPRINT 1
38666_ACEOF
38667
38668
38669 else
38670
38671 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
38672echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
38673 wxUSE_LIBGNOMEPRINT="no"
38674
38675
38676 fi
38677
38678 fi
38679 fi
38680fi
38681
38682
a848cd7e
SC
38683if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
38684 cat >>confdefs.h <<\_ACEOF
38685#define wxUSE_CMDLINE_PARSER 1
38686_ACEOF
38687
38688fi
38689
38690if test "$wxUSE_STOPWATCH" = "yes"; then
38691 cat >>confdefs.h <<\_ACEOF
38692#define wxUSE_STOPWATCH 1
38693_ACEOF
38694
38695fi
38696
38697if test "$wxUSE_DATETIME" = "yes"; then
38698 cat >>confdefs.h <<\_ACEOF
38699#define wxUSE_DATETIME 1
38700_ACEOF
38701
38702fi
38703
38704if test "$wxUSE_FILE" = "yes"; then
38705 cat >>confdefs.h <<\_ACEOF
38706#define wxUSE_FILE 1
38707_ACEOF
38708
38709fi
38710
38711if test "$wxUSE_FFILE" = "yes"; then
38712 cat >>confdefs.h <<\_ACEOF
38713#define wxUSE_FFILE 1
38714_ACEOF
38715
38716fi
38717
38718if test "$wxUSE_FILESYSTEM" = "yes"; then
38719 cat >>confdefs.h <<\_ACEOF
38720#define wxUSE_FILESYSTEM 1
38721_ACEOF
38722
38723fi
38724
38725if test "$wxUSE_FS_ZIP" = "yes"; then
38726 cat >>confdefs.h <<\_ACEOF
38727#define wxUSE_FS_ZIP 1
38728_ACEOF
38729
38730fi
38731
9e8e867f 38732if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 38733 cat >>confdefs.h <<\_ACEOF
9e8e867f 38734#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
38735_ACEOF
38736
38737fi
38738
38739if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 38740 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
38741 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
38742echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
38743 elif test "$wxUSE_ZLIB" = "no"; then
38744 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
38745echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
38746 else
38747 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38748#define wxUSE_ZIPSTREAM 1
38749_ACEOF
38750
81f90336 38751 fi
a848cd7e
SC
38752fi
38753
a848cd7e 38754if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
38755 if test "$USE_UNIX" != 1; then
38756 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
38757echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
38758 wxUSE_ON_FATAL_EXCEPTION=no
38759 else
38760 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38761#define wxUSE_ON_FATAL_EXCEPTION 1
38762_ACEOF
38763
18228ab4 38764 fi
a848cd7e
SC
38765fi
38766
eaff0f0d
VZ
38767if test "$wxUSE_STACKWALKER" = "yes"; then
38768 cat >>confdefs.h <<\_ACEOF
38769#define wxUSE_STACKWALKER 1
38770_ACEOF
38771
38772fi
38773
36b6448c 38774if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
38775 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
38776 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
38777echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
38778 wxUSE_DEBUGREPORT=no
38779 else
38780 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
38781#define wxUSE_DEBUGREPORT 1
38782_ACEOF
38783
21dfc162
MW
38784 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
38786 fi
dfe0c803 38787 fi
36b6448c
VZ
38788fi
38789
a848cd7e
SC
38790if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38791 cat >>confdefs.h <<\_ACEOF
38792#define wxUSE_SNGLINST_CHECKER 1
38793_ACEOF
38794
38795fi
38796
38797if test "$wxUSE_BUSYINFO" = "yes"; then
38798 cat >>confdefs.h <<\_ACEOF
38799#define wxUSE_BUSYINFO 1
38800_ACEOF
38801
38802fi
38803
38804if test "$wxUSE_STD_IOSTREAM" = "yes"; then
38805 cat >>confdefs.h <<\_ACEOF
38806#define wxUSE_STD_IOSTREAM 1
38807_ACEOF
38808
38809fi
38810
59746b65
MW
38811if test "$wxUSE_STD_STRING" = "yes"; then
38812 cat >>confdefs.h <<\_ACEOF
38813#define wxUSE_STD_STRING 1
38814_ACEOF
38815
38816fi
38817
07158944
VZ
38818if test "$wxUSE_STDPATHS" = "yes"; then
38819 cat >>confdefs.h <<\_ACEOF
38820#define wxUSE_STDPATHS 1
38821_ACEOF
38822
38823fi
38824
a848cd7e
SC
38825if test "$wxUSE_TEXTBUFFER" = "yes"; then
38826 cat >>confdefs.h <<\_ACEOF
38827#define wxUSE_TEXTBUFFER 1
38828_ACEOF
38829
38830fi
38831
38832if test "$wxUSE_TEXTFILE" = "yes"; then
38833 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
38834 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
38835echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
38836 else
38837 cat >>confdefs.h <<\_ACEOF
38838#define wxUSE_TEXTFILE 1
38839_ACEOF
38840
38841 fi
38842fi
38843
38844if test "$wxUSE_CONFIG" = "yes" ; then
38845 if test "$wxUSE_TEXTFILE" != "yes"; then
38846 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
38847echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
38848 else
38849 cat >>confdefs.h <<\_ACEOF
38850#define wxUSE_CONFIG 1
89be85c2
VS
38851_ACEOF
38852
38853 cat >>confdefs.h <<\_ACEOF
38854#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
38855_ACEOF
38856
38857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
38858 fi
38859fi
38860
38861if test "$wxUSE_INTL" = "yes" ; then
38862 if test "$wxUSE_FILE" != "yes"; then
38863 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
38864echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
38865 else
38866 cat >>confdefs.h <<\_ACEOF
38867#define wxUSE_INTL 1
38868_ACEOF
38869
38870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
38871 GUIDIST="$GUIDIST INTL_DIST"
38872 fi
38873fi
38874
38875if test "$wxUSE_LOG" = "yes"; then
38876 cat >>confdefs.h <<\_ACEOF
38877#define wxUSE_LOG 1
38878_ACEOF
38879
38880
38881 if test "$wxUSE_LOGGUI" = "yes"; then
38882 cat >>confdefs.h <<\_ACEOF
38883#define wxUSE_LOGGUI 1
38884_ACEOF
38885
38886 fi
38887
38888 if test "$wxUSE_LOGWINDOW" = "yes"; then
38889 cat >>confdefs.h <<\_ACEOF
38890#define wxUSE_LOGWINDOW 1
38891_ACEOF
38892
38893 fi
38894
38895 if test "$wxUSE_LOGDIALOG" = "yes"; then
38896 cat >>confdefs.h <<\_ACEOF
38897#define wxUSE_LOG_DIALOG 1
38898_ACEOF
38899
38900 fi
0b78747f
MW
38901
38902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
38903fi
38904
38905if test "$wxUSE_LONGLONG" = "yes"; then
38906 cat >>confdefs.h <<\_ACEOF
38907#define wxUSE_LONGLONG 1
38908_ACEOF
38909
38910fi
38911
38912if test "$wxUSE_GEOMETRY" = "yes"; then
38913 cat >>confdefs.h <<\_ACEOF
38914#define wxUSE_GEOMETRY 1
38915_ACEOF
38916
38917fi
38918
a848cd7e
SC
38919if test "$wxUSE_STREAMS" = "yes" ; then
38920 cat >>confdefs.h <<\_ACEOF
38921#define wxUSE_STREAMS 1
38922_ACEOF
38923
38924fi
38925
38926
38927if test "$wxUSE_DATETIME" = "yes"; then
38928
38929for ac_func in strptime
38930do
38931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38932echo "$as_me:$LINENO: checking for $ac_func" >&5
38933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38934if eval "test \"\${$as_ac_var+set}\" = set"; then
38935 echo $ECHO_N "(cached) $ECHO_C" >&6
38936else
38937 cat >conftest.$ac_ext <<_ACEOF
38938/* confdefs.h. */
38939_ACEOF
38940cat confdefs.h >>conftest.$ac_ext
38941cat >>conftest.$ac_ext <<_ACEOF
38942/* end confdefs.h. */
ac1cb8d3
VS
38943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38945#define $ac_func innocuous_$ac_func
38946
a848cd7e
SC
38947/* System header to define __stub macros and hopefully few prototypes,
38948 which can conflict with char $ac_func (); below.
38949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38950 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38951
a848cd7e
SC
38952#ifdef __STDC__
38953# include <limits.h>
38954#else
38955# include <assert.h>
38956#endif
ac1cb8d3
VS
38957
38958#undef $ac_func
38959
a848cd7e
SC
38960/* Override any gcc2 internal prototype to avoid an error. */
38961#ifdef __cplusplus
38962extern "C"
38963{
38964#endif
38965/* We use char because int might match the return type of a gcc2
38966 builtin and then its argument prototype would still apply. */
38967char $ac_func ();
38968/* The GNU C library defines this for functions which it implements
38969 to always fail with ENOSYS. Some functions are actually named
38970 something starting with __ and the normal name is an alias. */
38971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38972choke me
38973#else
38974char (*f) () = $ac_func;
38975#endif
38976#ifdef __cplusplus
38977}
38978#endif
38979
38980int
38981main ()
38982{
38983return f != $ac_func;
38984 ;
38985 return 0;
38986}
38987_ACEOF
38988rm -f conftest.$ac_objext conftest$ac_exeext
38989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38990 (eval $ac_link) 2>conftest.er1
a848cd7e 38991 ac_status=$?
ac1cb8d3
VS
38992 grep -v '^ *+' conftest.er1 >conftest.err
38993 rm -f conftest.er1
38994 cat conftest.err >&5
a848cd7e
SC
38995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38996 (exit $ac_status); } &&
6ebeb4c7 38997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38999 (eval $ac_try) 2>&5
39000 ac_status=$?
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); }; } &&
39003 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005 (eval $ac_try) 2>&5
39006 ac_status=$?
39007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); }; }; then
39009 eval "$as_ac_var=yes"
39010else
39011 echo "$as_me: failed program was:" >&5
39012sed 's/^/| /' conftest.$ac_ext >&5
39013
39014eval "$as_ac_var=no"
39015fi
ac1cb8d3
VS
39016rm -f conftest.err conftest.$ac_objext \
39017 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39018fi
39019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39020echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39021if test `eval echo '${'$as_ac_var'}'` = yes; then
39022 cat >>confdefs.h <<_ACEOF
39023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39024_ACEOF
39025
39026fi
39027done
39028
f536f005
VZ
39029 if test "$ac_cv_func_strptime" = "yes"; then
39030 echo "$as_me:$LINENO: checking for strptime declaration" >&5
39031echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39032if test "${wx_cv_func_strptime_decl+set}" = set; then
39033 echo $ECHO_N "(cached) $ECHO_C" >&6
39034else
39035
39036
39037
39038 ac_ext=cc
39039ac_cpp='$CXXCPP $CPPFLAGS'
39040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39043
39044 cat >conftest.$ac_ext <<_ACEOF
39045/* confdefs.h. */
39046_ACEOF
39047cat confdefs.h >>conftest.$ac_ext
39048cat >>conftest.$ac_ext <<_ACEOF
39049/* end confdefs.h. */
39050
39051 #include <time.h>
39052
39053int
39054main ()
39055{
39056
39057 struct tm t;
39058 strptime("foo", "bar", &t);
39059
39060 ;
39061 return 0;
39062}
39063_ACEOF
39064rm -f conftest.$ac_objext
39065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39066 (eval $ac_compile) 2>conftest.er1
39067 ac_status=$?
39068 grep -v '^ *+' conftest.er1 >conftest.err
39069 rm -f conftest.er1
39070 cat conftest.err >&5
39071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 (exit $ac_status); } &&
39073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39075 (eval $ac_try) 2>&5
39076 ac_status=$?
39077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 (exit $ac_status); }; } &&
39079 { ac_try='test -s conftest.$ac_objext'
39080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39081 (eval $ac_try) 2>&5
39082 ac_status=$?
39083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084 (exit $ac_status); }; }; then
39085 wx_cv_func_strptime_decl=yes
39086else
39087 echo "$as_me: failed program was:" >&5
39088sed 's/^/| /' conftest.$ac_ext >&5
39089
39090wx_cv_func_strptime_decl=no
39091
39092fi
39093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39094 ac_ext=c
39095ac_cpp='$CPP $CPPFLAGS'
39096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39098ac_compiler_gnu=$ac_cv_c_compiler_gnu
39099
39100
39101
39102fi
39103echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39104echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39105 fi
39106 if test "$wx_cv_func_strptime_decl" = "yes"; then
39107 cat >>confdefs.h <<\_ACEOF
39108#define HAVE_STRPTIME_DECL 1
39109_ACEOF
39110
39111 fi
a848cd7e
SC
39112
39113 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39114echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39115if test "${wx_cv_var_timezone+set}" = set; then
39116 echo $ECHO_N "(cached) $ECHO_C" >&6
39117else
39118
39119 cat >conftest.$ac_ext <<_ACEOF
39120/* confdefs.h. */
39121_ACEOF
39122cat confdefs.h >>conftest.$ac_ext
39123cat >>conftest.$ac_ext <<_ACEOF
39124/* end confdefs.h. */
39125
39126 #include <time.h>
39127
39128int
39129main ()
39130{
39131
39132 int tz;
39133 tz = timezone;
39134
39135 ;
39136 return 0;
39137}
39138_ACEOF
39139rm -f conftest.$ac_objext
39140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39141 (eval $ac_compile) 2>conftest.er1
a848cd7e 39142 ac_status=$?
ac1cb8d3
VS
39143 grep -v '^ *+' conftest.er1 >conftest.err
39144 rm -f conftest.er1
39145 cat conftest.err >&5
a848cd7e
SC
39146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147 (exit $ac_status); } &&
6ebeb4c7 39148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39150 (eval $ac_try) 2>&5
39151 ac_status=$?
39152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153 (exit $ac_status); }; } &&
39154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39156 (eval $ac_try) 2>&5
39157 ac_status=$?
39158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39159 (exit $ac_status); }; }; then
39160
39161 wx_cv_var_timezone=timezone
39162
39163else
39164 echo "$as_me: failed program was:" >&5
39165sed 's/^/| /' conftest.$ac_ext >&5
39166
39167
39168 cat >conftest.$ac_ext <<_ACEOF
39169/* confdefs.h. */
39170_ACEOF
39171cat confdefs.h >>conftest.$ac_ext
39172cat >>conftest.$ac_ext <<_ACEOF
39173/* end confdefs.h. */
39174
39175 #include <time.h>
39176
39177int
39178main ()
39179{
39180
39181 int tz;
39182 tz = _timezone;
39183
39184 ;
39185 return 0;
39186}
39187_ACEOF
39188rm -f conftest.$ac_objext
39189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39190 (eval $ac_compile) 2>conftest.er1
a848cd7e 39191 ac_status=$?
ac1cb8d3
VS
39192 grep -v '^ *+' conftest.er1 >conftest.err
39193 rm -f conftest.er1
39194 cat conftest.err >&5
a848cd7e
SC
39195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39196 (exit $ac_status); } &&
6ebeb4c7 39197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39199 (eval $ac_try) 2>&5
39200 ac_status=$?
39201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39202 (exit $ac_status); }; } &&
39203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39205 (eval $ac_try) 2>&5
39206 ac_status=$?
39207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39208 (exit $ac_status); }; }; then
39209
39210 wx_cv_var_timezone=_timezone
39211
39212else
39213 echo "$as_me: failed program was:" >&5
39214sed 's/^/| /' conftest.$ac_ext >&5
39215
39216
39217 cat >conftest.$ac_ext <<_ACEOF
39218/* confdefs.h. */
39219_ACEOF
39220cat confdefs.h >>conftest.$ac_ext
39221cat >>conftest.$ac_ext <<_ACEOF
39222/* end confdefs.h. */
39223
39224 #include <time.h>
39225
39226int
39227main ()
39228{
39229
39230 int tz;
39231 tz = __timezone;
39232
39233 ;
39234 return 0;
39235}
39236_ACEOF
39237rm -f conftest.$ac_objext
39238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39239 (eval $ac_compile) 2>conftest.er1
a848cd7e 39240 ac_status=$?
ac1cb8d3
VS
39241 grep -v '^ *+' conftest.er1 >conftest.err
39242 rm -f conftest.er1
39243 cat conftest.err >&5
a848cd7e
SC
39244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245 (exit $ac_status); } &&
6ebeb4c7 39246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39248 (eval $ac_try) 2>&5
39249 ac_status=$?
39250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39251 (exit $ac_status); }; } &&
39252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39254 (eval $ac_try) 2>&5
39255 ac_status=$?
39256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257 (exit $ac_status); }; }; then
39258
39259 wx_cv_var_timezone=__timezone
39260
39261else
39262 echo "$as_me: failed program was:" >&5
39263sed 's/^/| /' conftest.$ac_ext >&5
39264
39265
39266 if test "$USE_DOS" = 0 ; then
39267 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39268echo "$as_me: WARNING: no timezone variable" >&2;}
39269 fi
39270
39271
39272fi
ac1cb8d3 39273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39274
39275
39276fi
ac1cb8d3 39277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39278
39279
39280fi
ac1cb8d3 39281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39282
39283
39284fi
39285echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39286echo "${ECHO_T}$wx_cv_var_timezone" >&6
39287
39288 if test "x$wx_cv_var_timezone" != x ; then
39289 cat >>confdefs.h <<_ACEOF
39290#define WX_TIMEZONE $wx_cv_var_timezone
39291_ACEOF
39292
39293 fi
39294
39295
39296for ac_func in localtime
39297do
39298as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39299echo "$as_me:$LINENO: checking for $ac_func" >&5
39300echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39301if eval "test \"\${$as_ac_var+set}\" = set"; then
39302 echo $ECHO_N "(cached) $ECHO_C" >&6
39303else
39304 cat >conftest.$ac_ext <<_ACEOF
39305/* confdefs.h. */
39306_ACEOF
39307cat confdefs.h >>conftest.$ac_ext
39308cat >>conftest.$ac_ext <<_ACEOF
39309/* end confdefs.h. */
ac1cb8d3
VS
39310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39312#define $ac_func innocuous_$ac_func
39313
a848cd7e
SC
39314/* System header to define __stub macros and hopefully few prototypes,
39315 which can conflict with char $ac_func (); below.
39316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39317 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39318
a848cd7e
SC
39319#ifdef __STDC__
39320# include <limits.h>
39321#else
39322# include <assert.h>
39323#endif
ac1cb8d3
VS
39324
39325#undef $ac_func
39326
a848cd7e
SC
39327/* Override any gcc2 internal prototype to avoid an error. */
39328#ifdef __cplusplus
39329extern "C"
39330{
39331#endif
39332/* We use char because int might match the return type of a gcc2
39333 builtin and then its argument prototype would still apply. */
39334char $ac_func ();
39335/* The GNU C library defines this for functions which it implements
39336 to always fail with ENOSYS. Some functions are actually named
39337 something starting with __ and the normal name is an alias. */
39338#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39339choke me
39340#else
39341char (*f) () = $ac_func;
39342#endif
39343#ifdef __cplusplus
39344}
39345#endif
39346
39347int
39348main ()
39349{
39350return f != $ac_func;
39351 ;
39352 return 0;
39353}
39354_ACEOF
39355rm -f conftest.$ac_objext conftest$ac_exeext
39356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39357 (eval $ac_link) 2>conftest.er1
a848cd7e 39358 ac_status=$?
ac1cb8d3
VS
39359 grep -v '^ *+' conftest.er1 >conftest.err
39360 rm -f conftest.er1
39361 cat conftest.err >&5
a848cd7e
SC
39362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39363 (exit $ac_status); } &&
6ebeb4c7 39364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39366 (eval $ac_try) 2>&5
39367 ac_status=$?
39368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39369 (exit $ac_status); }; } &&
39370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39372 (eval $ac_try) 2>&5
39373 ac_status=$?
39374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39375 (exit $ac_status); }; }; then
39376 eval "$as_ac_var=yes"
39377else
39378 echo "$as_me: failed program was:" >&5
39379sed 's/^/| /' conftest.$ac_ext >&5
39380
39381eval "$as_ac_var=no"
39382fi
ac1cb8d3
VS
39383rm -f conftest.err conftest.$ac_objext \
39384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39385fi
39386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39387echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39388if test `eval echo '${'$as_ac_var'}'` = yes; then
39389 cat >>confdefs.h <<_ACEOF
39390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39391_ACEOF
39392
39393fi
39394done
39395
39396
39397 if test "$ac_cv_func_localtime" = "yes"; then
39398 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
39399echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
39400if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
39401 echo $ECHO_N "(cached) $ECHO_C" >&6
39402else
39403
39404 cat >conftest.$ac_ext <<_ACEOF
39405/* confdefs.h. */
39406_ACEOF
39407cat confdefs.h >>conftest.$ac_ext
39408cat >>conftest.$ac_ext <<_ACEOF
39409/* end confdefs.h. */
39410
39411 #include <time.h>
39412
39413int
39414main ()
39415{
39416
39417 struct tm tm;
39418 tm.tm_gmtoff++;
39419
39420 ;
39421 return 0;
39422}
39423_ACEOF
39424rm -f conftest.$ac_objext
39425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39426 (eval $ac_compile) 2>conftest.er1
a848cd7e 39427 ac_status=$?
ac1cb8d3
VS
39428 grep -v '^ *+' conftest.er1 >conftest.err
39429 rm -f conftest.er1
39430 cat conftest.err >&5
a848cd7e
SC
39431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); } &&
6ebeb4c7 39433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39435 (eval $ac_try) 2>&5
39436 ac_status=$?
39437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438 (exit $ac_status); }; } &&
39439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39441 (eval $ac_try) 2>&5
39442 ac_status=$?
39443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444 (exit $ac_status); }; }; then
39445
39446 wx_cv_struct_tm_has_gmtoff=yes
39447
39448else
39449 echo "$as_me: failed program was:" >&5
39450sed 's/^/| /' conftest.$ac_ext >&5
39451
39452wx_cv_struct_tm_has_gmtoff=no
39453
39454fi
ac1cb8d3 39455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39456
39457fi
39458echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
39459echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
39460 fi
39461
39462 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
39463 cat >>confdefs.h <<\_ACEOF
39464#define WX_GMTOFF_IN_TM 1
39465_ACEOF
39466
39467 fi
39468
39469
39470
39471for ac_func in gettimeofday ftime
39472do
39473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39474echo "$as_me:$LINENO: checking for $ac_func" >&5
39475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39476if eval "test \"\${$as_ac_var+set}\" = set"; then
39477 echo $ECHO_N "(cached) $ECHO_C" >&6
39478else
39479 cat >conftest.$ac_ext <<_ACEOF
39480/* confdefs.h. */
39481_ACEOF
39482cat confdefs.h >>conftest.$ac_ext
39483cat >>conftest.$ac_ext <<_ACEOF
39484/* end confdefs.h. */
ac1cb8d3
VS
39485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39487#define $ac_func innocuous_$ac_func
39488
a848cd7e
SC
39489/* System header to define __stub macros and hopefully few prototypes,
39490 which can conflict with char $ac_func (); below.
39491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39492 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39493
a848cd7e
SC
39494#ifdef __STDC__
39495# include <limits.h>
39496#else
39497# include <assert.h>
39498#endif
ac1cb8d3
VS
39499
39500#undef $ac_func
39501
a848cd7e
SC
39502/* Override any gcc2 internal prototype to avoid an error. */
39503#ifdef __cplusplus
39504extern "C"
39505{
39506#endif
39507/* We use char because int might match the return type of a gcc2
39508 builtin and then its argument prototype would still apply. */
39509char $ac_func ();
39510/* The GNU C library defines this for functions which it implements
39511 to always fail with ENOSYS. Some functions are actually named
39512 something starting with __ and the normal name is an alias. */
39513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39514choke me
39515#else
39516char (*f) () = $ac_func;
39517#endif
39518#ifdef __cplusplus
39519}
39520#endif
39521
39522int
39523main ()
39524{
39525return f != $ac_func;
39526 ;
39527 return 0;
39528}
39529_ACEOF
39530rm -f conftest.$ac_objext conftest$ac_exeext
39531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39532 (eval $ac_link) 2>conftest.er1
a848cd7e 39533 ac_status=$?
ac1cb8d3
VS
39534 grep -v '^ *+' conftest.er1 >conftest.err
39535 rm -f conftest.er1
39536 cat conftest.err >&5
a848cd7e
SC
39537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538 (exit $ac_status); } &&
6ebeb4c7 39539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39541 (eval $ac_try) 2>&5
39542 ac_status=$?
39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544 (exit $ac_status); }; } &&
39545 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39547 (eval $ac_try) 2>&5
39548 ac_status=$?
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); }; }; then
39551 eval "$as_ac_var=yes"
39552else
39553 echo "$as_me: failed program was:" >&5
39554sed 's/^/| /' conftest.$ac_ext >&5
39555
39556eval "$as_ac_var=no"
39557fi
ac1cb8d3
VS
39558rm -f conftest.err conftest.$ac_objext \
39559 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39560fi
39561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39562echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39563if test `eval echo '${'$as_ac_var'}'` = yes; then
39564 cat >>confdefs.h <<_ACEOF
39565#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39566_ACEOF
39567 break
39568fi
39569done
39570
39571
39572 if test "$ac_cv_func_gettimeofday" = "yes"; then
39573 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
39574echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
39575if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
39576 echo $ECHO_N "(cached) $ECHO_C" >&6
39577else
39578
39579
39580
39581 ac_ext=cc
39582ac_cpp='$CXXCPP $CPPFLAGS'
39583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39586
39587
39588 cat >conftest.$ac_ext <<_ACEOF
39589/* confdefs.h. */
39590_ACEOF
39591cat confdefs.h >>conftest.$ac_ext
39592cat >>conftest.$ac_ext <<_ACEOF
39593/* end confdefs.h. */
39594
39595 #include <sys/time.h>
39596 #include <unistd.h>
39597
39598int
39599main ()
39600{
39601
39602 struct timeval tv;
39603 gettimeofday(&tv, NULL);
39604
39605 ;
39606 return 0;
39607}
39608_ACEOF
39609rm -f conftest.$ac_objext
39610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39611 (eval $ac_compile) 2>conftest.er1
a848cd7e 39612 ac_status=$?
ac1cb8d3
VS
39613 grep -v '^ *+' conftest.er1 >conftest.err
39614 rm -f conftest.er1
39615 cat conftest.err >&5
a848cd7e
SC
39616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617 (exit $ac_status); } &&
6ebeb4c7 39618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39620 (eval $ac_try) 2>&5
39621 ac_status=$?
39622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39623 (exit $ac_status); }; } &&
39624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39626 (eval $ac_try) 2>&5
39627 ac_status=$?
39628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39629 (exit $ac_status); }; }; then
39630 wx_cv_func_gettimeofday_has_2_args=yes
39631else
39632 echo "$as_me: failed program was:" >&5
39633sed 's/^/| /' conftest.$ac_ext >&5
39634
39635cat >conftest.$ac_ext <<_ACEOF
39636/* confdefs.h. */
39637_ACEOF
39638cat confdefs.h >>conftest.$ac_ext
39639cat >>conftest.$ac_ext <<_ACEOF
39640/* end confdefs.h. */
39641
39642 #include <sys/time.h>
39643 #include <unistd.h>
39644
39645int
39646main ()
39647{
39648
39649 struct timeval tv;
39650 gettimeofday(&tv);
39651
39652 ;
39653 return 0;
39654}
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_cxx_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 wx_cv_func_gettimeofday_has_2_args=no
39678else
39679 echo "$as_me: failed program was:" >&5
39680sed 's/^/| /' conftest.$ac_ext >&5
39681
39682
39683 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
39684echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
39685 wx_cv_func_gettimeofday_has_2_args=unknown
39686
39687
39688fi
ac1cb8d3 39689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39690
39691fi
ac1cb8d3 39692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39693 ac_ext=c
39694ac_cpp='$CPP $CPPFLAGS'
39695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39697ac_compiler_gnu=$ac_cv_c_compiler_gnu
39698
39699
39700fi
39701echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
39702echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
39703
39704 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
39705 cat >>confdefs.h <<\_ACEOF
39706#define WX_GETTIMEOFDAY_NO_TZ 1
39707_ACEOF
39708
39709 fi
39710 fi
39711
39712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
39713fi
39714
39715
39716if test "$wxUSE_SOCKETS" = "yes"; then
39717 if test "$wxUSE_MGL" = "1"; then
39718 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
39719echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
39720 wxUSE_SOCKETS="no"
39721 fi
39722fi
39723
39724if test "$wxUSE_SOCKETS" = "yes"; then
39725 if test "$TOOLKIT" != "MSW"; then
39726 echo "$as_me:$LINENO: checking for socket" >&5
39727echo $ECHO_N "checking for socket... $ECHO_C" >&6
39728if test "${ac_cv_func_socket+set}" = set; then
39729 echo $ECHO_N "(cached) $ECHO_C" >&6
39730else
39731 cat >conftest.$ac_ext <<_ACEOF
39732/* confdefs.h. */
39733_ACEOF
39734cat confdefs.h >>conftest.$ac_ext
39735cat >>conftest.$ac_ext <<_ACEOF
39736/* end confdefs.h. */
ac1cb8d3
VS
39737/* Define socket to an innocuous variant, in case <limits.h> declares socket.
39738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39739#define socket innocuous_socket
39740
a848cd7e
SC
39741/* System header to define __stub macros and hopefully few prototypes,
39742 which can conflict with char socket (); below.
39743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39744 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39745
a848cd7e
SC
39746#ifdef __STDC__
39747# include <limits.h>
39748#else
39749# include <assert.h>
39750#endif
ac1cb8d3
VS
39751
39752#undef socket
39753
a848cd7e
SC
39754/* Override any gcc2 internal prototype to avoid an error. */
39755#ifdef __cplusplus
39756extern "C"
39757{
39758#endif
39759/* We use char because int might match the return type of a gcc2
39760 builtin and then its argument prototype would still apply. */
39761char socket ();
39762/* The GNU C library defines this for functions which it implements
39763 to always fail with ENOSYS. Some functions are actually named
39764 something starting with __ and the normal name is an alias. */
39765#if defined (__stub_socket) || defined (__stub___socket)
39766choke me
39767#else
39768char (*f) () = socket;
39769#endif
39770#ifdef __cplusplus
39771}
39772#endif
39773
39774int
39775main ()
39776{
39777return f != socket;
39778 ;
39779 return 0;
39780}
39781_ACEOF
39782rm -f conftest.$ac_objext conftest$ac_exeext
39783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39784 (eval $ac_link) 2>conftest.er1
a848cd7e 39785 ac_status=$?
ac1cb8d3
VS
39786 grep -v '^ *+' conftest.er1 >conftest.err
39787 rm -f conftest.er1
39788 cat conftest.err >&5
a848cd7e
SC
39789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39790 (exit $ac_status); } &&
6ebeb4c7 39791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39793 (eval $ac_try) 2>&5
39794 ac_status=$?
39795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39796 (exit $ac_status); }; } &&
39797 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39799 (eval $ac_try) 2>&5
39800 ac_status=$?
39801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39802 (exit $ac_status); }; }; then
39803 ac_cv_func_socket=yes
39804else
39805 echo "$as_me: failed program was:" >&5
39806sed 's/^/| /' conftest.$ac_ext >&5
39807
39808ac_cv_func_socket=no
39809fi
ac1cb8d3
VS
39810rm -f conftest.err conftest.$ac_objext \
39811 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39812fi
39813echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
39814echo "${ECHO_T}$ac_cv_func_socket" >&6
39815if test $ac_cv_func_socket = yes; then
39816 :
39817else
39818
39819 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
39820echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
39821if test "${ac_cv_lib_socket_socket+set}" = set; then
39822 echo $ECHO_N "(cached) $ECHO_C" >&6
39823else
39824 ac_check_lib_save_LIBS=$LIBS
39825LIBS="-lsocket $LIBS"
39826cat >conftest.$ac_ext <<_ACEOF
39827/* confdefs.h. */
39828_ACEOF
39829cat confdefs.h >>conftest.$ac_ext
39830cat >>conftest.$ac_ext <<_ACEOF
39831/* end confdefs.h. */
39832
39833/* Override any gcc2 internal prototype to avoid an error. */
39834#ifdef __cplusplus
39835extern "C"
39836#endif
39837/* We use char because int might match the return type of a gcc2
39838 builtin and then its argument prototype would still apply. */
39839char socket ();
39840int
39841main ()
39842{
39843socket ();
39844 ;
39845 return 0;
39846}
39847_ACEOF
39848rm -f conftest.$ac_objext conftest$ac_exeext
39849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39850 (eval $ac_link) 2>conftest.er1
a848cd7e 39851 ac_status=$?
ac1cb8d3
VS
39852 grep -v '^ *+' conftest.er1 >conftest.err
39853 rm -f conftest.er1
39854 cat conftest.err >&5
a848cd7e
SC
39855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39856 (exit $ac_status); } &&
6ebeb4c7 39857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39859 (eval $ac_try) 2>&5
39860 ac_status=$?
39861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39862 (exit $ac_status); }; } &&
39863 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39865 (eval $ac_try) 2>&5
39866 ac_status=$?
39867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868 (exit $ac_status); }; }; then
39869 ac_cv_lib_socket_socket=yes
39870else
39871 echo "$as_me: failed program was:" >&5
39872sed 's/^/| /' conftest.$ac_ext >&5
39873
39874ac_cv_lib_socket_socket=no
39875fi
ac1cb8d3
VS
39876rm -f conftest.err conftest.$ac_objext \
39877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39878LIBS=$ac_check_lib_save_LIBS
39879fi
39880echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
39881echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
39882if test $ac_cv_lib_socket_socket = yes; then
39883 if test "$INET_LINK" != " -lsocket"; then
39884 INET_LINK="$INET_LINK -lsocket"
39885 fi
39886else
39887
39888 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
39889echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
39890 wxUSE_SOCKETS=no
39891
39892
39893fi
39894
39895
39896
39897fi
39898
39899 fi
39900fi
39901
39902if test "$wxUSE_SOCKETS" = "yes" ; then
39903 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
39904 ac_ext=cc
39905ac_cpp='$CXXCPP $CPPFLAGS'
39906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39909
39910 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
39911echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
39912if test "${wx_cv_type_getsockname3+set}" = set; then
39913 echo $ECHO_N "(cached) $ECHO_C" >&6
39914else
39915
39916 cat >conftest.$ac_ext <<_ACEOF
39917/* confdefs.h. */
39918_ACEOF
39919cat confdefs.h >>conftest.$ac_ext
39920cat >>conftest.$ac_ext <<_ACEOF
39921/* end confdefs.h. */
39922
39923 #include <sys/types.h>
39924 #include <sys/socket.h>
39925
39926int
39927main ()
39928{
39929
39930 socklen_t len;
39931 getsockname(0, 0, &len);
39932
39933 ;
39934 return 0;
39935}
39936_ACEOF
39937rm -f conftest.$ac_objext
39938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39939 (eval $ac_compile) 2>conftest.er1
a848cd7e 39940 ac_status=$?
ac1cb8d3
VS
39941 grep -v '^ *+' conftest.er1 >conftest.err
39942 rm -f conftest.er1
39943 cat conftest.err >&5
a848cd7e
SC
39944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945 (exit $ac_status); } &&
6ebeb4c7 39946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39948 (eval $ac_try) 2>&5
39949 ac_status=$?
39950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39951 (exit $ac_status); }; } &&
39952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39954 (eval $ac_try) 2>&5
39955 ac_status=$?
39956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39957 (exit $ac_status); }; }; then
39958 wx_cv_type_getsockname3=socklen_t
39959else
39960 echo "$as_me: failed program was:" >&5
39961sed 's/^/| /' conftest.$ac_ext >&5
39962
39963
6459a506 39964 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 39965 if test "$GCC" = yes ; then
6459a506 39966 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
39967 fi
39968
39969 cat >conftest.$ac_ext <<_ACEOF
39970/* confdefs.h. */
39971_ACEOF
39972cat confdefs.h >>conftest.$ac_ext
39973cat >>conftest.$ac_ext <<_ACEOF
39974/* end confdefs.h. */
39975
39976 #include <sys/types.h>
39977 #include <sys/socket.h>
39978
39979int
39980main ()
39981{
39982
39983 size_t len;
39984 getsockname(0, 0, &len);
39985
39986 ;
39987 return 0;
39988}
39989_ACEOF
39990rm -f conftest.$ac_objext
39991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39992 (eval $ac_compile) 2>conftest.er1
a848cd7e 39993 ac_status=$?
ac1cb8d3
VS
39994 grep -v '^ *+' conftest.er1 >conftest.err
39995 rm -f conftest.er1
39996 cat conftest.err >&5
a848cd7e
SC
39997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998 (exit $ac_status); } &&
6ebeb4c7 39999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40001 (eval $ac_try) 2>&5
40002 ac_status=$?
40003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40004 (exit $ac_status); }; } &&
40005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40007 (eval $ac_try) 2>&5
40008 ac_status=$?
40009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010 (exit $ac_status); }; }; then
40011 wx_cv_type_getsockname3=size_t
40012else
40013 echo "$as_me: failed program was:" >&5
40014sed 's/^/| /' conftest.$ac_ext >&5
40015
40016cat >conftest.$ac_ext <<_ACEOF
40017/* confdefs.h. */
40018_ACEOF
40019cat confdefs.h >>conftest.$ac_ext
40020cat >>conftest.$ac_ext <<_ACEOF
40021/* end confdefs.h. */
40022
40023 #include <sys/types.h>
40024 #include <sys/socket.h>
40025
40026int
40027main ()
40028{
40029
40030 int len;
40031 getsockname(0, 0, &len);
40032
40033 ;
40034 return 0;
40035}
40036_ACEOF
40037rm -f conftest.$ac_objext
40038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40039 (eval $ac_compile) 2>conftest.er1
a848cd7e 40040 ac_status=$?
ac1cb8d3
VS
40041 grep -v '^ *+' conftest.er1 >conftest.err
40042 rm -f conftest.er1
40043 cat conftest.err >&5
a848cd7e
SC
40044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045 (exit $ac_status); } &&
6ebeb4c7 40046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40048 (eval $ac_try) 2>&5
40049 ac_status=$?
40050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051 (exit $ac_status); }; } &&
40052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40054 (eval $ac_try) 2>&5
40055 ac_status=$?
40056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057 (exit $ac_status); }; }; then
40058 wx_cv_type_getsockname3=int
40059else
40060 echo "$as_me: failed program was:" >&5
40061sed 's/^/| /' conftest.$ac_ext >&5
40062
40063wx_cv_type_getsockname3=unknown
40064
40065fi
ac1cb8d3 40066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40067
40068fi
ac1cb8d3 40069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40070
6459a506 40071 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40072
40073
40074fi
ac1cb8d3 40075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40076
40077fi
40078echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40079echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40080
40081 if test "$wx_cv_type_getsockname3" = "unknown"; then
40082 wxUSE_SOCKETS=no
40083 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40084echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40085 else
40086 cat >>confdefs.h <<_ACEOF
9e03e02d 40087#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
40088_ACEOF
40089
40090 fi
40091 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40092echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40093if test "${wx_cv_type_getsockopt5+set}" = set; then
40094 echo $ECHO_N "(cached) $ECHO_C" >&6
40095else
40096
40097 cat >conftest.$ac_ext <<_ACEOF
40098/* confdefs.h. */
40099_ACEOF
40100cat confdefs.h >>conftest.$ac_ext
40101cat >>conftest.$ac_ext <<_ACEOF
40102/* end confdefs.h. */
40103
40104 #include <sys/types.h>
40105 #include <sys/socket.h>
40106
40107int
40108main ()
40109{
40110
40111 socklen_t len;
40112 getsockopt(0, 0, 0, 0, &len);
40113
40114 ;
40115 return 0;
40116}
40117_ACEOF
40118rm -f conftest.$ac_objext
40119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40120 (eval $ac_compile) 2>conftest.er1
40121 ac_status=$?
40122 grep -v '^ *+' conftest.er1 >conftest.err
40123 rm -f conftest.er1
40124 cat conftest.err >&5
40125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40126 (exit $ac_status); } &&
6ebeb4c7 40127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40129 (eval $ac_try) 2>&5
40130 ac_status=$?
40131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132 (exit $ac_status); }; } &&
40133 { ac_try='test -s conftest.$ac_objext'
40134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40135 (eval $ac_try) 2>&5
40136 ac_status=$?
40137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40138 (exit $ac_status); }; }; then
40139 wx_cv_type_getsockopt5=socklen_t
40140else
40141 echo "$as_me: failed program was:" >&5
40142sed 's/^/| /' conftest.$ac_ext >&5
40143
40144
6459a506 40145 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40146 if test "$GCC" = yes ; then
6459a506 40147 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40148 fi
40149
40150 cat >conftest.$ac_ext <<_ACEOF
40151/* confdefs.h. */
40152_ACEOF
40153cat confdefs.h >>conftest.$ac_ext
40154cat >>conftest.$ac_ext <<_ACEOF
40155/* end confdefs.h. */
40156
40157 #include <sys/types.h>
40158 #include <sys/socket.h>
40159
40160int
40161main ()
40162{
40163
40164 size_t len;
40165 getsockopt(0, 0, 0, 0, &len);
40166
40167 ;
40168 return 0;
40169}
40170_ACEOF
40171rm -f conftest.$ac_objext
40172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40173 (eval $ac_compile) 2>conftest.er1
40174 ac_status=$?
40175 grep -v '^ *+' conftest.er1 >conftest.err
40176 rm -f conftest.er1
40177 cat conftest.err >&5
40178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40179 (exit $ac_status); } &&
6ebeb4c7 40180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40182 (eval $ac_try) 2>&5
40183 ac_status=$?
40184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40185 (exit $ac_status); }; } &&
40186 { ac_try='test -s conftest.$ac_objext'
40187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40188 (eval $ac_try) 2>&5
40189 ac_status=$?
40190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191 (exit $ac_status); }; }; then
40192 wx_cv_type_getsockopt5=size_t
40193else
40194 echo "$as_me: failed program was:" >&5
40195sed 's/^/| /' conftest.$ac_ext >&5
40196
40197cat >conftest.$ac_ext <<_ACEOF
40198/* confdefs.h. */
40199_ACEOF
40200cat confdefs.h >>conftest.$ac_ext
40201cat >>conftest.$ac_ext <<_ACEOF
40202/* end confdefs.h. */
40203
40204 #include <sys/types.h>
40205 #include <sys/socket.h>
40206
40207int
40208main ()
40209{
40210
40211 int len;
40212 getsockopt(0, 0, 0, 0, &len);
40213
40214 ;
40215 return 0;
40216}
40217_ACEOF
40218rm -f conftest.$ac_objext
40219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40220 (eval $ac_compile) 2>conftest.er1
40221 ac_status=$?
40222 grep -v '^ *+' conftest.er1 >conftest.err
40223 rm -f conftest.er1
40224 cat conftest.err >&5
40225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40226 (exit $ac_status); } &&
6ebeb4c7 40227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40229 (eval $ac_try) 2>&5
40230 ac_status=$?
40231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40232 (exit $ac_status); }; } &&
40233 { ac_try='test -s conftest.$ac_objext'
40234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40235 (eval $ac_try) 2>&5
40236 ac_status=$?
40237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40238 (exit $ac_status); }; }; then
40239 wx_cv_type_getsockopt5=int
40240else
40241 echo "$as_me: failed program was:" >&5
40242sed 's/^/| /' conftest.$ac_ext >&5
40243
40244wx_cv_type_getsockopt5=unknown
40245
40246fi
40247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40248
40249fi
40250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40251
6459a506 40252 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40253
40254
40255fi
40256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40257
40258fi
40259echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40260echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40261
40262 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40263 wxUSE_SOCKETS=no
40264 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40265echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40266 else
40267 cat >>confdefs.h <<_ACEOF
40268#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40269_ACEOF
40270
40271 fi
4d4ff94c
VZ
40272 ac_ext=c
40273ac_cpp='$CPP $CPPFLAGS'
40274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40276ac_compiler_gnu=$ac_cv_c_compiler_gnu
40277
a848cd7e
SC
40278 fi
40279fi
40280
40281if test "$wxUSE_SOCKETS" = "yes" ; then
40282 cat >>confdefs.h <<\_ACEOF
40283#define wxUSE_SOCKETS 1
40284_ACEOF
40285
40286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40287fi
40288
40289if test "$wxUSE_PROTOCOL" = "yes"; then
40290 if test "$wxUSE_SOCKETS" != "yes"; then
40291 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40292echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40293 wxUSE_PROTOCOL=no
40294 fi
40295fi
40296
40297if test "$wxUSE_PROTOCOL" = "yes"; then
40298 cat >>confdefs.h <<\_ACEOF
40299#define wxUSE_PROTOCOL 1
40300_ACEOF
40301
40302
40303 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40304 cat >>confdefs.h <<\_ACEOF
40305#define wxUSE_PROTOCOL_HTTP 1
40306_ACEOF
40307
40308 fi
40309 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40310 cat >>confdefs.h <<\_ACEOF
40311#define wxUSE_PROTOCOL_FTP 1
40312_ACEOF
40313
40314 fi
40315 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40316 cat >>confdefs.h <<\_ACEOF
40317#define wxUSE_PROTOCOL_FILE 1
40318_ACEOF
40319
40320 fi
40321else
40322 if test "$wxUSE_FS_INET" = "yes"; then
40323 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40324echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40325 wxUSE_FS_INET="no"
40326 fi
40327fi
40328
40329if test "$wxUSE_URL" = "yes"; then
40330 if test "$wxUSE_PROTOCOL" != "yes"; then
40331 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40332echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40333 wxUSE_URL=no
40334 fi
40335 if test "$wxUSE_URL" = "yes"; then
40336 cat >>confdefs.h <<\_ACEOF
40337#define wxUSE_URL 1
40338_ACEOF
40339
40340 fi
40341fi
40342
40343if test "$wxUSE_FS_INET" = "yes"; then
40344 cat >>confdefs.h <<\_ACEOF
40345#define wxUSE_FS_INET 1
40346_ACEOF
40347
40348fi
40349
40350
ee45c548
MW
40351if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
40352 wxUSE_JOYSTICK=no
40353
40354 if test "$TOOLKIT" = "MSW"; then
40355 wxUSE_JOYSTICK=yes
40356
40357 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
40358 if test "$USE_DARWIN" = 1; then
40359 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
40360echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
40361 ac_ext=cc
40362ac_cpp='$CXXCPP $CPPFLAGS'
40363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40366
40367 cat >conftest.$ac_ext <<_ACEOF
40368/* confdefs.h. */
40369_ACEOF
40370cat confdefs.h >>conftest.$ac_ext
40371cat >>conftest.$ac_ext <<_ACEOF
40372/* end confdefs.h. */
40373 #include <IOKit/hid/IOHIDLib.h>
40374int
40375main ()
40376{
40377 IOHIDQueueInterface *qi = NULL;
40378 IOHIDCallbackFunction cb = NULL;
40379 qi->setEventCallout(NULL, cb, NULL, NULL);
40380 ;
40381 return 0;
40382}
40383_ACEOF
40384rm -f conftest.$ac_objext
40385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40386 (eval $ac_compile) 2>conftest.er1
40387 ac_status=$?
40388 grep -v '^ *+' conftest.er1 >conftest.err
40389 rm -f conftest.er1
40390 cat conftest.err >&5
40391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40392 (exit $ac_status); } &&
6ebeb4c7 40393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
40394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40395 (eval $ac_try) 2>&5
40396 ac_status=$?
40397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40398 (exit $ac_status); }; } &&
40399 { ac_try='test -s conftest.$ac_objext'
40400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40401 (eval $ac_try) 2>&5
40402 ac_status=$?
40403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404 (exit $ac_status); }; }; then
40405 wxUSE_JOYSTICK=yes
a848cd7e 40406
ee45c548
MW
40407else
40408 echo "$as_me: failed program was:" >&5
40409sed 's/^/| /' conftest.$ac_ext >&5
40410
40411fi
40412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40413 ac_ext=c
40414ac_cpp='$CPP $CPPFLAGS'
40415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40417ac_compiler_gnu=$ac_cv_c_compiler_gnu
40418
40419 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
40420echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
40421 fi
40422
40423 else
a848cd7e
SC
40424
40425for ac_header in linux/joystick.h
40426do
40427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40428if eval "test \"\${$as_ac_Header+set}\" = set"; then
40429 echo "$as_me:$LINENO: checking for $ac_header" >&5
40430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40431if eval "test \"\${$as_ac_Header+set}\" = set"; then
40432 echo $ECHO_N "(cached) $ECHO_C" >&6
40433fi
40434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40436else
40437 # Is the header compilable?
40438echo "$as_me:$LINENO: checking $ac_header usability" >&5
40439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40440cat >conftest.$ac_ext <<_ACEOF
40441/* confdefs.h. */
40442_ACEOF
40443cat confdefs.h >>conftest.$ac_ext
40444cat >>conftest.$ac_ext <<_ACEOF
40445/* end confdefs.h. */
40446$ac_includes_default
40447#include <$ac_header>
40448_ACEOF
40449rm -f conftest.$ac_objext
40450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40451 (eval $ac_compile) 2>conftest.er1
a848cd7e 40452 ac_status=$?
ac1cb8d3
VS
40453 grep -v '^ *+' conftest.er1 >conftest.err
40454 rm -f conftest.er1
40455 cat conftest.err >&5
a848cd7e
SC
40456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40457 (exit $ac_status); } &&
6ebeb4c7 40458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40460 (eval $ac_try) 2>&5
40461 ac_status=$?
40462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40463 (exit $ac_status); }; } &&
40464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40466 (eval $ac_try) 2>&5
40467 ac_status=$?
40468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40469 (exit $ac_status); }; }; then
40470 ac_header_compiler=yes
40471else
40472 echo "$as_me: failed program was:" >&5
40473sed 's/^/| /' conftest.$ac_ext >&5
40474
40475ac_header_compiler=no
40476fi
ac1cb8d3 40477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40479echo "${ECHO_T}$ac_header_compiler" >&6
40480
40481# Is the header present?
40482echo "$as_me:$LINENO: checking $ac_header presence" >&5
40483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40484cat >conftest.$ac_ext <<_ACEOF
40485/* confdefs.h. */
40486_ACEOF
40487cat confdefs.h >>conftest.$ac_ext
40488cat >>conftest.$ac_ext <<_ACEOF
40489/* end confdefs.h. */
40490#include <$ac_header>
40491_ACEOF
40492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40494 ac_status=$?
40495 grep -v '^ *+' conftest.er1 >conftest.err
40496 rm -f conftest.er1
40497 cat conftest.err >&5
40498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40499 (exit $ac_status); } >/dev/null; then
40500 if test -s conftest.err; then
40501 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40503 else
40504 ac_cpp_err=
40505 fi
40506else
40507 ac_cpp_err=yes
40508fi
40509if test -z "$ac_cpp_err"; then
40510 ac_header_preproc=yes
40511else
40512 echo "$as_me: failed program was:" >&5
40513sed 's/^/| /' conftest.$ac_ext >&5
40514
40515 ac_header_preproc=no
40516fi
40517rm -f conftest.err conftest.$ac_ext
40518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40519echo "${ECHO_T}$ac_header_preproc" >&6
40520
40521# So? What about this header?
ac1cb8d3
VS
40522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40523 yes:no: )
a848cd7e
SC
40524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40528 ac_header_preproc=yes
a848cd7e 40529 ;;
ac1cb8d3 40530 no:yes:* )
a848cd7e
SC
40531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40543 (
40544 cat <<\_ASBOX
ac1cb8d3
VS
40545## ----------------------------------------- ##
40546## Report this to wx-dev@lists.wxwidgets.org ##
40547## ----------------------------------------- ##
a848cd7e
SC
40548_ASBOX
40549 ) |
40550 sed "s/^/$as_me: WARNING: /" >&2
40551 ;;
40552esac
40553echo "$as_me:$LINENO: checking for $ac_header" >&5
40554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40555if eval "test \"\${$as_ac_Header+set}\" = set"; then
40556 echo $ECHO_N "(cached) $ECHO_C" >&6
40557else
ac1cb8d3 40558 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40559fi
40560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40562
40563fi
40564if test `eval echo '${'$as_ac_Header'}'` = yes; then
40565 cat >>confdefs.h <<_ACEOF
40566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40567_ACEOF
ee45c548 40568 wxUSE_JOYSTICK=yes
a848cd7e
SC
40569fi
40570
40571done
40572
ee45c548 40573 fi
4cb1d3da 40574
ee45c548
MW
40575 if test "$wxUSE_JOYSTICK" = "yes"; then
40576 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40577#define wxUSE_JOYSTICK 1
40578_ACEOF
40579
ee45c548
MW
40580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
40581 else
40582 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
40583echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
40584 fi
40585fi
40586
40587
40588
40589if test "$wxUSE_FONTMAP" = "yes" ; then
40590 cat >>confdefs.h <<\_ACEOF
40591#define wxUSE_FONTMAP 1
40592_ACEOF
40593
40594fi
40595
40596if test "$wxUSE_UNICODE" = "yes" ; then
40597 cat >>confdefs.h <<\_ACEOF
40598#define wxUSE_UNICODE 1
40599_ACEOF
40600
40601
40602 if test "$USE_WIN32" != 1; then
40603 wxUSE_UNICODE_MSLU=no
40604 fi
40605
40606 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
40607 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
40608echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
40609if test "${ac_cv_lib_unicows_main+set}" = set; then
40610 echo $ECHO_N "(cached) $ECHO_C" >&6
40611else
40612 ac_check_lib_save_LIBS=$LIBS
40613LIBS="-lunicows $LIBS"
40614cat >conftest.$ac_ext <<_ACEOF
40615/* confdefs.h. */
40616_ACEOF
40617cat confdefs.h >>conftest.$ac_ext
40618cat >>conftest.$ac_ext <<_ACEOF
40619/* end confdefs.h. */
40620
40621
40622int
40623main ()
40624{
40625main ();
40626 ;
40627 return 0;
40628}
40629_ACEOF
40630rm -f conftest.$ac_objext conftest$ac_exeext
40631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40632 (eval $ac_link) 2>conftest.er1
a848cd7e 40633 ac_status=$?
ac1cb8d3
VS
40634 grep -v '^ *+' conftest.er1 >conftest.err
40635 rm -f conftest.er1
40636 cat conftest.err >&5
a848cd7e
SC
40637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40638 (exit $ac_status); } &&
6ebeb4c7 40639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40641 (eval $ac_try) 2>&5
40642 ac_status=$?
40643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); }; } &&
40645 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40647 (eval $ac_try) 2>&5
40648 ac_status=$?
40649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650 (exit $ac_status); }; }; then
40651 ac_cv_lib_unicows_main=yes
40652else
40653 echo "$as_me: failed program was:" >&5
40654sed 's/^/| /' conftest.$ac_ext >&5
40655
40656ac_cv_lib_unicows_main=no
40657fi
ac1cb8d3
VS
40658rm -f conftest.err conftest.$ac_objext \
40659 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40660LIBS=$ac_check_lib_save_LIBS
40661fi
40662echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
40663echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
40664if test $ac_cv_lib_unicows_main = yes; then
40665
40666 cat >>confdefs.h <<\_ACEOF
40667#define wxUSE_UNICODE_MSLU 1
40668_ACEOF
40669
40670
40671else
40672
40673 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40674 Applications will only run on Windows NT/2000/XP!" >&5
40675echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40676 Applications will only run on Windows NT/2000/XP!" >&2;}
40677 wxUSE_UNICODE_MSLU=no
40678
40679fi
40680
40681 fi
40682fi
40683
40684if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
40685 cat >>confdefs.h <<\_ACEOF
40686#define wxUSE_EXPERIMENTAL_PRINTF 1
40687_ACEOF
40688
40689fi
40690
40691
40692if test "$wxUSE_POSTSCRIPT" = "yes" ; then
40693 cat >>confdefs.h <<\_ACEOF
40694#define wxUSE_POSTSCRIPT 1
40695_ACEOF
40696
40697fi
40698
40699cat >>confdefs.h <<\_ACEOF
40700#define wxUSE_AFM_FOR_POSTSCRIPT 1
40701_ACEOF
40702
40703
40704cat >>confdefs.h <<\_ACEOF
40705#define wxUSE_NORMALIZED_PS_FONTS 1
40706_ACEOF
40707
40708
40709
40710if test "$wxUSE_CONSTRAINTS" = "yes"; then
40711 cat >>confdefs.h <<\_ACEOF
40712#define wxUSE_CONSTRAINTS 1
40713_ACEOF
40714
40715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
40716fi
40717
8a7b1113
VZ
40718if test "$wxUSE_MDI" = "yes"; then
40719 cat >>confdefs.h <<\_ACEOF
40720#define wxUSE_MDI 1
40721_ACEOF
40722
40723
40724 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40725 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40726#define wxUSE_MDI_ARCHITECTURE 1
40727_ACEOF
40728
8a7b1113
VZ
40729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
40730 fi
a848cd7e
SC
40731fi
40732
40733if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
40734 cat >>confdefs.h <<\_ACEOF
40735#define wxUSE_DOC_VIEW_ARCHITECTURE 1
40736_ACEOF
40737
40738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
40739 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
40741 fi
40742fi
40743
40744if test "$wxUSE_HELP" = "yes"; then
40745 cat >>confdefs.h <<\_ACEOF
40746#define wxUSE_HELP 1
40747_ACEOF
40748
40749 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
40750
40751 if test "$wxUSE_MSW" = 1; then
40752 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
40753 cat >>confdefs.h <<\_ACEOF
40754#define wxUSE_MS_HTML_HELP 1
40755_ACEOF
40756
40757 fi
40758 fi
40759
40760 if test "$wxUSE_WXHTML_HELP" = "yes"; then
40761 if test "$wxUSE_HTML" = "yes"; then
40762 cat >>confdefs.h <<\_ACEOF
40763#define wxUSE_WXHTML_HELP 1
40764_ACEOF
40765
40766 else
40767 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
40768echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
40769 wxUSE_WXHTML_HELP=no
40770 fi
40771 fi
40772fi
40773
40774if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40775 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40776 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
40777echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
40778 else
40779 cat >>confdefs.h <<\_ACEOF
40780#define wxUSE_PRINTING_ARCHITECTURE 1
40781_ACEOF
40782
40783 fi
40784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
40785fi
40786
40787if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
40788 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
40789echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
40790 { (exit 1); exit 1; }; }
40791fi
40792
40793
efdf6afe
VZ
40794if test "$wxUSE_METAFILE" = "yes"; then
40795 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
40796 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
40797echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
40798 wxUSE_METAFILE=no
40799 fi
40800fi
40801
40802
a848cd7e
SC
40803if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
40804 -o "$wxUSE_CLIPBOARD" = "yes" \
40805 -o "$wxUSE_OLE" = "yes" \
40806 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
40807
40808for ac_header in ole2.h
40809do
40810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40811if eval "test \"\${$as_ac_Header+set}\" = set"; then
40812 echo "$as_me:$LINENO: checking for $ac_header" >&5
40813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40814if eval "test \"\${$as_ac_Header+set}\" = set"; then
40815 echo $ECHO_N "(cached) $ECHO_C" >&6
40816fi
40817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40819else
40820 # Is the header compilable?
40821echo "$as_me:$LINENO: checking $ac_header usability" >&5
40822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40823cat >conftest.$ac_ext <<_ACEOF
40824/* confdefs.h. */
40825_ACEOF
40826cat confdefs.h >>conftest.$ac_ext
40827cat >>conftest.$ac_ext <<_ACEOF
40828/* end confdefs.h. */
40829$ac_includes_default
40830#include <$ac_header>
40831_ACEOF
40832rm -f conftest.$ac_objext
40833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40834 (eval $ac_compile) 2>conftest.er1
a848cd7e 40835 ac_status=$?
ac1cb8d3
VS
40836 grep -v '^ *+' conftest.er1 >conftest.err
40837 rm -f conftest.er1
40838 cat conftest.err >&5
a848cd7e
SC
40839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840 (exit $ac_status); } &&
6ebeb4c7 40841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40843 (eval $ac_try) 2>&5
40844 ac_status=$?
40845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40846 (exit $ac_status); }; } &&
40847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40849 (eval $ac_try) 2>&5
40850 ac_status=$?
40851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40852 (exit $ac_status); }; }; then
40853 ac_header_compiler=yes
40854else
40855 echo "$as_me: failed program was:" >&5
40856sed 's/^/| /' conftest.$ac_ext >&5
40857
40858ac_header_compiler=no
40859fi
ac1cb8d3 40860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40862echo "${ECHO_T}$ac_header_compiler" >&6
40863
40864# Is the header present?
40865echo "$as_me:$LINENO: checking $ac_header presence" >&5
40866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40867cat >conftest.$ac_ext <<_ACEOF
40868/* confdefs.h. */
40869_ACEOF
40870cat confdefs.h >>conftest.$ac_ext
40871cat >>conftest.$ac_ext <<_ACEOF
40872/* end confdefs.h. */
40873#include <$ac_header>
40874_ACEOF
40875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40877 ac_status=$?
40878 grep -v '^ *+' conftest.er1 >conftest.err
40879 rm -f conftest.er1
40880 cat conftest.err >&5
40881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40882 (exit $ac_status); } >/dev/null; then
40883 if test -s conftest.err; then
40884 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40886 else
40887 ac_cpp_err=
40888 fi
40889else
40890 ac_cpp_err=yes
40891fi
40892if test -z "$ac_cpp_err"; then
40893 ac_header_preproc=yes
40894else
40895 echo "$as_me: failed program was:" >&5
40896sed 's/^/| /' conftest.$ac_ext >&5
40897
40898 ac_header_preproc=no
40899fi
40900rm -f conftest.err conftest.$ac_ext
40901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40902echo "${ECHO_T}$ac_header_preproc" >&6
40903
40904# So? What about this header?
ac1cb8d3
VS
40905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40906 yes:no: )
a848cd7e
SC
40907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40911 ac_header_preproc=yes
a848cd7e 40912 ;;
ac1cb8d3 40913 no:yes:* )
a848cd7e
SC
40914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40926 (
40927 cat <<\_ASBOX
ac1cb8d3
VS
40928## ----------------------------------------- ##
40929## Report this to wx-dev@lists.wxwidgets.org ##
40930## ----------------------------------------- ##
a848cd7e
SC
40931_ASBOX
40932 ) |
40933 sed "s/^/$as_me: WARNING: /" >&2
40934 ;;
40935esac
40936echo "$as_me:$LINENO: checking for $ac_header" >&5
40937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40938if eval "test \"\${$as_ac_Header+set}\" = set"; then
40939 echo $ECHO_N "(cached) $ECHO_C" >&6
40940else
ac1cb8d3 40941 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40942fi
40943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40945
40946fi
40947if test `eval echo '${'$as_ac_Header'}'` = yes; then
40948 cat >>confdefs.h <<_ACEOF
40949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40950_ACEOF
40951
40952fi
40953
40954done
40955
40956
40957 if test "$ac_cv_header_ole2_h" = "yes" ; then
40958 if test "$GCC" = yes ; then
40959
40960
40961 ac_ext=cc
40962ac_cpp='$CXXCPP $CPPFLAGS'
40963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40966
40967
40968 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
40969echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
40970 cat >conftest.$ac_ext <<_ACEOF
40971/* confdefs.h. */
40972_ACEOF
40973cat confdefs.h >>conftest.$ac_ext
40974cat >>conftest.$ac_ext <<_ACEOF
40975/* end confdefs.h. */
40976#include <windows.h>
40977 #include <ole2.h>
40978int
40979main ()
40980{
40981
40982 ;
40983 return 0;
40984}
40985_ACEOF
40986rm -f conftest.$ac_objext
40987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40988 (eval $ac_compile) 2>conftest.er1
a848cd7e 40989 ac_status=$?
ac1cb8d3
VS
40990 grep -v '^ *+' conftest.er1 >conftest.err
40991 rm -f conftest.er1
40992 cat conftest.err >&5
a848cd7e
SC
40993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40994 (exit $ac_status); } &&
6ebeb4c7 40995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40997 (eval $ac_try) 2>&5
40998 ac_status=$?
40999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41000 (exit $ac_status); }; } &&
41001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41003 (eval $ac_try) 2>&5
41004 ac_status=$?
41005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41006 (exit $ac_status); }; }; then
41007 echo "$as_me:$LINENO: result: no" >&5
41008echo "${ECHO_T}no" >&6
41009else
41010 echo "$as_me: failed program was:" >&5
41011sed 's/^/| /' conftest.$ac_ext >&5
41012
41013echo "$as_me:$LINENO: result: yes" >&5
41014echo "${ECHO_T}yes" >&6
41015 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
41016fi
ac1cb8d3 41017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41018 ac_ext=c
41019ac_cpp='$CPP $CPPFLAGS'
41020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41022ac_compiler_gnu=$ac_cv_c_compiler_gnu
41023
a848cd7e
SC
41024 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41025 if test "$wxUSE_OLE" = "yes" ; then
41026 cat >>confdefs.h <<\_ACEOF
41027#define wxUSE_OLE 1
41028_ACEOF
41029
0b78747f 41030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
41031 fi
41032 fi
41033
41034 if test "$wxUSE_DATAOBJ" = "yes" ; then
41035 cat >>confdefs.h <<\_ACEOF
41036#define wxUSE_DATAOBJ 1
41037_ACEOF
41038
41039 fi
41040 else
41041 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41042echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41043
41044 wxUSE_CLIPBOARD=no
41045 wxUSE_DRAG_AND_DROP=no
41046 wxUSE_DATAOBJ=no
41047 wxUSE_OLE=no
41048 fi
41049
41050 if test "$wxUSE_METAFILE" = "yes"; then
41051 cat >>confdefs.h <<\_ACEOF
41052#define wxUSE_METAFILE 1
41053_ACEOF
41054
41055
41056 cat >>confdefs.h <<\_ACEOF
41057#define wxUSE_ENH_METAFILE 1
41058_ACEOF
41059
41060 fi
41061fi
41062
41063if test "$wxUSE_IPC" = "yes"; then
0b78747f 41064 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
41065 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41066echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 41067 wxUSE_IPC=no
a848cd7e
SC
41068 fi
41069
0b78747f
MW
41070 if test "$wxUSE_IPC" = "yes"; then
41071 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41072#define wxUSE_IPC 1
41073_ACEOF
41074
0b78747f
MW
41075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41076 fi
a848cd7e
SC
41077fi
41078
eb730a0c 41079if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
41080 if test "$wxUSE_MGL" = 1; then
41081 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41082echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41083 wxUSE_DATAOBJ=no
41084 else
41085 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
41086#define wxUSE_DATAOBJ 1
41087_ACEOF
41088
2113bc77 41089 fi
eb730a0c
JS
41090else
41091 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41092echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41093 wxUSE_CLIPBOARD=no
41094 wxUSE_DRAG_AND_DROP=no
41095fi
41096
a848cd7e
SC
41097if test "$wxUSE_CLIPBOARD" = "yes"; then
41098 if test "$wxUSE_MGL" = 1; then
41099 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41100echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41101 wxUSE_CLIPBOARD=no
41102 fi
41103
41104 if test "$wxUSE_CLIPBOARD" = "yes"; then
41105 cat >>confdefs.h <<\_ACEOF
41106#define wxUSE_CLIPBOARD 1
41107_ACEOF
41108
a848cd7e
SC
41109 fi
41110fi
41111
41112if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41113 if test "$wxUSE_GTK" = 1; then
41114 if test "$WXGTK12" != 1; then
41115 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41116echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41117 wxUSE_DRAG_AND_DROP=no
41118 fi
41119 fi
41120
41121 if test "$wxUSE_MOTIF" = 1; then
41122 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41123echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41124 wxUSE_DRAG_AND_DROP=no
41125 fi
41126
41127 if test "$wxUSE_X11" = 1; then
41128 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41129echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41130 wxUSE_DRAG_AND_DROP=no
41131 fi
41132
41133 if test "$wxUSE_MGL" = 1; then
41134 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41135echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41136 wxUSE_DRAG_AND_DROP=no
41137 fi
41138
41139 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41140 cat >>confdefs.h <<\_ACEOF
41141#define wxUSE_DRAG_AND_DROP 1
41142_ACEOF
41143
41144 fi
41145
41146fi
41147
41148if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41150fi
41151
41152if test "$wxUSE_SPLINES" = "yes" ; then
41153 cat >>confdefs.h <<\_ACEOF
41154#define wxUSE_SPLINES 1
41155_ACEOF
41156
41157fi
41158
fbe2ca43
SN
41159if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41160 cat >>confdefs.h <<\_ACEOF
41161#define wxUSE_MOUSEWHEEL 1
41162_ACEOF
41163
41164fi
41165
a848cd7e
SC
41166
41167USES_CONTROLS=0
41168if test "$wxUSE_CONTROLS" = "yes"; then
41169 USES_CONTROLS=1
41170fi
41171
41172if test "$wxUSE_ACCEL" = "yes"; then
41173 cat >>confdefs.h <<\_ACEOF
41174#define wxUSE_ACCEL 1
41175_ACEOF
41176
41177 USES_CONTROLS=1
41178fi
41179
41180if test "$wxUSE_BUTTON" = "yes"; then
41181 cat >>confdefs.h <<\_ACEOF
41182#define wxUSE_BUTTON 1
41183_ACEOF
41184
41185 USES_CONTROLS=1
41186fi
41187
41188if test "$wxUSE_BMPBUTTON" = "yes"; then
41189 cat >>confdefs.h <<\_ACEOF
41190#define wxUSE_BMPBUTTON 1
41191_ACEOF
41192
41193 USES_CONTROLS=1
41194fi
41195
41196if test "$wxUSE_CALCTRL" = "yes"; then
41197 cat >>confdefs.h <<\_ACEOF
41198#define wxUSE_CALENDARCTRL 1
41199_ACEOF
41200
41201 USES_CONTROLS=1
41202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41203fi
41204
41205if test "$wxUSE_CARET" = "yes"; then
41206 cat >>confdefs.h <<\_ACEOF
41207#define wxUSE_CARET 1
41208_ACEOF
41209
41210 USES_CONTROLS=1
41211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41212fi
41213
41214if test "$wxUSE_COMBOBOX" = "yes"; then
41215 cat >>confdefs.h <<\_ACEOF
41216#define wxUSE_COMBOBOX 1
41217_ACEOF
41218
41219 USES_CONTROLS=1
41220fi
41221
41222if test "$wxUSE_CHOICE" = "yes"; then
41223 cat >>confdefs.h <<\_ACEOF
41224#define wxUSE_CHOICE 1
41225_ACEOF
41226
41227 USES_CONTROLS=1
41228fi
41229
92bbdbcd
WS
41230if test "$wxUSE_CHOICEBOOK" = "yes"; then
41231 cat >>confdefs.h <<\_ACEOF
41232#define wxUSE_CHOICEBOOK 1
41233_ACEOF
41234
41235 USES_CONTROLS=1
41236fi
41237
a848cd7e
SC
41238if test "$wxUSE_CHECKBOX" = "yes"; then
41239 cat >>confdefs.h <<\_ACEOF
41240#define wxUSE_CHECKBOX 1
41241_ACEOF
41242
41243 USES_CONTROLS=1
41244fi
41245
41246if test "$wxUSE_CHECKLST" = "yes"; then
41247 cat >>confdefs.h <<\_ACEOF
41248#define wxUSE_CHECKLISTBOX 1
41249_ACEOF
41250
41251 USES_CONTROLS=1
41252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41253fi
41254
da98e9be
VZ
41255if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41256 cat >>confdefs.h <<\_ACEOF
41257#define wxUSE_DATEPICKCTRL 1
41258_ACEOF
41259
41260 USES_CONTROLS=1
41261fi
41262
a848cd7e
SC
41263if test "$wxUSE_DISPLAY" = "yes"; then
41264 cat >>confdefs.h <<\_ACEOF
41265#define wxUSE_DISPLAY 1
41266_ACEOF
41267
0b78747f 41268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41269fi
41270
41271if test "$wxUSE_GAUGE" = "yes"; then
41272 cat >>confdefs.h <<\_ACEOF
41273#define wxUSE_GAUGE 1
41274_ACEOF
41275
41276 USES_CONTROLS=1
41277fi
41278
41279if test "$wxUSE_GRID" = "yes"; then
41280 cat >>confdefs.h <<\_ACEOF
41281#define wxUSE_GRID 1
41282_ACEOF
41283
41284 USES_CONTROLS=1
41285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41286fi
41287
41288if test "$wxUSE_IMAGLIST" = "yes"; then
41289 cat >>confdefs.h <<\_ACEOF
41290#define wxUSE_IMAGLIST 1
41291_ACEOF
41292
41293fi
41294
41295if test "$wxUSE_LISTBOOK" = "yes"; then
41296 cat >>confdefs.h <<\_ACEOF
41297#define wxUSE_LISTBOOK 1
41298_ACEOF
41299
41300 USES_CONTROLS=1
41301fi
41302
41303if test "$wxUSE_LISTBOX" = "yes"; then
41304 cat >>confdefs.h <<\_ACEOF
41305#define wxUSE_LISTBOX 1
41306_ACEOF
41307
41308 USES_CONTROLS=1
0b78747f 41309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
41310fi
41311
41312if test "$wxUSE_LISTCTRL" = "yes"; then
41313 if test "$wxUSE_IMAGLIST" = "yes"; then
41314 cat >>confdefs.h <<\_ACEOF
41315#define wxUSE_LISTCTRL 1
41316_ACEOF
41317
41318 USES_CONTROLS=1
41319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41320 else
41321 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41322echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41323 fi
41324fi
41325
41326if test "$wxUSE_NOTEBOOK" = "yes"; then
41327 cat >>confdefs.h <<\_ACEOF
41328#define wxUSE_NOTEBOOK 1
41329_ACEOF
41330
41331 USES_CONTROLS=1
41332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41333fi
41334
41335
41336if test "$wxUSE_RADIOBOX" = "yes"; then
41337 cat >>confdefs.h <<\_ACEOF
41338#define wxUSE_RADIOBOX 1
41339_ACEOF
41340
41341 USES_CONTROLS=1
41342fi
41343
41344if test "$wxUSE_RADIOBTN" = "yes"; then
41345 cat >>confdefs.h <<\_ACEOF
41346#define wxUSE_RADIOBTN 1
41347_ACEOF
41348
41349 USES_CONTROLS=1
41350fi
41351
41352if test "$wxUSE_SASH" = "yes"; then
41353 cat >>confdefs.h <<\_ACEOF
41354#define wxUSE_SASH 1
41355_ACEOF
41356
41357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
41358fi
41359
41360if test "$wxUSE_SCROLLBAR" = "yes"; then
41361 cat >>confdefs.h <<\_ACEOF
41362#define wxUSE_SCROLLBAR 1
41363_ACEOF
41364
41365 USES_CONTROLS=1
41366 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
41367fi
41368
41369if test "$wxUSE_SLIDER" = "yes"; then
41370 cat >>confdefs.h <<\_ACEOF
41371#define wxUSE_SLIDER 1
41372_ACEOF
41373
41374 USES_CONTROLS=1
41375fi
41376
41377if test "$wxUSE_SPINBTN" = "yes"; then
41378 cat >>confdefs.h <<\_ACEOF
41379#define wxUSE_SPINBTN 1
41380_ACEOF
41381
41382 USES_CONTROLS=1
41383fi
41384
41385if test "$wxUSE_SPINCTRL" = "yes"; then
41386 cat >>confdefs.h <<\_ACEOF
41387#define wxUSE_SPINCTRL 1
41388_ACEOF
41389
41390 USES_CONTROLS=1
41391fi
41392
41393if test "$wxUSE_SPLITTER" = "yes"; then
41394 cat >>confdefs.h <<\_ACEOF
41395#define wxUSE_SPLITTER 1
41396_ACEOF
41397
41398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
41399fi
41400
41401if test "$wxUSE_STATBMP" = "yes"; then
41402 cat >>confdefs.h <<\_ACEOF
41403#define wxUSE_STATBMP 1
41404_ACEOF
41405
41406 USES_CONTROLS=1
41407fi
41408
41409if test "$wxUSE_STATBOX" = "yes"; then
41410 cat >>confdefs.h <<\_ACEOF
41411#define wxUSE_STATBOX 1
41412_ACEOF
41413
41414 USES_CONTROLS=1
41415fi
41416
41417if test "$wxUSE_STATTEXT" = "yes"; then
41418 cat >>confdefs.h <<\_ACEOF
41419#define wxUSE_STATTEXT 1
41420_ACEOF
41421
41422 USES_CONTROLS=1
41423fi
41424
41425if test "$wxUSE_STATLINE" = "yes"; then
41426 cat >>confdefs.h <<\_ACEOF
41427#define wxUSE_STATLINE 1
41428_ACEOF
41429
41430 USES_CONTROLS=1
41431fi
41432
41433if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
41434 cat >>confdefs.h <<\_ACEOF
41435#define wxUSE_NATIVE_STATUSBAR 1
41436_ACEOF
41437
a848cd7e
SC
41438 cat >>confdefs.h <<\_ACEOF
41439#define wxUSE_STATUSBAR 1
41440_ACEOF
41441
41442 USES_CONTROLS=1
41443
41444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
41445fi
41446
41447if test "$wxUSE_TABDIALOG" = "yes"; then
41448 cat >>confdefs.h <<\_ACEOF
41449#define wxUSE_TAB_DIALOG 1
41450_ACEOF
41451
a848cd7e
SC
41452fi
41453
41454if test "$wxUSE_TEXTCTRL" = "yes"; then
41455 cat >>confdefs.h <<\_ACEOF
41456#define wxUSE_TEXTCTRL 1
41457_ACEOF
41458
41459 USES_CONTROLS=1
41460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
41461fi
41462
41463if test "$wxUSE_TOGGLEBTN" = "yes"; then
41464 if test "$wxUSE_COCOA" = 1 ; then
41465 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
41466echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
41467 wxUSE_TOGGLEBTN=no
41468 fi
41469 if test "$wxUSE_UNIVERSAL" = "yes"; then
41470 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
41471echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
41472 wxUSE_TOGGLEBTN=no
41473 fi
41474
41475 if test "$wxUSE_TOGGLEBTN" = "yes"; then
41476 cat >>confdefs.h <<\_ACEOF
41477#define wxUSE_TOGGLEBTN 1
41478_ACEOF
41479
41480 USES_CONTROLS=1
41481 fi
41482fi
41483
41484if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
41485 cat >>confdefs.h <<\_ACEOF
41486#define wxUSE_TOOLBAR_SIMPLE 1
41487_ACEOF
41488
41489 wxUSE_TOOLBAR="yes"
41490 USES_CONTROLS=1
41491fi
41492
41493if test "$wxUSE_TOOLBAR" = "yes"; then
41494 cat >>confdefs.h <<\_ACEOF
41495#define wxUSE_TOOLBAR 1
41496_ACEOF
41497
41498 USES_CONTROLS=1
41499
41500 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
41501 wxUSE_TOOLBAR_NATIVE="yes"
41502 fi
41503
41504 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
41505 cat >>confdefs.h <<\_ACEOF
41506#define wxUSE_TOOLBAR_NATIVE 1
41507_ACEOF
41508
41509 USES_CONTROLS=1
41510 fi
41511
41512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
41513fi
41514
41515if test "$wxUSE_TOOLTIPS" = "yes"; then
41516 if test "$wxUSE_MOTIF" = 1; then
41517 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
41518echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
41519 else
41520 if test "$wxUSE_UNIVERSAL" = "yes"; then
41521 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
41522echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
41523 else
41524 cat >>confdefs.h <<\_ACEOF
41525#define wxUSE_TOOLTIPS 1
41526_ACEOF
41527
41528 fi
41529 fi
41530fi
41531
41532if test "$wxUSE_TREECTRL" = "yes"; then
41533 if test "$wxUSE_IMAGLIST" = "yes"; then
41534 cat >>confdefs.h <<\_ACEOF
41535#define wxUSE_TREECTRL 1
41536_ACEOF
41537
41538 USES_CONTROLS=1
41539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
41540 else
41541 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
41542echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
41543 fi
41544fi
41545
41546if test "$wxUSE_POPUPWIN" = "yes"; then
41547 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41548 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
41549echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
41550 else
41551 if test "$wxUSE_PM" = 1; then
41552 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
41553echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
41554 else
41555 cat >>confdefs.h <<\_ACEOF
41556#define wxUSE_POPUPWIN 1
41557_ACEOF
41558
0b78747f 41559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
41560
41561 USES_CONTROLS=1
41562 fi
41563 fi
41564fi
41565
0dcd06dd 41566if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
41567 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41568 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
41569echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
41570 else
41571 cat >>confdefs.h <<\_ACEOF
41572#define wxUSE_DIALUP_MANAGER 1
41573_ACEOF
41574
41575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
41576 fi
41577fi
41578
a848cd7e
SC
41579if test "$wxUSE_TIPWINDOW" = "yes"; then
41580 if test "$wxUSE_PM" = 1; then
41581 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
41582echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
41583 else
41584 cat >>confdefs.h <<\_ACEOF
41585#define wxUSE_TIPWINDOW 1
41586_ACEOF
41587
41588 fi
41589fi
41590
41591if test "$USES_CONTROLS" = 1; then
41592 cat >>confdefs.h <<\_ACEOF
41593#define wxUSE_CONTROLS 1
41594_ACEOF
41595
41596fi
41597
41598
41599if test "$wxUSE_ACCESSIBILITY" = "yes"; then
41600 cat >>confdefs.h <<\_ACEOF
41601#define wxUSE_ACCESSIBILITY 1
41602_ACEOF
41603
41604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
41605fi
41606
38b4a946
VZ
41607if test "$wxUSE_DC_CACHEING" = "yes"; then
41608 cat >>confdefs.h <<\_ACEOF
41609#define wxUSE_DC_CACHEING 1
41610_ACEOF
41611
41612fi
41613
a848cd7e
SC
41614if test "$wxUSE_DRAGIMAGE" = "yes"; then
41615 cat >>confdefs.h <<\_ACEOF
41616#define wxUSE_DRAGIMAGE 1
41617_ACEOF
41618
41619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
41620fi
41621
41622if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
41623 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41624 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
41625echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
41626 else
41627 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41628#define wxUSE_EXCEPTIONS 1
41629_ACEOF
41630
07bea8f0
VS
41631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
41632 fi
a848cd7e
SC
41633fi
41634
41635USE_HTML=0
41636if test "$wxUSE_HTML" = "yes"; then
41637 cat >>confdefs.h <<\_ACEOF
41638#define wxUSE_HTML 1
41639_ACEOF
41640
41641 USE_HTML=1
41642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
41643 if test "$wxUSE_MAC" = 1; then
41644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
41645 fi
a848cd7e 41646fi
646b6ec1 41647if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 41648 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
41649 old_CPPFLAGS="$CPPFLAGS"
41650 CPPFLAGS="$CPPFLAGS -x objective-c++"
41651 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
41652echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
41653if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
41654 echo $ECHO_N "(cached) $ECHO_C" >&6
41655else
41656 cat >conftest.$ac_ext <<_ACEOF
41657/* confdefs.h. */
41658_ACEOF
41659cat confdefs.h >>conftest.$ac_ext
41660cat >>conftest.$ac_ext <<_ACEOF
41661/* end confdefs.h. */
41662#include <Carbon/Carbon.h>
41663
41664#include <WebKit/HIWebView.h>
41665_ACEOF
41666rm -f conftest.$ac_objext
41667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41668 (eval $ac_compile) 2>conftest.er1
41669 ac_status=$?
41670 grep -v '^ *+' conftest.er1 >conftest.err
41671 rm -f conftest.er1
41672 cat conftest.err >&5
41673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41674 (exit $ac_status); } &&
6ebeb4c7 41675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
41676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41677 (eval $ac_try) 2>&5
41678 ac_status=$?
41679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41680 (exit $ac_status); }; } &&
41681 { ac_try='test -s conftest.$ac_objext'
41682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41683 (eval $ac_try) 2>&5
41684 ac_status=$?
41685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686 (exit $ac_status); }; }; then
41687 ac_cv_header_WebKit_HIWebView_h=yes
41688else
41689 echo "$as_me: failed program was:" >&5
41690sed 's/^/| /' conftest.$ac_ext >&5
41691
41692ac_cv_header_WebKit_HIWebView_h=no
41693fi
41694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41695fi
41696echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
41697echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
41698if test $ac_cv_header_WebKit_HIWebView_h = yes; then
41699
41700 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
41701#define wxUSE_WEBKIT 1
41702_ACEOF
41703
07bea8f0
VS
41704 WEBKIT_LINK="-framework WebKit"
41705
41706else
41707
41708 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
41709echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
41710 wxUSE_WEBKIT=no
41711
646b6ec1
VS
41712fi
41713
07bea8f0
VS
41714
41715 CPPFLAGS="$old_CPPFLAGS"
41716 elif test "$wxUSE_COCOA" = 1; then
41717 cat >>confdefs.h <<\_ACEOF
41718#define wxUSE_WEBKIT 1
41719_ACEOF
41720
41721 else
41722 wxUSE_WEBKIT=no
41723 fi
41724fi
41725
9a8f0513
VS
41726USE_XRC=0
41727if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
41728 if test "$wxUSE_XML" != "yes"; then
41729 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
41730echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
41731 wxUSE_XRC=no
41732 else
41733 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
41734#define wxUSE_XRC 1
41735_ACEOF
41736
d2ebf0b7
VS
41737 USE_XRC=1
41738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
41739 fi
9a8f0513 41740fi
07bea8f0 41741
a848cd7e
SC
41742if test "$wxUSE_MENUS" = "yes"; then
41743 cat >>confdefs.h <<\_ACEOF
41744#define wxUSE_MENUS 1
41745_ACEOF
41746
41747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
41748fi
41749
41750if test "$wxUSE_METAFILE" = "yes"; then
41751 cat >>confdefs.h <<\_ACEOF
41752#define wxUSE_METAFILE 1
41753_ACEOF
41754
41755fi
41756
41757if test "$wxUSE_MIMETYPE" = "yes"; then
41758 cat >>confdefs.h <<\_ACEOF
41759#define wxUSE_MIMETYPE 1
41760_ACEOF
41761
41762fi
41763
41764if test "$wxUSE_MINIFRAME" = "yes"; then
41765 cat >>confdefs.h <<\_ACEOF
41766#define wxUSE_MINIFRAME 1
41767_ACEOF
41768
41769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
41770fi
41771
41772if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
41773 cat >>confdefs.h <<\_ACEOF
41774#define wxUSE_SYSTEM_OPTIONS 1
41775_ACEOF
41776
41777 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 41778 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
41779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
41780 fi
41781fi
41782
41783
41784if test "$wxUSE_VALIDATORS" = "yes"; then
41785 cat >>confdefs.h <<\_ACEOF
41786#define wxUSE_VALIDATORS 1
41787_ACEOF
41788
41789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
41790fi
41791
41792if test "$wxUSE_PALETTE" = "yes" ; then
41793 cat >>confdefs.h <<\_ACEOF
41794#define wxUSE_PALETTE 1
41795_ACEOF
41796
41797fi
41798
41799if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
41800 LIBS=" -lunicows $LIBS"
41801fi
41802
41803
41804if test "$wxUSE_IMAGE" = "yes" ; then
41805 cat >>confdefs.h <<\_ACEOF
41806#define wxUSE_IMAGE 1
41807_ACEOF
41808
41809
41810 if test "$wxUSE_GIF" = "yes" ; then
41811 cat >>confdefs.h <<\_ACEOF
41812#define wxUSE_GIF 1
41813_ACEOF
41814
41815 fi
41816
41817 if test "$wxUSE_PCX" = "yes" ; then
41818 cat >>confdefs.h <<\_ACEOF
41819#define wxUSE_PCX 1
41820_ACEOF
41821
41822 fi
41823
41824 if test "$wxUSE_IFF" = "yes" ; then
41825 cat >>confdefs.h <<\_ACEOF
41826#define wxUSE_IFF 1
41827_ACEOF
41828
41829 fi
41830
41831 if test "$wxUSE_PNM" = "yes" ; then
41832 cat >>confdefs.h <<\_ACEOF
41833#define wxUSE_PNM 1
41834_ACEOF
41835
41836 fi
41837
41838 if test "$wxUSE_XPM" = "yes" ; then
41839 cat >>confdefs.h <<\_ACEOF
41840#define wxUSE_XPM 1
41841_ACEOF
41842
41843 fi
41844
41845 if test "$wxUSE_ICO_CUR" = "yes" ; then
41846 cat >>confdefs.h <<\_ACEOF
41847#define wxUSE_ICO_CUR 1
41848_ACEOF
41849
41850 fi
41851fi
41852
41853
41854if test "$wxUSE_CHOICEDLG" = "yes"; then
41855 cat >>confdefs.h <<\_ACEOF
41856#define wxUSE_CHOICEDLG 1
41857_ACEOF
41858
41859fi
41860
41861if test "$wxUSE_COLOURDLG" = "yes"; then
41862 cat >>confdefs.h <<\_ACEOF
41863#define wxUSE_COLOURDLG 1
41864_ACEOF
41865
41866fi
41867
41868if test "$wxUSE_FILEDLG" = "yes"; then
41869 cat >>confdefs.h <<\_ACEOF
41870#define wxUSE_FILEDLG 1
41871_ACEOF
41872
41873fi
41874
41875if test "$wxUSE_FINDREPLDLG" = "yes"; then
41876 cat >>confdefs.h <<\_ACEOF
41877#define wxUSE_FINDREPLDLG 1
41878_ACEOF
41879
41880fi
41881
41882if test "$wxUSE_FONTDLG" = "yes"; then
41883 cat >>confdefs.h <<\_ACEOF
41884#define wxUSE_FONTDLG 1
41885_ACEOF
41886
41887fi
41888
41889if test "$wxUSE_DIRDLG" = "yes"; then
41890 if test "$wxUSE_TREECTRL" != "yes"; then
41891 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
41892echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
41893 else
41894 cat >>confdefs.h <<\_ACEOF
41895#define wxUSE_DIRDLG 1
41896_ACEOF
41897
41898 fi
41899fi
41900
41901if test "$wxUSE_MSGDLG" = "yes"; then
41902 cat >>confdefs.h <<\_ACEOF
41903#define wxUSE_MSGDLG 1
41904_ACEOF
41905
41906fi
41907
41908if test "$wxUSE_NUMBERDLG" = "yes"; then
41909 cat >>confdefs.h <<\_ACEOF
41910#define wxUSE_NUMBERDLG 1
41911_ACEOF
41912
41913fi
41914
41915if test "$wxUSE_PROGRESSDLG" = "yes"; then
41916 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41917 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
41918echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
41919 else
41920 cat >>confdefs.h <<\_ACEOF
41921#define wxUSE_PROGRESSDLG 1
41922_ACEOF
41923
41924 fi
41925fi
41926
41927if test "$wxUSE_SPLASH" = "yes"; then
41928 cat >>confdefs.h <<\_ACEOF
41929#define wxUSE_SPLASH 1
41930_ACEOF
41931
2057db16 41932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
41933fi
41934
41935if test "$wxUSE_STARTUP_TIPS" = "yes"; then
41936 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41937 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
41938echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
41939 else
41940 cat >>confdefs.h <<\_ACEOF
41941#define wxUSE_STARTUP_TIPS 1
41942_ACEOF
41943
41944 fi
41945fi
41946
41947if test "$wxUSE_TEXTDLG" = "yes"; then
41948 cat >>confdefs.h <<\_ACEOF
41949#define wxUSE_TEXTDLG 1
41950_ACEOF
41951
41952fi
41953
41954if test "$wxUSE_WIZARDDLG" = "yes"; then
41955 cat >>confdefs.h <<\_ACEOF
41956#define wxUSE_WIZARDDLG 1
41957_ACEOF
41958
41959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
41960fi
41961
41962
ce756cb0 41963if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
41964 if test "$wxUSE_GTK" = 1; then
41965 wxUSE_GSTREAMER="yes"
41966
ce756cb0 41967
dae87f93 41968 succeeded=no
ce756cb0 41969
dae87f93
RN
41970 if test -z "$PKG_CONFIG"; then
41971 # Extract the first word of "pkg-config", so it can be a program name with args.
41972set dummy pkg-config; ac_word=$2
41973echo "$as_me:$LINENO: checking for $ac_word" >&5
41974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41975if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41976 echo $ECHO_N "(cached) $ECHO_C" >&6
41977else
41978 case $PKG_CONFIG in
41979 [\\/]* | ?:[\\/]*)
41980 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41981 ;;
41982 *)
41983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41984for as_dir in $PATH
41985do
41986 IFS=$as_save_IFS
41987 test -z "$as_dir" && as_dir=.
41988 for ac_exec_ext in '' $ac_executable_extensions; do
41989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41990 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41992 break 2
41993 fi
41994done
41995done
41996
41997 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41998 ;;
41999esac
42000fi
42001PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42002
42003if test -n "$PKG_CONFIG"; then
42004 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42005echo "${ECHO_T}$PKG_CONFIG" >&6
42006else
42007 echo "$as_me:$LINENO: result: no" >&5
42008echo "${ECHO_T}no" >&6
42009fi
42010
42011 fi
42012
42013 if test "$PKG_CONFIG" = "no" ; then
42014 echo "*** The pkg-config script could not be found. Make sure it is"
42015 echo "*** in your path, or set the PKG_CONFIG environment variable"
42016 echo "*** to the full path to pkg-config."
42017 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42018 else
42019 PKG_CONFIG_MIN_VERSION=0.9.0
42020 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42021 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42022echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42023
42024 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42025 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42026echo "${ECHO_T}yes" >&6
dae87f93 42027 succeeded=yes
ce756cb0 42028
dae87f93
RN
42029 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42030echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42031 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42032 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42033echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42034
42035 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42036echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42037 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42038 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42039echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42040 else
42041 GSTREAMER_CFLAGS=""
42042 GSTREAMER_LIBS=""
42043 ## If we have a custom action on failure, don't print errors, but
42044 ## do set a variable so people can do so.
42045 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 42046
dae87f93
RN
42047 fi
42048
42049
42050
42051 else
42052 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42053 echo "*** See http://www.freedesktop.org/software/pkgconfig"
42054 fi
42055 fi
42056
42057 if test $succeeded = yes; then
42058
42059 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42060 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 42061
ce756cb0 42062 else
dae87f93
RN
42063
42064 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42065echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42066 wxUSE_GSTREAMER="no"
42067
42068 fi
42069
42070
42071
42072
42073
42074 if test "x$GST_INSPECT" == "x"; then
42075 # Extract the first word of "gst-inspect", so it can be a program name with args.
42076set dummy gst-inspect; ac_word=$2
42077echo "$as_me:$LINENO: checking for $ac_word" >&5
42078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42079if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42080 echo $ECHO_N "(cached) $ECHO_C" >&6
42081else
42082 if test -n "$GST_INSPECT"; then
42083 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42084else
42085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42086for as_dir in $PATH
42087do
42088 IFS=$as_save_IFS
42089 test -z "$as_dir" && as_dir=.
42090 for ac_exec_ext in '' $ac_executable_extensions; do
42091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42092 ac_cv_prog_GST_INSPECT="gst-inspect"
42093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42094 break 2
ce756cb0 42095 fi
dae87f93
RN
42096done
42097done
42098
42099fi
42100fi
42101GST_INSPECT=$ac_cv_prog_GST_INSPECT
42102if test -n "$GST_INSPECT"; then
42103 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42104echo "${ECHO_T}$GST_INSPECT" >&6
42105else
42106 echo "$as_me:$LINENO: result: no" >&5
42107echo "${ECHO_T}no" >&6
42108fi
42109
42110 fi
42111
42112 if test "x$GST_INSPECT" != "x"; then
42113 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42114echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42115 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42116 echo "$as_me:$LINENO: result: found." >&5
42117echo "${ECHO_T}found." >&6
ce756cb0 42118
ce756cb0 42119 else
dae87f93
RN
42120 echo "$as_me:$LINENO: result: not found." >&5
42121echo "${ECHO_T}not found." >&6
42122
42123 wxUSE_GSTREAMER="no"
42124 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42125echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42126
42127 fi
42128 fi
42129
42130
42131 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42132echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42133if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42134 echo $ECHO_N "(cached) $ECHO_C" >&6
42135else
42136 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
42137/* confdefs.h. */
42138_ACEOF
42139cat confdefs.h >>conftest.$ac_ext
42140cat >>conftest.$ac_ext <<_ACEOF
42141/* end confdefs.h. */
dae87f93 42142#include <gst/gst.h>
ce756cb0 42143
dae87f93 42144#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42145_ACEOF
42146rm -f conftest.$ac_objext
42147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42148 (eval $ac_compile) 2>conftest.er1
42149 ac_status=$?
42150 grep -v '^ *+' conftest.er1 >conftest.err
42151 rm -f conftest.er1
42152 cat conftest.err >&5
42153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42154 (exit $ac_status); } &&
6ebeb4c7 42155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
42156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42157 (eval $ac_try) 2>&5
42158 ac_status=$?
42159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42160 (exit $ac_status); }; } &&
42161 { ac_try='test -s conftest.$ac_objext'
42162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42163 (eval $ac_try) 2>&5
42164 ac_status=$?
42165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42166 (exit $ac_status); }; }; then
dae87f93 42167 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42168else
42169 echo "$as_me: failed program was:" >&5
42170sed 's/^/| /' conftest.$ac_ext >&5
42171
dae87f93 42172ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42173fi
42174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42175fi
42176echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42177echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42178if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42179 :
42180else
ce756cb0 42181
dae87f93
RN
42182 wxUSE_GSTREAMER="no"
42183 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42184echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42185
dae87f93 42186fi
ce756cb0 42187
dae87f93
RN
42188
42189
42190 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42191echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42192
0ad5d837
VZ
42193 ac_find_libraries=
42194 for ac_dir in $SEARCH_LIB;
ce756cb0 42195 do
3eca31dc 42196 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42197 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42198 ac_find_libraries=$ac_dir
42199 break 2
42200 fi
42201 done
42202 done
42203
ce756cb0 42204
dae87f93
RN
42205 if test "$ac_find_libraries" = "" ; then
42206 echo "$as_me:$LINENO: result: no" >&5
42207echo "${ECHO_T}no" >&6
42208 wxUSE_GSTREAMER="no"
42209 else
42210 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42211echo "${ECHO_T}yes" >&6
dae87f93 42212 fi
ce756cb0 42213
dae87f93
RN
42214 if test "$wxUSE_GSTREAMER" = "yes"; then
42215 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42216#define wxUSE_GSTREAMER 1
42217_ACEOF
42218
dae87f93
RN
42219 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42220echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42221 fi
42222 fi
42223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42224 cat >>confdefs.h <<\_ACEOF
42225#define wxUSE_MEDIACTRL 1
42226_ACEOF
42227
42228fi
42229
42230
a848cd7e
SC
42231if test "$cross_compiling" = "yes"; then
42232 OSINFO="\"$host\""
42233else
42234 OSINFO=`uname -s -r -m`
42235 OSINFO="\"$OSINFO\""
42236fi
42237
42238cat >>confdefs.h <<_ACEOF
42239#define WXWIN_OS_DESCRIPTION $OSINFO
42240_ACEOF
42241
42242
42243
42244if test "x$prefix" != "xNONE"; then
42245 wxPREFIX=$prefix
42246else
42247 wxPREFIX=$ac_default_prefix
42248fi
42249
42250cat >>confdefs.h <<_ACEOF
42251#define wxINSTALL_PREFIX "$wxPREFIX"
42252_ACEOF
42253
42254
a848cd7e
SC
42255
42256
42257CORE_BASE_LIBS="net base"
42258CORE_GUI_LIBS="adv core"
42259
42260if test "$wxUSE_XML" = "yes" ; then
42261 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42262fi
42263if test "$wxUSE_ODBC" != "no" ; then
42264 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42265 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42266fi
42267if test "$wxUSE_HTML" = "yes" ; then
42268 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42269fi
61639efb
VZ
42270if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42271 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42272fi
9a8f0513
VS
42273if test "$wxUSE_XRC" = "yes" ; then
42274 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42275fi
a848cd7e
SC
42276
42277if test "$wxUSE_GUI" != "yes"; then
42278 CORE_GUI_LIBS=""
42279fi
42280
42281
42282
42283
42284
42285
42286
42287
42288if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42289 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
42290 if test "$USE_DARWIN" = 1; then
42291 LDFLAGS="$LDFLAGS -framework QuickTime"
42292 else
42293 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42294 fi
07bea8f0 42295 fi
5dcf30a0 42296 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
42297 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42298 else
42299 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 42300 fi
a848cd7e
SC
42301fi
42302if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 42303 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
42304 if test "$wxUSE_MEDIACTRL" = "yes"; then
42305 LDFLAGS="$LDFLAGS -framework QuickTime"
42306 fi
a848cd7e 42307fi
19b27e78
MW
42308if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42309 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42310fi
a848cd7e
SC
42311
42312
42313LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42314
42315have_cos=0
42316have_floor=0
42317
42318for ac_func in cos
42319do
42320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42321echo "$as_me:$LINENO: checking for $ac_func" >&5
42322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42323if eval "test \"\${$as_ac_var+set}\" = set"; then
42324 echo $ECHO_N "(cached) $ECHO_C" >&6
42325else
42326 cat >conftest.$ac_ext <<_ACEOF
42327/* confdefs.h. */
42328_ACEOF
42329cat confdefs.h >>conftest.$ac_ext
42330cat >>conftest.$ac_ext <<_ACEOF
42331/* end confdefs.h. */
ac1cb8d3
VS
42332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42334#define $ac_func innocuous_$ac_func
42335
a848cd7e
SC
42336/* System header to define __stub macros and hopefully few prototypes,
42337 which can conflict with char $ac_func (); below.
42338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42339 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42340
a848cd7e
SC
42341#ifdef __STDC__
42342# include <limits.h>
42343#else
42344# include <assert.h>
42345#endif
ac1cb8d3
VS
42346
42347#undef $ac_func
42348
a848cd7e
SC
42349/* Override any gcc2 internal prototype to avoid an error. */
42350#ifdef __cplusplus
42351extern "C"
42352{
42353#endif
42354/* We use char because int might match the return type of a gcc2
42355 builtin and then its argument prototype would still apply. */
42356char $ac_func ();
42357/* The GNU C library defines this for functions which it implements
42358 to always fail with ENOSYS. Some functions are actually named
42359 something starting with __ and the normal name is an alias. */
42360#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42361choke me
42362#else
42363char (*f) () = $ac_func;
42364#endif
42365#ifdef __cplusplus
42366}
42367#endif
42368
42369int
42370main ()
42371{
42372return f != $ac_func;
42373 ;
42374 return 0;
42375}
42376_ACEOF
42377rm -f conftest.$ac_objext conftest$ac_exeext
42378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42379 (eval $ac_link) 2>conftest.er1
a848cd7e 42380 ac_status=$?
ac1cb8d3
VS
42381 grep -v '^ *+' conftest.er1 >conftest.err
42382 rm -f conftest.er1
42383 cat conftest.err >&5
a848cd7e
SC
42384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42385 (exit $ac_status); } &&
6ebeb4c7 42386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42388 (eval $ac_try) 2>&5
42389 ac_status=$?
42390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42391 (exit $ac_status); }; } &&
42392 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42394 (eval $ac_try) 2>&5
42395 ac_status=$?
42396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42397 (exit $ac_status); }; }; then
42398 eval "$as_ac_var=yes"
42399else
42400 echo "$as_me: failed program was:" >&5
42401sed 's/^/| /' conftest.$ac_ext >&5
42402
42403eval "$as_ac_var=no"
42404fi
ac1cb8d3
VS
42405rm -f conftest.err conftest.$ac_objext \
42406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42407fi
42408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42409echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42410if test `eval echo '${'$as_ac_var'}'` = yes; then
42411 cat >>confdefs.h <<_ACEOF
42412#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42413_ACEOF
42414 have_cos=1
42415fi
42416done
42417
42418
42419for ac_func in floor
42420do
42421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42422echo "$as_me:$LINENO: checking for $ac_func" >&5
42423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42424if eval "test \"\${$as_ac_var+set}\" = set"; then
42425 echo $ECHO_N "(cached) $ECHO_C" >&6
42426else
42427 cat >conftest.$ac_ext <<_ACEOF
42428/* confdefs.h. */
42429_ACEOF
42430cat confdefs.h >>conftest.$ac_ext
42431cat >>conftest.$ac_ext <<_ACEOF
42432/* end confdefs.h. */
ac1cb8d3
VS
42433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42435#define $ac_func innocuous_$ac_func
42436
a848cd7e
SC
42437/* System header to define __stub macros and hopefully few prototypes,
42438 which can conflict with char $ac_func (); below.
42439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42440 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42441
a848cd7e
SC
42442#ifdef __STDC__
42443# include <limits.h>
42444#else
42445# include <assert.h>
42446#endif
ac1cb8d3
VS
42447
42448#undef $ac_func
42449
a848cd7e
SC
42450/* Override any gcc2 internal prototype to avoid an error. */
42451#ifdef __cplusplus
42452extern "C"
42453{
42454#endif
42455/* We use char because int might match the return type of a gcc2
42456 builtin and then its argument prototype would still apply. */
42457char $ac_func ();
42458/* The GNU C library defines this for functions which it implements
42459 to always fail with ENOSYS. Some functions are actually named
42460 something starting with __ and the normal name is an alias. */
42461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42462choke me
42463#else
42464char (*f) () = $ac_func;
42465#endif
42466#ifdef __cplusplus
42467}
42468#endif
42469
42470int
42471main ()
42472{
42473return f != $ac_func;
42474 ;
42475 return 0;
42476}
42477_ACEOF
42478rm -f conftest.$ac_objext conftest$ac_exeext
42479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42480 (eval $ac_link) 2>conftest.er1
a848cd7e 42481 ac_status=$?
ac1cb8d3
VS
42482 grep -v '^ *+' conftest.er1 >conftest.err
42483 rm -f conftest.er1
42484 cat conftest.err >&5
a848cd7e
SC
42485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42486 (exit $ac_status); } &&
6ebeb4c7 42487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42489 (eval $ac_try) 2>&5
42490 ac_status=$?
42491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42492 (exit $ac_status); }; } &&
42493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42495 (eval $ac_try) 2>&5
42496 ac_status=$?
42497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42498 (exit $ac_status); }; }; then
42499 eval "$as_ac_var=yes"
42500else
42501 echo "$as_me: failed program was:" >&5
42502sed 's/^/| /' conftest.$ac_ext >&5
42503
42504eval "$as_ac_var=no"
42505fi
ac1cb8d3
VS
42506rm -f conftest.err conftest.$ac_objext \
42507 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42508fi
42509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42511if test `eval echo '${'$as_ac_var'}'` = yes; then
42512 cat >>confdefs.h <<_ACEOF
42513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42514_ACEOF
42515 have_floor=1
42516fi
42517done
42518
42519echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
42520echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
42521if test "$have_cos" = 1 -a "$have_floor" = 1; then
42522 echo "$as_me:$LINENO: result: yes" >&5
42523echo "${ECHO_T}yes" >&6
42524else
42525 echo "$as_me:$LINENO: result: no" >&5
42526echo "${ECHO_T}no" >&6
42527 LIBS="$LIBS -lm"
42528 # use different functions to avoid configure caching
42529 have_sin=0
42530 have_ceil=0
42531
42532for ac_func in sin
42533do
42534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42535echo "$as_me:$LINENO: checking for $ac_func" >&5
42536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42537if eval "test \"\${$as_ac_var+set}\" = set"; then
42538 echo $ECHO_N "(cached) $ECHO_C" >&6
42539else
42540 cat >conftest.$ac_ext <<_ACEOF
42541/* confdefs.h. */
42542_ACEOF
42543cat confdefs.h >>conftest.$ac_ext
42544cat >>conftest.$ac_ext <<_ACEOF
42545/* end confdefs.h. */
ac1cb8d3
VS
42546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42548#define $ac_func innocuous_$ac_func
42549
a848cd7e
SC
42550/* System header to define __stub macros and hopefully few prototypes,
42551 which can conflict with char $ac_func (); below.
42552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42553 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42554
a848cd7e
SC
42555#ifdef __STDC__
42556# include <limits.h>
42557#else
42558# include <assert.h>
42559#endif
ac1cb8d3
VS
42560
42561#undef $ac_func
42562
a848cd7e
SC
42563/* Override any gcc2 internal prototype to avoid an error. */
42564#ifdef __cplusplus
42565extern "C"
42566{
42567#endif
42568/* We use char because int might match the return type of a gcc2
42569 builtin and then its argument prototype would still apply. */
42570char $ac_func ();
42571/* The GNU C library defines this for functions which it implements
42572 to always fail with ENOSYS. Some functions are actually named
42573 something starting with __ and the normal name is an alias. */
42574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42575choke me
42576#else
42577char (*f) () = $ac_func;
42578#endif
42579#ifdef __cplusplus
42580}
42581#endif
42582
42583int
42584main ()
42585{
42586return f != $ac_func;
42587 ;
42588 return 0;
42589}
42590_ACEOF
42591rm -f conftest.$ac_objext conftest$ac_exeext
42592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42593 (eval $ac_link) 2>conftest.er1
a848cd7e 42594 ac_status=$?
ac1cb8d3
VS
42595 grep -v '^ *+' conftest.er1 >conftest.err
42596 rm -f conftest.er1
42597 cat conftest.err >&5
a848cd7e
SC
42598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42599 (exit $ac_status); } &&
6ebeb4c7 42600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42602 (eval $ac_try) 2>&5
42603 ac_status=$?
42604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42605 (exit $ac_status); }; } &&
42606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42608 (eval $ac_try) 2>&5
42609 ac_status=$?
42610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42611 (exit $ac_status); }; }; then
42612 eval "$as_ac_var=yes"
42613else
42614 echo "$as_me: failed program was:" >&5
42615sed 's/^/| /' conftest.$ac_ext >&5
42616
42617eval "$as_ac_var=no"
42618fi
ac1cb8d3
VS
42619rm -f conftest.err conftest.$ac_objext \
42620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42621fi
42622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42623echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42624if test `eval echo '${'$as_ac_var'}'` = yes; then
42625 cat >>confdefs.h <<_ACEOF
42626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42627_ACEOF
42628 have_sin=1
42629fi
42630done
42631
42632
42633for ac_func in ceil
42634do
42635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42636echo "$as_me:$LINENO: checking for $ac_func" >&5
42637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42638if eval "test \"\${$as_ac_var+set}\" = set"; then
42639 echo $ECHO_N "(cached) $ECHO_C" >&6
42640else
42641 cat >conftest.$ac_ext <<_ACEOF
42642/* confdefs.h. */
42643_ACEOF
42644cat confdefs.h >>conftest.$ac_ext
42645cat >>conftest.$ac_ext <<_ACEOF
42646/* end confdefs.h. */
ac1cb8d3
VS
42647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42649#define $ac_func innocuous_$ac_func
42650
a848cd7e
SC
42651/* System header to define __stub macros and hopefully few prototypes,
42652 which can conflict with char $ac_func (); below.
42653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42654 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42655
a848cd7e
SC
42656#ifdef __STDC__
42657# include <limits.h>
42658#else
42659# include <assert.h>
42660#endif
ac1cb8d3
VS
42661
42662#undef $ac_func
42663
a848cd7e
SC
42664/* Override any gcc2 internal prototype to avoid an error. */
42665#ifdef __cplusplus
42666extern "C"
42667{
42668#endif
42669/* We use char because int might match the return type of a gcc2
42670 builtin and then its argument prototype would still apply. */
42671char $ac_func ();
42672/* The GNU C library defines this for functions which it implements
42673 to always fail with ENOSYS. Some functions are actually named
42674 something starting with __ and the normal name is an alias. */
42675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42676choke me
42677#else
42678char (*f) () = $ac_func;
42679#endif
42680#ifdef __cplusplus
42681}
42682#endif
42683
42684int
42685main ()
42686{
42687return f != $ac_func;
42688 ;
42689 return 0;
42690}
42691_ACEOF
42692rm -f conftest.$ac_objext conftest$ac_exeext
42693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42694 (eval $ac_link) 2>conftest.er1
a848cd7e 42695 ac_status=$?
ac1cb8d3
VS
42696 grep -v '^ *+' conftest.er1 >conftest.err
42697 rm -f conftest.er1
42698 cat conftest.err >&5
a848cd7e
SC
42699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42700 (exit $ac_status); } &&
6ebeb4c7 42701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42703 (eval $ac_try) 2>&5
42704 ac_status=$?
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); }; } &&
42707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709 (eval $ac_try) 2>&5
42710 ac_status=$?
42711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712 (exit $ac_status); }; }; then
42713 eval "$as_ac_var=yes"
42714else
42715 echo "$as_me: failed program was:" >&5
42716sed 's/^/| /' conftest.$ac_ext >&5
42717
42718eval "$as_ac_var=no"
42719fi
ac1cb8d3
VS
42720rm -f conftest.err conftest.$ac_objext \
42721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42722fi
42723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42724echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42725if test `eval echo '${'$as_ac_var'}'` = yes; then
42726 cat >>confdefs.h <<_ACEOF
42727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42728_ACEOF
42729 have_ceil=1
42730fi
42731done
42732
42733 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
42734echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
42735 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
42736 echo "$as_me:$LINENO: result: yes" >&5
42737echo "${ECHO_T}yes" >&6
42738 else
42739 echo "$as_me:$LINENO: result: no" >&5
42740echo "${ECHO_T}no" >&6
42741 # not sure we should warn the user, crash, etc.
42742 fi
42743fi
42744
42745if test "$wxUSE_GUI" = "yes"; then
42746
42747
8bce5cda
MW
42748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
42749 dynamic erase event exec font image minimal mobile \
42750 mobile/wxedit mobile/styles propsize render \
42751 richedit rotate shaped vscroll widgets"
a848cd7e
SC
42752
42753 if test "$wxUSE_MONOLITHIC" != "yes"; then
42754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
42755 fi
0b78747f 42756 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
42757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
42758 if test "$wxUSE_UNIVERSAL" != "yes"; then
42759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
42760 fi
42761 fi
42762 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
42763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 42764 fi
a848cd7e
SC
42765else
42766 SAMPLES_SUBDIRS="console"
42767fi
42768
42769
ceec2216 42770INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
42771-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
42772
48f625bc 42773if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
42774 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
42775elif test "$GCC" = yes ; then
42776 CWARNINGS="-Wall -Wundef"
42777fi
42778
48f625bc 42779if test "x$INTELCXX" = "xyes" ; then
7f47faf4 42780 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
42781elif test "$GXX" = yes ; then
42782 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 42783fi
a848cd7e
SC
42784
42785EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
42786
0c3c69fc 42787CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 42788CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 42789CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 42790
95986553
DE
42791if test "x$MWCC" = "xyes"; then
42792
42793 CC="$CC -cwd source -I-"
42794 CXX="$CXX -cwd source -I-"
42795fi
42796
a848cd7e 42797
0c3c69fc 42798LIBS=`echo $LIBS`
a848cd7e
SC
42799EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
42800EXTRALIBS_XML="$EXPAT_LINK"
42801EXTRALIBS_HTML="$MSPACK_LINK"
42802EXTRALIBS_ODBC="$ODBC_LINK"
42803if test "$wxUSE_GUI" = "yes"; then
2e350179 42804 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
42805fi
42806if test "$wxUSE_OPENGL" = "yes"; then
42807 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
42808fi
42809
42810LDFLAGS="$LDFLAGS $PROFILE"
42811
42812if test "$wxUSE_GTK" = 1; then
42813 WXCONFIG_INCLUDE=
42814else
42815 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
42816fi
42817
42818WXCONFIG_EXTRALIBS="$LIBS"
42819
42820if test "$wxUSE_REGEX" = "builtin" ; then
74802184 42821 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
42822fi
42823if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 42824 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
42825fi
42826if test "$wxUSE_ODBC" = "builtin" ; then
74802184 42827 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
42828fi
42829if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 42830 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
42831fi
42832if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 42833 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
42834fi
42835if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 42836 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
42837fi
42838if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 42839 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
42840fi
42841
42842for i in $wxconfig_3rdparty ; do
74802184 42843 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
42844done
42845
42846
42847if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
42848 WXUNIV=1
42849else
42850 WXUNIV=0
42851fi
42852
42853
42854
42855
42856
42857
42858
42859
42860
42861if test $wxUSE_MONOLITHIC = "yes" ; then
42862 MONOLITHIC=1
42863else
42864 MONOLITHIC=0
42865fi
42866
42867if test $wxUSE_PLUGINS = "yes" ; then
42868 USE_PLUGINS=1
42869else
42870 USE_PLUGINS=0
42871fi
42872
42873if test $wxUSE_ODBC != "no" ; then
42874 USE_ODBC=1
42875else
42876 USE_ODBC=0
42877fi
42878
16358932
VZ
42879if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42880 USE_QA=1
42881else
42882 USE_QA=0
42883fi
42884
a848cd7e
SC
42885if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
42886 OFFICIAL_BUILD=1
42887else
42888 OFFICIAL_BUILD=0
42889fi
42890
42891
42892
42893
42894
42895
42896
42897
42898
42899
42900
42901
42902
42903
42904
42905
42906
42907
42908
ceec2216 42909
d1c38808 42910
a848cd7e
SC
42911
42912
42913TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
42914
42915
42916
42917
42918
42919
42920
42921
4d4ff94c
VZ
42922case "$TOOLKIT" in
42923 GTK)
42924 TOOLKIT_USER="GTK+"
42925 if test "$WXGTK20" = 1; then
42926 TOOLKIT_USER="$TOOLKIT_USER 2"
42927 fi
9a8f0513 42928 ;;
4d4ff94c
VZ
42929
42930 *)
42931 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 42932 ;;
4d4ff94c 42933esac
a848cd7e 42934
fb00f58d
JS
42935if test "$wxUSE_WINE" = "yes"; then
42936 BAKEFILE_FORCE_PLATFORM=win32
42937fi
42938
9a8f0513 42939
1e9e8aba
DE
42940
42941
a848cd7e
SC
42942 if test "x$BAKEFILE_HOST" = "x"; then
42943 BAKEFILE_HOST="${host}"
42944 fi
42945
42946 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
42947
42948 if test -n "$ac_tool_prefix"; then
42949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
42950set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42951echo "$as_me:$LINENO: checking for $ac_word" >&5
42952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42953if test "${ac_cv_prog_RANLIB+set}" = set; then
42954 echo $ECHO_N "(cached) $ECHO_C" >&6
42955else
42956 if test -n "$RANLIB"; then
42957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
42958else
42959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42960for as_dir in $PATH
42961do
42962 IFS=$as_save_IFS
42963 test -z "$as_dir" && as_dir=.
42964 for ac_exec_ext in '' $ac_executable_extensions; do
42965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
42967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42968 break 2
42969 fi
42970done
42971done
42972
42973fi
42974fi
42975RANLIB=$ac_cv_prog_RANLIB
42976if test -n "$RANLIB"; then
42977 echo "$as_me:$LINENO: result: $RANLIB" >&5
42978echo "${ECHO_T}$RANLIB" >&6
42979else
42980 echo "$as_me:$LINENO: result: no" >&5
42981echo "${ECHO_T}no" >&6
42982fi
42983
42984fi
42985if test -z "$ac_cv_prog_RANLIB"; then
42986 ac_ct_RANLIB=$RANLIB
42987 # Extract the first word of "ranlib", so it can be a program name with args.
42988set dummy ranlib; ac_word=$2
42989echo "$as_me:$LINENO: checking for $ac_word" >&5
42990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42991if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42992 echo $ECHO_N "(cached) $ECHO_C" >&6
42993else
42994 if test -n "$ac_ct_RANLIB"; then
42995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
42996else
42997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42998for as_dir in $PATH
42999do
43000 IFS=$as_save_IFS
43001 test -z "$as_dir" && as_dir=.
43002 for ac_exec_ext in '' $ac_executable_extensions; do
43003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43004 ac_cv_prog_ac_ct_RANLIB="ranlib"
43005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43006 break 2
43007 fi
43008done
43009done
43010
43011 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43012fi
43013fi
43014ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43015if test -n "$ac_ct_RANLIB"; then
43016 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43017echo "${ECHO_T}$ac_ct_RANLIB" >&6
43018else
43019 echo "$as_me:$LINENO: result: no" >&5
43020echo "${ECHO_T}no" >&6
43021fi
43022
43023 RANLIB=$ac_ct_RANLIB
43024else
43025 RANLIB="$ac_cv_prog_RANLIB"
43026fi
43027
43028 # Find a good install program. We prefer a C program (faster),
43029# so one script is as good as another. But avoid the broken or
43030# incompatible versions:
43031# SysV /etc/install, /usr/sbin/install
43032# SunOS /usr/etc/install
43033# IRIX /sbin/install
43034# AIX /bin/install
43035# AmigaOS /C/install, which installs bootblocks on floppy discs
43036# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43037# AFS /usr/afsws/bin/install, which mishandles nonexistent args
43038# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 43039# OS/2's system install, which has a completely different semantic
a848cd7e
SC
43040# ./install, which can be erroneously created by make from ./install.sh.
43041echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43042echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43043if test -z "$INSTALL"; then
43044if test "${ac_cv_path_install+set}" = set; then
43045 echo $ECHO_N "(cached) $ECHO_C" >&6
43046else
43047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43048for as_dir in $PATH
43049do
43050 IFS=$as_save_IFS
43051 test -z "$as_dir" && as_dir=.
43052 # Account for people who put trailing slashes in PATH elements.
43053case $as_dir/ in
43054 ./ | .// | /cC/* | \
43055 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 43056 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
43057 /usr/ucb/* ) ;;
43058 *)
43059 # OSF1 and SCO ODT 3.0 have their own names for install.
43060 # Don't use installbsd from OSF since it installs stuff as root
43061 # by default.
43062 for ac_prog in ginstall scoinst install; do
43063 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
43064 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43065 if test $ac_prog = install &&
43066 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43067 # AIX install. It has an incompatible calling convention.
43068 :
43069 elif test $ac_prog = install &&
43070 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43071 # program-specific install script used by HP pwplus--don't use.
43072 :
43073 else
43074 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43075 break 3
43076 fi
43077 fi
a848cd7e
SC
43078 done
43079 done
43080 ;;
43081esac
43082done
43083
43084
43085fi
43086 if test "${ac_cv_path_install+set}" = set; then
43087 INSTALL=$ac_cv_path_install
43088 else
43089 # As a last resort, use the slow shell script. We don't cache a
43090 # path for INSTALL within a source directory, because that will
43091 # break other packages using the cache if that directory is
43092 # removed, or if the path is relative.
43093 INSTALL=$ac_install_sh
43094 fi
43095fi
43096echo "$as_me:$LINENO: result: $INSTALL" >&5
43097echo "${ECHO_T}$INSTALL" >&6
43098
43099# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43100# It thinks the first close brace ends the variable substitution.
43101test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43102
43103test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43104
43105test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43106
43107 echo "$as_me:$LINENO: checking whether ln -s works" >&5
43108echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43109LN_S=$as_ln_s
43110if test "$LN_S" = "ln -s"; then
43111 echo "$as_me:$LINENO: result: yes" >&5
43112echo "${ECHO_T}yes" >&6
43113else
43114 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43115echo "${ECHO_T}no, using $LN_S" >&6
43116fi
43117
43118
43119 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43120echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43121set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43122if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43123 echo $ECHO_N "(cached) $ECHO_C" >&6
43124else
43125 cat >conftest.make <<\_ACEOF
43126all:
43127 @echo 'ac_maketemp="$(MAKE)"'
43128_ACEOF
43129# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43130eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43131if test -n "$ac_maketemp"; then
43132 eval ac_cv_prog_make_${ac_make}_set=yes
43133else
43134 eval ac_cv_prog_make_${ac_make}_set=no
43135fi
43136rm -f conftest.make
43137fi
43138if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43139 echo "$as_me:$LINENO: result: yes" >&5
43140echo "${ECHO_T}yes" >&6
43141 SET_MAKE=
43142else
43143 echo "$as_me:$LINENO: result: no" >&5
43144echo "${ECHO_T}no" >&6
43145 SET_MAKE="MAKE=${MAKE-make}"
43146fi
43147
43148
43149
43150 if test -n "$ac_tool_prefix"; then
43151 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43152set dummy ${ac_tool_prefix}ar; ac_word=$2
43153echo "$as_me:$LINENO: checking for $ac_word" >&5
43154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43155if test "${ac_cv_prog_AR+set}" = set; then
43156 echo $ECHO_N "(cached) $ECHO_C" >&6
43157else
43158 if test -n "$AR"; then
43159 ac_cv_prog_AR="$AR" # Let the user override the test.
43160else
43161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43162for as_dir in $PATH
43163do
43164 IFS=$as_save_IFS
43165 test -z "$as_dir" && as_dir=.
43166 for ac_exec_ext in '' $ac_executable_extensions; do
43167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43168 ac_cv_prog_AR="${ac_tool_prefix}ar"
43169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43170 break 2
43171 fi
43172done
43173done
43174
43175fi
43176fi
43177AR=$ac_cv_prog_AR
43178if test -n "$AR"; then
43179 echo "$as_me:$LINENO: result: $AR" >&5
43180echo "${ECHO_T}$AR" >&6
43181else
43182 echo "$as_me:$LINENO: result: no" >&5
43183echo "${ECHO_T}no" >&6
43184fi
43185
43186fi
43187if test -z "$ac_cv_prog_AR"; then
43188 ac_ct_AR=$AR
43189 # Extract the first word of "ar", so it can be a program name with args.
43190set dummy ar; ac_word=$2
43191echo "$as_me:$LINENO: checking for $ac_word" >&5
43192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43193if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43194 echo $ECHO_N "(cached) $ECHO_C" >&6
43195else
43196 if test -n "$ac_ct_AR"; then
43197 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43198else
43199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43200for as_dir in $PATH
43201do
43202 IFS=$as_save_IFS
43203 test -z "$as_dir" && as_dir=.
43204 for ac_exec_ext in '' $ac_executable_extensions; do
43205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43206 ac_cv_prog_ac_ct_AR="ar"
43207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43208 break 2
43209 fi
43210done
43211done
43212
43213 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43214fi
43215fi
43216ac_ct_AR=$ac_cv_prog_ac_ct_AR
43217if test -n "$ac_ct_AR"; then
43218 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43219echo "${ECHO_T}$ac_ct_AR" >&6
43220else
43221 echo "$as_me:$LINENO: result: no" >&5
43222echo "${ECHO_T}no" >&6
43223fi
43224
43225 AR=$ac_ct_AR
43226else
43227 AR="$ac_cv_prog_AR"
43228fi
43229
43230 if test -n "$ac_tool_prefix"; then
43231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43232set dummy ${ac_tool_prefix}strip; ac_word=$2
43233echo "$as_me:$LINENO: checking for $ac_word" >&5
43234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43235if test "${ac_cv_prog_STRIP+set}" = set; then
43236 echo $ECHO_N "(cached) $ECHO_C" >&6
43237else
43238 if test -n "$STRIP"; then
43239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43240else
43241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43242for as_dir in $PATH
43243do
43244 IFS=$as_save_IFS
43245 test -z "$as_dir" && as_dir=.
43246 for ac_exec_ext in '' $ac_executable_extensions; do
43247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43250 break 2
43251 fi
43252done
43253done
43254
43255fi
43256fi
43257STRIP=$ac_cv_prog_STRIP
43258if test -n "$STRIP"; then
43259 echo "$as_me:$LINENO: result: $STRIP" >&5
43260echo "${ECHO_T}$STRIP" >&6
43261else
43262 echo "$as_me:$LINENO: result: no" >&5
43263echo "${ECHO_T}no" >&6
43264fi
43265
43266fi
43267if test -z "$ac_cv_prog_STRIP"; then
43268 ac_ct_STRIP=$STRIP
43269 # Extract the first word of "strip", so it can be a program name with args.
43270set dummy strip; ac_word=$2
43271echo "$as_me:$LINENO: checking for $ac_word" >&5
43272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43273if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43274 echo $ECHO_N "(cached) $ECHO_C" >&6
43275else
43276 if test -n "$ac_ct_STRIP"; then
43277 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43278else
43279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43280for as_dir in $PATH
43281do
43282 IFS=$as_save_IFS
43283 test -z "$as_dir" && as_dir=.
43284 for ac_exec_ext in '' $ac_executable_extensions; do
43285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43286 ac_cv_prog_ac_ct_STRIP="strip"
43287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43288 break 2
43289 fi
43290done
43291done
43292
43293 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43294fi
43295fi
43296ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43297if test -n "$ac_ct_STRIP"; then
43298 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43299echo "${ECHO_T}$ac_ct_STRIP" >&6
43300else
43301 echo "$as_me:$LINENO: result: no" >&5
43302echo "${ECHO_T}no" >&6
43303fi
43304
43305 STRIP=$ac_ct_STRIP
43306else
43307 STRIP="$ac_cv_prog_STRIP"
43308fi
43309
43310 if test -n "$ac_tool_prefix"; then
43311 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43312set dummy ${ac_tool_prefix}nm; ac_word=$2
43313echo "$as_me:$LINENO: checking for $ac_word" >&5
43314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43315if test "${ac_cv_prog_NM+set}" = set; then
43316 echo $ECHO_N "(cached) $ECHO_C" >&6
43317else
43318 if test -n "$NM"; then
43319 ac_cv_prog_NM="$NM" # Let the user override the test.
43320else
43321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43322for as_dir in $PATH
43323do
43324 IFS=$as_save_IFS
43325 test -z "$as_dir" && as_dir=.
43326 for ac_exec_ext in '' $ac_executable_extensions; do
43327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43328 ac_cv_prog_NM="${ac_tool_prefix}nm"
43329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43330 break 2
43331 fi
43332done
43333done
43334
43335fi
43336fi
43337NM=$ac_cv_prog_NM
43338if test -n "$NM"; then
43339 echo "$as_me:$LINENO: result: $NM" >&5
43340echo "${ECHO_T}$NM" >&6
43341else
43342 echo "$as_me:$LINENO: result: no" >&5
43343echo "${ECHO_T}no" >&6
43344fi
43345
43346fi
43347if test -z "$ac_cv_prog_NM"; then
43348 ac_ct_NM=$NM
43349 # Extract the first word of "nm", so it can be a program name with args.
43350set dummy nm; ac_word=$2
43351echo "$as_me:$LINENO: checking for $ac_word" >&5
43352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43353if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
43354 echo $ECHO_N "(cached) $ECHO_C" >&6
43355else
43356 if test -n "$ac_ct_NM"; then
43357 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
43358else
43359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43360for as_dir in $PATH
43361do
43362 IFS=$as_save_IFS
43363 test -z "$as_dir" && as_dir=.
43364 for ac_exec_ext in '' $ac_executable_extensions; do
43365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43366 ac_cv_prog_ac_ct_NM="nm"
43367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43368 break 2
43369 fi
43370done
43371done
43372
43373 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
43374fi
43375fi
43376ac_ct_NM=$ac_cv_prog_ac_ct_NM
43377if test -n "$ac_ct_NM"; then
43378 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
43379echo "${ECHO_T}$ac_ct_NM" >&6
43380else
43381 echo "$as_me:$LINENO: result: no" >&5
43382echo "${ECHO_T}no" >&6
43383fi
43384
43385 NM=$ac_ct_NM
43386else
43387 NM="$ac_cv_prog_NM"
43388fi
43389
43390
43391 case ${BAKEFILE_HOST} in
43392 *-hp-hpux* )
1e9e8aba 43393 INSTALL_DIR="mkdir -p"
a848cd7e
SC
43394 ;;
43395 *) INSTALL_DIR="$INSTALL -d"
43396 ;;
43397 esac
43398
43399
43400 LDFLAGS_GUI=
43401 case ${BAKEFILE_HOST} in
43402 *-*-cygwin* | *-*-mingw32* )
43403 LDFLAGS_GUI="-mwindows"
43404 esac
43405
43406
43407 fi
43408
43409 echo "$as_me:$LINENO: checking if make is GNU make" >&5
43410echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
43411if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
43412 echo $ECHO_N "(cached) $ECHO_C" >&6
43413else
43414
43415 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
43416 egrep -s GNU > /dev/null); then
43417 bakefile_cv_prog_makeisgnu="yes"
43418 else
43419 bakefile_cv_prog_makeisgnu="no"
43420 fi
43421
43422fi
43423echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
43424echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
43425
43426 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
43427 IF_GNU_MAKE=""
43428 else
43429 IF_GNU_MAKE="#"
43430 fi
43431
43432
43433
43434 PLATFORM_UNIX=0
43435 PLATFORM_WIN32=0
43436 PLATFORM_MSDOS=0
43437 PLATFORM_MAC=0
1e9e8aba 43438 PLATFORM_MACOS=0
a848cd7e
SC
43439 PLATFORM_MACOSX=0
43440 PLATFORM_OS2=0
1e9e8aba 43441 PLATFORM_BEOS=0
a848cd7e
SC
43442
43443 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
43444 case "${BAKEFILE_HOST}" in
810b94f0 43445 *-*-mingw32* )
a848cd7e
SC
43446 PLATFORM_WIN32=1
43447 ;;
43448 *-pc-msdosdjgpp )
43449 PLATFORM_MSDOS=1
43450 ;;
43451 *-pc-os2_emx | *-pc-os2-emx )
43452 PLATFORM_OS2=1
43453 ;;
47bd5406 43454 *-*-darwin* )
a848cd7e
SC
43455 PLATFORM_MAC=1
43456 PLATFORM_MACOSX=1
43457 ;;
1e9e8aba
DE
43458 *-*-beos* )
43459 PLATFORM_BEOS=1
43460 ;;
43461 powerpc-apple-macos* )
43462 PLATFORM_MAC=1
43463 PLATFORM_MACOS=1
43464 ;;
a848cd7e
SC
43465 * )
43466 PLATFORM_UNIX=1
43467 ;;
43468 esac
43469 else
43470 case "$BAKEFILE_FORCE_PLATFORM" in
43471 win32 )
43472 PLATFORM_WIN32=1
43473 ;;
43474 msdos )
43475 PLATFORM_MSDOS=1
43476 ;;
43477 os2 )
43478 PLATFORM_OS2=1
43479 ;;
43480 darwin )
43481 PLATFORM_MAC=1
43482 PLATFORM_MACOSX=1
43483 ;;
43484 unix )
43485 PLATFORM_UNIX=1
43486 ;;
1e9e8aba
DE
43487 beos )
43488 PLATFORM_BEOS=1
43489 ;;
a848cd7e
SC
43490 * )
43491 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
43492echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
43493 { (exit 1); exit 1; }; }
43494 ;;
43495 esac
43496 fi
43497
43498
43499
43500
43501
43502
43503
43504
43505
1e9e8aba
DE
43506
43507
a848cd7e
SC
43508 # Check whether --enable-omf or --disable-omf was given.
43509if test "${enable_omf+set}" = set; then
43510 enableval="$enable_omf"
43511 bk_os2_use_omf="$enableval"
43512fi;
43513
43514 case "${BAKEFILE_HOST}" in
43515 *-*-darwin* )
47bd5406
VZ
43516 if test "x$GCC" = "xyes"; then
43517 CFLAGS="$CFLAGS -fno-common"
43518 CXXFLAGS="$CXXFLAGS -fno-common"
43519 fi
43520 if test "x$XLCC" = "xyes"; then
43521 CFLAGS="$CFLAGS -qnocommon"
43522 CXXFLAGS="$CXXFLAGS -qnocommon"
43523 fi
a848cd7e
SC
43524 ;;
43525
43526 *-pc-os2_emx | *-pc-os2-emx )
43527 if test "x$bk_os2_use_omf" = "xyes" ; then
43528 AR=emxomfar
43529 RANLIB=:
43530 LDFLAGS="-Zomf $LDFLAGS"
43531 CFLAGS="-Zomf $CFLAGS"
43532 CXXFLAGS="-Zomf $CXXFLAGS"
43533 OS2_LIBEXT="lib"
43534 else
43535 OS2_LIBEXT="a"
43536 fi
43537 ;;
1e9e8aba
DE
43538
43539 i*86-*-beos* )
43540 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
43541 ;;
a848cd7e
SC
43542 esac
43543
43544
43545 SO_SUFFIX="so"
43546 SO_SUFFIX_MODULE="so"
43547 EXEEXT=""
43548 LIBPREFIX="lib"
43549 LIBEXT=".a"
43550 DLLPREFIX="lib"
43551 DLLPREFIX_MODULE=""
43552 DLLIMP_SUFFIX=""
810b94f0 43553 dlldir="$libdir"
a848cd7e
SC
43554
43555 case "${BAKEFILE_HOST}" in
43556 *-hp-hpux* )
43557 SO_SUFFIX="sl"
43558 SO_SUFFIX_MODULE="sl"
43559 ;;
43560 *-*-aix* )
43561 SO_SUFFIX="a"
43562 SO_SUFFIX_MODULE="a"
43563 ;;
810b94f0
MW
43564 *-*-cygwin* )
43565 SO_SUFFIX="dll"
43566 SO_SUFFIX_MODULE="dll"
43567 DLLIMP_SUFFIX="dll.a"
43568 EXEEXT=".exe"
43569 DLLPREFIX="cyg"
43570 dlldir="$bindir"
43571 ;;
43572 *-*-mingw32* )
a848cd7e
SC
43573 SO_SUFFIX="dll"
43574 SO_SUFFIX_MODULE="dll"
43575 DLLIMP_SUFFIX="dll.a"
43576 EXEEXT=".exe"
43577 DLLPREFIX=""
810b94f0 43578 dlldir="$bindir"
a848cd7e
SC
43579 ;;
43580 *-pc-msdosdjgpp )
43581 EXEEXT=".exe"
43582 DLLPREFIX=""
810b94f0 43583 dlldir="$bindir"
a848cd7e
SC
43584 ;;
43585 *-pc-os2_emx | *-pc-os2-emx )
43586 SO_SUFFIX="dll"
43587 SO_SUFFIX_MODULE="dll"
43588 DLLIMP_SUFFIX=$OS2_LIBEXT
43589 EXEEXT=".exe"
43590 DLLPREFIX=""
43591 LIBPREFIX=""
43592 LIBEXT=".$OS2_LIBEXT"
810b94f0 43593 dlldir="$bindir"
a848cd7e 43594 ;;
47bd5406 43595 *-*-darwin* )
a848cd7e
SC
43596 SO_SUFFIX="dylib"
43597 SO_SUFFIX_MODULE="bundle"
43598 ;;
43599 esac
43600
43601 if test "x$DLLIMP_SUFFIX" = "x" ; then
43602 DLLIMP_SUFFIX="$SO_SUFFIX"
43603 fi
43604
43605
43606
43607
43608
43609
43610
43611
43612
43613
43614
810b94f0 43615
1e9e8aba
DE
43616 PIC_FLAG=""
43617 if test "x$GCC" = "xyes"; then
a848cd7e
SC
43618 PIC_FLAG="-fPIC"
43619 fi
43620
1e9e8aba
DE
43621 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
43622 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 43623 WINDOWS_IMPLIB=0
1e9e8aba 43624
a848cd7e
SC
43625 case "${BAKEFILE_HOST}" in
43626 *-hp-hpux* )
1e9e8aba 43627 if test "x$GCC" != "xyes"; then
a848cd7e
SC
43628 LDFLAGS="$LDFLAGS -L/usr/lib"
43629
43630 SHARED_LD_CC="${CC} -b -o"
43631 SHARED_LD_CXX="${CXX} -b -o"
43632 PIC_FLAG="+Z"
43633 fi
43634 ;;
43635
43636 *-*-linux* )
43637 if test "x$GCC" != "xyes"; then
43638 echo "$as_me:$LINENO: checking for Intel compiler" >&5
43639echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
43640if test "${bakefile_cv_prog_icc+set}" = set; then
43641 echo $ECHO_N "(cached) $ECHO_C" >&6
43642else
43643
43644 cat >conftest.$ac_ext <<_ACEOF
43645/* confdefs.h. */
43646_ACEOF
43647cat confdefs.h >>conftest.$ac_ext
43648cat >>conftest.$ac_ext <<_ACEOF
43649/* end confdefs.h. */
43650
43651int
43652main ()
43653{
43654
43655 #ifndef __INTEL_COMPILER
43656 #error Not icc
43657 #endif
43658
43659 ;
43660 return 0;
43661}
43662_ACEOF
43663rm -f conftest.$ac_objext
43664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43665 (eval $ac_compile) 2>conftest.er1
a848cd7e 43666 ac_status=$?
ac1cb8d3
VS
43667 grep -v '^ *+' conftest.er1 >conftest.err
43668 rm -f conftest.er1
43669 cat conftest.err >&5
a848cd7e
SC
43670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43671 (exit $ac_status); } &&
6ebeb4c7 43672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43674 (eval $ac_try) 2>&5
43675 ac_status=$?
43676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677 (exit $ac_status); }; } &&
43678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43680 (eval $ac_try) 2>&5
43681 ac_status=$?
43682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43683 (exit $ac_status); }; }; then
43684 bakefile_cv_prog_icc=yes
43685else
43686 echo "$as_me: failed program was:" >&5
43687sed 's/^/| /' conftest.$ac_ext >&5
43688
43689bakefile_cv_prog_icc=no
43690
43691fi
ac1cb8d3 43692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43693
43694fi
43695echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
43696echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
43697 if test "$bakefile_cv_prog_icc" = "yes"; then
43698 PIC_FLAG="-KPIC"
43699 fi
43700 fi
43701 ;;
43702
43703 *-*-solaris2* )
43704 if test "x$GCC" != xyes ; then
43705 SHARED_LD_CC="${CC} -G -o"
43706 SHARED_LD_CXX="${CXX} -G -o"
43707 PIC_FLAG="-KPIC"
43708 fi
43709 ;;
43710
43711 *-*-darwin* )
43712
43713 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43714echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
43715if test "${wx_cv_gcc31+set}" = set; then
43716 echo $ECHO_N "(cached) $ECHO_C" >&6
43717else
43718
43719 cat >conftest.$ac_ext <<_ACEOF
43720/* confdefs.h. */
43721_ACEOF
43722cat confdefs.h >>conftest.$ac_ext
43723cat >>conftest.$ac_ext <<_ACEOF
43724/* end confdefs.h. */
43725
43726int
43727main ()
43728{
43729
43730 #if (__GNUC__ < 3) || \
43731 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
43732 #error old gcc
43733 #endif
43734
43735 ;
43736 return 0;
43737}
43738_ACEOF
43739rm -f conftest.$ac_objext
43740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43741 (eval $ac_compile) 2>conftest.er1
a848cd7e 43742 ac_status=$?
ac1cb8d3
VS
43743 grep -v '^ *+' conftest.er1 >conftest.err
43744 rm -f conftest.er1
43745 cat conftest.err >&5
a848cd7e
SC
43746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43747 (exit $ac_status); } &&
6ebeb4c7 43748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43750 (eval $ac_try) 2>&5
43751 ac_status=$?
43752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43753 (exit $ac_status); }; } &&
43754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43756 (eval $ac_try) 2>&5
43757 ac_status=$?
43758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43759 (exit $ac_status); }; }; then
43760
43761 wx_cv_gcc31=yes
43762
43763else
43764 echo "$as_me: failed program was:" >&5
43765sed 's/^/| /' conftest.$ac_ext >&5
43766
43767
43768 wx_cv_gcc31=no
43769
43770
43771fi
ac1cb8d3 43772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43773
43774fi
43775echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
43776echo "${ECHO_T}$wx_cv_gcc31" >&6
43777 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
43778
43779D='$'
43780cat <<EOF >shared-ld-sh
a848cd7e
SC
43781#!/bin/sh
43782#-----------------------------------------------------------------------------
43783#-- Name: distrib/mac/shared-ld-sh
43784#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
43785#-- Author: Gilles Depeyrot
43786#-- Copyright: (c) 2002 Gilles Depeyrot
43787#-- Licence: any use permitted
43788#-----------------------------------------------------------------------------
43789
43790verbose=0
43791args=""
43792objects=""
43793linking_flag="-dynamiclib"
810b94f0 43794ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 43795
473276a9
VS
43796while test ${D}# -gt 0; do
43797 case ${D}1 in
a848cd7e
SC
43798
43799 -v)
43800 verbose=1
43801 ;;
43802
43803 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
43804 # collect these options and values
473276a9 43805 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
43806 shift
43807 ;;
43808
810b94f0
MW
43809 -s|-Wl,*)
43810 # collect these load args
43811 ldargs="${D}{ldargs} ${D}1"
2113bc77 43812 ;;
810b94f0
MW
43813
43814 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 43815 # collect these options
473276a9 43816 args="${D}{args} ${D}1"
a848cd7e
SC
43817 ;;
43818
43819 -dynamiclib|-bundle)
473276a9 43820 linking_flag="${D}1"
a848cd7e
SC
43821 ;;
43822
43823 -*)
473276a9 43824 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
43825 exit 1
43826 ;;
43827
43828 *.o | *.a | *.dylib)
43829 # collect object files
473276a9 43830 objects="${D}{objects} ${D}1"
a848cd7e
SC
43831 ;;
43832
43833 *)
473276a9 43834 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
43835 exit 1
43836 ;;
43837
43838 esac
43839 shift
43840done
43841
810b94f0
MW
43842status=0
43843
a848cd7e
SC
43844#
43845# Link one module containing all the others
43846#
473276a9 43847if test ${D}{verbose} = 1; then
810b94f0 43848 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 43849fi
810b94f0 43850c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 43851status=${D}?
a848cd7e
SC
43852
43853#
810b94f0
MW
43854# Link the shared library from the single module created, but only if the
43855# previous command didn't fail:
a848cd7e 43856#
810b94f0
MW
43857if test ${D}{status} = 0; then
43858 if test ${D}{verbose} = 1; then
43859 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
43860 fi
43861 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
43862 status=${D}?
a848cd7e
SC
43863fi
43864
43865#
43866# Remove intermediate module
43867#
473276a9 43868rm -f master.${D}${D}.o
a848cd7e 43869
810b94f0 43870exit ${D}status
a848cd7e 43871EOF
473276a9 43872
a848cd7e
SC
43873 chmod +x shared-ld-sh
43874
43875 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
43876 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
43877 SHARED_LD_CXX="$SHARED_LD_CC"
43878 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
43879 else
43880 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
43881 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
43882 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
43883 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
43884 fi
43885
47bd5406
VZ
43886 if test "x$GCC" == "xyes"; then
43887 PIC_FLAG="-dynamic -fPIC"
43888 fi
43889 if test "x$XLCC" = "xyes"; then
43890 PIC_FLAG="-dynamic -DPIC"
43891 fi
a848cd7e
SC
43892 ;;
43893
43894 *-*-aix* )
f6b50c59
VZ
43895 if test "x$GCC" = "xyes"; then
43896 PIC_FLAG=""
43897
43898 case "${BAKEFILE_HOST}" in
43899 *-*-aix5* )
43900 LD_EXPFULL="-Wl,-bexpfull"
43901 ;;
43902 esac
43903
7b94a67c
VZ
43904 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
43905 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
0ad5d837 43906 else
f6b50c59 43907 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
43908set dummy makeC++SharedLib; ac_word=$2
43909echo "$as_me:$LINENO: checking for $ac_word" >&5
43910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43911if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
43912 echo $ECHO_N "(cached) $ECHO_C" >&6
43913else
43914 if test -n "$AIX_CXX_LD"; then
43915 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
43916else
43917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43918for as_dir in $PATH
43919do
43920 IFS=$as_save_IFS
43921 test -z "$as_dir" && as_dir=.
43922 for ac_exec_ext in '' $ac_executable_extensions; do
43923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43924 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
43925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43926 break 2
43927 fi
43928done
43929done
43930
43931 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
43932fi
43933fi
43934AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
43935if test -n "$AIX_CXX_LD"; then
43936 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
43937echo "${ECHO_T}$AIX_CXX_LD" >&6
43938else
43939 echo "$as_me:$LINENO: result: no" >&5
43940echo "${ECHO_T}no" >&6
43941fi
43942
f6b50c59 43943 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
43944 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
43945 fi
43946 ;;
43947
43948 *-*-beos* )
1e9e8aba
DE
43949 SHARED_LD_CC="${LD} -nostart -o"
43950 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
43951 ;;
43952
43953 *-*-irix* )
43954 if test "x$GCC" != "xyes"; then
43955 PIC_FLAG="-KPIC"
43956 fi
43957 ;;
43958
43959 *-*-cygwin* | *-*-mingw32* )
43960 PIC_FLAG=""
1e9e8aba
DE
43961 SHARED_LD_CC="\$(CC) -shared -o"
43962 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 43963 WINDOWS_IMPLIB=1
a848cd7e
SC
43964 ;;
43965
43966 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
43967 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43968 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 43969 PIC_FLAG=""
473276a9
VS
43970
43971D='$'
43972cat <<EOF >dllar.sh
43973#!/bin/sh
43974#
43975# dllar - a tool to build both a .dll and an .a file
43976# from a set of object (.o) files for EMX/OS2.
43977#
43978# Written by Andrew Zabolotny, bit@freya.etu.ru
43979# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
43980#
43981# This script will accept a set of files on the command line.
43982# All the public symbols from the .o files will be exported into
43983# a .DEF file, then linker will be run (through gcc) against them to
43984# build a shared library consisting of all given .o files. All libraries
43985# (.a) will be first decompressed into component .o files then act as
43986# described above. You can optionally give a description (-d "description")
43987# which will be put into .DLL. To see the list of accepted options (as well
43988# as command-line format) simply run this program without options. The .DLL
43989# is built to be imported by name (there is no guarantee that new versions
43990# of the library you build will have same ordinals for same symbols).
43991#
43992# dllar is free software; you can redistribute it and/or modify
43993# it under the terms of the GNU General Public License as published by
43994# the Free Software Foundation; either version 2, or (at your option)
43995# any later version.
43996#
43997# dllar is distributed in the hope that it will be useful,
43998# but WITHOUT ANY WARRANTY; without even the implied warranty of
43999# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44000# GNU General Public License for more details.
44001#
44002# You should have received a copy of the GNU General Public License
44003# along with dllar; see the file COPYING. If not, write to the Free
44004# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44005# 02111-1307, USA.
44006
44007# To successfuly run this program you will need:
44008# - Current drive should have LFN support (HPFS, ext2, network, etc)
44009# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44010# - gcc
44011# (used to build the .dll)
44012# - emxexp
44013# (used to create .def file from .o files)
44014# - emximp
44015# (used to create .a file from .def file)
44016# - GNU text utilites (cat, sort, uniq)
44017# used to process emxexp output
44018# - GNU file utilities (mv, rm)
44019# - GNU sed
44020# - lxlite (optional, see flag below)
44021# (used for general .dll cleanup)
44022#
44023
44024flag_USE_LXLITE=1;
44025
44026#
44027# helper functions
44028# basnam, variant of basename, which does _not_ remove the path, _iff_
44029# second argument (suffix to remove) is given
44030basnam(){
44031 case ${D}# in
44032 1)
1e9e8aba 44033 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
44034 ;;
44035 2)
44036 echo ${D}1 | sed 's/'${D}2'${D}//'
44037 ;;
44038 *)
44039 echo "error in basnam ${D}*"
44040 exit 8
44041 ;;
44042 esac
44043}
44044
44045# Cleanup temporary files and output
44046CleanUp() {
44047 cd ${D}curDir
44048 for i in ${D}inputFiles ; do
44049 case ${D}i in
44050 *!)
44051 rm -rf \`basnam ${D}i !\`
44052 ;;
44053 *)
44054 ;;
44055 esac
44056 done
44057
44058 # Kill result in case of failure as there is just to many stupid make/nmake
44059 # things out there which doesn't do this.
1e9e8aba 44060 if [ ${D}# -eq 0 ]; then
473276a9
VS
44061 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44062 fi
44063}
44064
44065# Print usage and exit script with rc=1.
44066PrintHelp() {
b1d22ded
DE
44067 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44068 echo ' [-name-mangler-script script.sh]'
44069 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44070 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
44071 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 44072 echo ' [*.o] [*.a]'
473276a9
VS
44073 echo '*> "output_file" should have no extension.'
44074 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
44075 echo ' The import library name is derived from this and is set to "name".a,'
44076 echo ' unless overridden by -import'
44077 echo '*> "importlib_name" should have no extension.'
44078 echo ' If it has the .o, or .a extension, it is automatically removed.'
44079 echo ' This name is used as the import library name and may be longer and'
44080 echo ' more descriptive than the DLL name which has to follow the old '
44081 echo ' 8.3 convention of FAT.'
b1d22ded
DE
44082 echo '*> "script.sh may be given to override the output_file name by a'
44083 echo ' different name. It is mainly useful if the regular make process'
44084 echo ' of some package does not take into account OS/2 restriction of'
44085 echo ' DLL name lengths. It takes the importlib name as input and is'
44086 echo ' supposed to procude a shorter name as output. The script should'
44087 echo ' expect to get importlib_name without extension and should produce'
44088 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
44089 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
44090 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44091 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
44092 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44093 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
44094 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44095 echo ' If the last character of a symbol is "*", all symbols beginning'
44096 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 44097 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 44098 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 44099 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 44100 echo ' C runtime DLLs.'
b1d22ded 44101 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
44102 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44103 echo ' unchanged to GCC at the end of command line.'
44104 echo '*> If you create a DLL from a library and you do not specify -o,'
44105 echo ' the basename for DLL and import library will be set to library name,'
44106 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
44107 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44108 echo ' library will be renamed into gcc_s.a.'
44109 echo '--------'
44110 echo 'Example:'
44111 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44112 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44113 CleanUp
44114 exit 1
44115}
44116
44117# Execute a command.
44118# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44119# @Uses Whatever CleanUp() uses.
44120doCommand() {
44121 echo "${D}*"
44122 eval ${D}*
44123 rcCmd=${D}?
44124
1e9e8aba 44125 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
44126 echo "command failed, exit code="${D}rcCmd
44127 CleanUp
44128 exit ${D}rcCmd
44129 fi
44130}
44131
44132# main routine
44133# setup globals
44134cmdLine=${D}*
44135outFile=""
44136outimpFile=""
44137inputFiles=""
b1d22ded 44138renameScript=""
473276a9
VS
44139description=""
44140CC=gcc.exe
44141CFLAGS="-s -Zcrtdll"
44142EXTRA_CFLAGS=""
44143EXPORT_BY_ORDINALS=0
44144exclude_symbols=""
44145library_flags=""
44146curDir=\`pwd\`
44147curDirS=curDir
44148case ${D}curDirS in
44149*/)
44150 ;;
44151*)
44152 curDirS=${D}{curDirS}"/"
44153 ;;
44154esac
44155# Parse commandline
44156libsToLink=0
b1d22ded 44157omfLinking=0
1e9e8aba 44158while [ ${D}1 ]; do
473276a9
VS
44159 case ${D}1 in
44160 -ord*)
44161 EXPORT_BY_ORDINALS=1;
44162 ;;
44163 -o*)
44164 shift
44165 outFile=${D}1
44166 ;;
44167 -i*)
44168 shift
44169 outimpFile=${D}1
44170 ;;
b1d22ded
DE
44171 -name-mangler-script)
44172 shift
44173 renameScript=${D}1
44174 ;;
473276a9
VS
44175 -d*)
44176 shift
44177 description=${D}1
44178 ;;
44179 -f*)
44180 shift
44181 CFLAGS=${D}1
44182 ;;
44183 -c*)
44184 shift
44185 CC=${D}1
44186 ;;
44187 -h*)
44188 PrintHelp
44189 ;;
44190 -ex*)
44191 shift
44192 exclude_symbols=${D}{exclude_symbols}${D}1" "
44193 ;;
44194 -libf*)
44195 shift
44196 library_flags=${D}{library_flags}${D}1" "
44197 ;;
44198 -nocrt*)
44199 CFLAGS="-s"
44200 ;;
44201 -nolxl*)
44202 flag_USE_LXLITE=0
44203 ;;
44204 -* | /*)
44205 case ${D}1 in
44206 -L* | -l*)
44207 libsToLink=1
44208 ;;
b1d22ded
DE
44209 -Zomf)
44210 omfLinking=1
44211 ;;
473276a9
VS
44212 *)
44213 ;;
44214 esac
44215 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44216 ;;
b1d22ded
DE
44217 *.dll)
44218 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44219 if [ ${D}omfLinking -eq 1 ]; then
44220 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44221 else
44222 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44223 fi
44224 ;;
473276a9
VS
44225 *)
44226 found=0;
1e9e8aba 44227 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44228 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44229 else
44230 for file in ${D}1 ; do
1e9e8aba 44231 if [ -f ${D}file ]; then
473276a9
VS
44232 inputFiles="${D}{inputFiles} ${D}file"
44233 found=1
44234 fi
44235 done
1e9e8aba 44236 if [ ${D}found -eq 0 ]; then
473276a9
VS
44237 echo "ERROR: No file(s) found: "${D}1
44238 exit 8
44239 fi
44240 fi
44241 ;;
44242 esac
44243 shift
44244done # iterate cmdline words
44245
44246#
1e9e8aba 44247if [ -z "${D}inputFiles" ]; then
473276a9
VS
44248 echo "dllar: no input files"
44249 PrintHelp
44250fi
44251
44252# Now extract all .o files from .a files
44253newInputFiles=""
44254for file in ${D}inputFiles ; do
44255 case ${D}file in
44256 *.a | *.lib)
44257 case ${D}file in
44258 *.a)
44259 suffix=".a"
44260 AR="ar"
44261 ;;
44262 *.lib)
44263 suffix=".lib"
44264 AR="emxomfar"
44265 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44266 ;;
44267 *)
44268 ;;
44269 esac
44270 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44271 mkdir ${D}dirname
1e9e8aba 44272 if [ ${D}? -ne 0 ]; then
473276a9
VS
44273 echo "Failed to create subdirectory ./${D}dirname"
44274 CleanUp
44275 exit 8;
44276 fi
44277 # Append '!' to indicate archive
44278 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44279 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44280 cd ${D}curDir
44281 found=0;
44282 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44283 if [ -f ${D}subfile ]; then
473276a9 44284 found=1
1e9e8aba 44285 if [ -s ${D}subfile ]; then
473276a9
VS
44286 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44287 newInputFiles="${D}newInputFiles ${D}subfile"
44288 fi
44289 fi
44290 done
1e9e8aba
DE
44291 if [ ${D}found -eq 0 ]; then
44292 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
44293 fi
44294 ;;
44295 *)
44296 newInputFiles="${D}{newInputFiles} ${D}file"
44297 ;;
44298 esac
44299done
44300inputFiles="${D}newInputFiles"
44301
44302# Output filename(s).
44303do_backup=0;
1e9e8aba 44304if [ -z ${D}outFile ]; then
473276a9
VS
44305 do_backup=1;
44306 set outFile ${D}inputFiles; outFile=${D}2
44307fi
44308
44309# If it is an archive, remove the '!' and the '_%' suffixes
44310case ${D}outFile in
44311*_%!)
44312 outFile=\`basnam ${D}outFile _%!\`
44313 ;;
44314*)
44315 ;;
44316esac
44317case ${D}outFile in
44318*.dll)
44319 outFile=\`basnam ${D}outFile .dll\`
44320 ;;
44321*.DLL)
44322 outFile=\`basnam ${D}outFile .DLL\`
44323 ;;
44324*.o)
44325 outFile=\`basnam ${D}outFile .o\`
44326 ;;
44327*.obj)
44328 outFile=\`basnam ${D}outFile .obj\`
44329 ;;
44330*.a)
44331 outFile=\`basnam ${D}outFile .a\`
44332 ;;
44333*.lib)
44334 outFile=\`basnam ${D}outFile .lib\`
44335 ;;
44336*)
44337 ;;
44338esac
44339case ${D}outimpFile in
44340*.a)
44341 outimpFile=\`basnam ${D}outimpFile .a\`
44342 ;;
44343*.lib)
44344 outimpFile=\`basnam ${D}outimpFile .lib\`
44345 ;;
44346*)
44347 ;;
44348esac
1e9e8aba 44349if [ -z ${D}outimpFile ]; then
473276a9
VS
44350 outimpFile=${D}outFile
44351fi
44352defFile="${D}{outFile}.def"
44353arcFile="${D}{outimpFile}.a"
44354arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
44355
44356#create ${D}dllFile as something matching 8.3 restrictions,
44357if [ -z ${D}renameScript ] ; then
44358 dllFile="${D}outFile"
44359else
44360 dllFile=\`${D}renameScript ${D}outimpFile\`
44361fi
473276a9 44362
1e9e8aba
DE
44363if [ ${D}do_backup -ne 0 ] ; then
44364 if [ -f ${D}arcFile ] ; then
473276a9
VS
44365 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
44366 fi
1e9e8aba 44367 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
44368 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
44369 fi
44370fi
44371
44372# Extract public symbols from all the object files.
44373tmpdefFile=${D}{defFile}_%
44374rm -f ${D}tmpdefFile
44375for file in ${D}inputFiles ; do
44376 case ${D}file in
44377 *!)
44378 ;;
44379 *)
44380 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
44381 ;;
44382 esac
44383done
44384
44385# Create the def file.
44386rm -f ${D}defFile
44387echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
44388dllFile="${D}{dllFile}.dll"
44389if [ ! -z ${D}description ]; then
1e9e8aba 44390 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
44391fi
44392echo "EXPORTS" >> ${D}defFile
44393
44394doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
44395grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
44396
44397# Checks if the export is ok or not.
44398for word in ${D}exclude_symbols; do
44399 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
44400 mv ${D}{tmpdefFile}% ${D}tmpdefFile
44401done
44402
44403
1e9e8aba
DE
44404if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
44405 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
44406 sed '
44407 N
44408 : loop
1e9e8aba 44409 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
44410 t loop
44411 ' > ${D}{tmpdefFile}%
44412 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
44413else
44414 rm -f ${D}{tmpdefFile}%
44415fi
44416cat ${D}tmpdefFile >> ${D}defFile
44417rm -f ${D}tmpdefFile
44418
44419# Do linking, create implib, and apply lxlite.
44420gccCmdl="";
44421for file in ${D}inputFiles ; do
44422 case ${D}file in
44423 *!)
44424 ;;
44425 *)
44426 gccCmdl="${D}gccCmdl ${D}file"
44427 ;;
44428 esac
44429done
44430doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
44431touch "${D}{outFile}.dll"
44432
44433doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 44434if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 44435 add_flags="";
1e9e8aba 44436 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
44437 add_flags="-ynd"
44438 fi
44439 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
44440fi
44441doCommand "emxomf -s -l ${D}arcFile"
44442
44443# Successful exit.
44444CleanUp 1
44445exit 0
44446EOF
44447
44448 chmod +x dllar.sh
a848cd7e
SC
44449 ;;
44450
1e9e8aba 44451 powerpc-apple-macos* | \
0ad5d837 44452 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
44453 *-*-sunos4* | \
44454 *-*-osf* | \
44455 *-*-dgux5* | \
47a7e797
MW
44456 *-*-sysv5* | \
44457 *-pc-msdosdjgpp )
a848cd7e
SC
44458 ;;
44459
44460 *)
44461 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
44462echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
44463 { (exit 1); exit 1; }; }
44464 esac
44465
2057db16
VS
44466 if test "x$PIC_FLAG" != "x" ; then
44467 PIC_FLAG="$PIC_FLAG -DPIC"
44468 fi
44469
a848cd7e
SC
44470 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
44471 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
44472 fi
44473 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
44474 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
44475 fi
44476
44477
44478
44479
44480
44481
44482
44483
810b94f0 44484
a848cd7e
SC
44485 USE_SOVERSION=0
44486 USE_SOVERLINUX=0
44487 USE_SOVERSOLARIS=0
810b94f0 44488 USE_SOVERCYGWIN=0
a848cd7e
SC
44489 USE_SOSYMLINKS=0
44490 USE_MACVERSION=0
44491 SONAME_FLAG=
44492
44493 case "${BAKEFILE_HOST}" in
0ad5d837 44494 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
44495 SONAME_FLAG="-Wl,-soname,"
44496 USE_SOVERSION=1
44497 USE_SOVERLINUX=1
44498 USE_SOSYMLINKS=1
44499 ;;
44500
a848cd7e
SC
44501 *-*-solaris2* )
44502 SONAME_FLAG="-h "
44503 USE_SOVERSION=1
44504 USE_SOVERSOLARIS=1
44505 USE_SOSYMLINKS=1
44506 ;;
44507
44508 *-*-darwin* )
44509 USE_MACVERSION=1
44510 USE_SOVERSION=1
44511 USE_SOSYMLINKS=1
44512 ;;
810b94f0
MW
44513
44514 *-*-cygwin* )
44515 USE_SOVERSION=1
44516 USE_SOVERCYGWIN=1
44517 ;;
a848cd7e
SC
44518 esac
44519
44520
44521
44522
44523
44524
44525
44526
44527
810b94f0 44528
a848cd7e
SC
44529 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
44530echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 44531 DEPS_TRACKING=1
a848cd7e
SC
44532
44533 if test "x$GCC" = "xyes"; then
44534 DEPSMODE=gcc
a848cd7e 44535 case "${BAKEFILE_HOST}" in
47bd5406 44536 *-*-darwin* )
0ad5d837 44537 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
44538 ;;
44539 * )
0ad5d837 44540 DEPSFLAG="-MMD"
a848cd7e
SC
44541 ;;
44542 esac
44543 echo "$as_me:$LINENO: result: gcc" >&5
44544echo "${ECHO_T}gcc" >&6
b1d22ded 44545 elif test "x$MWCC" = "xyes"; then
81f90336 44546 DEPSMODE=mwcc
0ad5d837 44547 DEPSFLAG="-MM"
b1d22ded
DE
44548 echo "$as_me:$LINENO: result: mwcc" >&5
44549echo "${ECHO_T}mwcc" >&6
a9e5b1f0 44550 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
44551 DEPSMODE=unixcc
44552 DEPSFLAG="-xM1"
44553 echo "$as_me:$LINENO: result: Sun cc" >&5
44554echo "${ECHO_T}Sun cc" >&6
44555 elif test "x$SGICC" = "xyes"; then
44556 DEPSMODE=unixcc
44557 DEPSFLAG="-M"
44558 echo "$as_me:$LINENO: result: SGI cc" >&5
44559echo "${ECHO_T}SGI cc" >&6
a848cd7e 44560 else
0ad5d837 44561 DEPS_TRACKING=0
a848cd7e
SC
44562 echo "$as_me:$LINENO: result: none" >&5
44563echo "${ECHO_T}none" >&6
44564 fi
44565
44566 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
44567
44568D='$'
44569cat <<EOF >bk-deps
a848cd7e
SC
44570#!/bin/sh
44571
44572# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44573# script. It is used to track C/C++ files dependencies in portable way.
44574#
44575# Permission is given to use this file in any way.
44576
473276a9 44577DEPSMODE=${DEPSMODE}
a848cd7e 44578DEPSDIR=.deps
0ad5d837 44579DEPSFLAG="${DEPSFLAG}"
a848cd7e 44580
473276a9 44581mkdir -p ${D}DEPSDIR
a848cd7e 44582
473276a9 44583if test ${D}DEPSMODE = gcc ; then
0ad5d837 44584 ${D}* ${D}{DEPSFLAG}
473276a9
VS
44585 status=${D}?
44586 if test ${D}{status} != 0 ; then
44587 exit ${D}{status}
a848cd7e
SC
44588 fi
44589 # move created file to the location we want it in:
473276a9
VS
44590 while test ${D}# -gt 0; do
44591 case "${D}1" in
a848cd7e
SC
44592 -o )
44593 shift
473276a9 44594 objfile=${D}1
a848cd7e
SC
44595 ;;
44596 -* )
44597 ;;
44598 * )
473276a9 44599 srcfile=${D}1
a848cd7e
SC
44600 ;;
44601 esac
44602 shift
44603 done
1e9e8aba
DE
44604 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
44605 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
44606 if test -f ${D}depfile ; then
44607 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44608 rm -f ${D}depfile
a848cd7e 44609 else
1e9e8aba 44610 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
44611 if test -f ${D}depfile ; then
44612 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44613 rm -f ${D}depfile
a848cd7e
SC
44614 fi
44615 fi
44616 exit 0
81f90336 44617elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 44618 ${D}* || exit ${D}?
81f90336
MW
44619 # Run mwcc again with -MM and redirect into the dep file we want
44620 # NOTE: We can't use shift here because we need ${D}* to be valid
44621 prevarg=
44622 for arg in ${D}* ; do
44623 if test "${D}prevarg" = "-o"; then
44624 objfile=${D}arg
44625 else
44626 case "${D}arg" in
44627 -* )
44628 ;;
44629 * )
44630 srcfile=${D}arg
44631 ;;
44632 esac
44633 fi
44634 prevarg="${D}arg"
44635 done
0ad5d837 44636 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 44637 exit 0
0ad5d837 44638elif test ${D}DEPSMODE = unixcc; then
f6b50c59 44639 ${D}* || exit ${D}?
a9e5b1f0
MW
44640 # Run compiler again with deps flag and redirect into the dep file.
44641 # It doesn't work if the '-o FILE' option is used, but without it the
44642 # dependency file will contain the wrong name for the object. So it is
44643 # removed from the command line, and the dep file is fixed with sed.
44644 cmd=""
44645 while test ${D}# -gt 0; do
44646 case "${D}1" in
44647 -o )
44648 shift
44649 objfile=${D}1
44650 ;;
44651 * )
44652 eval arg${D}#=\\${D}1
44653 cmd="${D}cmd \\${D}arg${D}#"
44654 ;;
44655 esac
44656 shift
44657 done
0ad5d837 44658 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 44659 exit 0
a848cd7e 44660else
473276a9
VS
44661 ${D}*
44662 exit ${D}?
a848cd7e
SC
44663fi
44664EOF
473276a9 44665
a848cd7e
SC
44666 chmod +x bk-deps
44667 fi
44668
44669
44670
44671
44672 RESCOMP=
44673 SETFILE=
44674
44675 case ${BAKEFILE_HOST} in
44676 *-*-cygwin* | *-*-mingw32* )
44677 if test "$build" != "$host" ; then
44678 RESCOMP=$host_alias-windres
44679 else
44680 # Extract the first word of "windres", so it can be a program name with args.
44681set dummy windres; ac_word=$2
44682echo "$as_me:$LINENO: checking for $ac_word" >&5
44683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44684if test "${ac_cv_prog_RESCOMP+set}" = set; then
44685 echo $ECHO_N "(cached) $ECHO_C" >&6
44686else
44687 if test -n "$RESCOMP"; then
44688 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44689else
44690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44691for as_dir in $PATH
44692do
44693 IFS=$as_save_IFS
44694 test -z "$as_dir" && as_dir=.
44695 for ac_exec_ext in '' $ac_executable_extensions; do
44696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44697 ac_cv_prog_RESCOMP="windres"
44698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44699 break 2
44700 fi
44701done
44702done
44703
44704 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
44705fi
44706fi
44707RESCOMP=$ac_cv_prog_RESCOMP
44708if test -n "$RESCOMP"; then
44709 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44710echo "${ECHO_T}$RESCOMP" >&6
44711else
44712 echo "$as_me:$LINENO: result: no" >&5
44713echo "${ECHO_T}no" >&6
44714fi
44715
44716 fi
44717 ;;
44718
1e9e8aba 44719 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
44720 # Extract the first word of "Rez", so it can be a program name with args.
44721set dummy Rez; ac_word=$2
44722echo "$as_me:$LINENO: checking for $ac_word" >&5
44723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44724if test "${ac_cv_prog_RESCOMP+set}" = set; then
44725 echo $ECHO_N "(cached) $ECHO_C" >&6
44726else
44727 if test -n "$RESCOMP"; then
44728 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44729else
44730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44731for as_dir in $PATH
44732do
44733 IFS=$as_save_IFS
44734 test -z "$as_dir" && as_dir=.
44735 for ac_exec_ext in '' $ac_executable_extensions; do
44736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44737 ac_cv_prog_RESCOMP="Rez"
44738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44739 break 2
44740 fi
44741done
44742done
44743
44744 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
44745fi
44746fi
44747RESCOMP=$ac_cv_prog_RESCOMP
44748if test -n "$RESCOMP"; then
44749 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44750echo "${ECHO_T}$RESCOMP" >&6
44751else
44752 echo "$as_me:$LINENO: result: no" >&5
44753echo "${ECHO_T}no" >&6
44754fi
44755
44756 # Extract the first word of "SetFile", so it can be a program name with args.
44757set dummy SetFile; ac_word=$2
44758echo "$as_me:$LINENO: checking for $ac_word" >&5
44759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44760if test "${ac_cv_prog_SETFILE+set}" = set; then
44761 echo $ECHO_N "(cached) $ECHO_C" >&6
44762else
44763 if test -n "$SETFILE"; then
44764 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
44765else
44766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44767for as_dir in $PATH
44768do
44769 IFS=$as_save_IFS
44770 test -z "$as_dir" && as_dir=.
44771 for ac_exec_ext in '' $ac_executable_extensions; do
44772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44773 ac_cv_prog_SETFILE="SetFile"
44774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44775 break 2
44776 fi
44777done
44778done
44779
44780 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
44781fi
44782fi
44783SETFILE=$ac_cv_prog_SETFILE
44784if test -n "$SETFILE"; then
44785 echo "$as_me:$LINENO: result: $SETFILE" >&5
44786echo "${ECHO_T}$SETFILE" >&6
44787else
44788 echo "$as_me:$LINENO: result: no" >&5
44789echo "${ECHO_T}no" >&6
44790fi
44791
44792 ;;
44793 esac
44794
44795
44796
44797
44798
c9469659 44799 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 44800
dcc1b6ad 44801
c9469659 44802BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 44803
646b6ec1 44804
74b84332 44805
a848cd7e
SC
44806 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
44807if test "${enable_precomp_headers+set}" = set; then
44808 enableval="$enable_precomp_headers"
44809 bk_use_pch="$enableval"
44810fi;
44811
44812 GCC_PCH=0
44813
44814 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
44815 if test "x$GCC" = "xyes"; then
44816 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
44817echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
44818 cat >conftest.$ac_ext <<_ACEOF
44819/* confdefs.h. */
44820_ACEOF
44821cat confdefs.h >>conftest.$ac_ext
44822cat >>conftest.$ac_ext <<_ACEOF
44823/* end confdefs.h. */
44824
44825int
44826main ()
44827{
44828
44829 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
44830 #error "no pch support"
44831 #endif
44832 #if (__GNUC__ < 3)
44833 #error "no pch support"
44834 #endif
44835 #if (__GNUC__ == 3) && \
44836 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
44837 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
44838 #error "no pch support"
44839 #endif
44840
44841 ;
44842 return 0;
44843}
44844_ACEOF
44845rm -f conftest.$ac_objext
44846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44847 (eval $ac_compile) 2>conftest.er1
a848cd7e 44848 ac_status=$?
ac1cb8d3
VS
44849 grep -v '^ *+' conftest.er1 >conftest.err
44850 rm -f conftest.er1
44851 cat conftest.err >&5
a848cd7e
SC
44852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44853 (exit $ac_status); } &&
6ebeb4c7 44854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44856 (eval $ac_try) 2>&5
44857 ac_status=$?
44858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44859 (exit $ac_status); }; } &&
44860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44862 (eval $ac_try) 2>&5
44863 ac_status=$?
44864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44865 (exit $ac_status); }; }; then
44866
44867 echo "$as_me:$LINENO: result: yes" >&5
44868echo "${ECHO_T}yes" >&6
a848cd7e
SC
44869 GCC_PCH=1
44870
44871else
44872 echo "$as_me: failed program was:" >&5
44873sed 's/^/| /' conftest.$ac_ext >&5
44874
44875
44876 echo "$as_me:$LINENO: result: no" >&5
44877echo "${ECHO_T}no" >&6
44878
44879fi
ac1cb8d3 44880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44881 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
44882
44883D='$'
44884cat <<EOF >bk-make-pch
a848cd7e
SC
44885#!/bin/sh
44886
44887# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44888# script. It is used to generated precompiled headers.
44889#
44890# Permission is given to use this file in any way.
44891
1e9e8aba
DE
44892outfile="${D}{1}"
44893header="${D}{2}"
a848cd7e
SC
44894shift
44895shift
44896
44897compiler=
44898headerfile=
1e9e8aba
DE
44899while test ${D}{#} -gt 0; do
44900 case "${D}{1}" in
a848cd7e 44901 -I* )
1e9e8aba
DE
44902 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
44903 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
44904 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
44905 fi
44906 ;;
44907 esac
1e9e8aba 44908 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
44909 shift
44910done
44911
1e9e8aba
DE
44912if test "x${D}{headerfile}" = "x" ; then
44913 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 44914else
1e9e8aba
DE
44915 if test -f ${D}{outfile} ; then
44916 rm -f ${D}{outfile}
a848cd7e 44917 else
1e9e8aba 44918 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 44919 fi
1e9e8aba 44920 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
44921 mkdir -p .deps
44922 # can do this because gcc is >= 3.4:
1e9e8aba
DE
44923 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
44924 exit ${D}{?}
a848cd7e
SC
44925fi
44926EOF
1e9e8aba 44927
a848cd7e
SC
44928 chmod +x bk-make-pch
44929 fi
44930 fi
44931 fi
44932
44933
44934
a848cd7e
SC
44935 COND_BUILD_DEBUG="#"
44936 if test "x$BUILD" = "xdebug" ; then
44937 COND_BUILD_DEBUG=""
44938 fi
44939
44940 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
44941 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
44942 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
44943 fi
44944
44945 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
44946 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
44947 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
44948 fi
44949
44950 COND_BUILD_DEBUG_UNICODE_0="#"
44951 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
44952 COND_BUILD_DEBUG_UNICODE_0=""
44953 fi
44954
44955 COND_BUILD_DEBUG_UNICODE_1="#"
44956 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
44957 COND_BUILD_DEBUG_UNICODE_1=""
44958 fi
44959
44960 COND_BUILD_RELEASE="#"
44961 if test "x$BUILD" = "xrelease" ; then
44962 COND_BUILD_RELEASE=""
44963 fi
44964
44965 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
44966 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
44967 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
44968 fi
44969
44970 COND_BUILD_RELEASE_UNICODE_0="#"
44971 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
44972 COND_BUILD_RELEASE_UNICODE_0=""
44973 fi
44974
44975 COND_BUILD_RELEASE_UNICODE_1="#"
44976 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
44977 COND_BUILD_RELEASE_UNICODE_1=""
44978 fi
44979
44980 COND_DEBUG_FLAG_1="#"
44981 if test "x$DEBUG_FLAG" = "x1" ; then
44982 COND_DEBUG_FLAG_1=""
44983 fi
44984
44985 COND_DEBUG_INFO_0="#"
44986 if test "x$DEBUG_INFO" = "x0" ; then
44987 COND_DEBUG_INFO_0=""
44988 fi
44989
44990 COND_DEBUG_INFO_1="#"
44991 if test "x$DEBUG_INFO" = "x1" ; then
44992 COND_DEBUG_INFO_1=""
44993 fi
44994
44995 COND_DEPS_TRACKING_0="#"
44996 if test "x$DEPS_TRACKING" = "x0" ; then
44997 COND_DEPS_TRACKING_0=""
44998 fi
44999
45000 COND_DEPS_TRACKING_1="#"
45001 if test "x$DEPS_TRACKING" = "x1" ; then
45002 COND_DEPS_TRACKING_1=""
45003 fi
45004
45005 COND_GCC_PCH_1="#"
45006 if test "x$GCC_PCH" = "x1" ; then
45007 COND_GCC_PCH_1=""
45008 fi
45009
45010 COND_MONOLITHIC_0="#"
45011 if test "x$MONOLITHIC" = "x0" ; then
45012 COND_MONOLITHIC_0=""
45013 fi
45014
45015 COND_MONOLITHIC_0_SHARED_0="#"
45016 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45017 COND_MONOLITHIC_0_SHARED_0=""
45018 fi
45019
45020 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45021 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45022 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45023 fi
45024
90970d69
DE
45025 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45026 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45027 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45028 fi
45029
a848cd7e
SC
45030 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45031 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45032 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45033 fi
45034
6671c68b
VZ
45035 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45036 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45037 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45038 fi
45039
a848cd7e
SC
45040 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45041 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45042 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45043 fi
45044
ceec2216
RL
45045 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45046 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45047 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45048 fi
45049
a848cd7e
SC
45050 COND_MONOLITHIC_0_SHARED_1="#"
45051 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45052 COND_MONOLITHIC_0_SHARED_1=""
45053 fi
45054
45055 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45056 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45057 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45058 fi
45059
90970d69
DE
45060 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45061 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45062 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45063 fi
45064
a848cd7e
SC
45065 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45066 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45067 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45068 fi
45069
6671c68b
VZ
45070 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45071 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45072 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45073 fi
45074
a848cd7e
SC
45075 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45076 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45077 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45078 fi
45079
ceec2216
RL
45080 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45081 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45082 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45083 fi
45084
a848cd7e
SC
45085 COND_MONOLITHIC_0_USE_ODBC_1="#"
45086 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45087 COND_MONOLITHIC_0_USE_ODBC_1=""
45088 fi
45089
45090 COND_MONOLITHIC_1="#"
45091 if test "x$MONOLITHIC" = "x1" ; then
45092 COND_MONOLITHIC_1=""
45093 fi
45094
45095 COND_MONOLITHIC_1_SHARED_0="#"
45096 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45097 COND_MONOLITHIC_1_SHARED_0=""
45098 fi
45099
45100 COND_MONOLITHIC_1_SHARED_1="#"
45101 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45102 COND_MONOLITHIC_1_SHARED_1=""
45103 fi
45104
45105 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45106 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45107 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45108 fi
45109
45110 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45111 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45112 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45113 fi
45114
eb730a0c
JS
45115 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45116 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45117 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45118 fi
45119
a848cd7e
SC
45120 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45121 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45122 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45123 fi
45124
45125 COND_PLATFORM_MACOSX_1="#"
45126 if test "x$PLATFORM_MACOSX" = "x1" ; then
45127 COND_PLATFORM_MACOSX_1=""
45128 fi
45129
a30f955f
VS
45130 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45131 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45132 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45133 fi
45134
a848cd7e
SC
45135 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45136 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45137 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45138 fi
45139
45140 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45141 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45142 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45143 fi
45144
45145 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45146 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45147 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45148 fi
45149
fc480dc1
DE
45150 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45151 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45152 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45153 fi
45154
1e9e8aba
DE
45155 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45156 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45157 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45158 fi
45159
ebee3cd0
VS
45160 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45161 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45162 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45163 fi
45164
45165 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45166 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45167 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45168 fi
45169
a848cd7e
SC
45170 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45171 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45172 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45173 fi
45174
45175 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45176 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45177 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45178 fi
45179
b48a2016
DE
45180 COND_PLATFORM_MACOS_1="#"
45181 if test "x$PLATFORM_MACOS" = "x1" ; then
45182 COND_PLATFORM_MACOS_1=""
45183 fi
45184
083508af
MW
45185 COND_PLATFORM_MAC_1="#"
45186 if test "x$PLATFORM_MAC" = "x1" ; then
45187 COND_PLATFORM_MAC_1=""
45188 fi
45189
83d8eb47
MW
45190 COND_PLATFORM_MSDOS_1="#"
45191 if test "x$PLATFORM_MSDOS" = "x1" ; then
45192 COND_PLATFORM_MSDOS_1=""
45193 fi
45194
a848cd7e
SC
45195 COND_PLATFORM_OS2_1="#"
45196 if test "x$PLATFORM_OS2" = "x1" ; then
45197 COND_PLATFORM_OS2_1=""
45198 fi
45199
45200 COND_PLATFORM_UNIX_0="#"
45201 if test "x$PLATFORM_UNIX" = "x0" ; then
45202 COND_PLATFORM_UNIX_0=""
45203 fi
45204
45205 COND_PLATFORM_UNIX_1="#"
45206 if test "x$PLATFORM_UNIX" = "x1" ; then
45207 COND_PLATFORM_UNIX_1=""
45208 fi
45209
45210 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45211 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45212 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45213 fi
45214
45215 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45216 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45217 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45218 fi
45219
45220 COND_PLATFORM_WIN32_0="#"
45221 if test "x$PLATFORM_WIN32" = "x0" ; then
45222 COND_PLATFORM_WIN32_0=""
45223 fi
45224
45225 COND_PLATFORM_WIN32_1="#"
45226 if test "x$PLATFORM_WIN32" = "x1" ; then
45227 COND_PLATFORM_WIN32_1=""
45228 fi
45229
45230 COND_SHARED_0="#"
45231 if test "x$SHARED" = "x0" ; then
45232 COND_SHARED_0=""
45233 fi
45234
083508af
MW
45235 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45236 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45237 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45238 fi
45239
45240 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45241 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45242 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45243 fi
45244
45245 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45246 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45247 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45248 fi
45249
a848cd7e
SC
45250 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45251 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45252 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45253 fi
45254
45255 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45256 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45257 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45258 fi
45259
45260 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45261 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45262 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45263 fi
45264
45265 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45266 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45267 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45268 fi
45269
083508af
MW
45270 COND_SHARED_0_USE_XRC_1="#"
45271 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45272 COND_SHARED_0_USE_XRC_1=""
45273 fi
45274
a848cd7e
SC
45275 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45276 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45277 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45278 fi
45279
45280 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45281 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45282 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45283 fi
45284
45285 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45286 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45287 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45288 fi
45289
45290 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45291 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45292 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45293 fi
45294
45295 COND_SHARED_1="#"
45296 if test "x$SHARED" = "x1" ; then
45297 COND_SHARED_1=""
45298 fi
45299
45300 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45301 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45302 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45303 fi
45304
083508af
MW
45305 COND_SHARED_1_USE_XRC_1="#"
45306 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45307 COND_SHARED_1_USE_XRC_1=""
45308 fi
45309
a30f955f
VS
45310 COND_TOOLKIT_="#"
45311 if test "x$TOOLKIT" = "x" ; then
45312 COND_TOOLKIT_=""
45313 fi
45314
a848cd7e
SC
45315 COND_TOOLKIT_COCOA="#"
45316 if test "x$TOOLKIT" = "xCOCOA" ; then
45317 COND_TOOLKIT_COCOA=""
45318 fi
45319
a49baeab
DE
45320 COND_TOOLKIT_COCOA_USE_GUI_1="#"
45321 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
45322 COND_TOOLKIT_COCOA_USE_GUI_1=""
45323 fi
45324
a848cd7e
SC
45325 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
45326 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45327 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
45328 fi
45329
45330 COND_TOOLKIT_GTK="#"
45331 if test "x$TOOLKIT" = "xGTK" ; then
45332 COND_TOOLKIT_GTK=""
45333 fi
45334
45335 COND_TOOLKIT_GTK_USE_GUI_1="#"
45336 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
45337 COND_TOOLKIT_GTK_USE_GUI_1=""
45338 fi
45339
45340 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
45341 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45342 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
45343 fi
45344
45345 COND_TOOLKIT_MAC="#"
45346 if test "x$TOOLKIT" = "xMAC" ; then
45347 COND_TOOLKIT_MAC=""
45348 fi
45349
45350 COND_TOOLKIT_MAC_USE_GUI_1="#"
45351 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45352 COND_TOOLKIT_MAC_USE_GUI_1=""
45353 fi
45354
45355 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45356 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45357 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45358 fi
45359
45360 COND_TOOLKIT_MGL="#"
45361 if test "x$TOOLKIT" = "xMGL" ; then
45362 COND_TOOLKIT_MGL=""
45363 fi
45364
45365 COND_TOOLKIT_MGL_USE_GUI_1="#"
45366 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
45367 COND_TOOLKIT_MGL_USE_GUI_1=""
45368 fi
45369
45370 COND_TOOLKIT_MOTIF="#"
45371 if test "x$TOOLKIT" = "xMOTIF" ; then
45372 COND_TOOLKIT_MOTIF=""
45373 fi
45374
45375 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
45376 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
45377 COND_TOOLKIT_MOTIF_USE_GUI_1=""
45378 fi
45379
45380 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
45381 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45382 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
45383 fi
45384
45385 COND_TOOLKIT_MSW="#"
45386 if test "x$TOOLKIT" = "xMSW" ; then
45387 COND_TOOLKIT_MSW=""
45388 fi
45389
45390 COND_TOOLKIT_MSW_USE_GUI_1="#"
45391 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
45392 COND_TOOLKIT_MSW_USE_GUI_1=""
45393 fi
45394
45395 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
45396 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45397 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
45398 fi
45399
0ee4059d
DE
45400 COND_TOOLKIT_MSW_WXUNIV_0="#"
45401 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45402 COND_TOOLKIT_MSW_WXUNIV_0=""
45403 fi
45404
a848cd7e
SC
45405 COND_TOOLKIT_PM="#"
45406 if test "x$TOOLKIT" = "xPM" ; then
45407 COND_TOOLKIT_PM=""
45408 fi
45409
45410 COND_TOOLKIT_PM_USE_GUI_1="#"
45411 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
45412 COND_TOOLKIT_PM_USE_GUI_1=""
45413 fi
45414
45415 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
45416 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45417 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
45418 fi
45419
3fd9c298
DE
45420 COND_TOOLKIT_WINCE="#"
45421 if test "x$TOOLKIT" = "xWINCE" ; then
45422 COND_TOOLKIT_WINCE=""
45423 fi
45424
45425 COND_TOOLKIT_WINCE_USE_GUI_1="#"
45426 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
45427 COND_TOOLKIT_WINCE_USE_GUI_1=""
45428 fi
45429
45430 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
45431 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45432 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
45433 fi
45434
0ee4059d
DE
45435 COND_TOOLKIT_WINCE_WXUNIV_0="#"
45436 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
45437 COND_TOOLKIT_WINCE_WXUNIV_0=""
45438 fi
45439
a848cd7e
SC
45440 COND_TOOLKIT_X11="#"
45441 if test "x$TOOLKIT" = "xX11" ; then
45442 COND_TOOLKIT_X11=""
45443 fi
45444
45445 COND_TOOLKIT_X11_USE_GUI_1="#"
45446 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
45447 COND_TOOLKIT_X11_USE_GUI_1=""
45448 fi
45449
45450 COND_UNICODE_1="#"
45451 if test "x$UNICODE" = "x1" ; then
45452 COND_UNICODE_1=""
45453 fi
45454
45455 COND_USE_EXCEPTIONS_0="#"
45456 if test "x$USE_EXCEPTIONS" = "x0" ; then
45457 COND_USE_EXCEPTIONS_0=""
45458 fi
45459
45460 COND_USE_EXCEPTIONS_1="#"
45461 if test "x$USE_EXCEPTIONS" = "x1" ; then
45462 COND_USE_EXCEPTIONS_1=""
45463 fi
45464
45465 COND_USE_GUI_0="#"
45466 if test "x$USE_GUI" = "x0" ; then
45467 COND_USE_GUI_0=""
45468 fi
45469
45470 COND_USE_GUI_1="#"
45471 if test "x$USE_GUI" = "x1" ; then
45472 COND_USE_GUI_1=""
45473 fi
45474
45475 COND_USE_GUI_1_WXUNIV_0="#"
45476 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45477 COND_USE_GUI_1_WXUNIV_0=""
45478 fi
45479
45480 COND_USE_GUI_1_WXUNIV_1="#"
45481 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
45482 COND_USE_GUI_1_WXUNIV_1=""
45483 fi
45484
45485 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45486 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45487 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45488 fi
45489
45490 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45491 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45492 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45493 fi
45494
45495 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45496 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45497 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45498 fi
45499
083508af
MW
45500 COND_USE_ODBC_1="#"
45501 if test "x$USE_ODBC" = "x1" ; then
45502 COND_USE_ODBC_1=""
45503 fi
45504
45505 COND_USE_OPENGL_1="#"
45506 if test "x$USE_OPENGL" = "x1" ; then
45507 COND_USE_OPENGL_1=""
45508 fi
45509
a848cd7e
SC
45510 COND_USE_PLUGINS_0="#"
45511 if test "x$USE_PLUGINS" = "x0" ; then
45512 COND_USE_PLUGINS_0=""
45513 fi
45514
0b78747f
MW
45515 COND_USE_RTTI_0="#"
45516 if test "x$USE_RTTI" = "x0" ; then
45517 COND_USE_RTTI_0=""
45518 fi
45519
45520 COND_USE_RTTI_1="#"
45521 if test "x$USE_RTTI" = "x1" ; then
45522 COND_USE_RTTI_1=""
45523 fi
45524
a848cd7e
SC
45525 COND_USE_SOSYMLINKS_1="#"
45526 if test "x$USE_SOSYMLINKS" = "x1" ; then
45527 COND_USE_SOSYMLINKS_1=""
45528 fi
45529
eb730a0c
JS
45530 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
45531 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45532 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
45533 fi
45534
a848cd7e
SC
45535 COND_USE_SOVERLINUX_1="#"
45536 if test "x$USE_SOVERLINUX" = "x1" ; then
45537 COND_USE_SOVERLINUX_1=""
45538 fi
45539
45540 COND_USE_SOVERSION_0="#"
45541 if test "x$USE_SOVERSION" = "x0" ; then
45542 COND_USE_SOVERSION_0=""
45543 fi
45544
45545 COND_USE_SOVERSOLARIS_1="#"
45546 if test "x$USE_SOVERSOLARIS" = "x1" ; then
45547 COND_USE_SOVERSOLARIS_1=""
45548 fi
45549
0b78747f
MW
45550 COND_USE_THREADS_0="#"
45551 if test "x$USE_THREADS" = "x0" ; then
45552 COND_USE_THREADS_0=""
45553 fi
45554
45555 COND_USE_THREADS_1="#"
45556 if test "x$USE_THREADS" = "x1" ; then
45557 COND_USE_THREADS_1=""
45558 fi
45559
a13a7f89
RL
45560 COND_USE_XRC_1="#"
45561 if test "x$USE_XRC" = "x1" ; then
45562 COND_USE_XRC_1=""
45563 fi
45564
eb730a0c
JS
45565 COND_WINDOWS_IMPLIB_1="#"
45566 if test "x$WINDOWS_IMPLIB" = "x1" ; then
45567 COND_WINDOWS_IMPLIB_1=""
45568 fi
45569
a848cd7e
SC
45570 COND_WITH_PLUGIN_SDL_1="#"
45571 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
45572 COND_WITH_PLUGIN_SDL_1=""
45573 fi
45574
1e6eb025
VZ
45575 COND_WXUNIV_0="#"
45576 if test "x$WXUNIV" = "x0" ; then
45577 COND_WXUNIV_0=""
45578 fi
45579
a848cd7e
SC
45580 COND_WXUNIV_1="#"
45581 if test "x$WXUNIV" = "x1" ; then
45582 COND_WXUNIV_1=""
45583 fi
45584
45585 COND_WXUSE_EXPAT_BUILTIN="#"
45586 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
45587 COND_WXUSE_EXPAT_BUILTIN=""
45588 fi
45589
45590 COND_WXUSE_LIBJPEG_BUILTIN="#"
45591 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45592 COND_WXUSE_LIBJPEG_BUILTIN=""
45593 fi
45594
45595 COND_WXUSE_LIBPNG_BUILTIN="#"
45596 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45597 COND_WXUSE_LIBPNG_BUILTIN=""
45598 fi
45599
45600 COND_WXUSE_LIBTIFF_BUILTIN="#"
45601 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45602 COND_WXUSE_LIBTIFF_BUILTIN=""
45603 fi
45604
45605 COND_WXUSE_ODBC_BUILTIN="#"
45606 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
45607 COND_WXUSE_ODBC_BUILTIN=""
45608 fi
45609
45610 COND_WXUSE_REGEX_BUILTIN="#"
45611 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
45612 COND_WXUSE_REGEX_BUILTIN=""
45613 fi
45614
45615 COND_WXUSE_ZLIB_BUILTIN="#"
45616 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
45617 COND_WXUSE_ZLIB_BUILTIN=""
45618 fi
45619
45620
45621
810b94f0
MW
45622 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
45623 { { 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
45624echo "$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;}
45625 { (exit 1); exit 1; }; }
45626 fi
45627
2057db16
VS
45628 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
45629 { { 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
45630echo "$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;}
45631 { (exit 1); exit 1; }; }
45632 fi
45633
a848cd7e 45634
ceec2216
RL
45635if test "$wxUSE_SHARED" = "yes"; then
45636
45637 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
45638 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
45639
5b674b9d
DE
45640 case "${host}" in
45641 *-pc-os2_emx | *-pc-os2-emx )
45642 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45643 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45644 cp -p ${srcdir}/src/os2/dllnames.sh .
45645 cp -p ${srcdir}/src/os2/dllar.sh .
45646 ;;
45647 esac
ceec2216
RL
45648else
45649
45650 EXE_LINKER="$CXX -o"
45651
45652fi
69120ee4
VZ
45653if test "$wxUSE_OMF" = "yes"; then
45654 case "${host}" in
45655 *-pc-os2_emx | *-pc-os2-emx )
45656 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
45657 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45658 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45659 ;;
45660 esac
45661fi
a848cd7e 45662
c08ebc62 45663if test $GCC_PCH = 1 ; then
254e8e29 45664 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 45665fi
a848cd7e
SC
45666
45667
45668SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
45669
45670
45671
45672
45673
45674
45675
45676
45677
45678
45679
45680
45681
45682
45683
45684
45685
45686
45687
45688
45689
45690
45691
45692
45693
45694
45695
45696
45697
45698
45699
45700
45701
45702
45703
45704
45705
45706
45707
45708
45709
45710
a848cd7e
SC
45711
45712
45713
45714
45715
45716
45717
45718
45719
45720
45721
45722
45723
45724
45725
45726
45727
45728
ddd14b14 45729
a848cd7e
SC
45730
45731
45732echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45733echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45734set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45735if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45736 echo $ECHO_N "(cached) $ECHO_C" >&6
45737else
45738 cat >conftest.make <<\_ACEOF
45739all:
45740 @echo 'ac_maketemp="$(MAKE)"'
45741_ACEOF
45742# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45743eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45744if test -n "$ac_maketemp"; then
45745 eval ac_cv_prog_make_${ac_make}_set=yes
45746else
45747 eval ac_cv_prog_make_${ac_make}_set=no
45748fi
45749rm -f conftest.make
45750fi
45751if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45752 echo "$as_me:$LINENO: result: yes" >&5
45753echo "${ECHO_T}yes" >&6
45754 SET_MAKE=
45755else
45756 echo "$as_me:$LINENO: result: no" >&5
45757echo "${ECHO_T}no" >&6
45758 SET_MAKE="MAKE=${MAKE-make}"
45759fi
45760
45761
a848cd7e 45762
ceec2216
RL
45763 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
45764
a848cd7e 45765
ceec2216 45766 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 45767
a848cd7e 45768
ceec2216 45769 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 45770
ceec2216
RL
45771
45772 ac_config_files="$ac_config_files version-script Makefile"
45773
45774
45775 ac_config_commands="$ac_config_commands wx-config
45776 "
a848cd7e
SC
45777
45778
9103d280
RL
45779
45780
a848cd7e
SC
45781if test "$wxUSE_GUI" = "yes"; then
45782 SUBDIRS="samples demos utils contrib"
45783else SUBDIRS="samples utils"
45784fi
45785
45786
45787
45788# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
45789if test "${with_cppunit_prefix+set}" = set; then
45790 withval="$with_cppunit_prefix"
45791 cppunit_config_prefix="$withval"
45792else
45793 cppunit_config_prefix=""
45794fi;
45795
45796# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
45797if test "${with_cppunit_exec_prefix+set}" = set; then
45798 withval="$with_cppunit_exec_prefix"
45799 cppunit_config_exec_prefix="$withval"
45800else
45801 cppunit_config_exec_prefix=""
45802fi;
45803
45804 if test x$cppunit_config_exec_prefix != x ; then
45805 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
45806 if test x${CPPUNIT_CONFIG+set} != xset ; then
45807 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
45808 fi
45809 fi
45810 if test x$cppunit_config_prefix != x ; then
45811 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
45812 if test x${CPPUNIT_CONFIG+set} != xset ; then
45813 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
45814 fi
45815 fi
45816
45817 # Extract the first word of "cppunit-config", so it can be a program name with args.
45818set dummy cppunit-config; ac_word=$2
45819echo "$as_me:$LINENO: checking for $ac_word" >&5
45820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45821if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
45822 echo $ECHO_N "(cached) $ECHO_C" >&6
45823else
45824 case $CPPUNIT_CONFIG in
45825 [\\/]* | ?:[\\/]*)
45826 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
45827 ;;
45828 *)
45829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45830for as_dir in $PATH
45831do
45832 IFS=$as_save_IFS
45833 test -z "$as_dir" && as_dir=.
45834 for ac_exec_ext in '' $ac_executable_extensions; do
45835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45836 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45838 break 2
45839 fi
45840done
45841done
45842
45843 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
45844 ;;
45845esac
45846fi
45847CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
45848
45849if test -n "$CPPUNIT_CONFIG"; then
45850 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
45851echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
45852else
45853 echo "$as_me:$LINENO: result: no" >&5
45854echo "${ECHO_T}no" >&6
45855fi
45856
45857 cppunit_version_min=1.8.0
45858
45859 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
45860echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
45861 no_cppunit=""
45862 if test "$CPPUNIT_CONFIG" = "no" ; then
45863 no_cppunit=yes
45864 else
45865 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
45866 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
45867 cppunit_version=`$CPPUNIT_CONFIG --version`
45868
45869 cppunit_major_version=`echo $cppunit_version | \
45870 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45871 cppunit_minor_version=`echo $cppunit_version | \
45872 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45873 cppunit_micro_version=`echo $cppunit_version | \
45874 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45875
45876 cppunit_major_min=`echo $cppunit_version_min | \
45877 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45878 cppunit_minor_min=`echo $cppunit_version_min | \
45879 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45880 cppunit_micro_min=`echo $cppunit_version_min | \
45881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45882
45883 cppunit_version_proper=`expr \
45884 $cppunit_major_version \> $cppunit_major_min \| \
45885 $cppunit_major_version \= $cppunit_major_min \& \
45886 $cppunit_minor_version \> $cppunit_minor_min \| \
45887 $cppunit_major_version \= $cppunit_major_min \& \
45888 $cppunit_minor_version \= $cppunit_minor_min \& \
45889 $cppunit_micro_version \>= $cppunit_micro_min `
45890
45891 if test "$cppunit_version_proper" = "1" ; then
45892 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
45893echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
45894 else
45895 echo "$as_me:$LINENO: result: no" >&5
45896echo "${ECHO_T}no" >&6
45897 no_cppunit=yes
45898 fi
45899 fi
45900
45901 if test "x$no_cppunit" = x ; then
c2218763 45902 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
45903 else
45904 CPPUNIT_CFLAGS=""
45905 CPPUNIT_LIBS=""
c2218763 45906 :
a848cd7e
SC
45907 fi
45908
45909
45910
45911
45912
45913for subdir in `echo $SUBDIRS`; do
45914 if test -d ${srcdir}/${subdir} ; then
45915 if test "$wxUSE_GUI" = "yes"; then
45916 if test ${subdir} = "samples"; then
45917 makefiles="samples/Makefile.in $makefiles"
45918 for sample in `echo $SAMPLES_SUBDIRS`; do
45919 if test -d $srcdir/samples/$sample; then
45920 makefiles="samples/$sample/Makefile.in $makefiles"
45921 fi
45922 done
9c112555
MW
45923 else
45924 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
45925 eval "disabled=\$$disabled_var"
45926 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
45927 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
45928 fi
45929 else if test ${subdir} = "samples"; then
45930 makefiles="samples/Makefile.in samples/console/Makefile.in"
45931 elif test ${subdir} = "utils"; then
6537ccf8
VS
45932 makefiles=""
45933 for util in HelpGen tex2rtf ; do
45934 if test -d $srcdir/utils/$util ; then
45935 makefiles="utils/$util/Makefile.in \
45936 utils/$util/src/Makefile.in \
45937 $makefiles"
45938 fi
45939 done
a848cd7e
SC
45940 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
45941 fi
45942 fi
45943
45944 for mkin in $makefiles ; do
45945 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
45946 ac_config_files="$ac_config_files $mk"
45947
45948 done
45949 fi
45950done
45951
45952
45953cat >confcache <<\_ACEOF
45954# This file is a shell script that caches the results of configure
45955# tests run on this system so they can be shared between configure
45956# scripts and configure runs, see configure's option --config-cache.
45957# It is not useful on other systems. If it contains results you don't
45958# want to keep, you may remove or edit it.
45959#
45960# config.status only pays attention to the cache file if you give it
45961# the --recheck option to rerun configure.
45962#
45963# `ac_cv_env_foo' variables (set or unset) will be overridden when
45964# loading this file, other *unset* `ac_cv_foo' will be assigned the
45965# following values.
45966
45967_ACEOF
45968
45969# The following way of writing the cache mishandles newlines in values,
45970# but we know of no workaround that is simple, portable, and efficient.
45971# So, don't put newlines in cache variables' values.
45972# Ultrix sh set writes to stderr and can't be redirected directly,
45973# and sets the high bit in the cache file unless we assign to the vars.
45974{
45975 (set) 2>&1 |
45976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
45977 *ac_space=\ *)
45978 # `set' does not quote correctly, so add quotes (double-quote
45979 # substitution turns \\\\ into \\, and sed turns \\ into \).
45980 sed -n \
ac1cb8d3
VS
45981 "s/'/'\\\\''/g;
45982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
45983 ;;
45984 *)
45985 # `set' quotes correctly as required by POSIX, so do not add quotes.
45986 sed -n \
ac1cb8d3 45987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
45988 ;;
45989 esac;
45990} |
45991 sed '
45992 t clear
45993 : clear
45994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45995 t end
45996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45997 : end' >>confcache
45998if diff $cache_file confcache >/dev/null 2>&1; then :; else
45999 if test -w $cache_file; then
46000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46001 cat confcache >$cache_file
46002 else
46003 echo "not updating unwritable cache $cache_file"
46004 fi
46005fi
46006rm -f confcache
46007
46008test "x$prefix" = xNONE && prefix=$ac_default_prefix
46009# Let make expand exec_prefix.
46010test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46011
46012# VPATH may cause trouble with some makes, so we remove $(srcdir),
46013# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46014# trailing colons and then remove the whole line if VPATH becomes empty
46015# (actually we leave an empty line to preserve line numbers).
46016if test "x$srcdir" = x.; then
ac1cb8d3 46017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
46018s/:*\$(srcdir):*/:/;
46019s/:*\${srcdir}:*/:/;
46020s/:*@srcdir@:*/:/;
ac1cb8d3 46021s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 46022s/:*$//;
ac1cb8d3 46023s/^[^=]*=[ ]*$//;
a848cd7e
SC
46024}'
46025fi
46026
46027DEFS=-DHAVE_CONFIG_H
46028
46029ac_libobjs=
46030ac_ltlibobjs=
46031for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46032 # 1. Remove the extension, and $U if already installed.
46033 ac_i=`echo "$ac_i" |
ac1cb8d3 46034 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
46035 # 2. Add them.
46036 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46037 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46038done
46039LIBOBJS=$ac_libobjs
46040
46041LTLIBOBJS=$ac_ltlibobjs
46042
46043
46044
46045: ${CONFIG_STATUS=./config.status}
46046ac_clean_files_save=$ac_clean_files
46047ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46048{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46049echo "$as_me: creating $CONFIG_STATUS" >&6;}
46050cat >$CONFIG_STATUS <<_ACEOF
46051#! $SHELL
46052# Generated by $as_me.
46053# Run this file to recreate the current configuration.
46054# Compiler output produced by configure, useful for debugging
46055# configure, is in config.log if it exists.
46056
46057debug=false
46058ac_cs_recheck=false
46059ac_cs_silent=false
46060SHELL=\${CONFIG_SHELL-$SHELL}
46061_ACEOF
46062
46063cat >>$CONFIG_STATUS <<\_ACEOF
46064## --------------------- ##
46065## M4sh Initialization. ##
46066## --------------------- ##
46067
46068# Be Bourne compatible
46069if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46070 emulate sh
46071 NULLCMD=:
46072 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46073 # is contrary to our usage. Disable this feature.
46074 alias -g '${1+"$@"}'='"$@"'
46075elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46076 set -o posix
46077fi
ac1cb8d3 46078DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
46079
46080# Support unset when possible.
ac1cb8d3 46081if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
46082 as_unset=unset
46083else
46084 as_unset=false
46085fi
46086
46087
46088# Work around bugs in pre-3.0 UWIN ksh.
46089$as_unset ENV MAIL MAILPATH
46090PS1='$ '
46091PS2='> '
46092PS4='+ '
46093
46094# NLS nuisances.
46095for as_var in \
46096 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46097 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46098 LC_TELEPHONE LC_TIME
46099do
ac1cb8d3 46100 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
46101 eval $as_var=C; export $as_var
46102 else
46103 $as_unset $as_var
46104 fi
46105done
46106
46107# Required to use basename.
46108if expr a : '\(a\)' >/dev/null 2>&1; then
46109 as_expr=expr
46110else
46111 as_expr=false
46112fi
46113
46114if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46115 as_basename=basename
46116else
46117 as_basename=false
46118fi
46119
46120
46121# Name of the executable.
46122as_me=`$as_basename "$0" ||
46123$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46124 X"$0" : 'X\(//\)$' \| \
46125 X"$0" : 'X\(/\)$' \| \
46126 . : '\(.\)' 2>/dev/null ||
46127echo X/"$0" |
46128 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46129 /^X\/\(\/\/\)$/{ s//\1/; q; }
46130 /^X\/\(\/\).*/{ s//\1/; q; }
46131 s/.*/./; q'`
46132
46133
46134# PATH needs CR, and LINENO needs CR and PATH.
46135# Avoid depending upon Character Ranges.
46136as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46137as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46138as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46139as_cr_digits='0123456789'
46140as_cr_alnum=$as_cr_Letters$as_cr_digits
46141
46142# The user is always right.
46143if test "${PATH_SEPARATOR+set}" != set; then
46144 echo "#! /bin/sh" >conf$$.sh
46145 echo "exit 0" >>conf$$.sh
46146 chmod +x conf$$.sh
46147 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46148 PATH_SEPARATOR=';'
46149 else
46150 PATH_SEPARATOR=:
46151 fi
46152 rm -f conf$$.sh
46153fi
46154
46155
46156 as_lineno_1=$LINENO
46157 as_lineno_2=$LINENO
46158 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46159 test "x$as_lineno_1" != "x$as_lineno_2" &&
46160 test "x$as_lineno_3" = "x$as_lineno_2" || {
46161 # Find who we are. Look in the path if we contain no path at all
46162 # relative or not.
46163 case $0 in
46164 *[\\/]* ) as_myself=$0 ;;
46165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46166for as_dir in $PATH
46167do
46168 IFS=$as_save_IFS
46169 test -z "$as_dir" && as_dir=.
46170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46171done
46172
46173 ;;
46174 esac
46175 # We did not find ourselves, most probably we were run as `sh COMMAND'
46176 # in which case we are not to be found in the path.
46177 if test "x$as_myself" = x; then
46178 as_myself=$0
46179 fi
46180 if test ! -f "$as_myself"; then
46181 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46182echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46183 { (exit 1); exit 1; }; }
46184 fi
46185 case $CONFIG_SHELL in
46186 '')
46187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46189do
46190 IFS=$as_save_IFS
46191 test -z "$as_dir" && as_dir=.
46192 for as_base in sh bash ksh sh5; do
46193 case $as_dir in
46194 /*)
46195 if ("$as_dir/$as_base" -c '
46196 as_lineno_1=$LINENO
46197 as_lineno_2=$LINENO
46198 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46199 test "x$as_lineno_1" != "x$as_lineno_2" &&
46200 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46201 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46202 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46203 CONFIG_SHELL=$as_dir/$as_base
46204 export CONFIG_SHELL
46205 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46206 fi;;
46207 esac
46208 done
46209done
46210;;
46211 esac
46212
46213 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46214 # uniformly replaced by the line number. The first 'sed' inserts a
46215 # line-number line before each line; the second 'sed' does the real
46216 # work. The second script uses 'N' to pair each line-number line
46217 # with the numbered line, and appends trailing '-' during
46218 # substitution so that $LINENO is not a special case at line end.
46219 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46220 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46221 sed '=' <$as_myself |
46222 sed '
46223 N
46224 s,$,-,
46225 : loop
46226 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46227 t loop
46228 s,-$,,
46229 s,^['$as_cr_digits']*\n,,
46230 ' >$as_me.lineno &&
46231 chmod +x $as_me.lineno ||
46232 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46233echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46234 { (exit 1); exit 1; }; }
46235
46236 # Don't try to exec as it changes $[0], causing all sort of problems
46237 # (the dirname of $[0] is not the place where we might find the
46238 # original and so on. Autoconf is especially sensible to this).
46239 . ./$as_me.lineno
46240 # Exit status is that of the last command.
46241 exit
46242}
46243
46244
46245case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46246 *c*,-n*) ECHO_N= ECHO_C='
46247' ECHO_T=' ' ;;
46248 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46249 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46250esac
46251
46252if expr a : '\(a\)' >/dev/null 2>&1; then
46253 as_expr=expr
46254else
46255 as_expr=false
46256fi
46257
46258rm -f conf$$ conf$$.exe conf$$.file
46259echo >conf$$.file
46260if ln -s conf$$.file conf$$ 2>/dev/null; then
46261 # We could just check for DJGPP; but this test a) works b) is more generic
46262 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46263 if test -f conf$$.exe; then
46264 # Don't use ln at all; we don't have any links
46265 as_ln_s='cp -p'
46266 else
46267 as_ln_s='ln -s'
46268 fi
46269elif ln conf$$.file conf$$ 2>/dev/null; then
46270 as_ln_s=ln
46271else
46272 as_ln_s='cp -p'
46273fi
46274rm -f conf$$ conf$$.exe conf$$.file
46275
46276if mkdir -p . 2>/dev/null; then
46277 as_mkdir_p=:
46278else
ac1cb8d3 46279 test -d ./-p && rmdir ./-p
a848cd7e
SC
46280 as_mkdir_p=false
46281fi
46282
46283as_executable_p="test -f"
46284
46285# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 46286as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46287
46288# Sed expression to map a string onto a valid variable name.
ac1cb8d3 46289as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46290
46291
46292# IFS
46293# We need space, tab and new line, in precisely that order.
46294as_nl='
46295'
46296IFS=" $as_nl"
46297
46298# CDPATH.
46299$as_unset CDPATH
46300
46301exec 6>&1
46302
46303# Open the log real soon, to keep \$[0] and so on meaningful, and to
46304# report actual input values of CONFIG_FILES etc. instead of their
46305# values after options handling. Logging --version etc. is OK.
46306exec 5>>config.log
46307{
46308 echo
46309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46310## Running $as_me. ##
46311_ASBOX
46312} >&5
46313cat >&5 <<_CSEOF
46314
eb730a0c 46315This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 46316generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
46317
46318 CONFIG_FILES = $CONFIG_FILES
46319 CONFIG_HEADERS = $CONFIG_HEADERS
46320 CONFIG_LINKS = $CONFIG_LINKS
46321 CONFIG_COMMANDS = $CONFIG_COMMANDS
46322 $ $0 $@
46323
46324_CSEOF
46325echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46326echo >&5
46327_ACEOF
46328
46329# Files that config.status was made for.
46330if test -n "$ac_config_files"; then
46331 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46332fi
46333
46334if test -n "$ac_config_headers"; then
46335 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46336fi
46337
46338if test -n "$ac_config_links"; then
46339 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46340fi
46341
46342if test -n "$ac_config_commands"; then
46343 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46344fi
46345
46346cat >>$CONFIG_STATUS <<\_ACEOF
46347
46348ac_cs_usage="\
46349\`$as_me' instantiates files from templates according to the
46350current configuration.
46351
46352Usage: $0 [OPTIONS] [FILE]...
46353
46354 -h, --help print this help, then exit
46355 -V, --version print version number, then exit
46356 -q, --quiet do not print progress messages
46357 -d, --debug don't remove temporary files
46358 --recheck update $as_me by reconfiguring in the same conditions
46359 --file=FILE[:TEMPLATE]
ac1cb8d3 46360 instantiate the configuration file FILE
a848cd7e 46361 --header=FILE[:TEMPLATE]
ac1cb8d3 46362 instantiate the configuration header FILE
a848cd7e
SC
46363
46364Configuration files:
46365$config_files
46366
46367Configuration headers:
46368$config_headers
46369
46370Configuration commands:
46371$config_commands
46372
46373Report bugs to <bug-autoconf@gnu.org>."
46374_ACEOF
46375
46376cat >>$CONFIG_STATUS <<_ACEOF
46377ac_cs_version="\\
eb730a0c 46378wxWidgets config.status 2.6.2
ac1cb8d3 46379configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
46380 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
46381
ac1cb8d3 46382Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
46383This config.status script is free software; the Free Software Foundation
46384gives unlimited permission to copy, distribute and modify it."
46385srcdir=$srcdir
46386INSTALL="$INSTALL"
46387_ACEOF
46388
46389cat >>$CONFIG_STATUS <<\_ACEOF
46390# If no file are specified by the user, then we need to provide default
46391# value. By we need to know if files were specified by the user.
46392ac_need_defaults=:
46393while test $# != 0
46394do
46395 case $1 in
46396 --*=*)
46397 ac_option=`expr "x$1" : 'x\([^=]*\)='`
46398 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
46399 ac_shift=:
46400 ;;
46401 -*)
46402 ac_option=$1
46403 ac_optarg=$2
46404 ac_shift=shift
46405 ;;
46406 *) # This is not an option, so the user has probably given explicit
46407 # arguments.
46408 ac_option=$1
46409 ac_need_defaults=false;;
46410 esac
46411
46412 case $ac_option in
46413 # Handling of the options.
46414_ACEOF
46415cat >>$CONFIG_STATUS <<\_ACEOF
46416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46417 ac_cs_recheck=: ;;
46418 --version | --vers* | -V )
46419 echo "$ac_cs_version"; exit 0 ;;
46420 --he | --h)
46421 # Conflict between --help and --header
46422 { { echo "$as_me:$LINENO: error: ambiguous option: $1
46423Try \`$0 --help' for more information." >&5
46424echo "$as_me: error: ambiguous option: $1
46425Try \`$0 --help' for more information." >&2;}
46426 { (exit 1); exit 1; }; };;
46427 --help | --hel | -h )
46428 echo "$ac_cs_usage"; exit 0 ;;
46429 --debug | --d* | -d )
46430 debug=: ;;
46431 --file | --fil | --fi | --f )
46432 $ac_shift
46433 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46434 ac_need_defaults=false;;
46435 --header | --heade | --head | --hea )
46436 $ac_shift
46437 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46438 ac_need_defaults=false;;
46439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46441 ac_cs_silent=: ;;
46442
46443 # This is an error.
46444 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46445Try \`$0 --help' for more information." >&5
46446echo "$as_me: error: unrecognized option: $1
46447Try \`$0 --help' for more information." >&2;}
46448 { (exit 1); exit 1; }; } ;;
46449
46450 *) ac_config_targets="$ac_config_targets $1" ;;
46451
46452 esac
46453 shift
46454done
46455
46456ac_configure_extra_args=
46457
46458if $ac_cs_silent; then
46459 exec 6>/dev/null
46460 ac_configure_extra_args="$ac_configure_extra_args --silent"
46461fi
46462
46463_ACEOF
46464cat >>$CONFIG_STATUS <<_ACEOF
46465if \$ac_cs_recheck; then
46466 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46467 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46468fi
46469
46470_ACEOF
46471
46472cat >>$CONFIG_STATUS <<_ACEOF
46473#
46474# INIT-COMMANDS section.
46475#
46476
ceec2216
RL
46477 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46478 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46479 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46480 LN_S="${LN_S}"
a848cd7e
SC
46481
46482
46483_ACEOF
46484
46485
46486
46487cat >>$CONFIG_STATUS <<\_ACEOF
46488for ac_config_target in $ac_config_targets
46489do
46490 case "$ac_config_target" in
46491 # Handling of arguments.
ceec2216
RL
46492 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
46493 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
46494 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
46495 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46496 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
46497 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
46498 "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
46499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46500echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46501 { (exit 1); exit 1; }; };;
46502 esac
46503done
46504
46505# If the user did not use the arguments to specify the items to instantiate,
46506# then the envvar interface is used. Set only those that are not.
46507# We use the long form for the default assignment because of an extremely
46508# bizarre bug on SunOS 4.1.3.
46509if $ac_need_defaults; then
46510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46513fi
46514
46515# Have a temporary directory for convenience. Make it in the build tree
46516# simply because there is no reason to put it here, and in addition,
46517# creating and moving files from /tmp can sometimes cause problems.
46518# Create a temporary directory, and hook for its removal unless debugging.
46519$debug ||
46520{
46521 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46522 trap '{ (exit 1); exit 1; }' 1 2 13 15
46523}
46524
46525# Create a (secure) tmp directory for tmp files.
46526
46527{
46528 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46529 test -n "$tmp" && test -d "$tmp"
46530} ||
46531{
46532 tmp=./confstat$$-$RANDOM
46533 (umask 077 && mkdir $tmp)
46534} ||
46535{
46536 echo "$me: cannot create a temporary directory in ." >&2
46537 { (exit 1); exit 1; }
46538}
46539
46540_ACEOF
46541
46542cat >>$CONFIG_STATUS <<_ACEOF
46543
46544#
46545# CONFIG_FILES section.
46546#
46547
46548# No need to generate the scripts if there are no CONFIG_FILES.
46549# This happens for instance when ./config.status config.h
46550if test -n "\$CONFIG_FILES"; then
46551 # Protect against being on the right side of a sed subst in config.status.
46552 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46553 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46554s,@SHELL@,$SHELL,;t t
46555s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46556s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46557s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46558s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46559s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46560s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46561s,@exec_prefix@,$exec_prefix,;t t
46562s,@prefix@,$prefix,;t t
46563s,@program_transform_name@,$program_transform_name,;t t
46564s,@bindir@,$bindir,;t t
46565s,@sbindir@,$sbindir,;t t
46566s,@libexecdir@,$libexecdir,;t t
46567s,@datadir@,$datadir,;t t
46568s,@sysconfdir@,$sysconfdir,;t t
46569s,@sharedstatedir@,$sharedstatedir,;t t
46570s,@localstatedir@,$localstatedir,;t t
46571s,@libdir@,$libdir,;t t
46572s,@includedir@,$includedir,;t t
46573s,@oldincludedir@,$oldincludedir,;t t
46574s,@infodir@,$infodir,;t t
46575s,@mandir@,$mandir,;t t
46576s,@build_alias@,$build_alias,;t t
46577s,@host_alias@,$host_alias,;t t
46578s,@target_alias@,$target_alias,;t t
46579s,@DEFS@,$DEFS,;t t
46580s,@ECHO_C@,$ECHO_C,;t t
46581s,@ECHO_N@,$ECHO_N,;t t
46582s,@ECHO_T@,$ECHO_T,;t t
46583s,@LIBS@,$LIBS,;t t
46584s,@build@,$build,;t t
46585s,@build_cpu@,$build_cpu,;t t
46586s,@build_vendor@,$build_vendor,;t t
46587s,@build_os@,$build_os,;t t
46588s,@host@,$host,;t t
46589s,@host_cpu@,$host_cpu,;t t
46590s,@host_vendor@,$host_vendor,;t t
46591s,@host_os@,$host_os,;t t
46592s,@target@,$target,;t t
46593s,@target_cpu@,$target_cpu,;t t
46594s,@target_vendor@,$target_vendor,;t t
46595s,@target_os@,$target_os,;t t
46596s,@CC@,$CC,;t t
46597s,@CFLAGS@,$CFLAGS,;t t
46598s,@LDFLAGS@,$LDFLAGS,;t t
46599s,@CPPFLAGS@,$CPPFLAGS,;t t
46600s,@ac_ct_CC@,$ac_ct_CC,;t t
46601s,@EXEEXT@,$EXEEXT,;t t
46602s,@OBJEXT@,$OBJEXT,;t t
46603s,@CPP@,$CPP,;t t
46604s,@EGREP@,$EGREP,;t t
46605s,@CXX@,$CXX,;t t
46606s,@CXXFLAGS@,$CXXFLAGS,;t t
46607s,@ac_ct_CXX@,$ac_ct_CXX,;t t
46608s,@RANLIB@,$RANLIB,;t t
46609s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46610s,@AR@,$AR,;t t
8c80d384 46611s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
46612s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46613s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46614s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46615s,@STRIP@,$STRIP,;t t
8c80d384
DE
46616s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
46617s,@RESCOMP@,$RESCOMP,;t t
46618s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
46619s,@DLLTOOL@,$DLLTOOL,;t t
46620s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
46621s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
46622s,@LN_S@,$LN_S,;t t
46623s,@CXXCPP@,$CXXCPP,;t t
46624s,@subdirs@,$subdirs,;t t
46625s,@PKG_CONFIG@,$PKG_CONFIG,;t t
46626s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
46627s,@GTK_LIBS@,$GTK_LIBS,;t t
46628s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
46629s,@X_CFLAGS@,$X_CFLAGS,;t t
46630s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
46631s,@X_LIBS@,$X_LIBS,;t t
46632s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
46633s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
46634s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
46635s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
46636s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
46637s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
46638s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
46639s,@DEREZ@,$DEREZ,;t t
46640s,@SETFILE@,$SETFILE,;t t
46641s,@LIBICONV@,$LIBICONV,;t t
46642s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
46643s,@SDL_CONFIG@,$SDL_CONFIG,;t t
46644s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
46645s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
46646s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
46647s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
46648s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
46649s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
46650s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
46651s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
46652s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
46653s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
46654s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
46655s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
46656s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
46657s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
46658s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
46659s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
46660s,@VENDOR@,$VENDOR,;t t
46661s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
46662s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
46663s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
46664s,@WXUNIV@,$WXUNIV,;t t
46665s,@MONOLITHIC@,$MONOLITHIC,;t t
46666s,@USE_PLUGINS@,$USE_PLUGINS,;t t
46667s,@EXTRALIBS@,$EXTRALIBS,;t t
46668s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
46669s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
46670s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
46671s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
46672s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
46673s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
46674s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 46675s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
46676s,@UNICODE@,$UNICODE,;t t
46677s,@BUILD@,$BUILD,;t t
46678s,@DEBUG_INFO@,$DEBUG_INFO,;t t
46679s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
46680s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
46681s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
46682s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
46683s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
46684s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
46685s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
46686s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
46687s,@SET_MAKE@,$SET_MAKE,;t t
46688s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
46689s,@NM@,$NM,;t t
46690s,@ac_ct_NM@,$ac_ct_NM,;t t
46691s,@INSTALL_DIR@,$INSTALL_DIR,;t t
46692s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
46693s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
46694s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
46695s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
46696s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 46697s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
46698s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
46699s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 46700s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
46701s,@SO_SUFFIX@,$SO_SUFFIX,;t t
46702s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
46703s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
46704s,@LIBPREFIX@,$LIBPREFIX,;t t
46705s,@LIBEXT@,$LIBEXT,;t t
46706s,@DLLPREFIX@,$DLLPREFIX,;t t
46707s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 46708s,@dlldir@,$dlldir,;t t
a848cd7e
SC
46709s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
46710s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
46711s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
46712s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
46713s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
46714s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 46715s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
46716s,@USE_SOVERSION@,$USE_SOVERSION,;t t
46717s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
46718s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 46719s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
46720s,@USE_MACVERSION@,$USE_MACVERSION,;t t
46721s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
46722s,@SONAME_FLAG@,$SONAME_FLAG,;t t
46723s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
46724s,@GCC_PCH@,$GCC_PCH,;t t
46725s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
46726s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
46727s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
46728s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
46729s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
46730s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
46731s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
46732s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
46733s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
46734s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
46735s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
46736s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
46737s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
46738s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
46739s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
46740s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
46741s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
46742s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 46743s,@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 46744s,@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 46745s,@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 46746s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 46747s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46748s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
46749s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 46750s,@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 46751s,@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 46752s,@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 46753s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 46754s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
46755s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
46756s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
46757s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
46758s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
46759s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
46760s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 46761s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
46762s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
46763s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 46764s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
46765s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
46766s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
46767s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 46768s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 46769s,@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
46770s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
46771s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
46772s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
46773s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 46774s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 46775s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 46776s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
46777s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
46778s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
46779s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
46780s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
46781s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
46782s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
46783s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
46784s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
46785s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
46786s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
46787s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
46788s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
46789s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46790s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46791s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 46792s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46793s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
46794s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
46795s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
46796s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
46797s,@COND_SHARED_1@,$COND_SHARED_1,;t t
46798s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 46799s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 46800s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 46801s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 46802s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
46803s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
46804s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
46805s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
46806s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
46807s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
46808s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
46809s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
46810s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
46811s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
46812s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
46813s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
46814s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
46815s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
46816s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
46817s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 46818s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
46819s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
46820s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
46821s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
46822s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
46823s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
46824s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 46825s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
46826s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
46827s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
46828s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
46829s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
46830s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
46831s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
46832s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
46833s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
46834s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
46835s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46836s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46837s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
46838s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
46839s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 46840s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
46841s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
46842s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 46843s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 46844s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
46845s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
46846s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
46847s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
46848s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
46849s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 46850s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 46851s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 46852s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 46853s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
46854s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
46855s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
46856s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
46857s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
46858s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
46859s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
46860s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
46861s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 46862s,@SHARED@,$SHARED,;t t
a848cd7e
SC
46863s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
46864s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
46865s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
46866s,@USE_GUI@,$USE_GUI,;t t
46867s,@AFMINSTALL@,$AFMINSTALL,;t t
46868s,@WIN32INSTALL@,$WIN32INSTALL,;t t
46869s,@TOOLKIT@,$TOOLKIT,;t t
46870s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 46871s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 46872s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
46873s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
46874s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 46875s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
46876s,@WIDGET_SET@,$WIDGET_SET,;t t
46877s,@WX_RELEASE@,$WX_RELEASE,;t t
46878s,@WX_VERSION@,$WX_VERSION,;t t
46879s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
46880s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
46881s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 46882s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
46883s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
46884s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
46885s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
46886s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 46887s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
46888s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
46889s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 46890s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 46891s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
46892s,@DISTDIR@,$DISTDIR,;t t
46893s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
46894s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
46895s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
46896s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
46897s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
46898s,@RESFLAGS@,$RESFLAGS,;t t
46899s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
46900s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
46901s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
46902s,@LIBWXMACRES@,$LIBWXMACRES,;t t
46903s,@MACRESCOMP@,$MACRESCOMP,;t t
46904s,@MACSETFILE@,$MACSETFILE,;t t
46905s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
46906s,@GCC@,$GCC,;t t
a848cd7e
SC
46907s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
46908s,@LIBOBJS@,$LIBOBJS,;t t
46909s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46910CEOF
46911
46912_ACEOF
46913
46914 cat >>$CONFIG_STATUS <<\_ACEOF
46915 # Split the substitutions into bite-sized pieces for seds with
46916 # small command number limits, like on Digital OSF/1 and HP-UX.
46917 ac_max_sed_lines=48
46918 ac_sed_frag=1 # Number of current file.
46919 ac_beg=1 # First line for current file.
46920 ac_end=$ac_max_sed_lines # Line after last line for current file.
46921 ac_more_lines=:
46922 ac_sed_cmds=
46923 while $ac_more_lines; do
46924 if test $ac_beg -gt 1; then
46925 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46926 else
46927 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46928 fi
46929 if test ! -s $tmp/subs.frag; then
46930 ac_more_lines=false
46931 else
46932 # The purpose of the label and of the branching condition is to
46933 # speed up the sed processing (if there are no `@' at all, there
46934 # is no need to browse any of the substitutions).
46935 # These are the two extra sed commands mentioned above.
46936 (echo ':t
46937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46938 if test -z "$ac_sed_cmds"; then
ac1cb8d3 46939 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 46940 else
ac1cb8d3 46941 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
46942 fi
46943 ac_sed_frag=`expr $ac_sed_frag + 1`
46944 ac_beg=$ac_end
46945 ac_end=`expr $ac_end + $ac_max_sed_lines`
46946 fi
46947 done
46948 if test -z "$ac_sed_cmds"; then
46949 ac_sed_cmds=cat
46950 fi
46951fi # test -n "$CONFIG_FILES"
46952
46953_ACEOF
46954cat >>$CONFIG_STATUS <<\_ACEOF
46955for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46957 case $ac_file in
46958 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46959 cat >$tmp/stdin
46960 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46962 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46964 * ) ac_file_in=$ac_file.in ;;
46965 esac
46966
46967 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46968 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46969$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46970 X"$ac_file" : 'X\(//\)[^/]' \| \
46971 X"$ac_file" : 'X\(//\)$' \| \
46972 X"$ac_file" : 'X\(/\)' \| \
46973 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46974echo X"$ac_file" |
46975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46977 /^X\(\/\/\)$/{ s//\1/; q; }
46978 /^X\(\/\).*/{ s//\1/; q; }
46979 s/.*/./; q'`
46980 { if $as_mkdir_p; then
46981 mkdir -p "$ac_dir"
46982 else
46983 as_dir="$ac_dir"
46984 as_dirs=
46985 while test ! -d "$as_dir"; do
46986 as_dirs="$as_dir $as_dirs"
46987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46989 X"$as_dir" : 'X\(//\)[^/]' \| \
46990 X"$as_dir" : 'X\(//\)$' \| \
46991 X"$as_dir" : 'X\(/\)' \| \
46992 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46993echo X"$as_dir" |
46994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46996 /^X\(\/\/\)$/{ s//\1/; q; }
46997 /^X\(\/\).*/{ s//\1/; q; }
46998 s/.*/./; q'`
46999 done
47000 test ! -n "$as_dirs" || mkdir $as_dirs
47001 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47002echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47003 { (exit 1); exit 1; }; }; }
47004
47005 ac_builddir=.
47006
47007if test "$ac_dir" != .; then
47008 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47009 # A "../" for each directory in $ac_dir_suffix.
47010 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47011else
47012 ac_dir_suffix= ac_top_builddir=
47013fi
47014
47015case $srcdir in
47016 .) # No --srcdir option. We are building in place.
47017 ac_srcdir=.
47018 if test -z "$ac_top_builddir"; then
47019 ac_top_srcdir=.
47020 else
47021 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47022 fi ;;
47023 [\\/]* | ?:[\\/]* ) # Absolute path.
47024 ac_srcdir=$srcdir$ac_dir_suffix;
47025 ac_top_srcdir=$srcdir ;;
47026 *) # Relative path.
47027 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47028 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47029esac
ac1cb8d3
VS
47030
47031# Do not use `cd foo && pwd` to compute absolute paths, because
47032# the directories may not exist.
47033case `pwd` in
47034.) ac_abs_builddir="$ac_dir";;
47035*)
47036 case "$ac_dir" in
47037 .) ac_abs_builddir=`pwd`;;
47038 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47039 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47040 esac;;
47041esac
47042case $ac_abs_builddir in
47043.) ac_abs_top_builddir=${ac_top_builddir}.;;
47044*)
47045 case ${ac_top_builddir}. in
47046 .) ac_abs_top_builddir=$ac_abs_builddir;;
47047 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47048 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47049 esac;;
47050esac
47051case $ac_abs_builddir in
47052.) ac_abs_srcdir=$ac_srcdir;;
47053*)
47054 case $ac_srcdir in
47055 .) ac_abs_srcdir=$ac_abs_builddir;;
47056 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47057 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47058 esac;;
47059esac
47060case $ac_abs_builddir in
47061.) ac_abs_top_srcdir=$ac_top_srcdir;;
47062*)
47063 case $ac_top_srcdir in
47064 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47065 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47066 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47067 esac;;
47068esac
a848cd7e
SC
47069
47070
47071 case $INSTALL in
47072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47073 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47074 esac
47075
a848cd7e
SC
47076 # Let's still pretend it is `configure' which instantiates (i.e., don't
47077 # use $as_me), people would be surprised to read:
47078 # /* config.h. Generated by config.status. */
47079 if test x"$ac_file" = x-; then
47080 configure_input=
47081 else
47082 configure_input="$ac_file. "
47083 fi
47084 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 47085 sed 's,.*/,,'` by configure."
a848cd7e
SC
47086
47087 # First look for the input files in the build tree, otherwise in the
47088 # src tree.
47089 ac_file_inputs=`IFS=:
47090 for f in $ac_file_in; do
47091 case $f in
47092 -) echo $tmp/stdin ;;
47093 [\\/$]*)
ac1cb8d3
VS
47094 # Absolute (can't be DOS-style, as IFS=:)
47095 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47096echo "$as_me: error: cannot find input file: $f" >&2;}
47097 { (exit 1); exit 1; }; }
ac1cb8d3 47098 echo "$f";;
a848cd7e 47099 *) # Relative
ac1cb8d3
VS
47100 if test -f "$f"; then
47101 # Build tree
47102 echo "$f"
47103 elif test -f "$srcdir/$f"; then
47104 # Source tree
47105 echo "$srcdir/$f"
47106 else
47107 # /dev/null tree
47108 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47109echo "$as_me: error: cannot find input file: $f" >&2;}
47110 { (exit 1); exit 1; }; }
ac1cb8d3 47111 fi;;
a848cd7e
SC
47112 esac
47113 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
47114
47115 if test x"$ac_file" != x-; then
47116 { echo "$as_me:$LINENO: creating $ac_file" >&5
47117echo "$as_me: creating $ac_file" >&6;}
47118 rm -f "$ac_file"
47119 fi
a848cd7e
SC
47120_ACEOF
47121cat >>$CONFIG_STATUS <<_ACEOF
47122 sed "$ac_vpsub
47123$extrasub
47124_ACEOF
47125cat >>$CONFIG_STATUS <<\_ACEOF
47126:t
47127/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47128s,@configure_input@,$configure_input,;t t
47129s,@srcdir@,$ac_srcdir,;t t
47130s,@abs_srcdir@,$ac_abs_srcdir,;t t
47131s,@top_srcdir@,$ac_top_srcdir,;t t
47132s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47133s,@builddir@,$ac_builddir,;t t
47134s,@abs_builddir@,$ac_abs_builddir,;t t
47135s,@top_builddir@,$ac_top_builddir,;t t
47136s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47137s,@INSTALL@,$ac_INSTALL,;t t
47138" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47139 rm -f $tmp/stdin
47140 if test x"$ac_file" != x-; then
47141 mv $tmp/out $ac_file
47142 else
47143 cat $tmp/out
47144 rm -f $tmp/out
47145 fi
47146
ceec2216
RL
47147 # Run the commands associated with the file.
47148 case $ac_file in
47149 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47150 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47151 esac
a848cd7e
SC
47152done
47153_ACEOF
47154cat >>$CONFIG_STATUS <<\_ACEOF
47155
47156#
47157# CONFIG_HEADER section.
47158#
47159
47160# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47161# NAME is the cpp macro being defined and VALUE is the value it is being given.
47162#
47163# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47164ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47165ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47166ac_dC=' '
47167ac_dD=',;t'
47168# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47169ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47170ac_uB='$,\1#\2define\3'
47171ac_uC=' '
47172ac_uD=',;t'
47173
47174for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47176 case $ac_file in
47177 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47178 cat >$tmp/stdin
47179 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47181 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47183 * ) ac_file_in=$ac_file.in ;;
47184 esac
47185
47186 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47187echo "$as_me: creating $ac_file" >&6;}
47188
47189 # First look for the input files in the build tree, otherwise in the
47190 # src tree.
47191 ac_file_inputs=`IFS=:
47192 for f in $ac_file_in; do
47193 case $f in
47194 -) echo $tmp/stdin ;;
47195 [\\/$]*)
ac1cb8d3
VS
47196 # Absolute (can't be DOS-style, as IFS=:)
47197 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47198echo "$as_me: error: cannot find input file: $f" >&2;}
47199 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47200 # Do quote $f, to prevent DOS paths from being IFS'd.
47201 echo "$f";;
a848cd7e 47202 *) # Relative
ac1cb8d3
VS
47203 if test -f "$f"; then
47204 # Build tree
47205 echo "$f"
47206 elif test -f "$srcdir/$f"; then
47207 # Source tree
47208 echo "$srcdir/$f"
47209 else
47210 # /dev/null tree
47211 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47212echo "$as_me: error: cannot find input file: $f" >&2;}
47213 { (exit 1); exit 1; }; }
ac1cb8d3 47214 fi;;
a848cd7e
SC
47215 esac
47216 done` || { (exit 1); exit 1; }
47217 # Remove the trailing spaces.
ac1cb8d3 47218 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47219
47220_ACEOF
47221
47222# Transform confdefs.h into two sed scripts, `conftest.defines' and
47223# `conftest.undefs', that substitutes the proper values into
47224# config.h.in to produce config.h. The first handles `#define'
47225# templates, and the second `#undef' templates.
47226# And first: Protect against being on the right side of a sed subst in
47227# config.status. Protect against being in an unquoted here document
47228# in config.status.
47229rm -f conftest.defines conftest.undefs
47230# Using a here document instead of a string reduces the quoting nightmare.
47231# Putting comments in sed scripts is not portable.
47232#
47233# `end' is used to avoid that the second main sed command (meant for
47234# 0-ary CPP macros) applies to n-ary macro definitions.
47235# See the Autoconf documentation for `clear'.
47236cat >confdef2sed.sed <<\_ACEOF
47237s/[\\&,]/\\&/g
47238s,[\\$`],\\&,g
47239t clear
47240: clear
ac1cb8d3 47241s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47242t end
ac1cb8d3 47243s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47244: end
47245_ACEOF
47246# If some macros were called several times there might be several times
47247# the same #defines, which is useless. Nevertheless, we may not want to
47248# sort them, since we want the *last* AC-DEFINE to be honored.
47249uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47250sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47251rm -f confdef2sed.sed
47252
47253# This sed command replaces #undef with comments. This is necessary, for
47254# example, in the case of _POSIX_SOURCE, which is predefined and required
47255# on some systems where configure will not decide to define it.
47256cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47257s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47258_ACEOF
47259
47260# Break up conftest.defines because some shells have a limit on the size
47261# of here documents, and old seds have small limits too (100 cmds).
47262echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47263echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
47264echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47265echo ' :' >>$CONFIG_STATUS
47266rm -f conftest.tail
47267while grep . conftest.defines >/dev/null
47268do
47269 # Write a limited-size here document to $tmp/defines.sed.
47270 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47271 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 47272 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
47273 # Work around the forget-to-reset-the-flag bug.
47274 echo 't clr' >>$CONFIG_STATUS
47275 echo ': clr' >>$CONFIG_STATUS
47276 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47277 echo 'CEOF
47278 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47279 rm -f $tmp/in
47280 mv $tmp/out $tmp/in
47281' >>$CONFIG_STATUS
47282 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47283 rm -f conftest.defines
47284 mv conftest.tail conftest.defines
47285done
47286rm -f conftest.defines
47287echo ' fi # grep' >>$CONFIG_STATUS
47288echo >>$CONFIG_STATUS
47289
47290# Break up conftest.undefs because some shells have a limit on the size
47291# of here documents, and old seds have small limits too (100 cmds).
47292echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47293rm -f conftest.tail
47294while grep . conftest.undefs >/dev/null
47295do
47296 # Write a limited-size here document to $tmp/undefs.sed.
47297 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47298 # Speed up: don't consider the non `#undef'
ac1cb8d3 47299 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
47300 # Work around the forget-to-reset-the-flag bug.
47301 echo 't clr' >>$CONFIG_STATUS
47302 echo ': clr' >>$CONFIG_STATUS
47303 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47304 echo 'CEOF
47305 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47306 rm -f $tmp/in
47307 mv $tmp/out $tmp/in
47308' >>$CONFIG_STATUS
47309 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47310 rm -f conftest.undefs
47311 mv conftest.tail conftest.undefs
47312done
47313rm -f conftest.undefs
47314
47315cat >>$CONFIG_STATUS <<\_ACEOF
47316 # Let's still pretend it is `configure' which instantiates (i.e., don't
47317 # use $as_me), people would be surprised to read:
47318 # /* config.h. Generated by config.status. */
47319 if test x"$ac_file" = x-; then
47320 echo "/* Generated by configure. */" >$tmp/config.h
47321 else
47322 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47323 fi
47324 cat $tmp/in >>$tmp/config.h
47325 rm -f $tmp/in
47326 if test x"$ac_file" != x-; then
47327 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47328 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47329echo "$as_me: $ac_file is unchanged" >&6;}
47330 else
47331 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47333 X"$ac_file" : 'X\(//\)[^/]' \| \
47334 X"$ac_file" : 'X\(//\)$' \| \
47335 X"$ac_file" : 'X\(/\)' \| \
47336 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47337echo X"$ac_file" |
47338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47340 /^X\(\/\/\)$/{ s//\1/; q; }
47341 /^X\(\/\).*/{ s//\1/; q; }
47342 s/.*/./; q'`
47343 { if $as_mkdir_p; then
47344 mkdir -p "$ac_dir"
47345 else
47346 as_dir="$ac_dir"
47347 as_dirs=
47348 while test ! -d "$as_dir"; do
47349 as_dirs="$as_dir $as_dirs"
47350 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47352 X"$as_dir" : 'X\(//\)[^/]' \| \
47353 X"$as_dir" : 'X\(//\)$' \| \
47354 X"$as_dir" : 'X\(/\)' \| \
47355 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47356echo X"$as_dir" |
47357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47359 /^X\(\/\/\)$/{ s//\1/; q; }
47360 /^X\(\/\).*/{ s//\1/; q; }
47361 s/.*/./; q'`
47362 done
47363 test ! -n "$as_dirs" || mkdir $as_dirs
47364 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47365echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47366 { (exit 1); exit 1; }; }; }
47367
47368 rm -f $ac_file
47369 mv $tmp/config.h $ac_file
47370 fi
47371 else
47372 cat $tmp/config.h
47373 rm -f $tmp/config.h
47374 fi
47375done
47376_ACEOF
47377cat >>$CONFIG_STATUS <<\_ACEOF
47378
47379#
47380# CONFIG_COMMANDS section.
47381#
47382for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
47383 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
47384 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
47385 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
47386$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47387 X"$ac_dest" : 'X\(//\)[^/]' \| \
47388 X"$ac_dest" : 'X\(//\)$' \| \
47389 X"$ac_dest" : 'X\(/\)' \| \
47390 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47391echo X"$ac_dest" |
47392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47394 /^X\(\/\/\)$/{ s//\1/; q; }
47395 /^X\(\/\).*/{ s//\1/; q; }
47396 s/.*/./; q'`
ac1cb8d3
VS
47397 { if $as_mkdir_p; then
47398 mkdir -p "$ac_dir"
47399 else
47400 as_dir="$ac_dir"
47401 as_dirs=
47402 while test ! -d "$as_dir"; do
47403 as_dirs="$as_dir $as_dirs"
47404 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47406 X"$as_dir" : 'X\(//\)[^/]' \| \
47407 X"$as_dir" : 'X\(//\)$' \| \
47408 X"$as_dir" : 'X\(/\)' \| \
47409 . : '\(.\)' 2>/dev/null ||
47410echo X"$as_dir" |
47411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47413 /^X\(\/\/\)$/{ s//\1/; q; }
47414 /^X\(\/\).*/{ s//\1/; q; }
47415 s/.*/./; q'`
47416 done
47417 test ! -n "$as_dirs" || mkdir $as_dirs
47418 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47419echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47420 { (exit 1); exit 1; }; }; }
47421
a848cd7e
SC
47422 ac_builddir=.
47423
47424if test "$ac_dir" != .; then
47425 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47426 # A "../" for each directory in $ac_dir_suffix.
47427 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47428else
47429 ac_dir_suffix= ac_top_builddir=
47430fi
47431
47432case $srcdir in
47433 .) # No --srcdir option. We are building in place.
47434 ac_srcdir=.
47435 if test -z "$ac_top_builddir"; then
47436 ac_top_srcdir=.
47437 else
47438 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47439 fi ;;
47440 [\\/]* | ?:[\\/]* ) # Absolute path.
47441 ac_srcdir=$srcdir$ac_dir_suffix;
47442 ac_top_srcdir=$srcdir ;;
47443 *) # Relative path.
47444 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47445 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47446esac
ac1cb8d3
VS
47447
47448# Do not use `cd foo && pwd` to compute absolute paths, because
47449# the directories may not exist.
47450case `pwd` in
47451.) ac_abs_builddir="$ac_dir";;
47452*)
47453 case "$ac_dir" in
47454 .) ac_abs_builddir=`pwd`;;
47455 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47456 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47457 esac;;
47458esac
47459case $ac_abs_builddir in
47460.) ac_abs_top_builddir=${ac_top_builddir}.;;
47461*)
47462 case ${ac_top_builddir}. in
47463 .) ac_abs_top_builddir=$ac_abs_builddir;;
47464 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47465 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47466 esac;;
47467esac
47468case $ac_abs_builddir in
47469.) ac_abs_srcdir=$ac_srcdir;;
47470*)
47471 case $ac_srcdir in
47472 .) ac_abs_srcdir=$ac_abs_builddir;;
47473 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47474 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47475 esac;;
47476esac
47477case $ac_abs_builddir in
47478.) ac_abs_top_srcdir=$ac_top_srcdir;;
47479*)
47480 case $ac_top_srcdir in
47481 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47482 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47483 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47484 esac;;
47485esac
a848cd7e
SC
47486
47487
47488 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
47489echo "$as_me: executing $ac_dest commands" >&6;}
47490 case $ac_dest in
ceec2216
RL
47491 wx-config ) rm -f wx-config
47492 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
47493 ;;
a848cd7e
SC
47494 esac
47495done
47496_ACEOF
47497
47498cat >>$CONFIG_STATUS <<\_ACEOF
47499
47500{ (exit 0); exit 0; }
47501_ACEOF
47502chmod +x $CONFIG_STATUS
47503ac_clean_files=$ac_clean_files_save
47504
47505
47506# configure is writing to config.log, and then calls config.status.
47507# config.status does its own redirection, appending to config.log.
47508# Unfortunately, on DOS this fails, as config.log is still kept open
47509# by configure, so config.status won't be able to write to it; its
47510# output is simply discarded. So we exec the FD to /dev/null,
47511# effectively closing config.log, so it can be properly (re)opened and
47512# appended to by config.status. When coming back to configure, we
47513# need to make the FD available again.
47514if test "$no_create" != yes; then
47515 ac_cs_success=:
47516 ac_config_status_args=
47517 test "$silent" = yes &&
47518 ac_config_status_args="$ac_config_status_args --quiet"
47519 exec 5>/dev/null
47520 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47521 exec 5>>config.log
47522 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47523 # would make configure fail if this is the last instruction.
47524 $ac_cs_success || { (exit 1); exit 1; }
47525fi
47526
47527#
47528# CONFIG_SUBDIRS section.
47529#
47530if test "$no_recursion" != yes; then
47531
47532 # Remove --cache-file and --srcdir arguments so they do not pile up.
47533 ac_sub_configure_args=
47534 ac_prev=
47535 for ac_arg in $ac_configure_args; do
47536 if test -n "$ac_prev"; then
47537 ac_prev=
47538 continue
47539 fi
47540 case $ac_arg in
47541 -cache-file | --cache-file | --cache-fil | --cache-fi \
47542 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
47543 ac_prev=cache_file ;;
47544 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
47545 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
47546 | --c=*)
47547 ;;
47548 --config-cache | -C)
47549 ;;
47550 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
47551 ac_prev=srcdir ;;
47552 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47553 ;;
47554 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
47555 ac_prev=prefix ;;
47556 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47557 ;;
47558 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
47559 esac
47560 done
47561
47562 # Always prepend --prefix to ensure using the same prefix
47563 # in subdir configurations.
47564 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
47565
47566 ac_popdir=`pwd`
47567 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
47568
47569 # Do not complain, so a configure script can configure whichever
47570 # parts of a large source tree are present.
47571 test -d $srcdir/$ac_dir || continue
47572
47573 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
47574echo "$as_me: configuring in $ac_dir" >&6;}
47575 { if $as_mkdir_p; then
47576 mkdir -p "$ac_dir"
47577 else
47578 as_dir="$ac_dir"
47579 as_dirs=
47580 while test ! -d "$as_dir"; do
47581 as_dirs="$as_dir $as_dirs"
47582 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47583$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47584 X"$as_dir" : 'X\(//\)[^/]' \| \
47585 X"$as_dir" : 'X\(//\)$' \| \
47586 X"$as_dir" : 'X\(/\)' \| \
47587 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47588echo X"$as_dir" |
47589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47591 /^X\(\/\/\)$/{ s//\1/; q; }
47592 /^X\(\/\).*/{ s//\1/; q; }
47593 s/.*/./; q'`
47594 done
47595 test ! -n "$as_dirs" || mkdir $as_dirs
47596 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47597echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47598 { (exit 1); exit 1; }; }; }
47599
47600 ac_builddir=.
47601
47602if test "$ac_dir" != .; then
47603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47604 # A "../" for each directory in $ac_dir_suffix.
47605 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47606else
47607 ac_dir_suffix= ac_top_builddir=
47608fi
47609
47610case $srcdir in
47611 .) # No --srcdir option. We are building in place.
47612 ac_srcdir=.
47613 if test -z "$ac_top_builddir"; then
47614 ac_top_srcdir=.
47615 else
47616 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47617 fi ;;
47618 [\\/]* | ?:[\\/]* ) # Absolute path.
47619 ac_srcdir=$srcdir$ac_dir_suffix;
47620 ac_top_srcdir=$srcdir ;;
47621 *) # Relative path.
47622 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47623 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47624esac
ac1cb8d3
VS
47625
47626# Do not use `cd foo && pwd` to compute absolute paths, because
47627# the directories may not exist.
47628case `pwd` in
47629.) ac_abs_builddir="$ac_dir";;
47630*)
47631 case "$ac_dir" in
47632 .) ac_abs_builddir=`pwd`;;
47633 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47634 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47635 esac;;
47636esac
47637case $ac_abs_builddir in
47638.) ac_abs_top_builddir=${ac_top_builddir}.;;
47639*)
47640 case ${ac_top_builddir}. in
47641 .) ac_abs_top_builddir=$ac_abs_builddir;;
47642 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47643 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47644 esac;;
47645esac
47646case $ac_abs_builddir in
47647.) ac_abs_srcdir=$ac_srcdir;;
47648*)
47649 case $ac_srcdir in
47650 .) ac_abs_srcdir=$ac_abs_builddir;;
47651 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47652 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47653 esac;;
47654esac
47655case $ac_abs_builddir in
47656.) ac_abs_top_srcdir=$ac_top_srcdir;;
47657*)
47658 case $ac_top_srcdir in
47659 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47660 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47661 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47662 esac;;
47663esac
a848cd7e
SC
47664
47665
47666 cd $ac_dir
47667
47668 # Check for guested configure; otherwise get Cygnus style configure.
47669 if test -f $ac_srcdir/configure.gnu; then
47670 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
47671 elif test -f $ac_srcdir/configure; then
47672 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
47673 elif test -f $ac_srcdir/configure.in; then
47674 ac_sub_configure=$ac_configure
47675 else
47676 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
47677echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
47678 ac_sub_configure=
47679 fi
47680
47681 # The recursion is here.
47682 if test -n "$ac_sub_configure"; then
47683 # Make the cache file name correct relative to the subdirectory.
47684 case $cache_file in
47685 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
47686 *) # Relative path.
ac1cb8d3 47687 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
47688 esac
47689
47690 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
47691echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
47692 # The eval makes quoting arguments work.
47693 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
47694 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
47695 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
47696echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
47697 { (exit 1); exit 1; }; }
47698 fi
47699
6ebeb4c7 47700 cd "$ac_popdir"
a848cd7e
SC
47701 done
47702fi
47703
47704
47705echo
77ffb593 47706echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 47707echo ""
4d4ff94c 47708echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 47709echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 47710
77ffb593
JS
47711echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
47712echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
47713echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 47714
77ffb593
JS
47715echo " What level of wxWidgets compatibility should be enabled?"
47716echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
47717echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 47718
77ffb593 47719echo " Which libraries should wxWidgets use?"
a848cd7e
SC
47720echo " jpeg ${wxUSE_LIBJPEG-none}"
47721echo " png ${wxUSE_LIBPNG-none}"
47722echo " regex ${wxUSE_REGEX}"
47723echo " tiff ${wxUSE_LIBTIFF-none}"
47724if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
47725echo " xpm ${wxUSE_LIBXPM-none}"
47726fi
47727echo " zlib ${wxUSE_ZLIB}"
47728echo " odbc ${wxUSE_ODBC}"
47729echo " expat ${wxUSE_EXPAT}"
47730echo " libmspack ${wxUSE_LIBMSPACK}"
47731echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 47732echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
47733
47734echo ""
47735