]> git.saurik.com Git - wxWidgets.git/blame - configure
merge of RTL changes (with many modifications) from SOC2006_RTL branch
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
b3c86150 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 WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS 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 EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON 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 ICC_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_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_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_0 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_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 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_PCH_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 USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE 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
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
849ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
850ac_env_GST_CFLAGS_value=$GST_CFLAGS
851ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
852ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
853ac_env_GST_LIBS_set=${GST_LIBS+set}
854ac_env_GST_LIBS_value=$GST_LIBS
855ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
856ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
857
858#
859# Report the --help message.
860#
861if test "$ac_init_help" = "long"; then
862 # Omit some internal or obsolete options to make the list less imposing.
863 # This message is too long to be a string in the A/UX 3.1 sh.
864 cat <<_ACEOF
dd8df4fc 865\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
866
867Usage: $0 [OPTION]... [VAR=VALUE]...
868
869To assign environment variables (e.g., CC, CFLAGS...), specify them as
870VAR=VALUE. See below for descriptions of some of the useful variables.
871
872Defaults for the options are specified in brackets.
873
874Configuration:
875 -h, --help display this help and exit
876 --help=short display options specific to this package
877 --help=recursive display the short help of all the included packages
878 -V, --version display version information and exit
879 -q, --quiet, --silent do not print \`checking...' messages
880 --cache-file=FILE cache test results in FILE [disabled]
881 -C, --config-cache alias for \`--cache-file=config.cache'
882 -n, --no-create do not create output files
883 --srcdir=DIR find the sources in DIR [configure dir or \`..']
884
885_ACEOF
886
887 cat <<_ACEOF
888Installation directories:
889 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 890 [$ac_default_prefix]
a848cd7e 891 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 892 [PREFIX]
a848cd7e
SC
893
894By default, \`make install' will install all the files in
895\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
896an installation prefix other than \`$ac_default_prefix' using \`--prefix',
897for instance \`--prefix=\$HOME'.
898
899For better control, use the options below.
900
901Fine tuning of the installation directories:
902 --bindir=DIR user executables [EPREFIX/bin]
903 --sbindir=DIR system admin executables [EPREFIX/sbin]
904 --libexecdir=DIR program executables [EPREFIX/libexec]
905 --datadir=DIR read-only architecture-independent data [PREFIX/share]
906 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
907 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
908 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
909 --libdir=DIR object code libraries [EPREFIX/lib]
910 --includedir=DIR C header files [PREFIX/include]
911 --oldincludedir=DIR C header files for non-gcc [/usr/include]
912 --infodir=DIR info documentation [PREFIX/info]
913 --mandir=DIR man documentation [PREFIX/man]
914_ACEOF
915
916 cat <<\_ACEOF
917
918X features:
919 --x-includes=DIR X include files are in DIR
920 --x-libraries=DIR X library files are in DIR
921
922System types:
923 --build=BUILD configure for building on BUILD [guessed]
924 --host=HOST cross-compile to build programs to run on HOST [BUILD]
925 --target=TARGET configure for building compilers for TARGET [HOST]
926_ACEOF
927fi
928
929if test -n "$ac_init_help"; then
930 case $ac_init_help in
dd8df4fc 931 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
932 esac
933 cat <<\_ACEOF
934
935Optional Features:
936 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
937 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
938 --enable-gui use GUI classes
77ffb593
JS
939 --enable-monolithic build wxWidgets as single library
940 --enable-plugins build parts of wxWidgets as loadable components
941 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 942 --enable-nanox use NanoX
f34ca037 943 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
944 --enable-gpe use GNOME PDA Environment features if possible
945 --enable-shared create shared library code
946 --enable-optimise create optimised code
947 --enable-debug same as debug_flag and debug_info
948 --enable-stl use STL for containers
949 --enable-omf use OMF object format
950 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
951 --enable-debug_info create code with debugging information
952 --enable-debug_gdb create code with extra GDB debugging information
953 --enable-debug_cntxt use wxDebugContext
954 --enable-mem_tracing create code with memory tracing
955 --enable-profile create code with profiling information
956 --enable-no_rtti create code without RTTI information
957 --enable-no_exceptions create code without C++ exceptions handling
958 --enable-permissive compile code disregarding strict ANSI
959 --enable-no_deps create code without dependency information
95768535 960 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
961 --enable-compat24 enable wxWidgets 2.4 compatibility
962 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 963 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
964 --enable-intl use internationalization system
965 --enable-config use wxConfig (and derived) classes
966 --enable-protocols use wxProtocol and derived classes
967 --enable-ftp use wxFTP (requires wxProtocol
968 --enable-http use wxHTTP (requires wxProtocol
969 --enable-fileproto use wxFileProto class (requires wxProtocol
970 --enable-sockets use socket/network classes
971 --enable-ole use OLE classes (Win32 only)
972 --enable-dataobj use data object classes
973 --enable-ipc use interprocess communication (wxSocket etc.)
974 --enable-apple_ieee use the Apple IEEE codec
81f90336 975 --enable-arcstream use wxArchive streams
eaff0f0d 976 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 977 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
978 --enable-cmdline use wxCmdLineParser class
979 --enable-datetime use wxDateTime class
36b6448c 980 --enable-debugreport use wxDebugReport class
a848cd7e
SC
981 --enable-dialupman use dialup network classes
982 --enable-dynlib use wxLibrary class for DLL loading
983 --enable-dynamicloader use (new) wxDynamicLibrary class
984 --enable-exceptions build exception-safe library
985 --enable-ffile use wxFFile class
986 --enable-file use wxFile class
987 --enable-filesystem use virtual file systems classes
988 --enable-fontmap use font encodings conversion classes
989 --enable-fs_inet use virtual HTTP/FTP filesystems
990 --enable-fs_zip use virtual ZIP filesystems
991 --enable-geometry use geometry class
992 --enable-log use logging system
993 --enable-longlong use wxLongLong class
994 --enable-mimetype use wxMimeTypesManager
995 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
996 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 997 --enable-std_iostreams use standard C++ stream classes
59746b65 998 --enable-std_string use standard C++ string classes
07158944 999 --enable-stdpaths use wxStandardPaths class
a848cd7e 1000 --enable-stopwatch use wxStopWatch class
07158944 1001 --enable-streams use wxStream etc classes
a848cd7e
SC
1002 --enable-sysoptions use wxSystemOptions
1003 --enable-textbuf use wxTextBuffer class
1004 --enable-textfile use wxTextFile class
1005 --enable-timer use wxTimer class
1006 --enable-unicode compile wxString with Unicode support
1007 --enable-sound use wxSound class
3b57de8b 1008 --enable-mediactrl use wxMediaCtrl class
f10e38c4 1009 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1010 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1011 --enable-zipstream use wxZip streams
a848cd7e
SC
1012 --enable-url use wxURL class
1013 --enable-protocol use wxProtocol class
1014 --enable-protocol-http HTTP support in wxProtocol
1015 --enable-protocol-ftp FTP support in wxProtocol
1016 --enable-protocol-file FILE support in wxProtocol
1017 --enable-threads use threads
1018 --enable-docview use document view architecture
1019 --enable-help use help subsystem
1020 --enable-mshtmlhelp use MS HTML Help (win32)
1021 --enable-html use wxHTML sub-library
1022 --enable-htmlhelp use wxHTML-based help
9a8f0513 1023 --enable-xrc use XRC resources sub-library
3f60522a 1024 --enable-aui use AUI docking library
a848cd7e
SC
1025 --enable-constraints use layout-constraints system
1026 --enable-printarch use printing architecture
1027 --enable-mdi use multiple document interface architecture
8a7b1113 1028 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1029 --enable-loggui use standard GUI logger
1030 --enable-logwin use wxLogWindow
1031 --enable-logdialog use wxLogDialog
646b6ec1 1032 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1033 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
1034 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1035 --enable-prologio not available; see contrib
1036 --enable-resources not available; see contrib
1037 --enable-clipboard use wxClipboard class
1038 --enable-dnd use Drag'n'Drop classes
1039 --enable-metafile use win32 metafiles
1040 --enable-controls use all usual controls
1041 --enable-accel use accelerators
1042 --enable-button use wxButton class
1043 --enable-bmpbutton use wxBitmapButton class
1044 --enable-calendar use wxCalendarCtrl class
1045 --enable-caret use wxCaret class
1046 --enable-checkbox use wxCheckBox class
1047 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1048 --enable-choice use wxChoice class
92bbdbcd 1049 --enable-choicebook use wxChoicebook class
e9263684 1050 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1051 --enable-combobox use wxComboBox class
a57d600f 1052 --enable-comboctrl use wxComboCtrl class
da98e9be 1053 --enable-datepick use wxDatePickerCtrl class
e9263684 1054 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1055 --enable-display use wxDisplay class
e9263684
VZ
1056 --enable-filepicker use wxFilePickerCtrl class
1057 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1058 --enable-gauge use wxGauge class
1059 --enable-grid use wxGrid class
20e34ecc 1060 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1061 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1062 --enable-imaglist use wxImageList class
1063 --enable-listbook use wxListbook class
1064 --enable-listbox use wxListBox class
1065 --enable-listctrl use wxListCtrl class
1066 --enable-notebook use wxNotebook class
a57d600f 1067 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1068 --enable-radiobox use wxRadioBox class
1069 --enable-radiobtn use wxRadioButton class
1070 --enable-sash use wxSashWindow class
1071 --enable-scrollbar use wxScrollBar class and scrollable windows
1072 --enable-slider use wxSlider class
1073 --enable-spinbtn use wxSpinButton class
1074 --enable-spinctrl use wxSpinCtrl class
1075 --enable-splitter use wxSplitterWindow class
1076 --enable-statbmp use wxStaticBitmap class
1077 --enable-statbox use wxStaticBox class
1078 --enable-statline use wxStaticLine class
1079 --enable-stattext use wxStaticText class
1080 --enable-statusbar use wxStatusBar class
1081 --enable-tabdialog use wxTabControl class
1082 --enable-textctrl use wxTextCtrl class
1083 --enable-togglebtn use wxToggleButton class
1084 --enable-toolbar use wxToolBar class
1085 --enable-tbarnative use native wxToolBar class
0093c2fc 1086 --enable-treebook use wxTreebook class
5ec3bc43 1087 --enable-toolbook use wxToolbook class
a848cd7e
SC
1088 --enable-treectrl use wxTreeCtrl class
1089 --enable-tipwindow use wxTipWindow class
1090 --enable-popupwin use wxPopUpWindow class
1091 --enable-commondlg use all common dialogs
1092 --enable-choicedlg use wxChoiceDialog
1093 --enable-coldlg use wxColourDialog
1094 --enable-filedlg use wxFileDialog
1095 --enable-finddlg use wxFindReplaceDialog
1096 --enable-fontdlg use wxFontDialog
1097 --enable-dirdlg use wxDirDialog
1098 --enable-msgdlg use wxMessageDialog
1099 --enable-numberdlg use wxNumberEntryDialog
1100 --enable-splash use wxSplashScreen
1101 --enable-textdlg use wxTextDialog
1102 --enable-tipdlg use startup tips
1103 --enable-progressdlg use wxProgressDialog
1104 --enable-wizarddlg use wxWizard
1105 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1106 --enable-miniframe use wxMiniFrame class
1107 --enable-tooltips use wxToolTip class
1108 --enable-splines use spline drawing code
fbe2ca43 1109 --enable-mousewheel use mousewheel
a848cd7e
SC
1110 --enable-validators use wxValidator and derived classes
1111 --enable-busyinfo use wxBusyInfo
4cb1d3da 1112 --enable-joystick use wxJoystick
38b4a946 1113 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1114 --enable-dragimage use wxDragImage
1115 --enable-accessibility enable accessibility support
38b4a946 1116 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1117 --enable-palette use wxPalette class
1118 --enable-image use wxImage class
1119 --enable-gif use gif images (GIF file format)
1120 --enable-pcx use pcx images (PCX file format)
1121 --enable-iff use iff images (IFF file format)
1122 --enable-pnm use pnm images (PNM file format)
1123 --enable-xpm use xpm images (XPM file format)
1124 --enable-icocur use Windows ICO and CUR formats
77ffb593 1125 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1126 --enable-vendor=VENDOR vendor name (win32 DLL only)
1127 --disable-largefile omit support for large files
1128 --disable-gtktest do not try to compile and run a test GTK+ program
1129 --disable-gtktest Do not try to compile and run a test GTK program
1130 --disable-sdltest Do not try to compile and run a test SDL program
1131 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1132 --disable-dependency-tracking
1133 don't use dependency tracking even if the compiler
1134 can
ebee3cd0
VS
1135 --disable-precomp-headers
1136 don't use precompiled headers even if compiler can
a848cd7e
SC
1137
1138Optional Packages:
1139 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1140 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1141 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1142 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1143 --with-motif use Motif/Lesstif
1144 --with-mac use Mac OS X
1145 --with-cocoa use Cocoa
1146 --with-wine use Wine
1147 --with-msw use MS-Windows
1148 --with-pm use OS/2 Presentation Manager
1149 --with-mgl use SciTech MGL
b3c86150 1150 --with-directfb use DirectFB
a848cd7e
SC
1151 --with-microwin use MicroWindows
1152 --with-x11 use X11
1153 --with-libpng use libpng (PNG image format)
1154 --with-libjpeg use libjpeg (JPEG file format)
1155 --with-libtiff use libtiff (TIFF file format)
1156 --with-libxpm use libxpm (XPM file format)
1157 --with-libmspack use libmspack (CHM help files loading)
1158 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1159 --with-gnomeprint use GNOME print for printing under GNOME
1160 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1161 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1162 --with-opengl use OpenGL (or Mesa)
1163 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1164 --with-regex enable support for wxRegEx class
1165 --with-zlib use zlib for LZW compression
1166 --with-odbc use the IODBC and wxODBC classes
1167 --with-expat enable XML support using expat parser
ceec2216 1168 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1169 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1170 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1171 --with-x use the X Window System
1172 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1173 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1174 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1175 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1176 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1177
1178Some influential environment variables:
dcc1b6ad
VS
1179 CC C compiler command
1180 CFLAGS C compiler flags
1181 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1182 nonstandard directory <lib dir>
1183 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1184 headers in a nonstandard directory <include dir>
1185 CPP C preprocessor
1186 CXX C++ compiler command
1187 CXXFLAGS C++ compiler flags
1188 CXXCPP C++ preprocessor
3ecd9f92 1189 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1190 DIRECTFB_CFLAGS
1191 C compiler flags for DIRECTFB, overriding pkg-config
1192 DIRECTFB_LIBS
1193 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1194 PANGOX_CFLAGS
1195 C compiler flags for PANGOX, overriding pkg-config
1196 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1197 PANGOFT2_CFLAGS
1198 C compiler flags for PANGOFT2, overriding pkg-config
1199 PANGOFT2_LIBS
1200 linker flags for PANGOFT2, overriding pkg-config
1201 PANGOXFT_CFLAGS
1202 C compiler flags for PANGOXFT, overriding pkg-config
1203 PANGOXFT_LIBS
1204 linker flags for PANGOXFT, overriding pkg-config
1205 LIBGNOMEPRINTUI_CFLAGS
1206 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1207 LIBGNOMEPRINTUI_LIBS
1208 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1209 GNOMEVFS_CFLAGS
1210 C compiler flags for GNOMEVFS, overriding pkg-config
1211 GNOMEVFS_LIBS
1212 linker flags for GNOMEVFS, overriding pkg-config
1213 HILDON_CFLAGS
1214 C compiler flags for HILDON, overriding pkg-config
1215 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1216 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1217 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1218
1219Use these variables to override the choices made by `configure' or to help
1220it to find libraries and programs with nonstandard names/locations.
1221
77ffb593 1222Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1223_ACEOF
1224fi
1225
1226if test "$ac_init_help" = "recursive"; then
1227 # If there are subdirs, report their specific --help.
1228 ac_popdir=`pwd`
1229 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1230 test -d $ac_dir || continue
1231 ac_builddir=.
1232
1233if test "$ac_dir" != .; then
1234 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1235 # A "../" for each directory in $ac_dir_suffix.
1236 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1237else
1238 ac_dir_suffix= ac_top_builddir=
1239fi
1240
1241case $srcdir in
1242 .) # No --srcdir option. We are building in place.
1243 ac_srcdir=.
1244 if test -z "$ac_top_builddir"; then
1245 ac_top_srcdir=.
1246 else
1247 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1248 fi ;;
1249 [\\/]* | ?:[\\/]* ) # Absolute path.
1250 ac_srcdir=$srcdir$ac_dir_suffix;
1251 ac_top_srcdir=$srcdir ;;
1252 *) # Relative path.
1253 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1254 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1255esac
ac1cb8d3
VS
1256
1257# Do not use `cd foo && pwd` to compute absolute paths, because
1258# the directories may not exist.
1259case `pwd` in
1260.) ac_abs_builddir="$ac_dir";;
1261*)
1262 case "$ac_dir" in
1263 .) ac_abs_builddir=`pwd`;;
1264 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1265 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1266 esac;;
1267esac
1268case $ac_abs_builddir in
1269.) ac_abs_top_builddir=${ac_top_builddir}.;;
1270*)
1271 case ${ac_top_builddir}. in
1272 .) ac_abs_top_builddir=$ac_abs_builddir;;
1273 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1274 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1275 esac;;
1276esac
1277case $ac_abs_builddir in
1278.) ac_abs_srcdir=$ac_srcdir;;
1279*)
1280 case $ac_srcdir in
1281 .) ac_abs_srcdir=$ac_abs_builddir;;
1282 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1283 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1284 esac;;
1285esac
1286case $ac_abs_builddir in
1287.) ac_abs_top_srcdir=$ac_top_srcdir;;
1288*)
1289 case $ac_top_srcdir in
1290 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1291 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1292 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1293 esac;;
1294esac
a848cd7e
SC
1295
1296 cd $ac_dir
1297 # Check for guested configure; otherwise get Cygnus style configure.
1298 if test -f $ac_srcdir/configure.gnu; then
1299 echo
1300 $SHELL $ac_srcdir/configure.gnu --help=recursive
1301 elif test -f $ac_srcdir/configure; then
1302 echo
1303 $SHELL $ac_srcdir/configure --help=recursive
1304 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1305 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1306 echo
1307 $ac_configure --help
1308 else
1309 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1310 fi
c9a66001 1311 cd "$ac_popdir"
a848cd7e
SC
1312 done
1313fi
1314
1315test -n "$ac_init_help" && exit 0
1316if $ac_init_version; then
1317 cat <<\_ACEOF
dd8df4fc 1318wxWidgets configure 2.7.0
ac1cb8d3 1319generated by GNU Autoconf 2.59
a848cd7e 1320
ac1cb8d3 1321Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1322This configure script is free software; the Free Software Foundation
1323gives unlimited permission to copy, distribute and modify it.
1324_ACEOF
1325 exit 0
1326fi
1327exec 5>config.log
1328cat >&5 <<_ACEOF
1329This file contains any messages produced by compilers while
1330running configure, to aid debugging if configure makes a mistake.
1331
dd8df4fc 1332It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1333generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1334
1335 $ $0 $@
1336
1337_ACEOF
1338{
1339cat <<_ASUNAME
1340## --------- ##
1341## Platform. ##
1342## --------- ##
1343
1344hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1345uname -m = `(uname -m) 2>/dev/null || echo unknown`
1346uname -r = `(uname -r) 2>/dev/null || echo unknown`
1347uname -s = `(uname -s) 2>/dev/null || echo unknown`
1348uname -v = `(uname -v) 2>/dev/null || echo unknown`
1349
1350/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1351/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1352
1353/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1354/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1355/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1356hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1357/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1358/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1359/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1360
1361_ASUNAME
1362
1363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364for as_dir in $PATH
1365do
1366 IFS=$as_save_IFS
1367 test -z "$as_dir" && as_dir=.
1368 echo "PATH: $as_dir"
1369done
1370
1371} >&5
1372
1373cat >&5 <<_ACEOF
1374
1375
1376## ----------- ##
1377## Core tests. ##
1378## ----------- ##
1379
1380_ACEOF
1381
1382
1383# Keep a trace of the command line.
1384# Strip out --no-create and --no-recursion so they do not pile up.
1385# Strip out --silent because we don't want to record it for future runs.
1386# Also quote any args containing shell meta-characters.
1387# Make two passes to allow for proper duplicate-argument suppression.
1388ac_configure_args=
1389ac_configure_args0=
1390ac_configure_args1=
1391ac_sep=
1392ac_must_keep_next=false
1393for ac_pass in 1 2
1394do
1395 for ac_arg
1396 do
1397 case $ac_arg in
1398 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1400 | -silent | --silent | --silen | --sile | --sil)
1401 continue ;;
1402 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1403 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1404 esac
1405 case $ac_pass in
1406 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1407 2)
1408 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1409 if test $ac_must_keep_next = true; then
ac1cb8d3 1410 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1411 else
ac1cb8d3
VS
1412 case $ac_arg in
1413 *=* | --config-cache | -C | -disable-* | --disable-* \
1414 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1415 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1416 | -with-* | --with-* | -without-* | --without-* | --x)
1417 case "$ac_configure_args0 " in
1418 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1419 esac
1420 ;;
1421 -* ) ac_must_keep_next=true ;;
1422 esac
a848cd7e
SC
1423 fi
1424 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1425 # Get rid of the leading space.
1426 ac_sep=" "
1427 ;;
1428 esac
1429 done
1430done
1431$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1432$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1433
1434# When interrupted or exit'd, cleanup temporary files, and complete
1435# config.log. We remove comments because anyway the quotes in there
1436# would cause problems or look ugly.
1437# WARNING: Be sure not to use single quotes in there, as some shells,
1438# such as our DU 5.0 friend, will then `close' the trap.
1439trap 'exit_status=$?
1440 # Save into config.log some information that might help in debugging.
1441 {
1442 echo
1443
1444 cat <<\_ASBOX
1445## ---------------- ##
1446## Cache variables. ##
1447## ---------------- ##
1448_ASBOX
1449 echo
1450 # The following way of writing the cache mishandles newlines in values,
1451{
1452 (set) 2>&1 |
1453 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1454 *ac_space=\ *)
1455 sed -n \
ac1cb8d3
VS
1456 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1458 ;;
1459 *)
1460 sed -n \
ac1cb8d3 1461 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1462 ;;
1463 esac;
1464}
1465 echo
1466
1467 cat <<\_ASBOX
1468## ----------------- ##
1469## Output variables. ##
1470## ----------------- ##
1471_ASBOX
1472 echo
1473 for ac_var in $ac_subst_vars
1474 do
1475 eval ac_val=$`echo $ac_var`
1476 echo "$ac_var='"'"'$ac_val'"'"'"
1477 done | sort
1478 echo
1479
1480 if test -n "$ac_subst_files"; then
1481 cat <<\_ASBOX
1482## ------------- ##
1483## Output files. ##
1484## ------------- ##
1485_ASBOX
1486 echo
1487 for ac_var in $ac_subst_files
1488 do
1489 eval ac_val=$`echo $ac_var`
ac1cb8d3 1490 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1491 done | sort
1492 echo
1493 fi
1494
1495 if test -s confdefs.h; then
1496 cat <<\_ASBOX
1497## ----------- ##
1498## confdefs.h. ##
1499## ----------- ##
1500_ASBOX
1501 echo
1502 sed "/^$/d" confdefs.h | sort
1503 echo
1504 fi
1505 test "$ac_signal" != 0 &&
1506 echo "$as_me: caught signal $ac_signal"
1507 echo "$as_me: exit $exit_status"
1508 } >&5
ac1cb8d3 1509 rm -f core *.core &&
a848cd7e
SC
1510 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1511 exit $exit_status
1512 ' 0
1513for ac_signal in 1 2 13 15; do
1514 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1515done
1516ac_signal=0
1517
1518# confdefs.h avoids OS command line length limits that DEFS can exceed.
1519rm -rf conftest* confdefs.h
1520# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1521echo >confdefs.h
1522
1523# Predefined preprocessor variables.
1524
1525cat >>confdefs.h <<_ACEOF
1526#define PACKAGE_NAME "$PACKAGE_NAME"
1527_ACEOF
1528
1529
1530cat >>confdefs.h <<_ACEOF
1531#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1532_ACEOF
1533
1534
1535cat >>confdefs.h <<_ACEOF
1536#define PACKAGE_VERSION "$PACKAGE_VERSION"
1537_ACEOF
1538
1539
1540cat >>confdefs.h <<_ACEOF
1541#define PACKAGE_STRING "$PACKAGE_STRING"
1542_ACEOF
1543
1544
1545cat >>confdefs.h <<_ACEOF
1546#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1547_ACEOF
1548
1549
1550# Let the site file select an alternate cache file if it wants to.
1551# Prefer explicitly selected file to automatically selected ones.
1552if test -z "$CONFIG_SITE"; then
1553 if test "x$prefix" != xNONE; then
1554 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1555 else
1556 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1557 fi
1558fi
1559for ac_site_file in $CONFIG_SITE; do
1560 if test -r "$ac_site_file"; then
1561 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1562echo "$as_me: loading site script $ac_site_file" >&6;}
1563 sed 's/^/| /' "$ac_site_file" >&5
1564 . "$ac_site_file"
1565 fi
1566done
1567
1568if test -r "$cache_file"; then
1569 # Some versions of bash will fail to source /dev/null (special
1570 # files actually), so we avoid doing that.
1571 if test -f "$cache_file"; then
1572 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1573echo "$as_me: loading cache $cache_file" >&6;}
1574 case $cache_file in
1575 [\\/]* | ?:[\\/]* ) . $cache_file;;
1576 *) . ./$cache_file;;
1577 esac
1578 fi
1579else
1580 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1581echo "$as_me: creating cache $cache_file" >&6;}
1582 >$cache_file
1583fi
1584
1585# Check that the precious variables saved in the cache have kept the same
1586# value.
1587ac_cache_corrupted=false
1588for ac_var in `(set) 2>&1 |
ac1cb8d3 1589 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1590 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1591 eval ac_new_set=\$ac_env_${ac_var}_set
1592 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1593 eval ac_new_val="\$ac_env_${ac_var}_value"
1594 case $ac_old_set,$ac_new_set in
1595 set,)
1596 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1597echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1598 ac_cache_corrupted=: ;;
1599 ,set)
1600 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1601echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1602 ac_cache_corrupted=: ;;
1603 ,);;
1604 *)
1605 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1606 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1607echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1608 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1609echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1610 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1611echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1612 ac_cache_corrupted=:
a848cd7e
SC
1613 fi;;
1614 esac
1615 # Pass precious variables to config.status.
1616 if test "$ac_new_set" = set; then
1617 case $ac_new_val in
1618 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1619 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1620 *) ac_arg=$ac_var=$ac_new_val ;;
1621 esac
1622 case " $ac_configure_args " in
1623 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1624 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1625 esac
1626 fi
1627done
1628if $ac_cache_corrupted; then
1629 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1630echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1631 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1632echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1633 { (exit 1); exit 1; }; }
1634fi
1635
1636ac_ext=c
1637ac_cpp='$CPP $CPPFLAGS'
1638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1640ac_compiler_gnu=$ac_cv_c_compiler_gnu
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671ac_aux_dir=
1672for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1673 if test -f $ac_dir/install-sh; then
1674 ac_aux_dir=$ac_dir
1675 ac_install_sh="$ac_aux_dir/install-sh -c"
1676 break
1677 elif test -f $ac_dir/install.sh; then
1678 ac_aux_dir=$ac_dir
1679 ac_install_sh="$ac_aux_dir/install.sh -c"
1680 break
1681 elif test -f $ac_dir/shtool; then
1682 ac_aux_dir=$ac_dir
1683 ac_install_sh="$ac_aux_dir/shtool install -c"
1684 break
1685 fi
1686done
1687if test -z "$ac_aux_dir"; then
1688 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1689echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1690 { (exit 1); exit 1; }; }
1691fi
1692ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1693ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1694ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1695
1696# Make sure we can run config.sub.
1697$ac_config_sub sun4 >/dev/null 2>&1 ||
1698 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1699echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1700 { (exit 1); exit 1; }; }
1701
1702echo "$as_me:$LINENO: checking build system type" >&5
1703echo $ECHO_N "checking build system type... $ECHO_C" >&6
1704if test "${ac_cv_build+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 ac_cv_build_alias=$build_alias
1708test -z "$ac_cv_build_alias" &&
1709 ac_cv_build_alias=`$ac_config_guess`
1710test -z "$ac_cv_build_alias" &&
1711 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1712echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1713 { (exit 1); exit 1; }; }
1714ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1715 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1716echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1717 { (exit 1); exit 1; }; }
1718
1719fi
1720echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1721echo "${ECHO_T}$ac_cv_build" >&6
1722build=$ac_cv_build
1723build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1724build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1725build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1726
1727
1728echo "$as_me:$LINENO: checking host system type" >&5
1729echo $ECHO_N "checking host system type... $ECHO_C" >&6
1730if test "${ac_cv_host+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732else
1733 ac_cv_host_alias=$host_alias
1734test -z "$ac_cv_host_alias" &&
1735 ac_cv_host_alias=$ac_cv_build_alias
1736ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1737 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1738echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1739 { (exit 1); exit 1; }; }
1740
1741fi
1742echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1743echo "${ECHO_T}$ac_cv_host" >&6
1744host=$ac_cv_host
1745host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1746host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1747host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1748
1749
1750echo "$as_me:$LINENO: checking target system type" >&5
1751echo $ECHO_N "checking target system type... $ECHO_C" >&6
1752if test "${ac_cv_target+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 ac_cv_target_alias=$target_alias
1756test "x$ac_cv_target_alias" = "x" &&
1757 ac_cv_target_alias=$ac_cv_host_alias
1758ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1759 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1760echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1761 { (exit 1); exit 1; }; }
1762
1763fi
1764echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1765echo "${ECHO_T}$ac_cv_target" >&6
1766target=$ac_cv_target
1767target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1768target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1769target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1770
1771
1772# The aliases save the names the user supplied, while $host etc.
1773# will get canonicalized.
1774test -n "$target_alias" &&
1775 test "$program_prefix$program_suffix$program_transform_name" = \
1776 NONENONEs,x,x, &&
1777 program_prefix=${target_alias}-
1778
1779
1780
ceec2216 1781wx_major_version_number=2
dd8df4fc
VZ
1782wx_minor_version_number=7
1783wx_release_number=0
5b5d4ef2 1784wx_subrelease_number=1
a848cd7e 1785
ceec2216
RL
1786WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1787WX_VERSION=$WX_RELEASE.$wx_release_number
1788WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1789
ceec2216 1790WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1791
a848cd7e
SC
1792
1793
1794
1795USE_UNIX=1
1796USE_OS2=0
1797USE_WIN32=0
1798USE_DOS=0
1799USE_BEOS=0
1800USE_MAC=0
1801
1802USE_AIX=
1803USE_BSD= USE_DARWIN= USE_FREEBSD=
1804USE_GNU= USE_HPUX=
1805USE_LINUX=
1806USE_NETBSD=
1807USE_OPENBSD=
1808USE_OSF= USE_SGI=
1809USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1810USE_ULTRIX=
1811USE_UNIXWARE=
1812
1813USE_ALPHA=
1814
1815NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1816
b3c86150 1817ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1818
1819DEFAULT_wxUSE_COCOA=0
1820DEFAULT_wxUSE_GTK=0
1821DEFAULT_wxUSE_MAC=0
1822DEFAULT_wxUSE_MGL=0
1823DEFAULT_wxUSE_MICROWIN=0
1824DEFAULT_wxUSE_MOTIF=0
1825DEFAULT_wxUSE_MSW=0
1826DEFAULT_wxUSE_PM=0
1827DEFAULT_wxUSE_X11=0
b3c86150 1828DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1829
1830DEFAULT_DEFAULT_wxUSE_COCOA=0
1831DEFAULT_DEFAULT_wxUSE_GTK=0
1832DEFAULT_DEFAULT_wxUSE_MAC=0
1833DEFAULT_DEFAULT_wxUSE_MGL=0
1834DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1835DEFAULT_DEFAULT_wxUSE_MOTIF=0
1836DEFAULT_DEFAULT_wxUSE_MSW=0
1837DEFAULT_DEFAULT_wxUSE_PM=0
1838DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1839DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1840
1841PROGRAM_EXT=
1842SO_SUFFIX=so
1843SAMPLES_RPATH_FLAG=
1844SAMPLES_RPATH_POSTLINK=
1845
a03b8b04
RD
1846DEFAULT_STD_FLAG=yes
1847
a848cd7e
SC
1848case "${host}" in
1849 *-hp-hpux* )
1850 USE_HPUX=1
1851 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1852 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1853 SO_SUFFIX=sl
1854 cat >>confdefs.h <<\_ACEOF
1855#define __HPUX__ 1
1856_ACEOF
1857
2eef8513 1858
c92ad099 1859 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1860 ;;
1861 *-*-linux* )
1862 USE_LINUX=1
1863 cat >>confdefs.h <<\_ACEOF
1864#define __LINUX__ 1
1865_ACEOF
1866
1867 TMP=`uname -m`
1868 if test "x$TMP" = "xalpha"; then
1869 USE_ALPHA=1
1870 cat >>confdefs.h <<\_ACEOF
1871#define __ALPHA__ 1
1872_ACEOF
1873
1874 fi
1875 DEFAULT_DEFAULT_wxUSE_GTK=1
1876 ;;
1877 *-*-gnu* | *-*-k*bsd*-gnu )
1878 USE_GNU=1
1879 TMP=`uname -m`
1880 if test "x$TMP" = "xalpha"; then
1881 USE_ALPHA=1
1882 cat >>confdefs.h <<\_ACEOF
1883#define __ALPHA__ 1
1884_ACEOF
1885
1886 fi
1887 DEFAULT_DEFAULT_wxUSE_GTK=1
1888 ;;
1889 *-*-irix5* | *-*-irix6* )
1890 USE_SGI=1
1891 USE_SVR4=1
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SGI__ 1
1894_ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SVR4__ 1
1898_ACEOF
1899
1900 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1901 ;;
1902 *-*-solaris2* )
1903 USE_SUN=1
1904 USE_SOLARIS=1
1905 USE_SVR4=1
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SUN__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SOLARIS__ 1
1912_ACEOF
1913
1914 cat >>confdefs.h <<\_ACEOF
1915#define __SVR4__ 1
1916_ACEOF
1917
1918 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1919 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1920 ;;
1921 *-*-sunos4* )
1922 USE_SUN=1
1923 USE_SUNOS=1
1924 USE_BSD=1
1925 cat >>confdefs.h <<\_ACEOF
1926#define __SUN__ 1
1927_ACEOF
1928
1929 cat >>confdefs.h <<\_ACEOF
1930#define __SUNOS__ 1
1931_ACEOF
1932
1933 cat >>confdefs.h <<\_ACEOF
1934#define __BSD__ 1
1935_ACEOF
1936
1937 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1938 ;;
1939 *-*-freebsd*)
1940 USE_BSD=1
1941 USE_FREEBSD=1
1942 cat >>confdefs.h <<\_ACEOF
1943#define __FREEBSD__ 1
1944_ACEOF
1945
1946 cat >>confdefs.h <<\_ACEOF
1947#define __BSD__ 1
1948_ACEOF
1949
1950 DEFAULT_DEFAULT_wxUSE_GTK=1
1951 ;;
c9a66001 1952 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1953 USE_BSD=1
1954 USE_OPENBSD=1
1955 cat >>confdefs.h <<\_ACEOF
1956#define __OPENBSD__ 1
1957_ACEOF
1958
1959 cat >>confdefs.h <<\_ACEOF
1960#define __BSD__ 1
1961_ACEOF
1962
1963 DEFAULT_DEFAULT_wxUSE_GTK=1
1964 ;;
1965 *-*-netbsd*)
1966 USE_BSD=1
1967 USE_NETBSD=1
1968 cat >>confdefs.h <<\_ACEOF
1969#define __NETBSD__ 1
1970_ACEOF
1971
1972 cat >>confdefs.h <<\_ACEOF
1973#define __BSD__ 1
1974_ACEOF
1975
1976 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1977 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1978
def7c04a 1979 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1980 ;;
1981 *-*-osf* )
1982 USE_ALPHA=1
1983 USE_OSF=1
1984 cat >>confdefs.h <<\_ACEOF
1985#define __ALPHA__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define __OSF__ 1
1990_ACEOF
1991
1992 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1993 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1994 ;;
1995 *-*-dgux5* )
1996 USE_ALPHA=1
1997 USE_SVR4=1
1998 cat >>confdefs.h <<\_ACEOF
1999#define __ALPHA__ 1
2000_ACEOF
2001
2002 cat >>confdefs.h <<\_ACEOF
2003#define __SVR4__ 1
2004_ACEOF
2005
2006 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2007 ;;
2008 *-*-sysv5* )
2009 USE_SYSV=1
2010 USE_SVR4=1
2011 cat >>confdefs.h <<\_ACEOF
2012#define __SYSV__ 1
2013_ACEOF
2014
2015 cat >>confdefs.h <<\_ACEOF
2016#define __SVR4__ 1
2017_ACEOF
2018
2019 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2020 ;;
2021 *-*-aix* )
2022 USE_AIX=1
2023 USE_SYSV=1
2024 USE_SVR4=1
2025 SO_SUFFIX=a
2026 cat >>confdefs.h <<\_ACEOF
2027#define __AIX__ 1
2028_ACEOF
2029
2030 cat >>confdefs.h <<\_ACEOF
2031#define __SYSV__ 1
2032_ACEOF
2033
2034 cat >>confdefs.h <<\_ACEOF
2035#define __SVR4__ 1
2036_ACEOF
2037
2038 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2039 ;;
2040
2041 *-*-*UnixWare*)
2042 USE_SYSV=1
2043 USE_SVR4=1
2044 USE_UNIXWARE=1
2045 cat >>confdefs.h <<\_ACEOF
2046#define __UNIXWARE__ 1
2047_ACEOF
2048
2049 ;;
2050
2051 *-*-cygwin* | *-*-mingw32* )
2052 SO_SUFFIX=dll
2053 PROGRAM_EXT=".exe"
a848cd7e 2054 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2055 DEFAULT_STD_FLAG=no
a848cd7e
SC
2056 ;;
2057
2058 *-pc-msdosdjgpp )
2059 USE_UNIX=0
2060 USE_DOS=1
2061 cat >>confdefs.h <<\_ACEOF
2062#define __DOS__ 1
2063_ACEOF
2064
2065 PROGRAM_EXT=".exe"
2066 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2067 ;;
2068
2069 *-pc-os2_emx | *-pc-os2-emx )
2070 cat >>confdefs.h <<\_ACEOF
2071#define __EMX__ 1
2072_ACEOF
2073
2074 USE_OS2=1
2075 cat >>confdefs.h <<\_ACEOF
2076#define __OS2__ 1
2077_ACEOF
2078
2079 PROGRAM_EXT=".exe"
2080 DEFAULT_DEFAULT_wxUSE_PM=1
2081 CXX=gcc
2082 LDFLAGS="$LDFLAGS -Zcrtdll"
2083 ac_executable_extensions=".exe"
2084 export ac_executable_extensions
2085 ac_save_IFS="$IFS"
2086 IFS='\\'
2087 ac_TEMP_PATH=
2088 for ac_dir in $PATH; do
2089 IFS=$ac_save_IFS
2090 if test -z "$ac_TEMP_PATH"; then
2091 ac_TEMP_PATH="$ac_dir"
2092 else
2093 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2094 fi
2095 done
2096 export PATH="$ac_TEMP_PATH"
2097 unset ac_TEMP_PATH
a03b8b04 2098 DEFAULT_STD_FLAG=no
a848cd7e
SC
2099 ;;
2100
cfda0ea8 2101 *-*-darwin* )
a848cd7e
SC
2102 USE_BSD=1
2103 USE_DARWIN=1
2104 SO_SUFFIX=dylib
2105 cat >>confdefs.h <<\_ACEOF
2106#define __BSD__ 1
2107_ACEOF
2108
2109 cat >>confdefs.h <<\_ACEOF
2110#define __DARWIN__ 1
a848cd7e
SC
2111_ACEOF
2112
2113 cat >>confdefs.h <<\_ACEOF
2114#define TARGET_CARBON 1
2115_ACEOF
2116
2117 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2118 DEFAULT_STD_FLAG=no
a848cd7e 2119 ;;
1e9e8aba
DE
2120 powerpc-apple-macos* )
2121 USE_UNIX=0
2122 ac_cv_c_bigendian=yes
2123 SO_SUFFIX=shlib
2124 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2125 DEFAULT_STD_FLAG=no
1e9e8aba 2126 ;;
a848cd7e
SC
2127
2128 *-*-beos* )
2129 USE_BEOS=1
2130 cat >>confdefs.h <<\_ACEOF
2131#define __BEOS__ 1
2132_ACEOF
2133
2134 ;;
2135
2136 *)
c9a66001
VZ
2137 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2138echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2139 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2140echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2141
2142 DEFAULT_DEFAULT_wxUSE_X11=1
2143 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2144esac
2145
2146
2147
2148
2149 wx_arg_cache_file="configarg.cache"
2150 echo "loading argument cache $wx_arg_cache_file"
2151 rm -f ${wx_arg_cache_file}.tmp
2152 touch ${wx_arg_cache_file}.tmp
2153 touch ${wx_arg_cache_file}
2154
2155
2156DEBUG_CONFIGURE=0
2157if test $DEBUG_CONFIGURE = 1; then
2158 DEFAULT_wxUSE_UNIVERSAL=no
2159 DEFAULT_wxUSE_STL=no
2160
2161 DEFAULT_wxUSE_NANOX=no
2162
2163 DEFAULT_wxUSE_THREADS=yes
2164
5acfd58d 2165 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2166 DEFAULT_wxUSE_OPTIMISE=no
2167 DEFAULT_wxUSE_PROFILE=no
2168 DEFAULT_wxUSE_NO_DEPS=no
2169 DEFAULT_wxUSE_NO_RTTI=no
2170 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2171 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2172 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2173 DEFAULT_wxUSE_PERMISSIVE=no
2174 DEFAULT_wxUSE_DEBUG_FLAG=yes
2175 DEFAULT_wxUSE_DEBUG_INFO=yes
2176 DEFAULT_wxUSE_DEBUG_GDB=yes
2177 DEFAULT_wxUSE_MEM_TRACING=no
2178 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2179 DEFAULT_wxUSE_DMALLOC=no
2180 DEFAULT_wxUSE_APPLE_IEEE=no
2181
2182 DEFAULT_wxUSE_EXCEPTIONS=no
2183 DEFAULT_wxUSE_LOG=yes
2184 DEFAULT_wxUSE_LOGWINDOW=no
2185 DEFAULT_wxUSE_LOGGUI=no
2186 DEFAULT_wxUSE_LOGDIALOG=no
2187
2188 DEFAULT_wxUSE_GUI=yes
2189 DEFAULT_wxUSE_CONTROLS=no
2190
2191 DEFAULT_wxUSE_REGEX=no
2192 DEFAULT_wxUSE_XML=no
2193 DEFAULT_wxUSE_EXPAT=no
2194 DEFAULT_wxUSE_ZLIB=no
2195 DEFAULT_wxUSE_LIBPNG=no
2196 DEFAULT_wxUSE_LIBJPEG=no
2197 DEFAULT_wxUSE_LIBTIFF=no
2198 DEFAULT_wxUSE_LIBXPM=no
2199 DEFAULT_wxUSE_LIBMSPACK=no
2200 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2201 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2202 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2203 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2204 DEFAULT_wxUSE_ODBC=no
2205 DEFAULT_wxUSE_OPENGL=no
2206
2207 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2208 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2209 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2210 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2211 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2212 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2213 DEFAULT_wxUSE_CMDLINE_PARSER=no
2214 DEFAULT_wxUSE_DATETIME=no
2215 DEFAULT_wxUSE_TIMER=no
2216 DEFAULT_wxUSE_STOPWATCH=no
2217 DEFAULT_wxUSE_FILE=no
2218 DEFAULT_wxUSE_FFILE=no
07158944 2219 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2220 DEFAULT_wxUSE_TEXTBUFFER=no
2221 DEFAULT_wxUSE_TEXTFILE=no
2222 DEFAULT_wxUSE_SOUND=no
3b57de8b 2223 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2224 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2225 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2226 DEFAULT_wxUSE_INTL=no
2227 DEFAULT_wxUSE_CONFIG=no
2228 DEFAULT_wxUSE_FONTMAP=no
2229 DEFAULT_wxUSE_STREAMS=no
2230 DEFAULT_wxUSE_SOCKETS=no
2231 DEFAULT_wxUSE_OLE=no
2232 DEFAULT_wxUSE_DATAOBJ=no
2233 DEFAULT_wxUSE_DIALUP_MANAGER=no
2234 DEFAULT_wxUSE_JOYSTICK=no
2235 DEFAULT_wxUSE_DYNLIB_CLASS=no
2236 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2237 DEFAULT_wxUSE_LONGLONG=no
2238 DEFAULT_wxUSE_GEOMETRY=no
2239
2240 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2241 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2242 DEFAULT_wxUSE_POSTSCRIPT=no
2243
2244 DEFAULT_wxUSE_CLIPBOARD=no
2245 DEFAULT_wxUSE_TOOLTIPS=no
2246 DEFAULT_wxUSE_DRAG_AND_DROP=no
2247 DEFAULT_wxUSE_DRAGIMAGE=no
2248 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2249 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2250
8a7b1113 2251 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2252 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2253 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2254 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2255
2256 DEFAULT_wxUSE_RESOURCES=no
2257 DEFAULT_wxUSE_CONSTRAINTS=no
2258 DEFAULT_wxUSE_IPC=no
2259 DEFAULT_wxUSE_HELP=no
2260 DEFAULT_wxUSE_MS_HTML_HELP=no
2261 DEFAULT_wxUSE_WXHTML_HELP=no
2262 DEFAULT_wxUSE_TREELAYOUT=no
2263 DEFAULT_wxUSE_METAFILE=no
2264 DEFAULT_wxUSE_MIMETYPE=no
2265 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2266 DEFAULT_wxUSE_PROTOCOL=no
2267 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2268 DEFAULT_wxUSE_PROTOCOL_FTP=no
2269 DEFAULT_wxUSE_PROTOCOL_FILE=no
2270 DEFAULT_wxUSE_URL=no
2271
2272 DEFAULT_wxUSE_COMMONDLGS=no
2273 DEFAULT_wxUSE_CHOICEDLG=no
2274 DEFAULT_wxUSE_COLOURDLG=no
2275 DEFAULT_wxUSE_DIRDLG=no
2276 DEFAULT_wxUSE_FILEDLG=no
2277 DEFAULT_wxUSE_FINDREPLDLG=no
2278 DEFAULT_wxUSE_FONTDLG=no
2279 DEFAULT_wxUSE_MSGDLG=no
2280 DEFAULT_wxUSE_NUMBERDLG=no
2281 DEFAULT_wxUSE_TEXTDLG=no
2282 DEFAULT_wxUSE_SPLASH=no
2283 DEFAULT_wxUSE_STARTUP_TIPS=no
2284 DEFAULT_wxUSE_PROGRESSDLG=no
2285 DEFAULT_wxUSE_WIZARDDLG=no
2286
2287 DEFAULT_wxUSE_MENUS=no
2288 DEFAULT_wxUSE_MINIFRAME=no
2289 DEFAULT_wxUSE_HTML=no
91dea314 2290 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2291 DEFAULT_wxUSE_XRC=no
3f60522a 2292 DEFAULT_wxUSE_AUI=no
646b6ec1 2293 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2294 DEFAULT_wxUSE_FILESYSTEM=no
2295 DEFAULT_wxUSE_FS_INET=no
2296 DEFAULT_wxUSE_FS_ZIP=no
2297 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2298 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2299 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2300 DEFAULT_wxUSE_VALIDATORS=no
2301
2302 DEFAULT_wxUSE_ACCEL=no
2303 DEFAULT_wxUSE_BUTTON=no
2304 DEFAULT_wxUSE_BMPBUTTON=no
2305 DEFAULT_wxUSE_CALCTRL=no
2306 DEFAULT_wxUSE_CARET=no
2307 DEFAULT_wxUSE_CHECKBOX=no
2308 DEFAULT_wxUSE_CHECKLST=no
2309 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2310 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2311 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2312 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2313 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2314 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2315 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2316 DEFAULT_wxUSE_DIRPICKERCTRL=no
2317 DEFAULT_wxUSE_FILEPICKERCTRL=no
2318 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2319 DEFAULT_wxUSE_GAUGE=no
2320 DEFAULT_wxUSE_GRID=no
6954625c 2321 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2322 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2323 DEFAULT_wxUSE_IMAGLIST=no
2324 DEFAULT_wxUSE_LISTBOOK=no
2325 DEFAULT_wxUSE_LISTBOX=no
2326 DEFAULT_wxUSE_LISTCTRL=no
2327 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2328 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2329 DEFAULT_wxUSE_RADIOBOX=no
2330 DEFAULT_wxUSE_RADIOBTN=no
2331 DEFAULT_wxUSE_SASH=no
2332 DEFAULT_wxUSE_SCROLLBAR=no
2333 DEFAULT_wxUSE_SLIDER=no
2334 DEFAULT_wxUSE_SPINBTN=no
2335 DEFAULT_wxUSE_SPINCTRL=no
2336 DEFAULT_wxUSE_SPLITTER=no
2337 DEFAULT_wxUSE_STATBMP=no
2338 DEFAULT_wxUSE_STATBOX=no
2339 DEFAULT_wxUSE_STATLINE=no
2340 DEFAULT_wxUSE_STATTEXT=no
2341 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2342 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2343 DEFAULT_wxUSE_TEXTCTRL=no
2344 DEFAULT_wxUSE_TOGGLEBTN=no
2345 DEFAULT_wxUSE_TOOLBAR=no
2346 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2347 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2348 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2349 DEFAULT_wxUSE_TREECTRL=no
2350 DEFAULT_wxUSE_POPUPWIN=no
2351 DEFAULT_wxUSE_TIPWINDOW=no
2352
2353 DEFAULT_wxUSE_UNICODE=no
2354 DEFAULT_wxUSE_UNICODE_MSLU=no
2355 DEFAULT_wxUSE_WCSRTOMBS=no
2356
2357 DEFAULT_wxUSE_PALETTE=no
2358 DEFAULT_wxUSE_IMAGE=no
2359 DEFAULT_wxUSE_GIF=no
2360 DEFAULT_wxUSE_PCX=no
2361 DEFAULT_wxUSE_PNM=no
2362 DEFAULT_wxUSE_IFF=no
2363 DEFAULT_wxUSE_XPM=no
2364 DEFAULT_wxUSE_ICO_CUR=no
2365 DEFAULT_wxUSE_ACCESSIBILITY=no
2366
2367 DEFAULT_wxUSE_MONOLITHIC=no
2368 DEFAULT_wxUSE_PLUGINS=no
2369 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2370else
2371 DEFAULT_wxUSE_UNIVERSAL=no
2372 DEFAULT_wxUSE_STL=no
2373
2374 DEFAULT_wxUSE_NANOX=no
2375
2376 DEFAULT_wxUSE_THREADS=yes
2377
5acfd58d 2378 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2379 DEFAULT_wxUSE_OPTIMISE=yes
2380 DEFAULT_wxUSE_PROFILE=no
2381 DEFAULT_wxUSE_NO_DEPS=no
2382 DEFAULT_wxUSE_NO_RTTI=no
2383 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2384 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2385 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2386 DEFAULT_wxUSE_PERMISSIVE=no
2387 DEFAULT_wxUSE_DEBUG_FLAG=no
2388 DEFAULT_wxUSE_DEBUG_INFO=no
2389 DEFAULT_wxUSE_DEBUG_GDB=no
2390 DEFAULT_wxUSE_MEM_TRACING=no
2391 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2392 DEFAULT_wxUSE_DMALLOC=no
2393 DEFAULT_wxUSE_APPLE_IEEE=yes
2394
2395 DEFAULT_wxUSE_EXCEPTIONS=yes
2396 DEFAULT_wxUSE_LOG=yes
2397 DEFAULT_wxUSE_LOGWINDOW=yes
2398 DEFAULT_wxUSE_LOGGUI=yes
2399 DEFAULT_wxUSE_LOGDIALOG=yes
2400
2401 DEFAULT_wxUSE_GUI=yes
2402
2403 DEFAULT_wxUSE_REGEX=yes
2404 DEFAULT_wxUSE_XML=yes
2405 DEFAULT_wxUSE_EXPAT=yes
2406 DEFAULT_wxUSE_ZLIB=yes
2407 DEFAULT_wxUSE_LIBPNG=yes
2408 DEFAULT_wxUSE_LIBJPEG=yes
2409 DEFAULT_wxUSE_LIBTIFF=yes
2410 DEFAULT_wxUSE_LIBXPM=yes
2411 DEFAULT_wxUSE_LIBMSPACK=yes
2412 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2413 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2414 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2415 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2416 DEFAULT_wxUSE_ODBC=no
52cb607e 2417 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2418
2419 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2420 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2421 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2422 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2423 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2424 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2425 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2426 DEFAULT_wxUSE_DATETIME=yes
2427 DEFAULT_wxUSE_TIMER=yes
2428 DEFAULT_wxUSE_STOPWATCH=yes
2429 DEFAULT_wxUSE_FILE=yes
2430 DEFAULT_wxUSE_FFILE=yes
07158944 2431 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2432 DEFAULT_wxUSE_TEXTBUFFER=yes
2433 DEFAULT_wxUSE_TEXTFILE=yes
2434 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2435 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2436 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2437 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2438 DEFAULT_wxUSE_INTL=yes
2439 DEFAULT_wxUSE_CONFIG=yes
2440 DEFAULT_wxUSE_FONTMAP=yes
2441 DEFAULT_wxUSE_STREAMS=yes
2442 DEFAULT_wxUSE_SOCKETS=yes
2443 DEFAULT_wxUSE_OLE=yes
2444 DEFAULT_wxUSE_DATAOBJ=yes
2445 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2446 DEFAULT_wxUSE_JOYSTICK=yes
2447 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2448 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2449 DEFAULT_wxUSE_LONGLONG=yes
2450 DEFAULT_wxUSE_GEOMETRY=yes
2451
2452 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2453 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2454 DEFAULT_wxUSE_POSTSCRIPT=yes
2455
2456 DEFAULT_wxUSE_CLIPBOARD=yes
2457 DEFAULT_wxUSE_TOOLTIPS=yes
2458 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2459 DEFAULT_wxUSE_DRAGIMAGE=yes
2460 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2461 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2462
8a7b1113 2463 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2464 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2465 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2466 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2467
2468 DEFAULT_wxUSE_RESOURCES=no
2469 DEFAULT_wxUSE_CONSTRAINTS=yes
2470 DEFAULT_wxUSE_IPC=yes
2471 DEFAULT_wxUSE_HELP=yes
2472 DEFAULT_wxUSE_MS_HTML_HELP=yes
2473 DEFAULT_wxUSE_WXHTML_HELP=yes
2474 DEFAULT_wxUSE_TREELAYOUT=yes
2475 DEFAULT_wxUSE_METAFILE=yes
2476 DEFAULT_wxUSE_MIMETYPE=yes
2477 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2478 DEFAULT_wxUSE_PROTOCOL=yes
2479 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2480 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2481 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2482 DEFAULT_wxUSE_URL=yes
2483
2484 DEFAULT_wxUSE_COMMONDLGS=yes
2485 DEFAULT_wxUSE_CHOICEDLG=yes
2486 DEFAULT_wxUSE_COLOURDLG=yes
2487 DEFAULT_wxUSE_DIRDLG=yes
2488 DEFAULT_wxUSE_FILEDLG=yes
2489 DEFAULT_wxUSE_FINDREPLDLG=yes
2490 DEFAULT_wxUSE_FONTDLG=yes
2491 DEFAULT_wxUSE_MSGDLG=yes
2492 DEFAULT_wxUSE_NUMBERDLG=yes
2493 DEFAULT_wxUSE_TEXTDLG=yes
2494 DEFAULT_wxUSE_SPLASH=yes
2495 DEFAULT_wxUSE_STARTUP_TIPS=yes
2496 DEFAULT_wxUSE_PROGRESSDLG=yes
2497 DEFAULT_wxUSE_WIZARDDLG=yes
2498
2499 DEFAULT_wxUSE_MENUS=yes
2500 DEFAULT_wxUSE_MINIFRAME=yes
2501 DEFAULT_wxUSE_HTML=yes
91dea314 2502 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2503 DEFAULT_wxUSE_XRC=yes
3f60522a 2504 DEFAULT_wxUSE_AUI=yes
646b6ec1 2505 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2506 DEFAULT_wxUSE_FILESYSTEM=yes
2507 DEFAULT_wxUSE_FS_INET=yes
2508 DEFAULT_wxUSE_FS_ZIP=yes
2509 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2510 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2511 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2512 DEFAULT_wxUSE_VALIDATORS=yes
2513
2514 DEFAULT_wxUSE_ACCEL=yes
2515 DEFAULT_wxUSE_BUTTON=yes
2516 DEFAULT_wxUSE_BMPBUTTON=yes
2517 DEFAULT_wxUSE_CALCTRL=yes
2518 DEFAULT_wxUSE_CARET=yes
2519 DEFAULT_wxUSE_CHECKBOX=yes
2520 DEFAULT_wxUSE_CHECKLST=yes
2521 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2522 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2523 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2524 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2525 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2526 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2527 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2528 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2529 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2530 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2531 DEFAULT_wxUSE_GAUGE=yes
2532 DEFAULT_wxUSE_GRID=yes
6954625c 2533 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2534 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2535 DEFAULT_wxUSE_IMAGLIST=yes
2536 DEFAULT_wxUSE_LISTBOOK=yes
2537 DEFAULT_wxUSE_LISTBOX=yes
2538 DEFAULT_wxUSE_LISTCTRL=yes
2539 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2540 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2541 DEFAULT_wxUSE_RADIOBOX=yes
2542 DEFAULT_wxUSE_RADIOBTN=yes
2543 DEFAULT_wxUSE_SASH=yes
2544 DEFAULT_wxUSE_SCROLLBAR=yes
2545 DEFAULT_wxUSE_SLIDER=yes
2546 DEFAULT_wxUSE_SPINBTN=yes
2547 DEFAULT_wxUSE_SPINCTRL=yes
2548 DEFAULT_wxUSE_SPLITTER=yes
2549 DEFAULT_wxUSE_STATBMP=yes
2550 DEFAULT_wxUSE_STATBOX=yes
2551 DEFAULT_wxUSE_STATLINE=yes
2552 DEFAULT_wxUSE_STATTEXT=yes
2553 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2554 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2555 DEFAULT_wxUSE_TEXTCTRL=yes
2556 DEFAULT_wxUSE_TOGGLEBTN=yes
2557 DEFAULT_wxUSE_TOOLBAR=yes
2558 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2559 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2560 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2561 DEFAULT_wxUSE_TREECTRL=yes
2562 DEFAULT_wxUSE_POPUPWIN=yes
2563 DEFAULT_wxUSE_TIPWINDOW=yes
2564
78de529b 2565 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2566 DEFAULT_wxUSE_UNICODE_MSLU=yes
2567 DEFAULT_wxUSE_WCSRTOMBS=no
2568
2569 DEFAULT_wxUSE_PALETTE=yes
2570 DEFAULT_wxUSE_IMAGE=yes
2571 DEFAULT_wxUSE_GIF=yes
2572 DEFAULT_wxUSE_PCX=yes
2573 DEFAULT_wxUSE_IFF=no
2574 DEFAULT_wxUSE_PNM=yes
2575 DEFAULT_wxUSE_XPM=yes
2576 DEFAULT_wxUSE_ICO_CUR=yes
2577 DEFAULT_wxUSE_ACCESSIBILITY=no
2578
2579 DEFAULT_wxUSE_MONOLITHIC=no
2580 DEFAULT_wxUSE_PLUGINS=no
2581 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2582
f34ca037 2583 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2584fi
2585
2586
2587
f34ca037 2588
a848cd7e
SC
2589for toolkit in `echo $ALL_TOOLKITS`; do
2590 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2591 if test "x$LINE" != "x" ; then
2592 has_toolkit_in_cache=1
2593 eval "DEFAULT_$LINE"
2594 eval "CACHE_$toolkit=1"
f34ca037
MW
2595
2596 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2597 if test "x$LINE" != "x" ; then
2598 eval "DEFAULT_$LINE"
2599 fi
a848cd7e
SC
2600 fi
2601done
2602
2603
2604
2605 enablestring=
2606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2607echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2608 no_cache=0
2609 # Check whether --enable-gui or --disable-gui was given.
2610if test "${enable_gui+set}" = set; then
2611 enableval="$enable_gui"
2612
2613 if test "$enableval" = yes; then
2614 ac_cv_use_gui='wxUSE_GUI=yes'
2615 else
2616 ac_cv_use_gui='wxUSE_GUI=no'
2617 fi
2618
2619else
2620
2621 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2629
2630fi;
2631
2632 eval "$ac_cv_use_gui"
2633 if test "$no_cache" != 1; then
2634 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2635 fi
2636
2637 if test "$wxUSE_GUI" = yes; then
2638 echo "$as_me:$LINENO: result: yes" >&5
2639echo "${ECHO_T}yes" >&6
2640 else
2641 echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6
2643 fi
2644
2645
2646 enablestring=
2647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2648echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2649 no_cache=0
2650 # Check whether --enable-monolithic or --disable-monolithic was given.
2651if test "${enable_monolithic+set}" = set; then
2652 enableval="$enable_monolithic"
2653
2654 if test "$enableval" = yes; then
2655 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2656 else
2657 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2658 fi
2659
2660else
2661
2662 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2663 if test "x$LINE" != x ; then
2664 eval "DEFAULT_$LINE"
2665 else
2666 no_cache=1
2667 fi
2668
2669 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2670
2671fi;
2672
2673 eval "$ac_cv_use_monolithic"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_MONOLITHIC" = yes; then
2679 echo "$as_me:$LINENO: result: yes" >&5
2680echo "${ECHO_T}yes" >&6
2681 else
2682 echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6
2684 fi
2685
2686
2687 enablestring=
2688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2689echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2690 no_cache=0
2691 # Check whether --enable-plugins or --disable-plugins was given.
2692if test "${enable_plugins+set}" = set; then
2693 enableval="$enable_plugins"
2694
2695 if test "$enableval" = yes; then
2696 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2697 else
2698 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2699 fi
2700
2701else
2702
2703 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2704 if test "x$LINE" != x ; then
2705 eval "DEFAULT_$LINE"
2706 else
2707 no_cache=1
2708 fi
2709
2710 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2711
2712fi;
2713
2714 eval "$ac_cv_use_plugins"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_PLUGINS" = yes; then
2720 echo "$as_me:$LINENO: result: yes" >&5
2721echo "${ECHO_T}yes" >&6
2722 else
2723 echo "$as_me:$LINENO: result: no" >&5
2724echo "${ECHO_T}no" >&6
2725 fi
2726
2727
1c14217d
VZ
2728 withstring=without
2729 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2730echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2731 no_cache=0
2732
2733# Check whether --with-subdirs or --without-subdirs was given.
2734if test "${with_subdirs+set}" = set; then
2735 withval="$with_subdirs"
2736
2737 if test "$withval" = yes; then
2738 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2739 else
2740 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2741 fi
2742
2743else
2744
2745 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2746 if test "x$LINE" != x ; then
2747 eval "DEFAULT_$LINE"
2748 else
2749 no_cache=1
2750 fi
2751
2752 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2753
2754fi;
2755
2756 eval "$ac_cv_use_subdirs"
2757 if test "$no_cache" != 1; then
2758 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2759 fi
2760
2761 if test "$wxWITH_SUBDIRS" = yes; then
2762 echo "$as_me:$LINENO: result: yes" >&5
2763echo "${ECHO_T}yes" >&6
2764 else
2765 echo "$as_me:$LINENO: result: no" >&5
2766echo "${ECHO_T}no" >&6
2767 fi
2768
2769
a848cd7e
SC
2770if test "$wxUSE_GUI" = "yes"; then
2771
2772
2773 enablestring=
2774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2775echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2776 no_cache=0
2777 # Check whether --enable-universal or --disable-universal was given.
2778if test "${enable_universal+set}" = set; then
2779 enableval="$enable_universal"
2780
2781 if test "$enableval" = yes; then
2782 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2783 else
2784 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2785 fi
2786
2787else
2788
2789 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
2796 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2797
2798fi;
2799
2800 eval "$ac_cv_use_universal"
2801 if test "$no_cache" != 1; then
2802 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2803 fi
2804
2805 if test "$wxUSE_UNIVERSAL" = yes; then
2806 echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
2808 else
2809 echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
2811 fi
2812
2813
2814# Check whether --with-gtk or --without-gtk was given.
2815if test "${with_gtk+set}" = set; then
2816 withval="$with_gtk"
2817 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2818fi;
2819
2820# Check whether --with-motif or --without-motif was given.
2821if test "${with_motif+set}" = set; then
2822 withval="$with_motif"
2823 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2824fi;
2825
2826# Check whether --with-mac or --without-mac was given.
2827if test "${with_mac+set}" = set; then
2828 withval="$with_mac"
c228d3a4 2829 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2830fi;
2831
2832# Check whether --with-cocoa or --without-cocoa was given.
2833if test "${with_cocoa+set}" = set; then
2834 withval="$with_cocoa"
c228d3a4 2835 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2836fi;
2837
2838# Check whether --with-wine or --without-wine was given.
2839if test "${with_wine+set}" = set; then
2840 withval="$with_wine"
2841 wxUSE_WINE="$withval" CACHE_WINE=1
2842fi;
2843
2844# Check whether --with-msw or --without-msw was given.
2845if test "${with_msw+set}" = set; then
2846 withval="$with_msw"
2847 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2848fi;
2849
2850# Check whether --with-pm or --without-pm was given.
2851if test "${with_pm+set}" = set; then
2852 withval="$with_pm"
2853 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2854fi;
2855
2856# Check whether --with-mgl or --without-mgl was given.
2857if test "${with_mgl+set}" = set; then
2858 withval="$with_mgl"
2859 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2860fi;
2861
b3c86150
VS
2862# Check whether --with-directfb or --without-directfb was given.
2863if test "${with_directfb+set}" = set; then
2864 withval="$with_directfb"
2865 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2866fi;
2867
a848cd7e
SC
2868# Check whether --with-microwin or --without-microwin was given.
2869if test "${with_microwin+set}" = set; then
2870 withval="$with_microwin"
2871 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2872fi;
2873
2874# Check whether --with-x11 or --without-x11 was given.
2875if test "${with_x11+set}" = set; then
2876 withval="$with_x11"
2877 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2878fi;
2879
2880 enablestring=
2881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2882echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2883 no_cache=0
2884 # Check whether --enable-nanox or --disable-nanox was given.
2885if test "${enable_nanox+set}" = set; then
2886 enableval="$enable_nanox"
2887
2888 if test "$enableval" = yes; then
2889 ac_cv_use_nanox='wxUSE_NANOX=yes'
2890 else
2891 ac_cv_use_nanox='wxUSE_NANOX=no'
2892 fi
2893
2894else
2895
2896 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2897 if test "x$LINE" != x ; then
2898 eval "DEFAULT_$LINE"
2899 else
2900 no_cache=1
2901 fi
2902
2903 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2904
2905fi;
2906
2907 eval "$ac_cv_use_nanox"
2908 if test "$no_cache" != 1; then
2909 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2910 fi
2911
2912 if test "$wxUSE_NANOX" = yes; then
2913 echo "$as_me:$LINENO: result: yes" >&5
2914echo "${ECHO_T}yes" >&6
2915 else
2916 echo "$as_me:$LINENO: result: no" >&5
2917echo "${ECHO_T}no" >&6
2918 fi
2919
2920
f34ca037
MW
2921# Check whether --enable-gtk2 or --disable-gtk2 was given.
2922if test "${enable_gtk2+set}" = set; then
2923 enableval="$enable_gtk2"
2924 wxUSE_GTK2="$enableval"
2925fi;
a848cd7e 2926
a848cd7e
SC
2927 enablestring=
2928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2929echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2930 no_cache=0
2931 # Check whether --enable-gpe or --disable-gpe was given.
2932if test "${enable_gpe+set}" = set; then
2933 enableval="$enable_gpe"
2934
2935 if test "$enableval" = yes; then
2936 ac_cv_use_gpe='wxUSE_GPE=yes'
2937 else
2938 ac_cv_use_gpe='wxUSE_GPE=no'
2939 fi
2940
2941else
2942
2943 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2944 if test "x$LINE" != x ; then
2945 eval "DEFAULT_$LINE"
2946 else
2947 no_cache=1
2948 fi
2949
2950 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2951
2952fi;
2953
2954 eval "$ac_cv_use_gpe"
2955 if test "$no_cache" != 1; then
2956 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2957 fi
2958
2959 if test "$wxUSE_GPE" = yes; then
2960 echo "$as_me:$LINENO: result: yes" >&5
2961echo "${ECHO_T}yes" >&6
2962 else
2963 echo "$as_me:$LINENO: result: no" >&5
2964echo "${ECHO_T}no" >&6
2965 fi
2966
2967
2968
2969 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2970echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2971 no_cache=0
2972
2973# Check whether --with-libpng or --without-libpng was given.
2974if test "${with_libpng+set}" = set; then
2975 withval="$with_libpng"
2976
2977 if test "$withval" = yes; then
2978 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2979 elif test "$withval" = no; then
2980 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2981 elif test "$withval" = sys; then
2982 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2983 elif test "$withval" = builtin; then
2984 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2985 else
2986 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2987echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2988 { (exit 1); exit 1; }; }
2989 fi
2990
2991else
2992
2993 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2994 if test "x$LINE" != x ; then
2995 eval "DEFAULT_$LINE"
2996 else
2997 no_cache=1
2998 fi
2999
3000 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3001
3002fi;
3003
3004 eval "$ac_cv_use_libpng"
3005 if test "$no_cache" != 1; then
3006 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3007 fi
3008
3009 if test "$wxUSE_LIBPNG" = yes; then
3010 echo "$as_me:$LINENO: result: yes" >&5
3011echo "${ECHO_T}yes" >&6
3012 elif test "$wxUSE_LIBPNG" = no; then
3013 echo "$as_me:$LINENO: result: no" >&5
3014echo "${ECHO_T}no" >&6
3015 elif test "$wxUSE_LIBPNG" = sys; then
3016 echo "$as_me:$LINENO: result: system version" >&5
3017echo "${ECHO_T}system version" >&6
3018 elif test "$wxUSE_LIBPNG" = builtin; then
3019 echo "$as_me:$LINENO: result: builtin version" >&5
3020echo "${ECHO_T}builtin version" >&6
3021 else
3022 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3023echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3024 { (exit 1); exit 1; }; }
3025 fi
3026
3027
3028 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3029echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3030 no_cache=0
3031
3032# Check whether --with-libjpeg or --without-libjpeg was given.
3033if test "${with_libjpeg+set}" = set; then
3034 withval="$with_libjpeg"
3035
3036 if test "$withval" = yes; then
3037 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3038 elif test "$withval" = no; then
3039 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3040 elif test "$withval" = sys; then
3041 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3042 elif test "$withval" = builtin; then
3043 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3044 else
3045 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3046echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3047 { (exit 1); exit 1; }; }
3048 fi
3049
3050else
3051
3052 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3053 if test "x$LINE" != x ; then
3054 eval "DEFAULT_$LINE"
3055 else
3056 no_cache=1
3057 fi
3058
3059 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3060
3061fi;
3062
3063 eval "$ac_cv_use_libjpeg"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_LIBJPEG" = yes; then
3069 echo "$as_me:$LINENO: result: yes" >&5
3070echo "${ECHO_T}yes" >&6
3071 elif test "$wxUSE_LIBJPEG" = no; then
3072 echo "$as_me:$LINENO: result: no" >&5
3073echo "${ECHO_T}no" >&6
3074 elif test "$wxUSE_LIBJPEG" = sys; then
3075 echo "$as_me:$LINENO: result: system version" >&5
3076echo "${ECHO_T}system version" >&6
3077 elif test "$wxUSE_LIBJPEG" = builtin; then
3078 echo "$as_me:$LINENO: result: builtin version" >&5
3079echo "${ECHO_T}builtin version" >&6
3080 else
3081 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3082echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3083 { (exit 1); exit 1; }; }
3084 fi
3085
3086
3087 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3088echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3089 no_cache=0
3090
3091# Check whether --with-libtiff or --without-libtiff was given.
3092if test "${with_libtiff+set}" = set; then
3093 withval="$with_libtiff"
3094
3095 if test "$withval" = yes; then
3096 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3097 elif test "$withval" = no; then
3098 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3099 elif test "$withval" = sys; then
3100 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3101 elif test "$withval" = builtin; then
3102 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3103 else
3104 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3105echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3106 { (exit 1); exit 1; }; }
3107 fi
3108
3109else
3110
3111 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3112 if test "x$LINE" != x ; then
3113 eval "DEFAULT_$LINE"
3114 else
3115 no_cache=1
3116 fi
3117
3118 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3119
3120fi;
3121
3122 eval "$ac_cv_use_libtiff"
3123 if test "$no_cache" != 1; then
3124 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3125 fi
3126
3127 if test "$wxUSE_LIBTIFF" = yes; then
3128 echo "$as_me:$LINENO: result: yes" >&5
3129echo "${ECHO_T}yes" >&6
3130 elif test "$wxUSE_LIBTIFF" = no; then
3131 echo "$as_me:$LINENO: result: no" >&5
3132echo "${ECHO_T}no" >&6
3133 elif test "$wxUSE_LIBTIFF" = sys; then
3134 echo "$as_me:$LINENO: result: system version" >&5
3135echo "${ECHO_T}system version" >&6
3136 elif test "$wxUSE_LIBTIFF" = builtin; then
3137 echo "$as_me:$LINENO: result: builtin version" >&5
3138echo "${ECHO_T}builtin version" >&6
3139 else
3140 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3141echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3142 { (exit 1); exit 1; }; }
3143 fi
3144
3145
3146 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3147echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3148 no_cache=0
3149
3150# Check whether --with-libxpm or --without-libxpm was given.
3151if test "${with_libxpm+set}" = set; then
3152 withval="$with_libxpm"
3153
3154 if test "$withval" = yes; then
3155 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3156 elif test "$withval" = no; then
3157 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3158 elif test "$withval" = sys; then
3159 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3160 elif test "$withval" = builtin; then
3161 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3162 else
3163 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3164echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3165 { (exit 1); exit 1; }; }
3166 fi
3167
3168else
3169
3170 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3171 if test "x$LINE" != x ; then
3172 eval "DEFAULT_$LINE"
3173 else
3174 no_cache=1
3175 fi
3176
3177 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3178
3179fi;
3180
3181 eval "$ac_cv_use_libxpm"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_LIBXPM" = yes; then
3187 echo "$as_me:$LINENO: result: yes" >&5
3188echo "${ECHO_T}yes" >&6
3189 elif test "$wxUSE_LIBXPM" = no; then
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192 elif test "$wxUSE_LIBXPM" = sys; then
3193 echo "$as_me:$LINENO: result: system version" >&5
3194echo "${ECHO_T}system version" >&6
3195 elif test "$wxUSE_LIBXPM" = builtin; then
3196 echo "$as_me:$LINENO: result: builtin version" >&5
3197echo "${ECHO_T}builtin version" >&6
3198 else
3199 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3200echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3201 { (exit 1); exit 1; }; }
3202 fi
3203
3204
1c14217d
VZ
3205 withstring=
3206 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3207echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3208 no_cache=0
3209
3210# Check whether --with-libmspack or --without-libmspack was given.
3211if test "${with_libmspack+set}" = set; then
3212 withval="$with_libmspack"
3213
3214 if test "$withval" = yes; then
3215 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3216 else
3217 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3218 fi
3219
3220else
3221
3222 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3223 if test "x$LINE" != x ; then
3224 eval "DEFAULT_$LINE"
3225 else
3226 no_cache=1
3227 fi
3228
3229 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3230
3231fi;
3232
3233 eval "$ac_cv_use_libmspack"
3234 if test "$no_cache" != 1; then
3235 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3236 fi
3237
3238 if test "$wxUSE_LIBMSPACK" = yes; then
3239 echo "$as_me:$LINENO: result: yes" >&5
3240echo "${ECHO_T}yes" >&6
3241 else
3242 echo "$as_me:$LINENO: result: no" >&5
3243echo "${ECHO_T}no" >&6
3244 fi
3245
3246
1c14217d
VZ
3247 withstring=
3248 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3249echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3250 no_cache=0
3251
3252# Check whether --with-sdl or --without-sdl was given.
3253if test "${with_sdl+set}" = set; then
3254 withval="$with_sdl"
3255
3256 if test "$withval" = yes; then
3257 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3258 else
3259 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3260 fi
3261
3262else
3263
3264 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3265 if test "x$LINE" != x ; then
3266 eval "DEFAULT_$LINE"
3267 else
3268 no_cache=1
3269 fi
3270
3271 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3272
3273fi;
3274
3275 eval "$ac_cv_use_sdl"
3276 if test "$no_cache" != 1; then
3277 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3278 fi
3279
3280 if test "$wxUSE_LIBSDL" = yes; then
3281 echo "$as_me:$LINENO: result: yes" >&5
3282echo "${ECHO_T}yes" >&6
3283 else
3284 echo "$as_me:$LINENO: result: no" >&5
3285echo "${ECHO_T}no" >&6
3286 fi
3287
3288
1c14217d
VZ
3289 withstring=
3290 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3291echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3292 no_cache=0
3293
3294# Check whether --with-gnomeprint or --without-gnomeprint was given.
3295if test "${with_gnomeprint+set}" = set; then
3296 withval="$with_gnomeprint"
3297
3298 if test "$withval" = yes; then
3299 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3300 else
3301 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3302 fi
3303
3304else
3305
3306 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3307 if test "x$LINE" != x ; then
3308 eval "DEFAULT_$LINE"
3309 else
3310 no_cache=1
3311 fi
3312
3313 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3314
3315fi;
3316
3317 eval "$ac_cv_use_gnomeprint"
3318 if test "$no_cache" != 1; then
3319 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3320 fi
3321
3322 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3323 echo "$as_me:$LINENO: result: yes" >&5
3324echo "${ECHO_T}yes" >&6
3325 else
3326 echo "$as_me:$LINENO: result: no" >&5
3327echo "${ECHO_T}no" >&6
3328 fi
3329
3330
2b850ae1
RR
3331 withstring=
3332 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3333echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3334 no_cache=0
3335
3336# Check whether --with-gnomevfs or --without-gnomevfs was given.
3337if test "${with_gnomevfs+set}" = set; then
3338 withval="$with_gnomevfs"
3339
3340 if test "$withval" = yes; then
3341 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3342 else
3343 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3344 fi
3345
3346else
3347
3348 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3356
3357fi;
3358
3359 eval "$ac_cv_use_gnomevfs"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3365 echo "$as_me:$LINENO: result: yes" >&5
3366echo "${ECHO_T}yes" >&6
3367 else
3368 echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6
3370 fi
3371
3372
3565d135
RR
3373 withstring=
3374 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3375echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3376 no_cache=0
3377
3378# Check whether --with-hildon or --without-hildon was given.
3379if test "${with_hildon+set}" = set; then
3380 withval="$with_hildon"
3381
3382 if test "$withval" = yes; then
3383 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3384 else
3385 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3386 fi
3387
3388else
3389
3390 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3391 if test "x$LINE" != x ; then
3392 eval "DEFAULT_$LINE"
3393 else
3394 no_cache=1
3395 fi
3396
3397 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3398
3399fi;
3400
3401 eval "$ac_cv_use_hildon"
3402 if test "$no_cache" != 1; then
3403 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3404 fi
3405
3406 if test "$wxUSE_LIBHILDON" = yes; then
3407 echo "$as_me:$LINENO: result: yes" >&5
3408echo "${ECHO_T}yes" >&6
3409 else
3410 echo "$as_me:$LINENO: result: no" >&5
3411echo "${ECHO_T}no" >&6
3412 fi
3413
3414
1c14217d
VZ
3415 withstring=
3416 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3417echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3418 no_cache=0
3419
3420# Check whether --with-opengl or --without-opengl was given.
3421if test "${with_opengl+set}" = set; then
3422 withval="$with_opengl"
3423
3424 if test "$withval" = yes; then
3425 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3426 else
3427 ac_cv_use_opengl='wxUSE_OPENGL=no'
3428 fi
3429
3430else
3431
3432 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3433 if test "x$LINE" != x ; then
3434 eval "DEFAULT_$LINE"
3435 else
3436 no_cache=1
3437 fi
3438
3439 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3440
3441fi;
3442
3443 eval "$ac_cv_use_opengl"
3444 if test "$no_cache" != 1; then
3445 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3446 fi
3447
3448 if test "$wxUSE_OPENGL" = yes; then
3449 echo "$as_me:$LINENO: result: yes" >&5
3450echo "${ECHO_T}yes" >&6
3451 else
3452 echo "$as_me:$LINENO: result: no" >&5
3453echo "${ECHO_T}no" >&6
3454 fi
3455
3456
3457fi
3458
3459
1c14217d
VZ
3460 withstring=
3461 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3462echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3463 no_cache=0
3464
3465# Check whether --with-dmalloc or --without-dmalloc was given.
3466if test "${with_dmalloc+set}" = set; then
3467 withval="$with_dmalloc"
3468
3469 if test "$withval" = yes; then
3470 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3471 else
3472 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3473 fi
3474
3475else
3476
3477 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3478 if test "x$LINE" != x ; then
3479 eval "DEFAULT_$LINE"
3480 else
3481 no_cache=1
3482 fi
3483
3484 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3485
3486fi;
3487
3488 eval "$ac_cv_use_dmalloc"
3489 if test "$no_cache" != 1; then
3490 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3491 fi
3492
3493 if test "$wxUSE_DMALLOC" = yes; then
3494 echo "$as_me:$LINENO: result: yes" >&5
3495echo "${ECHO_T}yes" >&6
3496 else
3497 echo "$as_me:$LINENO: result: no" >&5
3498echo "${ECHO_T}no" >&6
3499 fi
3500
3501
3502 echo "$as_me:$LINENO: checking for --with-regex" >&5
3503echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3504 no_cache=0
3505
3506# Check whether --with-regex or --without-regex was given.
3507if test "${with_regex+set}" = set; then
3508 withval="$with_regex"
3509
3510 if test "$withval" = yes; then
3511 ac_cv_use_regex='wxUSE_REGEX=yes'
3512 elif test "$withval" = no; then
3513 ac_cv_use_regex='wxUSE_REGEX=no'
3514 elif test "$withval" = sys; then
3515 ac_cv_use_regex='wxUSE_REGEX=sys'
3516 elif test "$withval" = builtin; then
3517 ac_cv_use_regex='wxUSE_REGEX=builtin'
3518 else
3519 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3520echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3521 { (exit 1); exit 1; }; }
3522 fi
3523
3524else
3525
3526 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3534
3535fi;
3536
3537 eval "$ac_cv_use_regex"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_REGEX" = yes; then
3543 echo "$as_me:$LINENO: result: yes" >&5
3544echo "${ECHO_T}yes" >&6
3545 elif test "$wxUSE_REGEX" = no; then
3546 echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
3548 elif test "$wxUSE_REGEX" = sys; then
3549 echo "$as_me:$LINENO: result: system version" >&5
3550echo "${ECHO_T}system version" >&6
3551 elif test "$wxUSE_REGEX" = builtin; then
3552 echo "$as_me:$LINENO: result: builtin version" >&5
3553echo "${ECHO_T}builtin version" >&6
3554 else
3555 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3556echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3557 { (exit 1); exit 1; }; }
3558 fi
3559
3560
3561 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3562echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3563 no_cache=0
3564
3565# Check whether --with-zlib or --without-zlib was given.
3566if test "${with_zlib+set}" = set; then
3567 withval="$with_zlib"
3568
3569 if test "$withval" = yes; then
3570 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3571 elif test "$withval" = no; then
3572 ac_cv_use_zlib='wxUSE_ZLIB=no'
3573 elif test "$withval" = sys; then
3574 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3575 elif test "$withval" = builtin; then
3576 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3577 else
3578 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3579echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3580 { (exit 1); exit 1; }; }
3581 fi
3582
3583else
3584
3585 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3593
3594fi;
3595
3596 eval "$ac_cv_use_zlib"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_ZLIB" = yes; then
3602 echo "$as_me:$LINENO: result: yes" >&5
3603echo "${ECHO_T}yes" >&6
3604 elif test "$wxUSE_ZLIB" = no; then
3605 echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
3607 elif test "$wxUSE_ZLIB" = sys; then
3608 echo "$as_me:$LINENO: result: system version" >&5
3609echo "${ECHO_T}system version" >&6
3610 elif test "$wxUSE_ZLIB" = builtin; then
3611 echo "$as_me:$LINENO: result: builtin version" >&5
3612echo "${ECHO_T}builtin version" >&6
3613 else
3614 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3615echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3616 { (exit 1); exit 1; }; }
3617 fi
3618
3619
3620 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3621echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3622 no_cache=0
3623
3624# Check whether --with-odbc or --without-odbc was given.
3625if test "${with_odbc+set}" = set; then
3626 withval="$with_odbc"
3627
3628 if test "$withval" = yes; then
3629 ac_cv_use_odbc='wxUSE_ODBC=yes'
3630 elif test "$withval" = no; then
3631 ac_cv_use_odbc='wxUSE_ODBC=no'
3632 elif test "$withval" = sys; then
3633 ac_cv_use_odbc='wxUSE_ODBC=sys'
3634 elif test "$withval" = builtin; then
3635 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3636 else
3637 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3638echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3639 { (exit 1); exit 1; }; }
3640 fi
3641
3642else
3643
3644 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3652
3653fi;
3654
3655 eval "$ac_cv_use_odbc"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_ODBC" = yes; then
3661 echo "$as_me:$LINENO: result: yes" >&5
3662echo "${ECHO_T}yes" >&6
3663 elif test "$wxUSE_ODBC" = no; then
3664 echo "$as_me:$LINENO: result: no" >&5
3665echo "${ECHO_T}no" >&6
3666 elif test "$wxUSE_ODBC" = sys; then
3667 echo "$as_me:$LINENO: result: system version" >&5
3668echo "${ECHO_T}system version" >&6
3669 elif test "$wxUSE_ODBC" = builtin; then
3670 echo "$as_me:$LINENO: result: builtin version" >&5
3671echo "${ECHO_T}builtin version" >&6
3672 else
3673 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3674echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3675 { (exit 1); exit 1; }; }
3676 fi
3677
3678
3679 echo "$as_me:$LINENO: checking for --with-expat" >&5
3680echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3681 no_cache=0
3682
3683# Check whether --with-expat or --without-expat was given.
3684if test "${with_expat+set}" = set; then
3685 withval="$with_expat"
3686
3687 if test "$withval" = yes; then
3688 ac_cv_use_expat='wxUSE_EXPAT=yes'
3689 elif test "$withval" = no; then
3690 ac_cv_use_expat='wxUSE_EXPAT=no'
3691 elif test "$withval" = sys; then
3692 ac_cv_use_expat='wxUSE_EXPAT=sys'
3693 elif test "$withval" = builtin; then
3694 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3695 else
3696 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3697echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3698 { (exit 1); exit 1; }; }
3699 fi
3700
3701else
3702
3703 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3704 if test "x$LINE" != x ; then
3705 eval "DEFAULT_$LINE"
3706 else
3707 no_cache=1
3708 fi
3709
3710 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3711
3712fi;
3713
3714 eval "$ac_cv_use_expat"
3715 if test "$no_cache" != 1; then
3716 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3717 fi
3718
3719 if test "$wxUSE_EXPAT" = yes; then
3720 echo "$as_me:$LINENO: result: yes" >&5
3721echo "${ECHO_T}yes" >&6
3722 elif test "$wxUSE_EXPAT" = no; then
3723 echo "$as_me:$LINENO: result: no" >&5
3724echo "${ECHO_T}no" >&6
3725 elif test "$wxUSE_EXPAT" = sys; then
3726 echo "$as_me:$LINENO: result: system version" >&5
3727echo "${ECHO_T}system version" >&6
3728 elif test "$wxUSE_EXPAT" = builtin; then
3729 echo "$as_me:$LINENO: result: builtin version" >&5
3730echo "${ECHO_T}builtin version" >&6
3731 else
3732 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3733echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3734 { (exit 1); exit 1; }; }
3735 fi
3736
3737
3738
3739
3740 enablestring=
3741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3742echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3743 no_cache=0
3744 # Check whether --enable-shared or --disable-shared was given.
3745if test "${enable_shared+set}" = set; then
3746 enableval="$enable_shared"
3747
3748 if test "$enableval" = yes; then
3749 ac_cv_use_shared='wxUSE_SHARED=yes'
3750 else
3751 ac_cv_use_shared='wxUSE_SHARED=no'
3752 fi
3753
3754else
3755
3756 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3764
3765fi;
3766
3767 eval "$ac_cv_use_shared"
3768 if test "$no_cache" != 1; then
3769 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3770 fi
3771
3772 if test "$wxUSE_SHARED" = yes; then
3773 echo "$as_me:$LINENO: result: yes" >&5
3774echo "${ECHO_T}yes" >&6
3775 else
3776 echo "$as_me:$LINENO: result: no" >&5
3777echo "${ECHO_T}no" >&6
3778 fi
3779
3780
3781 enablestring=
3782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3783echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3784 no_cache=0
3785 # Check whether --enable-optimise or --disable-optimise was given.
3786if test "${enable_optimise+set}" = set; then
3787 enableval="$enable_optimise"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3791 else
3792 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3805
3806fi;
3807
3808 eval "$ac_cv_use_optimise"
3809 if test "$no_cache" != 1; then
3810 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3811 fi
3812
3813 if test "$wxUSE_OPTIMISE" = yes; then
3814 echo "$as_me:$LINENO: result: yes" >&5
3815echo "${ECHO_T}yes" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819 fi
3820
3821
3822 enablestring=
3823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3824echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3825 no_cache=0
3826 # Check whether --enable-debug or --disable-debug was given.
3827if test "${enable_debug+set}" = set; then
3828 enableval="$enable_debug"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_debug='wxUSE_DEBUG=yes'
3832 else
3833 ac_cv_use_debug='wxUSE_DEBUG=no'
3834 fi
3835
3836else
3837
3838 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3846
3847fi;
3848
3849 eval "$ac_cv_use_debug"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_DEBUG" = yes; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6
3857 else
3858 echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6
3860 fi
3861
3862
3863 enablestring=
3864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3865echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3866 no_cache=0
3867 # Check whether --enable-stl or --disable-stl was given.
3868if test "${enable_stl+set}" = set; then
3869 enableval="$enable_stl"
3870
3871 if test "$enableval" = yes; then
3872 ac_cv_use_stl='wxUSE_STL=yes'
3873 else
3874 ac_cv_use_stl='wxUSE_STL=no'
3875 fi
3876
3877else
3878
3879 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3880 if test "x$LINE" != x ; then
3881 eval "DEFAULT_$LINE"
3882 else
3883 no_cache=1
3884 fi
3885
3886 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3887
3888fi;
3889
3890 eval "$ac_cv_use_stl"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_STL" = yes; then
3896 echo "$as_me:$LINENO: result: yes" >&5
3897echo "${ECHO_T}yes" >&6
3898 else
3899 echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901 fi
3902
3903if test "$USE_OS2" = "1"; then
69120ee4 3904 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3905
3906 enablestring=
3907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3908echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3909 no_cache=0
3910 # Check whether --enable-omf or --disable-omf was given.
3911if test "${enable_omf+set}" = set; then
3912 enableval="$enable_omf"
3913
3914 if test "$enableval" = yes; then
3915 ac_cv_use_omf='wxUSE_OMF=yes'
3916 else
3917 ac_cv_use_omf='wxUSE_OMF=no'
3918 fi
3919
3920else
3921
3922 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3930
3931fi;
3932
3933 eval "$ac_cv_use_omf"
3934 if test "$no_cache" != 1; then
3935 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3936 fi
3937
3938 if test "$wxUSE_OMF" = yes; then
3939 echo "$as_me:$LINENO: result: yes" >&5
3940echo "${ECHO_T}yes" >&6
3941 else
3942 echo "$as_me:$LINENO: result: no" >&5
3943echo "${ECHO_T}no" >&6
3944 fi
3945
3946fi
3947
3948if test "$wxUSE_DEBUG" = "yes"; then
3949 DEFAULT_wxUSE_DEBUG_FLAG=yes
3950 DEFAULT_wxUSE_DEBUG_INFO=yes
3951 BUILD=debug
3952elif test "$wxUSE_DEBUG" = "no"; then
3953 DEFAULT_wxUSE_DEBUG_FLAG=no
3954 DEFAULT_wxUSE_DEBUG_INFO=no
3955 BUILD=release
3956fi
3957
3958
3959 enablestring=
3960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3961echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3962 no_cache=0
3963 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3964if test "${enable_debug_flag+set}" = set; then
3965 enableval="$enable_debug_flag"
3966
3967 if test "$enableval" = yes; then
3968 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3969 else
3970 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3971 fi
3972
3973else
3974
3975 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3976 if test "x$LINE" != x ; then
3977 eval "DEFAULT_$LINE"
3978 else
3979 no_cache=1
3980 fi
3981
3982 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3983
3984fi;
3985
3986 eval "$ac_cv_use_debug_flag"
3987 if test "$no_cache" != 1; then
3988 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3989 fi
3990
3991 if test "$wxUSE_DEBUG_FLAG" = yes; then
3992 echo "$as_me:$LINENO: result: yes" >&5
3993echo "${ECHO_T}yes" >&6
3994 else
3995 echo "$as_me:$LINENO: result: no" >&5
3996echo "${ECHO_T}no" >&6
3997 fi
3998
3999
4000 enablestring=
4001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4002echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4003 no_cache=0
4004 # Check whether --enable-debug_info or --disable-debug_info was given.
4005if test "${enable_debug_info+set}" = set; then
4006 enableval="$enable_debug_info"
4007
4008 if test "$enableval" = yes; then
4009 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4010 else
4011 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4012 fi
4013
4014else
4015
4016 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4017 if test "x$LINE" != x ; then
4018 eval "DEFAULT_$LINE"
4019 else
4020 no_cache=1
4021 fi
4022
4023 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4024
4025fi;
4026
4027 eval "$ac_cv_use_debug_info"
4028 if test "$no_cache" != 1; then
4029 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4030 fi
4031
4032 if test "$wxUSE_DEBUG_INFO" = yes; then
4033 echo "$as_me:$LINENO: result: yes" >&5
4034echo "${ECHO_T}yes" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no" >&5
4037echo "${ECHO_T}no" >&6
4038 fi
4039
4040
4041 enablestring=
4042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4043echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4044 no_cache=0
4045 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4046if test "${enable_debug_gdb+set}" = set; then
4047 enableval="$enable_debug_gdb"
4048
4049 if test "$enableval" = yes; then
4050 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4051 else
4052 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4053 fi
4054
4055else
4056
4057 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4058 if test "x$LINE" != x ; then
4059 eval "DEFAULT_$LINE"
4060 else
4061 no_cache=1
4062 fi
4063
4064 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4065
4066fi;
4067
4068 eval "$ac_cv_use_debug_gdb"
4069 if test "$no_cache" != 1; then
4070 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4071 fi
4072
4073 if test "$wxUSE_DEBUG_GDB" = yes; then
4074 echo "$as_me:$LINENO: result: yes" >&5
4075echo "${ECHO_T}yes" >&6
4076 else
4077 echo "$as_me:$LINENO: result: no" >&5
4078echo "${ECHO_T}no" >&6
4079 fi
4080
4081
4082 enablestring=
4083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4084echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4085 no_cache=0
4086 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4087if test "${enable_debug_cntxt+set}" = set; then
4088 enableval="$enable_debug_cntxt"
4089
4090 if test "$enableval" = yes; then
4091 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4092 else
4093 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4094 fi
4095
4096else
4097
4098 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4099 if test "x$LINE" != x ; then
4100 eval "DEFAULT_$LINE"
4101 else
4102 no_cache=1
4103 fi
4104
4105 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4106
4107fi;
4108
4109 eval "$ac_cv_use_debug_cntxt"
4110 if test "$no_cache" != 1; then
4111 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4112 fi
4113
4114 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4115 echo "$as_me:$LINENO: result: yes" >&5
4116echo "${ECHO_T}yes" >&6
4117 else
4118 echo "$as_me:$LINENO: result: no" >&5
4119echo "${ECHO_T}no" >&6
4120 fi
4121
4122
4123 enablestring=
4124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4125echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4126 no_cache=0
4127 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4128if test "${enable_mem_tracing+set}" = set; then
4129 enableval="$enable_mem_tracing"
4130
4131 if test "$enableval" = yes; then
4132 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4133 else
4134 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4135 fi
4136
4137else
4138
4139 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4140 if test "x$LINE" != x ; then
4141 eval "DEFAULT_$LINE"
4142 else
4143 no_cache=1
4144 fi
4145
4146 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4147
4148fi;
4149
4150 eval "$ac_cv_use_mem_tracing"
4151 if test "$no_cache" != 1; then
4152 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4153 fi
4154
4155 if test "$wxUSE_MEM_TRACING" = yes; then
4156 echo "$as_me:$LINENO: result: yes" >&5
4157echo "${ECHO_T}yes" >&6
4158 else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161 fi
4162
4163
4164 enablestring=
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4167 no_cache=0
4168 # Check whether --enable-profile or --disable-profile was given.
4169if test "${enable_profile+set}" = set; then
4170 enableval="$enable_profile"
4171
4172 if test "$enableval" = yes; then
4173 ac_cv_use_profile='wxUSE_PROFILE=yes'
4174 else
4175 ac_cv_use_profile='wxUSE_PROFILE=no'
4176 fi
4177
4178else
4179
4180 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
4187 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4188
4189fi;
4190
4191 eval "$ac_cv_use_profile"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$wxUSE_PROFILE" = yes; then
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
4199 else
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202 fi
4203
4204
4205 enablestring=
4206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4207echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4208 no_cache=0
4209 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4210if test "${enable_no_rtti+set}" = set; then
4211 enableval="$enable_no_rtti"
4212
4213 if test "$enableval" = yes; then
4214 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4215 else
4216 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4217 fi
4218
4219else
4220
4221 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4222 if test "x$LINE" != x ; then
4223 eval "DEFAULT_$LINE"
4224 else
4225 no_cache=1
4226 fi
4227
4228 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4229
4230fi;
4231
4232 eval "$ac_cv_use_no_rtti"
4233 if test "$no_cache" != 1; then
4234 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4235 fi
4236
4237 if test "$wxUSE_NO_RTTI" = yes; then
4238 echo "$as_me:$LINENO: result: yes" >&5
4239echo "${ECHO_T}yes" >&6
4240 else
4241 echo "$as_me:$LINENO: result: no" >&5
4242echo "${ECHO_T}no" >&6
4243 fi
4244
4245
4246 enablestring=
4247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4248echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4249 no_cache=0
4250 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4251if test "${enable_no_exceptions+set}" = set; then
4252 enableval="$enable_no_exceptions"
4253
4254 if test "$enableval" = yes; then
4255 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4256 else
4257 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4258 fi
4259
4260else
4261
4262 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4263 if test "x$LINE" != x ; then
4264 eval "DEFAULT_$LINE"
4265 else
4266 no_cache=1
4267 fi
4268
4269 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4270
4271fi;
4272
4273 eval "$ac_cv_use_no_exceptions"
4274 if test "$no_cache" != 1; then
4275 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4276 fi
4277
4278 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4279 echo "$as_me:$LINENO: result: yes" >&5
4280echo "${ECHO_T}yes" >&6
4281 else
4282 echo "$as_me:$LINENO: result: no" >&5
4283echo "${ECHO_T}no" >&6
4284 fi
4285
4286
4287 enablestring=
4288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4289echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4290 no_cache=0
4291 # Check whether --enable-permissive or --disable-permissive was given.
4292if test "${enable_permissive+set}" = set; then
4293 enableval="$enable_permissive"
4294
4295 if test "$enableval" = yes; then
4296 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4297 else
4298 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4299 fi
4300
4301else
4302
4303 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4304 if test "x$LINE" != x ; then
4305 eval "DEFAULT_$LINE"
4306 else
4307 no_cache=1
4308 fi
4309
4310 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4311
4312fi;
4313
4314 eval "$ac_cv_use_permissive"
4315 if test "$no_cache" != 1; then
4316 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4317 fi
4318
4319 if test "$wxUSE_PERMISSIVE" = yes; then
4320 echo "$as_me:$LINENO: result: yes" >&5
4321echo "${ECHO_T}yes" >&6
4322 else
4323 echo "$as_me:$LINENO: result: no" >&5
4324echo "${ECHO_T}no" >&6
4325 fi
4326
4327
4328 enablestring=
4329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4330echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4331 no_cache=0
4332 # Check whether --enable-no_deps or --disable-no_deps was given.
4333if test "${enable_no_deps+set}" = set; then
4334 enableval="$enable_no_deps"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4338 else
4339 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4340 fi
4341
4342else
4343
4344 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4352
4353fi;
4354
4355 eval "$ac_cv_use_no_deps"
4356 if test "$no_cache" != 1; then
4357 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4358 fi
4359
4360 if test "$wxUSE_NO_DEPS" = yes; then
4361 echo "$as_me:$LINENO: result: yes" >&5
4362echo "${ECHO_T}yes" >&6
4363 else
4364 echo "$as_me:$LINENO: result: no" >&5
4365echo "${ECHO_T}no" >&6
4366 fi
4367
4368
95768535 4369 enablestring=
7afc46ab
KO
4370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4371echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4372 no_cache=0
4373 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4374if test "${enable_universal_binary+set}" = set; then
4375 enableval="$enable_universal_binary"
4376
95768535 4377 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4378
4379else
4380
4381 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
95768535 4384 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4385 else
4386 no_cache=1
95768535 4387 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4388 fi
4389
7afc46ab
KO
4390fi;
4391
95768535 4392 eval "$wx_cv_use_universal_binary"
7afc46ab 4393 if test "$no_cache" != 1; then
95768535 4394 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4395 fi
4396
95768535
MW
4397 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4398echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4399
4400
a848cd7e 4401
dee1a63f
MB
4402 enablestring=enable
4403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4404echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4405 no_cache=0
dee1a63f
MB
4406 # Check whether --enable-compat24 or --disable-compat24 was given.
4407if test "${enable_compat24+set}" = set; then
4408 enableval="$enable_compat24"
a848cd7e
SC
4409
4410 if test "$enableval" = yes; then
dee1a63f 4411 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4412 else
dee1a63f 4413 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4414 fi
4415
4416else
4417
dee1a63f 4418 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4419 if test "x$LINE" != x ; then
4420 eval "DEFAULT_$LINE"
4421 else
4422 no_cache=1
4423 fi
4424
dee1a63f 4425 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4426
4427fi;
4428
dee1a63f 4429 eval "$ac_cv_use_compat24"
a848cd7e 4430 if test "$no_cache" != 1; then
dee1a63f 4431 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4432 fi
4433
dee1a63f 4434 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4435 echo "$as_me:$LINENO: result: yes" >&5
4436echo "${ECHO_T}yes" >&6
4437 else
4438 echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6
4440 fi
4441
4442
4443 enablestring=disable
dee1a63f
MB
4444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4445echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4446 no_cache=0
dee1a63f
MB
4447 # Check whether --enable-compat26 or --disable-compat26 was given.
4448if test "${enable_compat26+set}" = set; then
4449 enableval="$enable_compat26"
a848cd7e
SC
4450
4451 if test "$enableval" = yes; then
dee1a63f 4452 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4453 else
dee1a63f 4454 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4455 fi
4456
4457else
4458
dee1a63f 4459 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
dee1a63f 4466 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4467
4468fi;
4469
dee1a63f 4470 eval "$ac_cv_use_compat26"
a848cd7e 4471 if test "$no_cache" != 1; then
dee1a63f 4472 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4473 fi
4474
dee1a63f 4475 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4476 echo "$as_me:$LINENO: result: yes" >&5
4477echo "${ECHO_T}yes" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6
4481 fi
4482
4483
ffa0583f
RL
4484
4485 enablestring=
4486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4487echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4488 no_cache=0
4489 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4490if test "${enable_rpath+set}" = set; then
4491 enableval="$enable_rpath"
ffa0583f
RL
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_rpath='wxUSE_RPATH=yes'
4495 else
4496 ac_cv_use_rpath='wxUSE_RPATH=no'
4497 fi
4498
4499else
4500
4501 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4509
a848cd7e
SC
4510fi;
4511
ffa0583f
RL
4512 eval "$ac_cv_use_rpath"
4513 if test "$no_cache" != 1; then
4514 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4515 fi
4516
4517 if test "$wxUSE_RPATH" = yes; then
4518 echo "$as_me:$LINENO: result: yes" >&5
4519echo "${ECHO_T}yes" >&6
4520 else
4521 echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6
4523 fi
4524
a848cd7e
SC
4525
4526
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-intl or --disable-intl was given.
4534if test "${enable_intl+set}" = set; then
4535 enableval="$enable_intl"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_intl='wxUSE_INTL=yes'
4539 else
4540 ac_cv_use_intl='wxUSE_INTL=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_INTL" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4553
4554fi;
4555
4556 eval "$ac_cv_use_intl"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_INTL" = 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 enablestring=
4571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4572echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4573 no_cache=0
4574 # Check whether --enable-config or --disable-config was given.
4575if test "${enable_config+set}" = set; then
4576 enableval="$enable_config"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_config='wxUSE_CONFIG=yes'
4580 else
4581 ac_cv_use_config='wxUSE_CONFIG=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4594
4595fi;
4596
4597 eval "$ac_cv_use_config"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_CONFIG" = yes; then
4603 echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608 fi
4609
4610
4611
4612 enablestring=
4613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4614echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4615 no_cache=0
4616 # Check whether --enable-protocols or --disable-protocols was given.
4617if test "${enable_protocols+set}" = set; then
4618 enableval="$enable_protocols"
4619
4620 if test "$enableval" = yes; then
4621 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4622 else
4623 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4624 fi
4625
4626else
4627
4628 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4629 if test "x$LINE" != x ; then
4630 eval "DEFAULT_$LINE"
4631 else
4632 no_cache=1
4633 fi
4634
4635 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4636
4637fi;
4638
4639 eval "$ac_cv_use_protocols"
4640 if test "$no_cache" != 1; then
4641 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4642 fi
4643
4644 if test "$wxUSE_PROTOCOL" = yes; then
4645 echo "$as_me:$LINENO: result: yes" >&5
4646echo "${ECHO_T}yes" >&6
4647 else
4648 echo "$as_me:$LINENO: result: no" >&5
4649echo "${ECHO_T}no" >&6
4650 fi
4651
4652
4653 enablestring=
4654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4655echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4656 no_cache=0
4657 # Check whether --enable-ftp or --disable-ftp was given.
4658if test "${enable_ftp+set}" = set; then
4659 enableval="$enable_ftp"
4660
4661 if test "$enableval" = yes; then
4662 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4663 else
4664 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4665 fi
4666
4667else
4668
4669 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4670 if test "x$LINE" != x ; then
4671 eval "DEFAULT_$LINE"
4672 else
4673 no_cache=1
4674 fi
4675
4676 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4677
4678fi;
4679
4680 eval "$ac_cv_use_ftp"
4681 if test "$no_cache" != 1; then
4682 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4683 fi
4684
4685 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4686 echo "$as_me:$LINENO: result: yes" >&5
4687echo "${ECHO_T}yes" >&6
4688 else
4689 echo "$as_me:$LINENO: result: no" >&5
4690echo "${ECHO_T}no" >&6
4691 fi
4692
4693
4694 enablestring=
4695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4696echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4697 no_cache=0
4698 # Check whether --enable-http or --disable-http was given.
4699if test "${enable_http+set}" = set; then
4700 enableval="$enable_http"
4701
4702 if test "$enableval" = yes; then
4703 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4704 else
4705 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4706 fi
4707
4708else
4709
4710 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4711 if test "x$LINE" != x ; then
4712 eval "DEFAULT_$LINE"
4713 else
4714 no_cache=1
4715 fi
4716
4717 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4718
4719fi;
4720
4721 eval "$ac_cv_use_http"
4722 if test "$no_cache" != 1; then
4723 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4724 fi
4725
4726 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4727 echo "$as_me:$LINENO: result: yes" >&5
4728echo "${ECHO_T}yes" >&6
4729 else
4730 echo "$as_me:$LINENO: result: no" >&5
4731echo "${ECHO_T}no" >&6
4732 fi
4733
4734
4735 enablestring=
4736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4737echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4738 no_cache=0
4739 # Check whether --enable-fileproto or --disable-fileproto was given.
4740if test "${enable_fileproto+set}" = set; then
4741 enableval="$enable_fileproto"
4742
4743 if test "$enableval" = yes; then
4744 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4745 else
4746 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4747 fi
4748
4749else
4750
4751 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4752 if test "x$LINE" != x ; then
4753 eval "DEFAULT_$LINE"
4754 else
4755 no_cache=1
4756 fi
4757
4758 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4759
4760fi;
4761
4762 eval "$ac_cv_use_fileproto"
4763 if test "$no_cache" != 1; then
4764 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4765 fi
4766
4767 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4768 echo "$as_me:$LINENO: result: yes" >&5
4769echo "${ECHO_T}yes" >&6
4770 else
4771 echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6
4773 fi
4774
4775
4776 enablestring=
4777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4778echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4779 no_cache=0
4780 # Check whether --enable-sockets or --disable-sockets was given.
4781if test "${enable_sockets+set}" = set; then
4782 enableval="$enable_sockets"
4783
4784 if test "$enableval" = yes; then
4785 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4786 else
4787 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4788 fi
4789
4790else
4791
4792 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4800
4801fi;
4802
4803 eval "$ac_cv_use_sockets"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_SOCKETS" = yes; then
4809 echo "$as_me:$LINENO: result: yes" >&5
4810echo "${ECHO_T}yes" >&6
4811 else
4812 echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6
4814 fi
4815
4816
4817 enablestring=
4818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4819echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4820 no_cache=0
4821 # Check whether --enable-ole or --disable-ole was given.
4822if test "${enable_ole+set}" = set; then
4823 enableval="$enable_ole"
4824
4825 if test "$enableval" = yes; then
4826 ac_cv_use_ole='wxUSE_OLE=yes'
4827 else
4828 ac_cv_use_ole='wxUSE_OLE=no'
4829 fi
4830
4831else
4832
4833 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4834 if test "x$LINE" != x ; then
4835 eval "DEFAULT_$LINE"
4836 else
4837 no_cache=1
4838 fi
4839
4840 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4841
4842fi;
4843
4844 eval "$ac_cv_use_ole"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_OLE" = yes; then
4850 echo "$as_me:$LINENO: result: yes" >&5
4851echo "${ECHO_T}yes" >&6
4852 else
4853 echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6
4855 fi
4856
4857
4858 enablestring=
4859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4860echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4861 no_cache=0
4862 # Check whether --enable-dataobj or --disable-dataobj was given.
4863if test "${enable_dataobj+set}" = set; then
4864 enableval="$enable_dataobj"
4865
4866 if test "$enableval" = yes; then
4867 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4868 else
4869 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4870 fi
4871
4872else
4873
4874 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4882
4883fi;
4884
4885 eval "$ac_cv_use_dataobj"
4886 if test "$no_cache" != 1; then
4887 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4888 fi
4889
4890 if test "$wxUSE_DATAOBJ" = yes; then
4891 echo "$as_me:$LINENO: result: yes" >&5
4892echo "${ECHO_T}yes" >&6
4893 else
4894 echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6
4896 fi
4897
4898
4899
4900 enablestring=
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4903 no_cache=0
4904 # Check whether --enable-ipc or --disable-ipc was given.
4905if test "${enable_ipc+set}" = set; then
4906 enableval="$enable_ipc"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_ipc='wxUSE_IPC=yes'
4910 else
4911 ac_cv_use_ipc='wxUSE_IPC=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_IPC" ${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_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4924
4925fi;
4926
4927 eval "$ac_cv_use_ipc"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_IPC" = 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
4942 enablestring=
4943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4944echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4945 no_cache=0
4946 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4947if test "${enable_apple_ieee+set}" = set; then
4948 enableval="$enable_apple_ieee"
4949
4950 if test "$enableval" = yes; then
4951 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4952 else
4953 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4954 fi
4955
4956else
4957
4958 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4959 if test "x$LINE" != x ; then
4960 eval "DEFAULT_$LINE"
4961 else
4962 no_cache=1
4963 fi
4964
4965 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4966
4967fi;
4968
4969 eval "$ac_cv_use_apple_ieee"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_APPLE_IEEE" = yes; then
4975 echo "$as_me:$LINENO: result: yes" >&5
4976echo "${ECHO_T}yes" >&6
4977 else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980 fi
4981
4982
81f90336
MW
4983 enablestring=
4984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4985echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4986 no_cache=0
4987 # Check whether --enable-arcstream or --disable-arcstream was given.
4988if test "${enable_arcstream+set}" = set; then
4989 enableval="$enable_arcstream"
4990
4991 if test "$enableval" = yes; then
9e8e867f 4992 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4993 else
9e8e867f 4994 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4995 fi
4996
4997else
4998
9e8e867f 4999 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
9e8e867f 5006 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5007
5008fi;
5009
5010 eval "$ac_cv_use_arcstream"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5013 fi
5014
9e8e867f 5015 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5016 echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018 else
5019 echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021 fi
5022
5023
a848cd7e 5024 enablestring=
36b6448c
VZ
5025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5026echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5027 no_cache=0
36b6448c
VZ
5028 # Check whether --enable-backtrace or --disable-backtrace was given.
5029if test "${enable_backtrace+set}" = set; then
5030 enableval="$enable_backtrace"
a848cd7e
SC
5031
5032 if test "$enableval" = yes; then
36b6448c 5033 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5034 else
36b6448c 5035 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5036 fi
5037
5038else
5039
36b6448c 5040 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5041 if test "x$LINE" != x ; then
5042 eval "DEFAULT_$LINE"
5043 else
5044 no_cache=1
5045 fi
5046
36b6448c 5047 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5048
5049fi;
5050
36b6448c 5051 eval "$ac_cv_use_backtrace"
a848cd7e 5052 if test "$no_cache" != 1; then
36b6448c 5053 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5054 fi
5055
36b6448c 5056 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5057 echo "$as_me:$LINENO: result: yes" >&5
5058echo "${ECHO_T}yes" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062 fi
5063
5064
eaff0f0d 5065 enablestring=
36b6448c
VZ
5066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5067echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5068 no_cache=0
36b6448c
VZ
5069 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5070if test "${enable_catch_segvs+set}" = set; then
5071 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5072
5073 if test "$enableval" = yes; then
36b6448c 5074 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5075 else
36b6448c 5076 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5077 fi
5078
5079else
5080
36b6448c 5081 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
36b6448c 5088 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5089
5090fi;
5091
36b6448c 5092 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5093 if test "$no_cache" != 1; then
36b6448c 5094 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5095 fi
5096
36b6448c 5097 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5098 echo "$as_me:$LINENO: result: yes" >&5
5099echo "${ECHO_T}yes" >&6
5100 else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103 fi
5104
5105
a848cd7e
SC
5106 enablestring=
5107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5108echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5109 no_cache=0
5110 # Check whether --enable-cmdline or --disable-cmdline was given.
5111if test "${enable_cmdline+set}" = set; then
5112 enableval="$enable_cmdline"
5113
5114 if test "$enableval" = yes; then
5115 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5116 else
5117 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5118 fi
5119
5120else
5121
5122 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5123 if test "x$LINE" != x ; then
5124 eval "DEFAULT_$LINE"
5125 else
5126 no_cache=1
5127 fi
5128
5129 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5130
5131fi;
5132
5133 eval "$ac_cv_use_cmdline"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5139 echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143echo "${ECHO_T}no" >&6
5144 fi
5145
5146
5147 enablestring=
5148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5149echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5150 no_cache=0
5151 # Check whether --enable-datetime or --disable-datetime was given.
5152if test "${enable_datetime+set}" = set; then
5153 enableval="$enable_datetime"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5157 else
5158 ac_cv_use_datetime='wxUSE_DATETIME=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5171
5172fi;
5173
5174 eval "$ac_cv_use_datetime"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_DATETIME" = yes; then
5180 echo "$as_me:$LINENO: result: yes" >&5
5181echo "${ECHO_T}yes" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185 fi
5186
5187
36b6448c
VZ
5188 enablestring=
5189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5190echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5191 no_cache=0
5192 # Check whether --enable-debugreport or --disable-debugreport was given.
5193if test "${enable_debugreport+set}" = set; then
5194 enableval="$enable_debugreport"
5195
5196 if test "$enableval" = yes; then
5197 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5198 else
5199 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5200 fi
5201
5202else
5203
5204 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5205 if test "x$LINE" != x ; then
5206 eval "DEFAULT_$LINE"
5207 else
5208 no_cache=1
5209 fi
5210
5211 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5212
5213fi;
5214
5215 eval "$ac_cv_use_debugreport"
5216 if test "$no_cache" != 1; then
5217 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5218 fi
5219
5220 if test "$wxUSE_DEBUGREPORT" = yes; then
5221 echo "$as_me:$LINENO: result: yes" >&5
5222echo "${ECHO_T}yes" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226 fi
5227
5228
a848cd7e
SC
5229 enablestring=
5230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5231echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5232 no_cache=0
5233 # Check whether --enable-dialupman or --disable-dialupman was given.
5234if test "${enable_dialupman+set}" = set; then
5235 enableval="$enable_dialupman"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5239 else
5240 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5253
5254fi;
5255
5256 eval "$ac_cv_use_dialupman"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5262 echo "$as_me:$LINENO: result: yes" >&5
5263echo "${ECHO_T}yes" >&6
5264 else
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267 fi
5268
5269
5270 enablestring=
5271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5272echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5273 no_cache=0
5274 # Check whether --enable-dynlib or --disable-dynlib was given.
5275if test "${enable_dynlib+set}" = set; then
5276 enableval="$enable_dynlib"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5280 else
5281 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5282 fi
5283
5284else
5285
5286 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5294
5295fi;
5296
5297 eval "$ac_cv_use_dynlib"
5298 if test "$no_cache" != 1; then
5299 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5300 fi
5301
5302 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5303 echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305 else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308 fi
5309
5310
5311 enablestring=
5312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5313echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5314 no_cache=0
5315 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5316if test "${enable_dynamicloader+set}" = set; then
5317 enableval="$enable_dynamicloader"
5318
5319 if test "$enableval" = yes; then
5320 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5321 else
5322 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5323 fi
5324
5325else
5326
5327 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5328 if test "x$LINE" != x ; then
5329 eval "DEFAULT_$LINE"
5330 else
5331 no_cache=1
5332 fi
5333
5334 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5335
5336fi;
5337
5338 eval "$ac_cv_use_dynamicloader"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345echo "${ECHO_T}yes" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349 fi
5350
5351
5352 enablestring=
5353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5354echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5355 no_cache=0
5356 # Check whether --enable-exceptions or --disable-exceptions was given.
5357if test "${enable_exceptions+set}" = set; then
5358 enableval="$enable_exceptions"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5362 else
5363 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5376
5377fi;
5378
5379 eval "$ac_cv_use_exceptions"
5380 if test "$no_cache" != 1; then
5381 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5382 fi
5383
5384 if test "$wxUSE_EXCEPTIONS" = yes; then
5385 echo "$as_me:$LINENO: result: yes" >&5
5386echo "${ECHO_T}yes" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390 fi
5391
5392
5393 enablestring=
5394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5395echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5396 no_cache=0
5397 # Check whether --enable-ffile or --disable-ffile was given.
5398if test "${enable_ffile+set}" = set; then
5399 enableval="$enable_ffile"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_ffile='wxUSE_FFILE=yes'
5403 else
5404 ac_cv_use_ffile='wxUSE_FFILE=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5417
5418fi;
5419
5420 eval "$ac_cv_use_ffile"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_FFILE" = yes; then
5426 echo "$as_me:$LINENO: result: yes" >&5
5427echo "${ECHO_T}yes" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431 fi
5432
5433
5434 enablestring=
5435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5436echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5437 no_cache=0
5438 # Check whether --enable-file or --disable-file was given.
5439if test "${enable_file+set}" = set; then
5440 enableval="$enable_file"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_file='wxUSE_FILE=yes'
5444 else
5445 ac_cv_use_file='wxUSE_FILE=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5458
5459fi;
5460
5461 eval "$ac_cv_use_file"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_FILE" = yes; then
5467 echo "$as_me:$LINENO: result: yes" >&5
5468echo "${ECHO_T}yes" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472 fi
5473
5474
5475 enablestring=
5476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5477echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5478 no_cache=0
5479 # Check whether --enable-filesystem or --disable-filesystem was given.
5480if test "${enable_filesystem+set}" = set; then
5481 enableval="$enable_filesystem"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5485 else
5486 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5499
5500fi;
5501
5502 eval "$ac_cv_use_filesystem"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_FILESYSTEM" = yes; then
5508 echo "$as_me:$LINENO: result: yes" >&5
5509echo "${ECHO_T}yes" >&6
5510 else
5511 echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6
5513 fi
5514
5515
5516 enablestring=
5517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5518echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5519 no_cache=0
5520 # Check whether --enable-fontmap or --disable-fontmap was given.
5521if test "${enable_fontmap+set}" = set; then
5522 enableval="$enable_fontmap"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5526 else
5527 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5528 fi
5529
5530else
5531
5532 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5540
5541fi;
5542
5543 eval "$ac_cv_use_fontmap"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_FONTMAP" = yes; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550echo "${ECHO_T}yes" >&6
5551 else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554 fi
5555
5556
5557 enablestring=
5558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5559echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5560 no_cache=0
5561 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5562if test "${enable_fs_inet+set}" = set; then
5563 enableval="$enable_fs_inet"
5564
5565 if test "$enableval" = yes; then
5566 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5567 else
5568 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5569 fi
5570
5571else
5572
5573 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
5580 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5581
5582fi;
5583
5584 eval "$ac_cv_use_fs_inet"
5585 if test "$no_cache" != 1; then
5586 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5587 fi
5588
5589 if test "$wxUSE_FS_INET" = yes; then
5590 echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595 fi
5596
5597
5598 enablestring=
5599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5600echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5601 no_cache=0
5602 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5603if test "${enable_fs_zip+set}" = set; then
5604 enableval="$enable_fs_zip"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5608 else
5609 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5610 fi
5611
5612else
5613
5614 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5622
5623fi;
5624
5625 eval "$ac_cv_use_fs_zip"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_FS_ZIP" = yes; then
5631 echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633 else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636 fi
5637
5638
5639 enablestring=
5640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5641echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5642 no_cache=0
5643 # Check whether --enable-geometry or --disable-geometry was given.
5644if test "${enable_geometry+set}" = set; then
5645 enableval="$enable_geometry"
5646
5647 if test "$enableval" = yes; then
5648 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5649 else
5650 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5651 fi
5652
5653else
5654
5655 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
5662 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5663
5664fi;
5665
5666 eval "$ac_cv_use_geometry"
5667 if test "$no_cache" != 1; then
5668 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5669 fi
5670
5671 if test "$wxUSE_GEOMETRY" = yes; then
5672 echo "$as_me:$LINENO: result: yes" >&5
5673echo "${ECHO_T}yes" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677 fi
5678
5679
5680 enablestring=
5681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5682echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5683 no_cache=0
5684 # Check whether --enable-log or --disable-log was given.
5685if test "${enable_log+set}" = set; then
5686 enableval="$enable_log"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_log='wxUSE_LOG=yes'
5690 else
5691 ac_cv_use_log='wxUSE_LOG=no'
5692 fi
5693
5694else
5695
5696 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5704
5705fi;
5706
5707 eval "$ac_cv_use_log"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_LOG" = yes; then
5713 echo "$as_me:$LINENO: result: yes" >&5
5714echo "${ECHO_T}yes" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718 fi
5719
5720
5721 enablestring=
5722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5723echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5724 no_cache=0
5725 # Check whether --enable-longlong or --disable-longlong was given.
5726if test "${enable_longlong+set}" = set; then
5727 enableval="$enable_longlong"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5731 else
5732 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5745
5746fi;
5747
5748 eval "$ac_cv_use_longlong"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_LONGLONG" = yes; then
5754 echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756 else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759 fi
5760
5761
5762 enablestring=
5763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5764echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5765 no_cache=0
5766 # Check whether --enable-mimetype or --disable-mimetype was given.
5767if test "${enable_mimetype+set}" = set; then
5768 enableval="$enable_mimetype"
5769
5770 if test "$enableval" = yes; then
5771 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5772 else
5773 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5774 fi
5775
5776else
5777
5778 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5786
5787fi;
5788
5789 eval "$ac_cv_use_mimetype"
5790 if test "$no_cache" != 1; then
5791 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5792 fi
5793
5794 if test "$wxUSE_MIMETYPE" = yes; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797 else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800 fi
5801
5802
5803 enablestring=
5804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5805echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5806 no_cache=0
5807 # Check whether --enable-mslu or --disable-mslu was given.
5808if test "${enable_mslu+set}" = set; then
5809 enableval="$enable_mslu"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5813 else
5814 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5827
5828fi;
5829
5830 eval "$ac_cv_use_mslu"
5831 if test "$no_cache" != 1; then
5832 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5833 fi
5834
5835 if test "$wxUSE_UNICODE_MSLU" = yes; then
5836 echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841 fi
5842
5843
5844 enablestring=
5845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5846echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5847 no_cache=0
5848 # Check whether --enable-snglinst or --disable-snglinst was given.
5849if test "${enable_snglinst+set}" = set; then
5850 enableval="$enable_snglinst"
5851
5852 if test "$enableval" = yes; then
5853 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5854 else
5855 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5856 fi
5857
5858else
5859
5860 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5868
5869fi;
5870
5871 eval "$ac_cv_use_snglinst"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6
5879 else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882 fi
5883
5884
5885 enablestring=
07158944
VZ
5886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5887echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5888 no_cache=0
07158944
VZ
5889 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5890if test "${enable_std_iostreams+set}" = set; then
5891 enableval="$enable_std_iostreams"
a848cd7e
SC
5892
5893 if test "$enableval" = yes; then
07158944 5894 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5895 else
07158944 5896 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5897 fi
5898
5899else
5900
07158944 5901 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
07158944 5908 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5909
5910fi;
5911
07158944 5912 eval "$ac_cv_use_std_iostreams"
a848cd7e 5913 if test "$no_cache" != 1; then
07158944 5914 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5915 fi
5916
07158944 5917 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5918 echo "$as_me:$LINENO: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
5920 else
5921 echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
5923 fi
5924
5925
59746b65
MW
5926 enablestring=
5927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5928echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5929 no_cache=0
5930 # Check whether --enable-std_string or --disable-std_string was given.
5931if test "${enable_std_string+set}" = set; then
5932 enableval="$enable_std_string"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5936 else
5937 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5938 fi
5939
5940else
5941
5942 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5943 if test "x$LINE" != x ; then
5944 eval "DEFAULT_$LINE"
5945 else
5946 no_cache=1
5947 fi
5948
5949 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5950
5951fi;
5952
5953 eval "$ac_cv_use_std_string"
5954 if test "$no_cache" != 1; then
5955 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5956 fi
5957
5958 if test "$wxUSE_STD_STRING" = yes; then
5959 echo "$as_me:$LINENO: result: yes" >&5
5960echo "${ECHO_T}yes" >&6
5961 else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964 fi
5965
5966
a848cd7e 5967 enablestring=
07158944
VZ
5968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5969echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5970 no_cache=0
07158944
VZ
5971 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5972if test "${enable_stdpaths+set}" = set; then
5973 enableval="$enable_stdpaths"
a848cd7e
SC
5974
5975 if test "$enableval" = yes; then
07158944 5976 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5977 else
07158944 5978 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5979 fi
5980
5981else
5982
07158944 5983 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
07158944 5990 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5991
5992fi;
5993
07158944 5994 eval "$ac_cv_use_stdpaths"
a848cd7e 5995 if test "$no_cache" != 1; then
07158944 5996 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5997 fi
5998
07158944 5999 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6000 echo "$as_me:$LINENO: result: yes" >&5
6001echo "${ECHO_T}yes" >&6
6002 else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005 fi
6006
6007
6008 enablestring=
6009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6010echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6011 no_cache=0
6012 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6013if test "${enable_stopwatch+set}" = set; then
6014 enableval="$enable_stopwatch"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6018 else
6019 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6032
6033fi;
6034
6035 eval "$ac_cv_use_stopwatch"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_STOPWATCH" = yes; then
6041 echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043 else
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046 fi
6047
6048
07158944
VZ
6049 enablestring=
6050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6051echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6052 no_cache=0
6053 # Check whether --enable-streams or --disable-streams was given.
6054if test "${enable_streams+set}" = set; then
6055 enableval="$enable_streams"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_streams='wxUSE_STREAMS=yes'
6059 else
6060 ac_cv_use_streams='wxUSE_STREAMS=no'
6061 fi
6062
6063else
6064
6065 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6073
6074fi;
6075
6076 eval "$ac_cv_use_streams"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_STREAMS" = yes; then
6082 echo "$as_me:$LINENO: result: yes" >&5
6083echo "${ECHO_T}yes" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088
6089
a848cd7e
SC
6090 enablestring=
6091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6092echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6093 no_cache=0
6094 # Check whether --enable-system_options or --disable-system_options was given.
6095if test "${enable_system_options+set}" = set; then
6096 enableval="$enable_system_options"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6100 else
6101 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6114
6115fi;
6116
6117 eval "$ac_cv_use_system_options"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6123 echo "$as_me:$LINENO: result: yes" >&5
6124echo "${ECHO_T}yes" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128 fi
6129
6130
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-textbuf or --disable-textbuf was given.
6136if test "${enable_textbuf+set}" = set; then
6137 enableval="$enable_textbuf"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6141 else
6142 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_TEXTBUFFER" ${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_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6155
6156fi;
6157
6158 eval "$ac_cv_use_textbuf"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_TEXTBUFFER" = 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}-textfile" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-textfile or --disable-textfile was given.
6177if test "${enable_textfile+set}" = set; then
6178 enableval="$enable_textfile"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6182 else
6183 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_TEXTFILE" ${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_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6196
6197fi;
6198
6199 eval "$ac_cv_use_textfile"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_TEXTFILE" = 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}-timer" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-timer or --disable-timer was given.
6218if test "${enable_timer+set}" = set; then
6219 enableval="$enable_timer"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_timer='wxUSE_TIMER=yes'
6223 else
6224 ac_cv_use_timer='wxUSE_TIMER=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_TIMER" ${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_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6237
6238fi;
6239
6240 eval "$ac_cv_use_timer"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_TIMER" = 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}-unicode" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-unicode or --disable-unicode was given.
6259if test "${enable_unicode+set}" = set; then
6260 enableval="$enable_unicode"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6264 else
6265 ac_cv_use_unicode='wxUSE_UNICODE=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_UNICODE" ${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_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6278
6279fi;
6280
6281 eval "$ac_cv_use_unicode"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_UNICODE" = 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}-sound" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-sound or --disable-sound was given.
6300if test "${enable_sound+set}" = set; then
6301 enableval="$enable_sound"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_sound='wxUSE_SOUND=yes'
6305 else
6306 ac_cv_use_sound='wxUSE_SOUND=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_SOUND" ${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_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6319
6320fi;
6321
6322 eval "$ac_cv_use_sound"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_SOUND" = 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
3b57de8b
RL
6336 enablestring=
6337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6338echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6339 no_cache=0
6340 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6341if test "${enable_mediactrl+set}" = set; then
6342 enableval="$enable_mediactrl"
6343
6344 if test "$enableval" = yes; then
6345 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6346 else
6347 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6348 fi
6349
6350else
6351
6352 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6353 if test "x$LINE" != x ; then
6354 eval "DEFAULT_$LINE"
6355 else
6356 no_cache=1
6357 fi
6358
6359 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6360
6361fi;
6362
6363 eval "$ac_cv_use_mediactrl"
6364 if test "$no_cache" != 1; then
6365 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6366 fi
6367
6368 if test "$wxUSE_MEDIACTRL" = yes; then
6369 echo "$as_me:$LINENO: result: yes" >&5
6370echo "${ECHO_T}yes" >&6
6371 else
6372 echo "$as_me:$LINENO: result: no" >&5
6373echo "${ECHO_T}no" >&6
6374 fi
6375
6376
f10e38c4
VZ
6377 enablestring=
6378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6379echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6380 no_cache=0
6381 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6382if test "${enable_gstreamer8+set}" = set; then
6383 enableval="$enable_gstreamer8"
6384
6385 if test "$enableval" = yes; then
6386 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6387 else
6388 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6389 fi
6390
6391else
6392
6393 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6401
6402fi;
6403
6404 eval "$ac_cv_use_gstreamer8"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_GSTREAMER8" = yes; then
6410 echo "$as_me:$LINENO: result: yes" >&5
6411echo "${ECHO_T}yes" >&6
6412 else
6413 echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
6415 fi
6416
6417
a848cd7e 6418 enablestring=
8b6682b9
JS
6419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6420echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6421 no_cache=0
8b6682b9
JS
6422 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6423if test "${enable_printfposparam+set}" = set; then
6424 enableval="$enable_printfposparam"
a848cd7e
SC
6425
6426 if test "$enableval" = yes; then
8b6682b9 6427 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6428 else
8b6682b9 6429 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6430 fi
6431
6432else
6433
8b6682b9 6434 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6435 if test "x$LINE" != x ; then
6436 eval "DEFAULT_$LINE"
6437 else
6438 no_cache=1
6439 fi
6440
8b6682b9 6441 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6442
6443fi;
6444
8b6682b9 6445 eval "$ac_cv_use_printfposparam"
a848cd7e 6446 if test "$no_cache" != 1; then
8b6682b9 6447 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6448 fi
6449
8b6682b9 6450 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6451 echo "$as_me:$LINENO: result: yes" >&5
6452echo "${ECHO_T}yes" >&6
6453 else
6454 echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6
6456 fi
6457
6458
6459 enablestring=
6460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6461echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6462 no_cache=0
6463 # Check whether --enable-zipstream or --disable-zipstream was given.
6464if test "${enable_zipstream+set}" = set; then
6465 enableval="$enable_zipstream"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6469 else
6470 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6471 fi
6472
6473else
6474
6475 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6483
6484fi;
6485
6486 eval "$ac_cv_use_zipstream"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_ZIPSTREAM" = yes; then
6492 echo "$as_me:$LINENO: result: yes" >&5
6493echo "${ECHO_T}yes" >&6
6494 else
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
6497 fi
6498
6499
a848cd7e
SC
6500
6501 enablestring=
6502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6503echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6504 no_cache=0
6505 # Check whether --enable-url or --disable-url was given.
6506if test "${enable_url+set}" = set; then
6507 enableval="$enable_url"
6508
6509 if test "$enableval" = yes; then
6510 ac_cv_use_url='wxUSE_URL=yes'
6511 else
6512 ac_cv_use_url='wxUSE_URL=no'
6513 fi
6514
6515else
6516
6517 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6518 if test "x$LINE" != x ; then
6519 eval "DEFAULT_$LINE"
6520 else
6521 no_cache=1
6522 fi
6523
6524 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6525
6526fi;
6527
6528 eval "$ac_cv_use_url"
6529 if test "$no_cache" != 1; then
6530 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6531 fi
6532
6533 if test "$wxUSE_URL" = yes; then
6534 echo "$as_me:$LINENO: result: yes" >&5
6535echo "${ECHO_T}yes" >&6
6536 else
6537 echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6
6539 fi
6540
6541
6542 enablestring=
6543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6544echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6545 no_cache=0
6546 # Check whether --enable-protocol or --disable-protocol was given.
6547if test "${enable_protocol+set}" = set; then
6548 enableval="$enable_protocol"
6549
6550 if test "$enableval" = yes; then
6551 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6552 else
6553 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6554 fi
6555
6556else
6557
6558 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6559 if test "x$LINE" != x ; then
6560 eval "DEFAULT_$LINE"
6561 else
6562 no_cache=1
6563 fi
6564
6565 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6566
6567fi;
6568
6569 eval "$ac_cv_use_protocol"
6570 if test "$no_cache" != 1; then
6571 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6572 fi
6573
6574 if test "$wxUSE_PROTOCOL" = yes; then
6575 echo "$as_me:$LINENO: result: yes" >&5
6576echo "${ECHO_T}yes" >&6
6577 else
6578 echo "$as_me:$LINENO: result: no" >&5
6579echo "${ECHO_T}no" >&6
6580 fi
6581
6582
6583 enablestring=
6584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6585echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6586 no_cache=0
6587 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6588if test "${enable_protocol_http+set}" = set; then
6589 enableval="$enable_protocol_http"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6593 else
6594 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6607
6608fi;
6609
6610 eval "$ac_cv_use_protocol_http"
6611 if test "$no_cache" != 1; then
6612 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6613 fi
6614
6615 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6616 echo "$as_me:$LINENO: result: yes" >&5
6617echo "${ECHO_T}yes" >&6
6618 else
6619 echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
6621 fi
6622
6623
6624 enablestring=
6625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6626echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6627 no_cache=0
6628 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6629if test "${enable_protocol_ftp+set}" = set; then
6630 enableval="$enable_protocol_ftp"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6634 else
6635 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6636 fi
6637
6638else
6639
6640 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6648
6649fi;
6650
6651 eval "$ac_cv_use_protocol_ftp"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6657 echo "$as_me:$LINENO: result: yes" >&5
6658echo "${ECHO_T}yes" >&6
6659 else
6660 echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6
6662 fi
6663
6664
6665 enablestring=
6666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6667echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6668 no_cache=0
6669 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6670if test "${enable_protocol_file+set}" = set; then
6671 enableval="$enable_protocol_file"
6672
6673 if test "$enableval" = yes; then
6674 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6675 else
6676 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6677 fi
6678
6679else
6680
6681 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6682 if test "x$LINE" != x ; then
6683 eval "DEFAULT_$LINE"
6684 else
6685 no_cache=1
6686 fi
6687
6688 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6689
6690fi;
6691
6692 eval "$ac_cv_use_protocol_file"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6698 echo "$as_me:$LINENO: result: yes" >&5
6699echo "${ECHO_T}yes" >&6
6700 else
6701 echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6
6703 fi
6704
6705
6706
6707
6708
6709 enablestring=
6710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6711echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6712 no_cache=0
6713 # Check whether --enable-threads or --disable-threads was given.
6714if test "${enable_threads+set}" = set; then
6715 enableval="$enable_threads"
6716
6717 if test "$enableval" = yes; then
6718 ac_cv_use_threads='wxUSE_THREADS=yes'
6719 else
6720 ac_cv_use_threads='wxUSE_THREADS=no'
6721 fi
6722
6723else
6724
6725 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6726 if test "x$LINE" != x ; then
6727 eval "DEFAULT_$LINE"
6728 else
6729 no_cache=1
6730 fi
6731
6732 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6733
6734fi;
6735
6736 eval "$ac_cv_use_threads"
6737 if test "$no_cache" != 1; then
6738 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6739 fi
6740
6741 if test "$wxUSE_THREADS" = yes; then
6742 echo "$as_me:$LINENO: result: yes" >&5
6743echo "${ECHO_T}yes" >&6
6744 else
6745 echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6
6747 fi
6748
6749
6750if test "$wxUSE_GUI" = "yes"; then
6751
6752
6753
6754 enablestring=
6755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6756echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6757 no_cache=0
6758 # Check whether --enable-docview or --disable-docview was given.
6759if test "${enable_docview+set}" = set; then
6760 enableval="$enable_docview"
6761
6762 if test "$enableval" = yes; then
6763 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6764 else
6765 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6766 fi
6767
6768else
6769
6770 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6771 if test "x$LINE" != x ; then
6772 eval "DEFAULT_$LINE"
6773 else
6774 no_cache=1
6775 fi
6776
6777 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6778
6779fi;
6780
6781 eval "$ac_cv_use_docview"
6782 if test "$no_cache" != 1; then
6783 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6784 fi
6785
6786 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6787 echo "$as_me:$LINENO: result: yes" >&5
6788echo "${ECHO_T}yes" >&6
6789 else
6790 echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6
6792 fi
6793
6794
6795 enablestring=
6796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6797echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6798 no_cache=0
6799 # Check whether --enable-help or --disable-help was given.
6800if test "${enable_help+set}" = set; then
6801 enableval="$enable_help"
6802
6803 if test "$enableval" = yes; then
6804 ac_cv_use_help='wxUSE_HELP=yes'
6805 else
6806 ac_cv_use_help='wxUSE_HELP=no'
6807 fi
6808
6809else
6810
6811 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6812 if test "x$LINE" != x ; then
6813 eval "DEFAULT_$LINE"
6814 else
6815 no_cache=1
6816 fi
6817
6818 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6819
6820fi;
6821
6822 eval "$ac_cv_use_help"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_HELP" = yes; then
6828 echo "$as_me:$LINENO: result: yes" >&5
6829echo "${ECHO_T}yes" >&6
6830 else
6831 echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6
6833 fi
6834
6835
6836 enablestring=
6837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6838echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6839 no_cache=0
6840 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6841if test "${enable_mshtmlhelp+set}" = set; then
6842 enableval="$enable_mshtmlhelp"
6843
6844 if test "$enableval" = yes; then
6845 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6846 else
6847 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6848 fi
6849
6850else
6851
6852 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6853 if test "x$LINE" != x ; then
6854 eval "DEFAULT_$LINE"
6855 else
6856 no_cache=1
6857 fi
6858
6859 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6860
6861fi;
6862
6863 eval "$ac_cv_use_mshtmlhelp"
6864 if test "$no_cache" != 1; then
6865 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6866 fi
6867
6868 if test "$wxUSE_MS_HTML_HELP" = yes; then
6869 echo "$as_me:$LINENO: result: yes" >&5
6870echo "${ECHO_T}yes" >&6
6871 else
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
6874 fi
6875
6876
6877 enablestring=
6878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6879echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6880 no_cache=0
6881 # Check whether --enable-html or --disable-html was given.
6882if test "${enable_html+set}" = set; then
6883 enableval="$enable_html"
6884
6885 if test "$enableval" = yes; then
6886 ac_cv_use_html='wxUSE_HTML=yes'
6887 else
6888 ac_cv_use_html='wxUSE_HTML=no'
6889 fi
6890
6891else
6892
6893 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6901
6902fi;
6903
6904 eval "$ac_cv_use_html"
6905 if test "$no_cache" != 1; then
6906 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6907 fi
6908
6909 if test "$wxUSE_HTML" = yes; then
6910 echo "$as_me:$LINENO: result: yes" >&5
6911echo "${ECHO_T}yes" >&6
6912 else
6913 echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
6915 fi
6916
6917
6918 enablestring=
6919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6920echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6921 no_cache=0
6922 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6923if test "${enable_htmlhelp+set}" = set; then
6924 enableval="$enable_htmlhelp"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6928 else
6929 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6930 fi
6931
6932else
6933
6934 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6942
6943fi;
6944
6945 eval "$ac_cv_use_htmlhelp"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_WXHTML_HELP" = yes; then
6951 echo "$as_me:$LINENO: result: yes" >&5
6952echo "${ECHO_T}yes" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
6956 fi
6957
6958
9a8f0513
VS
6959 enablestring=
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6961echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6962 no_cache=0
6963 # Check whether --enable-xrc or --disable-xrc was given.
6964if test "${enable_xrc+set}" = set; then
6965 enableval="$enable_xrc"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_xrc='wxUSE_XRC=yes'
6969 else
6970 ac_cv_use_xrc='wxUSE_XRC=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_XRC" ${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_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6983
6984fi;
6985
6986 eval "$ac_cv_use_xrc"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_XRC" = 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
3f60522a
JS
7000 enablestring=
7001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7002echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7003 no_cache=0
7004 # Check whether --enable-aui or --disable-aui was given.
7005if test "${enable_aui+set}" = set; then
7006 enableval="$enable_aui"
7007
7008 if test "$enableval" = yes; then
7009 ac_cv_use_aui='wxUSE_AUI=yes'
7010 else
7011 ac_cv_use_aui='wxUSE_AUI=no'
7012 fi
7013
7014else
7015
7016 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7024
7025fi;
7026
7027 eval "$ac_cv_use_aui"
7028 if test "$no_cache" != 1; then
7029 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7030 fi
7031
7032 if test "$wxUSE_AUI" = yes; then
7033 echo "$as_me:$LINENO: result: yes" >&5
7034echo "${ECHO_T}yes" >&6
7035 else
7036 echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6
7038 fi
7039
7040
a848cd7e
SC
7041 enablestring=
7042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7043echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7044 no_cache=0
7045 # Check whether --enable-constraints or --disable-constraints was given.
7046if test "${enable_constraints+set}" = set; then
7047 enableval="$enable_constraints"
7048
7049 if test "$enableval" = yes; then
7050 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7051 else
7052 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7053 fi
7054
7055else
7056
7057 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7058 if test "x$LINE" != x ; then
7059 eval "DEFAULT_$LINE"
7060 else
7061 no_cache=1
7062 fi
7063
7064 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7065
7066fi;
7067
7068 eval "$ac_cv_use_constraints"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_CONSTRAINTS" = yes; then
7074 echo "$as_me:$LINENO: result: yes" >&5
7075echo "${ECHO_T}yes" >&6
7076 else
7077 echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6
7079 fi
7080
7081
7082 enablestring=
7083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7084echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7085 no_cache=0
7086 # Check whether --enable-printarch or --disable-printarch was given.
7087if test "${enable_printarch+set}" = set; then
7088 enableval="$enable_printarch"
7089
7090 if test "$enableval" = yes; then
7091 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7092 else
7093 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7094 fi
7095
7096else
7097
7098 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7099 if test "x$LINE" != x ; then
7100 eval "DEFAULT_$LINE"
7101 else
7102 no_cache=1
7103 fi
7104
7105 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7106
7107fi;
7108
7109 eval "$ac_cv_use_printarch"
7110 if test "$no_cache" != 1; then
7111 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7112 fi
7113
7114 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7115 echo "$as_me:$LINENO: result: yes" >&5
7116echo "${ECHO_T}yes" >&6
7117 else
7118 echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6
7120 fi
7121
7122
7123 enablestring=
7124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7125echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7126 no_cache=0
7127 # Check whether --enable-mdi or --disable-mdi was given.
7128if test "${enable_mdi+set}" = set; then
7129 enableval="$enable_mdi"
7130
7131 if test "$enableval" = yes; then
8a7b1113 7132 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7133 else
8a7b1113 7134 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7135 fi
7136
7137else
7138
8a7b1113 7139 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7140 if test "x$LINE" != x ; then
7141 eval "DEFAULT_$LINE"
7142 else
7143 no_cache=1
7144 fi
7145
8a7b1113 7146 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7147
7148fi;
7149
7150 eval "$ac_cv_use_mdi"
7151 if test "$no_cache" != 1; then
7152 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7153 fi
7154
8a7b1113
VZ
7155 if test "$wxUSE_MDI" = yes; then
7156 echo "$as_me:$LINENO: result: yes" >&5
7157echo "${ECHO_T}yes" >&6
7158 else
7159 echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6
7161 fi
7162
7163
7164 enablestring=
7165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7166echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7167 no_cache=0
7168 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7169if test "${enable_mdidoc+set}" = set; then
7170 enableval="$enable_mdidoc"
7171
7172 if test "$enableval" = yes; then
7173 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7174 else
7175 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7176 fi
7177
7178else
7179
7180 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7181 if test "x$LINE" != x ; then
7182 eval "DEFAULT_$LINE"
7183 else
7184 no_cache=1
7185 fi
7186
7187 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7188
7189fi;
7190
7191 eval "$ac_cv_use_mdidoc"
7192 if test "$no_cache" != 1; then
7193 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7194 fi
7195
a848cd7e
SC
7196 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7197 echo "$as_me:$LINENO: result: yes" >&5
7198echo "${ECHO_T}yes" >&6
7199 else
7200 echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6
7202 fi
7203
7204
7205 enablestring=
7206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7207echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7208 no_cache=0
7209 # Check whether --enable-loggui or --disable-loggui was given.
7210if test "${enable_loggui+set}" = set; then
7211 enableval="$enable_loggui"
7212
7213 if test "$enableval" = yes; then
7214 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7215 else
7216 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7217 fi
7218
7219else
7220
7221 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7222 if test "x$LINE" != x ; then
7223 eval "DEFAULT_$LINE"
7224 else
7225 no_cache=1
7226 fi
7227
7228 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7229
7230fi;
7231
7232 eval "$ac_cv_use_loggui"
7233 if test "$no_cache" != 1; then
7234 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7235 fi
7236
7237 if test "$wxUSE_LOGGUI" = yes; then
7238 echo "$as_me:$LINENO: result: yes" >&5
7239echo "${ECHO_T}yes" >&6
7240 else
7241 echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6
7243 fi
7244
7245
7246 enablestring=
7247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7248echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7249 no_cache=0
7250 # Check whether --enable-logwin or --disable-logwin was given.
7251if test "${enable_logwin+set}" = set; then
7252 enableval="$enable_logwin"
7253
7254 if test "$enableval" = yes; then
7255 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7256 else
7257 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7258 fi
7259
7260else
7261
7262 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7263 if test "x$LINE" != x ; then
7264 eval "DEFAULT_$LINE"
7265 else
7266 no_cache=1
7267 fi
7268
7269 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7270
7271fi;
7272
7273 eval "$ac_cv_use_logwin"
7274 if test "$no_cache" != 1; then
7275 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7276 fi
7277
7278 if test "$wxUSE_LOGWINDOW" = yes; then
7279 echo "$as_me:$LINENO: result: yes" >&5
7280echo "${ECHO_T}yes" >&6
7281 else
7282 echo "$as_me:$LINENO: result: no" >&5
7283echo "${ECHO_T}no" >&6
7284 fi
7285
7286
7287 enablestring=
7288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7289echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7290 no_cache=0
7291 # Check whether --enable-logdialog or --disable-logdialog was given.
7292if test "${enable_logdialog+set}" = set; then
7293 enableval="$enable_logdialog"
7294
7295 if test "$enableval" = yes; then
7296 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7297 else
7298 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7299 fi
7300
7301else
7302
7303 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7304 if test "x$LINE" != x ; then
7305 eval "DEFAULT_$LINE"
7306 else
7307 no_cache=1
7308 fi
7309
7310 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7311
7312fi;
7313
7314 eval "$ac_cv_use_logdialog"
7315 if test "$no_cache" != 1; then
7316 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7317 fi
7318
7319 if test "$wxUSE_LOGDIALOG" = yes; then
7320 echo "$as_me:$LINENO: result: yes" >&5
7321echo "${ECHO_T}yes" >&6
7322 else
7323 echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6
7325 fi
7326
7327
646b6ec1
VS
7328 enablestring=
7329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7330echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7331 no_cache=0
7332 # Check whether --enable-webkit or --disable-webkit was given.
7333if test "${enable_webkit+set}" = set; then
7334 enableval="$enable_webkit"
7335
7336 if test "$enableval" = yes; then
7337 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7338 else
7339 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7340 fi
7341
7342else
7343
7344 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7352
7353fi;
7354
7355 eval "$ac_cv_use_webkit"
7356 if test "$no_cache" != 1; then
7357 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7358 fi
7359
7360 if test "$wxUSE_WEBKIT" = yes; then
7361 echo "$as_me:$LINENO: result: yes" >&5
7362echo "${ECHO_T}yes" >&6
7363 else
7364 echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6
7366 fi
7367
7368
91dea314
MW
7369 enablestring=
7370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7371echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7372 no_cache=0
7373 # Check whether --enable-html or --disable-html was given.
7374if test "${enable_html+set}" = set; then
7375 enableval="$enable_html"
7376
7377 if test "$enableval" = yes; then
7378 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7379 else
7380 ac_cv_use_html='wxUSE_RICHTEXT=no'
7381 fi
7382
7383else
7384
7385 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7386 if test "x$LINE" != x ; then
7387 eval "DEFAULT_$LINE"
7388 else
7389 no_cache=1
7390 fi
7391
7392 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7393
7394fi;
7395
7396 eval "$ac_cv_use_html"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_RICHTEXT" = yes; then
7402 echo "$as_me:$LINENO: result: yes" >&5
7403echo "${ECHO_T}yes" >&6
7404 else
7405 echo "$as_me:$LINENO: result: no" >&5
7406echo "${ECHO_T}no" >&6
7407 fi
7408
7409
a848cd7e
SC
7410
7411 enablestring=
7412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7413echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7414 no_cache=0
7415 # Check whether --enable-postscript or --disable-postscript was given.
7416if test "${enable_postscript+set}" = set; then
7417 enableval="$enable_postscript"
7418
7419 if test "$enableval" = yes; then
7420 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7421 else
7422 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7423 fi
7424
7425else
7426
7427 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7428 if test "x$LINE" != x ; then
7429 eval "DEFAULT_$LINE"
7430 else
7431 no_cache=1
7432 fi
7433
7434 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7435
7436fi;
7437
7438 eval "$ac_cv_use_postscript"
7439 if test "$no_cache" != 1; then
7440 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7441 fi
7442
7443 if test "$wxUSE_POSTSCRIPT" = yes; then
7444 echo "$as_me:$LINENO: result: yes" >&5
7445echo "${ECHO_T}yes" >&6
7446 else
7447 echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6
7449 fi
7450
7451
7452
7453
7454
7455 enablestring=
7456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7457echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7458 no_cache=0
7459 # Check whether --enable-prologio or --disable-prologio was given.
7460if test "${enable_prologio+set}" = set; then
7461 enableval="$enable_prologio"
7462
7463 if test "$enableval" = yes; then
7464 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7465 else
7466 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7467 fi
7468
7469else
7470
7471 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7472 if test "x$LINE" != x ; then
7473 eval "DEFAULT_$LINE"
7474 else
7475 no_cache=1
7476 fi
7477
7478 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7479
7480fi;
7481
7482 eval "$ac_cv_use_prologio"
7483 if test "$no_cache" != 1; then
7484 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7485 fi
7486
7487 if test "$wxUSE_PROLOGIO" = yes; then
7488 echo "$as_me:$LINENO: result: yes" >&5
7489echo "${ECHO_T}yes" >&6
7490 else
7491 echo "$as_me:$LINENO: result: no" >&5
7492echo "${ECHO_T}no" >&6
7493 fi
7494
7495
7496 enablestring=
7497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7498echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7499 no_cache=0
7500 # Check whether --enable-resources or --disable-resources was given.
7501if test "${enable_resources+set}" = set; then
7502 enableval="$enable_resources"
7503
7504 if test "$enableval" = yes; then
7505 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7506 else
7507 ac_cv_use_resources='wxUSE_RESOURCES=no'
7508 fi
7509
7510else
7511
7512 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7513 if test "x$LINE" != x ; then
7514 eval "DEFAULT_$LINE"
7515 else
7516 no_cache=1
7517 fi
7518
7519 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7520
7521fi;
7522
7523 eval "$ac_cv_use_resources"
7524 if test "$no_cache" != 1; then
7525 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7526 fi
7527
7528 if test "$wxUSE_RESOURCES" = yes; then
7529 echo "$as_me:$LINENO: result: yes" >&5
7530echo "${ECHO_T}yes" >&6
7531 else
7532 echo "$as_me:$LINENO: result: no" >&5
7533echo "${ECHO_T}no" >&6
7534 fi
7535
7536
7537
7538
7539 enablestring=
7540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7541echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7542 no_cache=0
7543 # Check whether --enable-clipboard or --disable-clipboard was given.
7544if test "${enable_clipboard+set}" = set; then
7545 enableval="$enable_clipboard"
7546
7547 if test "$enableval" = yes; then
7548 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7549 else
7550 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7551 fi
7552
7553else
7554
7555 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7556 if test "x$LINE" != x ; then
7557 eval "DEFAULT_$LINE"
7558 else
7559 no_cache=1
7560 fi
7561
7562 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7563
7564fi;
7565
7566 eval "$ac_cv_use_clipboard"
7567 if test "$no_cache" != 1; then
7568 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7569 fi
7570
7571 if test "$wxUSE_CLIPBOARD" = yes; then
7572 echo "$as_me:$LINENO: result: yes" >&5
7573echo "${ECHO_T}yes" >&6
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6
7577 fi
7578
7579
7580 enablestring=
7581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7582echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7583 no_cache=0
7584 # Check whether --enable-dnd or --disable-dnd was given.
7585if test "${enable_dnd+set}" = set; then
7586 enableval="$enable_dnd"
7587
7588 if test "$enableval" = yes; then
7589 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7590 else
7591 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7592 fi
7593
7594else
7595
7596 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7597 if test "x$LINE" != x ; then
7598 eval "DEFAULT_$LINE"
7599 else
7600 no_cache=1
7601 fi
7602
7603 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7604
7605fi;
7606
7607 eval "$ac_cv_use_dnd"
7608 if test "$no_cache" != 1; then
7609 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7610 fi
7611
7612 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7613 echo "$as_me:$LINENO: result: yes" >&5
7614echo "${ECHO_T}yes" >&6
7615 else
7616 echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6
7618 fi
7619
7620
7621 enablestring=
7622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7623echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7624 no_cache=0
7625 # Check whether --enable-metafile or --disable-metafile was given.
7626if test "${enable_metafile+set}" = set; then
7627 enableval="$enable_metafile"
7628
7629 if test "$enableval" = yes; then
7630 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7631 else
7632 ac_cv_use_metafile='wxUSE_METAFILE=no'
7633 fi
7634
7635else
7636
7637 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7638 if test "x$LINE" != x ; then
7639 eval "DEFAULT_$LINE"
7640 else
7641 no_cache=1
7642 fi
7643
7644 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7645
7646fi;
7647
7648 eval "$ac_cv_use_metafile"
7649 if test "$no_cache" != 1; then
7650 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7651 fi
7652
7653 if test "$wxUSE_METAFILE" = yes; then
7654 echo "$as_me:$LINENO: result: yes" >&5
7655echo "${ECHO_T}yes" >&6
7656 else
7657 echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6
7659 fi
7660
7661
7662
7663
7664
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-controls or --disable-controls was given.
7670if test "${enable_controls+set}" = set; then
7671 enableval="$enable_controls"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7675 else
7676 ac_cv_use_controls='wxUSE_CONTROLS=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7689
7690fi;
7691
7692 eval "$ac_cv_use_controls"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_CONTROLS" = 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
7706if test "$wxUSE_CONTROLS" = "yes"; then
7707 DEFAULT_wxUSE_ACCEL=yes
7708 DEFAULT_wxUSE_BMPBUTTON=yes
7709 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7710 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7711 DEFAULT_wxUSE_CARET=yes
7712 DEFAULT_wxUSE_COMBOBOX=yes
7713 DEFAULT_wxUSE_CHECKBOX=yes
7714 DEFAULT_wxUSE_CHECKLISTBOX=yes
7715 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7716 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7717 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7718 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7719 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7720 DEFAULT_wxUSE_DISPLAY=yes
7721 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7722 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7723 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7724 DEFAULT_wxUSE_GAUGE=yes
7725 DEFAULT_wxUSE_GRID=yes
6954625c 7726 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7727 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7728 DEFAULT_wxUSE_IMAGLIST=yes
7729 DEFAULT_wxUSE_LISTBOOK=yes
7730 DEFAULT_wxUSE_LISTBOX=yes
7731 DEFAULT_wxUSE_LISTCTRL=yes
7732 DEFAULT_wxUSE_NOTEBOOK=yes
7733 DEFAULT_wxUSE_RADIOBOX=yes
7734 DEFAULT_wxUSE_RADIOBTN=yes
7735 DEFAULT_wxUSE_SASH=yes
7736 DEFAULT_wxUSE_SCROLLBAR=yes
7737 DEFAULT_wxUSE_SLIDER=yes
7738 DEFAULT_wxUSE_SPINBTN=yes
7739 DEFAULT_wxUSE_SPINCTRL=yes
7740 DEFAULT_wxUSE_SPLITTER=yes
7741 DEFAULT_wxUSE_STATBMP=yes
7742 DEFAULT_wxUSE_STATBOX=yes
7743 DEFAULT_wxUSE_STATLINE=yes
7744 DEFAULT_wxUSE_STATUSBAR=yes
7745 DEFAULT_wxUSE_TAB_DIALOG=yes
7746 DEFAULT_wxUSE_TOGGLEBTN=yes
7747 DEFAULT_wxUSE_TOOLBAR=yes
7748 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7749 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7750 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7751 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7752 DEFAULT_wxUSE_TREECTRL=yes
7753 DEFAULT_wxUSE_POPUPWIN=yes
7754 DEFAULT_wxUSE_TIPWINDOW=yes
7755elif test "$wxUSE_CONTROLS" = "no"; then
7756 DEFAULT_wxUSE_ACCEL=no
7757 DEFAULT_wxUSE_BMPBUTTON=no
7758 DEFAULT_wxUSE_BUTTON=no
7759 DEFAULT_wxUSE_CALCTRL=no
7760 DEFAULT_wxUSE_CARET=no
7761 DEFAULT_wxUSE_COMBOBOX=no
7762 DEFAULT_wxUSE_CHECKBOX=no
7763 DEFAULT_wxUSE_CHECKLISTBOX=no
7764 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7765 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7766 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7767 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7768 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7769 DEFAULT_wxUSE_DISPLAY=no
7770 DEFAULT_wxUSE_DIRPICKERCTRL=no
7771 DEFAULT_wxUSE_FILEPICKERCTRL=no
7772 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7773 DEFAULT_wxUSE_GAUGE=no
7774 DEFAULT_wxUSE_GRID=no
6954625c 7775 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7776 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7777 DEFAULT_wxUSE_IMAGLIST=no
7778 DEFAULT_wxUSE_LISTBOOK=no
7779 DEFAULT_wxUSE_LISTBOX=no
7780 DEFAULT_wxUSE_LISTCTRL=no
7781 DEFAULT_wxUSE_NOTEBOOK=no
7782 DEFAULT_wxUSE_RADIOBOX=no
7783 DEFAULT_wxUSE_RADIOBTN=no
7784 DEFAULT_wxUSE_SASH=no
7785 DEFAULT_wxUSE_SCROLLBAR=no
7786 DEFAULT_wxUSE_SLIDER=no
7787 DEFAULT_wxUSE_SPINBTN=no
7788 DEFAULT_wxUSE_SPINCTRL=no
7789 DEFAULT_wxUSE_SPLITTER=no
7790 DEFAULT_wxUSE_STATBMP=no
7791 DEFAULT_wxUSE_STATBOX=no
7792 DEFAULT_wxUSE_STATLINE=no
7793 DEFAULT_wxUSE_STATUSBAR=no
7794 DEFAULT_wxUSE_TAB_DIALOG=no
7795 DEFAULT_wxUSE_TOGGLEBTN=no
7796 DEFAULT_wxUSE_TOOLBAR=no
7797 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7798 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7799 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7800 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7801 DEFAULT_wxUSE_TREECTRL=no
7802 DEFAULT_wxUSE_POPUPWIN=no
7803 DEFAULT_wxUSE_TIPWINDOW=no
7804fi
7805
a848cd7e
SC
7806
7807 enablestring=
7808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7809echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7810 no_cache=0
7811 # Check whether --enable-accel or --disable-accel was given.
7812if test "${enable_accel+set}" = set; then
7813 enableval="$enable_accel"
7814
7815 if test "$enableval" = yes; then
7816 ac_cv_use_accel='wxUSE_ACCEL=yes'
7817 else
7818 ac_cv_use_accel='wxUSE_ACCEL=no'
7819 fi
7820
7821else
7822
7823 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7824 if test "x$LINE" != x ; then
7825 eval "DEFAULT_$LINE"
7826 else
7827 no_cache=1
7828 fi
7829
7830 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7831
7832fi;
7833
7834 eval "$ac_cv_use_accel"
7835 if test "$no_cache" != 1; then
7836 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7837 fi
7838
7839 if test "$wxUSE_ACCEL" = yes; then
7840 echo "$as_me:$LINENO: result: yes" >&5
7841echo "${ECHO_T}yes" >&6
7842 else
7843 echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6
7845 fi
7846
7847
7848 enablestring=
7849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7850echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7851 no_cache=0
7852 # Check whether --enable-button or --disable-button was given.
7853if test "${enable_button+set}" = set; then
7854 enableval="$enable_button"
7855
7856 if test "$enableval" = yes; then
7857 ac_cv_use_button='wxUSE_BUTTON=yes'
7858 else
7859 ac_cv_use_button='wxUSE_BUTTON=no'
7860 fi
7861
7862else
7863
7864 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7865 if test "x$LINE" != x ; then
7866 eval "DEFAULT_$LINE"
7867 else
7868 no_cache=1
7869 fi
7870
7871 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7872
7873fi;
7874
7875 eval "$ac_cv_use_button"
7876 if test "$no_cache" != 1; then
7877 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7878 fi
7879
7880 if test "$wxUSE_BUTTON" = yes; then
7881 echo "$as_me:$LINENO: result: yes" >&5
7882echo "${ECHO_T}yes" >&6
7883 else
7884 echo "$as_me:$LINENO: result: no" >&5
7885echo "${ECHO_T}no" >&6
7886 fi
7887
7888
7889 enablestring=
7890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7891echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7892 no_cache=0
7893 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7894if test "${enable_bmpbutton+set}" = set; then
7895 enableval="$enable_bmpbutton"
7896
7897 if test "$enableval" = yes; then
7898 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7899 else
7900 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7901 fi
7902
7903else
7904
7905 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7906 if test "x$LINE" != x ; then
7907 eval "DEFAULT_$LINE"
7908 else
7909 no_cache=1
7910 fi
7911
7912 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7913
7914fi;
7915
7916 eval "$ac_cv_use_bmpbutton"
7917 if test "$no_cache" != 1; then
7918 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7919 fi
7920
7921 if test "$wxUSE_BMPBUTTON" = yes; then
7922 echo "$as_me:$LINENO: result: yes" >&5
7923echo "${ECHO_T}yes" >&6
7924 else
7925 echo "$as_me:$LINENO: result: no" >&5
7926echo "${ECHO_T}no" >&6
7927 fi
7928
7929
7930 enablestring=
7931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7932echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7933 no_cache=0
7934 # Check whether --enable-calendar or --disable-calendar was given.
7935if test "${enable_calendar+set}" = set; then
7936 enableval="$enable_calendar"
7937
7938 if test "$enableval" = yes; then
7939 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7940 else
7941 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7942 fi
7943
7944else
7945
7946 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7947 if test "x$LINE" != x ; then
7948 eval "DEFAULT_$LINE"
7949 else
7950 no_cache=1
7951 fi
7952
7953 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7954
7955fi;
7956
7957 eval "$ac_cv_use_calendar"
7958 if test "$no_cache" != 1; then
7959 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7960 fi
7961
7962 if test "$wxUSE_CALCTRL" = yes; then
7963 echo "$as_me:$LINENO: result: yes" >&5
7964echo "${ECHO_T}yes" >&6
7965 else
7966 echo "$as_me:$LINENO: result: no" >&5
7967echo "${ECHO_T}no" >&6
7968 fi
7969
7970
7971 enablestring=
7972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7973echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7974 no_cache=0
7975 # Check whether --enable-caret or --disable-caret was given.
7976if test "${enable_caret+set}" = set; then
7977 enableval="$enable_caret"
7978
7979 if test "$enableval" = yes; then
7980 ac_cv_use_caret='wxUSE_CARET=yes'
7981 else
7982 ac_cv_use_caret='wxUSE_CARET=no'
7983 fi
7984
7985else
7986
7987 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7988 if test "x$LINE" != x ; then
7989 eval "DEFAULT_$LINE"
7990 else
7991 no_cache=1
7992 fi
7993
7994 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7995
7996fi;
7997
7998 eval "$ac_cv_use_caret"
7999 if test "$no_cache" != 1; then
8000 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8001 fi
8002
8003 if test "$wxUSE_CARET" = yes; then
8004 echo "$as_me:$LINENO: result: yes" >&5
8005echo "${ECHO_T}yes" >&6
8006 else
8007 echo "$as_me:$LINENO: result: no" >&5
8008echo "${ECHO_T}no" >&6
8009 fi
8010
8011
8012 enablestring=
8013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8014echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8015 no_cache=0
8016 # Check whether --enable-checkbox or --disable-checkbox was given.
8017if test "${enable_checkbox+set}" = set; then
8018 enableval="$enable_checkbox"
8019
8020 if test "$enableval" = yes; then
8021 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8022 else
8023 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8024 fi
8025
8026else
8027
8028 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8029 if test "x$LINE" != x ; then
8030 eval "DEFAULT_$LINE"
8031 else
8032 no_cache=1
8033 fi
8034
8035 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8036
8037fi;
8038
8039 eval "$ac_cv_use_checkbox"
8040 if test "$no_cache" != 1; then
8041 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8042 fi
8043
8044 if test "$wxUSE_CHECKBOX" = yes; then
8045 echo "$as_me:$LINENO: result: yes" >&5
8046echo "${ECHO_T}yes" >&6
8047 else
8048 echo "$as_me:$LINENO: result: no" >&5
8049echo "${ECHO_T}no" >&6
8050 fi
8051
8052
8053 enablestring=
8054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8055echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8056 no_cache=0
8057 # Check whether --enable-checklst or --disable-checklst was given.
8058if test "${enable_checklst+set}" = set; then
8059 enableval="$enable_checklst"
8060
8061 if test "$enableval" = yes; then
8062 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8063 else
8064 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8065 fi
8066
8067else
8068
8069 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8070 if test "x$LINE" != x ; then
8071 eval "DEFAULT_$LINE"
8072 else
8073 no_cache=1
8074 fi
8075
8076 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8077
8078fi;
8079
8080 eval "$ac_cv_use_checklst"
8081 if test "$no_cache" != 1; then
8082 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8083 fi
8084
8085 if test "$wxUSE_CHECKLST" = yes; then
8086 echo "$as_me:$LINENO: result: yes" >&5
8087echo "${ECHO_T}yes" >&6
8088 else
8089 echo "$as_me:$LINENO: result: no" >&5
8090echo "${ECHO_T}no" >&6
8091 fi
8092
8093
8094 enablestring=
8095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8096echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8097 no_cache=0
8098 # Check whether --enable-choice or --disable-choice was given.
8099if test "${enable_choice+set}" = set; then
8100 enableval="$enable_choice"
8101
8102 if test "$enableval" = yes; then
8103 ac_cv_use_choice='wxUSE_CHOICE=yes'
8104 else
8105 ac_cv_use_choice='wxUSE_CHOICE=no'
8106 fi
8107
8108else
8109
8110 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8111 if test "x$LINE" != x ; then
8112 eval "DEFAULT_$LINE"
8113 else
8114 no_cache=1
8115 fi
8116
8117 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8118
8119fi;
8120
8121 eval "$ac_cv_use_choice"
8122 if test "$no_cache" != 1; then
8123 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8124 fi
8125
8126 if test "$wxUSE_CHOICE" = yes; then
8127 echo "$as_me:$LINENO: result: yes" >&5
8128echo "${ECHO_T}yes" >&6
8129 else
8130 echo "$as_me:$LINENO: result: no" >&5
8131echo "${ECHO_T}no" >&6
8132 fi
8133
8134
92bbdbcd
WS
8135 enablestring=
8136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8137echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8138 no_cache=0
8139 # Check whether --enable-choicebook or --disable-choicebook was given.
8140if test "${enable_choicebook+set}" = set; then
8141 enableval="$enable_choicebook"
8142
8143 if test "$enableval" = yes; then
8144 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8145 else
8146 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8147 fi
8148
8149else
8150
8151 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8152 if test "x$LINE" != x ; then
8153 eval "DEFAULT_$LINE"
8154 else
8155 no_cache=1
8156 fi
8157
8158 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8159
8160fi;
8161
8162 eval "$ac_cv_use_choicebook"
8163 if test "$no_cache" != 1; then
8164 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8165 fi
8166
8167 if test "$wxUSE_CHOICEBOOK" = yes; then
8168 echo "$as_me:$LINENO: result: yes" >&5
8169echo "${ECHO_T}yes" >&6
8170 else
8171 echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6
8173 fi
8174
8175
e9263684
VZ
8176 enablestring=
8177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8178echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8179 no_cache=0
8180 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8181if test "${enable_colourpicker+set}" = set; then
8182 enableval="$enable_colourpicker"
8183
8184 if test "$enableval" = yes; then
8185 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8186 else
8187 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8188 fi
8189
8190else
8191
8192 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8193 if test "x$LINE" != x ; then
8194 eval "DEFAULT_$LINE"
8195 else
8196 no_cache=1
8197 fi
8198
8199 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8200
8201fi;
8202
8203 eval "$ac_cv_use_colourpicker"
8204 if test "$no_cache" != 1; then
8205 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8206 fi
8207
8208 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8209 echo "$as_me:$LINENO: result: yes" >&5
8210echo "${ECHO_T}yes" >&6
8211 else
8212 echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6
8214 fi
8215
8216
a848cd7e
SC
8217 enablestring=
8218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8219echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8220 no_cache=0
8221 # Check whether --enable-combobox or --disable-combobox was given.
8222if test "${enable_combobox+set}" = set; then
8223 enableval="$enable_combobox"
8224
8225 if test "$enableval" = yes; then
8226 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8227 else
8228 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8229 fi
8230
8231else
8232
8233 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8234 if test "x$LINE" != x ; then
8235 eval "DEFAULT_$LINE"
8236 else
8237 no_cache=1
8238 fi
8239
8240 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8241
8242fi;
8243
8244 eval "$ac_cv_use_combobox"
8245 if test "$no_cache" != 1; then
8246 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8247 fi
8248
8249 if test "$wxUSE_COMBOBOX" = yes; then
8250 echo "$as_me:$LINENO: result: yes" >&5
8251echo "${ECHO_T}yes" >&6
8252 else
8253 echo "$as_me:$LINENO: result: no" >&5
8254echo "${ECHO_T}no" >&6
8255 fi
8256
8257
642bcba9 8258 enablestring=
a57d600f
VZ
8259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8260echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8261 no_cache=0
a57d600f
VZ
8262 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8263if test "${enable_comboctrl+set}" = set; then
8264 enableval="$enable_comboctrl"
642bcba9
VZ
8265
8266 if test "$enableval" = yes; then
a57d600f 8267 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8268 else
a57d600f 8269 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8270 fi
8271
8272else
8273
a57d600f 8274 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8275 if test "x$LINE" != x ; then
8276 eval "DEFAULT_$LINE"
8277 else
8278 no_cache=1
8279 fi
8280
a57d600f 8281 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8282
8283fi;
8284
a57d600f 8285 eval "$ac_cv_use_comboctrl"
642bcba9 8286 if test "$no_cache" != 1; then
a57d600f 8287 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8288 fi
8289
a57d600f 8290 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8291 echo "$as_me:$LINENO: result: yes" >&5
8292echo "${ECHO_T}yes" >&6
8293 else
8294 echo "$as_me:$LINENO: result: no" >&5
8295echo "${ECHO_T}no" >&6
8296 fi
8297
8298
da98e9be
VZ
8299 enablestring=
8300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8301echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8302 no_cache=0
8303 # Check whether --enable-datepick or --disable-datepick was given.
8304if test "${enable_datepick+set}" = set; then
8305 enableval="$enable_datepick"
8306
8307 if test "$enableval" = yes; then
8308 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8309 else
8310 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8311 fi
8312
8313else
8314
8315 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8316 if test "x$LINE" != x ; then
8317 eval "DEFAULT_$LINE"
8318 else
8319 no_cache=1
8320 fi
8321
8322 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8323
8324fi;
8325
8326 eval "$ac_cv_use_datepick"
8327 if test "$no_cache" != 1; then
8328 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8329 fi
8330
8331 if test "$wxUSE_DATEPICKCTRL" = yes; then
8332 echo "$as_me:$LINENO: result: yes" >&5
8333echo "${ECHO_T}yes" >&6
8334 else
8335 echo "$as_me:$LINENO: result: no" >&5
8336echo "${ECHO_T}no" >&6
8337 fi
8338
8339
e9263684
VZ
8340 enablestring=
8341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8342echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8343 no_cache=0
8344 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8345if test "${enable_dirpicker+set}" = set; then
8346 enableval="$enable_dirpicker"
8347
8348 if test "$enableval" = yes; then
8349 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8350 else
8351 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8352 fi
8353
8354else
8355
8356 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8357 if test "x$LINE" != x ; then
8358 eval "DEFAULT_$LINE"
8359 else
8360 no_cache=1
8361 fi
8362
8363 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8364
8365fi;
8366
8367 eval "$ac_cv_use_dirpicker"
8368 if test "$no_cache" != 1; then
8369 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8370 fi
8371
8372 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8373 echo "$as_me:$LINENO: result: yes" >&5
8374echo "${ECHO_T}yes" >&6
8375 else
8376 echo "$as_me:$LINENO: result: no" >&5
8377echo "${ECHO_T}no" >&6
8378 fi
8379
8380
a848cd7e
SC
8381 enablestring=
8382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8383echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8384 no_cache=0
8385 # Check whether --enable-display or --disable-display was given.
8386if test "${enable_display+set}" = set; then
8387 enableval="$enable_display"
8388
8389 if test "$enableval" = yes; then
8390 ac_cv_use_display='wxUSE_DISPLAY=yes'
8391 else
8392 ac_cv_use_display='wxUSE_DISPLAY=no'
8393 fi
8394
8395else
8396
8397 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8398 if test "x$LINE" != x ; then
8399 eval "DEFAULT_$LINE"
8400 else
8401 no_cache=1
8402 fi
8403
8404 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8405
8406fi;
8407
8408 eval "$ac_cv_use_display"
8409 if test "$no_cache" != 1; then
8410 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8411 fi
8412
8413 if test "$wxUSE_DISPLAY" = yes; then
8414 echo "$as_me:$LINENO: result: yes" >&5
8415echo "${ECHO_T}yes" >&6
8416 else
8417 echo "$as_me:$LINENO: result: no" >&5
8418echo "${ECHO_T}no" >&6
8419 fi
8420
8421
e9263684
VZ
8422 enablestring=
8423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8424echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8425 no_cache=0
8426 # Check whether --enable-filepicker or --disable-filepicker was given.
8427if test "${enable_filepicker+set}" = set; then
8428 enableval="$enable_filepicker"
8429
8430 if test "$enableval" = yes; then
8431 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8432 else
8433 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8434 fi
8435
8436else
8437
8438 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8439 if test "x$LINE" != x ; then
8440 eval "DEFAULT_$LINE"
8441 else
8442 no_cache=1
8443 fi
8444
8445 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8446
8447fi;
8448
8449 eval "$ac_cv_use_filepicker"
8450 if test "$no_cache" != 1; then
8451 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8452 fi
8453
8454 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8455 echo "$as_me:$LINENO: result: yes" >&5
8456echo "${ECHO_T}yes" >&6
8457 else
8458 echo "$as_me:$LINENO: result: no" >&5
8459echo "${ECHO_T}no" >&6
8460 fi
8461
8462
8463 enablestring=
8464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8465echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8466 no_cache=0
8467 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8468if test "${enable_fontpicker+set}" = set; then
8469 enableval="$enable_fontpicker"
8470
8471 if test "$enableval" = yes; then
8472 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8473 else
8474 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8475 fi
8476
8477else
8478
8479 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8480 if test "x$LINE" != x ; then
8481 eval "DEFAULT_$LINE"
8482 else
8483 no_cache=1
8484 fi
8485
8486 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8487
8488fi;
8489
8490 eval "$ac_cv_use_fontpicker"
8491 if test "$no_cache" != 1; then
8492 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8493 fi
8494
8495 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8496 echo "$as_me:$LINENO: result: yes" >&5
8497echo "${ECHO_T}yes" >&6
8498 else
8499 echo "$as_me:$LINENO: result: no" >&5
8500echo "${ECHO_T}no" >&6
8501 fi
8502
8503
a848cd7e
SC
8504 enablestring=
8505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8506echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8507 no_cache=0
8508 # Check whether --enable-gauge or --disable-gauge was given.
8509if test "${enable_gauge+set}" = set; then
8510 enableval="$enable_gauge"
8511
8512 if test "$enableval" = yes; then
8513 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8514 else
8515 ac_cv_use_gauge='wxUSE_GAUGE=no'
8516 fi
8517
8518else
8519
8520 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8521 if test "x$LINE" != x ; then
8522 eval "DEFAULT_$LINE"
8523 else
8524 no_cache=1
8525 fi
8526
8527 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8528
8529fi;
8530
8531 eval "$ac_cv_use_gauge"
8532 if test "$no_cache" != 1; then
8533 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8534 fi
8535
8536 if test "$wxUSE_GAUGE" = yes; then
8537 echo "$as_me:$LINENO: result: yes" >&5
8538echo "${ECHO_T}yes" >&6
8539 else
8540 echo "$as_me:$LINENO: result: no" >&5
8541echo "${ECHO_T}no" >&6
8542 fi
8543
8544
8545 enablestring=
8546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8547echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8548 no_cache=0
8549 # Check whether --enable-grid or --disable-grid was given.
8550if test "${enable_grid+set}" = set; then
8551 enableval="$enable_grid"
8552
8553 if test "$enableval" = yes; then
8554 ac_cv_use_grid='wxUSE_GRID=yes'
8555 else
8556 ac_cv_use_grid='wxUSE_GRID=no'
8557 fi
8558
8559else
8560
8561 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8562 if test "x$LINE" != x ; then
8563 eval "DEFAULT_$LINE"
8564 else
8565 no_cache=1
8566 fi
8567
8568 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8569
8570fi;
8571
8572 eval "$ac_cv_use_grid"
8573 if test "$no_cache" != 1; then
8574 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8575 fi
8576
8577 if test "$wxUSE_GRID" = yes; then
8578 echo "$as_me:$LINENO: result: yes" >&5
8579echo "${ECHO_T}yes" >&6
8580 else
8581 echo "$as_me:$LINENO: result: no" >&5
8582echo "${ECHO_T}no" >&6
8583 fi
8584
8585
20e34ecc
RR
8586 enablestring=
8587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8588echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8589 no_cache=0
8590 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8591if test "${enable_dataviewctrl+set}" = set; then
8592 enableval="$enable_dataviewctrl"
8593
8594 if test "$enableval" = yes; then
8595 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8596 else
8597 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8598 fi
8599
8600else
8601
8602 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8603 if test "x$LINE" != x ; then
8604 eval "DEFAULT_$LINE"
8605 else
8606 no_cache=1
8607 fi
8608
8609 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8610
8611fi;
8612
8613 eval "$ac_cv_use_dataviewctrl"
8614 if test "$no_cache" != 1; then
8615 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8616 fi
8617
8618 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8619 echo "$as_me:$LINENO: result: yes" >&5
8620echo "${ECHO_T}yes" >&6
8621 else
8622 echo "$as_me:$LINENO: result: no" >&5
8623echo "${ECHO_T}no" >&6
8624 fi
8625
8626
6954625c
VZ
8627 enablestring=
8628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8629echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8630 no_cache=0
8631 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8632if test "${enable_hyperlink+set}" = set; then
8633 enableval="$enable_hyperlink"
8634
8635 if test "$enableval" = yes; then
8636 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8637 else
8638 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8639 fi
8640
8641else
8642
8643 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8644 if test "x$LINE" != x ; then
8645 eval "DEFAULT_$LINE"
8646 else
8647 no_cache=1
8648 fi
8649
8650 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8651
8652fi;
8653
8654 eval "$ac_cv_use_hyperlink"
8655 if test "$no_cache" != 1; then
8656 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8657 fi
8658
8659 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8660 echo "$as_me:$LINENO: result: yes" >&5
8661echo "${ECHO_T}yes" >&6
8662 else
8663 echo "$as_me:$LINENO: result: no" >&5
8664echo "${ECHO_T}no" >&6
8665 fi
8666
8667
a848cd7e
SC
8668 enablestring=
8669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8670echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8671 no_cache=0
8672 # Check whether --enable-imaglist or --disable-imaglist was given.
8673if test "${enable_imaglist+set}" = set; then
8674 enableval="$enable_imaglist"
8675
8676 if test "$enableval" = yes; then
8677 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8678 else
8679 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8680 fi
8681
8682else
8683
8684 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8685 if test "x$LINE" != x ; then
8686 eval "DEFAULT_$LINE"
8687 else
8688 no_cache=1
8689 fi
8690
8691 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8692
8693fi;
8694
8695 eval "$ac_cv_use_imaglist"
8696 if test "$no_cache" != 1; then
8697 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8698 fi
8699
8700 if test "$wxUSE_IMAGLIST" = yes; then
8701 echo "$as_me:$LINENO: result: yes" >&5
8702echo "${ECHO_T}yes" >&6
8703 else
8704 echo "$as_me:$LINENO: result: no" >&5
8705echo "${ECHO_T}no" >&6
8706 fi
8707
8708
8709 enablestring=
8710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8711echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8712 no_cache=0
8713 # Check whether --enable-listbook or --disable-listbook was given.
8714if test "${enable_listbook+set}" = set; then
8715 enableval="$enable_listbook"
8716
8717 if test "$enableval" = yes; then
8718 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8719 else
8720 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8721 fi
8722
8723else
8724
8725 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8726 if test "x$LINE" != x ; then
8727 eval "DEFAULT_$LINE"
8728 else
8729 no_cache=1
8730 fi
8731
8732 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8733
8734fi;
8735
8736 eval "$ac_cv_use_listbook"
8737 if test "$no_cache" != 1; then
8738 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8739 fi
8740
8741 if test "$wxUSE_LISTBOOK" = yes; then
8742 echo "$as_me:$LINENO: result: yes" >&5
8743echo "${ECHO_T}yes" >&6
8744 else
8745 echo "$as_me:$LINENO: result: no" >&5
8746echo "${ECHO_T}no" >&6
8747 fi
8748
8749
8750 enablestring=
8751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8752echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8753 no_cache=0
8754 # Check whether --enable-listbox or --disable-listbox was given.
8755if test "${enable_listbox+set}" = set; then
8756 enableval="$enable_listbox"
8757
8758 if test "$enableval" = yes; then
8759 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8760 else
8761 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8762 fi
8763
8764else
8765
8766 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8767 if test "x$LINE" != x ; then
8768 eval "DEFAULT_$LINE"
8769 else
8770 no_cache=1
8771 fi
8772
8773 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8774
8775fi;
8776
8777 eval "$ac_cv_use_listbox"
8778 if test "$no_cache" != 1; then
8779 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8780 fi
8781
8782 if test "$wxUSE_LISTBOX" = yes; then
8783 echo "$as_me:$LINENO: result: yes" >&5
8784echo "${ECHO_T}yes" >&6
8785 else
8786 echo "$as_me:$LINENO: result: no" >&5
8787echo "${ECHO_T}no" >&6
8788 fi
8789
8790
8791 enablestring=
8792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8793echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8794 no_cache=0
8795 # Check whether --enable-listctrl or --disable-listctrl was given.
8796if test "${enable_listctrl+set}" = set; then
8797 enableval="$enable_listctrl"
8798
8799 if test "$enableval" = yes; then
8800 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8801 else
8802 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8803 fi
8804
8805else
8806
8807 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8808 if test "x$LINE" != x ; then
8809 eval "DEFAULT_$LINE"
8810 else
8811 no_cache=1
8812 fi
8813
8814 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8815
8816fi;
8817
8818 eval "$ac_cv_use_listctrl"
8819 if test "$no_cache" != 1; then
8820 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8821 fi
8822
8823 if test "$wxUSE_LISTCTRL" = yes; then
8824 echo "$as_me:$LINENO: result: yes" >&5
8825echo "${ECHO_T}yes" >&6
8826 else
8827 echo "$as_me:$LINENO: result: no" >&5
8828echo "${ECHO_T}no" >&6
8829 fi
8830
8831
8832 enablestring=
8833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8834echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8835 no_cache=0
8836 # Check whether --enable-notebook or --disable-notebook was given.
8837if test "${enable_notebook+set}" = set; then
8838 enableval="$enable_notebook"
8839
8840 if test "$enableval" = yes; then
8841 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8842 else
8843 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8844 fi
8845
8846else
8847
8848 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8849 if test "x$LINE" != x ; then
8850 eval "DEFAULT_$LINE"
8851 else
8852 no_cache=1
8853 fi
8854
8855 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8856
8857fi;
8858
8859 eval "$ac_cv_use_notebook"
8860 if test "$no_cache" != 1; then
8861 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8862 fi
8863
8864 if test "$wxUSE_NOTEBOOK" = yes; then
8865 echo "$as_me:$LINENO: result: yes" >&5
8866echo "${ECHO_T}yes" >&6
8867 else
8868 echo "$as_me:$LINENO: result: no" >&5
8869echo "${ECHO_T}no" >&6
8870 fi
8871
8872
642bcba9 8873 enablestring=
a57d600f
VZ
8874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8875echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8876 no_cache=0
a57d600f
VZ
8877 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8878if test "${enable_odcombobox+set}" = set; then
8879 enableval="$enable_odcombobox"
642bcba9
VZ
8880
8881 if test "$enableval" = yes; then
a57d600f 8882 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8883 else
a57d600f 8884 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8885 fi
8886
8887else
8888
a57d600f 8889 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8890 if test "x$LINE" != x ; then
8891 eval "DEFAULT_$LINE"
8892 else
8893 no_cache=1
8894 fi
8895
a57d600f 8896 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8897
8898fi;
8899
a57d600f 8900 eval "$ac_cv_use_odcombobox"
642bcba9 8901 if test "$no_cache" != 1; then
a57d600f 8902 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8903 fi
8904
a57d600f 8905 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8906 echo "$as_me:$LINENO: result: yes" >&5
8907echo "${ECHO_T}yes" >&6
8908 else
8909 echo "$as_me:$LINENO: result: no" >&5
8910echo "${ECHO_T}no" >&6
8911 fi
8912
8913
a848cd7e
SC
8914 enablestring=
8915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8916echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8917 no_cache=0
8918 # Check whether --enable-radiobox or --disable-radiobox was given.
8919if test "${enable_radiobox+set}" = set; then
8920 enableval="$enable_radiobox"
8921
8922 if test "$enableval" = yes; then
8923 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8924 else
8925 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8926 fi
8927
8928else
8929
8930 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8931 if test "x$LINE" != x ; then
8932 eval "DEFAULT_$LINE"
8933 else
8934 no_cache=1
8935 fi
8936
8937 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8938
8939fi;
8940
8941 eval "$ac_cv_use_radiobox"
8942 if test "$no_cache" != 1; then
8943 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8944 fi
8945
8946 if test "$wxUSE_RADIOBOX" = yes; then
8947 echo "$as_me:$LINENO: result: yes" >&5
8948echo "${ECHO_T}yes" >&6
8949 else
8950 echo "$as_me:$LINENO: result: no" >&5
8951echo "${ECHO_T}no" >&6
8952 fi
8953
8954
8955 enablestring=
8956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8957echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8958 no_cache=0
8959 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8960if test "${enable_radiobtn+set}" = set; then
8961 enableval="$enable_radiobtn"
8962
8963 if test "$enableval" = yes; then
8964 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8965 else
8966 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8967 fi
8968
8969else
8970
8971 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8972 if test "x$LINE" != x ; then
8973 eval "DEFAULT_$LINE"
8974 else
8975 no_cache=1
8976 fi
8977
8978 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8979
8980fi;
8981
8982 eval "$ac_cv_use_radiobtn"
8983 if test "$no_cache" != 1; then
8984 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8985 fi
8986
8987 if test "$wxUSE_RADIOBTN" = yes; then
8988 echo "$as_me:$LINENO: result: yes" >&5
8989echo "${ECHO_T}yes" >&6
8990 else
8991 echo "$as_me:$LINENO: result: no" >&5
8992echo "${ECHO_T}no" >&6
8993 fi
8994
8995
8996 enablestring=
8997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8998echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8999 no_cache=0
9000 # Check whether --enable-sash or --disable-sash was given.
9001if test "${enable_sash+set}" = set; then
9002 enableval="$enable_sash"
9003
9004 if test "$enableval" = yes; then
9005 ac_cv_use_sash='wxUSE_SASH=yes'
9006 else
9007 ac_cv_use_sash='wxUSE_SASH=no'
9008 fi
9009
9010else
9011
9012 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9013 if test "x$LINE" != x ; then
9014 eval "DEFAULT_$LINE"
9015 else
9016 no_cache=1
9017 fi
9018
9019 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9020
9021fi;
9022
9023 eval "$ac_cv_use_sash"
9024 if test "$no_cache" != 1; then
9025 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9026 fi
9027
9028 if test "$wxUSE_SASH" = yes; then
9029 echo "$as_me:$LINENO: result: yes" >&5
9030echo "${ECHO_T}yes" >&6
9031 else
9032 echo "$as_me:$LINENO: result: no" >&5
9033echo "${ECHO_T}no" >&6
9034 fi
9035
9036
9037 enablestring=
9038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9039echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9040 no_cache=0
9041 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9042if test "${enable_scrollbar+set}" = set; then
9043 enableval="$enable_scrollbar"
9044
9045 if test "$enableval" = yes; then
9046 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9047 else
9048 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9049 fi
9050
9051else
9052
9053 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9054 if test "x$LINE" != x ; then
9055 eval "DEFAULT_$LINE"
9056 else
9057 no_cache=1
9058 fi
9059
9060 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9061
9062fi;
9063
9064 eval "$ac_cv_use_scrollbar"
9065 if test "$no_cache" != 1; then
9066 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9067 fi
9068
9069 if test "$wxUSE_SCROLLBAR" = yes; then
9070 echo "$as_me:$LINENO: result: yes" >&5
9071echo "${ECHO_T}yes" >&6
9072 else
9073 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
9075 fi
9076
9077
9078 enablestring=
9079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9080echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9081 no_cache=0
9082 # Check whether --enable-slider or --disable-slider was given.
9083if test "${enable_slider+set}" = set; then
9084 enableval="$enable_slider"
9085
9086 if test "$enableval" = yes; then
9087 ac_cv_use_slider='wxUSE_SLIDER=yes'
9088 else
9089 ac_cv_use_slider='wxUSE_SLIDER=no'
9090 fi
9091
9092else
9093
9094 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9095 if test "x$LINE" != x ; then
9096 eval "DEFAULT_$LINE"
9097 else
9098 no_cache=1
9099 fi
9100
9101 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9102
9103fi;
9104
9105 eval "$ac_cv_use_slider"
9106 if test "$no_cache" != 1; then
9107 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9108 fi
9109
9110 if test "$wxUSE_SLIDER" = yes; then
9111 echo "$as_me:$LINENO: result: yes" >&5
9112echo "${ECHO_T}yes" >&6
9113 else
9114 echo "$as_me:$LINENO: result: no" >&5
9115echo "${ECHO_T}no" >&6
9116 fi
9117
9118
9119 enablestring=
9120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9121echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9122 no_cache=0
9123 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9124if test "${enable_spinbtn+set}" = set; then
9125 enableval="$enable_spinbtn"
9126
9127 if test "$enableval" = yes; then
9128 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9129 else
9130 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9131 fi
9132
9133else
9134
9135 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9136 if test "x$LINE" != x ; then
9137 eval "DEFAULT_$LINE"
9138 else
9139 no_cache=1
9140 fi
9141
9142 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9143
9144fi;
9145
9146 eval "$ac_cv_use_spinbtn"
9147 if test "$no_cache" != 1; then
9148 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9149 fi
9150
9151 if test "$wxUSE_SPINBTN" = yes; then
9152 echo "$as_me:$LINENO: result: yes" >&5
9153echo "${ECHO_T}yes" >&6
9154 else
9155 echo "$as_me:$LINENO: result: no" >&5
9156echo "${ECHO_T}no" >&6
9157 fi
9158
9159
9160 enablestring=
9161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9162echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9163 no_cache=0
9164 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9165if test "${enable_spinctrl+set}" = set; then
9166 enableval="$enable_spinctrl"
9167
9168 if test "$enableval" = yes; then
9169 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9170 else
9171 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9172 fi
9173
9174else
9175
9176 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9177 if test "x$LINE" != x ; then
9178 eval "DEFAULT_$LINE"
9179 else
9180 no_cache=1
9181 fi
9182
9183 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9184
9185fi;
9186
9187 eval "$ac_cv_use_spinctrl"
9188 if test "$no_cache" != 1; then
9189 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9190 fi
9191
9192 if test "$wxUSE_SPINCTRL" = yes; then
9193 echo "$as_me:$LINENO: result: yes" >&5
9194echo "${ECHO_T}yes" >&6
9195 else
9196 echo "$as_me:$LINENO: result: no" >&5
9197echo "${ECHO_T}no" >&6
9198 fi
9199
9200
9201 enablestring=
9202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9203echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9204 no_cache=0
9205 # Check whether --enable-splitter or --disable-splitter was given.
9206if test "${enable_splitter+set}" = set; then
9207 enableval="$enable_splitter"
9208
9209 if test "$enableval" = yes; then
9210 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9211 else
9212 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9213 fi
9214
9215else
9216
9217 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9218 if test "x$LINE" != x ; then
9219 eval "DEFAULT_$LINE"
9220 else
9221 no_cache=1
9222 fi
9223
9224 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9225
9226fi;
9227
9228 eval "$ac_cv_use_splitter"
9229 if test "$no_cache" != 1; then
9230 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9231 fi
9232
9233 if test "$wxUSE_SPLITTER" = yes; then
9234 echo "$as_me:$LINENO: result: yes" >&5
9235echo "${ECHO_T}yes" >&6
9236 else
9237 echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6
9239 fi
9240
9241
9242 enablestring=
9243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9244echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9245 no_cache=0
9246 # Check whether --enable-statbmp or --disable-statbmp was given.
9247if test "${enable_statbmp+set}" = set; then
9248 enableval="$enable_statbmp"
9249
9250 if test "$enableval" = yes; then
9251 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9252 else
9253 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9254 fi
9255
9256else
9257
9258 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9259 if test "x$LINE" != x ; then
9260 eval "DEFAULT_$LINE"
9261 else
9262 no_cache=1
9263 fi
9264
9265 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9266
9267fi;
9268
9269 eval "$ac_cv_use_statbmp"
9270 if test "$no_cache" != 1; then
9271 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9272 fi
9273
9274 if test "$wxUSE_STATBMP" = yes; then
9275 echo "$as_me:$LINENO: result: yes" >&5
9276echo "${ECHO_T}yes" >&6
9277 else
9278 echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
9280 fi
9281
9282
9283 enablestring=
9284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9285echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9286 no_cache=0
9287 # Check whether --enable-statbox or --disable-statbox was given.
9288if test "${enable_statbox+set}" = set; then
9289 enableval="$enable_statbox"
9290
9291 if test "$enableval" = yes; then
9292 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9293 else
9294 ac_cv_use_statbox='wxUSE_STATBOX=no'
9295 fi
9296
9297else
9298
9299 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9300 if test "x$LINE" != x ; then
9301 eval "DEFAULT_$LINE"
9302 else
9303 no_cache=1
9304 fi
9305
9306 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9307
9308fi;
9309
9310 eval "$ac_cv_use_statbox"
9311 if test "$no_cache" != 1; then
9312 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9313 fi
9314
9315 if test "$wxUSE_STATBOX" = yes; then
9316 echo "$as_me:$LINENO: result: yes" >&5
9317echo "${ECHO_T}yes" >&6
9318 else
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
9321 fi
9322
9323
9324 enablestring=
9325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9326echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9327 no_cache=0
9328 # Check whether --enable-statline or --disable-statline was given.
9329if test "${enable_statline+set}" = set; then
9330 enableval="$enable_statline"
9331
9332 if test "$enableval" = yes; then
9333 ac_cv_use_statline='wxUSE_STATLINE=yes'
9334 else
9335 ac_cv_use_statline='wxUSE_STATLINE=no'
9336 fi
9337
9338else
9339
9340 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9341 if test "x$LINE" != x ; then
9342 eval "DEFAULT_$LINE"
9343 else
9344 no_cache=1
9345 fi
9346
9347 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9348
9349fi;
9350
9351 eval "$ac_cv_use_statline"
9352 if test "$no_cache" != 1; then
9353 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9354 fi
9355
9356 if test "$wxUSE_STATLINE" = yes; then
9357 echo "$as_me:$LINENO: result: yes" >&5
9358echo "${ECHO_T}yes" >&6
9359 else
9360 echo "$as_me:$LINENO: result: no" >&5
9361echo "${ECHO_T}no" >&6
9362 fi
9363
9364
9365 enablestring=
9366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9367echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9368 no_cache=0
9369 # Check whether --enable-stattext or --disable-stattext was given.
9370if test "${enable_stattext+set}" = set; then
9371 enableval="$enable_stattext"
9372
9373 if test "$enableval" = yes; then
9374 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9375 else
9376 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9377 fi
9378
9379else
9380
9381 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9382 if test "x$LINE" != x ; then
9383 eval "DEFAULT_$LINE"
9384 else
9385 no_cache=1
9386 fi
9387
9388 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9389
9390fi;
9391
9392 eval "$ac_cv_use_stattext"
9393 if test "$no_cache" != 1; then
9394 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9395 fi
9396
9397 if test "$wxUSE_STATTEXT" = yes; then
9398 echo "$as_me:$LINENO: result: yes" >&5
9399echo "${ECHO_T}yes" >&6
9400 else
9401 echo "$as_me:$LINENO: result: no" >&5
9402echo "${ECHO_T}no" >&6
9403 fi
9404
9405
9406 enablestring=
9407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9408echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9409 no_cache=0
9410 # Check whether --enable-statusbar or --disable-statusbar was given.
9411if test "${enable_statusbar+set}" = set; then
9412 enableval="$enable_statusbar"
9413
9414 if test "$enableval" = yes; then
9415 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9416 else
9417 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9418 fi
9419
9420else
9421
9422 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9423 if test "x$LINE" != x ; then
9424 eval "DEFAULT_$LINE"
9425 else
9426 no_cache=1
9427 fi
9428
9429 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9430
9431fi;
9432
9433 eval "$ac_cv_use_statusbar"
9434 if test "$no_cache" != 1; then
9435 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9436 fi
9437
9438 if test "$wxUSE_STATUSBAR" = yes; then
9439 echo "$as_me:$LINENO: result: yes" >&5
9440echo "${ECHO_T}yes" >&6
9441 else
9442 echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
9444 fi
9445
9446
9447 enablestring=
9448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9449echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9450 no_cache=0
9451 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9452if test "${enable_tabdialog+set}" = set; then
9453 enableval="$enable_tabdialog"
9454
9455 if test "$enableval" = yes; then
f10e38c4 9456 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9457 else
f10e38c4 9458 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9459 fi
9460
9461else
9462
f10e38c4 9463 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9464 if test "x$LINE" != x ; then
9465 eval "DEFAULT_$LINE"
9466 else
9467 no_cache=1
9468 fi
9469
f10e38c4 9470 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9471
9472fi;
9473
9474 eval "$ac_cv_use_tabdialog"
9475 if test "$no_cache" != 1; then
9476 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9477 fi
9478
f10e38c4 9479 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9480 echo "$as_me:$LINENO: result: yes" >&5
9481echo "${ECHO_T}yes" >&6
9482 else
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485 fi
9486
9487
9488 enablestring=
9489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9490echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9491 no_cache=0
9492 # Check whether --enable-textctrl or --disable-textctrl was given.
9493if test "${enable_textctrl+set}" = set; then
9494 enableval="$enable_textctrl"
9495
9496 if test "$enableval" = yes; then
9497 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9498 else
9499 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9500 fi
9501
9502else
9503
9504 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9505 if test "x$LINE" != x ; then
9506 eval "DEFAULT_$LINE"
9507 else
9508 no_cache=1
9509 fi
9510
9511 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9512
9513fi;
9514
9515 eval "$ac_cv_use_textctrl"
9516 if test "$no_cache" != 1; then
9517 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9518 fi
9519
9520 if test "$wxUSE_TEXTCTRL" = yes; then
9521 echo "$as_me:$LINENO: result: yes" >&5
9522echo "${ECHO_T}yes" >&6
9523 else
9524 echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
9526 fi
9527
9528
9529 enablestring=
9530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9531echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9532 no_cache=0
9533 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9534if test "${enable_togglebtn+set}" = set; then
9535 enableval="$enable_togglebtn"
9536
9537 if test "$enableval" = yes; then
9538 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9539 else
9540 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9541 fi
9542
9543else
9544
9545 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9546 if test "x$LINE" != x ; then
9547 eval "DEFAULT_$LINE"
9548 else
9549 no_cache=1
9550 fi
9551
9552 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9553
9554fi;
9555
9556 eval "$ac_cv_use_togglebtn"
9557 if test "$no_cache" != 1; then
9558 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9559 fi
9560
9561 if test "$wxUSE_TOGGLEBTN" = yes; then
9562 echo "$as_me:$LINENO: result: yes" >&5
9563echo "${ECHO_T}yes" >&6
9564 else
9565 echo "$as_me:$LINENO: result: no" >&5
9566echo "${ECHO_T}no" >&6
9567 fi
9568
9569
9570 enablestring=
9571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9572echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9573 no_cache=0
9574 # Check whether --enable-toolbar or --disable-toolbar was given.
9575if test "${enable_toolbar+set}" = set; then
9576 enableval="$enable_toolbar"
9577
9578 if test "$enableval" = yes; then
9579 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9580 else
9581 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9582 fi
9583
9584else
9585
9586 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9587 if test "x$LINE" != x ; then
9588 eval "DEFAULT_$LINE"
9589 else
9590 no_cache=1
9591 fi
9592
9593 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9594
9595fi;
9596
9597 eval "$ac_cv_use_toolbar"
9598 if test "$no_cache" != 1; then
9599 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9600 fi
9601
9602 if test "$wxUSE_TOOLBAR" = yes; then
9603 echo "$as_me:$LINENO: result: yes" >&5
9604echo "${ECHO_T}yes" >&6
9605 else
9606 echo "$as_me:$LINENO: result: no" >&5
9607echo "${ECHO_T}no" >&6
9608 fi
9609
9610
9611 enablestring=
9612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9613echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9614 no_cache=0
9615 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9616if test "${enable_tbarnative+set}" = set; then
9617 enableval="$enable_tbarnative"
9618
9619 if test "$enableval" = yes; then
9620 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9621 else
9622 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9623 fi
9624
9625else
9626
9627 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9628 if test "x$LINE" != x ; then
9629 eval "DEFAULT_$LINE"
9630 else
9631 no_cache=1
9632 fi
9633
9634 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9635
9636fi;
9637
9638 eval "$ac_cv_use_tbarnative"
9639 if test "$no_cache" != 1; then
9640 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9641 fi
9642
9643 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9644 echo "$as_me:$LINENO: result: yes" >&5
9645echo "${ECHO_T}yes" >&6
9646 else
9647 echo "$as_me:$LINENO: result: no" >&5
9648echo "${ECHO_T}no" >&6
9649 fi
9650
9651
0093c2fc
VZ
9652 enablestring=
9653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9654echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9655 no_cache=0
9656 # Check whether --enable-treebook or --disable-treebook was given.
9657if test "${enable_treebook+set}" = set; then
9658 enableval="$enable_treebook"
9659
9660 if test "$enableval" = yes; then
9661 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9662 else
9663 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9664 fi
9665
9666else
9667
9668 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9669 if test "x$LINE" != x ; then
9670 eval "DEFAULT_$LINE"
9671 else
9672 no_cache=1
9673 fi
9674
9675 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9676
9677fi;
9678
9679 eval "$ac_cv_use_treebook"
9680 if test "$no_cache" != 1; then
9681 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9682 fi
9683
9684 if test "$wxUSE_TREEBOOK" = yes; then
9685 echo "$as_me:$LINENO: result: yes" >&5
9686echo "${ECHO_T}yes" >&6
9687 else
9688 echo "$as_me:$LINENO: result: no" >&5
9689echo "${ECHO_T}no" >&6
9690 fi
9691
9692
5ec3bc43
JS
9693 enablestring=
9694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9695echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9696 no_cache=0
9697 # Check whether --enable-toolbook or --disable-toolbook was given.
9698if test "${enable_toolbook+set}" = set; then
9699 enableval="$enable_toolbook"
9700
9701 if test "$enableval" = yes; then
9702 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9703 else
9704 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9705 fi
9706
9707else
9708
9709 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9710 if test "x$LINE" != x ; then
9711 eval "DEFAULT_$LINE"
9712 else
9713 no_cache=1
9714 fi
9715
9716 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9717
9718fi;
9719
9720 eval "$ac_cv_use_toolbook"
9721 if test "$no_cache" != 1; then
9722 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9723 fi
9724
9725 if test "$wxUSE_TOOLBOOK" = yes; then
9726 echo "$as_me:$LINENO: result: yes" >&5
9727echo "${ECHO_T}yes" >&6
9728 else
9729 echo "$as_me:$LINENO: result: no" >&5
9730echo "${ECHO_T}no" >&6
9731 fi
9732
9733
a848cd7e
SC
9734 enablestring=
9735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9736echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9737 no_cache=0
9738 # Check whether --enable-treectrl or --disable-treectrl was given.
9739if test "${enable_treectrl+set}" = set; then
9740 enableval="$enable_treectrl"
9741
9742 if test "$enableval" = yes; then
9743 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9744 else
9745 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9746 fi
9747
9748else
9749
9750 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9751 if test "x$LINE" != x ; then
9752 eval "DEFAULT_$LINE"
9753 else
9754 no_cache=1
9755 fi
9756
9757 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9758
9759fi;
9760
9761 eval "$ac_cv_use_treectrl"
9762 if test "$no_cache" != 1; then
9763 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9764 fi
9765
9766 if test "$wxUSE_TREECTRL" = yes; then
9767 echo "$as_me:$LINENO: result: yes" >&5
9768echo "${ECHO_T}yes" >&6
9769 else
9770 echo "$as_me:$LINENO: result: no" >&5
9771echo "${ECHO_T}no" >&6
9772 fi
9773
9774
9775 enablestring=
9776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9777echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9778 no_cache=0
9779 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9780if test "${enable_tipwindow+set}" = set; then
9781 enableval="$enable_tipwindow"
9782
9783 if test "$enableval" = yes; then
9784 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9785 else
9786 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9787 fi
9788
9789else
9790
9791 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9792 if test "x$LINE" != x ; then
9793 eval "DEFAULT_$LINE"
9794 else
9795 no_cache=1
9796 fi
9797
9798 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9799
9800fi;
9801
9802 eval "$ac_cv_use_tipwindow"
9803 if test "$no_cache" != 1; then
9804 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9805 fi
9806
9807 if test "$wxUSE_TIPWINDOW" = yes; then
9808 echo "$as_me:$LINENO: result: yes" >&5
9809echo "${ECHO_T}yes" >&6
9810 else
9811 echo "$as_me:$LINENO: result: no" >&5
9812echo "${ECHO_T}no" >&6
9813 fi
9814
9815
9816 enablestring=
9817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9818echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9819 no_cache=0
9820 # Check whether --enable-popupwin or --disable-popupwin was given.
9821if test "${enable_popupwin+set}" = set; then
9822 enableval="$enable_popupwin"
9823
9824 if test "$enableval" = yes; then
9825 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9826 else
9827 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9828 fi
9829
9830else
9831
9832 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9833 if test "x$LINE" != x ; then
9834 eval "DEFAULT_$LINE"
9835 else
9836 no_cache=1
9837 fi
9838
9839 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9840
9841fi;
9842
9843 eval "$ac_cv_use_popupwin"
9844 if test "$no_cache" != 1; then
9845 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9846 fi
9847
9848 if test "$wxUSE_POPUPWIN" = yes; then
9849 echo "$as_me:$LINENO: result: yes" >&5
9850echo "${ECHO_T}yes" >&6
9851 else
9852 echo "$as_me:$LINENO: result: no" >&5
9853echo "${ECHO_T}no" >&6
9854 fi
9855
9856
9857
9858
9859 enablestring=
9860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9861echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9862 no_cache=0
9863 # Check whether --enable-commondlg or --disable-commondlg was given.
9864if test "${enable_commondlg+set}" = set; then
9865 enableval="$enable_commondlg"
9866
9867 if test "$enableval" = yes; then
9868 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9869 else
9870 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9871 fi
9872
9873else
9874
9875 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9876 if test "x$LINE" != x ; then
9877 eval "DEFAULT_$LINE"
9878 else
9879 no_cache=1
9880 fi
9881
9882 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9883
9884fi;
9885
9886 eval "$ac_cv_use_commondlg"
9887 if test "$no_cache" != 1; then
9888 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9889 fi
9890
9891 if test "$wxUSE_COMMONDLGS" = yes; then
9892 echo "$as_me:$LINENO: result: yes" >&5
9893echo "${ECHO_T}yes" >&6
9894 else
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
9897 fi
9898
9899
9900 enablestring=
9901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9902echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9903 no_cache=0
9904 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9905if test "${enable_choicedlg+set}" = set; then
9906 enableval="$enable_choicedlg"
9907
9908 if test "$enableval" = yes; then
9909 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9910 else
9911 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9912 fi
9913
9914else
9915
9916 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9917 if test "x$LINE" != x ; then
9918 eval "DEFAULT_$LINE"
9919 else
9920 no_cache=1
9921 fi
9922
9923 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9924
9925fi;
9926
9927 eval "$ac_cv_use_choicedlg"
9928 if test "$no_cache" != 1; then
9929 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9930 fi
9931
9932 if test "$wxUSE_CHOICEDLG" = yes; then
9933 echo "$as_me:$LINENO: result: yes" >&5
9934echo "${ECHO_T}yes" >&6
9935 else
9936 echo "$as_me:$LINENO: result: no" >&5
9937echo "${ECHO_T}no" >&6
9938 fi
9939
9940
9941 enablestring=
9942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9943echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9944 no_cache=0
9945 # Check whether --enable-coldlg or --disable-coldlg was given.
9946if test "${enable_coldlg+set}" = set; then
9947 enableval="$enable_coldlg"
9948
9949 if test "$enableval" = yes; then
9950 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9951 else
9952 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9953 fi
9954
9955else
9956
9957 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9958 if test "x$LINE" != x ; then
9959 eval "DEFAULT_$LINE"
9960 else
9961 no_cache=1
9962 fi
9963
9964 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9965
9966fi;
9967
9968 eval "$ac_cv_use_coldlg"
9969 if test "$no_cache" != 1; then
9970 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9971 fi
9972
9973 if test "$wxUSE_COLOURDLG" = yes; then
9974 echo "$as_me:$LINENO: result: yes" >&5
9975echo "${ECHO_T}yes" >&6
9976 else
9977 echo "$as_me:$LINENO: result: no" >&5
9978echo "${ECHO_T}no" >&6
9979 fi
9980
9981
9982 enablestring=
9983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9984echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9985 no_cache=0
9986 # Check whether --enable-filedlg or --disable-filedlg was given.
9987if test "${enable_filedlg+set}" = set; then
9988 enableval="$enable_filedlg"
9989
9990 if test "$enableval" = yes; then
9991 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9992 else
9993 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9994 fi
9995
9996else
9997
9998 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9999 if test "x$LINE" != x ; then
10000 eval "DEFAULT_$LINE"
10001 else
10002 no_cache=1
10003 fi
10004
10005 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10006
10007fi;
10008
10009 eval "$ac_cv_use_filedlg"
10010 if test "$no_cache" != 1; then
10011 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10012 fi
10013
10014 if test "$wxUSE_FILEDLG" = yes; then
10015 echo "$as_me:$LINENO: result: yes" >&5
10016echo "${ECHO_T}yes" >&6
10017 else
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
10020 fi
10021
10022
10023 enablestring=
10024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10025echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10026 no_cache=0
10027 # Check whether --enable-finddlg or --disable-finddlg was given.
10028if test "${enable_finddlg+set}" = set; then
10029 enableval="$enable_finddlg"
10030
10031 if test "$enableval" = yes; then
10032 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10033 else
10034 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10035 fi
10036
10037else
10038
10039 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10040 if test "x$LINE" != x ; then
10041 eval "DEFAULT_$LINE"
10042 else
10043 no_cache=1
10044 fi
10045
10046 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10047
10048fi;
10049
10050 eval "$ac_cv_use_finddlg"
10051 if test "$no_cache" != 1; then
10052 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10053 fi
10054
10055 if test "$wxUSE_FINDREPLDLG" = yes; then
10056 echo "$as_me:$LINENO: result: yes" >&5
10057echo "${ECHO_T}yes" >&6
10058 else
10059 echo "$as_me:$LINENO: result: no" >&5
10060echo "${ECHO_T}no" >&6
10061 fi
10062
10063
10064 enablestring=
10065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10066echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10067 no_cache=0
10068 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10069if test "${enable_fontdlg+set}" = set; then
10070 enableval="$enable_fontdlg"
10071
10072 if test "$enableval" = yes; then
10073 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10074 else
10075 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10076 fi
10077
10078else
10079
10080 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10081 if test "x$LINE" != x ; then
10082 eval "DEFAULT_$LINE"
10083 else
10084 no_cache=1
10085 fi
10086
10087 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10088
10089fi;
10090
10091 eval "$ac_cv_use_fontdlg"
10092 if test "$no_cache" != 1; then
10093 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10094 fi
10095
10096 if test "$wxUSE_FONTDLG" = yes; then
10097 echo "$as_me:$LINENO: result: yes" >&5
10098echo "${ECHO_T}yes" >&6
10099 else
10100 echo "$as_me:$LINENO: result: no" >&5
10101echo "${ECHO_T}no" >&6
10102 fi
10103
10104
10105 enablestring=
10106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10107echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10108 no_cache=0
10109 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10110if test "${enable_dirdlg+set}" = set; then
10111 enableval="$enable_dirdlg"
10112
10113 if test "$enableval" = yes; then
10114 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10115 else
10116 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10117 fi
10118
10119else
10120
10121 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10122 if test "x$LINE" != x ; then
10123 eval "DEFAULT_$LINE"
10124 else
10125 no_cache=1
10126 fi
10127
10128 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10129
10130fi;
10131
10132 eval "$ac_cv_use_dirdlg"
10133 if test "$no_cache" != 1; then
10134 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10135 fi
10136
10137 if test "$wxUSE_DIRDLG" = yes; then
10138 echo "$as_me:$LINENO: result: yes" >&5
10139echo "${ECHO_T}yes" >&6
10140 else
10141 echo "$as_me:$LINENO: result: no" >&5
10142echo "${ECHO_T}no" >&6
10143 fi
10144
10145
10146 enablestring=
10147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10148echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10149 no_cache=0
10150 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10151if test "${enable_msgdlg+set}" = set; then
10152 enableval="$enable_msgdlg"
10153
10154 if test "$enableval" = yes; then
10155 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10156 else
10157 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10158 fi
10159
10160else
10161
10162 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10163 if test "x$LINE" != x ; then
10164 eval "DEFAULT_$LINE"
10165 else
10166 no_cache=1
10167 fi
10168
10169 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10170
10171fi;
10172
10173 eval "$ac_cv_use_msgdlg"
10174 if test "$no_cache" != 1; then
10175 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10176 fi
10177
10178 if test "$wxUSE_MSGDLG" = yes; then
10179 echo "$as_me:$LINENO: result: yes" >&5
10180echo "${ECHO_T}yes" >&6
10181 else
10182 echo "$as_me:$LINENO: result: no" >&5
10183echo "${ECHO_T}no" >&6
10184 fi
10185
10186
10187 enablestring=
10188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10189echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10190 no_cache=0
10191 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10192if test "${enable_numberdlg+set}" = set; then
10193 enableval="$enable_numberdlg"
10194
10195 if test "$enableval" = yes; then
10196 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10197 else
10198 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10199 fi
10200
10201else
10202
10203 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10204 if test "x$LINE" != x ; then
10205 eval "DEFAULT_$LINE"
10206 else
10207 no_cache=1
10208 fi
10209
10210 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10211
10212fi;
10213
10214 eval "$ac_cv_use_numberdlg"
10215 if test "$no_cache" != 1; then
10216 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10217 fi
10218
10219 if test "$wxUSE_NUMBERDLG" = yes; then
10220 echo "$as_me:$LINENO: result: yes" >&5
10221echo "${ECHO_T}yes" >&6
10222 else
10223 echo "$as_me:$LINENO: result: no" >&5
10224echo "${ECHO_T}no" >&6
10225 fi
10226
10227
10228 enablestring=
10229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10230echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10231 no_cache=0
10232 # Check whether --enable-splash or --disable-splash was given.
10233if test "${enable_splash+set}" = set; then
10234 enableval="$enable_splash"
10235
10236 if test "$enableval" = yes; then
10237 ac_cv_use_splash='wxUSE_SPLASH=yes'
10238 else
10239 ac_cv_use_splash='wxUSE_SPLASH=no'
10240 fi
10241
10242else
10243
10244 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10245 if test "x$LINE" != x ; then
10246 eval "DEFAULT_$LINE"
10247 else
10248 no_cache=1
10249 fi
10250
10251 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10252
10253fi;
10254
10255 eval "$ac_cv_use_splash"
10256 if test "$no_cache" != 1; then
10257 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10258 fi
10259
10260 if test "$wxUSE_SPLASH" = yes; then
10261 echo "$as_me:$LINENO: result: yes" >&5
10262echo "${ECHO_T}yes" >&6
10263 else
10264 echo "$as_me:$LINENO: result: no" >&5
10265echo "${ECHO_T}no" >&6
10266 fi
10267
10268
10269 enablestring=
10270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10271echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10272 no_cache=0
10273 # Check whether --enable-textdlg or --disable-textdlg was given.
10274if test "${enable_textdlg+set}" = set; then
10275 enableval="$enable_textdlg"
10276
10277 if test "$enableval" = yes; then
10278 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10279 else
10280 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10281 fi
10282
10283else
10284
10285 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10286 if test "x$LINE" != x ; then
10287 eval "DEFAULT_$LINE"
10288 else
10289 no_cache=1
10290 fi
10291
10292 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10293
10294fi;
10295
10296 eval "$ac_cv_use_textdlg"
10297 if test "$no_cache" != 1; then
10298 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10299 fi
10300
10301 if test "$wxUSE_TEXTDLG" = yes; then
10302 echo "$as_me:$LINENO: result: yes" >&5
10303echo "${ECHO_T}yes" >&6
10304 else
10305 echo "$as_me:$LINENO: result: no" >&5
10306echo "${ECHO_T}no" >&6
10307 fi
10308
10309
10310 enablestring=
10311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10312echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10313 no_cache=0
10314 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10315if test "${enable_tipdlg+set}" = set; then
10316 enableval="$enable_tipdlg"
10317
10318 if test "$enableval" = yes; then
10319 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10320 else
10321 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10322 fi
10323
10324else
10325
10326 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10327 if test "x$LINE" != x ; then
10328 eval "DEFAULT_$LINE"
10329 else
10330 no_cache=1
10331 fi
10332
10333 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10334
10335fi;
10336
10337 eval "$ac_cv_use_tipdlg"
10338 if test "$no_cache" != 1; then
10339 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10340 fi
10341
10342 if test "$wxUSE_STARTUP_TIPS" = yes; then
10343 echo "$as_me:$LINENO: result: yes" >&5
10344echo "${ECHO_T}yes" >&6
10345 else
10346 echo "$as_me:$LINENO: result: no" >&5
10347echo "${ECHO_T}no" >&6
10348 fi
10349
10350
10351 enablestring=
10352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10353echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10354 no_cache=0
10355 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10356if test "${enable_progressdlg+set}" = set; then
10357 enableval="$enable_progressdlg"
10358
10359 if test "$enableval" = yes; then
10360 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10361 else
10362 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10363 fi
10364
10365else
10366
10367 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10368 if test "x$LINE" != x ; then
10369 eval "DEFAULT_$LINE"
10370 else
10371 no_cache=1
10372 fi
10373
10374 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10375
10376fi;
10377
10378 eval "$ac_cv_use_progressdlg"
10379 if test "$no_cache" != 1; then
10380 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10381 fi
10382
10383 if test "$wxUSE_PROGRESSDLG" = yes; then
10384 echo "$as_me:$LINENO: result: yes" >&5
10385echo "${ECHO_T}yes" >&6
10386 else
10387 echo "$as_me:$LINENO: result: no" >&5
10388echo "${ECHO_T}no" >&6
10389 fi
10390
10391
10392 enablestring=
10393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10394echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10395 no_cache=0
10396 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10397if test "${enable_wizarddlg+set}" = set; then
10398 enableval="$enable_wizarddlg"
10399
10400 if test "$enableval" = yes; then
10401 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10402 else
10403 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10404 fi
10405
10406else
10407
10408 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10409 if test "x$LINE" != x ; then
10410 eval "DEFAULT_$LINE"
10411 else
10412 no_cache=1
10413 fi
10414
10415 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10416
10417fi;
10418
10419 eval "$ac_cv_use_wizarddlg"
10420 if test "$no_cache" != 1; then
10421 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10422 fi
10423
10424 if test "$wxUSE_WIZARDDLG" = yes; then
10425 echo "$as_me:$LINENO: result: yes" >&5
10426echo "${ECHO_T}yes" >&6
10427 else
10428 echo "$as_me:$LINENO: result: no" >&5
10429echo "${ECHO_T}no" >&6
10430 fi
10431
10432
10433
10434
10435 enablestring=
10436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10437echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10438 no_cache=0
10439 # Check whether --enable-menus or --disable-menus was given.
10440if test "${enable_menus+set}" = set; then
10441 enableval="$enable_menus"
10442
10443 if test "$enableval" = yes; then
10444 ac_cv_use_menus='wxUSE_MENUS=yes'
10445 else
10446 ac_cv_use_menus='wxUSE_MENUS=no'
10447 fi
10448
10449else
10450
10451 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10452 if test "x$LINE" != x ; then
10453 eval "DEFAULT_$LINE"
10454 else
10455 no_cache=1
10456 fi
10457
10458 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10459
10460fi;
10461
10462 eval "$ac_cv_use_menus"
10463 if test "$no_cache" != 1; then
10464 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10465 fi
10466
10467 if test "$wxUSE_MENUS" = yes; then
10468 echo "$as_me:$LINENO: result: yes" >&5
10469echo "${ECHO_T}yes" >&6
10470 else
10471 echo "$as_me:$LINENO: result: no" >&5
10472echo "${ECHO_T}no" >&6
10473 fi
10474
10475
10476 enablestring=
10477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10478echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10479 no_cache=0
10480 # Check whether --enable-miniframe or --disable-miniframe was given.
10481if test "${enable_miniframe+set}" = set; then
10482 enableval="$enable_miniframe"
10483
10484 if test "$enableval" = yes; then
10485 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10486 else
10487 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10488 fi
10489
10490else
10491
10492 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10493 if test "x$LINE" != x ; then
10494 eval "DEFAULT_$LINE"
10495 else
10496 no_cache=1
10497 fi
10498
10499 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10500
10501fi;
10502
10503 eval "$ac_cv_use_miniframe"
10504 if test "$no_cache" != 1; then
10505 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10506 fi
10507
10508 if test "$wxUSE_MINIFRAME" = yes; then
10509 echo "$as_me:$LINENO: result: yes" >&5
10510echo "${ECHO_T}yes" >&6
10511 else
10512 echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6
10514 fi
10515
10516
10517 enablestring=
10518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10519echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10520 no_cache=0
10521 # Check whether --enable-tooltips or --disable-tooltips was given.
10522if test "${enable_tooltips+set}" = set; then
10523 enableval="$enable_tooltips"
10524
10525 if test "$enableval" = yes; then
10526 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10527 else
10528 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10529 fi
10530
10531else
10532
10533 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10534 if test "x$LINE" != x ; then
10535 eval "DEFAULT_$LINE"
10536 else
10537 no_cache=1
10538 fi
10539
10540 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10541
10542fi;
10543
10544 eval "$ac_cv_use_tooltips"
10545 if test "$no_cache" != 1; then
10546 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10547 fi
10548
10549 if test "$wxUSE_TOOLTIPS" = yes; then
10550 echo "$as_me:$LINENO: result: yes" >&5
10551echo "${ECHO_T}yes" >&6
10552 else
10553 echo "$as_me:$LINENO: result: no" >&5
10554echo "${ECHO_T}no" >&6
10555 fi
10556
10557
10558 enablestring=
10559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10560echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10561 no_cache=0
10562 # Check whether --enable-splines or --disable-splines was given.
10563if test "${enable_splines+set}" = set; then
10564 enableval="$enable_splines"
10565
10566 if test "$enableval" = yes; then
10567 ac_cv_use_splines='wxUSE_SPLINES=yes'
10568 else
10569 ac_cv_use_splines='wxUSE_SPLINES=no'
10570 fi
10571
10572else
10573
10574 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10575 if test "x$LINE" != x ; then
10576 eval "DEFAULT_$LINE"
10577 else
10578 no_cache=1
10579 fi
10580
10581 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10582
10583fi;
10584
10585 eval "$ac_cv_use_splines"
10586 if test "$no_cache" != 1; then
10587 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10588 fi
10589
10590 if test "$wxUSE_SPLINES" = yes; then
10591 echo "$as_me:$LINENO: result: yes" >&5
10592echo "${ECHO_T}yes" >&6
10593 else
10594 echo "$as_me:$LINENO: result: no" >&5
10595echo "${ECHO_T}no" >&6
10596 fi
10597
10598
fbe2ca43
SN
10599 enablestring=
10600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10601echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10602 no_cache=0
10603 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10604if test "${enable_mousewheel+set}" = set; then
10605 enableval="$enable_mousewheel"
10606
10607 if test "$enableval" = yes; then
10608 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10609 else
10610 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10611 fi
10612
10613else
10614
10615 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10616 if test "x$LINE" != x ; then
10617 eval "DEFAULT_$LINE"
10618 else
10619 no_cache=1
10620 fi
10621
10622 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10623
10624fi;
10625
10626 eval "$ac_cv_use_mousewheel"
10627 if test "$no_cache" != 1; then
10628 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10629 fi
10630
10631 if test "$wxUSE_MOUSEWHEEL" = yes; then
10632 echo "$as_me:$LINENO: result: yes" >&5
10633echo "${ECHO_T}yes" >&6
10634 else
10635 echo "$as_me:$LINENO: result: no" >&5
10636echo "${ECHO_T}no" >&6
10637 fi
10638
10639
a848cd7e
SC
10640 enablestring=
10641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10642echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10643 no_cache=0
10644 # Check whether --enable-validators or --disable-validators was given.
10645if test "${enable_validators+set}" = set; then
10646 enableval="$enable_validators"
10647
10648 if test "$enableval" = yes; then
10649 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10650 else
10651 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10652 fi
10653
10654else
10655
10656 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10657 if test "x$LINE" != x ; then
10658 eval "DEFAULT_$LINE"
10659 else
10660 no_cache=1
10661 fi
10662
10663 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10664
10665fi;
10666
10667 eval "$ac_cv_use_validators"
10668 if test "$no_cache" != 1; then
10669 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10670 fi
10671
10672 if test "$wxUSE_VALIDATORS" = yes; then
10673 echo "$as_me:$LINENO: result: yes" >&5
10674echo "${ECHO_T}yes" >&6
10675 else
10676 echo "$as_me:$LINENO: result: no" >&5
10677echo "${ECHO_T}no" >&6
10678 fi
10679
10680
10681 enablestring=
10682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10683echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10684 no_cache=0
10685 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10686if test "${enable_busyinfo+set}" = set; then
10687 enableval="$enable_busyinfo"
10688
10689 if test "$enableval" = yes; then
10690 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10691 else
10692 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10693 fi
10694
10695else
10696
10697 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10698 if test "x$LINE" != x ; then
10699 eval "DEFAULT_$LINE"
10700 else
10701 no_cache=1
10702 fi
10703
10704 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10705
10706fi;
10707
10708 eval "$ac_cv_use_busyinfo"
10709 if test "$no_cache" != 1; then
10710 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10711 fi
10712
10713 if test "$wxUSE_BUSYINFO" = yes; then
10714 echo "$as_me:$LINENO: result: yes" >&5
10715echo "${ECHO_T}yes" >&6
10716 else
10717 echo "$as_me:$LINENO: result: no" >&5
10718echo "${ECHO_T}no" >&6
10719 fi
10720
10721
10722 enablestring=
10723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10724echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10725 no_cache=0
10726 # Check whether --enable-joystick or --disable-joystick was given.
10727if test "${enable_joystick+set}" = set; then
10728 enableval="$enable_joystick"
10729
10730 if test "$enableval" = yes; then
10731 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10732 else
10733 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10734 fi
10735
10736else
10737
10738 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10739 if test "x$LINE" != x ; then
10740 eval "DEFAULT_$LINE"
10741 else
10742 no_cache=1
10743 fi
10744
10745 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10746
10747fi;
10748
10749 eval "$ac_cv_use_joystick"
10750 if test "$no_cache" != 1; then
10751 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10752 fi
10753
10754 if test "$wxUSE_JOYSTICK" = yes; then
10755 echo "$as_me:$LINENO: result: yes" >&5
10756echo "${ECHO_T}yes" >&6
10757 else
10758 echo "$as_me:$LINENO: result: no" >&5
10759echo "${ECHO_T}no" >&6
10760 fi
10761
10762
10763 enablestring=
10764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10765echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10766 no_cache=0
10767 # Check whether --enable-metafile or --disable-metafile was given.
10768if test "${enable_metafile+set}" = set; then
10769 enableval="$enable_metafile"
10770
10771 if test "$enableval" = yes; then
10772 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10773 else
10774 ac_cv_use_metafile='wxUSE_METAFILE=no'
10775 fi
10776
10777else
10778
10779 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10780 if test "x$LINE" != x ; then
10781 eval "DEFAULT_$LINE"
10782 else
10783 no_cache=1
10784 fi
10785
10786 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10787
10788fi;
10789
10790 eval "$ac_cv_use_metafile"
10791 if test "$no_cache" != 1; then
10792 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10793 fi
10794
10795 if test "$wxUSE_METAFILE" = yes; then
10796 echo "$as_me:$LINENO: result: yes" >&5
10797echo "${ECHO_T}yes" >&6
10798 else
10799 echo "$as_me:$LINENO: result: no" >&5
10800echo "${ECHO_T}no" >&6
10801 fi
10802
10803
10804 enablestring=
10805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10806echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10807 no_cache=0
10808 # Check whether --enable-dragimage or --disable-dragimage was given.
10809if test "${enable_dragimage+set}" = set; then
10810 enableval="$enable_dragimage"
10811
10812 if test "$enableval" = yes; then
10813 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10814 else
10815 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10816 fi
10817
10818else
10819
10820 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10821 if test "x$LINE" != x ; then
10822 eval "DEFAULT_$LINE"
10823 else
10824 no_cache=1
10825 fi
10826
10827 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10828
10829fi;
10830
10831 eval "$ac_cv_use_dragimage"
10832 if test "$no_cache" != 1; then
10833 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10834 fi
10835
10836 if test "$wxUSE_DRAGIMAGE" = yes; then
10837 echo "$as_me:$LINENO: result: yes" >&5
10838echo "${ECHO_T}yes" >&6
10839 else
10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
10842 fi
10843
10844
10845 enablestring=
10846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10847echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10848 no_cache=0
10849 # Check whether --enable-accessibility or --disable-accessibility was given.
10850if test "${enable_accessibility+set}" = set; then
10851 enableval="$enable_accessibility"
10852
10853 if test "$enableval" = yes; then
10854 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10855 else
10856 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10857 fi
10858
10859else
10860
10861 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10862 if test "x$LINE" != x ; then
10863 eval "DEFAULT_$LINE"
10864 else
10865 no_cache=1
10866 fi
10867
10868 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10869
10870fi;
10871
10872 eval "$ac_cv_use_accessibility"
10873 if test "$no_cache" != 1; then
10874 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10875 fi
10876
10877 if test "$wxUSE_ACCESSIBILITY" = yes; then
10878 echo "$as_me:$LINENO: result: yes" >&5
10879echo "${ECHO_T}yes" >&6
10880 else
10881 echo "$as_me:$LINENO: result: no" >&5
10882echo "${ECHO_T}no" >&6
10883 fi
10884
10885
38b4a946
VZ
10886if test "$wxUSE_MSW" = "1"; then
10887
10888 enablestring=
10889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10890echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10891 no_cache=0
10892 # Check whether --enable-dccache or --disable-dccache was given.
10893if test "${enable_dccache+set}" = set; then
10894 enableval="$enable_dccache"
10895
10896 if test "$enableval" = yes; then
10897 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10898 else
10899 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10900 fi
10901
10902else
10903
10904 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10905 if test "x$LINE" != x ; then
10906 eval "DEFAULT_$LINE"
10907 else
10908 no_cache=1
10909 fi
10910
10911 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10912
10913fi;
10914
10915 eval "$ac_cv_use_dccache"
10916 if test "$no_cache" != 1; then
10917 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10918 fi
10919
10920 if test "$wxUSE_DC_CACHEING" = yes; then
10921 echo "$as_me:$LINENO: result: yes" >&5
10922echo "${ECHO_T}yes" >&6
10923 else
10924 echo "$as_me:$LINENO: result: no" >&5
10925echo "${ECHO_T}no" >&6
10926 fi
10927
10928fi
10929
a848cd7e
SC
10930
10931
10932 enablestring=
10933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10934echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10935 no_cache=0
10936 # Check whether --enable-palette or --disable-palette was given.
10937if test "${enable_palette+set}" = set; then
10938 enableval="$enable_palette"
10939
10940 if test "$enableval" = yes; then
10941 ac_cv_use_palette='wxUSE_PALETTE=yes'
10942 else
10943 ac_cv_use_palette='wxUSE_PALETTE=no'
10944 fi
10945
10946else
10947
10948 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10949 if test "x$LINE" != x ; then
10950 eval "DEFAULT_$LINE"
10951 else
10952 no_cache=1
10953 fi
10954
10955 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10956
10957fi;
10958
10959 eval "$ac_cv_use_palette"
10960 if test "$no_cache" != 1; then
10961 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10962 fi
10963
10964 if test "$wxUSE_PALETTE" = yes; then
10965 echo "$as_me:$LINENO: result: yes" >&5
10966echo "${ECHO_T}yes" >&6
10967 else
10968 echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6
10970 fi
10971
10972
10973 enablestring=
10974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10975echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10976 no_cache=0
10977 # Check whether --enable-image or --disable-image was given.
10978if test "${enable_image+set}" = set; then
10979 enableval="$enable_image"
10980
10981 if test "$enableval" = yes; then
10982 ac_cv_use_image='wxUSE_IMAGE=yes'
10983 else
10984 ac_cv_use_image='wxUSE_IMAGE=no'
10985 fi
10986
10987else
10988
10989 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10990 if test "x$LINE" != x ; then
10991 eval "DEFAULT_$LINE"
10992 else
10993 no_cache=1
10994 fi
10995
10996 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10997
10998fi;
10999
11000 eval "$ac_cv_use_image"
11001 if test "$no_cache" != 1; then
11002 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11003 fi
11004
11005 if test "$wxUSE_IMAGE" = yes; then
11006 echo "$as_me:$LINENO: result: yes" >&5
11007echo "${ECHO_T}yes" >&6
11008 else
11009 echo "$as_me:$LINENO: result: no" >&5
11010echo "${ECHO_T}no" >&6
11011 fi
11012
11013
11014 enablestring=
11015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11016echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11017 no_cache=0
11018 # Check whether --enable-gif or --disable-gif was given.
11019if test "${enable_gif+set}" = set; then
11020 enableval="$enable_gif"
11021
11022 if test "$enableval" = yes; then
11023 ac_cv_use_gif='wxUSE_GIF=yes'
11024 else
11025 ac_cv_use_gif='wxUSE_GIF=no'
11026 fi
11027
11028else
11029
11030 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11031 if test "x$LINE" != x ; then
11032 eval "DEFAULT_$LINE"
11033 else
11034 no_cache=1
11035 fi
11036
11037 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11038
11039fi;
11040
11041 eval "$ac_cv_use_gif"
11042 if test "$no_cache" != 1; then
11043 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11044 fi
11045
11046 if test "$wxUSE_GIF" = yes; then
11047 echo "$as_me:$LINENO: result: yes" >&5
11048echo "${ECHO_T}yes" >&6
11049 else
11050 echo "$as_me:$LINENO: result: no" >&5
11051echo "${ECHO_T}no" >&6
11052 fi
11053
11054
11055 enablestring=
11056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11057echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11058 no_cache=0
11059 # Check whether --enable-pcx or --disable-pcx was given.
11060if test "${enable_pcx+set}" = set; then
11061 enableval="$enable_pcx"
11062
11063 if test "$enableval" = yes; then
11064 ac_cv_use_pcx='wxUSE_PCX=yes'
11065 else
11066 ac_cv_use_pcx='wxUSE_PCX=no'
11067 fi
11068
11069else
11070
11071 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11072 if test "x$LINE" != x ; then
11073 eval "DEFAULT_$LINE"
11074 else
11075 no_cache=1
11076 fi
11077
11078 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11079
11080fi;
11081
11082 eval "$ac_cv_use_pcx"
11083 if test "$no_cache" != 1; then
11084 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11085 fi
11086
11087 if test "$wxUSE_PCX" = yes; then
11088 echo "$as_me:$LINENO: result: yes" >&5
11089echo "${ECHO_T}yes" >&6
11090 else
11091 echo "$as_me:$LINENO: result: no" >&5
11092echo "${ECHO_T}no" >&6
11093 fi
11094
11095
11096 enablestring=
11097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11098echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11099 no_cache=0
11100 # Check whether --enable-iff or --disable-iff was given.
11101if test "${enable_iff+set}" = set; then
11102 enableval="$enable_iff"
11103
11104 if test "$enableval" = yes; then
11105 ac_cv_use_iff='wxUSE_IFF=yes'
11106 else
11107 ac_cv_use_iff='wxUSE_IFF=no'
11108 fi
11109
11110else
11111
11112 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11113 if test "x$LINE" != x ; then
11114 eval "DEFAULT_$LINE"
11115 else
11116 no_cache=1
11117 fi
11118
11119 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11120
11121fi;
11122
11123 eval "$ac_cv_use_iff"
11124 if test "$no_cache" != 1; then
11125 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11126 fi
11127
11128 if test "$wxUSE_IFF" = yes; then
11129 echo "$as_me:$LINENO: result: yes" >&5
11130echo "${ECHO_T}yes" >&6
11131 else
11132 echo "$as_me:$LINENO: result: no" >&5
11133echo "${ECHO_T}no" >&6
11134 fi
11135
11136
11137 enablestring=
11138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11139echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11140 no_cache=0
11141 # Check whether --enable-pnm or --disable-pnm was given.
11142if test "${enable_pnm+set}" = set; then
11143 enableval="$enable_pnm"
11144
11145 if test "$enableval" = yes; then
11146 ac_cv_use_pnm='wxUSE_PNM=yes'
11147 else
11148 ac_cv_use_pnm='wxUSE_PNM=no'
11149 fi
11150
11151else
11152
11153 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11154 if test "x$LINE" != x ; then
11155 eval "DEFAULT_$LINE"
11156 else
11157 no_cache=1
11158 fi
11159
11160 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11161
11162fi;
11163
11164 eval "$ac_cv_use_pnm"
11165 if test "$no_cache" != 1; then
11166 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11167 fi
11168
11169 if test "$wxUSE_PNM" = yes; then
11170 echo "$as_me:$LINENO: result: yes" >&5
11171echo "${ECHO_T}yes" >&6
11172 else
11173 echo "$as_me:$LINENO: result: no" >&5
11174echo "${ECHO_T}no" >&6
11175 fi
11176
11177
11178 enablestring=
11179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11180echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11181 no_cache=0
11182 # Check whether --enable-xpm or --disable-xpm was given.
11183if test "${enable_xpm+set}" = set; then
11184 enableval="$enable_xpm"
11185
11186 if test "$enableval" = yes; then
11187 ac_cv_use_xpm='wxUSE_XPM=yes'
11188 else
11189 ac_cv_use_xpm='wxUSE_XPM=no'
11190 fi
11191
11192else
11193
11194 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11195 if test "x$LINE" != x ; then
11196 eval "DEFAULT_$LINE"
11197 else
11198 no_cache=1
11199 fi
11200
11201 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11202
11203fi;
11204
11205 eval "$ac_cv_use_xpm"
11206 if test "$no_cache" != 1; then
11207 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11208 fi
11209
11210 if test "$wxUSE_XPM" = yes; then
11211 echo "$as_me:$LINENO: result: yes" >&5
11212echo "${ECHO_T}yes" >&6
11213 else
11214 echo "$as_me:$LINENO: result: no" >&5
11215echo "${ECHO_T}no" >&6
11216 fi
11217
11218
11219 enablestring=
11220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11221echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11222 no_cache=0
11223 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11224if test "${enable_ico_cur+set}" = set; then
11225 enableval="$enable_ico_cur"
11226
11227 if test "$enableval" = yes; then
11228 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11229 else
11230 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11231 fi
11232
11233else
11234
11235 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11236 if test "x$LINE" != x ; then
11237 eval "DEFAULT_$LINE"
11238 else
11239 no_cache=1
11240 fi
11241
11242 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11243
11244fi;
11245
11246 eval "$ac_cv_use_ico_cur"
11247 if test "$no_cache" != 1; then
11248 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11249 fi
11250
11251 if test "$wxUSE_ICO_CUR" = yes; then
11252 echo "$as_me:$LINENO: result: yes" >&5
11253echo "${ECHO_T}yes" >&6
11254 else
11255 echo "$as_me:$LINENO: result: no" >&5
11256echo "${ECHO_T}no" >&6
11257 fi
11258
11259
11260fi
11261
11262
11263
ceec2216
RL
11264# Check whether --with-flavour or --without-flavour was given.
11265if test "${with_flavour+set}" = set; then
11266 withval="$with_flavour"
11267 WX_FLAVOUR="$withval"
11268fi;
11269
11270
11271
a848cd7e
SC
11272 enablestring=
11273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11274echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11275 no_cache=0
11276 # Check whether --enable-official_build or --disable-official_build was given.
11277if test "${enable_official_build+set}" = set; then
11278 enableval="$enable_official_build"
11279
11280 if test "$enableval" = yes; then
11281 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11282 else
11283 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11284 fi
11285
11286else
11287
11288 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11289 if test "x$LINE" != x ; then
11290 eval "DEFAULT_$LINE"
11291 else
11292 no_cache=1
11293 fi
11294
11295 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11296
11297fi;
11298
11299 eval "$ac_cv_use_official_build"
11300 if test "$no_cache" != 1; then
11301 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11302 fi
11303
11304 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11305 echo "$as_me:$LINENO: result: yes" >&5
11306echo "${ECHO_T}yes" >&6
11307 else
11308 echo "$as_me:$LINENO: result: no" >&5
11309echo "${ECHO_T}no" >&6
11310 fi
11311
11312# Check whether --enable-vendor or --disable-vendor was given.
11313if test "${enable_vendor+set}" = set; then
11314 enableval="$enable_vendor"
11315 VENDOR="$enableval"
11316fi;
11317if test "x$VENDOR" = "x"; then
11318 VENDOR="custom"
11319fi
11320
a848cd7e
SC
11321
11322
11323
11324 echo "saving argument cache $wx_arg_cache_file"
11325 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11326
11327
11328
11329echo "$as_me:$LINENO: checking for toolkit" >&5
11330echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11331
11332# In Wine, we need to default to MSW, not GTK or MOTIF
11333if test "$wxUSE_WINE" = "yes"; then
11334 DEFAULT_DEFAULT_wxUSE_GTK=0
11335 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11336 DEFAULT_DEFAULT_wxUSE_MSW=1
11337 wxUSE_SHARED=no
11338fi
11339
f597b41c 11340
a848cd7e
SC
11341if test "$wxUSE_GUI" = "yes"; then
11342
11343 if test "$USE_BEOS" = 1; then
11344 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11345echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11346 { (exit 1); exit 1; }; }
11347 fi
11348
11349 if test "$TOOLKIT_GIVEN" = 1; then
11350 for toolkit in `echo $ALL_TOOLKITS`; do
11351 var=wxUSE_$toolkit
11352 eval "value=\$${var}"
f34ca037
MW
11353 if test "x$value" = "xno"; then
11354 eval "$var=0"
11355 elif test "x$value" != "x"; then
11356 eval "$var=1"
11357 fi
11358
11359 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11360 eval "wx${toolkit}_VERSION=$value"
11361 fi
a848cd7e
SC
11362 done
11363 else
11364 for toolkit in `echo $ALL_TOOLKITS`; do
11365 if test "$has_toolkit_in_cache" != 1; then
11366 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11367 else
11368 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11369
11370 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11371 if test "x$version" != "x"; then
11372 eval "wx${toolkit}_VERSION=$version"
11373 fi
a848cd7e
SC
11374 fi
11375 eval "wxUSE_$toolkit=\$${var}"
11376 done
11377 fi
11378
11379 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11380 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11381 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11382
11383 case "${host}" in
11384 *-pc-os2_emx | *-pc-os2-emx )
11385 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11386 esac
11387
11388 case "$NUM_TOOLKITS" in
11389 1)
11390 ;;
11391 0)
11392 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11393echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11394 { (exit 1); exit 1; }; }
11395 ;;
11396 *)
11397 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11398echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11399 { (exit 1); exit 1; }; }
11400 esac
11401
f34ca037
MW
11402 # to be removed when --disable-gtk2 isn't needed
11403 if test "x$wxUSE_GTK2" = "xyes"; then
11404 wxGTK_VERSION=2
11405 elif test "x$wxUSE_GTK2" = "xno"; then
11406 wxGTK_VERSION=1
11407 fi
11408
a848cd7e
SC
11409 for toolkit in `echo $ALL_TOOLKITS`; do
11410 var=wxUSE_$toolkit
11411 eval "value=\$${var}"
11412 if test "x$value" != x; then
11413 cache_var=CACHE_$toolkit
11414 eval "cache=\$${cache_var}"
11415 if test "$cache" = 1; then
11416 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11417 eval "version=\$wx${toolkit}_VERSION"
11418 if test "x$version" != "x"; then
11419 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11420 fi
a848cd7e
SC
11421 fi
11422 if test "$value" = 1; then
11423 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11424 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11425echo "${ECHO_T}$toolkit_echo" >&6
11426 fi
11427 fi
11428 done
11429else
11430 if test "x$host_alias" != "x"; then
11431 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11432echo "${ECHO_T}base ($host_alias hosted) only" >&6
11433 else
11434 echo "$as_me:$LINENO: result: base only" >&5
11435echo "${ECHO_T}base only" >&6
11436 fi
11437fi
11438
11439wants_win32=0
11440doesnt_want_win32=0
11441case "${host}" in
11442 *-*-cygwin*)
11443 if test "$wxUSE_MSW" = 1 ; then
11444 wants_win32=1
7275146d 11445 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11446 else
11447 doesnt_want_win32=1
11448 fi
11449 ;;
11450 *-*-mingw*)
11451 wants_win32=1
11452 ;;
11453esac
11454
11455if test "$wxUSE_WINE" = "yes"; then
11456 wants_win32=1
11457 CC=winegcc
11458 CXX=wineg++
a848cd7e
SC
11459 LDFLAGS_GUI="-mwindows"
11460fi
11461
11462if test "$wants_win32" = 1 ; then
11463 USE_UNIX=0
11464 USE_WIN32=1
11465 cat >>confdefs.h <<\_ACEOF
11466#define __WIN32__ 1
11467_ACEOF
11468
11469 cat >>confdefs.h <<\_ACEOF
11470#define __WIN95__ 1
11471_ACEOF
11472
11473 cat >>confdefs.h <<\_ACEOF
11474#define __WINDOWS__ 1
11475_ACEOF
11476
11477 cat >>confdefs.h <<\_ACEOF
11478#define __GNUWIN32__ 1
11479_ACEOF
11480
11481 cat >>confdefs.h <<\_ACEOF
11482#define STRICT 1
11483_ACEOF
11484
11485 cat >>confdefs.h <<\_ACEOF
11486#define WINVER 0x0400
11487_ACEOF
11488
11489fi
11490if test "$doesnt_want_win32" = 1 ; then
11491 USE_UNIX=1
11492 USE_WIN32=0
11493fi
11494
11495if test "$USE_UNIX" = 1 ; then
11496 wxUSE_UNIX=yes
11497 cat >>confdefs.h <<\_ACEOF
11498#define __UNIX__ 1
11499_ACEOF
11500
11501fi
11502
11503
11504cat >confcache <<\_ACEOF
11505# This file is a shell script that caches the results of configure
11506# tests run on this system so they can be shared between configure
11507# scripts and configure runs, see configure's option --config-cache.
11508# It is not useful on other systems. If it contains results you don't
11509# want to keep, you may remove or edit it.
11510#
11511# config.status only pays attention to the cache file if you give it
11512# the --recheck option to rerun configure.
11513#
11514# `ac_cv_env_foo' variables (set or unset) will be overridden when
11515# loading this file, other *unset* `ac_cv_foo' will be assigned the
11516# following values.
11517
11518_ACEOF
11519
11520# The following way of writing the cache mishandles newlines in values,
11521# but we know of no workaround that is simple, portable, and efficient.
11522# So, don't put newlines in cache variables' values.
11523# Ultrix sh set writes to stderr and can't be redirected directly,
11524# and sets the high bit in the cache file unless we assign to the vars.
11525{
11526 (set) 2>&1 |
11527 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11528 *ac_space=\ *)
11529 # `set' does not quote correctly, so add quotes (double-quote
11530 # substitution turns \\\\ into \\, and sed turns \\ into \).
11531 sed -n \
ac1cb8d3
VS
11532 "s/'/'\\\\''/g;
11533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11534 ;;
11535 *)
11536 # `set' quotes correctly as required by POSIX, so do not add quotes.
11537 sed -n \
ac1cb8d3 11538 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11539 ;;
11540 esac;
11541} |
11542 sed '
11543 t clear
11544 : clear
11545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11546 t end
11547 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11548 : end' >>confcache
11549if diff $cache_file confcache >/dev/null 2>&1; then :; else
11550 if test -w $cache_file; then
11551 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11552 cat confcache >$cache_file
11553 else
11554 echo "not updating unwritable cache $cache_file"
11555 fi
11556fi
11557rm -f confcache
11558
a848cd7e 11559CFLAGS=${CFLAGS:=}
6dcfc289
DE
11560
11561
3006edc0 11562
6dcfc289 11563 ac_ext=c
a848cd7e
SC
11564ac_cpp='$CPP $CPPFLAGS'
11565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11567ac_compiler_gnu=$ac_cv_c_compiler_gnu
11568if test -n "$ac_tool_prefix"; then
11569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11570set dummy ${ac_tool_prefix}gcc; ac_word=$2
11571echo "$as_me:$LINENO: checking for $ac_word" >&5
11572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11573if test "${ac_cv_prog_CC+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 if test -n "$CC"; then
11577 ac_cv_prog_CC="$CC" # Let the user override the test.
11578else
11579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580for as_dir in $PATH
11581do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590done
11591done
11592
11593fi
11594fi
11595CC=$ac_cv_prog_CC
11596if test -n "$CC"; then
11597 echo "$as_me:$LINENO: result: $CC" >&5
11598echo "${ECHO_T}$CC" >&6
11599else
11600 echo "$as_me:$LINENO: result: no" >&5
11601echo "${ECHO_T}no" >&6
11602fi
11603
11604fi
11605if test -z "$ac_cv_prog_CC"; then
11606 ac_ct_CC=$CC
11607 # Extract the first word of "gcc", so it can be a program name with args.
11608set dummy gcc; ac_word=$2
11609echo "$as_me:$LINENO: checking for $ac_word" >&5
11610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11611if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613else
11614 if test -n "$ac_ct_CC"; then
11615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11616else
11617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618for as_dir in $PATH
11619do
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624 ac_cv_prog_ac_ct_CC="gcc"
11625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11627 fi
11628done
11629done
11630
11631fi
11632fi
11633ac_ct_CC=$ac_cv_prog_ac_ct_CC
11634if test -n "$ac_ct_CC"; then
11635 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11636echo "${ECHO_T}$ac_ct_CC" >&6
11637else
11638 echo "$as_me:$LINENO: result: no" >&5
11639echo "${ECHO_T}no" >&6
11640fi
11641
11642 CC=$ac_ct_CC
11643else
11644 CC="$ac_cv_prog_CC"
11645fi
11646
11647if test -z "$CC"; then
11648 if test -n "$ac_tool_prefix"; then
11649 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11650set dummy ${ac_tool_prefix}cc; ac_word=$2
11651echo "$as_me:$LINENO: checking for $ac_word" >&5
11652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653if test "${ac_cv_prog_CC+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655else
11656 if test -n "$CC"; then
11657 ac_cv_prog_CC="$CC" # Let the user override the test.
11658else
11659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_CC="${ac_tool_prefix}cc"
11667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670done
11671done
11672
11673fi
11674fi
11675CC=$ac_cv_prog_CC
11676if test -n "$CC"; then
11677 echo "$as_me:$LINENO: result: $CC" >&5
11678echo "${ECHO_T}$CC" >&6
11679else
11680 echo "$as_me:$LINENO: result: no" >&5
11681echo "${ECHO_T}no" >&6
11682fi
11683
11684fi
11685if test -z "$ac_cv_prog_CC"; then
11686 ac_ct_CC=$CC
11687 # Extract the first word of "cc", so it can be a program name with args.
11688set dummy cc; ac_word=$2
11689echo "$as_me:$LINENO: checking for $ac_word" >&5
11690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11691if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693else
11694 if test -n "$ac_ct_CC"; then
11695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11696else
11697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698for as_dir in $PATH
11699do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_prog_ac_ct_CC="cc"
11705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11707 fi
11708done
11709done
11710
11711fi
11712fi
11713ac_ct_CC=$ac_cv_prog_ac_ct_CC
11714if test -n "$ac_ct_CC"; then
11715 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11716echo "${ECHO_T}$ac_ct_CC" >&6
11717else
11718 echo "$as_me:$LINENO: result: no" >&5
11719echo "${ECHO_T}no" >&6
11720fi
11721
11722 CC=$ac_ct_CC
11723else
11724 CC="$ac_cv_prog_CC"
11725fi
11726
11727fi
11728if test -z "$CC"; then
11729 # Extract the first word of "cc", so it can be a program name with args.
11730set dummy cc; ac_word=$2
11731echo "$as_me:$LINENO: checking for $ac_word" >&5
11732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11733if test "${ac_cv_prog_CC+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735else
11736 if test -n "$CC"; then
11737 ac_cv_prog_CC="$CC" # Let the user override the test.
11738else
11739 ac_prog_rejected=no
11740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741for as_dir in $PATH
11742do
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11748 ac_prog_rejected=yes
11749 continue
11750 fi
11751 ac_cv_prog_CC="cc"
11752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755done
11756done
11757
11758if test $ac_prog_rejected = yes; then
11759 # We found a bogon in the path, so make sure we never use it.
11760 set dummy $ac_cv_prog_CC
11761 shift
11762 if test $# != 0; then
11763 # We chose a different compiler from the bogus one.
11764 # However, it has the same basename, so the bogon will be chosen
11765 # first if we set CC to just the basename; use the full file name.
11766 shift
11767 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11768 fi
11769fi
11770fi
11771fi
11772CC=$ac_cv_prog_CC
11773if test -n "$CC"; then
11774 echo "$as_me:$LINENO: result: $CC" >&5
11775echo "${ECHO_T}$CC" >&6
11776else
11777 echo "$as_me:$LINENO: result: no" >&5
11778echo "${ECHO_T}no" >&6
11779fi
11780
11781fi
11782if test -z "$CC"; then
11783 if test -n "$ac_tool_prefix"; then
11784 for ac_prog in cl
11785 do
11786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11788echo "$as_me:$LINENO: checking for $ac_word" >&5
11789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11790if test "${ac_cv_prog_CC+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792else
11793 if test -n "$CC"; then
11794 ac_cv_prog_CC="$CC" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 break 2
11806 fi
11807done
11808done
11809
11810fi
11811fi
11812CC=$ac_cv_prog_CC
11813if test -n "$CC"; then
11814 echo "$as_me:$LINENO: result: $CC" >&5
11815echo "${ECHO_T}$CC" >&6
11816else
11817 echo "$as_me:$LINENO: result: no" >&5
11818echo "${ECHO_T}no" >&6
11819fi
11820
11821 test -n "$CC" && break
11822 done
11823fi
11824if test -z "$CC"; then
11825 ac_ct_CC=$CC
11826 for ac_prog in cl
11827do
11828 # Extract the first word of "$ac_prog", so it can be a program name with args.
11829set dummy $ac_prog; ac_word=$2
11830echo "$as_me:$LINENO: checking for $ac_word" >&5
11831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11832if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834else
11835 if test -n "$ac_ct_CC"; then
11836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11837else
11838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_prog_ac_ct_CC="$ac_prog"
11846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11848 fi
11849done
11850done
11851
11852fi
11853fi
11854ac_ct_CC=$ac_cv_prog_ac_ct_CC
11855if test -n "$ac_ct_CC"; then
11856 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11857echo "${ECHO_T}$ac_ct_CC" >&6
11858else
11859 echo "$as_me:$LINENO: result: no" >&5
11860echo "${ECHO_T}no" >&6
11861fi
11862
11863 test -n "$ac_ct_CC" && break
11864done
11865
11866 CC=$ac_ct_CC
11867fi
11868
11869fi
11870
11871
11872test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11873See \`config.log' for more details." >&5
11874echo "$as_me: error: no acceptable C compiler found in \$PATH
11875See \`config.log' for more details." >&2;}
11876 { (exit 1); exit 1; }; }
11877
11878# Provide some information about the compiler.
11879echo "$as_me:$LINENO:" \
11880 "checking for C compiler version" >&5
11881ac_compiler=`set X $ac_compile; echo $2`
11882{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11883 (eval $ac_compiler --version </dev/null >&5) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }
11887{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11888 (eval $ac_compiler -v </dev/null >&5) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }
11892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11893 (eval $ac_compiler -V </dev/null >&5) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }
11897
11898cat >conftest.$ac_ext <<_ACEOF
11899/* confdefs.h. */
11900_ACEOF
11901cat confdefs.h >>conftest.$ac_ext
11902cat >>conftest.$ac_ext <<_ACEOF
11903/* end confdefs.h. */
11904
11905int
11906main ()
11907{
11908
11909 ;
11910 return 0;
11911}
11912_ACEOF
11913ac_clean_files_save=$ac_clean_files
11914ac_clean_files="$ac_clean_files a.out a.exe b.out"
11915# Try to create an executable without -o first, disregard a.out.
11916# It will help us diagnose broken compilers, and finding out an intuition
11917# of exeext.
ac1cb8d3
VS
11918echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11919echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11920ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11921if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11922 (eval $ac_link_default) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; then
11926 # Find the output, starting from the most likely. This scheme is
11927# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11928# resort.
11929
11930# Be careful to initialize this variable, since it used to be cached.
11931# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11932ac_cv_exeext=
11933# b.out is created by i960 compilers.
11934for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11935do
11936 test -f "$ac_file" || continue
11937 case $ac_file in
11938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11939 ;;
a848cd7e 11940 conftest.$ac_ext )
ac1cb8d3
VS
11941 # This is the source file.
11942 ;;
a848cd7e 11943 [ab].out )
ac1cb8d3
VS
11944 # We found the default executable, but exeext='' is most
11945 # certainly right.
11946 break;;
a848cd7e 11947 *.* )
ac1cb8d3
VS
11948 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11949 # FIXME: I believe we export ac_cv_exeext for Libtool,
11950 # but it would be cool to find out if it's true. Does anybody
11951 # maintain Libtool? --akim.
11952 export ac_cv_exeext
11953 break;;
a848cd7e 11954 * )
ac1cb8d3 11955 break;;
a848cd7e
SC
11956 esac
11957done
11958else
11959 echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11963See \`config.log' for more details." >&5
11964echo "$as_me: error: C compiler cannot create executables
11965See \`config.log' for more details." >&2;}
11966 { (exit 77); exit 77; }; }
11967fi
11968
11969ac_exeext=$ac_cv_exeext
11970echo "$as_me:$LINENO: result: $ac_file" >&5
11971echo "${ECHO_T}$ac_file" >&6
11972
11973# Check the compiler produces executables we can run. If not, either
11974# the compiler is broken, or we cross compile.
11975echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11976echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11977# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11978# If not cross compiling, check that we can run a simple program.
11979if test "$cross_compiling" != yes; then
11980 if { ac_try='./$ac_file'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 cross_compiling=no
11987 else
11988 if test "$cross_compiling" = maybe; then
11989 cross_compiling=yes
11990 else
11991 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11992If you meant to cross compile, use \`--host'.
11993See \`config.log' for more details." >&5
11994echo "$as_me: error: cannot run C compiled programs.
11995If you meant to cross compile, use \`--host'.
11996See \`config.log' for more details." >&2;}
11997 { (exit 1); exit 1; }; }
11998 fi
11999 fi
12000fi
12001echo "$as_me:$LINENO: result: yes" >&5
12002echo "${ECHO_T}yes" >&6
12003
12004rm -f a.out a.exe conftest$ac_cv_exeext b.out
12005ac_clean_files=$ac_clean_files_save
12006# Check the compiler produces executables we can run. If not, either
12007# the compiler is broken, or we cross compile.
12008echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12009echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12010echo "$as_me:$LINENO: result: $cross_compiling" >&5
12011echo "${ECHO_T}$cross_compiling" >&6
12012
12013echo "$as_me:$LINENO: checking for suffix of executables" >&5
12014echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12016 (eval $ac_link) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; then
12020 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12021# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12022# work properly (i.e., refer to `conftest.exe'), while it won't with
12023# `rm'.
12024for ac_file in conftest.exe conftest conftest.*; do
12025 test -f "$ac_file" || continue
12026 case $ac_file in
12027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12028 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12029 export ac_cv_exeext
12030 break;;
a848cd7e
SC
12031 * ) break;;
12032 esac
12033done
12034else
12035 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12036See \`config.log' for more details." >&5
12037echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12038See \`config.log' for more details." >&2;}
12039 { (exit 1); exit 1; }; }
12040fi
12041
12042rm -f conftest$ac_cv_exeext
12043echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12044echo "${ECHO_T}$ac_cv_exeext" >&6
12045
12046rm -f conftest.$ac_ext
12047EXEEXT=$ac_cv_exeext
12048ac_exeext=$EXEEXT
12049echo "$as_me:$LINENO: checking for suffix of object files" >&5
12050echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12051if test "${ac_cv_objext+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054 cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060
12061int
12062main ()
12063{
12064
12065 ;
12066 return 0;
12067}
12068_ACEOF
12069rm -f conftest.o conftest.obj
12070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12071 (eval $ac_compile) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; then
12075 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12076 case $ac_file in
12077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12078 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12079 break;;
12080 esac
12081done
12082else
12083 echo "$as_me: failed program was:" >&5
12084sed 's/^/| /' conftest.$ac_ext >&5
12085
12086{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12087See \`config.log' for more details." >&5
12088echo "$as_me: error: cannot compute suffix of object files: cannot compile
12089See \`config.log' for more details." >&2;}
12090 { (exit 1); exit 1; }; }
12091fi
12092
12093rm -f conftest.$ac_cv_objext conftest.$ac_ext
12094fi
12095echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12096echo "${ECHO_T}$ac_cv_objext" >&6
12097OBJEXT=$ac_cv_objext
12098ac_objext=$OBJEXT
12099echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12100echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12101if test "${ac_cv_c_compiler_gnu+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103else
12104 cat >conftest.$ac_ext <<_ACEOF
12105/* confdefs.h. */
12106_ACEOF
12107cat confdefs.h >>conftest.$ac_ext
12108cat >>conftest.$ac_ext <<_ACEOF
12109/* end confdefs.h. */
12110
12111int
12112main ()
12113{
12114#ifndef __GNUC__
12115 choke me
12116#endif
12117
12118 ;
12119 return 0;
12120}
12121_ACEOF
12122rm -f conftest.$ac_objext
12123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12124 (eval $ac_compile) 2>conftest.er1
a848cd7e 12125 ac_status=$?
ac1cb8d3
VS
12126 grep -v '^ *+' conftest.er1 >conftest.err
12127 rm -f conftest.er1
12128 cat conftest.err >&5
a848cd7e
SC
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
c9a66001 12131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 ac_compiler_gnu=yes
12144else
12145 echo "$as_me: failed program was:" >&5
12146sed 's/^/| /' conftest.$ac_ext >&5
12147
12148ac_compiler_gnu=no
12149fi
ac1cb8d3 12150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12151ac_cv_c_compiler_gnu=$ac_compiler_gnu
12152
12153fi
12154echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12155echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12156GCC=`test $ac_compiler_gnu = yes && echo yes`
12157ac_test_CFLAGS=${CFLAGS+set}
12158ac_save_CFLAGS=$CFLAGS
737d3175 12159CFLAGS="-g"
a848cd7e
SC
12160echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12161echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12162if test "${ac_cv_prog_cc_g+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12164else
12165 cat >conftest.$ac_ext <<_ACEOF
12166/* confdefs.h. */
12167_ACEOF
12168cat confdefs.h >>conftest.$ac_ext
12169cat >>conftest.$ac_ext <<_ACEOF
12170/* end confdefs.h. */
12171
12172int
12173main ()
12174{
12175
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12182 (eval $ac_compile) 2>conftest.er1
a848cd7e 12183 ac_status=$?
ac1cb8d3
VS
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
a848cd7e
SC
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
c9a66001 12189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; } &&
12195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_cv_prog_cc_g=yes
12202else
12203 echo "$as_me: failed program was:" >&5
12204sed 's/^/| /' conftest.$ac_ext >&5
12205
12206ac_cv_prog_cc_g=no
12207fi
ac1cb8d3 12208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12209fi
12210echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12211echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12212if test "$ac_test_CFLAGS" = set; then
12213 CFLAGS=$ac_save_CFLAGS
12214elif test $ac_cv_prog_cc_g = yes; then
12215 if test "$GCC" = yes; then
12216 CFLAGS="-g -O2"
12217 else
12218 CFLAGS="-g"
12219 fi
12220else
12221 if test "$GCC" = yes; then
12222 CFLAGS="-O2"
12223 else
12224 CFLAGS=
12225 fi
12226fi
12227echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12228echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12229if test "${ac_cv_prog_cc_stdc+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231else
12232 ac_cv_prog_cc_stdc=no
12233ac_save_CC=$CC
12234cat >conftest.$ac_ext <<_ACEOF
12235/* confdefs.h. */
12236_ACEOF
12237cat confdefs.h >>conftest.$ac_ext
12238cat >>conftest.$ac_ext <<_ACEOF
12239/* end confdefs.h. */
12240#include <stdarg.h>
12241#include <stdio.h>
12242#include <sys/types.h>
12243#include <sys/stat.h>
12244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12245struct buf { int x; };
12246FILE * (*rcsopen) (struct buf *, struct stat *, int);
12247static char *e (p, i)
12248 char **p;
12249 int i;
12250{
12251 return p[i];
12252}
12253static char *f (char * (*g) (char **, int), char **p, ...)
12254{
12255 char *s;
12256 va_list v;
12257 va_start (v,p);
12258 s = g (p, va_arg (v,int));
12259 va_end (v);
12260 return s;
12261}
ac1cb8d3
VS
12262
12263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12264 function prototypes and stuff, but not '\xHH' hex character constants.
12265 These don't provoke an error unfortunately, instead are silently treated
12266 as 'x'. The following induces an error, until -std1 is added to get
12267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12268 array size at least. It's necessary to write '\x00'==0 to get something
12269 that's true only with -std1. */
12270int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12271
a848cd7e
SC
12272int test (int i, double x);
12273struct s1 {int (*f) (int a);};
12274struct s2 {int (*f) (double a);};
12275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12276int argc;
12277char **argv;
12278int
12279main ()
12280{
12281return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12282 ;
12283 return 0;
12284}
12285_ACEOF
12286# Don't try gcc -ansi; that turns off useful extensions and
12287# breaks some systems' header files.
12288# AIX -qlanglvl=ansi
12289# Ultrix and OSF/1 -std1
12290# HP-UX 10.20 and later -Ae
12291# HP-UX older versions -Aa -D_HPUX_SOURCE
12292# SVR4 -Xc -D__EXTENSIONS__
12293for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12294do
12295 CC="$ac_save_CC $ac_arg"
12296 rm -f conftest.$ac_objext
12297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12298 (eval $ac_compile) 2>conftest.er1
a848cd7e 12299 ac_status=$?
ac1cb8d3
VS
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
a848cd7e
SC
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
c9a66001 12305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_prog_cc_stdc=$ac_arg
12318break
12319else
12320 echo "$as_me: failed program was:" >&5
12321sed 's/^/| /' conftest.$ac_ext >&5
12322
12323fi
ac1cb8d3 12324rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12325done
12326rm -f conftest.$ac_ext conftest.$ac_objext
12327CC=$ac_save_CC
12328
12329fi
12330
12331case "x$ac_cv_prog_cc_stdc" in
12332 x|xno)
12333 echo "$as_me:$LINENO: result: none needed" >&5
12334echo "${ECHO_T}none needed" >&6 ;;
12335 *)
12336 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12337echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12338 CC="$CC $ac_cv_prog_cc_stdc" ;;
12339esac
12340
12341# Some people use a C++ compiler to compile C. Since we use `exit',
12342# in C++ we need to declare it. In case someone uses the same compiler
12343# for both compiling C and C++ we need to have the C++ compiler decide
12344# the declaration of exit, since it's the most demanding environment.
12345cat >conftest.$ac_ext <<_ACEOF
12346#ifndef __cplusplus
12347 choke me
12348#endif
12349_ACEOF
12350rm -f conftest.$ac_objext
12351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12352 (eval $ac_compile) 2>conftest.er1
a848cd7e 12353 ac_status=$?
ac1cb8d3
VS
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
a848cd7e
SC
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
c9a66001 12359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 for ac_declaration in \
ac1cb8d3 12372 '' \
a848cd7e
SC
12373 'extern "C" void std::exit (int) throw (); using std::exit;' \
12374 'extern "C" void std::exit (int); using std::exit;' \
12375 'extern "C" void exit (int) throw ();' \
12376 'extern "C" void exit (int);' \
12377 'void exit (int);'
12378do
12379 cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h. */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h. */
de59c161 12385$ac_declaration
ac1cb8d3 12386#include <stdlib.h>
a848cd7e
SC
12387int
12388main ()
12389{
12390exit (42);
12391 ;
12392 return 0;
12393}
12394_ACEOF
12395rm -f conftest.$ac_objext
12396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12397 (eval $ac_compile) 2>conftest.er1
a848cd7e 12398 ac_status=$?
ac1cb8d3
VS
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
a848cd7e
SC
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
c9a66001 12404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 :
12417else
12418 echo "$as_me: failed program was:" >&5
12419sed 's/^/| /' conftest.$ac_ext >&5
12420
12421continue
12422fi
ac1cb8d3 12423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12424 cat >conftest.$ac_ext <<_ACEOF
12425/* confdefs.h. */
12426_ACEOF
12427cat confdefs.h >>conftest.$ac_ext
12428cat >>conftest.$ac_ext <<_ACEOF
12429/* end confdefs.h. */
12430$ac_declaration
12431int
12432main ()
12433{
12434exit (42);
12435 ;
12436 return 0;
12437}
12438_ACEOF
12439rm -f conftest.$ac_objext
12440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12441 (eval $ac_compile) 2>conftest.er1
a848cd7e 12442 ac_status=$?
ac1cb8d3
VS
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
a848cd7e
SC
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
c9a66001 12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 break
12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465fi
ac1cb8d3 12466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12467done
12468rm -f conftest*
12469if test -n "$ac_declaration"; then
12470 echo '#ifdef __cplusplus' >>confdefs.h
12471 echo $ac_declaration >>confdefs.h
12472 echo '#endif' >>confdefs.h
12473fi
12474
12475else
12476 echo "$as_me: failed program was:" >&5
12477sed 's/^/| /' conftest.$ac_ext >&5
12478
12479fi
ac1cb8d3 12480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12481ac_ext=c
12482ac_cpp='$CPP $CPPFLAGS'
12483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12485ac_compiler_gnu=$ac_cv_c_compiler_gnu
12486
ab0ad5f1
VZ
12487
12488
12489 ac_ext=c
12490ac_cpp='$CPP $CPPFLAGS'
12491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12493ac_compiler_gnu=$ac_cv_c_compiler_gnu
12494
12495 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12496echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12497if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499else
12500 cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h. */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
12505/* end confdefs.h. */
12506
12507int
12508main ()
12509{
12510
12511 #ifndef __INTEL_COMPILER
12512 choke me
12513 #endif
12514
12515 ;
12516 return 0;
12517}
12518_ACEOF
12519rm -f conftest.$ac_objext
12520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
c9a66001 12528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; } &&
12534 { ac_try='test -s conftest.$ac_objext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12541else
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545bakefile_cv_c_compiler___INTEL_COMPILER=no
12546
12547fi
12548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12549
12550
12551fi
12552echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12553echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12554 ac_ext=c
12555ac_cpp='$CPP $CPPFLAGS'
12556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12558ac_compiler_gnu=$ac_cv_c_compiler_gnu
12559
12560 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12561 :; INTELCC=yes
12562 else
12563 :;
12564 fi
12565
12566
12567 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12568 if test "xCC" = "xC"; then
12569 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12570echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12571if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573else
12574 cat >conftest.$ac_ext <<_ACEOF
12575/* confdefs.h. */
12576_ACEOF
12577cat confdefs.h >>conftest.$ac_ext
12578cat >>conftest.$ac_ext <<_ACEOF
12579/* end confdefs.h. */
12580
12581int
12582main ()
12583{
12584
12585 ;
12586 return 0;
12587}
12588_ACEOF
12589rm -f conftest.$ac_objext conftest.$ac_ext.o
12590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12591 (eval $ac_compile) 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; then
12595 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12596 case $ac_file in
12597 conftest.$ac_ext.o)
0093c2fc 12598 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12599 ;;
12600 *)
12601 ;;
12602 esac
12603done
12604else
12605 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12606See \`config.log' for more details." >&5
12607echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12608See \`config.log' for more details." >&2;}
12609 { (exit 1); exit 1; }; }
12610
12611fi
12612
12613rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12614
12615fi
0093c2fc
VZ
12616echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12617echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12618if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12619 if test "c" = "c"; then
0093c2fc 12620 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12621 fi
12622 if test "c" = "cxx"; then
0093c2fc 12623 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12624 fi
12625fi
12626
0093c2fc 12627 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12628 unset ac_cv_prog_cc_g
12629 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12630ac_save_CFLAGS=$CFLAGS
737d3175 12631CFLAGS="-g"
480ccd21
DE
12632echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12633echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12634if test "${ac_cv_prog_cc_g+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12636else
12637 cat >conftest.$ac_ext <<_ACEOF
12638/* confdefs.h. */
12639_ACEOF
12640cat confdefs.h >>conftest.$ac_ext
12641cat >>conftest.$ac_ext <<_ACEOF
12642/* end confdefs.h. */
12643
12644int
12645main ()
12646{
12647
12648 ;
12649 return 0;
12650}
12651_ACEOF
12652rm -f conftest.$ac_objext
12653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654 (eval $ac_compile) 2>conftest.er1
12655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
c9a66001 12661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest.$ac_objext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 ac_cv_prog_cc_g=yes
12674else
12675 echo "$as_me: failed program was:" >&5
12676sed 's/^/| /' conftest.$ac_ext >&5
12677
12678ac_cv_prog_cc_g=no
12679fi
12680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12681fi
12682echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12683echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12684if test "$ac_test_CFLAGS" = set; then
12685 CFLAGS=$ac_save_CFLAGS
12686elif test $ac_cv_prog_cc_g = yes; then
12687 if test "$GCC" = yes; then
12688 CFLAGS="-g -O2"
12689 else
12690 CFLAGS="-g"
12691 fi
12692else
12693 if test "$GCC" = yes; then
12694 CFLAGS="-O2"
12695 else
12696 CFLAGS=
12697 fi
12698fi
3006edc0 12699 fi
ab0ad5f1 12700 fi
3006edc0
VZ
12701
12702 case `uname -s` in
12703 AIX*)
12704 ac_ext=c
12705ac_cpp='$CPP $CPPFLAGS'
12706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708ac_compiler_gnu=$ac_cv_c_compiler_gnu
12709
12710echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12711echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12712if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714else
12715 cat >conftest.$ac_ext <<_ACEOF
12716/* confdefs.h. */
12717_ACEOF
12718cat confdefs.h >>conftest.$ac_ext
12719cat >>conftest.$ac_ext <<_ACEOF
12720/* end confdefs.h. */
12721
12722int
12723main ()
12724{
12725#ifndef __xlC__
12726 choke me
12727#endif
12728
12729 ;
12730 return 0;
12731}
12732_ACEOF
12733rm -f conftest.$ac_objext
12734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735 (eval $ac_compile) 2>conftest.er1
12736 ac_status=$?
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } &&
c9a66001 12742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try='test -s conftest.$ac_objext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
0093c2fc 12754 bakefile_compiler_xlc=yes
3006edc0
VZ
12755else
12756 echo "$as_me: failed program was:" >&5
12757sed 's/^/| /' conftest.$ac_ext >&5
12758
0093c2fc 12759bakefile_compiler_xlc=no
3006edc0
VZ
12760fi
12761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12762 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12763
12764fi
0093c2fc
VZ
12765echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12766echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12767
0093c2fc 12768XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12769ac_ext=c
12770ac_cpp='$CPP $CPPFLAGS'
12771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12773ac_compiler_gnu=$ac_cv_c_compiler_gnu
12774
12775
12776 ;;
12777
12778 Darwin)
12779 ac_ext=c
95986553
DE
12780ac_cpp='$CPP $CPPFLAGS'
12781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12783ac_compiler_gnu=$ac_cv_c_compiler_gnu
12784
12785echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12786echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12787if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789else
12790 cat >conftest.$ac_ext <<_ACEOF
12791/* confdefs.h. */
12792_ACEOF
12793cat confdefs.h >>conftest.$ac_ext
12794cat >>conftest.$ac_ext <<_ACEOF
12795/* end confdefs.h. */
12796
12797int
12798main ()
12799{
12800#ifndef __MWERKS__
12801 choke me
12802#endif
12803
12804 ;
12805 return 0;
12806}
12807_ACEOF
12808rm -f conftest.$ac_objext
12809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
c9a66001 12817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest.$ac_objext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 bakefile_compiler_mwerks=yes
12830else
12831 echo "$as_me: failed program was:" >&5
12832sed 's/^/| /' conftest.$ac_ext >&5
12833
12834bakefile_compiler_mwerks=no
12835fi
12836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12837 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12838
12839fi
12840echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12841echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12842
0e6fa1d9 12843MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12844ac_ext=c
12845ac_cpp='$CPP $CPPFLAGS'
12846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848ac_compiler_gnu=$ac_cv_c_compiler_gnu
12849
12850
3006edc0 12851 ac_ext=c
9273ffba
DE
12852ac_cpp='$CPP $CPPFLAGS'
12853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12855ac_compiler_gnu=$ac_cv_c_compiler_gnu
12856
12857echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12858echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12859if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
12861else
12862 cat >conftest.$ac_ext <<_ACEOF
12863/* confdefs.h. */
12864_ACEOF
12865cat confdefs.h >>conftest.$ac_ext
12866cat >>conftest.$ac_ext <<_ACEOF
12867/* end confdefs.h. */
12868
12869int
12870main ()
12871{
12872#ifndef __xlC__
12873 choke me
12874#endif
12875
12876 ;
12877 return 0;
12878}
12879_ACEOF
12880rm -f conftest.$ac_objext
12881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12882 (eval $ac_compile) 2>conftest.er1
12883 ac_status=$?
12884 grep -v '^ *+' conftest.er1 >conftest.err
12885 rm -f conftest.er1
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } &&
c9a66001 12889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; } &&
12895 { ac_try='test -s conftest.$ac_objext'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
0093c2fc 12901 bakefile_compiler_xlc=yes
9273ffba
DE
12902else
12903 echo "$as_me: failed program was:" >&5
12904sed 's/^/| /' conftest.$ac_ext >&5
12905
0093c2fc 12906bakefile_compiler_xlc=no
9273ffba
DE
12907fi
12908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12909 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12910
12911fi
0093c2fc
VZ
12912echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12913echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12914
0093c2fc 12915XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12916ac_ext=c
12917ac_cpp='$CPP $CPPFLAGS'
12918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12920ac_compiler_gnu=$ac_cv_c_compiler_gnu
12921
12922
3006edc0
VZ
12923 ;;
12924
12925 IRIX*)
a848cd7e 12926
6dcfc289 12927
0ad5d837
VZ
12928 ac_ext=c
12929ac_cpp='$CPP $CPPFLAGS'
12930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932ac_compiler_gnu=$ac_cv_c_compiler_gnu
12933
12934 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12935echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12936if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938else
12939 cat >conftest.$ac_ext <<_ACEOF
12940/* confdefs.h. */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h. */
12945
12946int
12947main ()
12948{
12949
12950 #ifndef _SGI_COMPILER_VERSION
12951 choke me
12952 #endif
12953
12954 ;
12955 return 0;
12956}
12957_ACEOF
12958rm -f conftest.$ac_objext
12959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960 (eval $ac_compile) 2>conftest.er1
12961 ac_status=$?
12962 grep -v '^ *+' conftest.er1 >conftest.err
12963 rm -f conftest.er1
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
c9a66001 12967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest.$ac_objext'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12980else
12981 echo "$as_me: failed program was:" >&5
12982sed 's/^/| /' conftest.$ac_ext >&5
12983
12984bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12985
12986fi
12987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988
12989
12990fi
12991echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12992echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12993 ac_ext=c
12994ac_cpp='$CPP $CPPFLAGS'
12995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998
12999 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13000 :; SGICC=yes
13001 else
13002 :;
13003 fi
13004
13005
3006edc0
VZ
13006 ;;
13007
0093c2fc 13008 HP-UX*)
3006edc0
VZ
13009
13010
13011 ac_ext=c
13012ac_cpp='$CPP $CPPFLAGS'
13013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13015ac_compiler_gnu=$ac_cv_c_compiler_gnu
13016
0093c2fc
VZ
13017 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13018echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13019if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 cat >conftest.$ac_ext <<_ACEOF
13023/* confdefs.h. */
13024_ACEOF
13025cat confdefs.h >>conftest.$ac_ext
13026cat >>conftest.$ac_ext <<_ACEOF
13027/* end confdefs.h. */
13028
13029int
13030main ()
13031{
13032
0093c2fc 13033 #ifndef __HP_cc
3006edc0
VZ
13034 choke me
13035 #endif
13036
13037 ;
13038 return 0;
13039}
13040_ACEOF
13041rm -f conftest.$ac_objext
13042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13043 (eval $ac_compile) 2>conftest.er1
13044 ac_status=$?
13045 grep -v '^ *+' conftest.er1 >conftest.err
13046 rm -f conftest.er1
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
c9a66001 13050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest.$ac_objext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
0093c2fc 13062 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13063else
13064 echo "$as_me: failed program was:" >&5
13065sed 's/^/| /' conftest.$ac_ext >&5
13066
0093c2fc 13067bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13068
13069fi
13070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13071
13072
13073fi
0093c2fc
VZ
13074echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13075echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13076 ac_ext=c
13077ac_cpp='$CPP $CPPFLAGS'
13078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081
0093c2fc
VZ
13082 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13083 :; HPCC=yes
a1aa0349
VZ
13084 else
13085 :;
13086 fi
13087
13088
13089 ;;
13090
0093c2fc 13091 OSF1)
a1aa0349
VZ
13092
13093
13094 ac_ext=c
13095ac_cpp='$CPP $CPPFLAGS'
13096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098ac_compiler_gnu=$ac_cv_c_compiler_gnu
13099
0093c2fc
VZ
13100 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13101echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13102if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13104else
13105 cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111
13112int
13113main ()
13114{
13115
0093c2fc 13116 #ifndef __DECC
a1aa0349
VZ
13117 choke me
13118 #endif
13119
13120 ;
13121 return 0;
13122}
13123_ACEOF
13124rm -f conftest.$ac_objext
13125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>conftest.er1
13127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
c9a66001 13133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; } &&
13139 { ac_try='test -s conftest.$ac_objext'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
0093c2fc 13145 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13146else
13147 echo "$as_me: failed program was:" >&5
13148sed 's/^/| /' conftest.$ac_ext >&5
13149
0093c2fc 13150bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13151
13152fi
13153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13154
13155
13156fi
0093c2fc
VZ
13157echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13158echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13159 ac_ext=c
13160ac_cpp='$CPP $CPPFLAGS'
13161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13163ac_compiler_gnu=$ac_cv_c_compiler_gnu
13164
0093c2fc
VZ
13165 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13166 :; COMPAQCC=yes
13167 else
13168 :;
13169 fi
13170
13171
13172 ;;
13173
13174 SunOS)
13175
13176
13177 ac_ext=c
13178ac_cpp='$CPP $CPPFLAGS'
13179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181ac_compiler_gnu=$ac_cv_c_compiler_gnu
13182
13183 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13184echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13185if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187else
13188 cat >conftest.$ac_ext <<_ACEOF
13189/* confdefs.h. */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
13193/* end confdefs.h. */
13194
13195int
13196main ()
13197{
13198
13199 #ifndef __SUNPRO_C
13200 choke me
13201 #endif
13202
13203 ;
13204 return 0;
13205}
13206_ACEOF
13207rm -f conftest.$ac_objext
13208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>conftest.er1
13210 ac_status=$?
13211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
c9a66001 13216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest.$ac_objext'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 bakefile_cv_c_compiler___SUNPRO_C=yes
13229else
13230 echo "$as_me: failed program was:" >&5
13231sed 's/^/| /' conftest.$ac_ext >&5
13232
13233bakefile_cv_c_compiler___SUNPRO_C=no
13234
13235fi
13236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13237
13238
13239fi
13240echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13241echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13242 ac_ext=c
13243ac_cpp='$CPP $CPPFLAGS'
13244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13246ac_compiler_gnu=$ac_cv_c_compiler_gnu
13247
13248 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13249 :; SUNCC=yes
3006edc0
VZ
13250 else
13251 :;
13252 fi
13253
13254
13255 ;;
13256 esac
ab0ad5f1 13257 fi
a9e5b1f0
MW
13258
13259
3006edc0 13260
a848cd7e
SC
13261ac_ext=c
13262ac_cpp='$CPP $CPPFLAGS'
13263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13265ac_compiler_gnu=$ac_cv_c_compiler_gnu
13266echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13267echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13268# On Suns, sometimes $CPP names a directory.
13269if test -n "$CPP" && test -d "$CPP"; then
13270 CPP=
13271fi
13272if test -z "$CPP"; then
13273 if test "${ac_cv_prog_CPP+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275else
13276 # Double quotes because CPP needs to be expanded
13277 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13278 do
13279 ac_preproc_ok=false
13280for ac_c_preproc_warn_flag in '' yes
13281do
13282 # Use a header file that comes with gcc, so configuring glibc
13283 # with a fresh cross-compiler works.
13284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13285 # <limits.h> exists even on freestanding compilers.
13286 # On the NeXT, cc -E runs the code through the compiler's parser,
13287 # not just through cpp. "Syntax error" is here to catch this case.
13288 cat >conftest.$ac_ext <<_ACEOF
13289/* confdefs.h. */
13290_ACEOF
13291cat confdefs.h >>conftest.$ac_ext
13292cat >>conftest.$ac_ext <<_ACEOF
13293/* end confdefs.h. */
13294#ifdef __STDC__
13295# include <limits.h>
13296#else
13297# include <assert.h>
13298#endif
ac1cb8d3 13299 Syntax error
a848cd7e
SC
13300_ACEOF
13301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } >/dev/null; then
13309 if test -s conftest.err; then
13310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13312 else
13313 ac_cpp_err=
13314 fi
13315else
13316 ac_cpp_err=yes
13317fi
13318if test -z "$ac_cpp_err"; then
13319 :
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 # Broken: fails on valid input.
13325continue
13326fi
13327rm -f conftest.err conftest.$ac_ext
13328
13329 # OK, works on sane cases. Now check whether non-existent headers
13330 # can be detected and how.
13331 cat >conftest.$ac_ext <<_ACEOF
13332/* confdefs.h. */
13333_ACEOF
13334cat confdefs.h >>conftest.$ac_ext
13335cat >>conftest.$ac_ext <<_ACEOF
13336/* end confdefs.h. */
13337#include <ac_nonexistent.h>
13338_ACEOF
13339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13341 ac_status=$?
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } >/dev/null; then
13347 if test -s conftest.err; then
13348 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13350 else
13351 ac_cpp_err=
13352 fi
13353else
13354 ac_cpp_err=yes
13355fi
13356if test -z "$ac_cpp_err"; then
13357 # Broken: success on invalid input.
13358continue
13359else
13360 echo "$as_me: failed program was:" >&5
13361sed 's/^/| /' conftest.$ac_ext >&5
13362
13363 # Passes both tests.
13364ac_preproc_ok=:
13365break
13366fi
13367rm -f conftest.err conftest.$ac_ext
13368
13369done
13370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13371rm -f conftest.err conftest.$ac_ext
13372if $ac_preproc_ok; then
13373 break
13374fi
13375
13376 done
13377 ac_cv_prog_CPP=$CPP
13378
13379fi
13380 CPP=$ac_cv_prog_CPP
13381else
13382 ac_cv_prog_CPP=$CPP
13383fi
13384echo "$as_me:$LINENO: result: $CPP" >&5
13385echo "${ECHO_T}$CPP" >&6
13386ac_preproc_ok=false
13387for ac_c_preproc_warn_flag in '' yes
13388do
13389 # Use a header file that comes with gcc, so configuring glibc
13390 # with a fresh cross-compiler works.
13391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13392 # <limits.h> exists even on freestanding compilers.
13393 # On the NeXT, cc -E runs the code through the compiler's parser,
13394 # not just through cpp. "Syntax error" is here to catch this case.
13395 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401#ifdef __STDC__
13402# include <limits.h>
13403#else
13404# include <assert.h>
13405#endif
ac1cb8d3 13406 Syntax error
a848cd7e
SC
13407_ACEOF
13408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } >/dev/null; then
13416 if test -s conftest.err; then
13417 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13419 else
13420 ac_cpp_err=
13421 fi
13422else
13423 ac_cpp_err=yes
13424fi
13425if test -z "$ac_cpp_err"; then
13426 :
13427else
13428 echo "$as_me: failed program was:" >&5
13429sed 's/^/| /' conftest.$ac_ext >&5
13430
13431 # Broken: fails on valid input.
13432continue
13433fi
13434rm -f conftest.err conftest.$ac_ext
13435
13436 # OK, works on sane cases. Now check whether non-existent headers
13437 # can be detected and how.
13438 cat >conftest.$ac_ext <<_ACEOF
13439/* confdefs.h. */
13440_ACEOF
13441cat confdefs.h >>conftest.$ac_ext
13442cat >>conftest.$ac_ext <<_ACEOF
13443/* end confdefs.h. */
13444#include <ac_nonexistent.h>
13445_ACEOF
13446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } >/dev/null; then
13454 if test -s conftest.err; then
13455 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13457 else
13458 ac_cpp_err=
13459 fi
13460else
13461 ac_cpp_err=yes
13462fi
13463if test -z "$ac_cpp_err"; then
13464 # Broken: success on invalid input.
13465continue
13466else
13467 echo "$as_me: failed program was:" >&5
13468sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 # Passes both tests.
13471ac_preproc_ok=:
13472break
13473fi
13474rm -f conftest.err conftest.$ac_ext
13475
13476done
13477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13478rm -f conftest.err conftest.$ac_ext
13479if $ac_preproc_ok; then
13480 :
13481else
13482 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13483See \`config.log' for more details." >&5
13484echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13485See \`config.log' for more details." >&2;}
13486 { (exit 1); exit 1; }; }
13487fi
13488
13489ac_ext=c
13490ac_cpp='$CPP $CPPFLAGS'
13491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13493ac_compiler_gnu=$ac_cv_c_compiler_gnu
13494
13495
13496echo "$as_me:$LINENO: checking for egrep" >&5
13497echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13498if test "${ac_cv_prog_egrep+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13500else
13501 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13502 then ac_cv_prog_egrep='grep -E'
13503 else ac_cv_prog_egrep='egrep'
13504 fi
13505fi
13506echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13507echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13508 EGREP=$ac_cv_prog_egrep
13509
13510
13511if test $ac_cv_c_compiler_gnu = yes; then
13512 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13513echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13514if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516else
13517 ac_pattern="Autoconf.*'x'"
13518 cat >conftest.$ac_ext <<_ACEOF
13519/* confdefs.h. */
13520_ACEOF
13521cat confdefs.h >>conftest.$ac_ext
13522cat >>conftest.$ac_ext <<_ACEOF
13523/* end confdefs.h. */
13524#include <sgtty.h>
13525Autoconf TIOCGETP
13526_ACEOF
13527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13528 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13529 ac_cv_prog_gcc_traditional=yes
13530else
13531 ac_cv_prog_gcc_traditional=no
13532fi
13533rm -f conftest*
13534
13535
13536 if test $ac_cv_prog_gcc_traditional = no; then
13537 cat >conftest.$ac_ext <<_ACEOF
13538/* confdefs.h. */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h. */
13543#include <termio.h>
13544Autoconf TCGETA
13545_ACEOF
13546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13547 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13548 ac_cv_prog_gcc_traditional=yes
13549fi
13550rm -f conftest*
13551
13552 fi
13553fi
13554echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13555echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13556 if test $ac_cv_prog_gcc_traditional = yes; then
13557 CC="$CC -traditional"
13558 fi
13559fi
13560
13561
a848cd7e
SC
13562ac_ext=cc
13563ac_cpp='$CXXCPP $CPPFLAGS'
13564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13567
13568
13569CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13570
13571
3006edc0 13572
6dcfc289 13573 ac_ext=cc
a848cd7e
SC
13574ac_cpp='$CXXCPP $CPPFLAGS'
13575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13578if test -n "$ac_tool_prefix"; then
13579 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13580 do
13581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13582set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13583echo "$as_me:$LINENO: checking for $ac_word" >&5
13584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13585if test "${ac_cv_prog_CXX+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587else
13588 if test -n "$CXX"; then
13589 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13590else
13591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592for as_dir in $PATH
13593do
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13600 break 2
13601 fi
13602done
13603done
13604
13605fi
13606fi
13607CXX=$ac_cv_prog_CXX
13608if test -n "$CXX"; then
13609 echo "$as_me:$LINENO: result: $CXX" >&5
13610echo "${ECHO_T}$CXX" >&6
13611else
13612 echo "$as_me:$LINENO: result: no" >&5
13613echo "${ECHO_T}no" >&6
13614fi
13615
13616 test -n "$CXX" && break
13617 done
13618fi
13619if test -z "$CXX"; then
13620 ac_ct_CXX=$CXX
13621 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13622do
13623 # Extract the first word of "$ac_prog", so it can be a program name with args.
13624set dummy $ac_prog; ac_word=$2
13625echo "$as_me:$LINENO: checking for $ac_word" >&5
13626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13627if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629else
13630 if test -n "$ac_ct_CXX"; then
13631 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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
13640 ac_cv_prog_ac_ct_CXX="$ac_prog"
13641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 break 2
13643 fi
13644done
13645done
13646
13647fi
13648fi
13649ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13650if test -n "$ac_ct_CXX"; then
13651 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13652echo "${ECHO_T}$ac_ct_CXX" >&6
13653else
13654 echo "$as_me:$LINENO: result: no" >&5
13655echo "${ECHO_T}no" >&6
13656fi
13657
13658 test -n "$ac_ct_CXX" && break
13659done
13660test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13661
13662 CXX=$ac_ct_CXX
13663fi
13664
13665
13666# Provide some information about the compiler.
13667echo "$as_me:$LINENO:" \
13668 "checking for C++ compiler version" >&5
13669ac_compiler=`set X $ac_compile; echo $2`
13670{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13671 (eval $ac_compiler --version </dev/null >&5) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }
13675{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13676 (eval $ac_compiler -v </dev/null >&5) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }
13680{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13681 (eval $ac_compiler -V </dev/null >&5) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }
13685
13686echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13687echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13688if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13690else
13691 cat >conftest.$ac_ext <<_ACEOF
13692/* confdefs.h. */
13693_ACEOF
13694cat confdefs.h >>conftest.$ac_ext
13695cat >>conftest.$ac_ext <<_ACEOF
13696/* end confdefs.h. */
13697
13698int
13699main ()
13700{
13701#ifndef __GNUC__
13702 choke me
13703#endif
13704
13705 ;
13706 return 0;
13707}
13708_ACEOF
13709rm -f conftest.$ac_objext
13710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13711 (eval $ac_compile) 2>conftest.er1
a848cd7e 13712 ac_status=$?
ac1cb8d3
VS
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
a848cd7e
SC
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
c9a66001 13718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_compiler_gnu=yes
13731else
13732 echo "$as_me: failed program was:" >&5
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
13735ac_compiler_gnu=no
13736fi
ac1cb8d3 13737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13738ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13739
13740fi
13741echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13742echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13743GXX=`test $ac_compiler_gnu = yes && echo yes`
13744ac_test_CXXFLAGS=${CXXFLAGS+set}
13745ac_save_CXXFLAGS=$CXXFLAGS
13746CXXFLAGS="-g"
13747echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13748echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13749if test "${ac_cv_prog_cxx_g+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751else
13752 cat >conftest.$ac_ext <<_ACEOF
13753/* confdefs.h. */
13754_ACEOF
13755cat confdefs.h >>conftest.$ac_ext
13756cat >>conftest.$ac_ext <<_ACEOF
13757/* end confdefs.h. */
13758
13759int
13760main ()
13761{
13762
13763 ;
13764 return 0;
13765}
13766_ACEOF
13767rm -f conftest.$ac_objext
13768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13769 (eval $ac_compile) 2>conftest.er1
a848cd7e 13770 ac_status=$?
ac1cb8d3
VS
13771 grep -v '^ *+' conftest.er1 >conftest.err
13772 rm -f conftest.er1
13773 cat conftest.err >&5
a848cd7e
SC
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } &&
c9a66001 13776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_cv_prog_cxx_g=yes
13789else
13790 echo "$as_me: failed program was:" >&5
13791sed 's/^/| /' conftest.$ac_ext >&5
13792
13793ac_cv_prog_cxx_g=no
13794fi
ac1cb8d3 13795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13796fi
13797echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13798echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13799if test "$ac_test_CXXFLAGS" = set; then
13800 CXXFLAGS=$ac_save_CXXFLAGS
13801elif test $ac_cv_prog_cxx_g = yes; then
13802 if test "$GXX" = yes; then
737d3175 13803 CXXFLAGS="-g -O2"
a848cd7e 13804 else
737d3175 13805 CXXFLAGS="-g"
a848cd7e
SC
13806 fi
13807else
13808 if test "$GXX" = yes; then
13809 CXXFLAGS="-O2"
13810 else
13811 CXXFLAGS=
13812 fi
13813fi
13814for ac_declaration in \
ac1cb8d3 13815 '' \
a848cd7e
SC
13816 'extern "C" void std::exit (int) throw (); using std::exit;' \
13817 'extern "C" void std::exit (int); using std::exit;' \
13818 'extern "C" void exit (int) throw ();' \
13819 'extern "C" void exit (int);' \
13820 'void exit (int);'
13821do
13822 cat >conftest.$ac_ext <<_ACEOF
13823/* confdefs.h. */
13824_ACEOF
13825cat confdefs.h >>conftest.$ac_ext
13826cat >>conftest.$ac_ext <<_ACEOF
13827/* end confdefs.h. */
de59c161 13828$ac_declaration
ac1cb8d3 13829#include <stdlib.h>
a848cd7e
SC
13830int
13831main ()
13832{
13833exit (42);
13834 ;
13835 return 0;
13836}
13837_ACEOF
13838rm -f conftest.$ac_objext
13839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13840 (eval $ac_compile) 2>conftest.er1
a848cd7e 13841 ac_status=$?
ac1cb8d3
VS
13842 grep -v '^ *+' conftest.er1 >conftest.err
13843 rm -f conftest.er1
13844 cat conftest.err >&5
a848cd7e
SC
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
c9a66001 13847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 :
13860else
13861 echo "$as_me: failed program was:" >&5
13862sed 's/^/| /' conftest.$ac_ext >&5
13863
13864continue
13865fi
ac1cb8d3 13866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13867 cat >conftest.$ac_ext <<_ACEOF
13868/* confdefs.h. */
13869_ACEOF
13870cat confdefs.h >>conftest.$ac_ext
13871cat >>conftest.$ac_ext <<_ACEOF
13872/* end confdefs.h. */
13873$ac_declaration
13874int
13875main ()
13876{
13877exit (42);
13878 ;
13879 return 0;
13880}
13881_ACEOF
13882rm -f conftest.$ac_objext
13883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13884 (eval $ac_compile) 2>conftest.er1
a848cd7e 13885 ac_status=$?
ac1cb8d3
VS
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
a848cd7e
SC
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
c9a66001 13891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; } &&
13897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 break
13904else
13905 echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
13907
13908fi
ac1cb8d3 13909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13910done
13911rm -f conftest*
13912if test -n "$ac_declaration"; then
13913 echo '#ifdef __cplusplus' >>confdefs.h
13914 echo $ac_declaration >>confdefs.h
13915 echo '#endif' >>confdefs.h
13916fi
13917
13918ac_ext=cc
13919ac_cpp='$CXXCPP $CPPFLAGS'
13920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13923
ab0ad5f1
VZ
13924
13925
13926 ac_ext=cc
13927ac_cpp='$CXXCPP $CPPFLAGS'
13928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13931
13932 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13933echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13934if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936else
13937 cat >conftest.$ac_ext <<_ACEOF
13938/* confdefs.h. */
13939_ACEOF
13940cat confdefs.h >>conftest.$ac_ext
13941cat >>conftest.$ac_ext <<_ACEOF
13942/* end confdefs.h. */
13943
13944int
13945main ()
13946{
13947
13948 #ifndef __INTEL_COMPILER
13949 choke me
13950 #endif
13951
13952 ;
13953 return 0;
13954}
13955_ACEOF
13956rm -f conftest.$ac_objext
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
c9a66001 13965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; } &&
13971 { ac_try='test -s conftest.$ac_objext'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13978else
13979 echo "$as_me: failed program was:" >&5
13980sed 's/^/| /' conftest.$ac_ext >&5
13981
13982bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13983
13984fi
13985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13986
13987
13988fi
13989echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13990echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13991 ac_ext=cc
13992ac_cpp='$CXXCPP $CPPFLAGS'
13993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13996
13997 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13998 :; INTELCXX=yes
13999 else
14000 :;
14001 fi
14002
14003
3006edc0
VZ
14004 if test "x$GCXX" != "xyes"; then
14005 if test "xCXX" = "xC"; then
14006 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14007echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14008if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14010else
14011 cat >conftest.$ac_ext <<_ACEOF
14012/* confdefs.h. */
14013_ACEOF
14014cat confdefs.h >>conftest.$ac_ext
14015cat >>conftest.$ac_ext <<_ACEOF
14016/* end confdefs.h. */
14017
14018int
14019main ()
14020{
14021
14022 ;
14023 return 0;
14024}
14025_ACEOF
14026rm -f conftest.$ac_objext conftest.$ac_ext.o
14027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028 (eval $ac_compile) 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; then
14032 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14033 case $ac_file in
14034 conftest.$ac_ext.o)
0093c2fc 14035 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14036 ;;
14037 *)
14038 ;;
14039 esac
14040done
14041else
14042 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14043See \`config.log' for more details." >&5
14044echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14045See \`config.log' for more details." >&2;}
14046 { (exit 1); exit 1; }; }
14047
14048fi
14049
14050rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14051
14052fi
0093c2fc
VZ
14053echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14054echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14055if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14056 if test "cxx" = "c"; then
0093c2fc 14057 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14058 fi
14059 if test "cxx" = "cxx"; then
0093c2fc 14060 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14061 fi
14062fi
14063
0093c2fc 14064 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14065 unset ac_cv_prog_cc_g
14066 ac_test_CFLAGS=${CFLAGS+set}
14067ac_save_CFLAGS=$CFLAGS
737d3175 14068CFLAGS="-g"
3006edc0
VZ
14069echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14070echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14071if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074 cat >conftest.$ac_ext <<_ACEOF
14075/* confdefs.h. */
14076_ACEOF
14077cat confdefs.h >>conftest.$ac_ext
14078cat >>conftest.$ac_ext <<_ACEOF
14079/* end confdefs.h. */
14080
14081int
14082main ()
14083{
14084
14085 ;
14086 return 0;
14087}
14088_ACEOF
14089rm -f conftest.$ac_objext
14090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14091 (eval $ac_compile) 2>conftest.er1
14092 ac_status=$?
14093 grep -v '^ *+' conftest.er1 >conftest.err
14094 rm -f conftest.er1
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
c9a66001 14098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try='test -s conftest.$ac_objext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
3006edc0 14110 ac_cv_prog_cc_g=yes
480ccd21
DE
14111else
14112 echo "$as_me: failed program was:" >&5
14113sed 's/^/| /' conftest.$ac_ext >&5
14114
3006edc0 14115ac_cv_prog_cc_g=no
480ccd21
DE
14116fi
14117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14118fi
3006edc0
VZ
14119echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14120echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14121if test "$ac_test_CFLAGS" = set; then
14122 CFLAGS=$ac_save_CFLAGS
14123elif test $ac_cv_prog_cc_g = yes; then
14124 if test "$GCC" = yes; then
14125 CFLAGS="-g -O2"
480ccd21 14126 else
3006edc0 14127 CFLAGS="-g"
480ccd21
DE
14128 fi
14129else
3006edc0
VZ
14130 if test "$GCC" = yes; then
14131 CFLAGS="-O2"
480ccd21 14132 else
3006edc0 14133 CFLAGS=
480ccd21
DE
14134 fi
14135fi
3006edc0 14136 fi
ab0ad5f1 14137 fi
3006edc0
VZ
14138
14139 case `uname -s` in
14140 AIX*)
14141 ac_ext=cc
14142ac_cpp='$CXXCPP $CPPFLAGS'
14143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14146
14147echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14148echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14149if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151else
14152 cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158
14159int
14160main ()
14161{
14162#ifndef __xlC__
14163 choke me
14164#endif
14165
14166 ;
14167 return 0;
14168}
14169_ACEOF
14170rm -f conftest.$ac_objext
14171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14172 (eval $ac_compile) 2>conftest.er1
14173 ac_status=$?
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
c9a66001 14179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
0093c2fc 14191 bakefile_compiler_xlc=yes
3006edc0
VZ
14192else
14193 echo "$as_me: failed program was:" >&5
14194sed 's/^/| /' conftest.$ac_ext >&5
14195
0093c2fc 14196bakefile_compiler_xlc=no
3006edc0
VZ
14197fi
14198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14199 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14200
14201fi
0093c2fc
VZ
14202echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14203echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14204
0093c2fc 14205XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14206ac_ext=cc
14207ac_cpp='$CXXCPP $CPPFLAGS'
14208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14211
14212
14213 ;;
14214
14215 Darwin)
14216 ac_ext=cc
95986553
DE
14217ac_cpp='$CXXCPP $CPPFLAGS'
14218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14221
14222echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14223echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14224if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14226else
14227 cat >conftest.$ac_ext <<_ACEOF
14228/* confdefs.h. */
14229_ACEOF
14230cat confdefs.h >>conftest.$ac_ext
14231cat >>conftest.$ac_ext <<_ACEOF
14232/* end confdefs.h. */
14233
14234int
14235main ()
14236{
14237#ifndef __MWERKS__
14238 choke me
14239#endif
14240
14241 ;
14242 return 0;
14243}
14244_ACEOF
14245rm -f conftest.$ac_objext
14246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14247 (eval $ac_compile) 2>conftest.er1
14248 ac_status=$?
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } &&
c9a66001 14254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 bakefile_compiler_mwerks=yes
14267else
14268 echo "$as_me: failed program was:" >&5
14269sed 's/^/| /' conftest.$ac_ext >&5
14270
14271bakefile_compiler_mwerks=no
14272fi
14273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14274 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14275
14276fi
14277echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14278echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14279
0e6fa1d9 14280MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14281ac_ext=cc
14282ac_cpp='$CXXCPP $CPPFLAGS'
14283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14286
14287
3006edc0 14288 ac_ext=cc
9273ffba
DE
14289ac_cpp='$CXXCPP $CPPFLAGS'
14290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14293
14294echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14295echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14296if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298else
14299 cat >conftest.$ac_ext <<_ACEOF
14300/* confdefs.h. */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h. */
14305
14306int
14307main ()
14308{
14309#ifndef __xlC__
14310 choke me
14311#endif
14312
14313 ;
14314 return 0;
14315}
14316_ACEOF
14317rm -f conftest.$ac_objext
14318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
c9a66001 14326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; } &&
14332 { ac_try='test -s conftest.$ac_objext'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
0093c2fc 14338 bakefile_compiler_xlc=yes
9273ffba
DE
14339else
14340 echo "$as_me: failed program was:" >&5
14341sed 's/^/| /' conftest.$ac_ext >&5
14342
0093c2fc 14343bakefile_compiler_xlc=no
9273ffba
DE
14344fi
14345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14346 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14347
14348fi
0093c2fc
VZ
14349echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14350echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14351
0093c2fc 14352XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14353ac_ext=cc
14354ac_cpp='$CXXCPP $CPPFLAGS'
14355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14358
14359
3006edc0
VZ
14360 ;;
14361
14362 IRIX*)
95986553 14363
6dcfc289 14364
0ad5d837
VZ
14365 ac_ext=cc
14366ac_cpp='$CXXCPP $CPPFLAGS'
14367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14370
14371 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14372echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14373if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375else
14376 cat >conftest.$ac_ext <<_ACEOF
14377/* confdefs.h. */
14378_ACEOF
14379cat confdefs.h >>conftest.$ac_ext
14380cat >>conftest.$ac_ext <<_ACEOF
14381/* end confdefs.h. */
14382
14383int
14384main ()
14385{
14386
14387 #ifndef _SGI_COMPILER_VERSION
14388 choke me
14389 #endif
14390
14391 ;
14392 return 0;
14393}
14394_ACEOF
14395rm -f conftest.$ac_objext
14396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14397 (eval $ac_compile) 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
c9a66001 14404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest.$ac_objext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14417else
14418 echo "$as_me: failed program was:" >&5
14419sed 's/^/| /' conftest.$ac_ext >&5
14420
14421bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14422
14423fi
14424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14425
14426
14427fi
14428echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14429echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14430 ac_ext=cc
14431ac_cpp='$CXXCPP $CPPFLAGS'
14432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14435
14436 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14437 :; SGICXX=yes
14438 else
14439 :;
14440 fi
14441
14442
3006edc0
VZ
14443 ;;
14444
0093c2fc 14445 HP-UX*)
3006edc0
VZ
14446
14447
14448 ac_ext=cc
14449ac_cpp='$CXXCPP $CPPFLAGS'
14450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14453
0093c2fc
VZ
14454 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14455echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14456if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14458else
14459 cat >conftest.$ac_ext <<_ACEOF
14460/* confdefs.h. */
14461_ACEOF
14462cat confdefs.h >>conftest.$ac_ext
14463cat >>conftest.$ac_ext <<_ACEOF
14464/* end confdefs.h. */
14465
14466int
14467main ()
14468{
14469
0093c2fc 14470 #ifndef __HP_aCC
3006edc0
VZ
14471 choke me
14472 #endif
14473
14474 ;
14475 return 0;
14476}
14477_ACEOF
14478rm -f conftest.$ac_objext
14479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480 (eval $ac_compile) 2>conftest.er1
14481 ac_status=$?
14482 grep -v '^ *+' conftest.er1 >conftest.err
14483 rm -f conftest.er1
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
c9a66001 14487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest.$ac_objext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
0093c2fc 14499 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14500else
14501 echo "$as_me: failed program was:" >&5
14502sed 's/^/| /' conftest.$ac_ext >&5
14503
0093c2fc 14504bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14505
14506fi
14507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14508
14509
14510fi
0093c2fc
VZ
14511echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14512echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14513 ac_ext=cc
14514ac_cpp='$CXXCPP $CPPFLAGS'
14515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14518
0093c2fc
VZ
14519 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14520 :; HPCXX=yes
a1aa0349
VZ
14521 else
14522 :;
14523 fi
14524
14525
14526 ;;
14527
0093c2fc 14528 OSF1)
a1aa0349
VZ
14529
14530
14531 ac_ext=cc
14532ac_cpp='$CXXCPP $CPPFLAGS'
14533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14536
0093c2fc
VZ
14537 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14538echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14539if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541else
14542 cat >conftest.$ac_ext <<_ACEOF
14543/* confdefs.h. */
14544_ACEOF
14545cat confdefs.h >>conftest.$ac_ext
14546cat >>conftest.$ac_ext <<_ACEOF
14547/* end confdefs.h. */
14548
14549int
14550main ()
14551{
14552
0093c2fc 14553 #ifndef __DECCXX
a1aa0349
VZ
14554 choke me
14555 #endif
14556
14557 ;
14558 return 0;
14559}
14560_ACEOF
14561rm -f conftest.$ac_objext
14562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>conftest.er1
14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
c9a66001 14570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572 (eval $ac_try) 2>&5
14573 ac_status=$?
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; } &&
14576 { ac_try='test -s conftest.$ac_objext'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
0093c2fc 14582 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14583else
14584 echo "$as_me: failed program was:" >&5
14585sed 's/^/| /' conftest.$ac_ext >&5
14586
0093c2fc 14587bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14588
14589fi
14590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14591
14592
14593fi
0093c2fc
VZ
14594echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14595echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14596 ac_ext=cc
14597ac_cpp='$CXXCPP $CPPFLAGS'
14598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14601
0093c2fc
VZ
14602 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14603 :; COMPAQCXX=yes
14604 else
14605 :;
14606 fi
14607
14608
14609 ;;
14610
14611 SunOS)
14612
14613
14614 ac_ext=cc
14615ac_cpp='$CXXCPP $CPPFLAGS'
14616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14619
14620 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14621echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14622if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624else
14625 cat >conftest.$ac_ext <<_ACEOF
14626/* confdefs.h. */
14627_ACEOF
14628cat confdefs.h >>conftest.$ac_ext
14629cat >>conftest.$ac_ext <<_ACEOF
14630/* end confdefs.h. */
14631
14632int
14633main ()
14634{
14635
14636 #ifndef __SUNPRO_CC
14637 choke me
14638 #endif
14639
14640 ;
14641 return 0;
14642}
14643_ACEOF
14644rm -f conftest.$ac_objext
14645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646 (eval $ac_compile) 2>conftest.er1
14647 ac_status=$?
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
c9a66001 14653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; } &&
14659 { ac_try='test -s conftest.$ac_objext'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14666else
14667 echo "$as_me: failed program was:" >&5
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
14670bakefile_cv_cxx_compiler___SUNPRO_CC=no
14671
14672fi
14673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14674
14675
14676fi
14677echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14678echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14679 ac_ext=cc
14680ac_cpp='$CXXCPP $CPPFLAGS'
14681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14684
14685 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14686 :; SUNCXX=yes
3006edc0
VZ
14687 else
14688 :;
ab0ad5f1 14689 fi
a9e5b1f0
MW
14690
14691
3006edc0
VZ
14692 ;;
14693 esac
14694 fi
14695
14696
14697
a848cd7e
SC
14698if test -n "$ac_tool_prefix"; then
14699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14700set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14701echo "$as_me:$LINENO: checking for $ac_word" >&5
14702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14703if test "${ac_cv_prog_RANLIB+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14705else
14706 if test -n "$RANLIB"; then
14707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14708else
14709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710for as_dir in $PATH
14711do
14712 IFS=$as_save_IFS
14713 test -z "$as_dir" && as_dir=.
14714 for ac_exec_ext in '' $ac_executable_extensions; do
14715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14718 break 2
14719 fi
14720done
14721done
14722
14723fi
14724fi
14725RANLIB=$ac_cv_prog_RANLIB
14726if test -n "$RANLIB"; then
14727 echo "$as_me:$LINENO: result: $RANLIB" >&5
14728echo "${ECHO_T}$RANLIB" >&6
14729else
14730 echo "$as_me:$LINENO: result: no" >&5
14731echo "${ECHO_T}no" >&6
14732fi
14733
14734fi
14735if test -z "$ac_cv_prog_RANLIB"; then
14736 ac_ct_RANLIB=$RANLIB
14737 # Extract the first word of "ranlib", so it can be a program name with args.
14738set dummy ranlib; ac_word=$2
14739echo "$as_me:$LINENO: checking for $ac_word" >&5
14740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14741if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743else
14744 if test -n "$ac_ct_RANLIB"; then
14745 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14746else
14747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14748for as_dir in $PATH
14749do
14750 IFS=$as_save_IFS
14751 test -z "$as_dir" && as_dir=.
14752 for ac_exec_ext in '' $ac_executable_extensions; do
14753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14754 ac_cv_prog_ac_ct_RANLIB="ranlib"
14755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14756 break 2
14757 fi
14758done
14759done
14760
14761 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14762fi
14763fi
14764ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14765if test -n "$ac_ct_RANLIB"; then
14766 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14767echo "${ECHO_T}$ac_ct_RANLIB" >&6
14768else
14769 echo "$as_me:$LINENO: result: no" >&5
14770echo "${ECHO_T}no" >&6
14771fi
14772
14773 RANLIB=$ac_ct_RANLIB
14774else
14775 RANLIB="$ac_cv_prog_RANLIB"
14776fi
14777
14778
8c80d384
DE
14779if test -n "$ac_tool_prefix"; then
14780 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14781set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14782echo "$as_me:$LINENO: checking for $ac_word" >&5
14783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14784if test "${ac_cv_prog_AR+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786else
14787 if test -n "$AR"; then
14788 ac_cv_prog_AR="$AR" # Let the user override the test.
14789else
14790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14791for as_dir in $PATH
14792do
14793 IFS=$as_save_IFS
14794 test -z "$as_dir" && as_dir=.
14795 for ac_exec_ext in '' $ac_executable_extensions; do
14796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14797 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14799 break 2
14800 fi
14801done
14802done
14803
14804fi
14805fi
14806AR=$ac_cv_prog_AR
14807if test -n "$AR"; then
14808 echo "$as_me:$LINENO: result: $AR" >&5
14809echo "${ECHO_T}$AR" >&6
14810else
14811 echo "$as_me:$LINENO: result: no" >&5
14812echo "${ECHO_T}no" >&6
14813fi
14814
8c80d384
DE
14815fi
14816if test -z "$ac_cv_prog_AR"; then
14817 ac_ct_AR=$AR
14818 # Extract the first word of "ar", so it can be a program name with args.
14819set dummy ar; ac_word=$2
14820echo "$as_me:$LINENO: checking for $ac_word" >&5
14821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14822if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14824else
14825 if test -n "$ac_ct_AR"; then
14826 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14827else
14828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14829for as_dir in $PATH
14830do
14831 IFS=$as_save_IFS
14832 test -z "$as_dir" && as_dir=.
14833 for ac_exec_ext in '' $ac_executable_extensions; do
14834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14835 ac_cv_prog_ac_ct_AR="ar"
14836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14837 break 2
14838 fi
14839done
14840done
14841
14842fi
14843fi
14844ac_ct_AR=$ac_cv_prog_ac_ct_AR
14845if test -n "$ac_ct_AR"; then
14846 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14847echo "${ECHO_T}$ac_ct_AR" >&6
14848else
14849 echo "$as_me:$LINENO: result: no" >&5
14850echo "${ECHO_T}no" >&6
14851fi
14852
14853 AR=$ac_ct_AR
14854else
14855 AR="$ac_cv_prog_AR"
14856fi
14857
a848cd7e 14858if test "x$AR" = "x" ; then
77ffb593
JS
14859 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14860echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14861 { (exit 1); exit 1; }; }
14862fi
14863
14864# Find a good install program. We prefer a C program (faster),
14865# so one script is as good as another. But avoid the broken or
14866# incompatible versions:
14867# SysV /etc/install, /usr/sbin/install
14868# SunOS /usr/etc/install
14869# IRIX /sbin/install
14870# AIX /bin/install
14871# AmigaOS /C/install, which installs bootblocks on floppy discs
14872# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14873# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14874# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14875# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14876# ./install, which can be erroneously created by make from ./install.sh.
14877echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14878echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14879if test -z "$INSTALL"; then
14880if test "${ac_cv_path_install+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14882else
14883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884for as_dir in $PATH
14885do
14886 IFS=$as_save_IFS
14887 test -z "$as_dir" && as_dir=.
14888 # Account for people who put trailing slashes in PATH elements.
14889case $as_dir/ in
14890 ./ | .// | /cC/* | \
14891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14892 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14893 /usr/ucb/* ) ;;
14894 *)
14895 # OSF1 and SCO ODT 3.0 have their own names for install.
14896 # Don't use installbsd from OSF since it installs stuff as root
14897 # by default.
14898 for ac_prog in ginstall scoinst install; do
14899 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14900 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14901 if test $ac_prog = install &&
14902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14903 # AIX install. It has an incompatible calling convention.
14904 :
14905 elif test $ac_prog = install &&
14906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14907 # program-specific install script used by HP pwplus--don't use.
14908 :
14909 else
14910 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14911 break 3
14912 fi
14913 fi
a848cd7e
SC
14914 done
14915 done
14916 ;;
14917esac
14918done
14919
14920
14921fi
14922 if test "${ac_cv_path_install+set}" = set; then
14923 INSTALL=$ac_cv_path_install
14924 else
14925 # As a last resort, use the slow shell script. We don't cache a
14926 # path for INSTALL within a source directory, because that will
14927 # break other packages using the cache if that directory is
14928 # removed, or if the path is relative.
14929 INSTALL=$ac_install_sh
14930 fi
14931fi
14932echo "$as_me:$LINENO: result: $INSTALL" >&5
14933echo "${ECHO_T}$INSTALL" >&6
14934
14935# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14936# It thinks the first close brace ends the variable substitution.
14937test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14938
14939test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14940
14941test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14942
14943
14944case ${INSTALL} in
14945 /* ) # Absolute
14946 ;;
14947 ?:* ) # Drive letter, considered as absolute.
14948 ;;
14949 *)
14950 INSTALL=`pwd`/${INSTALL} ;;
14951esac
14952
a848cd7e
SC
14953
14954case "${host}" in
14955
cfda0ea8 14956 *-*-darwin* )
a848cd7e
SC
14957 INSTALL_PROGRAM="cp -fp"
14958 INSTALL_DATA="cp -fp"
14959 ;;
14960 *)
14961 ;;
14962esac
14963
8c80d384
DE
14964if test -n "$ac_tool_prefix"; then
14965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14966set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14967echo "$as_me:$LINENO: checking for $ac_word" >&5
14968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14969if test "${ac_cv_prog_STRIP+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971else
14972 if test -n "$STRIP"; then
14973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14974else
14975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976for as_dir in $PATH
14977do
14978 IFS=$as_save_IFS
14979 test -z "$as_dir" && as_dir=.
14980 for ac_exec_ext in '' $ac_executable_extensions; do
14981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14984 break 2
14985 fi
14986done
14987done
14988
a848cd7e
SC
14989fi
14990fi
14991STRIP=$ac_cv_prog_STRIP
14992if test -n "$STRIP"; then
14993 echo "$as_me:$LINENO: result: $STRIP" >&5
14994echo "${ECHO_T}$STRIP" >&6
14995else
14996 echo "$as_me:$LINENO: result: no" >&5
14997echo "${ECHO_T}no" >&6
14998fi
14999
8c80d384
DE
15000fi
15001if test -z "$ac_cv_prog_STRIP"; then
15002 ac_ct_STRIP=$STRIP
15003 # Extract the first word of "strip", so it can be a program name with args.
15004set dummy strip; ac_word=$2
15005echo "$as_me:$LINENO: checking for $ac_word" >&5
15006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15007if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15009else
15010 if test -n "$ac_ct_STRIP"; then
15011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15012else
15013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15014for as_dir in $PATH
15015do
15016 IFS=$as_save_IFS
15017 test -z "$as_dir" && as_dir=.
15018 for ac_exec_ext in '' $ac_executable_extensions; do
15019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15020 ac_cv_prog_ac_ct_STRIP="strip"
15021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15022 break 2
15023 fi
15024done
15025done
15026
15027 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15028fi
15029fi
15030ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15031if test -n "$ac_ct_STRIP"; then
15032 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15033echo "${ECHO_T}$ac_ct_STRIP" >&6
15034else
15035 echo "$as_me:$LINENO: result: no" >&5
15036echo "${ECHO_T}no" >&6
15037fi
15038
15039 STRIP=$ac_ct_STRIP
15040else
15041 STRIP="$ac_cv_prog_STRIP"
15042fi
15043
15044
15045if test "$wxUSE_WINE" = "yes"; then
15046 if test -n "$ac_tool_prefix"; then
15047 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15048set dummy ${ac_tool_prefix}wrc; ac_word=$2
15049echo "$as_me:$LINENO: checking for $ac_word" >&5
15050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15051if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15053else
8ced02f6
DE
15054 if test -n "$WINDRES"; then
15055 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15056else
15057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15058for as_dir in $PATH
15059do
15060 IFS=$as_save_IFS
15061 test -z "$as_dir" && as_dir=.
15062 for ac_exec_ext in '' $ac_executable_extensions; do
15063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15064 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15066 break 2
15067 fi
15068done
15069done
15070
15071fi
15072fi
8ced02f6
DE
15073WINDRES=$ac_cv_prog_WINDRES
15074if test -n "$WINDRES"; then
15075 echo "$as_me:$LINENO: result: $WINDRES" >&5
15076echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15077else
15078 echo "$as_me:$LINENO: result: no" >&5
15079echo "${ECHO_T}no" >&6
15080fi
15081
15082fi
8ced02f6
DE
15083if test -z "$ac_cv_prog_WINDRES"; then
15084 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15085 # Extract the first word of "wrc", so it can be a program name with args.
15086set dummy wrc; ac_word=$2
15087echo "$as_me:$LINENO: checking for $ac_word" >&5
15088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15089if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091else
8ced02f6
DE
15092 if test -n "$ac_ct_WINDRES"; then
15093 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15094else
15095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15096for as_dir in $PATH
15097do
15098 IFS=$as_save_IFS
15099 test -z "$as_dir" && as_dir=.
15100 for ac_exec_ext in '' $ac_executable_extensions; do
15101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15102 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15104 break 2
15105 fi
15106done
15107done
15108
15109fi
15110fi
8ced02f6
DE
15111ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15112if test -n "$ac_ct_WINDRES"; then
15113 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15114echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15115else
15116 echo "$as_me:$LINENO: result: no" >&5
15117echo "${ECHO_T}no" >&6
15118fi
15119
8ced02f6 15120 WINDRES=$ac_ct_WINDRES
8c80d384 15121else
8ced02f6 15122 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15123fi
15124
004ee6da 15125 RESCOMP="$WINDRES"
8c80d384
DE
15126else
15127 case "${host}" in
15128 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15129 if test -n "$ac_tool_prefix"; then
15130 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15131set dummy ${ac_tool_prefix}windres; ac_word=$2
15132echo "$as_me:$LINENO: checking for $ac_word" >&5
15133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15134if test "${ac_cv_prog_WINDRES+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136else
15137 if test -n "$WINDRES"; then
15138 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15139else
15140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15141for as_dir in $PATH
15142do
15143 IFS=$as_save_IFS
15144 test -z "$as_dir" && as_dir=.
15145 for ac_exec_ext in '' $ac_executable_extensions; do
15146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15147 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15149 break 2
15150 fi
15151done
15152done
15153
15154fi
15155fi
15156WINDRES=$ac_cv_prog_WINDRES
15157if test -n "$WINDRES"; then
15158 echo "$as_me:$LINENO: result: $WINDRES" >&5
15159echo "${ECHO_T}$WINDRES" >&6
15160else
15161 echo "$as_me:$LINENO: result: no" >&5
15162echo "${ECHO_T}no" >&6
15163fi
15164
15165fi
15166if test -z "$ac_cv_prog_WINDRES"; then
15167 ac_ct_WINDRES=$WINDRES
15168 # Extract the first word of "windres", so it can be a program name with args.
15169set dummy windres; ac_word=$2
15170echo "$as_me:$LINENO: checking for $ac_word" >&5
15171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15172if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174else
15175 if test -n "$ac_ct_WINDRES"; then
15176 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15177else
15178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15179for as_dir in $PATH
15180do
15181 IFS=$as_save_IFS
15182 test -z "$as_dir" && as_dir=.
15183 for ac_exec_ext in '' $ac_executable_extensions; do
15184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15185 ac_cv_prog_ac_ct_WINDRES="windres"
15186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15187 break 2
15188 fi
15189done
15190done
15191
15192fi
15193fi
15194ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15195if test -n "$ac_ct_WINDRES"; then
15196 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15197echo "${ECHO_T}$ac_ct_WINDRES" >&6
15198else
15199 echo "$as_me:$LINENO: result: no" >&5
15200echo "${ECHO_T}no" >&6
15201fi
15202
15203 WINDRES=$ac_ct_WINDRES
15204else
15205 WINDRES="$ac_cv_prog_WINDRES"
15206fi
15207
15208 RESCOMP="$WINDRES"
15209 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15210 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15211set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15212echo "$as_me:$LINENO: checking for $ac_word" >&5
15213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15214if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15216else
15217 if test -n "$DLLTOOL"; then
15218 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15219else
15220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15221for as_dir in $PATH
15222do
15223 IFS=$as_save_IFS
15224 test -z "$as_dir" && as_dir=.
15225 for ac_exec_ext in '' $ac_executable_extensions; do
15226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15227 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15229 break 2
15230 fi
15231done
15232done
15233
15234fi
15235fi
15236DLLTOOL=$ac_cv_prog_DLLTOOL
15237if test -n "$DLLTOOL"; then
15238 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15239echo "${ECHO_T}$DLLTOOL" >&6
15240else
15241 echo "$as_me:$LINENO: result: no" >&5
15242echo "${ECHO_T}no" >&6
15243fi
15244
15245fi
15246if test -z "$ac_cv_prog_DLLTOOL"; then
15247 ac_ct_DLLTOOL=$DLLTOOL
15248 # Extract the first word of "dlltool", so it can be a program name with args.
15249set dummy dlltool; ac_word=$2
15250echo "$as_me:$LINENO: checking for $ac_word" >&5
15251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15252if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15254else
15255 if test -n "$ac_ct_DLLTOOL"; then
15256 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15257else
15258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15259for as_dir in $PATH
15260do
15261 IFS=$as_save_IFS
15262 test -z "$as_dir" && as_dir=.
15263 for ac_exec_ext in '' $ac_executable_extensions; do
15264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15265 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15267 break 2
15268 fi
15269done
15270done
15271
15272fi
15273fi
15274ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15275if test -n "$ac_ct_DLLTOOL"; then
15276 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15277echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15278else
15279 echo "$as_me:$LINENO: result: no" >&5
15280echo "${ECHO_T}no" >&6
15281fi
15282
15283 DLLTOOL=$ac_ct_DLLTOOL
15284else
15285 DLLTOOL="$ac_cv_prog_DLLTOOL"
15286fi
15287
15288 ;;
15289 esac
15290fi
a848cd7e
SC
15291
15292echo "$as_me:$LINENO: checking if make is GNU make" >&5
15293echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15294if test "${wx_cv_prog_makeisgnu+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15296else
15297
15298 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15299 egrep -s GNU > /dev/null); then
15300 wx_cv_prog_makeisgnu="yes"
15301 else
15302 wx_cv_prog_makeisgnu="no"
15303 fi
15304
15305fi
15306echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15307echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15308
15309if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15310 IF_GNU_MAKE=""
15311else
15312 IF_GNU_MAKE="#"
15313fi
15314
15315
15316
15317if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15318echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15319echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15320if test "${wx_cv_prog_makevpath+set}" = set; then
15321 echo $ECHO_N "(cached) $ECHO_C" >&6
15322else
15323
15324cat - << EOF > confMake
15325check : file
15326 cp \$? \$@
15327 cp \$? final_file
15328EOF
15329
15330if test ! -d sub ; then
15331 mkdir sub
15332fi
15333echo dummy > sub/file
15334${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15335RESULT=$?
15336rm -f sub/file check final_file confMake
15337rmdir sub
15338if test "$RESULT" = 0; then
15339 wx_cv_prog_makevpath="yes"
15340else
15341 wx_cv_prog_makevpath="no"
15342fi
15343
15344fi
15345echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15346echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15347
15348if test "x$wx_cv_prog_makevpath" != "xyes"; then
15349{ { echo "$as_me:$LINENO: error:
15350You need a make-utility that is able to use the variable
15351VPATH correctly.
15352If your version of make does not support VPATH correctly,
15353please install GNU-make (possibly as gmake), and start
15354configure with the following command:
15355export MAKE=gmake; ./configure for sh-type shells
15356setenv MAKE gmake; ./configure for csh-type shells
15357Also please do remember to use gmake in this case every time
15358you are trying to compile.
15359" >&5
15360echo "$as_me: error:
15361You need a make-utility that is able to use the variable
15362VPATH correctly.
15363If your version of make does not support VPATH correctly,
15364please install GNU-make (possibly as gmake), and start
15365configure with the following command:
15366export MAKE=gmake; ./configure for sh-type shells
15367setenv MAKE gmake; ./configure for csh-type shells
15368Also please do remember to use gmake in this case every time
15369you are trying to compile.
15370" >&2;}
15371 { (exit 1); exit 1; }; }
15372fi fi
15373echo "$as_me:$LINENO: checking whether ln -s works" >&5
15374echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15375LN_S=$as_ln_s
15376if test "$LN_S" = "ln -s"; then
15377 echo "$as_me:$LINENO: result: yes" >&5
15378echo "${ECHO_T}yes" >&6
15379else
15380 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15381echo "${ECHO_T}no, using $LN_S" >&6
15382fi
15383
15384
bcaab0f9 15385
a848cd7e 15386
2113bc77 15387if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15388 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15389fi
15390
4d7ec9f1
DE
15391case "${host}" in
15392 powerpc-*-darwin* )
15393 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15394echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15395 cat >conftest.$ac_ext <<_ACEOF
15396/* confdefs.h. */
15397_ACEOF
15398cat confdefs.h >>conftest.$ac_ext
15399cat >>conftest.$ac_ext <<_ACEOF
15400/* end confdefs.h. */
15401
15402int
15403main ()
15404{
15405#ifndef __POWERPC__
15406 choke me for lack of PowerPC
15407#endif
15408
15409 ;
15410 return 0;
15411}
15412_ACEOF
15413rm -f conftest.$ac_objext
15414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15415 (eval $ac_compile) 2>conftest.er1
15416 ac_status=$?
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
c9a66001 15422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; } &&
15428 { ac_try='test -s conftest.$ac_objext'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 echo "$as_me:$LINENO: result: yes" >&5
15435echo "${ECHO_T}yes" >&6
15436else
15437 echo "$as_me: failed program was:" >&5
15438sed 's/^/| /' conftest.$ac_ext >&5
15439
15440echo "$as_me:$LINENO: result: no" >&5
15441echo "${ECHO_T}no" >&6
15442 cat >>confdefs.h <<\_ACEOF
15443#define __POWERPC__ 1
15444_ACEOF
15445
15446
15447fi
15448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15449 ;;
15450esac
15451
15452case "${host}" in
15453 *-*-darwin* )
4d7ec9f1
DE
15454 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15455echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15456 cat >conftest.$ac_ext <<_ACEOF
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462#include <CoreFoundation/CFBase.h>
15463
15464int
15465main ()
15466{
15467
15468 ;
15469 return 0;
15470}
15471_ACEOF
15472rm -f conftest.$ac_objext
15473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15474 (eval $ac_compile) 2>conftest.er1
15475 ac_status=$?
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
c9a66001 15481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; } &&
15487 { ac_try='test -s conftest.$ac_objext'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15493 echo "$as_me:$LINENO: result: yes" >&5
15494echo "${ECHO_T}yes" >&6
15495else
15496 echo "$as_me: failed program was:" >&5
15497sed 's/^/| /' conftest.$ac_ext >&5
15498
15499echo "$as_me:$LINENO: result: no" >&5
15500echo "${ECHO_T}no" >&6
15501 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15502echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15503 cat >conftest.$ac_ext <<_ACEOF
15504/* confdefs.h. */
15505_ACEOF
15506cat confdefs.h >>conftest.$ac_ext
15507cat >>conftest.$ac_ext <<_ACEOF
15508/* end confdefs.h. */
15509#define __CF_USE_FRAMEWORK_INCLUDES__
15510#include <CoreFoundation/CFBase.h>
15511
15512int
15513main ()
15514{
15515
15516 ;
15517 return 0;
15518}
15519_ACEOF
15520rm -f conftest.$ac_objext
15521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15522 (eval $ac_compile) 2>conftest.er1
15523 ac_status=$?
15524 grep -v '^ *+' conftest.er1 >conftest.err
15525 rm -f conftest.er1
15526 cat conftest.err >&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } &&
c9a66001 15529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; } &&
15535 { ac_try='test -s conftest.$ac_objext'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15541 echo "$as_me:$LINENO: result: yes" >&5
15542echo "${ECHO_T}yes" >&6
c92ad099 15543 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15544else
15545 echo "$as_me: failed program was:" >&5
15546sed 's/^/| /' conftest.$ac_ext >&5
15547
15548{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15549See \`config.log' for more details." >&5
15550echo "$as_me: error: no. CoreFoundation not available.
15551See \`config.log' for more details." >&2;}
15552 { (exit 1); exit 1; }; }
15553
15554fi
15555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15556
15557
15558fi
15559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15560 ;;
15561esac
15562
a848cd7e
SC
15563case "${host}" in
15564 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15565 ac_ext=c
15566ac_cpp='$CPP $CPPFLAGS'
15567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15569ac_compiler_gnu=$ac_cv_c_compiler_gnu
15570
15571 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15572 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15573echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15574if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15576else
15577 ac_check_lib_save_LIBS=$LIBS
15578LIBS="-lcExt $LIBS"
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
15586/* Override any gcc2 internal prototype to avoid an error. */
15587#ifdef __cplusplus
15588extern "C"
15589#endif
15590/* We use char because int might match the return type of a gcc2
15591 builtin and then its argument prototype would still apply. */
15592char drand48 ();
15593int
15594main ()
15595{
15596drand48 ();
15597 ;
15598 return 0;
15599}
15600_ACEOF
15601rm -f conftest.$ac_objext conftest$ac_exeext
15602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15603 (eval $ac_link) 2>conftest.er1
a848cd7e 15604 ac_status=$?
ac1cb8d3
VS
15605 grep -v '^ *+' conftest.er1 >conftest.err
15606 rm -f conftest.er1
15607 cat conftest.err >&5
a848cd7e
SC
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
c9a66001 15610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; } &&
15616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_lib_cExt_drand48=yes
15623else
15624 echo "$as_me: failed program was:" >&5
15625sed 's/^/| /' conftest.$ac_ext >&5
15626
15627ac_cv_lib_cExt_drand48=no
15628fi
ac1cb8d3
VS
15629rm -f conftest.err conftest.$ac_objext \
15630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15631LIBS=$ac_check_lib_save_LIBS
15632fi
15633echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15634echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15635if test $ac_cv_lib_cExt_drand48 = yes; then
15636 LIBS="$LIBS -lcExt"
15637fi
15638
15639 else
15640 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15641 fi
69120ee4
VZ
15642 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15643echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15644if test "${wx_cv_gccversion+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646else
15647
391a765e
VS
15648 if test "$cross_compiling" = yes; then
15649 wx_cv_gccversion="EMX2"
15650
15651else
15652 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15653/* confdefs.h. */
15654_ACEOF
15655cat confdefs.h >>conftest.$ac_ext
15656cat >>conftest.$ac_ext <<_ACEOF
15657/* end confdefs.h. */
15658
391a765e 15659 #include <stdio.h>
a848cd7e 15660
391a765e
VS
15661 int main()
15662 {
15663 FILE *f=fopen("conftestval", "w");
15664 if (!f) exit(1);
15665 fprintf(f,
a848cd7e 15666 #if (__GNUC__ < 3)
391a765e
VS
15667 "EMX2"
15668 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15669 "EMX3"
15670 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15671 "Innotek5"
15672 #else
15673 "Innotek6"
a848cd7e 15674 #endif
391a765e
VS
15675 );
15676 exit(0);
15677 }
a848cd7e 15678
a848cd7e 15679_ACEOF
391a765e
VS
15680rm -f conftest$ac_exeext
15681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682 (eval $ac_link) 2>&5
ac1cb8d3
VS
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
391a765e 15691 wx_cv_gccversion=`cat conftestval`
a848cd7e 15692else
391a765e
VS
15693 echo "$as_me: program exited with status $ac_status" >&5
15694echo "$as_me: failed program was:" >&5
a848cd7e
SC
15695sed 's/^/| /' conftest.$ac_ext >&5
15696
391a765e
VS
15697( exit $ac_status )
15698wx_cv_gccversion="EMX2"
a848cd7e 15699fi
391a765e 15700rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15701fi
a848cd7e
SC
15702
15703fi
15704echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15705echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15706 ac_ext=cc
15707ac_cpp='$CXXCPP $CPPFLAGS'
15708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15711
391a765e 15712 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15713 LIBS="$LIBS -lstdcpp"
15714 LDFLAGS="$LDFLAGS -Zsysv-signals"
15715 else
391a765e 15716 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15717 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15718 LDFLAGS="$LDFLAGS -Zsysv-signals"
15719 else
15720 LIBS="$LIBS -lstdc++"
15721 fi
15722 fi
94acd38e
DE
15723 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15724 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15725echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15726 wxUSE_OMF=yes
2da0c077 15727 enable_omf=yes
a848cd7e
SC
15728 fi
15729 ;;
15730 *)
15731
95986553 15732 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15733echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15734if test "${ac_cv_string_strcasecmp+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15736else
15737
15738 cat >conftest.$ac_ext <<_ACEOF
15739/* confdefs.h. */
15740_ACEOF
15741cat confdefs.h >>conftest.$ac_ext
15742cat >>conftest.$ac_ext <<_ACEOF
15743/* end confdefs.h. */
15744
15745 #include <string.h>
15746
15747int
15748main ()
15749{
15750
15751 strcasecmp("foo", "bar");
15752
15753 ;
15754 return 0;
15755}
15756_ACEOF
15757rm -f conftest.$ac_objext conftest$ac_exeext
15758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15759 (eval $ac_link) 2>conftest.er1
a848cd7e 15760 ac_status=$?
ac1cb8d3
VS
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
a848cd7e
SC
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
c9a66001 15766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; } &&
15772 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_cv_string_strcasecmp=yes
15779else
15780 echo "$as_me: failed program was:" >&5
15781sed 's/^/| /' conftest.$ac_ext >&5
15782
15783ac_cv_string_strcasecmp=no
15784
15785fi
ac1cb8d3
VS
15786rm -f conftest.err conftest.$ac_objext \
15787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15788
15789fi
15790echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15791echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15792
15793 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15794 cat >>confdefs.h <<\_ACEOF
15795#define HAVE_STRCASECMP_IN_STRING_H 1
15796_ACEOF
15797
15798 else
15799 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15800echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15801if test "${ac_cv_strings_strcasecmp+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15803else
15804
15805 cat >conftest.$ac_ext <<_ACEOF
15806/* confdefs.h. */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h. */
15811
15812 #include <strings.h>
15813
15814int
15815main ()
15816{
15817
15818 strcasecmp("foo", "bar");
15819
15820 ;
15821 return 0;
15822}
15823_ACEOF
15824rm -f conftest.$ac_objext conftest$ac_exeext
15825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15826 (eval $ac_link) 2>conftest.er1
a848cd7e 15827 ac_status=$?
ac1cb8d3
VS
15828 grep -v '^ *+' conftest.er1 >conftest.err
15829 rm -f conftest.er1
15830 cat conftest.err >&5
a848cd7e
SC
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } &&
c9a66001 15833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_cv_strings_strcasecmp=yes
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850ac_cv_strings_strcasecmp=no
15851
15852fi
ac1cb8d3
VS
15853rm -f conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15855
15856fi
15857echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15858echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15859
0c3c69fc 15860 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15861 cat >>confdefs.h <<\_ACEOF
15862#define HAVE_STRCASECMP_IN_STRINGS_H 1
15863_ACEOF
15864
15865 else
15866 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15867echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15868 { (exit 1); exit 1; }; }
15869 fi
15870 fi
15871
a848cd7e
SC
15872 ;;
15873esac
15874
15875
5d7b7554
VZ
15876ac_ext=cc
15877ac_cpp='$CXXCPP $CPPFLAGS'
15878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15881echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15882echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15883if test -z "$CXXCPP"; then
15884 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886else
15887 # Double quotes because CXXCPP needs to be expanded
15888 for CXXCPP in "$CXX -E" "/lib/cpp"
15889 do
15890 ac_preproc_ok=false
15891for ac_cxx_preproc_warn_flag in '' yes
15892do
15893 # Use a header file that comes with gcc, so configuring glibc
15894 # with a fresh cross-compiler works.
15895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15896 # <limits.h> exists even on freestanding compilers.
15897 # On the NeXT, cc -E runs the code through the compiler's parser,
15898 # not just through cpp. "Syntax error" is here to catch this case.
15899 cat >conftest.$ac_ext <<_ACEOF
15900/* confdefs.h. */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h. */
15905#ifdef __STDC__
15906# include <limits.h>
15907#else
15908# include <assert.h>
15909#endif
15910 Syntax error
15911_ACEOF
15912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15914 ac_status=$?
15915 grep -v '^ *+' conftest.er1 >conftest.err
15916 rm -f conftest.er1
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } >/dev/null; then
15920 if test -s conftest.err; then
15921 ac_cpp_err=$ac_cxx_preproc_warn_flag
15922 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15923 else
15924 ac_cpp_err=
15925 fi
15926else
15927 ac_cpp_err=yes
15928fi
15929if test -z "$ac_cpp_err"; then
15930 :
15931else
15932 echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935 # Broken: fails on valid input.
15936continue
15937fi
15938rm -f conftest.err conftest.$ac_ext
15939
15940 # OK, works on sane cases. Now check whether non-existent headers
15941 # can be detected and how.
15942 cat >conftest.$ac_ext <<_ACEOF
15943/* confdefs.h. */
15944_ACEOF
15945cat confdefs.h >>conftest.$ac_ext
15946cat >>conftest.$ac_ext <<_ACEOF
15947/* end confdefs.h. */
15948#include <ac_nonexistent.h>
15949_ACEOF
15950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } >/dev/null; then
15958 if test -s conftest.err; then
15959 ac_cpp_err=$ac_cxx_preproc_warn_flag
15960 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15961 else
15962 ac_cpp_err=
15963 fi
15964else
15965 ac_cpp_err=yes
15966fi
15967if test -z "$ac_cpp_err"; then
15968 # Broken: success on invalid input.
15969continue
15970else
15971 echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974 # Passes both tests.
15975ac_preproc_ok=:
15976break
15977fi
15978rm -f conftest.err conftest.$ac_ext
15979
15980done
15981# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15982rm -f conftest.err conftest.$ac_ext
15983if $ac_preproc_ok; then
15984 break
15985fi
15986
15987 done
15988 ac_cv_prog_CXXCPP=$CXXCPP
15989
15990fi
15991 CXXCPP=$ac_cv_prog_CXXCPP
15992else
15993 ac_cv_prog_CXXCPP=$CXXCPP
15994fi
15995echo "$as_me:$LINENO: result: $CXXCPP" >&5
15996echo "${ECHO_T}$CXXCPP" >&6
15997ac_preproc_ok=false
15998for ac_cxx_preproc_warn_flag in '' yes
15999do
16000 # Use a header file that comes with gcc, so configuring glibc
16001 # with a fresh cross-compiler works.
16002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16003 # <limits.h> exists even on freestanding compilers.
16004 # On the NeXT, cc -E runs the code through the compiler's parser,
16005 # not just through cpp. "Syntax error" is here to catch this case.
16006 cat >conftest.$ac_ext <<_ACEOF
16007/* confdefs.h. */
16008_ACEOF
16009cat confdefs.h >>conftest.$ac_ext
16010cat >>conftest.$ac_ext <<_ACEOF
16011/* end confdefs.h. */
16012#ifdef __STDC__
16013# include <limits.h>
16014#else
16015# include <assert.h>
16016#endif
16017 Syntax error
16018_ACEOF
16019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } >/dev/null; then
16027 if test -s conftest.err; then
16028 ac_cpp_err=$ac_cxx_preproc_warn_flag
16029 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16030 else
16031 ac_cpp_err=
16032 fi
16033else
16034 ac_cpp_err=yes
16035fi
16036if test -z "$ac_cpp_err"; then
16037 :
16038else
16039 echo "$as_me: failed program was:" >&5
16040sed 's/^/| /' conftest.$ac_ext >&5
16041
16042 # Broken: fails on valid input.
16043continue
16044fi
16045rm -f conftest.err conftest.$ac_ext
16046
16047 # OK, works on sane cases. Now check whether non-existent headers
16048 # can be detected and how.
16049 cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
16055#include <ac_nonexistent.h>
16056_ACEOF
16057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16059 ac_status=$?
16060 grep -v '^ *+' conftest.er1 >conftest.err
16061 rm -f conftest.er1
16062 cat conftest.err >&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } >/dev/null; then
16065 if test -s conftest.err; then
16066 ac_cpp_err=$ac_cxx_preproc_warn_flag
16067 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16068 else
16069 ac_cpp_err=
16070 fi
16071else
16072 ac_cpp_err=yes
16073fi
16074if test -z "$ac_cpp_err"; then
16075 # Broken: success on invalid input.
16076continue
16077else
16078 echo "$as_me: failed program was:" >&5
16079sed 's/^/| /' conftest.$ac_ext >&5
16080
16081 # Passes both tests.
16082ac_preproc_ok=:
16083break
16084fi
16085rm -f conftest.err conftest.$ac_ext
16086
16087done
16088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16089rm -f conftest.err conftest.$ac_ext
16090if $ac_preproc_ok; then
16091 :
16092else
16093 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16094See \`config.log' for more details." >&5
16095echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16096See \`config.log' for more details." >&2;}
16097 { (exit 1); exit 1; }; }
16098fi
16099
16100ac_ext=cc
16101ac_cpp='$CXXCPP $CPPFLAGS'
16102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16105
16106
a848cd7e
SC
16107echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16108echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16109if test "${ac_cv_header_stdc+set}" = set; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16111else
16112 cat >conftest.$ac_ext <<_ACEOF
16113/* confdefs.h. */
16114_ACEOF
16115cat confdefs.h >>conftest.$ac_ext
16116cat >>conftest.$ac_ext <<_ACEOF
16117/* end confdefs.h. */
16118#include <stdlib.h>
16119#include <stdarg.h>
16120#include <string.h>
16121#include <float.h>
16122
16123int
16124main ()
16125{
16126
16127 ;
16128 return 0;
16129}
16130_ACEOF
16131rm -f conftest.$ac_objext
16132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16133 (eval $ac_compile) 2>conftest.er1
a848cd7e 16134 ac_status=$?
ac1cb8d3
VS
16135 grep -v '^ *+' conftest.er1 >conftest.err
16136 rm -f conftest.er1
16137 cat conftest.err >&5
a848cd7e
SC
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } &&
c9a66001 16140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; } &&
16146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_cv_header_stdc=yes
16153else
16154 echo "$as_me: failed program was:" >&5
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
16157ac_cv_header_stdc=no
16158fi
ac1cb8d3 16159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16160
16161if test $ac_cv_header_stdc = yes; then
16162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16163 cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h. */
16169#include <string.h>
16170
16171_ACEOF
16172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173 $EGREP "memchr" >/dev/null 2>&1; then
16174 :
16175else
16176 ac_cv_header_stdc=no
16177fi
16178rm -f conftest*
16179
16180fi
16181
16182if test $ac_cv_header_stdc = yes; then
16183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16184 cat >conftest.$ac_ext <<_ACEOF
16185/* confdefs.h. */
16186_ACEOF
16187cat confdefs.h >>conftest.$ac_ext
16188cat >>conftest.$ac_ext <<_ACEOF
16189/* end confdefs.h. */
16190#include <stdlib.h>
16191
16192_ACEOF
16193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16194 $EGREP "free" >/dev/null 2>&1; then
16195 :
16196else
16197 ac_cv_header_stdc=no
16198fi
16199rm -f conftest*
16200
16201fi
16202
16203if test $ac_cv_header_stdc = yes; then
16204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16205 if test "$cross_compiling" = yes; then
16206 :
16207else
16208 cat >conftest.$ac_ext <<_ACEOF
16209/* confdefs.h. */
16210_ACEOF
16211cat confdefs.h >>conftest.$ac_ext
16212cat >>conftest.$ac_ext <<_ACEOF
16213/* end confdefs.h. */
16214#include <ctype.h>
16215#if ((' ' & 0x0FF) == 0x020)
16216# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16217# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16218#else
16219# define ISLOWER(c) \
ac1cb8d3
VS
16220 (('a' <= (c) && (c) <= 'i') \
16221 || ('j' <= (c) && (c) <= 'r') \
16222 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16223# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16224#endif
16225
16226#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16227int
16228main ()
16229{
16230 int i;
16231 for (i = 0; i < 256; i++)
16232 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16233 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16234 exit(2);
16235 exit (0);
16236}
16237_ACEOF
16238rm -f conftest$ac_exeext
16239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240 (eval $ac_link) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 :
16250else
16251 echo "$as_me: program exited with status $ac_status" >&5
16252echo "$as_me: failed program was:" >&5
16253sed 's/^/| /' conftest.$ac_ext >&5
16254
16255( exit $ac_status )
16256ac_cv_header_stdc=no
16257fi
ac1cb8d3 16258rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16259fi
16260fi
16261fi
16262echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16263echo "${ECHO_T}$ac_cv_header_stdc" >&6
16264if test $ac_cv_header_stdc = yes; then
16265
16266cat >>confdefs.h <<\_ACEOF
16267#define STDC_HEADERS 1
16268_ACEOF
16269
16270fi
16271
16272# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16283 inttypes.h stdint.h unistd.h
a848cd7e
SC
16284do
16285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16286echo "$as_me:$LINENO: checking for $ac_header" >&5
16287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16288if eval "test \"\${$as_ac_Header+set}\" = set"; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16290else
16291 cat >conftest.$ac_ext <<_ACEOF
16292/* confdefs.h. */
16293_ACEOF
16294cat confdefs.h >>conftest.$ac_ext
16295cat >>conftest.$ac_ext <<_ACEOF
16296/* end confdefs.h. */
16297$ac_includes_default
16298
16299#include <$ac_header>
16300_ACEOF
16301rm -f conftest.$ac_objext
16302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16303 (eval $ac_compile) 2>conftest.er1
a848cd7e 16304 ac_status=$?
ac1cb8d3
VS
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
a848cd7e
SC
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
c9a66001 16310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 eval "$as_ac_Header=yes"
16323else
16324 echo "$as_me: failed program was:" >&5
16325sed 's/^/| /' conftest.$ac_ext >&5
16326
16327eval "$as_ac_Header=no"
16328fi
ac1cb8d3 16329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16330fi
16331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16333if test `eval echo '${'$as_ac_Header'}'` = yes; then
16334 cat >>confdefs.h <<_ACEOF
16335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16336_ACEOF
16337
16338fi
16339
16340done
16341
16342
16343
16344for ac_header in stdlib.h
16345do
16346as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16347if eval "test \"\${$as_ac_Header+set}\" = set"; then
16348 echo "$as_me:$LINENO: checking for $ac_header" >&5
16349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16350if eval "test \"\${$as_ac_Header+set}\" = set"; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352fi
16353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16355else
16356 # Is the header compilable?
16357echo "$as_me:$LINENO: checking $ac_header usability" >&5
16358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16359cat >conftest.$ac_ext <<_ACEOF
16360/* confdefs.h. */
16361_ACEOF
16362cat confdefs.h >>conftest.$ac_ext
16363cat >>conftest.$ac_ext <<_ACEOF
16364/* end confdefs.h. */
16365$ac_includes_default
16366#include <$ac_header>
16367_ACEOF
16368rm -f conftest.$ac_objext
16369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16370 (eval $ac_compile) 2>conftest.er1
a848cd7e 16371 ac_status=$?
ac1cb8d3
VS
16372 grep -v '^ *+' conftest.er1 >conftest.err
16373 rm -f conftest.er1
16374 cat conftest.err >&5
a848cd7e
SC
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
c9a66001 16377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 ac_header_compiler=yes
16390else
16391 echo "$as_me: failed program was:" >&5
16392sed 's/^/| /' conftest.$ac_ext >&5
16393
16394ac_header_compiler=no
16395fi
ac1cb8d3 16396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16397echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16398echo "${ECHO_T}$ac_header_compiler" >&6
16399
16400# Is the header present?
16401echo "$as_me:$LINENO: checking $ac_header presence" >&5
16402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16403cat >conftest.$ac_ext <<_ACEOF
16404/* confdefs.h. */
16405_ACEOF
16406cat confdefs.h >>conftest.$ac_ext
16407cat >>conftest.$ac_ext <<_ACEOF
16408/* end confdefs.h. */
16409#include <$ac_header>
16410_ACEOF
16411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } >/dev/null; then
16419 if test -s conftest.err; then
5d7b7554
VZ
16420 ac_cpp_err=$ac_cxx_preproc_warn_flag
16421 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16422 else
16423 ac_cpp_err=
16424 fi
16425else
16426 ac_cpp_err=yes
16427fi
16428if test -z "$ac_cpp_err"; then
16429 ac_header_preproc=yes
16430else
16431 echo "$as_me: failed program was:" >&5
16432sed 's/^/| /' conftest.$ac_ext >&5
16433
16434 ac_header_preproc=no
16435fi
16436rm -f conftest.err conftest.$ac_ext
16437echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438echo "${ECHO_T}$ac_header_preproc" >&6
16439
16440# So? What about this header?
5d7b7554 16441case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16442 yes:no: )
a848cd7e
SC
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16447 ac_header_preproc=yes
a848cd7e 16448 ;;
ac1cb8d3 16449 no:yes:* )
a848cd7e
SC
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16462 (
16463 cat <<\_ASBOX
ac1cb8d3
VS
16464## ----------------------------------------- ##
16465## Report this to wx-dev@lists.wxwidgets.org ##
16466## ----------------------------------------- ##
a848cd7e
SC
16467_ASBOX
16468 ) |
16469 sed "s/^/$as_me: WARNING: /" >&2
16470 ;;
16471esac
16472echo "$as_me:$LINENO: checking for $ac_header" >&5
16473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16474if eval "test \"\${$as_ac_Header+set}\" = set"; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476else
ac1cb8d3 16477 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16478fi
16479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16481
16482fi
16483if test `eval echo '${'$as_ac_Header'}'` = yes; then
16484 cat >>confdefs.h <<_ACEOF
16485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16486_ACEOF
16487
16488fi
16489
16490done
16491
16492
16493for ac_header in malloc.h
16494do
16495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16496if eval "test \"\${$as_ac_Header+set}\" = set"; then
16497 echo "$as_me:$LINENO: checking for $ac_header" >&5
16498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16499if eval "test \"\${$as_ac_Header+set}\" = set"; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501fi
16502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16504else
16505 # Is the header compilable?
16506echo "$as_me:$LINENO: checking $ac_header usability" >&5
16507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16508cat >conftest.$ac_ext <<_ACEOF
16509/* confdefs.h. */
16510_ACEOF
16511cat confdefs.h >>conftest.$ac_ext
16512cat >>conftest.$ac_ext <<_ACEOF
16513/* end confdefs.h. */
16514$ac_includes_default
16515#include <$ac_header>
16516_ACEOF
16517rm -f conftest.$ac_objext
16518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16519 (eval $ac_compile) 2>conftest.er1
a848cd7e 16520 ac_status=$?
ac1cb8d3
VS
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
a848cd7e
SC
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
c9a66001 16526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; } &&
16532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_header_compiler=yes
16539else
16540 echo "$as_me: failed program was:" >&5
16541sed 's/^/| /' conftest.$ac_ext >&5
16542
16543ac_header_compiler=no
16544fi
ac1cb8d3 16545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16547echo "${ECHO_T}$ac_header_compiler" >&6
16548
16549# Is the header present?
16550echo "$as_me:$LINENO: checking $ac_header presence" >&5
16551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16552cat >conftest.$ac_ext <<_ACEOF
16553/* confdefs.h. */
16554_ACEOF
16555cat confdefs.h >>conftest.$ac_ext
16556cat >>conftest.$ac_ext <<_ACEOF
16557/* end confdefs.h. */
16558#include <$ac_header>
16559_ACEOF
16560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } >/dev/null; then
16568 if test -s conftest.err; then
5d7b7554
VZ
16569 ac_cpp_err=$ac_cxx_preproc_warn_flag
16570 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16571 else
16572 ac_cpp_err=
16573 fi
16574else
16575 ac_cpp_err=yes
16576fi
16577if test -z "$ac_cpp_err"; then
16578 ac_header_preproc=yes
16579else
16580 echo "$as_me: failed program was:" >&5
16581sed 's/^/| /' conftest.$ac_ext >&5
16582
16583 ac_header_preproc=no
16584fi
16585rm -f conftest.err conftest.$ac_ext
16586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16587echo "${ECHO_T}$ac_header_preproc" >&6
16588
16589# So? What about this header?
5d7b7554 16590case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16591 yes:no: )
a848cd7e
SC
16592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16596 ac_header_preproc=yes
a848cd7e 16597 ;;
ac1cb8d3 16598 no:yes:* )
a848cd7e
SC
16599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16611 (
16612 cat <<\_ASBOX
ac1cb8d3
VS
16613## ----------------------------------------- ##
16614## Report this to wx-dev@lists.wxwidgets.org ##
16615## ----------------------------------------- ##
a848cd7e
SC
16616_ASBOX
16617 ) |
16618 sed "s/^/$as_me: WARNING: /" >&2
16619 ;;
16620esac
16621echo "$as_me:$LINENO: checking for $ac_header" >&5
16622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16623if eval "test \"\${$as_ac_Header+set}\" = set"; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625else
ac1cb8d3 16626 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16627fi
16628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16630
16631fi
16632if test `eval echo '${'$as_ac_Header'}'` = yes; then
16633 cat >>confdefs.h <<_ACEOF
16634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16635_ACEOF
16636
16637fi
16638
16639done
16640
16641
16642for ac_header in unistd.h
16643do
16644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16645if eval "test \"\${$as_ac_Header+set}\" = set"; then
16646 echo "$as_me:$LINENO: checking for $ac_header" >&5
16647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16648if eval "test \"\${$as_ac_Header+set}\" = set"; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650fi
16651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16653else
16654 # Is the header compilable?
16655echo "$as_me:$LINENO: checking $ac_header usability" >&5
16656echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16657cat >conftest.$ac_ext <<_ACEOF
16658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
16662/* end confdefs.h. */
16663$ac_includes_default
16664#include <$ac_header>
16665_ACEOF
16666rm -f conftest.$ac_objext
16667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16668 (eval $ac_compile) 2>conftest.er1
a848cd7e 16669 ac_status=$?
ac1cb8d3
VS
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
a848cd7e
SC
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
c9a66001 16675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687 ac_header_compiler=yes
16688else
16689 echo "$as_me: failed program was:" >&5
16690sed 's/^/| /' conftest.$ac_ext >&5
16691
16692ac_header_compiler=no
16693fi
ac1cb8d3 16694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16696echo "${ECHO_T}$ac_header_compiler" >&6
16697
16698# Is the header present?
16699echo "$as_me:$LINENO: checking $ac_header presence" >&5
16700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16701cat >conftest.$ac_ext <<_ACEOF
16702/* confdefs.h. */
16703_ACEOF
16704cat confdefs.h >>conftest.$ac_ext
16705cat >>conftest.$ac_ext <<_ACEOF
16706/* end confdefs.h. */
16707#include <$ac_header>
16708_ACEOF
16709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } >/dev/null; then
16717 if test -s conftest.err; then
5d7b7554
VZ
16718 ac_cpp_err=$ac_cxx_preproc_warn_flag
16719 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16720 else
16721 ac_cpp_err=
16722 fi
16723else
16724 ac_cpp_err=yes
16725fi
16726if test -z "$ac_cpp_err"; then
16727 ac_header_preproc=yes
16728else
16729 echo "$as_me: failed program was:" >&5
16730sed 's/^/| /' conftest.$ac_ext >&5
16731
16732 ac_header_preproc=no
16733fi
16734rm -f conftest.err conftest.$ac_ext
16735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16736echo "${ECHO_T}$ac_header_preproc" >&6
16737
16738# So? What about this header?
5d7b7554 16739case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16740 yes:no: )
a848cd7e
SC
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16745 ac_header_preproc=yes
a848cd7e 16746 ;;
ac1cb8d3 16747 no:yes:* )
a848cd7e
SC
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16760 (
16761 cat <<\_ASBOX
ac1cb8d3
VS
16762## ----------------------------------------- ##
16763## Report this to wx-dev@lists.wxwidgets.org ##
16764## ----------------------------------------- ##
a848cd7e
SC
16765_ASBOX
16766 ) |
16767 sed "s/^/$as_me: WARNING: /" >&2
16768 ;;
16769esac
16770echo "$as_me:$LINENO: checking for $ac_header" >&5
16771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16772if eval "test \"\${$as_ac_Header+set}\" = set"; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16774else
ac1cb8d3 16775 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16776fi
16777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16779
16780fi
16781if test `eval echo '${'$as_ac_Header'}'` = yes; then
16782 cat >>confdefs.h <<_ACEOF
16783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16784_ACEOF
16785
16786fi
16787
16788done
16789
16790
16791for ac_header in wchar.h
16792do
16793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16794if eval "test \"\${$as_ac_Header+set}\" = set"; then
16795 echo "$as_me:$LINENO: checking for $ac_header" >&5
16796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16797if eval "test \"\${$as_ac_Header+set}\" = set"; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799fi
16800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16802else
16803 # Is the header compilable?
16804echo "$as_me:$LINENO: checking $ac_header usability" >&5
16805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16806cat >conftest.$ac_ext <<_ACEOF
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812$ac_includes_default
16813#include <$ac_header>
16814_ACEOF
16815rm -f conftest.$ac_objext
16816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16817 (eval $ac_compile) 2>conftest.er1
a848cd7e 16818 ac_status=$?
ac1cb8d3
VS
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
a848cd7e
SC
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
c9a66001 16824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836 ac_header_compiler=yes
16837else
16838 echo "$as_me: failed program was:" >&5
16839sed 's/^/| /' conftest.$ac_ext >&5
16840
16841ac_header_compiler=no
16842fi
ac1cb8d3 16843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16845echo "${ECHO_T}$ac_header_compiler" >&6
16846
16847# Is the header present?
16848echo "$as_me:$LINENO: checking $ac_header presence" >&5
16849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16850cat >conftest.$ac_ext <<_ACEOF
16851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
16856#include <$ac_header>
16857_ACEOF
16858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16860 ac_status=$?
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } >/dev/null; then
16866 if test -s conftest.err; then
5d7b7554
VZ
16867 ac_cpp_err=$ac_cxx_preproc_warn_flag
16868 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16869 else
16870 ac_cpp_err=
16871 fi
16872else
16873 ac_cpp_err=yes
16874fi
16875if test -z "$ac_cpp_err"; then
16876 ac_header_preproc=yes
16877else
16878 echo "$as_me: failed program was:" >&5
16879sed 's/^/| /' conftest.$ac_ext >&5
16880
16881 ac_header_preproc=no
16882fi
16883rm -f conftest.err conftest.$ac_ext
16884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16885echo "${ECHO_T}$ac_header_preproc" >&6
16886
16887# So? What about this header?
5d7b7554 16888case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16889 yes:no: )
a848cd7e
SC
16890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16894 ac_header_preproc=yes
a848cd7e 16895 ;;
ac1cb8d3 16896 no:yes:* )
a848cd7e
SC
16897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16909 (
16910 cat <<\_ASBOX
ac1cb8d3
VS
16911## ----------------------------------------- ##
16912## Report this to wx-dev@lists.wxwidgets.org ##
16913## ----------------------------------------- ##
a848cd7e
SC
16914_ASBOX
16915 ) |
16916 sed "s/^/$as_me: WARNING: /" >&2
16917 ;;
16918esac
16919echo "$as_me:$LINENO: checking for $ac_header" >&5
16920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16921if eval "test \"\${$as_ac_Header+set}\" = set"; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16923else
ac1cb8d3 16924 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16925fi
16926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16928
16929fi
16930if test `eval echo '${'$as_ac_Header'}'` = yes; then
16931 cat >>confdefs.h <<_ACEOF
16932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16933_ACEOF
16934
16935fi
16936
16937done
16938
16939
16940if test "$ac_cv_header_wchar_h" != "yes"; then
16941
16942for ac_header in wcstr.h
16943do
16944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16945if eval "test \"\${$as_ac_Header+set}\" = set"; then
16946 echo "$as_me:$LINENO: checking for $ac_header" >&5
16947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16948if eval "test \"\${$as_ac_Header+set}\" = set"; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16950fi
16951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16953else
16954 # Is the header compilable?
16955echo "$as_me:$LINENO: checking $ac_header usability" >&5
16956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16957cat >conftest.$ac_ext <<_ACEOF
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963$ac_includes_default
16964#include <$ac_header>
16965_ACEOF
16966rm -f conftest.$ac_objext
16967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16968 (eval $ac_compile) 2>conftest.er1
a848cd7e 16969 ac_status=$?
ac1cb8d3
VS
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
a848cd7e
SC
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
c9a66001 16975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_header_compiler=yes
16988else
16989 echo "$as_me: failed program was:" >&5
16990sed 's/^/| /' conftest.$ac_ext >&5
16991
16992ac_header_compiler=no
16993fi
ac1cb8d3 16994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16996echo "${ECHO_T}$ac_header_compiler" >&6
16997
16998# Is the header present?
16999echo "$as_me:$LINENO: checking $ac_header presence" >&5
17000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17001cat >conftest.$ac_ext <<_ACEOF
17002/* confdefs.h. */
17003_ACEOF
17004cat confdefs.h >>conftest.$ac_ext
17005cat >>conftest.$ac_ext <<_ACEOF
17006/* end confdefs.h. */
17007#include <$ac_header>
17008_ACEOF
17009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17011 ac_status=$?
17012 grep -v '^ *+' conftest.er1 >conftest.err
17013 rm -f conftest.er1
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } >/dev/null; then
17017 if test -s conftest.err; then
5d7b7554
VZ
17018 ac_cpp_err=$ac_cxx_preproc_warn_flag
17019 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17020 else
17021 ac_cpp_err=
17022 fi
17023else
17024 ac_cpp_err=yes
17025fi
17026if test -z "$ac_cpp_err"; then
17027 ac_header_preproc=yes
17028else
17029 echo "$as_me: failed program was:" >&5
17030sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 ac_header_preproc=no
17033fi
17034rm -f conftest.err conftest.$ac_ext
17035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17036echo "${ECHO_T}$ac_header_preproc" >&6
17037
17038# So? What about this header?
5d7b7554 17039case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17040 yes:no: )
a848cd7e
SC
17041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17044echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17045 ac_header_preproc=yes
a848cd7e 17046 ;;
ac1cb8d3 17047 no:yes:* )
a848cd7e
SC
17048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17051echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17053echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17055echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17059echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17060 (
17061 cat <<\_ASBOX
ac1cb8d3
VS
17062## ----------------------------------------- ##
17063## Report this to wx-dev@lists.wxwidgets.org ##
17064## ----------------------------------------- ##
a848cd7e
SC
17065_ASBOX
17066 ) |
17067 sed "s/^/$as_me: WARNING: /" >&2
17068 ;;
17069esac
17070echo "$as_me:$LINENO: checking for $ac_header" >&5
17071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17072if eval "test \"\${$as_ac_Header+set}\" = set"; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17074else
ac1cb8d3 17075 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17076fi
17077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17079
17080fi
17081if test `eval echo '${'$as_ac_Header'}'` = yes; then
17082 cat >>confdefs.h <<_ACEOF
17083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17084_ACEOF
17085
17086fi
17087
17088done
17089
17090fi
17091
17092
17093for ac_header in fnmatch.h
17094do
17095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17096if eval "test \"\${$as_ac_Header+set}\" = set"; then
17097 echo "$as_me:$LINENO: checking for $ac_header" >&5
17098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17099if eval "test \"\${$as_ac_Header+set}\" = set"; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17101fi
17102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17104else
17105 # Is the header compilable?
17106echo "$as_me:$LINENO: checking $ac_header usability" >&5
17107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17108cat >conftest.$ac_ext <<_ACEOF
17109/* confdefs.h. */
17110_ACEOF
17111cat confdefs.h >>conftest.$ac_ext
17112cat >>conftest.$ac_ext <<_ACEOF
17113/* end confdefs.h. */
17114$ac_includes_default
17115#include <$ac_header>
17116_ACEOF
17117rm -f conftest.$ac_objext
17118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17119 (eval $ac_compile) 2>conftest.er1
a848cd7e 17120 ac_status=$?
ac1cb8d3
VS
17121 grep -v '^ *+' conftest.er1 >conftest.err
17122 rm -f conftest.er1
17123 cat conftest.err >&5
a848cd7e
SC
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
c9a66001 17126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_header_compiler=yes
17139else
17140 echo "$as_me: failed program was:" >&5
17141sed 's/^/| /' conftest.$ac_ext >&5
17142
17143ac_header_compiler=no
17144fi
ac1cb8d3 17145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17147echo "${ECHO_T}$ac_header_compiler" >&6
17148
17149# Is the header present?
17150echo "$as_me:$LINENO: checking $ac_header presence" >&5
17151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17152cat >conftest.$ac_ext <<_ACEOF
17153/* confdefs.h. */
17154_ACEOF
17155cat confdefs.h >>conftest.$ac_ext
17156cat >>conftest.$ac_ext <<_ACEOF
17157/* end confdefs.h. */
17158#include <$ac_header>
17159_ACEOF
17160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } >/dev/null; then
17168 if test -s conftest.err; then
5d7b7554
VZ
17169 ac_cpp_err=$ac_cxx_preproc_warn_flag
17170 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17171 else
17172 ac_cpp_err=
17173 fi
17174else
17175 ac_cpp_err=yes
17176fi
17177if test -z "$ac_cpp_err"; then
17178 ac_header_preproc=yes
17179else
17180 echo "$as_me: failed program was:" >&5
17181sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 ac_header_preproc=no
17184fi
17185rm -f conftest.err conftest.$ac_ext
17186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17187echo "${ECHO_T}$ac_header_preproc" >&6
17188
17189# So? What about this header?
5d7b7554 17190case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17191 yes:no: )
a848cd7e
SC
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17196 ac_header_preproc=yes
a848cd7e 17197 ;;
ac1cb8d3 17198 no:yes:* )
a848cd7e
SC
17199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17202echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17206echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17211 (
17212 cat <<\_ASBOX
ac1cb8d3
VS
17213## ----------------------------------------- ##
17214## Report this to wx-dev@lists.wxwidgets.org ##
17215## ----------------------------------------- ##
a848cd7e
SC
17216_ASBOX
17217 ) |
17218 sed "s/^/$as_me: WARNING: /" >&2
17219 ;;
17220esac
17221echo "$as_me:$LINENO: checking for $ac_header" >&5
17222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17223if eval "test \"\${$as_ac_Header+set}\" = set"; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
ac1cb8d3 17226 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17227fi
17228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17230
17231fi
17232if test `eval echo '${'$as_ac_Header'}'` = yes; then
17233 cat >>confdefs.h <<_ACEOF
17234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17235_ACEOF
17236
17237fi
17238
17239done
17240
17241
a848cd7e
SC
17242
17243for ac_header in langinfo.h
17244do
17245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17246if eval "test \"\${$as_ac_Header+set}\" = set"; then
17247 echo "$as_me:$LINENO: checking for $ac_header" >&5
17248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17249if eval "test \"\${$as_ac_Header+set}\" = set"; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251fi
17252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17254else
17255 # Is the header compilable?
17256echo "$as_me:$LINENO: checking $ac_header usability" >&5
17257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17258cat >conftest.$ac_ext <<_ACEOF
17259/* confdefs.h. */
17260_ACEOF
17261cat confdefs.h >>conftest.$ac_ext
17262cat >>conftest.$ac_ext <<_ACEOF
17263/* end confdefs.h. */
17264$ac_includes_default
17265#include <$ac_header>
17266_ACEOF
17267rm -f conftest.$ac_objext
17268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17269 (eval $ac_compile) 2>conftest.er1
a848cd7e 17270 ac_status=$?
ac1cb8d3
VS
17271 grep -v '^ *+' conftest.er1 >conftest.err
17272 rm -f conftest.er1
17273 cat conftest.err >&5
a848cd7e
SC
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
c9a66001 17276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 ac_header_compiler=yes
17289else
17290 echo "$as_me: failed program was:" >&5
17291sed 's/^/| /' conftest.$ac_ext >&5
17292
17293ac_header_compiler=no
17294fi
ac1cb8d3 17295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17297echo "${ECHO_T}$ac_header_compiler" >&6
17298
17299# Is the header present?
17300echo "$as_me:$LINENO: checking $ac_header presence" >&5
17301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17302cat >conftest.$ac_ext <<_ACEOF
17303/* confdefs.h. */
17304_ACEOF
17305cat confdefs.h >>conftest.$ac_ext
17306cat >>conftest.$ac_ext <<_ACEOF
17307/* end confdefs.h. */
17308#include <$ac_header>
17309_ACEOF
17310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17312 ac_status=$?
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } >/dev/null; then
17318 if test -s conftest.err; then
5d7b7554
VZ
17319 ac_cpp_err=$ac_cxx_preproc_warn_flag
17320 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17321 else
17322 ac_cpp_err=
17323 fi
17324else
17325 ac_cpp_err=yes
17326fi
17327if test -z "$ac_cpp_err"; then
17328 ac_header_preproc=yes
17329else
17330 echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333 ac_header_preproc=no
17334fi
17335rm -f conftest.err conftest.$ac_ext
17336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17337echo "${ECHO_T}$ac_header_preproc" >&6
17338
17339# So? What about this header?
5d7b7554 17340case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17341 yes:no: )
a848cd7e
SC
17342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17346 ac_header_preproc=yes
a848cd7e 17347 ;;
ac1cb8d3 17348 no:yes:* )
a848cd7e
SC
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17361 (
17362 cat <<\_ASBOX
ac1cb8d3
VS
17363## ----------------------------------------- ##
17364## Report this to wx-dev@lists.wxwidgets.org ##
17365## ----------------------------------------- ##
a848cd7e
SC
17366_ASBOX
17367 ) |
17368 sed "s/^/$as_me: WARNING: /" >&2
17369 ;;
17370esac
17371echo "$as_me:$LINENO: checking for $ac_header" >&5
17372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17373if eval "test \"\${$as_ac_Header+set}\" = set"; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17375else
ac1cb8d3 17376 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17377fi
17378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17380
17381fi
17382if test `eval echo '${'$as_ac_Header'}'` = yes; then
17383 cat >>confdefs.h <<_ACEOF
17384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17385_ACEOF
17386
17387fi
17388
17389done
17390
17391
17392case "${host}" in
17393 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17394 if test $ac_cv_header_langinfo_h = "yes" \
17395 -a \( "$wx_cv_gccversion" = "EMX2" \
17396 -o "$wx_cv_gccversion" = "EMX3" \
17397 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17398 LIBS="$LIBS -lintl"
17399 fi
17400 ;;
17401esac
17402
bc023abb
MW
17403if test "$USE_UNIX" = 1 ; then
17404
17405for ac_header in sys/select.h
17406do
17407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17408if eval "test \"\${$as_ac_Header+set}\" = set"; then
17409 echo "$as_me:$LINENO: checking for $ac_header" >&5
17410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17411if eval "test \"\${$as_ac_Header+set}\" = set"; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17413fi
17414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17416else
17417 # Is the header compilable?
17418echo "$as_me:$LINENO: checking $ac_header usability" >&5
17419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17420cat >conftest.$ac_ext <<_ACEOF
17421/* confdefs.h. */
17422_ACEOF
17423cat confdefs.h >>conftest.$ac_ext
17424cat >>conftest.$ac_ext <<_ACEOF
17425/* end confdefs.h. */
17426$ac_includes_default
17427#include <$ac_header>
17428_ACEOF
17429rm -f conftest.$ac_objext
17430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17431 (eval $ac_compile) 2>conftest.er1
17432 ac_status=$?
17433 grep -v '^ *+' conftest.er1 >conftest.err
17434 rm -f conftest.er1
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
17438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest.$ac_objext'
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 ac_header_compiler=yes
17451else
17452 echo "$as_me: failed program was:" >&5
17453sed 's/^/| /' conftest.$ac_ext >&5
17454
17455ac_header_compiler=no
17456fi
17457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17459echo "${ECHO_T}$ac_header_compiler" >&6
17460
17461# Is the header present?
17462echo "$as_me:$LINENO: checking $ac_header presence" >&5
17463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17464cat >conftest.$ac_ext <<_ACEOF
17465/* confdefs.h. */
17466_ACEOF
17467cat confdefs.h >>conftest.$ac_ext
17468cat >>conftest.$ac_ext <<_ACEOF
17469/* end confdefs.h. */
17470#include <$ac_header>
17471_ACEOF
17472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } >/dev/null; then
17480 if test -s conftest.err; then
17481 ac_cpp_err=$ac_cxx_preproc_warn_flag
17482 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17483 else
17484 ac_cpp_err=
17485 fi
17486else
17487 ac_cpp_err=yes
17488fi
17489if test -z "$ac_cpp_err"; then
17490 ac_header_preproc=yes
17491else
17492 echo "$as_me: failed program was:" >&5
17493sed 's/^/| /' conftest.$ac_ext >&5
17494
17495 ac_header_preproc=no
17496fi
17497rm -f conftest.err conftest.$ac_ext
17498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17499echo "${ECHO_T}$ac_header_preproc" >&6
17500
17501# So? What about this header?
17502case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17503 yes:no: )
17504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17508 ac_header_preproc=yes
17509 ;;
17510 no:yes:* )
17511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17523 (
17524 cat <<\_ASBOX
17525## ----------------------------------------- ##
17526## Report this to wx-dev@lists.wxwidgets.org ##
17527## ----------------------------------------- ##
17528_ASBOX
17529 ) |
17530 sed "s/^/$as_me: WARNING: /" >&2
17531 ;;
17532esac
17533echo "$as_me:$LINENO: checking for $ac_header" >&5
17534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17535if eval "test \"\${$as_ac_Header+set}\" = set"; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537else
17538 eval "$as_ac_Header=\$ac_header_preproc"
17539fi
17540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17542
17543fi
17544if test `eval echo '${'$as_ac_Header'}'` = yes; then
17545 cat >>confdefs.h <<_ACEOF
17546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17547_ACEOF
17548
17549fi
17550
17551done
17552
17553fi
17554
a848cd7e
SC
17555
17556echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17557echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17558if test "${ac_cv_c_const+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561 cat >conftest.$ac_ext <<_ACEOF
17562/* confdefs.h. */
17563_ACEOF
17564cat confdefs.h >>conftest.$ac_ext
17565cat >>conftest.$ac_ext <<_ACEOF
17566/* end confdefs.h. */
17567
17568int
17569main ()
17570{
17571/* FIXME: Include the comments suggested by Paul. */
17572#ifndef __cplusplus
17573 /* Ultrix mips cc rejects this. */
17574 typedef int charset[2];
17575 const charset x;
17576 /* SunOS 4.1.1 cc rejects this. */
17577 char const *const *ccp;
17578 char **p;
17579 /* NEC SVR4.0.2 mips cc rejects this. */
17580 struct point {int x, y;};
17581 static struct point const zero = {0,0};
17582 /* AIX XL C 1.02.0.0 rejects this.
17583 It does not let you subtract one const X* pointer from another in
17584 an arm of an if-expression whose if-part is not a constant
17585 expression */
17586 const char *g = "string";
17587 ccp = &g + (g ? g-g : 0);
17588 /* HPUX 7.0 cc rejects these. */
17589 ++ccp;
17590 p = (char**) ccp;
17591 ccp = (char const *const *) p;
17592 { /* SCO 3.2v4 cc rejects this. */
17593 char *t;
17594 char const *s = 0 ? (char *) 0 : (char const *) 0;
17595
17596 *t++ = 0;
17597 }
17598 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17599 int x[] = {25, 17};
17600 const int *foo = &x[0];
17601 ++foo;
17602 }
17603 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17604 typedef const int *iptr;
17605 iptr p = 0;
17606 ++p;
17607 }
17608 { /* AIX XL C 1.02.0.0 rejects this saying
17609 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17610 struct s { int j; const int *ap[3]; };
17611 struct s *b; b->j = 5;
17612 }
17613 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17614 const int foo = 10;
17615 }
17616#endif
17617
17618 ;
17619 return 0;
17620}
17621_ACEOF
17622rm -f conftest.$ac_objext
17623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17624 (eval $ac_compile) 2>conftest.er1
a848cd7e 17625 ac_status=$?
ac1cb8d3
VS
17626 grep -v '^ *+' conftest.er1 >conftest.err
17627 rm -f conftest.er1
17628 cat conftest.err >&5
a848cd7e
SC
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
c9a66001 17631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; } &&
17637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; }; then
17643 ac_cv_c_const=yes
17644else
17645 echo "$as_me: failed program was:" >&5
17646sed 's/^/| /' conftest.$ac_ext >&5
17647
17648ac_cv_c_const=no
17649fi
ac1cb8d3 17650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17651fi
17652echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17653echo "${ECHO_T}$ac_cv_c_const" >&6
17654if test $ac_cv_c_const = no; then
17655
17656cat >>confdefs.h <<\_ACEOF
17657#define const
17658_ACEOF
17659
17660fi
17661
17662echo "$as_me:$LINENO: checking for inline" >&5
17663echo $ECHO_N "checking for inline... $ECHO_C" >&6
17664if test "${ac_cv_c_inline+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666else
17667 ac_cv_c_inline=no
17668for ac_kw in inline __inline__ __inline; do
17669 cat >conftest.$ac_ext <<_ACEOF
17670/* confdefs.h. */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h. */
17675#ifndef __cplusplus
17676typedef int foo_t;
17677static $ac_kw foo_t static_foo () {return 0; }
17678$ac_kw foo_t foo () {return 0; }
17679#endif
17680
17681_ACEOF
17682rm -f conftest.$ac_objext
17683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17684 (eval $ac_compile) 2>conftest.er1
a848cd7e 17685 ac_status=$?
ac1cb8d3
VS
17686 grep -v '^ *+' conftest.er1 >conftest.err
17687 rm -f conftest.er1
17688 cat conftest.err >&5
a848cd7e
SC
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } &&
c9a66001 17691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; } &&
17697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; }; then
17703 ac_cv_c_inline=$ac_kw; break
17704else
17705 echo "$as_me: failed program was:" >&5
17706sed 's/^/| /' conftest.$ac_ext >&5
17707
17708fi
ac1cb8d3 17709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17710done
17711
17712fi
17713echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17714echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17715
17716
a848cd7e
SC
17717case $ac_cv_c_inline in
17718 inline | yes) ;;
ac1cb8d3
VS
17719 *)
17720 case $ac_cv_c_inline in
17721 no) ac_val=;;
17722 *) ac_val=$ac_cv_c_inline;;
17723 esac
17724 cat >>confdefs.h <<_ACEOF
17725#ifndef __cplusplus
17726#define inline $ac_val
17727#endif
de59c161 17728_ACEOF
ac1cb8d3 17729 ;;
a848cd7e
SC
17730esac
17731
17732
17733echo "$as_me:$LINENO: checking for char" >&5
17734echo $ECHO_N "checking for char... $ECHO_C" >&6
17735if test "${ac_cv_type_char+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737else
17738 cat >conftest.$ac_ext <<_ACEOF
17739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
17743/* end confdefs.h. */
17744$ac_includes_default
17745int
17746main ()
17747{
17748if ((char *) 0)
17749 return 0;
17750if (sizeof (char))
17751 return 0;
17752 ;
17753 return 0;
17754}
17755_ACEOF
17756rm -f conftest.$ac_objext
17757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17758 (eval $ac_compile) 2>conftest.er1
a848cd7e 17759 ac_status=$?
ac1cb8d3
VS
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
a848cd7e
SC
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
c9a66001 17765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; } &&
17771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_cv_type_char=yes
17778else
17779 echo "$as_me: failed program was:" >&5
17780sed 's/^/| /' conftest.$ac_ext >&5
17781
17782ac_cv_type_char=no
17783fi
ac1cb8d3 17784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17785fi
17786echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17787echo "${ECHO_T}$ac_cv_type_char" >&6
17788
17789echo "$as_me:$LINENO: checking size of char" >&5
17790echo $ECHO_N "checking size of char... $ECHO_C" >&6
17791if test "${ac_cv_sizeof_char+set}" = set; then
17792 echo $ECHO_N "(cached) $ECHO_C" >&6
17793else
17794 if test "$ac_cv_type_char" = yes; then
17795 # The cast to unsigned long works around a bug in the HP C Compiler
17796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17798 # This bug is HP SR number 8606223364.
17799 if test "$cross_compiling" = yes; then
17800 # Depending upon the size, compute the lo and hi bounds.
17801cat >conftest.$ac_ext <<_ACEOF
17802/* confdefs.h. */
17803_ACEOF
17804cat confdefs.h >>conftest.$ac_ext
17805cat >>conftest.$ac_ext <<_ACEOF
17806/* end confdefs.h. */
17807$ac_includes_default
17808int
17809main ()
17810{
17811static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17812test_array [0] = 0
17813
17814 ;
17815 return 0;
17816}
17817_ACEOF
17818rm -f conftest.$ac_objext
17819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17820 (eval $ac_compile) 2>conftest.er1
a848cd7e 17821 ac_status=$?
ac1cb8d3
VS
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
a848cd7e
SC
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } &&
c9a66001 17827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 ac_lo=0 ac_mid=0
17840 while :; do
17841 cat >conftest.$ac_ext <<_ACEOF
17842/* confdefs.h. */
17843_ACEOF
17844cat confdefs.h >>conftest.$ac_ext
17845cat >>conftest.$ac_ext <<_ACEOF
17846/* end confdefs.h. */
17847$ac_includes_default
17848int
17849main ()
17850{
17851static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17852test_array [0] = 0
17853
17854 ;
17855 return 0;
17856}
17857_ACEOF
17858rm -f conftest.$ac_objext
17859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17860 (eval $ac_compile) 2>conftest.er1
a848cd7e 17861 ac_status=$?
ac1cb8d3
VS
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
a848cd7e
SC
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } &&
c9a66001 17867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; } &&
17873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 ac_hi=$ac_mid; break
17880else
17881 echo "$as_me: failed program was:" >&5
17882sed 's/^/| /' conftest.$ac_ext >&5
17883
17884ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17885 if test $ac_lo -le $ac_mid; then
17886 ac_lo= ac_hi=
17887 break
17888 fi
17889 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17890fi
ac1cb8d3 17891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17892 done
17893else
17894 echo "$as_me: failed program was:" >&5
17895sed 's/^/| /' conftest.$ac_ext >&5
17896
17897cat >conftest.$ac_ext <<_ACEOF
17898/* confdefs.h. */
17899_ACEOF
17900cat confdefs.h >>conftest.$ac_ext
17901cat >>conftest.$ac_ext <<_ACEOF
17902/* end confdefs.h. */
17903$ac_includes_default
17904int
17905main ()
17906{
17907static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17908test_array [0] = 0
17909
17910 ;
17911 return 0;
17912}
17913_ACEOF
17914rm -f conftest.$ac_objext
17915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17916 (eval $ac_compile) 2>conftest.er1
a848cd7e 17917 ac_status=$?
ac1cb8d3
VS
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
a848cd7e
SC
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
c9a66001 17923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; } &&
17929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 ac_hi=-1 ac_mid=-1
17936 while :; do
17937 cat >conftest.$ac_ext <<_ACEOF
17938/* confdefs.h. */
17939_ACEOF
17940cat confdefs.h >>conftest.$ac_ext
17941cat >>conftest.$ac_ext <<_ACEOF
17942/* end confdefs.h. */
17943$ac_includes_default
17944int
17945main ()
17946{
17947static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17948test_array [0] = 0
17949
17950 ;
17951 return 0;
17952}
17953_ACEOF
17954rm -f conftest.$ac_objext
17955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17956 (eval $ac_compile) 2>conftest.er1
a848cd7e 17957 ac_status=$?
ac1cb8d3
VS
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
a848cd7e
SC
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
c9a66001 17963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 ac_lo=$ac_mid; break
17976else
17977 echo "$as_me: failed program was:" >&5
17978sed 's/^/| /' conftest.$ac_ext >&5
17979
17980ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17981 if test $ac_mid -le $ac_hi; then
17982 ac_lo= ac_hi=
17983 break
17984 fi
17985 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17986fi
ac1cb8d3 17987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17988 done
17989else
17990 echo "$as_me: failed program was:" >&5
17991sed 's/^/| /' conftest.$ac_ext >&5
17992
17993ac_lo= ac_hi=
17994fi
ac1cb8d3 17995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17996fi
ac1cb8d3 17997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17998# Binary search between lo and hi bounds.
17999while test "x$ac_lo" != "x$ac_hi"; do
18000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18001 cat >conftest.$ac_ext <<_ACEOF
18002/* confdefs.h. */
18003_ACEOF
18004cat confdefs.h >>conftest.$ac_ext
18005cat >>conftest.$ac_ext <<_ACEOF
18006/* end confdefs.h. */
18007$ac_includes_default
18008int
18009main ()
18010{
18011static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18012test_array [0] = 0
18013
18014 ;
18015 return 0;
18016}
18017_ACEOF
18018rm -f conftest.$ac_objext
18019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18020 (eval $ac_compile) 2>conftest.er1
a848cd7e 18021 ac_status=$?
ac1cb8d3
VS
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
a848cd7e
SC
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
c9a66001 18027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ac_hi=$ac_mid
18040else
18041 echo "$as_me: failed program was:" >&5
18042sed 's/^/| /' conftest.$ac_ext >&5
18043
18044ac_lo=`expr '(' $ac_mid ')' + 1`
18045fi
ac1cb8d3 18046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18047done
18048case $ac_lo in
18049?*) ac_cv_sizeof_char=$ac_lo;;
18050'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18051See \`config.log' for more details." >&5
18052echo "$as_me: error: cannot compute sizeof (char), 77
18053See \`config.log' for more details." >&2;}
18054 { (exit 1); exit 1; }; } ;;
18055esac
18056else
18057 if test "$cross_compiling" = yes; then
c9a66001
VZ
18058 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18059echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18060 { (exit 1); exit 1; }; }
18061else
18062 cat >conftest.$ac_ext <<_ACEOF
18063/* confdefs.h. */
18064_ACEOF
18065cat confdefs.h >>conftest.$ac_ext
18066cat >>conftest.$ac_ext <<_ACEOF
18067/* end confdefs.h. */
18068$ac_includes_default
18069long longval () { return (long) (sizeof (char)); }
18070unsigned long ulongval () { return (long) (sizeof (char)); }
18071#include <stdio.h>
18072#include <stdlib.h>
18073int
18074main ()
18075{
18076
18077 FILE *f = fopen ("conftest.val", "w");
18078 if (! f)
18079 exit (1);
18080 if (((long) (sizeof (char))) < 0)
18081 {
18082 long i = longval ();
18083 if (i != ((long) (sizeof (char))))
18084 exit (1);
18085 fprintf (f, "%ld\n", i);
18086 }
18087 else
18088 {
18089 unsigned long i = ulongval ();
18090 if (i != ((long) (sizeof (char))))
18091 exit (1);
18092 fprintf (f, "%lu\n", i);
18093 }
18094 exit (ferror (f) || fclose (f) != 0);
18095
18096 ;
18097 return 0;
18098}
18099_ACEOF
18100rm -f conftest$ac_exeext
18101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102 (eval $ac_link) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; }; then
18111 ac_cv_sizeof_char=`cat conftest.val`
18112else
18113 echo "$as_me: program exited with status $ac_status" >&5
18114echo "$as_me: failed program was:" >&5
18115sed 's/^/| /' conftest.$ac_ext >&5
18116
18117( exit $ac_status )
18118{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18119See \`config.log' for more details." >&5
18120echo "$as_me: error: cannot compute sizeof (char), 77
18121See \`config.log' for more details." >&2;}
18122 { (exit 1); exit 1; }; }
18123fi
ac1cb8d3 18124rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18125fi
18126fi
18127rm -f conftest.val
18128else
18129 ac_cv_sizeof_char=0
18130fi
18131fi
18132echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18133echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18134cat >>confdefs.h <<_ACEOF
18135#define SIZEOF_CHAR $ac_cv_sizeof_char
18136_ACEOF
18137
18138
18139echo "$as_me:$LINENO: checking for short" >&5
18140echo $ECHO_N "checking for short... $ECHO_C" >&6
18141if test "${ac_cv_type_short+set}" = set; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18143else
18144 cat >conftest.$ac_ext <<_ACEOF
18145/* confdefs.h. */
18146_ACEOF
18147cat confdefs.h >>conftest.$ac_ext
18148cat >>conftest.$ac_ext <<_ACEOF
18149/* end confdefs.h. */
18150$ac_includes_default
18151int
18152main ()
18153{
18154if ((short *) 0)
18155 return 0;
18156if (sizeof (short))
18157 return 0;
18158 ;
18159 return 0;
18160}
18161_ACEOF
18162rm -f conftest.$ac_objext
18163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18164 (eval $ac_compile) 2>conftest.er1
a848cd7e 18165 ac_status=$?
ac1cb8d3
VS
18166 grep -v '^ *+' conftest.er1 >conftest.err
18167 rm -f conftest.er1
18168 cat conftest.err >&5
a848cd7e
SC
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
c9a66001 18171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
18183 ac_cv_type_short=yes
18184else
18185 echo "$as_me: failed program was:" >&5
18186sed 's/^/| /' conftest.$ac_ext >&5
18187
18188ac_cv_type_short=no
18189fi
ac1cb8d3 18190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18191fi
18192echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18193echo "${ECHO_T}$ac_cv_type_short" >&6
18194
18195echo "$as_me:$LINENO: checking size of short" >&5
18196echo $ECHO_N "checking size of short... $ECHO_C" >&6
18197if test "${ac_cv_sizeof_short+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18199else
18200 if test "$ac_cv_type_short" = yes; then
18201 # The cast to unsigned long works around a bug in the HP C Compiler
18202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18204 # This bug is HP SR number 8606223364.
18205 if test "$cross_compiling" = yes; then
18206 # Depending upon the size, compute the lo and hi bounds.
18207cat >conftest.$ac_ext <<_ACEOF
18208/* confdefs.h. */
18209_ACEOF
18210cat confdefs.h >>conftest.$ac_ext
18211cat >>conftest.$ac_ext <<_ACEOF
18212/* end confdefs.h. */
18213$ac_includes_default
18214int
18215main ()
18216{
18217static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18218test_array [0] = 0
18219
18220 ;
18221 return 0;
18222}
18223_ACEOF
18224rm -f conftest.$ac_objext
18225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18226 (eval $ac_compile) 2>conftest.er1
a848cd7e 18227 ac_status=$?
ac1cb8d3
VS
18228 grep -v '^ *+' conftest.er1 >conftest.err
18229 rm -f conftest.er1
18230 cat conftest.err >&5
a848cd7e
SC
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } &&
c9a66001 18233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 ac_lo=0 ac_mid=0
18246 while :; do
18247 cat >conftest.$ac_ext <<_ACEOF
18248/* confdefs.h. */
18249_ACEOF
18250cat confdefs.h >>conftest.$ac_ext
18251cat >>conftest.$ac_ext <<_ACEOF
18252/* end confdefs.h. */
18253$ac_includes_default
18254int
18255main ()
18256{
18257static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18258test_array [0] = 0
18259
18260 ;
18261 return 0;
18262}
18263_ACEOF
18264rm -f conftest.$ac_objext
18265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18266 (eval $ac_compile) 2>conftest.er1
a848cd7e 18267 ac_status=$?
ac1cb8d3
VS
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
a848cd7e
SC
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
c9a66001 18273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; } &&
18279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; }; then
18285 ac_hi=$ac_mid; break
18286else
18287 echo "$as_me: failed program was:" >&5
18288sed 's/^/| /' conftest.$ac_ext >&5
18289
18290ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18291 if test $ac_lo -le $ac_mid; then
18292 ac_lo= ac_hi=
18293 break
18294 fi
18295 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18296fi
ac1cb8d3 18297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18298 done
18299else
18300 echo "$as_me: failed program was:" >&5
18301sed 's/^/| /' conftest.$ac_ext >&5
18302
18303cat >conftest.$ac_ext <<_ACEOF
18304/* confdefs.h. */
18305_ACEOF
18306cat confdefs.h >>conftest.$ac_ext
18307cat >>conftest.$ac_ext <<_ACEOF
18308/* end confdefs.h. */
18309$ac_includes_default
18310int
18311main ()
18312{
18313static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18314test_array [0] = 0
18315
18316 ;
18317 return 0;
18318}
18319_ACEOF
18320rm -f conftest.$ac_objext
18321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18322 (eval $ac_compile) 2>conftest.er1
a848cd7e 18323 ac_status=$?
ac1cb8d3
VS
18324 grep -v '^ *+' conftest.er1 >conftest.err
18325 rm -f conftest.er1
18326 cat conftest.err >&5
a848cd7e
SC
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } &&
c9a66001 18329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 ac_hi=-1 ac_mid=-1
18342 while :; do
18343 cat >conftest.$ac_ext <<_ACEOF
18344/* confdefs.h. */
18345_ACEOF
18346cat confdefs.h >>conftest.$ac_ext
18347cat >>conftest.$ac_ext <<_ACEOF
18348/* end confdefs.h. */
18349$ac_includes_default
18350int
18351main ()
18352{
18353static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18354test_array [0] = 0
18355
18356 ;
18357 return 0;
18358}
18359_ACEOF
18360rm -f conftest.$ac_objext
18361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18362 (eval $ac_compile) 2>conftest.er1
a848cd7e 18363 ac_status=$?
ac1cb8d3
VS
18364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
a848cd7e
SC
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
c9a66001 18369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } &&
18375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
18381 ac_lo=$ac_mid; break
18382else
18383 echo "$as_me: failed program was:" >&5
18384sed 's/^/| /' conftest.$ac_ext >&5
18385
18386ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18387 if test $ac_mid -le $ac_hi; then
18388 ac_lo= ac_hi=
18389 break
18390 fi
18391 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18392fi
ac1cb8d3 18393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18394 done
18395else
18396 echo "$as_me: failed program was:" >&5
18397sed 's/^/| /' conftest.$ac_ext >&5
18398
18399ac_lo= ac_hi=
18400fi
ac1cb8d3 18401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18402fi
ac1cb8d3 18403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18404# Binary search between lo and hi bounds.
18405while test "x$ac_lo" != "x$ac_hi"; do
18406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18407 cat >conftest.$ac_ext <<_ACEOF
18408/* confdefs.h. */
18409_ACEOF
18410cat confdefs.h >>conftest.$ac_ext
18411cat >>conftest.$ac_ext <<_ACEOF
18412/* end confdefs.h. */
18413$ac_includes_default
18414int
18415main ()
18416{
18417static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18418test_array [0] = 0
18419
18420 ;
18421 return 0;
18422}
18423_ACEOF
18424rm -f conftest.$ac_objext
18425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18426 (eval $ac_compile) 2>conftest.er1
a848cd7e 18427 ac_status=$?
ac1cb8d3
VS
18428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
a848cd7e
SC
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
c9a66001 18433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_hi=$ac_mid
18446else
18447 echo "$as_me: failed program was:" >&5
18448sed 's/^/| /' conftest.$ac_ext >&5
18449
18450ac_lo=`expr '(' $ac_mid ')' + 1`
18451fi
ac1cb8d3 18452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18453done
18454case $ac_lo in
18455?*) ac_cv_sizeof_short=$ac_lo;;
18456'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18457See \`config.log' for more details." >&5
18458echo "$as_me: error: cannot compute sizeof (short), 77
18459See \`config.log' for more details." >&2;}
18460 { (exit 1); exit 1; }; } ;;
18461esac
18462else
18463 if test "$cross_compiling" = yes; then
c9a66001
VZ
18464 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18465echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18466 { (exit 1); exit 1; }; }
18467else
18468 cat >conftest.$ac_ext <<_ACEOF
18469/* confdefs.h. */
18470_ACEOF
18471cat confdefs.h >>conftest.$ac_ext
18472cat >>conftest.$ac_ext <<_ACEOF
18473/* end confdefs.h. */
18474$ac_includes_default
18475long longval () { return (long) (sizeof (short)); }
18476unsigned long ulongval () { return (long) (sizeof (short)); }
18477#include <stdio.h>
18478#include <stdlib.h>
18479int
18480main ()
18481{
18482
18483 FILE *f = fopen ("conftest.val", "w");
18484 if (! f)
18485 exit (1);
18486 if (((long) (sizeof (short))) < 0)
18487 {
18488 long i = longval ();
18489 if (i != ((long) (sizeof (short))))
18490 exit (1);
18491 fprintf (f, "%ld\n", i);
18492 }
18493 else
18494 {
18495 unsigned long i = ulongval ();
18496 if (i != ((long) (sizeof (short))))
18497 exit (1);
18498 fprintf (f, "%lu\n", i);
18499 }
18500 exit (ferror (f) || fclose (f) != 0);
18501
18502 ;
18503 return 0;
18504}
18505_ACEOF
18506rm -f conftest$ac_exeext
18507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508 (eval $ac_link) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 ac_cv_sizeof_short=`cat conftest.val`
18518else
18519 echo "$as_me: program exited with status $ac_status" >&5
18520echo "$as_me: failed program was:" >&5
18521sed 's/^/| /' conftest.$ac_ext >&5
18522
18523( exit $ac_status )
18524{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18525See \`config.log' for more details." >&5
18526echo "$as_me: error: cannot compute sizeof (short), 77
18527See \`config.log' for more details." >&2;}
18528 { (exit 1); exit 1; }; }
18529fi
ac1cb8d3 18530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18531fi
18532fi
18533rm -f conftest.val
18534else
18535 ac_cv_sizeof_short=0
18536fi
18537fi
18538echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18539echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18540cat >>confdefs.h <<_ACEOF
18541#define SIZEOF_SHORT $ac_cv_sizeof_short
18542_ACEOF
18543
18544
18545echo "$as_me:$LINENO: checking for void *" >&5
18546echo $ECHO_N "checking for void *... $ECHO_C" >&6
18547if test "${ac_cv_type_void_p+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18549else
18550 cat >conftest.$ac_ext <<_ACEOF
18551/* confdefs.h. */
18552_ACEOF
18553cat confdefs.h >>conftest.$ac_ext
18554cat >>conftest.$ac_ext <<_ACEOF
18555/* end confdefs.h. */
18556$ac_includes_default
18557int
18558main ()
18559{
18560if ((void * *) 0)
18561 return 0;
18562if (sizeof (void *))
18563 return 0;
18564 ;
18565 return 0;
18566}
18567_ACEOF
18568rm -f conftest.$ac_objext
18569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18570 (eval $ac_compile) 2>conftest.er1
a848cd7e 18571 ac_status=$?
ac1cb8d3
VS
18572 grep -v '^ *+' conftest.er1 >conftest.err
18573 rm -f conftest.er1
18574 cat conftest.err >&5
a848cd7e
SC
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
c9a66001 18577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; } &&
18583 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 ac_cv_type_void_p=yes
18590else
18591 echo "$as_me: failed program was:" >&5
18592sed 's/^/| /' conftest.$ac_ext >&5
18593
18594ac_cv_type_void_p=no
18595fi
ac1cb8d3 18596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18597fi
18598echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18599echo "${ECHO_T}$ac_cv_type_void_p" >&6
18600
18601echo "$as_me:$LINENO: checking size of void *" >&5
18602echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18603if test "${ac_cv_sizeof_void_p+set}" = set; then
18604 echo $ECHO_N "(cached) $ECHO_C" >&6
18605else
18606 if test "$ac_cv_type_void_p" = yes; then
18607 # The cast to unsigned long works around a bug in the HP C Compiler
18608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18610 # This bug is HP SR number 8606223364.
18611 if test "$cross_compiling" = yes; then
18612 # Depending upon the size, compute the lo and hi bounds.
18613cat >conftest.$ac_ext <<_ACEOF
18614/* confdefs.h. */
18615_ACEOF
18616cat confdefs.h >>conftest.$ac_ext
18617cat >>conftest.$ac_ext <<_ACEOF
18618/* end confdefs.h. */
18619$ac_includes_default
18620int
18621main ()
18622{
18623static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18624test_array [0] = 0
18625
18626 ;
18627 return 0;
18628}
18629_ACEOF
18630rm -f conftest.$ac_objext
18631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18632 (eval $ac_compile) 2>conftest.er1
a848cd7e 18633 ac_status=$?
ac1cb8d3
VS
18634 grep -v '^ *+' conftest.er1 >conftest.err
18635 rm -f conftest.er1
18636 cat conftest.err >&5
a848cd7e
SC
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
c9a66001 18639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; } &&
18645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_lo=0 ac_mid=0
18652 while :; do
18653 cat >conftest.$ac_ext <<_ACEOF
18654/* confdefs.h. */
18655_ACEOF
18656cat confdefs.h >>conftest.$ac_ext
18657cat >>conftest.$ac_ext <<_ACEOF
18658/* end confdefs.h. */
18659$ac_includes_default
18660int
18661main ()
18662{
18663static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18664test_array [0] = 0
18665
18666 ;
18667 return 0;
18668}
18669_ACEOF
18670rm -f conftest.$ac_objext
18671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18672 (eval $ac_compile) 2>conftest.er1
a848cd7e 18673 ac_status=$?
ac1cb8d3
VS
18674 grep -v '^ *+' conftest.er1 >conftest.err
18675 rm -f conftest.er1
18676 cat conftest.err >&5
a848cd7e
SC
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } &&
c9a66001 18679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
18685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
18691 ac_hi=$ac_mid; break
18692else
18693 echo "$as_me: failed program was:" >&5
18694sed 's/^/| /' conftest.$ac_ext >&5
18695
18696ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18697 if test $ac_lo -le $ac_mid; then
18698 ac_lo= ac_hi=
18699 break
18700 fi
18701 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18702fi
ac1cb8d3 18703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18704 done
18705else
18706 echo "$as_me: failed program was:" >&5
18707sed 's/^/| /' conftest.$ac_ext >&5
18708
18709cat >conftest.$ac_ext <<_ACEOF
18710/* confdefs.h. */
18711_ACEOF
18712cat confdefs.h >>conftest.$ac_ext
18713cat >>conftest.$ac_ext <<_ACEOF
18714/* end confdefs.h. */
18715$ac_includes_default
18716int
18717main ()
18718{
18719static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18720test_array [0] = 0
18721
18722 ;
18723 return 0;
18724}
18725_ACEOF
18726rm -f conftest.$ac_objext
18727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18728 (eval $ac_compile) 2>conftest.er1
a848cd7e 18729 ac_status=$?
ac1cb8d3
VS
18730 grep -v '^ *+' conftest.er1 >conftest.err
18731 rm -f conftest.er1
18732 cat conftest.err >&5
a848cd7e
SC
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } &&
c9a66001 18735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18738 ac_status=$?
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; } &&
18741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18747 ac_hi=-1 ac_mid=-1
18748 while :; do
18749 cat >conftest.$ac_ext <<_ACEOF
18750/* confdefs.h. */
18751_ACEOF
18752cat confdefs.h >>conftest.$ac_ext
18753cat >>conftest.$ac_ext <<_ACEOF
18754/* end confdefs.h. */
18755$ac_includes_default
18756int
18757main ()
18758{
18759static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18760test_array [0] = 0
18761
18762 ;
18763 return 0;
18764}
18765_ACEOF
18766rm -f conftest.$ac_objext
18767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18768 (eval $ac_compile) 2>conftest.er1
a848cd7e 18769 ac_status=$?
ac1cb8d3
VS
18770 grep -v '^ *+' conftest.er1 >conftest.err
18771 rm -f conftest.er1
18772 cat conftest.err >&5
a848cd7e
SC
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
c9a66001 18775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18778 ac_status=$?
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; } &&
18781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 ac_lo=$ac_mid; break
18788else
18789 echo "$as_me: failed program was:" >&5
18790sed 's/^/| /' conftest.$ac_ext >&5
18791
18792ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18793 if test $ac_mid -le $ac_hi; then
18794 ac_lo= ac_hi=
18795 break
18796 fi
18797 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18798fi
ac1cb8d3 18799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18800 done
18801else
18802 echo "$as_me: failed program was:" >&5
18803sed 's/^/| /' conftest.$ac_ext >&5
18804
18805ac_lo= ac_hi=
18806fi
ac1cb8d3 18807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18808fi
ac1cb8d3 18809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18810# Binary search between lo and hi bounds.
18811while test "x$ac_lo" != "x$ac_hi"; do
18812 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18813 cat >conftest.$ac_ext <<_ACEOF
18814/* confdefs.h. */
18815_ACEOF
18816cat confdefs.h >>conftest.$ac_ext
18817cat >>conftest.$ac_ext <<_ACEOF
18818/* end confdefs.h. */
18819$ac_includes_default
18820int
18821main ()
18822{
18823static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18824test_array [0] = 0
18825
18826 ;
18827 return 0;
18828}
18829_ACEOF
18830rm -f conftest.$ac_objext
18831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18832 (eval $ac_compile) 2>conftest.er1
a848cd7e 18833 ac_status=$?
ac1cb8d3
VS
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
a848cd7e
SC
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
c9a66001 18839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_hi=$ac_mid
18852else
18853 echo "$as_me: failed program was:" >&5
18854sed 's/^/| /' conftest.$ac_ext >&5
18855
18856ac_lo=`expr '(' $ac_mid ')' + 1`
18857fi
ac1cb8d3 18858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18859done
18860case $ac_lo in
18861?*) ac_cv_sizeof_void_p=$ac_lo;;
18862'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18863See \`config.log' for more details." >&5
18864echo "$as_me: error: cannot compute sizeof (void *), 77
18865See \`config.log' for more details." >&2;}
18866 { (exit 1); exit 1; }; } ;;
18867esac
18868else
18869 if test "$cross_compiling" = yes; then
c9a66001
VZ
18870 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18871echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18872 { (exit 1); exit 1; }; }
18873else
18874 cat >conftest.$ac_ext <<_ACEOF
18875/* confdefs.h. */
18876_ACEOF
18877cat confdefs.h >>conftest.$ac_ext
18878cat >>conftest.$ac_ext <<_ACEOF
18879/* end confdefs.h. */
18880$ac_includes_default
18881long longval () { return (long) (sizeof (void *)); }
18882unsigned long ulongval () { return (long) (sizeof (void *)); }
18883#include <stdio.h>
18884#include <stdlib.h>
18885int
18886main ()
18887{
18888
18889 FILE *f = fopen ("conftest.val", "w");
18890 if (! f)
18891 exit (1);
18892 if (((long) (sizeof (void *))) < 0)
18893 {
18894 long i = longval ();
18895 if (i != ((long) (sizeof (void *))))
18896 exit (1);
18897 fprintf (f, "%ld\n", i);
18898 }
18899 else
18900 {
18901 unsigned long i = ulongval ();
18902 if (i != ((long) (sizeof (void *))))
18903 exit (1);
18904 fprintf (f, "%lu\n", i);
18905 }
18906 exit (ferror (f) || fclose (f) != 0);
18907
18908 ;
18909 return 0;
18910}
18911_ACEOF
18912rm -f conftest$ac_exeext
18913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18914 (eval $ac_link) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 ac_cv_sizeof_void_p=`cat conftest.val`
18924else
18925 echo "$as_me: program exited with status $ac_status" >&5
18926echo "$as_me: failed program was:" >&5
18927sed 's/^/| /' conftest.$ac_ext >&5
18928
18929( exit $ac_status )
18930{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18931See \`config.log' for more details." >&5
18932echo "$as_me: error: cannot compute sizeof (void *), 77
18933See \`config.log' for more details." >&2;}
18934 { (exit 1); exit 1; }; }
18935fi
ac1cb8d3 18936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18937fi
18938fi
18939rm -f conftest.val
18940else
18941 ac_cv_sizeof_void_p=0
18942fi
18943fi
18944echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18945echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18946cat >>confdefs.h <<_ACEOF
18947#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18948_ACEOF
18949
18950
18951echo "$as_me:$LINENO: checking for int" >&5
18952echo $ECHO_N "checking for int... $ECHO_C" >&6
18953if test "${ac_cv_type_int+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18955else
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962$ac_includes_default
18963int
18964main ()
18965{
18966if ((int *) 0)
18967 return 0;
18968if (sizeof (int))
18969 return 0;
18970 ;
18971 return 0;
18972}
18973_ACEOF
18974rm -f conftest.$ac_objext
18975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18976 (eval $ac_compile) 2>conftest.er1
a848cd7e 18977 ac_status=$?
ac1cb8d3
VS
18978 grep -v '^ *+' conftest.er1 >conftest.err
18979 rm -f conftest.er1
18980 cat conftest.err >&5
a848cd7e
SC
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } &&
c9a66001 18983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; } &&
18989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18995 ac_cv_type_int=yes
18996else
18997 echo "$as_me: failed program was:" >&5
18998sed 's/^/| /' conftest.$ac_ext >&5
18999
19000ac_cv_type_int=no
19001fi
ac1cb8d3 19002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19003fi
19004echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19005echo "${ECHO_T}$ac_cv_type_int" >&6
19006
19007echo "$as_me:$LINENO: checking size of int" >&5
19008echo $ECHO_N "checking size of int... $ECHO_C" >&6
19009if test "${ac_cv_sizeof_int+set}" = set; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19011else
19012 if test "$ac_cv_type_int" = yes; then
19013 # The cast to unsigned long works around a bug in the HP C Compiler
19014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19016 # This bug is HP SR number 8606223364.
19017 if test "$cross_compiling" = yes; then
19018 # Depending upon the size, compute the lo and hi bounds.
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 (int))) >= 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); } &&
c9a66001 19045 { ac_try='test -z "$ac_cxx_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_lo=0 ac_mid=0
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 (int))) <= $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); } &&
c9a66001 19085 { ac_try='test -z "$ac_cxx_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_hi=$ac_mid; break
19098else
19099 echo "$as_me: failed program was:" >&5
19100sed 's/^/| /' conftest.$ac_ext >&5
19101
19102ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19103 if test $ac_lo -le $ac_mid; then
19104 ac_lo= ac_hi=
19105 break
19106 fi
19107 ac_mid=`expr 2 '*' $ac_mid + 1`
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
19115cat >conftest.$ac_ext <<_ACEOF
19116/* confdefs.h. */
19117_ACEOF
19118cat confdefs.h >>conftest.$ac_ext
19119cat >>conftest.$ac_ext <<_ACEOF
19120/* end confdefs.h. */
19121$ac_includes_default
19122int
19123main ()
19124{
19125static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19126test_array [0] = 0
19127
19128 ;
19129 return 0;
19130}
19131_ACEOF
19132rm -f conftest.$ac_objext
19133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19134 (eval $ac_compile) 2>conftest.er1
a848cd7e 19135 ac_status=$?
ac1cb8d3
VS
19136 grep -v '^ *+' conftest.er1 >conftest.err
19137 rm -f conftest.er1
19138 cat conftest.err >&5
a848cd7e
SC
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
c9a66001 19141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_hi=-1 ac_mid=-1
19154 while :; do
19155 cat >conftest.$ac_ext <<_ACEOF
19156/* confdefs.h. */
19157_ACEOF
19158cat confdefs.h >>conftest.$ac_ext
19159cat >>conftest.$ac_ext <<_ACEOF
19160/* end confdefs.h. */
19161$ac_includes_default
19162int
19163main ()
19164{
19165static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19166test_array [0] = 0
19167
19168 ;
19169 return 0;
19170}
19171_ACEOF
19172rm -f conftest.$ac_objext
19173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19174 (eval $ac_compile) 2>conftest.er1
a848cd7e 19175 ac_status=$?
ac1cb8d3
VS
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
a848cd7e
SC
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
c9a66001 19181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19193 ac_lo=$ac_mid; break
19194else
19195 echo "$as_me: failed program was:" >&5
19196sed 's/^/| /' conftest.$ac_ext >&5
19197
19198ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19199 if test $ac_mid -le $ac_hi; then
19200 ac_lo= ac_hi=
19201 break
19202 fi
19203 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19204fi
ac1cb8d3 19205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19206 done
19207else
19208 echo "$as_me: failed program was:" >&5
19209sed 's/^/| /' conftest.$ac_ext >&5
19210
19211ac_lo= ac_hi=
19212fi
ac1cb8d3 19213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19214fi
ac1cb8d3 19215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19216# Binary search between lo and hi bounds.
19217while test "x$ac_lo" != "x$ac_hi"; do
19218 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19219 cat >conftest.$ac_ext <<_ACEOF
19220/* confdefs.h. */
19221_ACEOF
19222cat confdefs.h >>conftest.$ac_ext
19223cat >>conftest.$ac_ext <<_ACEOF
19224/* end confdefs.h. */
19225$ac_includes_default
19226int
19227main ()
19228{
19229static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19230test_array [0] = 0
19231
19232 ;
19233 return 0;
19234}
19235_ACEOF
19236rm -f conftest.$ac_objext
19237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19238 (eval $ac_compile) 2>conftest.er1
a848cd7e 19239 ac_status=$?
ac1cb8d3
VS
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
a848cd7e
SC
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
c9a66001 19245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_hi=$ac_mid
19258else
19259 echo "$as_me: failed program was:" >&5
19260sed 's/^/| /' conftest.$ac_ext >&5
19261
19262ac_lo=`expr '(' $ac_mid ')' + 1`
19263fi
ac1cb8d3 19264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19265done
19266case $ac_lo in
19267?*) ac_cv_sizeof_int=$ac_lo;;
19268'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19269See \`config.log' for more details." >&5
19270echo "$as_me: error: cannot compute sizeof (int), 77
19271See \`config.log' for more details." >&2;}
19272 { (exit 1); exit 1; }; } ;;
19273esac
19274else
19275 if test "$cross_compiling" = yes; then
c9a66001
VZ
19276 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19277echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19278 { (exit 1); exit 1; }; }
19279else
19280 cat >conftest.$ac_ext <<_ACEOF
19281/* confdefs.h. */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h. */
19286$ac_includes_default
19287long longval () { return (long) (sizeof (int)); }
19288unsigned long ulongval () { return (long) (sizeof (int)); }
19289#include <stdio.h>
19290#include <stdlib.h>
19291int
19292main ()
19293{
19294
19295 FILE *f = fopen ("conftest.val", "w");
19296 if (! f)
19297 exit (1);
19298 if (((long) (sizeof (int))) < 0)
19299 {
19300 long i = longval ();
19301 if (i != ((long) (sizeof (int))))
19302 exit (1);
19303 fprintf (f, "%ld\n", i);
19304 }
19305 else
19306 {
19307 unsigned long i = ulongval ();
19308 if (i != ((long) (sizeof (int))))
19309 exit (1);
19310 fprintf (f, "%lu\n", i);
19311 }
19312 exit (ferror (f) || fclose (f) != 0);
19313
19314 ;
19315 return 0;
19316}
19317_ACEOF
19318rm -f conftest$ac_exeext
19319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19320 (eval $ac_link) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_cv_sizeof_int=`cat conftest.val`
19330else
19331 echo "$as_me: program exited with status $ac_status" >&5
19332echo "$as_me: failed program was:" >&5
19333sed 's/^/| /' conftest.$ac_ext >&5
19334
19335( exit $ac_status )
19336{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19337See \`config.log' for more details." >&5
19338echo "$as_me: error: cannot compute sizeof (int), 77
19339See \`config.log' for more details." >&2;}
19340 { (exit 1); exit 1; }; }
19341fi
ac1cb8d3 19342rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19343fi
19344fi
19345rm -f conftest.val
19346else
19347 ac_cv_sizeof_int=0
19348fi
19349fi
19350echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19351echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19352cat >>confdefs.h <<_ACEOF
19353#define SIZEOF_INT $ac_cv_sizeof_int
19354_ACEOF
19355
19356
19357echo "$as_me:$LINENO: checking for long" >&5
19358echo $ECHO_N "checking for long... $ECHO_C" >&6
19359if test "${ac_cv_type_long+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361else
19362 cat >conftest.$ac_ext <<_ACEOF
19363/* confdefs.h. */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h. */
19368$ac_includes_default
19369int
19370main ()
19371{
19372if ((long *) 0)
19373 return 0;
19374if (sizeof (long))
19375 return 0;
19376 ;
19377 return 0;
19378}
19379_ACEOF
19380rm -f conftest.$ac_objext
19381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19382 (eval $ac_compile) 2>conftest.er1
a848cd7e 19383 ac_status=$?
ac1cb8d3
VS
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
a848cd7e
SC
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
c9a66001 19389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 ac_cv_type_long=yes
19402else
19403 echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
19406ac_cv_type_long=no
19407fi
ac1cb8d3 19408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19409fi
19410echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19411echo "${ECHO_T}$ac_cv_type_long" >&6
19412
19413echo "$as_me:$LINENO: checking size of long" >&5
19414echo $ECHO_N "checking size of long... $ECHO_C" >&6
19415if test "${ac_cv_sizeof_long+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19417else
19418 if test "$ac_cv_type_long" = yes; then
19419 # The cast to unsigned long works around a bug in the HP C Compiler
19420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19422 # This bug is HP SR number 8606223364.
19423 if test "$cross_compiling" = yes; then
19424 # Depending upon the size, compute the lo and hi bounds.
19425cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
19431$ac_includes_default
19432int
19433main ()
19434{
19435static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19436test_array [0] = 0
19437
19438 ;
19439 return 0;
19440}
19441_ACEOF
19442rm -f conftest.$ac_objext
19443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19444 (eval $ac_compile) 2>conftest.er1
a848cd7e 19445 ac_status=$?
ac1cb8d3
VS
19446 grep -v '^ *+' conftest.er1 >conftest.err
19447 rm -f conftest.er1
19448 cat conftest.err >&5
a848cd7e
SC
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } &&
c9a66001 19451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 ac_lo=0 ac_mid=0
19464 while :; do
19465 cat >conftest.$ac_ext <<_ACEOF
19466/* confdefs.h. */
19467_ACEOF
19468cat confdefs.h >>conftest.$ac_ext
19469cat >>conftest.$ac_ext <<_ACEOF
19470/* end confdefs.h. */
19471$ac_includes_default
19472int
19473main ()
19474{
19475static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19476test_array [0] = 0
19477
19478 ;
19479 return 0;
19480}
19481_ACEOF
19482rm -f conftest.$ac_objext
19483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19484 (eval $ac_compile) 2>conftest.er1
a848cd7e 19485 ac_status=$?
ac1cb8d3
VS
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
a848cd7e
SC
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } &&
c9a66001 19491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; } &&
19497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; }; then
19503 ac_hi=$ac_mid; break
19504else
19505 echo "$as_me: failed program was:" >&5
19506sed 's/^/| /' conftest.$ac_ext >&5
19507
19508ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19509 if test $ac_lo -le $ac_mid; then
19510 ac_lo= ac_hi=
19511 break
19512 fi
19513 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19514fi
ac1cb8d3 19515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19516 done
19517else
19518 echo "$as_me: failed program was:" >&5
19519sed 's/^/| /' conftest.$ac_ext >&5
19520
19521cat >conftest.$ac_ext <<_ACEOF
19522/* confdefs.h. */
19523_ACEOF
19524cat confdefs.h >>conftest.$ac_ext
19525cat >>conftest.$ac_ext <<_ACEOF
19526/* end confdefs.h. */
19527$ac_includes_default
19528int
19529main ()
19530{
19531static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19532test_array [0] = 0
19533
19534 ;
19535 return 0;
19536}
19537_ACEOF
19538rm -f conftest.$ac_objext
19539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19540 (eval $ac_compile) 2>conftest.er1
a848cd7e 19541 ac_status=$?
ac1cb8d3
VS
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
a848cd7e
SC
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
c9a66001 19547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_hi=-1 ac_mid=-1
19560 while :; do
19561 cat >conftest.$ac_ext <<_ACEOF
19562/* confdefs.h. */
19563_ACEOF
19564cat confdefs.h >>conftest.$ac_ext
19565cat >>conftest.$ac_ext <<_ACEOF
19566/* end confdefs.h. */
19567$ac_includes_default
19568int
19569main ()
19570{
19571static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19572test_array [0] = 0
19573
19574 ;
19575 return 0;
19576}
19577_ACEOF
19578rm -f conftest.$ac_objext
19579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19580 (eval $ac_compile) 2>conftest.er1
a848cd7e 19581 ac_status=$?
ac1cb8d3
VS
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
a848cd7e
SC
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
c9a66001 19587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; } &&
19593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19596 ac_status=$?
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19599 ac_lo=$ac_mid; break
19600else
19601 echo "$as_me: failed program was:" >&5
19602sed 's/^/| /' conftest.$ac_ext >&5
19603
19604ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19605 if test $ac_mid -le $ac_hi; then
19606 ac_lo= ac_hi=
19607 break
19608 fi
19609 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19610fi
ac1cb8d3 19611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19612 done
19613else
19614 echo "$as_me: failed program was:" >&5
19615sed 's/^/| /' conftest.$ac_ext >&5
19616
19617ac_lo= ac_hi=
19618fi
ac1cb8d3 19619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19620fi
ac1cb8d3 19621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19622# Binary search between lo and hi bounds.
19623while test "x$ac_lo" != "x$ac_hi"; do
19624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19625 cat >conftest.$ac_ext <<_ACEOF
19626/* confdefs.h. */
19627_ACEOF
19628cat confdefs.h >>conftest.$ac_ext
19629cat >>conftest.$ac_ext <<_ACEOF
19630/* end confdefs.h. */
19631$ac_includes_default
19632int
19633main ()
19634{
19635static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19636test_array [0] = 0
19637
19638 ;
19639 return 0;
19640}
19641_ACEOF
19642rm -f conftest.$ac_objext
19643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19644 (eval $ac_compile) 2>conftest.er1
a848cd7e 19645 ac_status=$?
ac1cb8d3
VS
19646 grep -v '^ *+' conftest.er1 >conftest.err
19647 rm -f conftest.er1
19648 cat conftest.err >&5
a848cd7e
SC
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } &&
c9a66001 19651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 ac_hi=$ac_mid
19664else
19665 echo "$as_me: failed program was:" >&5
19666sed 's/^/| /' conftest.$ac_ext >&5
19667
19668ac_lo=`expr '(' $ac_mid ')' + 1`
19669fi
ac1cb8d3 19670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19671done
19672case $ac_lo in
19673?*) ac_cv_sizeof_long=$ac_lo;;
19674'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19675See \`config.log' for more details." >&5
19676echo "$as_me: error: cannot compute sizeof (long), 77
19677See \`config.log' for more details." >&2;}
19678 { (exit 1); exit 1; }; } ;;
19679esac
19680else
19681 if test "$cross_compiling" = yes; then
c9a66001
VZ
19682 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19683echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19684 { (exit 1); exit 1; }; }
19685else
19686 cat >conftest.$ac_ext <<_ACEOF
19687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
19692$ac_includes_default
19693long longval () { return (long) (sizeof (long)); }
19694unsigned long ulongval () { return (long) (sizeof (long)); }
19695#include <stdio.h>
19696#include <stdlib.h>
19697int
19698main ()
19699{
19700
19701 FILE *f = fopen ("conftest.val", "w");
19702 if (! f)
19703 exit (1);
19704 if (((long) (sizeof (long))) < 0)
19705 {
19706 long i = longval ();
19707 if (i != ((long) (sizeof (long))))
19708 exit (1);
19709 fprintf (f, "%ld\n", i);
19710 }
19711 else
19712 {
19713 unsigned long i = ulongval ();
19714 if (i != ((long) (sizeof (long))))
19715 exit (1);
19716 fprintf (f, "%lu\n", i);
19717 }
19718 exit (ferror (f) || fclose (f) != 0);
19719
19720 ;
19721 return 0;
19722}
19723_ACEOF
19724rm -f conftest$ac_exeext
19725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19726 (eval $ac_link) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long=`cat conftest.val`
19736else
19737 echo "$as_me: program exited with status $ac_status" >&5
19738echo "$as_me: failed program was:" >&5
19739sed 's/^/| /' conftest.$ac_ext >&5
19740
19741( exit $ac_status )
19742{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19743See \`config.log' for more details." >&5
19744echo "$as_me: error: cannot compute sizeof (long), 77
19745See \`config.log' for more details." >&2;}
19746 { (exit 1); exit 1; }; }
19747fi
ac1cb8d3 19748rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19749fi
19750fi
19751rm -f conftest.val
19752else
19753 ac_cv_sizeof_long=0
19754fi
19755fi
19756echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19757echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19758cat >>confdefs.h <<_ACEOF
19759#define SIZEOF_LONG $ac_cv_sizeof_long
19760_ACEOF
19761
19762
19763echo "$as_me:$LINENO: checking for size_t" >&5
19764echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19765if test "${ac_cv_type_size_t+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19767else
19768 cat >conftest.$ac_ext <<_ACEOF
19769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
19774$ac_includes_default
19775int
19776main ()
19777{
19778if ((size_t *) 0)
19779 return 0;
19780if (sizeof (size_t))
19781 return 0;
19782 ;
19783 return 0;
19784}
19785_ACEOF
19786rm -f conftest.$ac_objext
19787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19788 (eval $ac_compile) 2>conftest.er1
a848cd7e 19789 ac_status=$?
ac1cb8d3
VS
19790 grep -v '^ *+' conftest.er1 >conftest.err
19791 rm -f conftest.er1
19792 cat conftest.err >&5
a848cd7e
SC
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
c9a66001 19795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_cv_type_size_t=yes
19808else
19809 echo "$as_me: failed program was:" >&5
19810sed 's/^/| /' conftest.$ac_ext >&5
19811
19812ac_cv_type_size_t=no
19813fi
ac1cb8d3 19814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19815fi
19816echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19817echo "${ECHO_T}$ac_cv_type_size_t" >&6
19818
19819echo "$as_me:$LINENO: checking size of size_t" >&5
19820echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19821if test "${ac_cv_sizeof_size_t+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19823else
19824 if test "$ac_cv_type_size_t" = yes; then
19825 # The cast to unsigned long works around a bug in the HP C Compiler
19826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19828 # This bug is HP SR number 8606223364.
19829 if test "$cross_compiling" = yes; then
19830 # Depending upon the size, compute the lo and hi bounds.
19831cat >conftest.$ac_ext <<_ACEOF
19832/* confdefs.h. */
19833_ACEOF
19834cat confdefs.h >>conftest.$ac_ext
19835cat >>conftest.$ac_ext <<_ACEOF
19836/* end confdefs.h. */
19837$ac_includes_default
19838int
19839main ()
19840{
19841static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19842test_array [0] = 0
19843
19844 ;
19845 return 0;
19846}
19847_ACEOF
19848rm -f conftest.$ac_objext
19849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19850 (eval $ac_compile) 2>conftest.er1
a848cd7e 19851 ac_status=$?
ac1cb8d3
VS
19852 grep -v '^ *+' conftest.er1 >conftest.err
19853 rm -f conftest.er1
19854 cat conftest.err >&5
a848cd7e
SC
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } &&
c9a66001 19857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_lo=0 ac_mid=0
19870 while :; do
19871 cat >conftest.$ac_ext <<_ACEOF
19872/* confdefs.h. */
19873_ACEOF
19874cat confdefs.h >>conftest.$ac_ext
19875cat >>conftest.$ac_ext <<_ACEOF
19876/* end confdefs.h. */
19877$ac_includes_default
19878int
19879main ()
19880{
19881static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19882test_array [0] = 0
19883
19884 ;
19885 return 0;
19886}
19887_ACEOF
19888rm -f conftest.$ac_objext
19889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19890 (eval $ac_compile) 2>conftest.er1
a848cd7e 19891 ac_status=$?
ac1cb8d3
VS
19892 grep -v '^ *+' conftest.er1 >conftest.err
19893 rm -f conftest.er1
19894 cat conftest.err >&5
a848cd7e
SC
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } &&
c9a66001 19897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899 (eval $ac_try) 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; } &&
19903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19909 ac_hi=$ac_mid; break
19910else
19911 echo "$as_me: failed program was:" >&5
19912sed 's/^/| /' conftest.$ac_ext >&5
19913
19914ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19915 if test $ac_lo -le $ac_mid; then
19916 ac_lo= ac_hi=
19917 break
19918 fi
19919 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19920fi
ac1cb8d3 19921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19922 done
19923else
19924 echo "$as_me: failed program was:" >&5
19925sed 's/^/| /' conftest.$ac_ext >&5
19926
19927cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
19933$ac_includes_default
19934int
19935main ()
19936{
19937static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19938test_array [0] = 0
19939
19940 ;
19941 return 0;
19942}
19943_ACEOF
19944rm -f conftest.$ac_objext
19945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19946 (eval $ac_compile) 2>conftest.er1
a848cd7e 19947 ac_status=$?
ac1cb8d3
VS
19948 grep -v '^ *+' conftest.er1 >conftest.err
19949 rm -f conftest.er1
19950 cat conftest.err >&5
a848cd7e
SC
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); } &&
c9a66001 19953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19956 ac_status=$?
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; } &&
19959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; }; then
19965 ac_hi=-1 ac_mid=-1
19966 while :; do
19967 cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h. */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h. */
19973$ac_includes_default
19974int
19975main ()
19976{
19977static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19978test_array [0] = 0
19979
19980 ;
19981 return 0;
19982}
19983_ACEOF
19984rm -f conftest.$ac_objext
19985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19986 (eval $ac_compile) 2>conftest.er1
a848cd7e 19987 ac_status=$?
ac1cb8d3
VS
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
a848cd7e
SC
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
c9a66001 19993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; } &&
19999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ac_lo=$ac_mid; break
20006else
20007 echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20011 if test $ac_mid -le $ac_hi; then
20012 ac_lo= ac_hi=
20013 break
20014 fi
20015 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20016fi
ac1cb8d3 20017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20018 done
20019else
20020 echo "$as_me: failed program was:" >&5
20021sed 's/^/| /' conftest.$ac_ext >&5
20022
20023ac_lo= ac_hi=
20024fi
ac1cb8d3 20025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20026fi
ac1cb8d3 20027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20028# Binary search between lo and hi bounds.
20029while test "x$ac_lo" != "x$ac_hi"; do
20030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20031 cat >conftest.$ac_ext <<_ACEOF
20032/* confdefs.h. */
20033_ACEOF
20034cat confdefs.h >>conftest.$ac_ext
20035cat >>conftest.$ac_ext <<_ACEOF
20036/* end confdefs.h. */
20037$ac_includes_default
20038int
20039main ()
20040{
20041static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20042test_array [0] = 0
20043
20044 ;
20045 return 0;
20046}
20047_ACEOF
20048rm -f conftest.$ac_objext
20049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20050 (eval $ac_compile) 2>conftest.er1
a848cd7e 20051 ac_status=$?
ac1cb8d3
VS
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
a848cd7e
SC
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
c9a66001 20057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065 (eval $ac_try) 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 ac_hi=$ac_mid
20070else
20071 echo "$as_me: failed program was:" >&5
20072sed 's/^/| /' conftest.$ac_ext >&5
20073
20074ac_lo=`expr '(' $ac_mid ')' + 1`
20075fi
ac1cb8d3 20076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20077done
20078case $ac_lo in
20079?*) ac_cv_sizeof_size_t=$ac_lo;;
20080'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20081See \`config.log' for more details." >&5
20082echo "$as_me: error: cannot compute sizeof (size_t), 77
20083See \`config.log' for more details." >&2;}
20084 { (exit 1); exit 1; }; } ;;
20085esac
20086else
20087 if test "$cross_compiling" = yes; then
c9a66001
VZ
20088 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20089echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20090 { (exit 1); exit 1; }; }
20091else
20092 cat >conftest.$ac_ext <<_ACEOF
20093/* confdefs.h. */
20094_ACEOF
20095cat confdefs.h >>conftest.$ac_ext
20096cat >>conftest.$ac_ext <<_ACEOF
20097/* end confdefs.h. */
20098$ac_includes_default
20099long longval () { return (long) (sizeof (size_t)); }
20100unsigned long ulongval () { return (long) (sizeof (size_t)); }
20101#include <stdio.h>
20102#include <stdlib.h>
20103int
20104main ()
20105{
20106
20107 FILE *f = fopen ("conftest.val", "w");
20108 if (! f)
20109 exit (1);
20110 if (((long) (sizeof (size_t))) < 0)
20111 {
20112 long i = longval ();
20113 if (i != ((long) (sizeof (size_t))))
20114 exit (1);
20115 fprintf (f, "%ld\n", i);
20116 }
20117 else
20118 {
20119 unsigned long i = ulongval ();
20120 if (i != ((long) (sizeof (size_t))))
20121 exit (1);
20122 fprintf (f, "%lu\n", i);
20123 }
20124 exit (ferror (f) || fclose (f) != 0);
20125
20126 ;
20127 return 0;
20128}
20129_ACEOF
20130rm -f conftest$ac_exeext
20131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20132 (eval $ac_link) 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; }; then
20141 ac_cv_sizeof_size_t=`cat conftest.val`
20142else
20143 echo "$as_me: program exited with status $ac_status" >&5
20144echo "$as_me: failed program was:" >&5
20145sed 's/^/| /' conftest.$ac_ext >&5
20146
20147( exit $ac_status )
20148{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20149See \`config.log' for more details." >&5
20150echo "$as_me: error: cannot compute sizeof (size_t), 77
20151See \`config.log' for more details." >&2;}
20152 { (exit 1); exit 1; }; }
20153fi
ac1cb8d3 20154rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20155fi
20156fi
20157rm -f conftest.val
20158else
20159 ac_cv_sizeof_size_t=0
20160fi
20161fi
20162echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20163echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20164cat >>confdefs.h <<_ACEOF
20165#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20166_ACEOF
20167
20168
20169
20170case "${host}" in
20171 arm-*-linux* )
20172 echo "$as_me:$LINENO: checking for long long" >&5
20173echo $ECHO_N "checking for long long... $ECHO_C" >&6
20174if test "${ac_cv_type_long_long+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176else
20177 cat >conftest.$ac_ext <<_ACEOF
20178/* confdefs.h. */
20179_ACEOF
20180cat confdefs.h >>conftest.$ac_ext
20181cat >>conftest.$ac_ext <<_ACEOF
20182/* end confdefs.h. */
20183$ac_includes_default
20184int
20185main ()
20186{
20187if ((long long *) 0)
20188 return 0;
20189if (sizeof (long long))
20190 return 0;
20191 ;
20192 return 0;
20193}
20194_ACEOF
20195rm -f conftest.$ac_objext
20196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20197 (eval $ac_compile) 2>conftest.er1
a848cd7e 20198 ac_status=$?
ac1cb8d3
VS
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
a848cd7e
SC
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } &&
c9a66001 20204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20207 ac_status=$?
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; } &&
20210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 ac_cv_type_long_long=yes
20217else
20218 echo "$as_me: failed program was:" >&5
20219sed 's/^/| /' conftest.$ac_ext >&5
20220
20221ac_cv_type_long_long=no
20222fi
ac1cb8d3 20223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20224fi
20225echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20226echo "${ECHO_T}$ac_cv_type_long_long" >&6
20227
20228echo "$as_me:$LINENO: checking size of long long" >&5
20229echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20230if test "${ac_cv_sizeof_long_long+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20232else
20233 if test "$ac_cv_type_long_long" = yes; then
20234 # The cast to unsigned long works around a bug in the HP C Compiler
20235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20237 # This bug is HP SR number 8606223364.
20238 if test "$cross_compiling" = yes; then
20239 # Depending upon the size, compute the lo and hi bounds.
20240cat >conftest.$ac_ext <<_ACEOF
20241/* confdefs.h. */
20242_ACEOF
20243cat confdefs.h >>conftest.$ac_ext
20244cat >>conftest.$ac_ext <<_ACEOF
20245/* end confdefs.h. */
20246$ac_includes_default
20247int
20248main ()
20249{
20250static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20251test_array [0] = 0
20252
20253 ;
20254 return 0;
20255}
20256_ACEOF
20257rm -f conftest.$ac_objext
20258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20259 (eval $ac_compile) 2>conftest.er1
a848cd7e 20260 ac_status=$?
ac1cb8d3
VS
20261 grep -v '^ *+' conftest.er1 >conftest.err
20262 rm -f conftest.er1
20263 cat conftest.err >&5
a848cd7e
SC
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
c9a66001 20266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20275 ac_status=$?
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
20278 ac_lo=0 ac_mid=0
20279 while :; do
20280 cat >conftest.$ac_ext <<_ACEOF
20281/* confdefs.h. */
20282_ACEOF
20283cat confdefs.h >>conftest.$ac_ext
20284cat >>conftest.$ac_ext <<_ACEOF
20285/* end confdefs.h. */
20286$ac_includes_default
20287int
20288main ()
20289{
20290static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20291test_array [0] = 0
20292
20293 ;
20294 return 0;
20295}
20296_ACEOF
20297rm -f conftest.$ac_objext
20298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20299 (eval $ac_compile) 2>conftest.er1
a848cd7e 20300 ac_status=$?
ac1cb8d3
VS
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
a848cd7e
SC
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } &&
c9a66001 20306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } &&
20312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314 (eval $ac_try) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 ac_hi=$ac_mid; break
20319else
20320 echo "$as_me: failed program was:" >&5
20321sed 's/^/| /' conftest.$ac_ext >&5
20322
20323ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20324 if test $ac_lo -le $ac_mid; then
20325 ac_lo= ac_hi=
20326 break
20327 fi
20328 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20329fi
ac1cb8d3 20330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20331 done
20332else
20333 echo "$as_me: failed program was:" >&5
20334sed 's/^/| /' conftest.$ac_ext >&5
20335
20336cat >conftest.$ac_ext <<_ACEOF
20337/* confdefs.h. */
20338_ACEOF
20339cat confdefs.h >>conftest.$ac_ext
20340cat >>conftest.$ac_ext <<_ACEOF
20341/* end confdefs.h. */
20342$ac_includes_default
20343int
20344main ()
20345{
20346static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20347test_array [0] = 0
20348
20349 ;
20350 return 0;
20351}
20352_ACEOF
20353rm -f conftest.$ac_objext
20354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20355 (eval $ac_compile) 2>conftest.er1
a848cd7e 20356 ac_status=$?
ac1cb8d3
VS
20357 grep -v '^ *+' conftest.er1 >conftest.err
20358 rm -f conftest.er1
20359 cat conftest.err >&5
a848cd7e
SC
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } &&
c9a66001 20362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 ac_hi=-1 ac_mid=-1
20375 while :; do
20376 cat >conftest.$ac_ext <<_ACEOF
20377/* confdefs.h. */
20378_ACEOF
20379cat confdefs.h >>conftest.$ac_ext
20380cat >>conftest.$ac_ext <<_ACEOF
20381/* end confdefs.h. */
20382$ac_includes_default
20383int
20384main ()
20385{
20386static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20387test_array [0] = 0
20388
20389 ;
20390 return 0;
20391}
20392_ACEOF
20393rm -f conftest.$ac_objext
20394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20395 (eval $ac_compile) 2>conftest.er1
a848cd7e 20396 ac_status=$?
ac1cb8d3
VS
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
a848cd7e
SC
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
c9a66001 20402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; } &&
20408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_lo=$ac_mid; break
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20420 if test $ac_mid -le $ac_hi; then
20421 ac_lo= ac_hi=
20422 break
20423 fi
20424 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20425fi
ac1cb8d3 20426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20427 done
20428else
20429 echo "$as_me: failed program was:" >&5
20430sed 's/^/| /' conftest.$ac_ext >&5
20431
20432ac_lo= ac_hi=
20433fi
ac1cb8d3 20434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20435fi
ac1cb8d3 20436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20437# Binary search between lo and hi bounds.
20438while test "x$ac_lo" != "x$ac_hi"; do
20439 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20440 cat >conftest.$ac_ext <<_ACEOF
20441/* confdefs.h. */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h. */
20446$ac_includes_default
20447int
20448main ()
20449{
20450static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20451test_array [0] = 0
20452
20453 ;
20454 return 0;
20455}
20456_ACEOF
20457rm -f conftest.$ac_objext
20458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20459 (eval $ac_compile) 2>conftest.er1
a848cd7e 20460 ac_status=$?
ac1cb8d3
VS
20461 grep -v '^ *+' conftest.er1 >conftest.err
20462 rm -f conftest.er1
20463 cat conftest.err >&5
a848cd7e
SC
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } &&
c9a66001 20466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; } &&
20472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20475 ac_status=$?
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20478 ac_hi=$ac_mid
20479else
20480 echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483ac_lo=`expr '(' $ac_mid ')' + 1`
20484fi
ac1cb8d3 20485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20486done
20487case $ac_lo in
20488?*) ac_cv_sizeof_long_long=$ac_lo;;
20489'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20490See \`config.log' for more details." >&5
20491echo "$as_me: error: cannot compute sizeof (long long), 77
20492See \`config.log' for more details." >&2;}
20493 { (exit 1); exit 1; }; } ;;
20494esac
20495else
20496 if test "$cross_compiling" = yes; then
c9a66001
VZ
20497 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20498echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20499 { (exit 1); exit 1; }; }
20500else
20501 cat >conftest.$ac_ext <<_ACEOF
20502/* confdefs.h. */
20503_ACEOF
20504cat confdefs.h >>conftest.$ac_ext
20505cat >>conftest.$ac_ext <<_ACEOF
20506/* end confdefs.h. */
20507$ac_includes_default
20508long longval () { return (long) (sizeof (long long)); }
20509unsigned long ulongval () { return (long) (sizeof (long long)); }
20510#include <stdio.h>
20511#include <stdlib.h>
20512int
20513main ()
20514{
20515
20516 FILE *f = fopen ("conftest.val", "w");
20517 if (! f)
20518 exit (1);
20519 if (((long) (sizeof (long long))) < 0)
20520 {
20521 long i = longval ();
20522 if (i != ((long) (sizeof (long long))))
20523 exit (1);
20524 fprintf (f, "%ld\n", i);
20525 }
20526 else
20527 {
20528 unsigned long i = ulongval ();
20529 if (i != ((long) (sizeof (long long))))
20530 exit (1);
20531 fprintf (f, "%lu\n", i);
20532 }
20533 exit (ferror (f) || fclose (f) != 0);
20534
20535 ;
20536 return 0;
20537}
20538_ACEOF
20539rm -f conftest$ac_exeext
20540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541 (eval $ac_link) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
20550 ac_cv_sizeof_long_long=`cat conftest.val`
20551else
20552 echo "$as_me: program exited with status $ac_status" >&5
20553echo "$as_me: failed program was:" >&5
20554sed 's/^/| /' conftest.$ac_ext >&5
20555
20556( exit $ac_status )
20557{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20558See \`config.log' for more details." >&5
20559echo "$as_me: error: cannot compute sizeof (long long), 77
20560See \`config.log' for more details." >&2;}
20561 { (exit 1); exit 1; }; }
20562fi
ac1cb8d3 20563rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20564fi
20565fi
20566rm -f conftest.val
20567else
20568 ac_cv_sizeof_long_long=0
20569fi
20570fi
20571echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20572echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20573cat >>confdefs.h <<_ACEOF
20574#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20575_ACEOF
20576
20577
20578 ;;
20579 *-hp-hpux* )
20580 echo "$as_me:$LINENO: checking for long long" >&5
20581echo $ECHO_N "checking for long long... $ECHO_C" >&6
20582if test "${ac_cv_type_long_long+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584else
20585 cat >conftest.$ac_ext <<_ACEOF
20586/* confdefs.h. */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h. */
20591$ac_includes_default
20592int
20593main ()
20594{
20595if ((long long *) 0)
20596 return 0;
20597if (sizeof (long long))
20598 return 0;
20599 ;
20600 return 0;
20601}
20602_ACEOF
20603rm -f conftest.$ac_objext
20604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20605 (eval $ac_compile) 2>conftest.er1
a848cd7e 20606 ac_status=$?
ac1cb8d3
VS
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
a848cd7e
SC
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
c9a66001 20612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20621 ac_status=$?
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_type_long_long=yes
20625else
20626 echo "$as_me: failed program was:" >&5
20627sed 's/^/| /' conftest.$ac_ext >&5
20628
20629ac_cv_type_long_long=no
20630fi
ac1cb8d3 20631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20632fi
20633echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20634echo "${ECHO_T}$ac_cv_type_long_long" >&6
20635
20636echo "$as_me:$LINENO: checking size of long long" >&5
20637echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20638if test "${ac_cv_sizeof_long_long+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640else
20641 if test "$ac_cv_type_long_long" = yes; then
20642 # The cast to unsigned long works around a bug in the HP C Compiler
20643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20645 # This bug is HP SR number 8606223364.
20646 if test "$cross_compiling" = yes; then
20647 # Depending upon the size, compute the lo and hi bounds.
20648cat >conftest.$ac_ext <<_ACEOF
20649/* confdefs.h. */
20650_ACEOF
20651cat confdefs.h >>conftest.$ac_ext
20652cat >>conftest.$ac_ext <<_ACEOF
20653/* end confdefs.h. */
20654$ac_includes_default
20655int
20656main ()
20657{
20658static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20659test_array [0] = 0
20660
20661 ;
20662 return 0;
20663}
20664_ACEOF
20665rm -f conftest.$ac_objext
20666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20667 (eval $ac_compile) 2>conftest.er1
a848cd7e 20668 ac_status=$?
ac1cb8d3
VS
20669 grep -v '^ *+' conftest.er1 >conftest.err
20670 rm -f conftest.er1
20671 cat conftest.err >&5
a848cd7e
SC
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } &&
c9a66001 20674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; } &&
20680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 ac_lo=0 ac_mid=0
20687 while :; do
20688 cat >conftest.$ac_ext <<_ACEOF
20689/* confdefs.h. */
20690_ACEOF
20691cat confdefs.h >>conftest.$ac_ext
20692cat >>conftest.$ac_ext <<_ACEOF
20693/* end confdefs.h. */
20694$ac_includes_default
20695int
20696main ()
20697{
20698static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20699test_array [0] = 0
20700
20701 ;
20702 return 0;
20703}
20704_ACEOF
20705rm -f conftest.$ac_objext
20706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20707 (eval $ac_compile) 2>conftest.er1
a848cd7e 20708 ac_status=$?
ac1cb8d3
VS
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
a848cd7e
SC
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } &&
c9a66001 20714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; } &&
20720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20722 (eval $ac_try) 2>&5
20723 ac_status=$?
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); }; }; then
20726 ac_hi=$ac_mid; break
20727else
20728 echo "$as_me: failed program was:" >&5
20729sed 's/^/| /' conftest.$ac_ext >&5
20730
20731ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20732 if test $ac_lo -le $ac_mid; then
20733 ac_lo= ac_hi=
20734 break
20735 fi
20736 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20737fi
ac1cb8d3 20738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20739 done
20740else
20741 echo "$as_me: failed program was:" >&5
20742sed 's/^/| /' conftest.$ac_ext >&5
20743
20744cat >conftest.$ac_ext <<_ACEOF
20745/* confdefs.h. */
20746_ACEOF
20747cat confdefs.h >>conftest.$ac_ext
20748cat >>conftest.$ac_ext <<_ACEOF
20749/* end confdefs.h. */
20750$ac_includes_default
20751int
20752main ()
20753{
20754static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20755test_array [0] = 0
20756
20757 ;
20758 return 0;
20759}
20760_ACEOF
20761rm -f conftest.$ac_objext
20762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20763 (eval $ac_compile) 2>conftest.er1
a848cd7e 20764 ac_status=$?
ac1cb8d3
VS
20765 grep -v '^ *+' conftest.er1 >conftest.err
20766 rm -f conftest.er1
20767 cat conftest.err >&5
a848cd7e
SC
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
c9a66001 20770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_hi=-1 ac_mid=-1
20783 while :; do
20784 cat >conftest.$ac_ext <<_ACEOF
20785/* confdefs.h. */
20786_ACEOF
20787cat confdefs.h >>conftest.$ac_ext
20788cat >>conftest.$ac_ext <<_ACEOF
20789/* end confdefs.h. */
20790$ac_includes_default
20791int
20792main ()
20793{
20794static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20795test_array [0] = 0
20796
20797 ;
20798 return 0;
20799}
20800_ACEOF
20801rm -f conftest.$ac_objext
20802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20803 (eval $ac_compile) 2>conftest.er1
a848cd7e 20804 ac_status=$?
ac1cb8d3
VS
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
a848cd7e
SC
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } &&
c9a66001 20810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; } &&
20816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 ac_lo=$ac_mid; break
20823else
20824 echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
20827ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20828 if test $ac_mid -le $ac_hi; then
20829 ac_lo= ac_hi=
20830 break
20831 fi
20832 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20833fi
ac1cb8d3 20834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20835 done
20836else
20837 echo "$as_me: failed program was:" >&5
20838sed 's/^/| /' conftest.$ac_ext >&5
20839
20840ac_lo= ac_hi=
20841fi
ac1cb8d3 20842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20843fi
ac1cb8d3 20844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20845# Binary search between lo and hi bounds.
20846while test "x$ac_lo" != "x$ac_hi"; do
20847 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20848 cat >conftest.$ac_ext <<_ACEOF
20849/* confdefs.h. */
20850_ACEOF
20851cat confdefs.h >>conftest.$ac_ext
20852cat >>conftest.$ac_ext <<_ACEOF
20853/* end confdefs.h. */
20854$ac_includes_default
20855int
20856main ()
20857{
20858static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20859test_array [0] = 0
20860
20861 ;
20862 return 0;
20863}
20864_ACEOF
20865rm -f conftest.$ac_objext
20866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20867 (eval $ac_compile) 2>conftest.er1
a848cd7e 20868 ac_status=$?
ac1cb8d3
VS
20869 grep -v '^ *+' conftest.er1 >conftest.err
20870 rm -f conftest.er1
20871 cat conftest.err >&5
a848cd7e
SC
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } &&
c9a66001 20874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; } &&
20880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
20886 ac_hi=$ac_mid
20887else
20888 echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
20890
20891ac_lo=`expr '(' $ac_mid ')' + 1`
20892fi
ac1cb8d3 20893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20894done
20895case $ac_lo in
20896?*) ac_cv_sizeof_long_long=$ac_lo;;
20897'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20898See \`config.log' for more details." >&5
20899echo "$as_me: error: cannot compute sizeof (long long), 77
20900See \`config.log' for more details." >&2;}
20901 { (exit 1); exit 1; }; } ;;
20902esac
20903else
20904 if test "$cross_compiling" = yes; then
c9a66001
VZ
20905 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20906echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20907 { (exit 1); exit 1; }; }
20908else
20909 cat >conftest.$ac_ext <<_ACEOF
20910/* confdefs.h. */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h. */
20915$ac_includes_default
20916long longval () { return (long) (sizeof (long long)); }
20917unsigned long ulongval () { return (long) (sizeof (long long)); }
20918#include <stdio.h>
20919#include <stdlib.h>
20920int
20921main ()
20922{
20923
20924 FILE *f = fopen ("conftest.val", "w");
20925 if (! f)
20926 exit (1);
20927 if (((long) (sizeof (long long))) < 0)
20928 {
20929 long i = longval ();
20930 if (i != ((long) (sizeof (long long))))
20931 exit (1);
20932 fprintf (f, "%ld\n", i);
20933 }
20934 else
20935 {
20936 unsigned long i = ulongval ();
20937 if (i != ((long) (sizeof (long long))))
20938 exit (1);
20939 fprintf (f, "%lu\n", i);
20940 }
20941 exit (ferror (f) || fclose (f) != 0);
20942
20943 ;
20944 return 0;
20945}
20946_ACEOF
20947rm -f conftest$ac_exeext
20948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949 (eval $ac_link) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_cv_sizeof_long_long=`cat conftest.val`
20959else
20960 echo "$as_me: program exited with status $ac_status" >&5
20961echo "$as_me: failed program was:" >&5
20962sed 's/^/| /' conftest.$ac_ext >&5
20963
20964( exit $ac_status )
20965{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20966See \`config.log' for more details." >&5
20967echo "$as_me: error: cannot compute sizeof (long long), 77
20968See \`config.log' for more details." >&2;}
20969 { (exit 1); exit 1; }; }
20970fi
ac1cb8d3 20971rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20972fi
20973fi
20974rm -f conftest.val
20975else
20976 ac_cv_sizeof_long_long=0
20977fi
20978fi
20979echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20980echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20981cat >>confdefs.h <<_ACEOF
20982#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20983_ACEOF
20984
20985
20986 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20987 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20988 fi
20989 ;;
20990 * )
20991 echo "$as_me:$LINENO: checking for long long" >&5
20992echo $ECHO_N "checking for long long... $ECHO_C" >&6
20993if test "${ac_cv_type_long_long+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20995else
20996 cat >conftest.$ac_ext <<_ACEOF
20997/* confdefs.h. */
20998_ACEOF
20999cat confdefs.h >>conftest.$ac_ext
21000cat >>conftest.$ac_ext <<_ACEOF
21001/* end confdefs.h. */
21002$ac_includes_default
21003int
21004main ()
21005{
21006if ((long long *) 0)
21007 return 0;
21008if (sizeof (long long))
21009 return 0;
21010 ;
21011 return 0;
21012}
21013_ACEOF
21014rm -f conftest.$ac_objext
21015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21016 (eval $ac_compile) 2>conftest.er1
a848cd7e 21017 ac_status=$?
ac1cb8d3
VS
21018 grep -v '^ *+' conftest.er1 >conftest.err
21019 rm -f conftest.er1
21020 cat conftest.err >&5
a848cd7e
SC
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } &&
c9a66001 21023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ac_cv_type_long_long=yes
21036else
21037 echo "$as_me: failed program was:" >&5
21038sed 's/^/| /' conftest.$ac_ext >&5
21039
21040ac_cv_type_long_long=no
21041fi
ac1cb8d3 21042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21043fi
21044echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21045echo "${ECHO_T}$ac_cv_type_long_long" >&6
21046
21047echo "$as_me:$LINENO: checking size of long long" >&5
21048echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21049if test "${ac_cv_sizeof_long_long+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051else
21052 if test "$ac_cv_type_long_long" = yes; then
21053 # The cast to unsigned long works around a bug in the HP C Compiler
21054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21056 # This bug is HP SR number 8606223364.
21057 if test "$cross_compiling" = yes; then
21058 # Depending upon the size, compute the lo and hi bounds.
21059cat >conftest.$ac_ext <<_ACEOF
21060/* confdefs.h. */
21061_ACEOF
21062cat confdefs.h >>conftest.$ac_ext
21063cat >>conftest.$ac_ext <<_ACEOF
21064/* end confdefs.h. */
21065$ac_includes_default
21066int
21067main ()
21068{
21069static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21070test_array [0] = 0
21071
21072 ;
21073 return 0;
21074}
21075_ACEOF
21076rm -f conftest.$ac_objext
21077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21078 (eval $ac_compile) 2>conftest.er1
a848cd7e 21079 ac_status=$?
ac1cb8d3
VS
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
a848cd7e
SC
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
c9a66001 21085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; } &&
21091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
21097 ac_lo=0 ac_mid=0
21098 while :; do
21099 cat >conftest.$ac_ext <<_ACEOF
21100/* confdefs.h. */
21101_ACEOF
21102cat confdefs.h >>conftest.$ac_ext
21103cat >>conftest.$ac_ext <<_ACEOF
21104/* end confdefs.h. */
21105$ac_includes_default
21106int
21107main ()
21108{
21109static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21110test_array [0] = 0
21111
21112 ;
21113 return 0;
21114}
21115_ACEOF
21116rm -f conftest.$ac_objext
21117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21118 (eval $ac_compile) 2>conftest.er1
a848cd7e 21119 ac_status=$?
ac1cb8d3
VS
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
a848cd7e
SC
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } &&
c9a66001 21125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; } &&
21131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133 (eval $ac_try) 2>&5
21134 ac_status=$?
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); }; }; then
21137 ac_hi=$ac_mid; break
21138else
21139 echo "$as_me: failed program was:" >&5
21140sed 's/^/| /' conftest.$ac_ext >&5
21141
21142ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21143 if test $ac_lo -le $ac_mid; then
21144 ac_lo= ac_hi=
21145 break
21146 fi
21147 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21148fi
ac1cb8d3 21149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21150 done
21151else
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
21155cat >conftest.$ac_ext <<_ACEOF
21156/* confdefs.h. */
21157_ACEOF
21158cat confdefs.h >>conftest.$ac_ext
21159cat >>conftest.$ac_ext <<_ACEOF
21160/* end confdefs.h. */
21161$ac_includes_default
21162int
21163main ()
21164{
21165static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21166test_array [0] = 0
21167
21168 ;
21169 return 0;
21170}
21171_ACEOF
21172rm -f conftest.$ac_objext
21173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21174 (eval $ac_compile) 2>conftest.er1
a848cd7e 21175 ac_status=$?
ac1cb8d3
VS
21176 grep -v '^ *+' conftest.er1 >conftest.err
21177 rm -f conftest.er1
21178 cat conftest.err >&5
a848cd7e
SC
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } &&
c9a66001 21181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183 (eval $ac_try) 2>&5
21184 ac_status=$?
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; } &&
21187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21190 ac_status=$?
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; }; then
21193 ac_hi=-1 ac_mid=-1
21194 while :; do
21195 cat >conftest.$ac_ext <<_ACEOF
21196/* confdefs.h. */
21197_ACEOF
21198cat confdefs.h >>conftest.$ac_ext
21199cat >>conftest.$ac_ext <<_ACEOF
21200/* end confdefs.h. */
21201$ac_includes_default
21202int
21203main ()
21204{
21205static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21206test_array [0] = 0
21207
21208 ;
21209 return 0;
21210}
21211_ACEOF
21212rm -f conftest.$ac_objext
21213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21214 (eval $ac_compile) 2>conftest.er1
a848cd7e 21215 ac_status=$?
ac1cb8d3
VS
21216 grep -v '^ *+' conftest.er1 >conftest.err
21217 rm -f conftest.er1
21218 cat conftest.err >&5
a848cd7e
SC
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
c9a66001 21221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; } &&
21227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21230 ac_status=$?
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 ac_lo=$ac_mid; break
21234else
21235 echo "$as_me: failed program was:" >&5
21236sed 's/^/| /' conftest.$ac_ext >&5
21237
21238ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21239 if test $ac_mid -le $ac_hi; then
21240 ac_lo= ac_hi=
21241 break
21242 fi
21243 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21244fi
ac1cb8d3 21245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21246 done
21247else
21248 echo "$as_me: failed program was:" >&5
21249sed 's/^/| /' conftest.$ac_ext >&5
21250
21251ac_lo= ac_hi=
21252fi
ac1cb8d3 21253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21254fi
ac1cb8d3 21255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21256# Binary search between lo and hi bounds.
21257while test "x$ac_lo" != "x$ac_hi"; do
21258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21259 cat >conftest.$ac_ext <<_ACEOF
21260/* confdefs.h. */
21261_ACEOF
21262cat confdefs.h >>conftest.$ac_ext
21263cat >>conftest.$ac_ext <<_ACEOF
21264/* end confdefs.h. */
21265$ac_includes_default
21266int
21267main ()
21268{
21269static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21270test_array [0] = 0
21271
21272 ;
21273 return 0;
21274}
21275_ACEOF
21276rm -f conftest.$ac_objext
21277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21278 (eval $ac_compile) 2>conftest.er1
a848cd7e 21279 ac_status=$?
ac1cb8d3
VS
21280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
a848cd7e
SC
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
c9a66001 21285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21288 ac_status=$?
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; } &&
21291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
21297 ac_hi=$ac_mid
21298else
21299 echo "$as_me: failed program was:" >&5
21300sed 's/^/| /' conftest.$ac_ext >&5
21301
21302ac_lo=`expr '(' $ac_mid ')' + 1`
21303fi
ac1cb8d3 21304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21305done
21306case $ac_lo in
21307?*) ac_cv_sizeof_long_long=$ac_lo;;
21308'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21309See \`config.log' for more details." >&5
21310echo "$as_me: error: cannot compute sizeof (long long), 77
21311See \`config.log' for more details." >&2;}
21312 { (exit 1); exit 1; }; } ;;
21313esac
21314else
21315 if test "$cross_compiling" = yes; then
c9a66001
VZ
21316 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21317echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21318 { (exit 1); exit 1; }; }
21319else
21320 cat >conftest.$ac_ext <<_ACEOF
21321/* confdefs.h. */
21322_ACEOF
21323cat confdefs.h >>conftest.$ac_ext
21324cat >>conftest.$ac_ext <<_ACEOF
21325/* end confdefs.h. */
21326$ac_includes_default
21327long longval () { return (long) (sizeof (long long)); }
21328unsigned long ulongval () { return (long) (sizeof (long long)); }
21329#include <stdio.h>
21330#include <stdlib.h>
21331int
21332main ()
21333{
21334
21335 FILE *f = fopen ("conftest.val", "w");
21336 if (! f)
21337 exit (1);
21338 if (((long) (sizeof (long long))) < 0)
21339 {
21340 long i = longval ();
21341 if (i != ((long) (sizeof (long long))))
21342 exit (1);
21343 fprintf (f, "%ld\n", i);
21344 }
21345 else
21346 {
21347 unsigned long i = ulongval ();
21348 if (i != ((long) (sizeof (long long))))
21349 exit (1);
21350 fprintf (f, "%lu\n", i);
21351 }
21352 exit (ferror (f) || fclose (f) != 0);
21353
21354 ;
21355 return 0;
21356}
21357_ACEOF
21358rm -f conftest$ac_exeext
21359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21360 (eval $ac_link) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 ac_cv_sizeof_long_long=`cat conftest.val`
21370else
21371 echo "$as_me: program exited with status $ac_status" >&5
21372echo "$as_me: failed program was:" >&5
21373sed 's/^/| /' conftest.$ac_ext >&5
21374
21375( exit $ac_status )
21376{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21377See \`config.log' for more details." >&5
21378echo "$as_me: error: cannot compute sizeof (long long), 77
21379See \`config.log' for more details." >&2;}
21380 { (exit 1); exit 1; }; }
21381fi
ac1cb8d3 21382rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21383fi
21384fi
21385rm -f conftest.val
21386else
21387 ac_cv_sizeof_long_long=0
21388fi
21389fi
21390echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21391echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21392cat >>confdefs.h <<_ACEOF
21393#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21394_ACEOF
21395
21396
21397esac
21398
238ecede
MW
21399echo "$as_me:$LINENO: checking for wchar_t" >&5
21400echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21401if test "${ac_cv_type_wchar_t+set}" = set; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21403else
21404 cat >conftest.$ac_ext <<_ACEOF
21405/* confdefs.h. */
21406_ACEOF
21407cat confdefs.h >>conftest.$ac_ext
21408cat >>conftest.$ac_ext <<_ACEOF
21409/* end confdefs.h. */
21410
83d8eb47
MW
21411 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21412 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21413 # error "fake wchar_t"
21414 #endif
21415 #ifdef HAVE_WCHAR_H
21416 # ifdef __CYGWIN__
21417 # include <stddef.h>
21418 # endif
21419 # include <wchar.h>
21420 #endif
21421 #ifdef HAVE_STDLIB_H
21422 # include <stdlib.h>
21423 #endif
21424 #include <stdio.h>
21425
21426
21427
21428int
21429main ()
21430{
21431if ((wchar_t *) 0)
21432 return 0;
21433if (sizeof (wchar_t))
21434 return 0;
21435 ;
21436 return 0;
21437}
21438_ACEOF
21439rm -f conftest.$ac_objext
21440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21441 (eval $ac_compile) 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
c9a66001 21448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; } &&
21454 { ac_try='test -s conftest.$ac_objext'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21457 ac_status=$?
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; }; then
21460 ac_cv_type_wchar_t=yes
21461else
21462 echo "$as_me: failed program was:" >&5
21463sed 's/^/| /' conftest.$ac_ext >&5
21464
21465ac_cv_type_wchar_t=no
21466fi
21467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21468fi
21469echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21470echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21471
a848cd7e
SC
21472echo "$as_me:$LINENO: checking size of wchar_t" >&5
21473echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21474if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21476else
238ecede
MW
21477 if test "$ac_cv_type_wchar_t" = yes; then
21478 # The cast to unsigned long works around a bug in the HP C Compiler
21479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21481 # This bug is HP SR number 8606223364.
21482 if test "$cross_compiling" = yes; then
21483 # Depending upon the size, compute the lo and hi bounds.
21484cat >conftest.$ac_ext <<_ACEOF
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
21490
83d8eb47
MW
21491 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21492 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21493 # error "fake wchar_t"
21494 #endif
21495 #ifdef HAVE_WCHAR_H
21496 # ifdef __CYGWIN__
21497 # include <stddef.h>
21498 # endif
21499 # include <wchar.h>
21500 #endif
21501 #ifdef HAVE_STDLIB_H
21502 # include <stdlib.h>
21503 #endif
21504 #include <stdio.h>
21505
21506
21507
21508int
21509main ()
21510{
21511static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21512test_array [0] = 0
21513
21514 ;
21515 return 0;
21516}
21517_ACEOF
21518rm -f conftest.$ac_objext
21519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21520 (eval $ac_compile) 2>conftest.er1
21521 ac_status=$?
21522 grep -v '^ *+' conftest.er1 >conftest.err
21523 rm -f conftest.er1
21524 cat conftest.err >&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } &&
c9a66001 21527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; } &&
21533 { ac_try='test -s conftest.$ac_objext'
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; }; then
21539 ac_lo=0 ac_mid=0
21540 while :; do
21541 cat >conftest.$ac_ext <<_ACEOF
21542/* confdefs.h. */
21543_ACEOF
21544cat confdefs.h >>conftest.$ac_ext
21545cat >>conftest.$ac_ext <<_ACEOF
21546/* end confdefs.h. */
21547
83d8eb47
MW
21548 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21549 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21550 # error "fake wchar_t"
21551 #endif
21552 #ifdef HAVE_WCHAR_H
21553 # ifdef __CYGWIN__
21554 # include <stddef.h>
21555 # endif
21556 # include <wchar.h>
21557 #endif
21558 #ifdef HAVE_STDLIB_H
21559 # include <stdlib.h>
21560 #endif
21561 #include <stdio.h>
21562
21563
21564
21565int
21566main ()
21567{
21568static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21569test_array [0] = 0
21570
21571 ;
21572 return 0;
21573}
21574_ACEOF
21575rm -f conftest.$ac_objext
21576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21577 (eval $ac_compile) 2>conftest.er1
21578 ac_status=$?
21579 grep -v '^ *+' conftest.er1 >conftest.err
21580 rm -f conftest.er1
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } &&
c9a66001 21584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586 (eval $ac_try) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; } &&
21590 { ac_try='test -s conftest.$ac_objext'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 ac_hi=$ac_mid; break
21597else
21598 echo "$as_me: failed program was:" >&5
21599sed 's/^/| /' conftest.$ac_ext >&5
21600
21601ac_lo=`expr $ac_mid + 1`
21602 if test $ac_lo -le $ac_mid; then
21603 ac_lo= ac_hi=
21604 break
21605 fi
21606 ac_mid=`expr 2 '*' $ac_mid + 1`
21607fi
21608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21609 done
21610else
21611 echo "$as_me: failed program was:" >&5
21612sed 's/^/| /' conftest.$ac_ext >&5
21613
21614cat >conftest.$ac_ext <<_ACEOF
21615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
21620
83d8eb47
MW
21621 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21622 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21623 # error "fake wchar_t"
21624 #endif
21625 #ifdef HAVE_WCHAR_H
21626 # ifdef __CYGWIN__
21627 # include <stddef.h>
21628 # endif
21629 # include <wchar.h>
21630 #endif
21631 #ifdef HAVE_STDLIB_H
21632 # include <stdlib.h>
21633 #endif
21634 #include <stdio.h>
21635
21636
21637
21638int
21639main ()
21640{
21641static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21642test_array [0] = 0
21643
21644 ;
21645 return 0;
21646}
21647_ACEOF
21648rm -f conftest.$ac_objext
21649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21650 (eval $ac_compile) 2>conftest.er1
21651 ac_status=$?
21652 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } &&
c9a66001 21657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; } &&
21663 { ac_try='test -s conftest.$ac_objext'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21666 ac_status=$?
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; }; then
21669 ac_hi=-1 ac_mid=-1
21670 while :; do
21671 cat >conftest.$ac_ext <<_ACEOF
21672/* confdefs.h. */
21673_ACEOF
21674cat confdefs.h >>conftest.$ac_ext
21675cat >>conftest.$ac_ext <<_ACEOF
21676/* end confdefs.h. */
21677
83d8eb47
MW
21678 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21679 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21680 # error "fake wchar_t"
21681 #endif
21682 #ifdef HAVE_WCHAR_H
21683 # ifdef __CYGWIN__
21684 # include <stddef.h>
21685 # endif
21686 # include <wchar.h>
21687 #endif
21688 #ifdef HAVE_STDLIB_H
21689 # include <stdlib.h>
21690 #endif
21691 #include <stdio.h>
21692
21693
21694
21695int
21696main ()
21697{
21698static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21699test_array [0] = 0
21700
21701 ;
21702 return 0;
21703}
21704_ACEOF
21705rm -f conftest.$ac_objext
21706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21707 (eval $ac_compile) 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } &&
c9a66001 21714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21717 ac_status=$?
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); }; } &&
21720 { ac_try='test -s conftest.$ac_objext'
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; }; then
21726 ac_lo=$ac_mid; break
21727else
21728 echo "$as_me: failed program was:" >&5
21729sed 's/^/| /' conftest.$ac_ext >&5
21730
21731ac_hi=`expr '(' $ac_mid ')' - 1`
21732 if test $ac_mid -le $ac_hi; then
21733 ac_lo= ac_hi=
21734 break
21735 fi
21736 ac_mid=`expr 2 '*' $ac_mid`
21737fi
21738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21739 done
21740else
21741 echo "$as_me: failed program was:" >&5
21742sed 's/^/| /' conftest.$ac_ext >&5
21743
21744ac_lo= ac_hi=
21745fi
21746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21747fi
21748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21749# Binary search between lo and hi bounds.
21750while test "x$ac_lo" != "x$ac_hi"; do
21751 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21752 cat >conftest.$ac_ext <<_ACEOF
21753/* confdefs.h. */
21754_ACEOF
21755cat confdefs.h >>conftest.$ac_ext
21756cat >>conftest.$ac_ext <<_ACEOF
21757/* end confdefs.h. */
21758
83d8eb47
MW
21759 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21760 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21761 # error "fake wchar_t"
21762 #endif
21763 #ifdef HAVE_WCHAR_H
21764 # ifdef __CYGWIN__
21765 # include <stddef.h>
21766 # endif
21767 # include <wchar.h>
21768 #endif
21769 #ifdef HAVE_STDLIB_H
21770 # include <stdlib.h>
21771 #endif
21772 #include <stdio.h>
a848cd7e 21773
a848cd7e 21774
a848cd7e 21775
238ecede
MW
21776int
21777main ()
21778{
21779static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21780test_array [0] = 0
a848cd7e 21781
238ecede
MW
21782 ;
21783 return 0;
21784}
21785_ACEOF
21786rm -f conftest.$ac_objext
21787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21788 (eval $ac_compile) 2>conftest.er1
21789 ac_status=$?
21790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } &&
c9a66001 21795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797 (eval $ac_try) 2>&5
21798 ac_status=$?
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; } &&
21801 { ac_try='test -s conftest.$ac_objext'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; }; then
21807 ac_hi=$ac_mid
21808else
21809 echo "$as_me: failed program was:" >&5
21810sed 's/^/| /' conftest.$ac_ext >&5
21811
21812ac_lo=`expr '(' $ac_mid ')' + 1`
21813fi
21814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21815done
21816case $ac_lo in
21817?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21818'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21819See \`config.log' for more details." >&5
21820echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21821See \`config.log' for more details." >&2;}
21822 { (exit 1); exit 1; }; } ;;
21823esac
21824else
21825 if test "$cross_compiling" = yes; then
c9a66001
VZ
21826 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21827echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21828 { (exit 1); exit 1; }; }
a848cd7e
SC
21829else
21830 cat >conftest.$ac_ext <<_ACEOF
21831/* confdefs.h. */
21832_ACEOF
21833cat confdefs.h >>conftest.$ac_ext
21834cat >>conftest.$ac_ext <<_ACEOF
21835/* end confdefs.h. */
21836
83d8eb47
MW
21837 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21838 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21839 # error "fake wchar_t"
21840 #endif
21841 #ifdef HAVE_WCHAR_H
21842 # ifdef __CYGWIN__
21843 # include <stddef.h>
21844 # endif
21845 # include <wchar.h>
21846 #endif
21847 #ifdef HAVE_STDLIB_H
21848 # include <stdlib.h>
21849 #endif
21850 #include <stdio.h>
21851
21852
21853
21854long longval () { return (long) (sizeof (wchar_t)); }
21855unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21856#include <stdio.h>
21857#include <stdlib.h>
21858int
21859main ()
21860{
a848cd7e 21861
238ecede
MW
21862 FILE *f = fopen ("conftest.val", "w");
21863 if (! f)
21864 exit (1);
21865 if (((long) (sizeof (wchar_t))) < 0)
21866 {
21867 long i = longval ();
21868 if (i != ((long) (sizeof (wchar_t))))
21869 exit (1);
21870 fprintf (f, "%ld\n", i);
21871 }
21872 else
21873 {
21874 unsigned long i = ulongval ();
21875 if (i != ((long) (sizeof (wchar_t))))
21876 exit (1);
21877 fprintf (f, "%lu\n", i);
21878 }
21879 exit (ferror (f) || fclose (f) != 0);
21880
21881 ;
21882 return 0;
21883}
a848cd7e
SC
21884_ACEOF
21885rm -f conftest$ac_exeext
21886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21887 (eval $ac_link) 2>&5
21888 ac_status=$?
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
238ecede 21896 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21897else
21898 echo "$as_me: program exited with status $ac_status" >&5
21899echo "$as_me: failed program was:" >&5
21900sed 's/^/| /' conftest.$ac_ext >&5
21901
21902( exit $ac_status )
238ecede
MW
21903{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21904See \`config.log' for more details." >&5
21905echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21906See \`config.log' for more details." >&2;}
21907 { (exit 1); exit 1; }; }
a848cd7e 21908fi
ac1cb8d3 21909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21910fi
a848cd7e 21911fi
238ecede
MW
21912rm -f conftest.val
21913else
21914 ac_cv_sizeof_wchar_t=0
21915fi
21916fi
21917echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21918echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21919cat >>confdefs.h <<_ACEOF
238ecede 21920#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21921_ACEOF
21922
21923
47a7e797
MW
21924if test "$ac_cv_sizeof_wchar_t" != "0"; then
21925 wxUSE_WCHAR_T=yes
21926else
21927 wxUSE_WCHAR_T=no
21928fi
238ecede 21929
ba3d13e1
VZ
21930echo "$as_me:$LINENO: checking for va_copy" >&5
21931echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21932if test "${wx_cv_func_va_copy+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21934else
21935
21936 cat >conftest.$ac_ext <<_ACEOF
21937
21938 #include <stdarg.h>
21939 void foo(char *f, ...)
21940 {
21941 va_list ap1, ap2;
21942 va_start(ap1, f);
21943 va_copy(ap2, ap1);
21944 va_end(ap2);
21945 va_end(ap1);
21946 }
5886b072
VZ
21947 int main()
21948 {
b902e639
VZ
21949 foo("hi", 17);
21950 return 0;
5886b072 21951 }
ba3d13e1
VZ
21952_ACEOF
21953rm -f conftest.$ac_objext conftest$ac_exeext
21954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955 (eval $ac_link) 2>conftest.er1
21956 ac_status=$?
21957 grep -v '^ *+' conftest.er1 >conftest.err
21958 rm -f conftest.er1
21959 cat conftest.err >&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } &&
c9a66001 21962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; } &&
21968 { ac_try='test -s conftest$ac_exeext'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }; then
21974 wx_cv_func_va_copy=yes
21975else
21976 echo "$as_me: failed program was:" >&5
21977sed 's/^/| /' conftest.$ac_ext >&5
21978
21979wx_cv_func_va_copy=no
21980
21981fi
21982rm -f conftest.err conftest.$ac_objext \
21983 conftest$ac_exeext conftest.$ac_ext
21984
21985
21986fi
21987echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21988echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21989
21990if test $wx_cv_func_va_copy = "yes"; then
21991 cat >>confdefs.h <<\_ACEOF
21992#define HAVE_VA_COPY 1
21993_ACEOF
21994
21995else
21996 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21997echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21998if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22000else
22001
22002 if test "$cross_compiling" = yes; then
22003 wx_cv_type_va_list_lvalue=yes
22004
22005else
22006 cat >conftest.$ac_ext <<_ACEOF
22007
22008 #include <stdarg.h>
22009 int foo(char *f, ...)
22010 {
22011 va_list ap1, ap2;
22012 va_start(ap1, f);
22013 ap2 = ap1;
22014 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22015 return 1;
22016 va_end(ap2);
22017 va_end(ap1);
22018 return 0;
22019 }
22020 int main()
22021 {
22022 return foo("hi", 17);
22023 }
22024_ACEOF
22025rm -f conftest$ac_exeext
22026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22027 (eval $ac_link) 2>&5
22028 ac_status=$?
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22036 wx_cv_type_va_list_lvalue=yes
22037else
22038 echo "$as_me: program exited with status $ac_status" >&5
22039echo "$as_me: failed program was:" >&5
22040sed 's/^/| /' conftest.$ac_ext >&5
22041
22042( exit $ac_status )
22043wx_cv_type_va_list_lvalue=no
22044fi
22045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22046fi
22047
22048
22049fi
22050echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22051echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22052
22053 if test $wx_cv_type_va_list_lvalue != "yes"; then
22054 cat >>confdefs.h <<\_ACEOF
22055#define VA_LIST_IS_ARRAY 1
22056_ACEOF
22057
22058 fi
22059fi
22060
a848cd7e
SC
22061# Check whether --enable-largefile or --disable-largefile was given.
22062if test "${enable_largefile+set}" = set; then
22063 enableval="$enable_largefile"
22064
22065fi;
22066if test "$enable_largefile" != no; then
22067 wx_largefile=no
22068
22069 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22070echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22071if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22073else
22074
22075 cat >conftest.$ac_ext <<_ACEOF
22076/* confdefs.h. */
22077_ACEOF
22078cat confdefs.h >>conftest.$ac_ext
22079cat >>conftest.$ac_ext <<_ACEOF
22080/* end confdefs.h. */
22081#define _FILE_OFFSET_BITS 64
22082 #include <sys/types.h>
22083int
22084main ()
22085{
22086typedef struct {
22087 unsigned int field: sizeof(off_t) == 8;
22088} wxlf;
22089
22090 ;
22091 return 0;
22092}
22093_ACEOF
22094rm -f conftest.$ac_objext
22095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22096 (eval $ac_compile) 2>conftest.er1
a848cd7e 22097 ac_status=$?
ac1cb8d3
VS
22098 grep -v '^ *+' conftest.er1 >conftest.err
22099 rm -f conftest.er1
22100 cat conftest.err >&5
a848cd7e
SC
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); } &&
c9a66001 22103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105 (eval $ac_try) 2>&5
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; } &&
22109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22112 ac_status=$?
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; }; then
22115 ac_cv_sys_file_offset_bits=64
22116else
22117 echo "$as_me: failed program was:" >&5
22118sed 's/^/| /' conftest.$ac_ext >&5
22119
22120ac_cv_sys_file_offset_bits=no
22121fi
ac1cb8d3 22122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22123
22124
22125fi
22126echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22127echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22128
22129 if test "$ac_cv_sys_file_offset_bits" != no; then
22130 wx_largefile=yes
22131 cat >>confdefs.h <<_ACEOF
22132#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22133_ACEOF
22134
22135 fi
22136
22137 if test "x$wx_largefile" != "xyes"; then
22138
22139 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22140echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22141if test "${ac_cv_sys_large_files+set}" = set; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22143else
22144
22145 cat >conftest.$ac_ext <<_ACEOF
22146/* confdefs.h. */
22147_ACEOF
22148cat confdefs.h >>conftest.$ac_ext
22149cat >>conftest.$ac_ext <<_ACEOF
22150/* end confdefs.h. */
22151#define _LARGE_FILES 1
22152 #include <sys/types.h>
22153int
22154main ()
22155{
22156typedef struct {
22157 unsigned int field: sizeof(off_t) == 8;
22158} wxlf;
22159
22160 ;
22161 return 0;
22162}
22163_ACEOF
22164rm -f conftest.$ac_objext
22165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22166 (eval $ac_compile) 2>conftest.er1
a848cd7e 22167 ac_status=$?
ac1cb8d3
VS
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
22170 cat conftest.err >&5
a848cd7e
SC
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } &&
c9a66001 22173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175 (eval $ac_try) 2>&5
22176 ac_status=$?
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); }; } &&
22179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22185 ac_cv_sys_large_files=1
22186else
22187 echo "$as_me: failed program was:" >&5
22188sed 's/^/| /' conftest.$ac_ext >&5
22189
22190ac_cv_sys_large_files=no
22191fi
ac1cb8d3 22192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22193
22194
22195fi
22196echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22197echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22198
22199 if test "$ac_cv_sys_large_files" != no; then
22200 wx_largefile=yes
22201 cat >>confdefs.h <<_ACEOF
22202#define _LARGE_FILES $ac_cv_sys_large_files
22203_ACEOF
22204
22205 fi
22206
22207 fi
22208
22209 echo "$as_me:$LINENO: checking if large file support is available" >&5
22210echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22211 if test "x$wx_largefile" = "xyes"; then
22212 cat >>confdefs.h <<\_ACEOF
22213#define HAVE_LARGEFILE_SUPPORT 1
22214_ACEOF
22215
22216 fi
22217 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22218echo "${ECHO_T}$wx_largefile" >&6
22219fi
22220
5b674b9d
DE
22221
22222if test "x$wx_largefile" = "xyes"; then
22223 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22224 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22225
22226 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22227 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22228echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22229if test "${wx_cv_STDC_EXT_required+set}" = set; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22231else
22232
00421666
MW
22233 cat >conftest.$ac_ext <<_ACEOF
22234/* confdefs.h. */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
22238/* end confdefs.h. */
22239
22240int
22241main ()
22242{
22243
22244 #ifndef __STDC_EXT__
22245 choke me
22246 #endif
22247
22248 ;
22249 return 0;
22250}
22251_ACEOF
22252rm -f conftest.$ac_objext
22253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22254 (eval $ac_compile) 2>conftest.er1
22255 ac_status=$?
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } &&
c9a66001 22261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263 (eval $ac_try) 2>&5
22264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest.$ac_objext'
22268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269 (eval $ac_try) 2>&5
22270 ac_status=$?
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); }; }; then
22273 wx_cv_STDC_EXT_required=no
22274else
22275 echo "$as_me: failed program was:" >&5
22276sed 's/^/| /' conftest.$ac_ext >&5
22277
22278wx_cv_STDC_EXT_required=yes
22279
22280fi
22281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22282
22283
22284fi
22285echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22286echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22287 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22288 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22289 fi
22290 fi
5b674b9d 22291 else
5ff751d6 22292 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22293 fi
22294 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22295echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22296if test "${ac_cv_sys_largefile_source+set}" = set; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22298else
22299 while :; do
22300 ac_cv_sys_largefile_source=no
22301 cat >conftest.$ac_ext <<_ACEOF
22302/* confdefs.h. */
22303_ACEOF
22304cat confdefs.h >>conftest.$ac_ext
22305cat >>conftest.$ac_ext <<_ACEOF
22306/* end confdefs.h. */
22307#include <stdio.h>
22308int
22309main ()
22310{
22311return !fseeko;
22312 ;
22313 return 0;
22314}
22315_ACEOF
22316rm -f conftest.$ac_objext
22317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22318 (eval $ac_compile) 2>conftest.er1
22319 ac_status=$?
22320 grep -v '^ *+' conftest.er1 >conftest.err
22321 rm -f conftest.er1
22322 cat conftest.err >&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } &&
c9a66001 22325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22327 (eval $ac_try) 2>&5
22328 ac_status=$?
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); }; } &&
22331 { ac_try='test -s conftest.$ac_objext'
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22334 ac_status=$?
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; }; then
22337 break
22338else
22339 echo "$as_me: failed program was:" >&5
22340sed 's/^/| /' conftest.$ac_ext >&5
22341
22342fi
22343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22344 cat >conftest.$ac_ext <<_ACEOF
22345/* confdefs.h. */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h. */
22350#define _LARGEFILE_SOURCE 1
22351#include <stdio.h>
22352int
22353main ()
22354{
22355return !fseeko;
22356 ;
22357 return 0;
22358}
22359_ACEOF
22360rm -f conftest.$ac_objext
22361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22362 (eval $ac_compile) 2>conftest.er1
22363 ac_status=$?
22364 grep -v '^ *+' conftest.er1 >conftest.err
22365 rm -f conftest.er1
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } &&
c9a66001 22369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371 (eval $ac_try) 2>&5
22372 ac_status=$?
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; } &&
22375 { ac_try='test -s conftest.$ac_objext'
22376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377 (eval $ac_try) 2>&5
22378 ac_status=$?
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); }; }; then
22381 ac_cv_sys_largefile_source=1; break
22382else
22383 echo "$as_me: failed program was:" >&5
22384sed 's/^/| /' conftest.$ac_ext >&5
22385
22386fi
22387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22388 break
22389done
22390fi
22391echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22392echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22393if test "$ac_cv_sys_largefile_source" != no; then
22394
22395cat >>confdefs.h <<_ACEOF
22396#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22397_ACEOF
22398
22399fi
22400rm -f conftest*
22401
22402# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22403# in glibc 2.1.3, but that breaks too many other things.
22404# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22405echo "$as_me:$LINENO: checking for fseeko" >&5
22406echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22407if test "${ac_cv_func_fseeko+set}" = set; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22409else
22410 cat >conftest.$ac_ext <<_ACEOF
22411/* confdefs.h. */
22412_ACEOF
22413cat confdefs.h >>conftest.$ac_ext
22414cat >>conftest.$ac_ext <<_ACEOF
22415/* end confdefs.h. */
22416#include <stdio.h>
22417int
22418main ()
22419{
22420return fseeko && fseeko (stdin, 0, 0);
22421 ;
22422 return 0;
22423}
22424_ACEOF
22425rm -f conftest.$ac_objext conftest$ac_exeext
22426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22427 (eval $ac_link) 2>conftest.er1
22428 ac_status=$?
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } &&
c9a66001 22434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22437 ac_status=$?
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; } &&
22440 { ac_try='test -s conftest$ac_exeext'
22441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442 (eval $ac_try) 2>&5
22443 ac_status=$?
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; }; then
22446 ac_cv_func_fseeko=yes
22447else
22448 echo "$as_me: failed program was:" >&5
22449sed 's/^/| /' conftest.$ac_ext >&5
22450
22451ac_cv_func_fseeko=no
22452fi
22453rm -f conftest.err conftest.$ac_objext \
22454 conftest$ac_exeext conftest.$ac_ext
22455fi
22456echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22457echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22458if test $ac_cv_func_fseeko = yes; then
22459
22460cat >>confdefs.h <<\_ACEOF
22461#define HAVE_FSEEKO 1
22462_ACEOF
22463
22464fi
22465
5b674b9d 22466 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22467 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22468 fi
a848cd7e
SC
22469fi
22470
22471echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22472echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22473if test "${ac_cv_c_bigendian+set}" = set; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22475else
22476 ac_cv_c_bigendian=unknown
22477# See if sys/param.h defines the BYTE_ORDER macro.
22478cat >conftest.$ac_ext <<_ACEOF
22479/* confdefs.h. */
22480_ACEOF
22481cat confdefs.h >>conftest.$ac_ext
22482cat >>conftest.$ac_ext <<_ACEOF
22483/* end confdefs.h. */
22484#include <sys/types.h>
22485#include <sys/param.h>
22486int
22487main ()
22488{
22489
22490#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22491 bogus endian macros
22492#endif
22493 ;
22494 return 0;
22495}
22496_ACEOF
22497rm -f conftest.$ac_objext
22498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22499 (eval $ac_compile) 2>conftest.er1
a848cd7e 22500 ac_status=$?
ac1cb8d3
VS
22501 grep -v '^ *+' conftest.er1 >conftest.err
22502 rm -f conftest.er1
22503 cat conftest.err >&5
a848cd7e
SC
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } &&
c9a66001 22506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22509 ac_status=$?
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; } &&
22512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; }; then
22518 # It does; now see whether it defined to BIG_ENDIAN or not.
22519cat >conftest.$ac_ext <<_ACEOF
22520/* confdefs.h. */
22521_ACEOF
22522cat confdefs.h >>conftest.$ac_ext
22523cat >>conftest.$ac_ext <<_ACEOF
22524/* end confdefs.h. */
22525#include <sys/types.h>
22526#include <sys/param.h>
22527int
22528main ()
22529{
22530
22531#if BYTE_ORDER != BIG_ENDIAN
22532 not big endian
22533#endif
22534 ;
22535 return 0;
22536}
22537_ACEOF
22538rm -f conftest.$ac_objext
22539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22540 (eval $ac_compile) 2>conftest.er1
a848cd7e 22541 ac_status=$?
ac1cb8d3
VS
22542 grep -v '^ *+' conftest.er1 >conftest.err
22543 rm -f conftest.er1
22544 cat conftest.err >&5
a848cd7e
SC
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } &&
c9a66001 22547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549 (eval $ac_try) 2>&5
22550 ac_status=$?
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); }; } &&
22553 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22556 ac_status=$?
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); }; }; then
22559 ac_cv_c_bigendian=yes
22560else
22561 echo "$as_me: failed program was:" >&5
22562sed 's/^/| /' conftest.$ac_ext >&5
22563
22564ac_cv_c_bigendian=no
22565fi
ac1cb8d3 22566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22567else
22568 echo "$as_me: failed program was:" >&5
22569sed 's/^/| /' conftest.$ac_ext >&5
22570
22571fi
ac1cb8d3 22572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22573if test $ac_cv_c_bigendian = unknown; then
22574if test "$cross_compiling" = yes; then
22575 ac_cv_c_bigendian=unknown
22576else
22577 cat >conftest.$ac_ext <<_ACEOF
22578/* confdefs.h. */
22579_ACEOF
22580cat confdefs.h >>conftest.$ac_ext
22581cat >>conftest.$ac_ext <<_ACEOF
22582/* end confdefs.h. */
22583main () {
22584 /* Are we little or big endian? From Harbison&Steele. */
22585 union
22586 {
22587 long l;
22588 char c[sizeof (long)];
22589 } u;
22590 u.l = 1;
22591 exit (u.c[sizeof (long) - 1] == 1);
22592}
22593_ACEOF
22594rm -f conftest$ac_exeext
22595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22596 (eval $ac_link) 2>&5
22597 ac_status=$?
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22602 ac_status=$?
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; }; then
22605 ac_cv_c_bigendian=no
22606else
22607 echo "$as_me: program exited with status $ac_status" >&5
22608echo "$as_me: failed program was:" >&5
22609sed 's/^/| /' conftest.$ac_ext >&5
22610
22611( exit $ac_status )
22612ac_cv_c_bigendian=yes
22613fi
ac1cb8d3 22614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22615fi
22616fi
22617fi
22618echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22619echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22620if test $ac_cv_c_bigendian = unknown; then
22621 { 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
22622echo "$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;}
22623fi
22624if test $ac_cv_c_bigendian = yes; then
22625 cat >>confdefs.h <<\_ACEOF
22626#define WORDS_BIGENDIAN 1
22627_ACEOF
22628
22629fi
22630
22631
a848cd7e
SC
22632
22633
22634
22635 ac_ext=cc
22636ac_cpp='$CXXCPP $CPPFLAGS'
22637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22640
22641
22642
22643for ac_header in iostream
22644do
22645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22646if eval "test \"\${$as_ac_Header+set}\" = set"; then
22647 echo "$as_me:$LINENO: checking for $ac_header" >&5
22648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22649if eval "test \"\${$as_ac_Header+set}\" = set"; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651fi
22652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22654else
22655 # Is the header compilable?
22656echo "$as_me:$LINENO: checking $ac_header usability" >&5
22657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22658cat >conftest.$ac_ext <<_ACEOF
22659/* confdefs.h. */
22660_ACEOF
22661cat confdefs.h >>conftest.$ac_ext
22662cat >>conftest.$ac_ext <<_ACEOF
22663/* end confdefs.h. */
22664$ac_includes_default
22665#include <$ac_header>
22666_ACEOF
22667rm -f conftest.$ac_objext
22668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22669 (eval $ac_compile) 2>conftest.er1
a848cd7e 22670 ac_status=$?
ac1cb8d3
VS
22671 grep -v '^ *+' conftest.er1 >conftest.err
22672 rm -f conftest.er1
22673 cat conftest.err >&5
a848cd7e
SC
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } &&
c9a66001 22676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22679 ac_status=$?
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; } &&
22682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; }; then
22688 ac_header_compiler=yes
22689else
22690 echo "$as_me: failed program was:" >&5
22691sed 's/^/| /' conftest.$ac_ext >&5
22692
22693ac_header_compiler=no
22694fi
ac1cb8d3 22695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22696echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22697echo "${ECHO_T}$ac_header_compiler" >&6
22698
22699# Is the header present?
22700echo "$as_me:$LINENO: checking $ac_header presence" >&5
22701echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22702cat >conftest.$ac_ext <<_ACEOF
22703/* confdefs.h. */
22704_ACEOF
22705cat confdefs.h >>conftest.$ac_ext
22706cat >>conftest.$ac_ext <<_ACEOF
22707/* end confdefs.h. */
22708#include <$ac_header>
22709_ACEOF
22710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22712 ac_status=$?
22713 grep -v '^ *+' conftest.er1 >conftest.err
22714 rm -f conftest.er1
22715 cat conftest.err >&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } >/dev/null; then
22718 if test -s conftest.err; then
22719 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22720 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22721 else
22722 ac_cpp_err=
22723 fi
22724else
22725 ac_cpp_err=yes
22726fi
22727if test -z "$ac_cpp_err"; then
22728 ac_header_preproc=yes
22729else
22730 echo "$as_me: failed program was:" >&5
22731sed 's/^/| /' conftest.$ac_ext >&5
22732
22733 ac_header_preproc=no
22734fi
22735rm -f conftest.err conftest.$ac_ext
22736echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22737echo "${ECHO_T}$ac_header_preproc" >&6
22738
22739# So? What about this header?
ac1cb8d3
VS
22740case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22741 yes:no: )
a848cd7e
SC
22742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22743echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22745echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22746 ac_header_preproc=yes
a848cd7e 22747 ;;
ac1cb8d3 22748 no:yes:* )
a848cd7e
SC
22749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22750echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22752echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22754echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22756echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22758echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22760echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22761 (
22762 cat <<\_ASBOX
ac1cb8d3
VS
22763## ----------------------------------------- ##
22764## Report this to wx-dev@lists.wxwidgets.org ##
22765## ----------------------------------------- ##
a848cd7e
SC
22766_ASBOX
22767 ) |
22768 sed "s/^/$as_me: WARNING: /" >&2
22769 ;;
22770esac
22771echo "$as_me:$LINENO: checking for $ac_header" >&5
22772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22773if eval "test \"\${$as_ac_Header+set}\" = set"; then
22774 echo $ECHO_N "(cached) $ECHO_C" >&6
22775else
ac1cb8d3 22776 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22777fi
22778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22780
22781fi
22782if test `eval echo '${'$as_ac_Header'}'` = yes; then
22783 cat >>confdefs.h <<_ACEOF
22784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22785_ACEOF
22786
22787fi
22788
22789done
22790
22791
22792 if test "$ac_cv_header_iostream" = "yes" ; then
22793 :
22794 else
22795 cat >>confdefs.h <<\_ACEOF
22796#define wxUSE_IOSTREAMH 1
22797_ACEOF
22798
22799 fi
22800
5d7b7554
VZ
22801 ac_ext=cc
22802ac_cpp='$CXXCPP $CPPFLAGS'
22803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22806
22807
22808
22809
22810 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22811echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22812if test "${wx_cv_cpp_bool+set}" = set; then
22813 echo $ECHO_N "(cached) $ECHO_C" >&6
22814else
22815
22816
22817
22818 ac_ext=cc
22819ac_cpp='$CXXCPP $CPPFLAGS'
22820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22823
22824
22825 cat >conftest.$ac_ext <<_ACEOF
22826/* confdefs.h. */
22827_ACEOF
22828cat confdefs.h >>conftest.$ac_ext
22829cat >>conftest.$ac_ext <<_ACEOF
22830/* end confdefs.h. */
22831
22832
22833int
22834main ()
22835{
22836
22837 bool b = true;
22838
22839 return 0;
22840
22841 ;
22842 return 0;
22843}
22844_ACEOF
22845rm -f conftest.$ac_objext
22846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22847 (eval $ac_compile) 2>conftest.er1
a848cd7e 22848 ac_status=$?
ac1cb8d3
VS
22849 grep -v '^ *+' conftest.er1 >conftest.err
22850 rm -f conftest.er1
22851 cat conftest.err >&5
a848cd7e
SC
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } &&
c9a66001 22854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); }; } &&
22860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; }; then
22866
22867 wx_cv_cpp_bool=yes
22868
22869else
22870 echo "$as_me: failed program was:" >&5
22871sed 's/^/| /' conftest.$ac_ext >&5
22872
22873
22874 wx_cv_cpp_bool=no
22875
22876
22877fi
ac1cb8d3 22878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22879
5d7b7554
VZ
22880 ac_ext=cc
22881ac_cpp='$CXXCPP $CPPFLAGS'
22882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22885
22886
22887fi
22888echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22889echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22890
22891 if test "$wx_cv_cpp_bool" = "yes"; then
22892 cat >>confdefs.h <<\_ACEOF
22893#define HAVE_BOOL 1
22894_ACEOF
22895
22896 fi
22897
22898
22899
22900 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22901echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22902if test "${wx_cv_explicit+set}" = set; then
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
22904else
22905
22906
22907
22908 ac_ext=cc
22909ac_cpp='$CXXCPP $CPPFLAGS'
22910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22913
22914
22915 cat >conftest.$ac_ext <<_ACEOF
22916/* confdefs.h. */
22917_ACEOF
22918cat confdefs.h >>conftest.$ac_ext
22919cat >>conftest.$ac_ext <<_ACEOF
22920/* end confdefs.h. */
22921
22922 class Foo { public: explicit Foo(int) {} };
22923
22924int
22925main ()
22926{
22927
22928 return 0;
22929
22930 ;
22931 return 0;
22932}
22933_ACEOF
22934rm -f conftest.$ac_objext
22935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22936 (eval $ac_compile) 2>conftest.er1
a848cd7e 22937 ac_status=$?
ac1cb8d3
VS
22938 grep -v '^ *+' conftest.er1 >conftest.err
22939 rm -f conftest.er1
22940 cat conftest.err >&5
a848cd7e
SC
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
c9a66001 22943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; } &&
22949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951 (eval $ac_try) 2>&5
22952 ac_status=$?
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); }; }; then
22955
22956 cat >conftest.$ac_ext <<_ACEOF
22957/* confdefs.h. */
22958_ACEOF
22959cat confdefs.h >>conftest.$ac_ext
22960cat >>conftest.$ac_ext <<_ACEOF
22961/* end confdefs.h. */
22962
22963 class Foo { public: explicit Foo(int) {} };
22964 static void TakeFoo(const Foo& foo) { }
22965
22966int
22967main ()
22968{
22969
22970 TakeFoo(17);
22971 return 0;
22972
22973 ;
22974 return 0;
22975}
22976_ACEOF
22977rm -f conftest.$ac_objext
22978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22979 (eval $ac_compile) 2>conftest.er1
a848cd7e 22980 ac_status=$?
ac1cb8d3
VS
22981 grep -v '^ *+' conftest.er1 >conftest.err
22982 rm -f conftest.er1
22983 cat conftest.err >&5
a848cd7e
SC
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } &&
c9a66001 22986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; } &&
22992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994 (eval $ac_try) 2>&5
22995 ac_status=$?
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); }; }; then
22998 wx_cv_explicit=no
22999else
23000 echo "$as_me: failed program was:" >&5
23001sed 's/^/| /' conftest.$ac_ext >&5
23002
23003wx_cv_explicit=yes
23004
23005fi
ac1cb8d3 23006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23007
23008else
23009 echo "$as_me: failed program was:" >&5
23010sed 's/^/| /' conftest.$ac_ext >&5
23011
23012wx_cv_explicit=no
23013
23014fi
ac1cb8d3 23015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23016
5d7b7554
VZ
23017 ac_ext=cc
23018ac_cpp='$CXXCPP $CPPFLAGS'
23019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23022
23023
23024fi
23025echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23026echo "${ECHO_T}$wx_cv_explicit" >&6
23027
23028 if test "$wx_cv_explicit" = "yes"; then
23029 cat >>confdefs.h <<\_ACEOF
23030#define HAVE_EXPLICIT 1
23031_ACEOF
23032
23033 fi
23034
23035
23036echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23037echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23038if test "${ac_cv_cxx_const_cast+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040else
23041
23042
23043 ac_ext=cc
23044ac_cpp='$CXXCPP $CPPFLAGS'
23045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23048
23049 cat >conftest.$ac_ext <<_ACEOF
23050/* confdefs.h. */
23051_ACEOF
23052cat confdefs.h >>conftest.$ac_ext
23053cat >>conftest.$ac_ext <<_ACEOF
23054/* end confdefs.h. */
23055
23056int
23057main ()
23058{
23059int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23060 ;
23061 return 0;
23062}
23063_ACEOF
23064rm -f conftest.$ac_objext
23065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23066 (eval $ac_compile) 2>conftest.er1
a848cd7e 23067 ac_status=$?
ac1cb8d3
VS
23068 grep -v '^ *+' conftest.er1 >conftest.err
23069 rm -f conftest.er1
23070 cat conftest.err >&5
a848cd7e
SC
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } &&
c9a66001 23073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075 (eval $ac_try) 2>&5
23076 ac_status=$?
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); }; } &&
23079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; }; then
23085 ac_cv_cxx_const_cast=yes
23086else
23087 echo "$as_me: failed program was:" >&5
23088sed 's/^/| /' conftest.$ac_ext >&5
23089
23090ac_cv_cxx_const_cast=no
23091fi
ac1cb8d3 23092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23093 ac_ext=cc
23094ac_cpp='$CXXCPP $CPPFLAGS'
23095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23098
23099
23100fi
23101echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23102echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23103if test "$ac_cv_cxx_const_cast" = yes; then
23104
23105cat >>confdefs.h <<\_ACEOF
23106#define HAVE_CONST_CAST
23107_ACEOF
23108
23109fi
23110
7714864e
RL
23111echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23112echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23113if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23115else
23116
23117
23118 ac_ext=cc
23119ac_cpp='$CXXCPP $CPPFLAGS'
23120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23123
23124 cat >conftest.$ac_ext <<_ACEOF
23125/* confdefs.h. */
23126_ACEOF
23127cat confdefs.h >>conftest.$ac_ext
23128cat >>conftest.$ac_ext <<_ACEOF
23129/* end confdefs.h. */
23130#include <typeinfo>
23131class Base { public : Base () {} virtual void f () = 0;};
23132class Derived : public Base { public : Derived () {} virtual void f () {} };
23133class Unrelated { public : Unrelated () {} };
23134int g (Unrelated&) { return 0; }
23135int
23136main ()
23137{
23138
23139Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23140 ;
23141 return 0;
23142}
23143_ACEOF
23144rm -f conftest.$ac_objext
23145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23146 (eval $ac_compile) 2>conftest.er1
23147 ac_status=$?
23148 grep -v '^ *+' conftest.er1 >conftest.err
23149 rm -f conftest.er1
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } &&
c9a66001 23153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23156 ac_status=$?
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; } &&
23159 { ac_try='test -s conftest.$ac_objext'
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; }; then
23165 ac_cv_cxx_reinterpret_cast=yes
23166else
23167 echo "$as_me: failed program was:" >&5
23168sed 's/^/| /' conftest.$ac_ext >&5
23169
23170ac_cv_cxx_reinterpret_cast=no
23171fi
23172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23173 ac_ext=cc
23174ac_cpp='$CXXCPP $CPPFLAGS'
23175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23178
23179
23180fi
23181echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23182echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23183if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23184
23185cat >>confdefs.h <<\_ACEOF
23186#define HAVE_REINTERPRET_CAST
23187_ACEOF
23188
23189fi
23190
a848cd7e
SC
23191echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23192echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23193if test "${ac_cv_cxx_static_cast+set}" = set; then
23194 echo $ECHO_N "(cached) $ECHO_C" >&6
23195else
23196
23197
23198 ac_ext=cc
23199ac_cpp='$CXXCPP $CPPFLAGS'
23200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23203
23204 cat >conftest.$ac_ext <<_ACEOF
23205/* confdefs.h. */
23206_ACEOF
23207cat confdefs.h >>conftest.$ac_ext
23208cat >>conftest.$ac_ext <<_ACEOF
23209/* end confdefs.h. */
23210#include <typeinfo>
23211class Base { public : Base () {} virtual void f () = 0; };
23212class Derived : public Base { public : Derived () {} virtual void f () {} };
23213int g (Derived&) { return 0; }
23214int
23215main ()
23216{
23217
23218Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23219 ;
23220 return 0;
23221}
23222_ACEOF
23223rm -f conftest.$ac_objext
23224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23225 (eval $ac_compile) 2>conftest.er1
a848cd7e 23226 ac_status=$?
ac1cb8d3
VS
23227 grep -v '^ *+' conftest.er1 >conftest.err
23228 rm -f conftest.er1
23229 cat conftest.err >&5
a848cd7e
SC
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); } &&
c9a66001 23232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234 (eval $ac_try) 2>&5
23235 ac_status=$?
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); }; } &&
23238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240 (eval $ac_try) 2>&5
23241 ac_status=$?
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; }; then
23244 ac_cv_cxx_static_cast=yes
23245else
23246 echo "$as_me: failed program was:" >&5
23247sed 's/^/| /' conftest.$ac_ext >&5
23248
23249ac_cv_cxx_static_cast=no
23250fi
ac1cb8d3 23251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23252 ac_ext=cc
23253ac_cpp='$CXXCPP $CPPFLAGS'
23254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23257
23258
23259fi
23260echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23261echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23262if test "$ac_cv_cxx_static_cast" = yes; then
23263
23264cat >>confdefs.h <<\_ACEOF
23265#define HAVE_STATIC_CAST
23266_ACEOF
23267
23268fi
23269
23270
3c28b7cb 23271if test "x$SUNCXX" = xyes; then
c92ad099 23272 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23273fi
23274
9122d155 23275if test "x$SUNCC" = xyes; then
c92ad099 23276 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23277fi
23278
0ad5d837 23279if test "x$SGICC" = "xyes"; then
c92ad099 23280 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23281fi
23282if test "x$SGICXX" = "xyes"; then
c92ad099 23283 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23284fi
23285
2eef8513 23286if test "x$HPCC" = "xyes"; then
c92ad099 23287 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23288fi
23289if test "x$HPCXX" = "xyes"; then
c92ad099 23290 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23291fi
23292
23293if test "x$COMPAQCXX" = "xyes"; then
23294 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23295fi
23296
f56c22b4 23297if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23298 if test "$wxUSE_UNICODE" = "yes"; then
23299 std_string="std::wstring"
23300 char_type="wchar_t"
23301 else
23302 std_string="std::string"
23303 char_type="char"
23304 fi
23305
23306 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23307echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23308 cat >conftest.$ac_ext <<_ACEOF
23309/* confdefs.h. */
23310_ACEOF
23311cat confdefs.h >>conftest.$ac_ext
23312cat >>conftest.$ac_ext <<_ACEOF
23313/* end confdefs.h. */
23314#include <string>
a848cd7e
SC
23315int
23316main ()
23317{
f56c22b4 23318$std_string foo;
a848cd7e
SC
23319 ;
23320 return 0;
23321}
23322_ACEOF
23323rm -f conftest.$ac_objext
23324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23325 (eval $ac_compile) 2>conftest.er1
a848cd7e 23326 ac_status=$?
ac1cb8d3
VS
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
a848cd7e
SC
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
c9a66001 23332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23341 ac_status=$?
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
23344 echo "$as_me:$LINENO: result: yes" >&5
23345echo "${ECHO_T}yes" >&6
0a08f02a
MB
23346 cat >>confdefs.h <<\_ACEOF
23347#define HAVE_STD_WSTRING 1
23348_ACEOF
23349
a848cd7e
SC
23350else
23351 echo "$as_me: failed program was:" >&5
23352sed 's/^/| /' conftest.$ac_ext >&5
23353
23354echo "$as_me:$LINENO: result: no" >&5
23355echo "${ECHO_T}no" >&6
f56c22b4
MW
23356 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23357echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23358 cat >conftest.$ac_ext <<_ACEOF
23359/* confdefs.h. */
23360_ACEOF
23361cat confdefs.h >>conftest.$ac_ext
23362cat >>conftest.$ac_ext <<_ACEOF
23363/* end confdefs.h. */
23364
23365 #ifdef HAVE_WCHAR_H
23366 # ifdef __CYGWIN__
23367 # include <stddef.h>
23368 # endif
23369 # include <wchar.h>
23370 #endif
23371 #ifdef HAVE_STDLIB_H
23372 # include <stdlib.h>
23373 #endif
23374 #include <stdio.h>
23375 #include <string>
23376
23377int
23378main ()
23379{
f56c22b4
MW
23380std::basic_string<$char_type> foo;
23381 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23382 ;
23383 return 0;
23384}
23385_ACEOF
23386rm -f conftest.$ac_objext
23387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23388 (eval $ac_compile) 2>conftest.er1
23389 ac_status=$?
23390 grep -v '^ *+' conftest.er1 >conftest.err
23391 rm -f conftest.er1
23392 cat conftest.err >&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } &&
c9a66001 23395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; } &&
23401 { ac_try='test -s conftest.$ac_objext'
23402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403 (eval $ac_try) 2>&5
23404 ac_status=$?
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); }; }; then
23407 echo "$as_me:$LINENO: result: yes" >&5
23408echo "${ECHO_T}yes" >&6
23409else
23410 echo "$as_me: failed program was:" >&5
23411sed 's/^/| /' conftest.$ac_ext >&5
23412
23413echo "$as_me:$LINENO: result: no" >&5
23414echo "${ECHO_T}no" >&6
f56c22b4 23415 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23416 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23417echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23418 { (exit 1); exit 1; }; }
23419 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23420 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23421echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23422 { (exit 1); exit 1; }; }
f56c22b4
MW
23423 else
23424 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23425echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23426 wxUSE_STD_STRING=no
23427 fi
23428
0a08f02a 23429
a848cd7e 23430fi
ac1cb8d3 23431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23432
0a08f02a
MB
23433fi
23434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23435fi
23436
23437if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23438 echo "$as_me:$LINENO: checking for std::istream" >&5
23439echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23440if test "${ac_cv_type_std__istream+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442else
23443 cat >conftest.$ac_ext <<_ACEOF
23444/* confdefs.h. */
23445_ACEOF
23446cat confdefs.h >>conftest.$ac_ext
23447cat >>conftest.$ac_ext <<_ACEOF
23448/* end confdefs.h. */
23449#include <iostream>
23450
23451int
23452main ()
23453{
23454if ((std::istream *) 0)
23455 return 0;
23456if (sizeof (std::istream))
23457 return 0;
23458 ;
23459 return 0;
23460}
23461_ACEOF
23462rm -f conftest.$ac_objext
23463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23464 (eval $ac_compile) 2>conftest.er1
23465 ac_status=$?
23466 grep -v '^ *+' conftest.er1 >conftest.err
23467 rm -f conftest.er1
23468 cat conftest.err >&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } &&
c9a66001 23471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473 (eval $ac_try) 2>&5
23474 ac_status=$?
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); }; } &&
23477 { ac_try='test -s conftest.$ac_objext'
23478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479 (eval $ac_try) 2>&5
23480 ac_status=$?
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); }; }; then
23483 ac_cv_type_std__istream=yes
23484else
23485 echo "$as_me: failed program was:" >&5
23486sed 's/^/| /' conftest.$ac_ext >&5
23487
23488ac_cv_type_std__istream=no
23489fi
23490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23491fi
23492echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23493echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23494if test $ac_cv_type_std__istream = yes; then
23495
23496cat >>confdefs.h <<_ACEOF
23497#define HAVE_STD__ISTREAM 1
23498_ACEOF
23499
23500
23501else
23502 wxUSE_STD_IOSTREAM=no
23503fi
23504echo "$as_me:$LINENO: checking for std::ostream" >&5
23505echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23506if test "${ac_cv_type_std__ostream+set}" = set; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23508else
23509 cat >conftest.$ac_ext <<_ACEOF
23510/* confdefs.h. */
23511_ACEOF
23512cat confdefs.h >>conftest.$ac_ext
23513cat >>conftest.$ac_ext <<_ACEOF
23514/* end confdefs.h. */
23515#include <iostream>
23516
23517int
23518main ()
23519{
23520if ((std::ostream *) 0)
23521 return 0;
23522if (sizeof (std::ostream))
23523 return 0;
23524 ;
23525 return 0;
23526}
23527_ACEOF
23528rm -f conftest.$ac_objext
23529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23530 (eval $ac_compile) 2>conftest.er1
23531 ac_status=$?
23532 grep -v '^ *+' conftest.er1 >conftest.err
23533 rm -f conftest.er1
23534 cat conftest.err >&5
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } &&
c9a66001 23537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23539 (eval $ac_try) 2>&5
23540 ac_status=$?
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); }; } &&
23543 { ac_try='test -s conftest.$ac_objext'
23544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545 (eval $ac_try) 2>&5
23546 ac_status=$?
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; }; then
23549 ac_cv_type_std__ostream=yes
23550else
23551 echo "$as_me: failed program was:" >&5
23552sed 's/^/| /' conftest.$ac_ext >&5
23553
23554ac_cv_type_std__ostream=no
23555fi
23556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23557fi
23558echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23559echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23560if test $ac_cv_type_std__ostream = yes; then
23561
23562cat >>confdefs.h <<_ACEOF
23563#define HAVE_STD__OSTREAM 1
23564_ACEOF
23565
23566
23567else
23568 wxUSE_STD_IOSTREAM=no
23569fi
23570
23571
23572 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23573 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23574 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23575echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23576 { (exit 1); exit 1; }; }
23577 else
23578 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23579echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23580 fi
f56c22b4 23581 fi
0a08f02a
MB
23582fi
23583
23584if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23585 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23586echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23587 cat >conftest.$ac_ext <<_ACEOF
23588/* confdefs.h. */
23589_ACEOF
23590cat confdefs.h >>conftest.$ac_ext
23591cat >>conftest.$ac_ext <<_ACEOF
23592/* end confdefs.h. */
23593#include <string>
0a08f02a
MB
23594 #include <functional>
23595 #include <algorithm>
23596 #include <vector>
23597 #include <list>
a848cd7e
SC
23598int
23599main ()
23600{
0a08f02a
MB
23601std::vector<int> moo;
23602 std::list<int> foo;
23603 std::vector<int>::iterator it =
23604 std::find_if(moo.begin(), moo.end(),
23605 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23606 ;
23607 return 0;
23608}
23609_ACEOF
23610rm -f conftest.$ac_objext
23611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23612 (eval $ac_compile) 2>conftest.er1
a848cd7e 23613 ac_status=$?
ac1cb8d3
VS
23614 grep -v '^ *+' conftest.er1 >conftest.err
23615 rm -f conftest.er1
23616 cat conftest.err >&5
a848cd7e
SC
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } &&
c9a66001 23619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621 (eval $ac_try) 2>&5
23622 ac_status=$?
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; } &&
23625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627 (eval $ac_try) 2>&5
23628 ac_status=$?
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); }; }; then
23631 echo "$as_me:$LINENO: result: yes" >&5
23632echo "${ECHO_T}yes" >&6
a848cd7e
SC
23633else
23634 echo "$as_me: failed program was:" >&5
23635sed 's/^/| /' conftest.$ac_ext >&5
23636
23637echo "$as_me:$LINENO: result: no" >&5
23638echo "${ECHO_T}no" >&6
0a08f02a
MB
23639 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23640echo "$as_me: error: Basic STL functionality missing" >&2;}
23641 { (exit 1); exit 1; }; }
a848cd7e 23642fi
ac1cb8d3 23643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23644
23645 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23646echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23647 cat >conftest.$ac_ext <<_ACEOF
23648/* confdefs.h. */
23649_ACEOF
23650cat confdefs.h >>conftest.$ac_ext
23651cat >>conftest.$ac_ext <<_ACEOF
23652/* end confdefs.h. */
23653#include <string>
23654int
23655main ()
23656{
23657std::string foo, bar;
23658 foo.compare(bar);
23659 foo.compare(1, 1, bar);
23660 foo.compare(1, 1, bar, 1, 1);
23661 foo.compare("");
23662 foo.compare(1, 1, "");
23663 foo.compare(1, 1, "", 2);
23664 ;
23665 return 0;
23666}
23667_ACEOF
23668rm -f conftest.$ac_objext
23669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23670 (eval $ac_compile) 2>conftest.er1
a848cd7e 23671 ac_status=$?
ac1cb8d3
VS
23672 grep -v '^ *+' conftest.er1 >conftest.err
23673 rm -f conftest.er1
23674 cat conftest.err >&5
a848cd7e
SC
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } &&
c9a66001 23677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 echo "$as_me:$LINENO: result: yes" >&5
23690echo "${ECHO_T}yes" >&6
23691 cat >>confdefs.h <<\_ACEOF
23692#define HAVE_STD_STRING_COMPARE 1
23693_ACEOF
23694
23695else
23696 echo "$as_me: failed program was:" >&5
23697sed 's/^/| /' conftest.$ac_ext >&5
23698
23699echo "$as_me:$LINENO: result: no" >&5
23700echo "${ECHO_T}no" >&6
23701fi
ac1cb8d3 23702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23703
23704 if test "${ac_cv_header_hash_map+set}" = set; then
23705 echo "$as_me:$LINENO: checking for hash_map" >&5
23706echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23707if test "${ac_cv_header_hash_map+set}" = set; then
23708 echo $ECHO_N "(cached) $ECHO_C" >&6
23709fi
23710echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23711echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23712else
23713 # Is the header compilable?
23714echo "$as_me:$LINENO: checking hash_map usability" >&5
23715echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23716cat >conftest.$ac_ext <<_ACEOF
23717/* confdefs.h. */
23718_ACEOF
23719cat confdefs.h >>conftest.$ac_ext
23720cat >>conftest.$ac_ext <<_ACEOF
23721/* end confdefs.h. */
23722$ac_includes_default
23723#include <hash_map>
23724_ACEOF
23725rm -f conftest.$ac_objext
23726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23727 (eval $ac_compile) 2>conftest.er1
bdcade0a 23728 ac_status=$?
ac1cb8d3
VS
23729 grep -v '^ *+' conftest.er1 >conftest.err
23730 rm -f conftest.er1
23731 cat conftest.err >&5
bdcade0a
MB
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } &&
c9a66001 23734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; } &&
23740 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; }; then
23746 ac_header_compiler=yes
23747else
23748 echo "$as_me: failed program was:" >&5
23749sed 's/^/| /' conftest.$ac_ext >&5
23750
23751ac_header_compiler=no
23752fi
ac1cb8d3 23753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23755echo "${ECHO_T}$ac_header_compiler" >&6
23756
23757# Is the header present?
23758echo "$as_me:$LINENO: checking hash_map presence" >&5
23759echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23760cat >conftest.$ac_ext <<_ACEOF
23761/* confdefs.h. */
23762_ACEOF
23763cat confdefs.h >>conftest.$ac_ext
23764cat >>conftest.$ac_ext <<_ACEOF
23765/* end confdefs.h. */
23766#include <hash_map>
23767_ACEOF
23768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23770 ac_status=$?
23771 grep -v '^ *+' conftest.er1 >conftest.err
23772 rm -f conftest.er1
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } >/dev/null; then
23776 if test -s conftest.err; then
23777 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23778 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23779 else
23780 ac_cpp_err=
23781 fi
23782else
23783 ac_cpp_err=yes
23784fi
23785if test -z "$ac_cpp_err"; then
23786 ac_header_preproc=yes
23787else
23788 echo "$as_me: failed program was:" >&5
23789sed 's/^/| /' conftest.$ac_ext >&5
23790
23791 ac_header_preproc=no
23792fi
23793rm -f conftest.err conftest.$ac_ext
23794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23795echo "${ECHO_T}$ac_header_preproc" >&6
23796
23797# So? What about this header?
ac1cb8d3
VS
23798case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23799 yes:no: )
bdcade0a
MB
23800 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23801echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23802 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23803echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23804 ac_header_preproc=yes
bdcade0a 23805 ;;
ac1cb8d3 23806 no:yes:* )
bdcade0a
MB
23807 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23808echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23809 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23810echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23811 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23812echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23813 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23814echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23815 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23816echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23817 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23818echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23819 (
23820 cat <<\_ASBOX
ac1cb8d3
VS
23821## ----------------------------------------- ##
23822## Report this to wx-dev@lists.wxwidgets.org ##
23823## ----------------------------------------- ##
bdcade0a
MB
23824_ASBOX
23825 ) |
23826 sed "s/^/$as_me: WARNING: /" >&2
23827 ;;
23828esac
23829echo "$as_me:$LINENO: checking for hash_map" >&5
23830echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23831if test "${ac_cv_header_hash_map+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23833else
23834 ac_cv_header_hash_map=$ac_header_preproc
23835fi
23836echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23837echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23838
23839fi
23840if test $ac_cv_header_hash_map = yes; then
23841 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23842echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23843 cat >conftest.$ac_ext <<_ACEOF
23844/* confdefs.h. */
23845_ACEOF
23846cat confdefs.h >>conftest.$ac_ext
23847cat >>conftest.$ac_ext <<_ACEOF
23848/* end confdefs.h. */
23849#include <hash_map>
23850 #include <hash_set>
23851int
23852main ()
23853{
23854std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23855 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23856 ;
23857 return 0;
23858}
23859_ACEOF
23860rm -f conftest.$ac_objext
23861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23862 (eval $ac_compile) 2>conftest.er1
bdcade0a 23863 ac_status=$?
ac1cb8d3
VS
23864 grep -v '^ *+' conftest.er1 >conftest.err
23865 rm -f conftest.er1
23866 cat conftest.err >&5
bdcade0a
MB
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); } &&
c9a66001 23869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; } &&
23875 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; }; then
23881 echo "$as_me:$LINENO: result: yes" >&5
23882echo "${ECHO_T}yes" >&6
23883 cat >>confdefs.h <<\_ACEOF
23884#define HAVE_HASH_MAP 1
23885_ACEOF
23886
23887 cat >>confdefs.h <<\_ACEOF
23888#define HAVE_STD_HASH_MAP 1
23889_ACEOF
23890
23891else
23892 echo "$as_me: failed program was:" >&5
23893sed 's/^/| /' conftest.$ac_ext >&5
23894
23895echo "$as_me:$LINENO: result: no" >&5
23896echo "${ECHO_T}no" >&6
23897fi
ac1cb8d3 23898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23899
23900fi
23901
23902
23903
23904 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23905 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23906echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23907if test "${ac_cv_header_ext_hash_map+set}" = set; then
23908 echo $ECHO_N "(cached) $ECHO_C" >&6
23909fi
23910echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23911echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23912else
23913 # Is the header compilable?
23914echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23915echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23916cat >conftest.$ac_ext <<_ACEOF
23917/* confdefs.h. */
23918_ACEOF
23919cat confdefs.h >>conftest.$ac_ext
23920cat >>conftest.$ac_ext <<_ACEOF
23921/* end confdefs.h. */
23922$ac_includes_default
23923#include <ext/hash_map>
23924_ACEOF
23925rm -f conftest.$ac_objext
23926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23927 (eval $ac_compile) 2>conftest.er1
bdcade0a 23928 ac_status=$?
ac1cb8d3
VS
23929 grep -v '^ *+' conftest.er1 >conftest.err
23930 rm -f conftest.er1
23931 cat conftest.err >&5
bdcade0a
MB
23932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); } &&
c9a66001 23934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936 (eval $ac_try) 2>&5
23937 ac_status=$?
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); }; } &&
23940 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942 (eval $ac_try) 2>&5
23943 ac_status=$?
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); }; }; then
23946 ac_header_compiler=yes
23947else
23948 echo "$as_me: failed program was:" >&5
23949sed 's/^/| /' conftest.$ac_ext >&5
23950
23951ac_header_compiler=no
23952fi
ac1cb8d3 23953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23955echo "${ECHO_T}$ac_header_compiler" >&6
23956
23957# Is the header present?
23958echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23959echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23960cat >conftest.$ac_ext <<_ACEOF
23961/* confdefs.h. */
23962_ACEOF
23963cat confdefs.h >>conftest.$ac_ext
23964cat >>conftest.$ac_ext <<_ACEOF
23965/* end confdefs.h. */
23966#include <ext/hash_map>
23967_ACEOF
23968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23970 ac_status=$?
23971 grep -v '^ *+' conftest.er1 >conftest.err
23972 rm -f conftest.er1
23973 cat conftest.err >&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); } >/dev/null; then
23976 if test -s conftest.err; then
23977 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23978 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23979 else
23980 ac_cpp_err=
23981 fi
23982else
23983 ac_cpp_err=yes
23984fi
23985if test -z "$ac_cpp_err"; then
23986 ac_header_preproc=yes
23987else
23988 echo "$as_me: failed program was:" >&5
23989sed 's/^/| /' conftest.$ac_ext >&5
23990
23991 ac_header_preproc=no
23992fi
23993rm -f conftest.err conftest.$ac_ext
23994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23995echo "${ECHO_T}$ac_header_preproc" >&6
23996
23997# So? What about this header?
ac1cb8d3
VS
23998case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23999 yes:no: )
bdcade0a
MB
24000 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24001echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24002 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24003echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24004 ac_header_preproc=yes
bdcade0a 24005 ;;
ac1cb8d3 24006 no:yes:* )
bdcade0a
MB
24007 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24008echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24009 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24010echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24011 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24012echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24013 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24014echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24015 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24016echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24017 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24018echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24019 (
24020 cat <<\_ASBOX
ac1cb8d3
VS
24021## ----------------------------------------- ##
24022## Report this to wx-dev@lists.wxwidgets.org ##
24023## ----------------------------------------- ##
bdcade0a
MB
24024_ASBOX
24025 ) |
24026 sed "s/^/$as_me: WARNING: /" >&2
24027 ;;
24028esac
24029echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24030echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24031if test "${ac_cv_header_ext_hash_map+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24033else
24034 ac_cv_header_ext_hash_map=$ac_header_preproc
24035fi
24036echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24037echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24038
24039fi
24040if test $ac_cv_header_ext_hash_map = yes; then
24041 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24042echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24043 cat >conftest.$ac_ext <<_ACEOF
24044/* confdefs.h. */
24045_ACEOF
24046cat confdefs.h >>conftest.$ac_ext
24047cat >>conftest.$ac_ext <<_ACEOF
24048/* end confdefs.h. */
24049#include <ext/hash_map>
24050 #include <ext/hash_set>
24051int
24052main ()
24053{
24054__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24055 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24056 ;
24057 return 0;
24058}
24059_ACEOF
24060rm -f conftest.$ac_objext
24061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24062 (eval $ac_compile) 2>conftest.er1
bdcade0a 24063 ac_status=$?
ac1cb8d3
VS
24064 grep -v '^ *+' conftest.er1 >conftest.err
24065 rm -f conftest.er1
24066 cat conftest.err >&5
bdcade0a
MB
24067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068 (exit $ac_status); } &&
c9a66001 24069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071 (eval $ac_try) 2>&5
24072 ac_status=$?
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; } &&
24075 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24078 ac_status=$?
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); }; }; then
24081 echo "$as_me:$LINENO: result: yes" >&5
24082echo "${ECHO_T}yes" >&6
24083 cat >>confdefs.h <<\_ACEOF
24084#define HAVE_EXT_HASH_MAP 1
24085_ACEOF
24086
24087 cat >>confdefs.h <<\_ACEOF
24088#define HAVE_GNU_CXX_HASH_MAP 1
24089_ACEOF
24090
24091else
24092 echo "$as_me: failed program was:" >&5
24093sed 's/^/| /' conftest.$ac_ext >&5
24094
24095echo "$as_me:$LINENO: result: no" >&5
24096echo "${ECHO_T}no" >&6
24097fi
ac1cb8d3 24098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24099
24100fi
24101
24102
a848cd7e
SC
24103fi
24104
24105
24106SEARCH_INCLUDE="\
24107 /usr/local/include \
24108 \
24109 /usr/Motif-2.1/include \
24110 /usr/Motif-1.2/include \
24111 /usr/include/Motif1.2 \
a848cd7e
SC
24112 \
24113 /usr/dt/include \
24114 /usr/openwin/include \
24115 \
24116 /usr/include/Xm \
24117 \
24118 /usr/X11R6/include \
24119 /usr/X11R6.4/include \
24120 /usr/X11R5/include \
24121 /usr/X11R4/include \
24122 \
24123 /usr/include/X11R6 \
24124 /usr/include/X11R5 \
24125 /usr/include/X11R4 \
24126 \
24127 /usr/local/X11R6/include \
24128 /usr/local/X11R5/include \
24129 /usr/local/X11R4/include \
24130 \
24131 /usr/local/include/X11R6 \
24132 /usr/local/include/X11R5 \
24133 /usr/local/include/X11R4 \
24134 \
24135 /usr/X11/include \
24136 /usr/include/X11 \
24137 /usr/local/X11/include \
24138 /usr/local/include/X11 \
24139 \
a848cd7e 24140 /usr/XFree86/include/X11 \
e051b34e
MW
24141 /usr/pkg/include \
24142 \
a848cd7e
SC
24143 /usr/openwin/share/include"
24144
6f9cf1e6 24145echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24146echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24147
24148case "${host}" in
24149 *-*-irix6* )
24150 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24151 echo $ECHO_N "(cached) $ECHO_C" >&6
24152else
24153
c687b303
VZ
24154 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24155 for e in a so sl dylib dll.a; do
24156 libc="$d/libc.$e"
24157 if test -f $libc; then
24158 save_LIBS="$LIBS"
24159 LIBS="$libc"
24160 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24161int main() { return 0; }
24162_ACEOF
24163rm -f conftest.$ac_objext conftest$ac_exeext
24164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24165 (eval $ac_link) 2>conftest.er1
24166 ac_status=$?
24167 grep -v '^ *+' conftest.er1 >conftest.err
24168 rm -f conftest.er1
24169 cat conftest.err >&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); } &&
c9a66001 24172 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24174 (eval $ac_try) 2>&5
24175 ac_status=$?
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); }; } &&
24178 { ac_try='test -s conftest$ac_exeext'
24179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24180 (eval $ac_try) 2>&5
24181 ac_status=$?
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); }; }; then
24184 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24185else
24186 echo "$as_me: failed program was:" >&5
24187sed 's/^/| /' conftest.$ac_ext >&5
24188
24189fi
24190rm -f conftest.err conftest.$ac_objext \
24191 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24192 LIBS="$save_LIBS"
24193 if test "x$wx_cv_std_libpath" != "x"; then
24194 break 2
24195 fi
24196 fi
24197 done
24198 done
24199 if test "x$wx_cv_std_libpath" = "x"; then
24200 wx_cv_std_libpath="lib"
0ad5d837 24201 fi
0ad5d837
VZ
24202
24203
24204fi
6f9cf1e6
MW
24205
24206 ;;
24207
24208 *-*-solaris2* )
24209 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24210 wx_cv_std_libpath="lib/64"
24211 else
24212 wx_cv_std_libpath="lib"
24213 fi
24214 ;;
24215
24216 *-*-linux* )
24217 if test "$ac_cv_sizeof_void_p" = 8 -a \
24218 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24219 wx_cv_std_libpath="lib64"
24220 else
24221 wx_cv_std_libpath="lib"
24222 fi
c687b303
VZ
24223 ;;
24224
24225 *)
24226 wx_cv_std_libpath="lib";
24227 ;;
24228esac
0ad5d837 24229
6f9cf1e6
MW
24230echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24231echo "${ECHO_T}$wx_cv_std_libpath" >&6
24232
24233SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24234
3eca31dc
MW
24235if test "$build" != "$host" -a "$GCC" = yes; then
24236 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24237 cross_root=`dirname $cross_root`
24238 cross_root=`dirname $cross_root`
24239
24240 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24241 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24242 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24243
24244 if test -z "$PKG_CONFIG_PATH"; then
24245 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24246 export PKG_CONFIG_PATH
24247 fi
24248
24249 if test -z "$x_includes" -o "$x_includes" = NONE; then
24250
24251ac_find_includes=
24252for ac_dir in $SEARCH_INCLUDE /usr/include;
24253 do
24254 if test -f "$ac_dir/X11/Intrinsic.h"; then
24255 ac_find_includes=$ac_dir
24256 break
24257 fi
24258 done
24259
24260 x_includes=$ac_find_includes
24261 fi
24262 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24263
0ad5d837
VZ
24264 ac_find_libraries=
24265 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24266 do
24267 for ac_extension in a so sl dylib dll.a; do
24268 if test -f "$ac_dir/libXt.$ac_extension"; then
24269 ac_find_libraries=$ac_dir
24270 break 2
24271 fi
24272 done
24273 done
24274
24275 x_libraries=$ac_find_libraries
24276 fi
24277 fi
24278fi
24279
a848cd7e
SC
24280
24281cat >confcache <<\_ACEOF
24282# This file is a shell script that caches the results of configure
24283# tests run on this system so they can be shared between configure
24284# scripts and configure runs, see configure's option --config-cache.
24285# It is not useful on other systems. If it contains results you don't
24286# want to keep, you may remove or edit it.
24287#
24288# config.status only pays attention to the cache file if you give it
24289# the --recheck option to rerun configure.
24290#
24291# `ac_cv_env_foo' variables (set or unset) will be overridden when
24292# loading this file, other *unset* `ac_cv_foo' will be assigned the
24293# following values.
24294
24295_ACEOF
24296
24297# The following way of writing the cache mishandles newlines in values,
24298# but we know of no workaround that is simple, portable, and efficient.
24299# So, don't put newlines in cache variables' values.
24300# Ultrix sh set writes to stderr and can't be redirected directly,
24301# and sets the high bit in the cache file unless we assign to the vars.
24302{
24303 (set) 2>&1 |
24304 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24305 *ac_space=\ *)
24306 # `set' does not quote correctly, so add quotes (double-quote
24307 # substitution turns \\\\ into \\, and sed turns \\ into \).
24308 sed -n \
ac1cb8d3
VS
24309 "s/'/'\\\\''/g;
24310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24311 ;;
24312 *)
24313 # `set' quotes correctly as required by POSIX, so do not add quotes.
24314 sed -n \
ac1cb8d3 24315 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24316 ;;
24317 esac;
24318} |
24319 sed '
24320 t clear
24321 : clear
24322 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24323 t end
24324 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24325 : end' >>confcache
24326if diff $cache_file confcache >/dev/null 2>&1; then :; else
24327 if test -w $cache_file; then
24328 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24329 cat confcache >$cache_file
24330 else
24331 echo "not updating unwritable cache $cache_file"
24332 fi
24333fi
24334rm -f confcache
24335
24336if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24337 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24338echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24339if test "${wx_cv_lib_glibc21+set}" = set; then
24340 echo $ECHO_N "(cached) $ECHO_C" >&6
24341else
24342
24343 cat >conftest.$ac_ext <<_ACEOF
24344/* confdefs.h. */
24345_ACEOF
24346cat confdefs.h >>conftest.$ac_ext
24347cat >>conftest.$ac_ext <<_ACEOF
24348/* end confdefs.h. */
24349#include <features.h>
24350int
24351main ()
24352{
24353
24354 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24355 not glibc 2.1
a848cd7e
SC
24356 #endif
24357
24358 ;
24359 return 0;
24360}
24361_ACEOF
24362rm -f conftest.$ac_objext
24363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24364 (eval $ac_compile) 2>conftest.er1
a848cd7e 24365 ac_status=$?
ac1cb8d3
VS
24366 grep -v '^ *+' conftest.er1 >conftest.err
24367 rm -f conftest.er1
24368 cat conftest.err >&5
a848cd7e
SC
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); } &&
c9a66001 24371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; } &&
24377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; }; then
24383
24384 wx_cv_lib_glibc21=yes
24385
24386else
24387 echo "$as_me: failed program was:" >&5
24388sed 's/^/| /' conftest.$ac_ext >&5
24389
24390
24391 wx_cv_lib_glibc21=no
24392
24393
24394fi
ac1cb8d3 24395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24396
24397fi
24398echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24399echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24400 if test "$wx_cv_lib_glibc21" = "yes"; then
24401 cat >>confdefs.h <<\_ACEOF
24402#define wxHAVE_GLIBC2 1
24403_ACEOF
24404
24405 fi
24406fi
24407
24408if test "x$wx_cv_lib_glibc21" = "xyes"; then
24409 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24410 cat >>confdefs.h <<\_ACEOF
24411#define _GNU_SOURCE 1
24412_ACEOF
24413
24414 fi
24415fi
24416
5d7b7554
VZ
24417have_cos=0
24418have_floor=0
a848cd7e 24419
5d7b7554
VZ
24420for ac_func in cos
24421do
24422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24423echo "$as_me:$LINENO: checking for $ac_func" >&5
24424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24425if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24426 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24427else
5d7b7554 24428 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24429/* confdefs.h. */
24430_ACEOF
24431cat confdefs.h >>conftest.$ac_ext
24432cat >>conftest.$ac_ext <<_ACEOF
24433/* end confdefs.h. */
5d7b7554
VZ
24434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24436#define $ac_func innocuous_$ac_func
24437
24438/* System header to define __stub macros and hopefully few prototypes,
24439 which can conflict with char $ac_func (); below.
24440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24441 <limits.h> exists even on freestanding compilers. */
24442
24443#ifdef __STDC__
24444# include <limits.h>
24445#else
24446# include <assert.h>
24447#endif
24448
24449#undef $ac_func
24450
24451/* Override any gcc2 internal prototype to avoid an error. */
24452#ifdef __cplusplus
24453extern "C"
24454{
24455#endif
24456/* We use char because int might match the return type of a gcc2
24457 builtin and then its argument prototype would still apply. */
24458char $ac_func ();
24459/* The GNU C library defines this for functions which it implements
24460 to always fail with ENOSYS. Some functions are actually named
24461 something starting with __ and the normal name is an alias. */
24462#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24463choke me
24464#else
24465char (*f) () = $ac_func;
24466#endif
24467#ifdef __cplusplus
24468}
24469#endif
24470
24471int
24472main ()
24473{
24474return f != $ac_func;
24475 ;
24476 return 0;
24477}
a848cd7e 24478_ACEOF
5d7b7554
VZ
24479rm -f conftest.$ac_objext conftest$ac_exeext
24480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24481 (eval $ac_link) 2>conftest.er1
a848cd7e 24482 ac_status=$?
ac1cb8d3
VS
24483 grep -v '^ *+' conftest.er1 >conftest.err
24484 rm -f conftest.er1
24485 cat conftest.err >&5
a848cd7e
SC
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); } &&
c9a66001 24488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24490 (eval $ac_try) 2>&5
24491 ac_status=$?
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); }; } &&
5d7b7554 24494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496 (eval $ac_try) 2>&5
24497 ac_status=$?
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; }; then
5d7b7554 24500 eval "$as_ac_var=yes"
a848cd7e
SC
24501else
24502 echo "$as_me: failed program was:" >&5
24503sed 's/^/| /' conftest.$ac_ext >&5
24504
5d7b7554 24505eval "$as_ac_var=no"
a848cd7e 24506fi
5d7b7554
VZ
24507rm -f conftest.err conftest.$ac_objext \
24508 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24509fi
5d7b7554
VZ
24510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24511echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24512if test `eval echo '${'$as_ac_var'}'` = yes; then
24513 cat >>confdefs.h <<_ACEOF
24514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24515_ACEOF
24516 have_cos=1
a848cd7e 24517fi
5d7b7554 24518done
a848cd7e 24519
ab0f0edd 24520
5d7b7554 24521for ac_func in floor
a848cd7e
SC
24522do
24523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24524echo "$as_me:$LINENO: checking for $ac_func" >&5
24525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24526if eval "test \"\${$as_ac_var+set}\" = set"; then
24527 echo $ECHO_N "(cached) $ECHO_C" >&6
24528else
24529 cat >conftest.$ac_ext <<_ACEOF
24530/* confdefs.h. */
24531_ACEOF
24532cat confdefs.h >>conftest.$ac_ext
24533cat >>conftest.$ac_ext <<_ACEOF
24534/* end confdefs.h. */
ac1cb8d3
VS
24535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24537#define $ac_func innocuous_$ac_func
24538
a848cd7e
SC
24539/* System header to define __stub macros and hopefully few prototypes,
24540 which can conflict with char $ac_func (); below.
24541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24542 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24543
a848cd7e
SC
24544#ifdef __STDC__
24545# include <limits.h>
24546#else
24547# include <assert.h>
24548#endif
ac1cb8d3
VS
24549
24550#undef $ac_func
24551
a848cd7e
SC
24552/* Override any gcc2 internal prototype to avoid an error. */
24553#ifdef __cplusplus
24554extern "C"
24555{
24556#endif
24557/* We use char because int might match the return type of a gcc2
24558 builtin and then its argument prototype would still apply. */
24559char $ac_func ();
24560/* The GNU C library defines this for functions which it implements
24561 to always fail with ENOSYS. Some functions are actually named
24562 something starting with __ and the normal name is an alias. */
24563#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24564choke me
24565#else
24566char (*f) () = $ac_func;
24567#endif
24568#ifdef __cplusplus
24569}
24570#endif
24571
24572int
24573main ()
24574{
24575return f != $ac_func;
24576 ;
24577 return 0;
24578}
24579_ACEOF
24580rm -f conftest.$ac_objext conftest$ac_exeext
24581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24582 (eval $ac_link) 2>conftest.er1
a848cd7e 24583 ac_status=$?
ac1cb8d3
VS
24584 grep -v '^ *+' conftest.er1 >conftest.err
24585 rm -f conftest.er1
24586 cat conftest.err >&5
a848cd7e
SC
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } &&
c9a66001 24589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; } &&
24595 { ac_try='test -s conftest$ac_exeext'
24596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597 (eval $ac_try) 2>&5
24598 ac_status=$?
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); }; }; then
24601 eval "$as_ac_var=yes"
24602else
24603 echo "$as_me: failed program was:" >&5
24604sed 's/^/| /' conftest.$ac_ext >&5
24605
24606eval "$as_ac_var=no"
24607fi
24608rm -f conftest.err conftest.$ac_objext \
24609 conftest$ac_exeext conftest.$ac_ext
24610fi
24611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24612echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24613if test `eval echo '${'$as_ac_var'}'` = yes; then
24614 cat >>confdefs.h <<_ACEOF
24615#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24616_ACEOF
24617 have_floor=1
24618fi
24619done
24620
24621echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24622echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24623if test "$have_cos" = 1 -a "$have_floor" = 1; then
24624 echo "$as_me:$LINENO: result: yes" >&5
24625echo "${ECHO_T}yes" >&6
24626else
24627 echo "$as_me:$LINENO: result: no" >&5
24628echo "${ECHO_T}no" >&6
24629 LIBS="$LIBS -lm"
24630 # use different functions to avoid configure caching
24631 have_sin=0
24632 have_ceil=0
24633
24634for ac_func in sin
24635do
24636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24637echo "$as_me:$LINENO: checking for $ac_func" >&5
24638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24639if eval "test \"\${$as_ac_var+set}\" = set"; then
24640 echo $ECHO_N "(cached) $ECHO_C" >&6
24641else
24642 cat >conftest.$ac_ext <<_ACEOF
24643/* confdefs.h. */
24644_ACEOF
24645cat confdefs.h >>conftest.$ac_ext
24646cat >>conftest.$ac_ext <<_ACEOF
24647/* end confdefs.h. */
24648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24650#define $ac_func innocuous_$ac_func
24651
24652/* System header to define __stub macros and hopefully few prototypes,
24653 which can conflict with char $ac_func (); below.
24654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24655 <limits.h> exists even on freestanding compilers. */
24656
24657#ifdef __STDC__
24658# include <limits.h>
24659#else
24660# include <assert.h>
24661#endif
24662
24663#undef $ac_func
24664
24665/* Override any gcc2 internal prototype to avoid an error. */
24666#ifdef __cplusplus
24667extern "C"
24668{
24669#endif
24670/* We use char because int might match the return type of a gcc2
24671 builtin and then its argument prototype would still apply. */
24672char $ac_func ();
24673/* The GNU C library defines this for functions which it implements
24674 to always fail with ENOSYS. Some functions are actually named
24675 something starting with __ and the normal name is an alias. */
24676#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24677choke me
24678#else
24679char (*f) () = $ac_func;
24680#endif
24681#ifdef __cplusplus
24682}
24683#endif
24684
24685int
24686main ()
24687{
24688return f != $ac_func;
24689 ;
24690 return 0;
24691}
24692_ACEOF
24693rm -f conftest.$ac_objext conftest$ac_exeext
24694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24695 (eval $ac_link) 2>conftest.er1
24696 ac_status=$?
24697 grep -v '^ *+' conftest.er1 >conftest.err
24698 rm -f conftest.er1
24699 cat conftest.err >&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); } &&
c9a66001 24702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24704 (eval $ac_try) 2>&5
24705 ac_status=$?
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); }; } &&
24708 { ac_try='test -s conftest$ac_exeext'
24709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710 (eval $ac_try) 2>&5
24711 ac_status=$?
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; }; then
24714 eval "$as_ac_var=yes"
24715else
24716 echo "$as_me: failed program was:" >&5
24717sed 's/^/| /' conftest.$ac_ext >&5
24718
24719eval "$as_ac_var=no"
24720fi
24721rm -f conftest.err conftest.$ac_objext \
24722 conftest$ac_exeext conftest.$ac_ext
24723fi
24724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24726if test `eval echo '${'$as_ac_var'}'` = yes; then
24727 cat >>confdefs.h <<_ACEOF
24728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24729_ACEOF
24730 have_sin=1
24731fi
24732done
24733
24734
24735for ac_func in ceil
24736do
24737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24738echo "$as_me:$LINENO: checking for $ac_func" >&5
24739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24740if eval "test \"\${$as_ac_var+set}\" = set"; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24742else
24743 cat >conftest.$ac_ext <<_ACEOF
24744/* confdefs.h. */
24745_ACEOF
24746cat confdefs.h >>conftest.$ac_ext
24747cat >>conftest.$ac_ext <<_ACEOF
24748/* end confdefs.h. */
24749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24751#define $ac_func innocuous_$ac_func
24752
24753/* System header to define __stub macros and hopefully few prototypes,
24754 which can conflict with char $ac_func (); below.
24755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24756 <limits.h> exists even on freestanding compilers. */
24757
24758#ifdef __STDC__
24759# include <limits.h>
24760#else
24761# include <assert.h>
24762#endif
24763
24764#undef $ac_func
24765
24766/* Override any gcc2 internal prototype to avoid an error. */
24767#ifdef __cplusplus
24768extern "C"
24769{
24770#endif
24771/* We use char because int might match the return type of a gcc2
24772 builtin and then its argument prototype would still apply. */
24773char $ac_func ();
24774/* The GNU C library defines this for functions which it implements
24775 to always fail with ENOSYS. Some functions are actually named
24776 something starting with __ and the normal name is an alias. */
24777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24778choke me
24779#else
24780char (*f) () = $ac_func;
24781#endif
24782#ifdef __cplusplus
24783}
24784#endif
24785
24786int
24787main ()
24788{
24789return f != $ac_func;
24790 ;
24791 return 0;
24792}
24793_ACEOF
24794rm -f conftest.$ac_objext conftest$ac_exeext
24795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24796 (eval $ac_link) 2>conftest.er1
24797 ac_status=$?
24798 grep -v '^ *+' conftest.er1 >conftest.err
24799 rm -f conftest.er1
24800 cat conftest.err >&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } &&
c9a66001 24803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; } &&
24809 { ac_try='test -s conftest$ac_exeext'
24810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811 (eval $ac_try) 2>&5
24812 ac_status=$?
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); }; }; then
24815 eval "$as_ac_var=yes"
24816else
24817 echo "$as_me: failed program was:" >&5
24818sed 's/^/| /' conftest.$ac_ext >&5
24819
24820eval "$as_ac_var=no"
24821fi
24822rm -f conftest.err conftest.$ac_objext \
24823 conftest$ac_exeext conftest.$ac_ext
24824fi
24825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24826echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24827if test `eval echo '${'$as_ac_var'}'` = yes; then
24828 cat >>confdefs.h <<_ACEOF
24829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24830_ACEOF
24831 have_ceil=1
24832fi
24833done
24834
24835 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24836echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24837 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24838 echo "$as_me:$LINENO: result: yes" >&5
24839echo "${ECHO_T}yes" >&6
24840 else
24841 echo "$as_me:$LINENO: result: no" >&5
24842echo "${ECHO_T}no" >&6
24843 # not sure we should warn the user, crash, etc.
24844 fi
24845fi
24846
24847
24848
24849if test "$wxUSE_REGEX" != "no"; then
24850 cat >>confdefs.h <<\_ACEOF
24851#define wxUSE_REGEX 1
24852_ACEOF
24853
24854
24855 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24856 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24857echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24858 wxUSE_REGEX=builtin
24859 fi
24860
24861 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24862 if test "${ac_cv_header_regex_h+set}" = set; then
24863 echo "$as_me:$LINENO: checking for regex.h" >&5
24864echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24865if test "${ac_cv_header_regex_h+set}" = set; then
24866 echo $ECHO_N "(cached) $ECHO_C" >&6
24867fi
24868echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24869echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24870else
24871 # Is the header compilable?
24872echo "$as_me:$LINENO: checking regex.h usability" >&5
24873echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24874cat >conftest.$ac_ext <<_ACEOF
24875/* confdefs.h. */
24876_ACEOF
24877cat confdefs.h >>conftest.$ac_ext
24878cat >>conftest.$ac_ext <<_ACEOF
24879/* end confdefs.h. */
24880$ac_includes_default
24881#include <regex.h>
24882_ACEOF
24883rm -f conftest.$ac_objext
24884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24885 (eval $ac_compile) 2>conftest.er1
24886 ac_status=$?
24887 grep -v '^ *+' conftest.er1 >conftest.err
24888 rm -f conftest.er1
24889 cat conftest.err >&5
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); } &&
c9a66001 24892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24894 (eval $ac_try) 2>&5
24895 ac_status=$?
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); }; } &&
24898 { ac_try='test -s conftest.$ac_objext'
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; }; then
24904 ac_header_compiler=yes
24905else
24906 echo "$as_me: failed program was:" >&5
24907sed 's/^/| /' conftest.$ac_ext >&5
24908
24909ac_header_compiler=no
24910fi
24911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24912echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24913echo "${ECHO_T}$ac_header_compiler" >&6
24914
24915# Is the header present?
24916echo "$as_me:$LINENO: checking regex.h presence" >&5
24917echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24918cat >conftest.$ac_ext <<_ACEOF
24919/* confdefs.h. */
24920_ACEOF
24921cat confdefs.h >>conftest.$ac_ext
24922cat >>conftest.$ac_ext <<_ACEOF
24923/* end confdefs.h. */
24924#include <regex.h>
24925_ACEOF
24926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24928 ac_status=$?
24929 grep -v '^ *+' conftest.er1 >conftest.err
24930 rm -f conftest.er1
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } >/dev/null; then
24934 if test -s conftest.err; then
24935 ac_cpp_err=$ac_cxx_preproc_warn_flag
24936 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24937 else
24938 ac_cpp_err=
24939 fi
24940else
24941 ac_cpp_err=yes
24942fi
24943if test -z "$ac_cpp_err"; then
24944 ac_header_preproc=yes
24945else
24946 echo "$as_me: failed program was:" >&5
24947sed 's/^/| /' conftest.$ac_ext >&5
24948
24949 ac_header_preproc=no
24950fi
24951rm -f conftest.err conftest.$ac_ext
24952echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24953echo "${ECHO_T}$ac_header_preproc" >&6
24954
24955# So? What about this header?
24956case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24957 yes:no: )
24958 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24959echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24960 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24961echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24962 ac_header_preproc=yes
24963 ;;
24964 no:yes:* )
24965 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24966echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24967 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24968echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24969 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24970echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24971 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24972echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24973 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24974echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24975 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24976echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24977 (
24978 cat <<\_ASBOX
24979## ----------------------------------------- ##
24980## Report this to wx-dev@lists.wxwidgets.org ##
24981## ----------------------------------------- ##
24982_ASBOX
24983 ) |
24984 sed "s/^/$as_me: WARNING: /" >&2
24985 ;;
24986esac
24987echo "$as_me:$LINENO: checking for regex.h" >&5
24988echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24989if test "${ac_cv_header_regex_h+set}" = set; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
24991else
24992 ac_cv_header_regex_h=$ac_header_preproc
24993fi
24994echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24995echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24996
24997fi
24998if test $ac_cv_header_regex_h = yes; then
24999
25000
25001for ac_func in regcomp re_search
25002do
25003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25004echo "$as_me:$LINENO: checking for $ac_func" >&5
25005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25006if eval "test \"\${$as_ac_var+set}\" = set"; then
25007 echo $ECHO_N "(cached) $ECHO_C" >&6
25008else
25009 cat >conftest.$ac_ext <<_ACEOF
25010/* confdefs.h. */
25011_ACEOF
25012cat confdefs.h >>conftest.$ac_ext
25013cat >>conftest.$ac_ext <<_ACEOF
25014/* end confdefs.h. */
25015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25017#define $ac_func innocuous_$ac_func
25018
25019/* System header to define __stub macros and hopefully few prototypes,
25020 which can conflict with char $ac_func (); below.
25021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25022 <limits.h> exists even on freestanding compilers. */
25023
25024#ifdef __STDC__
25025# include <limits.h>
25026#else
25027# include <assert.h>
25028#endif
25029
25030#undef $ac_func
25031
25032/* Override any gcc2 internal prototype to avoid an error. */
25033#ifdef __cplusplus
25034extern "C"
25035{
25036#endif
25037/* We use char because int might match the return type of a gcc2
25038 builtin and then its argument prototype would still apply. */
25039char $ac_func ();
25040/* The GNU C library defines this for functions which it implements
25041 to always fail with ENOSYS. Some functions are actually named
25042 something starting with __ and the normal name is an alias. */
25043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25044choke me
25045#else
25046char (*f) () = $ac_func;
25047#endif
25048#ifdef __cplusplus
25049}
25050#endif
25051
25052int
25053main ()
25054{
25055return f != $ac_func;
25056 ;
25057 return 0;
25058}
25059_ACEOF
25060rm -f conftest.$ac_objext conftest$ac_exeext
25061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25062 (eval $ac_link) 2>conftest.er1
25063 ac_status=$?
25064 grep -v '^ *+' conftest.er1 >conftest.err
25065 rm -f conftest.er1
25066 cat conftest.err >&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); } &&
c9a66001 25069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; } &&
25075 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); }; }; then
25081 eval "$as_ac_var=yes"
25082else
25083 echo "$as_me: failed program was:" >&5
25084sed 's/^/| /' conftest.$ac_ext >&5
25085
25086eval "$as_ac_var=no"
25087fi
ac1cb8d3
VS
25088rm -f conftest.err conftest.$ac_objext \
25089 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25090fi
25091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25092echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25093if test `eval echo '${'$as_ac_var'}'` = yes; then
25094 cat >>confdefs.h <<_ACEOF
25095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25096_ACEOF
25097
25098fi
25099done
25100
25101fi
25102
25103
25104
25105 if test "x$ac_cv_func_regcomp" != "xyes"; then
25106 if test "$wxUSE_REGEX" = "sys" ; then
25107 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25108echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25109 { (exit 1); exit 1; }; }
25110 else
25111 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25112echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25113 wxUSE_REGEX=builtin
25114 fi
25115 else
25116 wxUSE_REGEX=sys
25117 cat >>confdefs.h <<\_ACEOF
25118#define WX_NO_REGEX_ADVANCED 1
25119_ACEOF
25120
25121 fi
25122 fi
25123fi
25124
25125
25126ZLIB_LINK=
25127if test "$wxUSE_ZLIB" != "no" ; then
25128 cat >>confdefs.h <<\_ACEOF
25129#define wxUSE_ZLIB 1
25130_ACEOF
25131
25132
25133 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25134 if test "$USE_DARWIN" = 1; then
25135 system_zlib_h_ok="yes"
25136 else
25137 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25138echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25139if test "${ac_cv_header_zlib_h+set}" = set; then
25140 echo $ECHO_N "(cached) $ECHO_C" >&6
25141else
25142 if test "$cross_compiling" = yes; then
25143 unset ac_cv_header_zlib_h
25144
25145else
25146 cat >conftest.$ac_ext <<_ACEOF
25147/* confdefs.h. */
25148_ACEOF
25149cat confdefs.h >>conftest.$ac_ext
25150cat >>conftest.$ac_ext <<_ACEOF
25151/* end confdefs.h. */
25152
25153 #include <zlib.h>
25154 #include <stdio.h>
25155
25156 int main()
25157 {
25158 FILE *f=fopen("conftestval", "w");
25159 if (!f) exit(1);
25160 fprintf(f, "%s",
25161 ZLIB_VERSION[0] == '1' &&
25162 (ZLIB_VERSION[2] > '1' ||
25163 (ZLIB_VERSION[2] == '1' &&
25164 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25165 exit(0);
25166 }
25167
25168_ACEOF
25169rm -f conftest$ac_exeext
25170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25171 (eval $ac_link) 2>&5
25172 ac_status=$?
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25177 ac_status=$?
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; }; then
25180 ac_cv_header_zlib_h=`cat conftestval`
25181else
25182 echo "$as_me: program exited with status $ac_status" >&5
25183echo "$as_me: failed program was:" >&5
25184sed 's/^/| /' conftest.$ac_ext >&5
25185
25186( exit $ac_status )
25187ac_cv_header_zlib_h=no
25188fi
ac1cb8d3 25189rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25190fi
25191
25192fi
25193echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25194echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25195 if test "${ac_cv_header_zlib_h+set}" = set; then
25196 echo "$as_me:$LINENO: checking for zlib.h" >&5
25197echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25198if test "${ac_cv_header_zlib_h+set}" = set; then
25199 echo $ECHO_N "(cached) $ECHO_C" >&6
25200fi
25201echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25202echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25203else
25204 # Is the header compilable?
25205echo "$as_me:$LINENO: checking zlib.h usability" >&5
25206echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25207cat >conftest.$ac_ext <<_ACEOF
25208/* confdefs.h. */
25209_ACEOF
25210cat confdefs.h >>conftest.$ac_ext
25211cat >>conftest.$ac_ext <<_ACEOF
25212/* end confdefs.h. */
25213$ac_includes_default
25214#include <zlib.h>
25215_ACEOF
25216rm -f conftest.$ac_objext
25217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25218 (eval $ac_compile) 2>conftest.er1
a848cd7e 25219 ac_status=$?
ac1cb8d3
VS
25220 grep -v '^ *+' conftest.er1 >conftest.err
25221 rm -f conftest.er1
25222 cat conftest.err >&5
a848cd7e
SC
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); } &&
c9a66001 25225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25227 (eval $ac_try) 2>&5
25228 ac_status=$?
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); }; } &&
25231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25233 (eval $ac_try) 2>&5
25234 ac_status=$?
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); }; }; then
25237 ac_header_compiler=yes
25238else
25239 echo "$as_me: failed program was:" >&5
25240sed 's/^/| /' conftest.$ac_ext >&5
25241
25242ac_header_compiler=no
25243fi
ac1cb8d3 25244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25245echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25246echo "${ECHO_T}$ac_header_compiler" >&6
25247
25248# Is the header present?
25249echo "$as_me:$LINENO: checking zlib.h presence" >&5
25250echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25251cat >conftest.$ac_ext <<_ACEOF
25252/* confdefs.h. */
25253_ACEOF
25254cat confdefs.h >>conftest.$ac_ext
25255cat >>conftest.$ac_ext <<_ACEOF
25256/* end confdefs.h. */
25257#include <zlib.h>
25258_ACEOF
25259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25261 ac_status=$?
25262 grep -v '^ *+' conftest.er1 >conftest.err
25263 rm -f conftest.er1
25264 cat conftest.err >&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); } >/dev/null; then
25267 if test -s conftest.err; then
5d7b7554
VZ
25268 ac_cpp_err=$ac_cxx_preproc_warn_flag
25269 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25270 else
25271 ac_cpp_err=
25272 fi
25273else
25274 ac_cpp_err=yes
25275fi
25276if test -z "$ac_cpp_err"; then
25277 ac_header_preproc=yes
25278else
25279 echo "$as_me: failed program was:" >&5
25280sed 's/^/| /' conftest.$ac_ext >&5
25281
25282 ac_header_preproc=no
25283fi
25284rm -f conftest.err conftest.$ac_ext
25285echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25286echo "${ECHO_T}$ac_header_preproc" >&6
25287
25288# So? What about this header?
5d7b7554 25289case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25290 yes:no: )
a848cd7e
SC
25291 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25292echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25293 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25294echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25295 ac_header_preproc=yes
a848cd7e 25296 ;;
ac1cb8d3 25297 no:yes:* )
a848cd7e
SC
25298 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25299echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25300 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25301echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25302 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25303echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25304 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25305echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25306 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25307echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25308 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25309echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25310 (
25311 cat <<\_ASBOX
ac1cb8d3
VS
25312## ----------------------------------------- ##
25313## Report this to wx-dev@lists.wxwidgets.org ##
25314## ----------------------------------------- ##
a848cd7e
SC
25315_ASBOX
25316 ) |
25317 sed "s/^/$as_me: WARNING: /" >&2
25318 ;;
25319esac
25320echo "$as_me:$LINENO: checking for zlib.h" >&5
25321echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25322if test "${ac_cv_header_zlib_h+set}" = set; then
25323 echo $ECHO_N "(cached) $ECHO_C" >&6
25324else
25325 ac_cv_header_zlib_h=$ac_header_preproc
25326fi
25327echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25328echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25329
25330fi
25331
25332
25333
25334 system_zlib_h_ok=$ac_cv_header_zlib_h
25335 fi
25336
25337 if test "$system_zlib_h_ok" = "yes"; then
25338 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25339echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25340if test "${ac_cv_lib_z_deflate+set}" = set; then
25341 echo $ECHO_N "(cached) $ECHO_C" >&6
25342else
25343 ac_check_lib_save_LIBS=$LIBS
25344LIBS="-lz $LIBS"
25345cat >conftest.$ac_ext <<_ACEOF
25346/* confdefs.h. */
25347_ACEOF
25348cat confdefs.h >>conftest.$ac_ext
25349cat >>conftest.$ac_ext <<_ACEOF
25350/* end confdefs.h. */
25351
25352/* Override any gcc2 internal prototype to avoid an error. */
25353#ifdef __cplusplus
25354extern "C"
25355#endif
25356/* We use char because int might match the return type of a gcc2
25357 builtin and then its argument prototype would still apply. */
25358char deflate ();
25359int
25360main ()
25361{
25362deflate ();
25363 ;
25364 return 0;
25365}
25366_ACEOF
25367rm -f conftest.$ac_objext conftest$ac_exeext
25368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25369 (eval $ac_link) 2>conftest.er1
a848cd7e 25370 ac_status=$?
ac1cb8d3
VS
25371 grep -v '^ *+' conftest.er1 >conftest.err
25372 rm -f conftest.er1
25373 cat conftest.err >&5
a848cd7e
SC
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); } &&
c9a66001 25376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378 (eval $ac_try) 2>&5
25379 ac_status=$?
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); }; } &&
25382 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25385 ac_status=$?
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; }; then
25388 ac_cv_lib_z_deflate=yes
25389else
25390 echo "$as_me: failed program was:" >&5
25391sed 's/^/| /' conftest.$ac_ext >&5
25392
25393ac_cv_lib_z_deflate=no
25394fi
ac1cb8d3
VS
25395rm -f conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25397LIBS=$ac_check_lib_save_LIBS
25398fi
25399echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25400echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25401if test $ac_cv_lib_z_deflate = yes; then
25402 ZLIB_LINK=" -lz"
25403fi
25404
25405 fi
25406
25407 if test "x$ZLIB_LINK" = "x" ; then
25408 if test "$wxUSE_ZLIB" = "sys" ; then
25409 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25410echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25411 { (exit 1); exit 1; }; }
25412 else
25413 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25414echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25415 wxUSE_ZLIB=builtin
25416 fi
25417 else
25418 wxUSE_ZLIB=sys
25419 fi
25420 fi
25421fi
25422
25423
25424PNG_LINK=
25425if test "$wxUSE_LIBPNG" != "no" ; then
25426 cat >>confdefs.h <<\_ACEOF
25427#define wxUSE_LIBPNG 1
25428_ACEOF
25429
25430
25431 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25432 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25433echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25434 wxUSE_LIBPNG=sys
25435 fi
25436
25437 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25438 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25439echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25440 wxUSE_LIBPNG=builtin
25441 fi
25442
25443 if test "$wxUSE_MGL" != 1 ; then
25444 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25445 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25446echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25447if test "${ac_cv_header_png_h+set}" = set; then
25448 echo $ECHO_N "(cached) $ECHO_C" >&6
25449else
25450 if test "$cross_compiling" = yes; then
25451 unset ac_cv_header_png_h
25452
25453else
25454 cat >conftest.$ac_ext <<_ACEOF
25455/* confdefs.h. */
25456_ACEOF
25457cat confdefs.h >>conftest.$ac_ext
25458cat >>conftest.$ac_ext <<_ACEOF
25459/* end confdefs.h. */
25460
25461 #include <png.h>
25462 #include <stdio.h>
25463
25464 int main()
25465 {
25466 FILE *f=fopen("conftestval", "w");
25467 if (!f) exit(1);
25468 fprintf(f, "%s",
25469 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25470 exit(0);
25471 }
25472
25473_ACEOF
25474rm -f conftest$ac_exeext
25475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25476 (eval $ac_link) 2>&5
25477 ac_status=$?
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; }; then
25485 ac_cv_header_png_h=`cat conftestval`
25486else
25487 echo "$as_me: program exited with status $ac_status" >&5
25488echo "$as_me: failed program was:" >&5
25489sed 's/^/| /' conftest.$ac_ext >&5
25490
25491( exit $ac_status )
25492ac_cv_header_png_h=no
25493fi
ac1cb8d3 25494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25495fi
25496
25497fi
25498echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25499echo "${ECHO_T}$ac_cv_header_png_h" >&6
25500 if test "${ac_cv_header_png_h+set}" = set; then
25501 echo "$as_me:$LINENO: checking for png.h" >&5
25502echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25503if test "${ac_cv_header_png_h+set}" = set; then
25504 echo $ECHO_N "(cached) $ECHO_C" >&6
25505fi
25506echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25507echo "${ECHO_T}$ac_cv_header_png_h" >&6
25508else
25509 # Is the header compilable?
25510echo "$as_me:$LINENO: checking png.h usability" >&5
25511echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25512cat >conftest.$ac_ext <<_ACEOF
25513/* confdefs.h. */
25514_ACEOF
25515cat confdefs.h >>conftest.$ac_ext
25516cat >>conftest.$ac_ext <<_ACEOF
25517/* end confdefs.h. */
25518$ac_includes_default
25519#include <png.h>
25520_ACEOF
25521rm -f conftest.$ac_objext
25522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25523 (eval $ac_compile) 2>conftest.er1
a848cd7e 25524 ac_status=$?
ac1cb8d3
VS
25525 grep -v '^ *+' conftest.er1 >conftest.err
25526 rm -f conftest.er1
25527 cat conftest.err >&5
a848cd7e
SC
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); } &&
c9a66001 25530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25533 ac_status=$?
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; } &&
25536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25538 (eval $ac_try) 2>&5
25539 ac_status=$?
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }; }; then
25542 ac_header_compiler=yes
25543else
25544 echo "$as_me: failed program was:" >&5
25545sed 's/^/| /' conftest.$ac_ext >&5
25546
25547ac_header_compiler=no
25548fi
ac1cb8d3 25549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25550echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25551echo "${ECHO_T}$ac_header_compiler" >&6
25552
25553# Is the header present?
25554echo "$as_me:$LINENO: checking png.h presence" >&5
25555echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25556cat >conftest.$ac_ext <<_ACEOF
25557/* confdefs.h. */
25558_ACEOF
25559cat confdefs.h >>conftest.$ac_ext
25560cat >>conftest.$ac_ext <<_ACEOF
25561/* end confdefs.h. */
25562#include <png.h>
25563_ACEOF
25564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25566 ac_status=$?
25567 grep -v '^ *+' conftest.er1 >conftest.err
25568 rm -f conftest.er1
25569 cat conftest.err >&5
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); } >/dev/null; then
25572 if test -s conftest.err; then
5d7b7554
VZ
25573 ac_cpp_err=$ac_cxx_preproc_warn_flag
25574 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25575 else
25576 ac_cpp_err=
25577 fi
25578else
25579 ac_cpp_err=yes
25580fi
25581if test -z "$ac_cpp_err"; then
25582 ac_header_preproc=yes
25583else
25584 echo "$as_me: failed program was:" >&5
25585sed 's/^/| /' conftest.$ac_ext >&5
25586
25587 ac_header_preproc=no
25588fi
25589rm -f conftest.err conftest.$ac_ext
25590echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25591echo "${ECHO_T}$ac_header_preproc" >&6
25592
25593# So? What about this header?
5d7b7554 25594case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25595 yes:no: )
a848cd7e
SC
25596 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25597echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25598 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25599echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25600 ac_header_preproc=yes
a848cd7e 25601 ;;
ac1cb8d3 25602 no:yes:* )
a848cd7e
SC
25603 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25604echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25605 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25606echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25607 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25608echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25609 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25610echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25611 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25612echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25613 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25614echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25615 (
25616 cat <<\_ASBOX
ac1cb8d3
VS
25617## ----------------------------------------- ##
25618## Report this to wx-dev@lists.wxwidgets.org ##
25619## ----------------------------------------- ##
a848cd7e
SC
25620_ASBOX
25621 ) |
25622 sed "s/^/$as_me: WARNING: /" >&2
25623 ;;
25624esac
25625echo "$as_me:$LINENO: checking for png.h" >&5
25626echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25627if test "${ac_cv_header_png_h+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25629else
25630 ac_cv_header_png_h=$ac_header_preproc
25631fi
25632echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25633echo "${ECHO_T}$ac_cv_header_png_h" >&6
25634
25635fi
25636
25637
25638
25639 if test "$ac_cv_header_png_h" = "yes"; then
25640 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25641echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25642if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25643 echo $ECHO_N "(cached) $ECHO_C" >&6
25644else
25645 ac_check_lib_save_LIBS=$LIBS
25646LIBS="-lpng -lz -lm $LIBS"
25647cat >conftest.$ac_ext <<_ACEOF
25648/* confdefs.h. */
25649_ACEOF
25650cat confdefs.h >>conftest.$ac_ext
25651cat >>conftest.$ac_ext <<_ACEOF
25652/* end confdefs.h. */
25653
25654/* Override any gcc2 internal prototype to avoid an error. */
25655#ifdef __cplusplus
25656extern "C"
25657#endif
25658/* We use char because int might match the return type of a gcc2
25659 builtin and then its argument prototype would still apply. */
25660char png_check_sig ();
25661int
25662main ()
25663{
25664png_check_sig ();
25665 ;
25666 return 0;
25667}
25668_ACEOF
25669rm -f conftest.$ac_objext conftest$ac_exeext
25670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25671 (eval $ac_link) 2>conftest.er1
a848cd7e 25672 ac_status=$?
ac1cb8d3
VS
25673 grep -v '^ *+' conftest.er1 >conftest.err
25674 rm -f conftest.er1
25675 cat conftest.err >&5
a848cd7e
SC
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } &&
c9a66001 25678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
25681 ac_status=$?
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; } &&
25684 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 ac_cv_lib_png_png_check_sig=yes
25691else
25692 echo "$as_me: failed program was:" >&5
25693sed 's/^/| /' conftest.$ac_ext >&5
25694
25695ac_cv_lib_png_png_check_sig=no
25696fi
ac1cb8d3
VS
25697rm -f conftest.err conftest.$ac_objext \
25698 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25699LIBS=$ac_check_lib_save_LIBS
25700fi
25701echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25702echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25703if test $ac_cv_lib_png_png_check_sig = yes; then
25704 PNG_LINK=" -lpng -lz"
25705fi
25706
25707 fi
25708
25709 if test "x$PNG_LINK" = "x" ; then
25710 if test "$wxUSE_LIBPNG" = "sys" ; then
25711 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25712echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25713 { (exit 1); exit 1; }; }
25714 else
25715 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25716echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25717 wxUSE_LIBPNG=builtin
25718 fi
25719 else
25720 wxUSE_LIBPNG=sys
25721 fi
25722 fi
25723 fi
25724
25725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25726fi
25727
25728
25729JPEG_LINK=
25730if test "$wxUSE_LIBJPEG" != "no" ; then
25731 cat >>confdefs.h <<\_ACEOF
25732#define wxUSE_LIBJPEG 1
25733_ACEOF
25734
25735
25736 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25737 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25738echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25739 wxUSE_LIBJPEG=sys
25740 fi
25741
25742 if test "$wxUSE_MGL" != 1 ; then
25743 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25744 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25745echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25746 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25747 echo $ECHO_N "(cached) $ECHO_C" >&6
25748else
25749 cat >conftest.$ac_ext <<_ACEOF
25750/* confdefs.h. */
25751_ACEOF
25752cat confdefs.h >>conftest.$ac_ext
25753cat >>conftest.$ac_ext <<_ACEOF
25754/* end confdefs.h. */
25755
25756 #undef HAVE_STDLIB_H
25757 #include <stdio.h>
25758 #include <jpeglib.h>
25759
25760int
25761main ()
25762{
25763
25764
25765 ;
25766 return 0;
25767}
25768_ACEOF
25769rm -f conftest.$ac_objext
25770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25771 (eval $ac_compile) 2>conftest.er1
a848cd7e 25772 ac_status=$?
ac1cb8d3
VS
25773 grep -v '^ *+' conftest.er1 >conftest.err
25774 rm -f conftest.er1
25775 cat conftest.err >&5
a848cd7e
SC
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } &&
c9a66001 25778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; } &&
25784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25786 (eval $ac_try) 2>&5
25787 ac_status=$?
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); }; }; then
25790 ac_cv_header_jpeglib_h=yes
25791else
25792 echo "$as_me: failed program was:" >&5
25793sed 's/^/| /' conftest.$ac_ext >&5
25794
25795ac_cv_header_jpeglib_h=no
25796
25797fi
ac1cb8d3 25798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25799
25800fi
25801
25802 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25803echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25804
25805 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25806 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25807echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25808if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25810else
25811 ac_check_lib_save_LIBS=$LIBS
25812LIBS="-ljpeg $LIBS"
25813cat >conftest.$ac_ext <<_ACEOF
25814/* confdefs.h. */
25815_ACEOF
25816cat confdefs.h >>conftest.$ac_ext
25817cat >>conftest.$ac_ext <<_ACEOF
25818/* end confdefs.h. */
25819
25820/* Override any gcc2 internal prototype to avoid an error. */
25821#ifdef __cplusplus
25822extern "C"
25823#endif
25824/* We use char because int might match the return type of a gcc2
25825 builtin and then its argument prototype would still apply. */
25826char jpeg_read_header ();
25827int
25828main ()
25829{
25830jpeg_read_header ();
25831 ;
25832 return 0;
25833}
25834_ACEOF
25835rm -f conftest.$ac_objext conftest$ac_exeext
25836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25837 (eval $ac_link) 2>conftest.er1
a848cd7e 25838 ac_status=$?
ac1cb8d3
VS
25839 grep -v '^ *+' conftest.er1 >conftest.err
25840 rm -f conftest.er1
25841 cat conftest.err >&5
a848cd7e
SC
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); } &&
c9a66001 25844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25847 ac_status=$?
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; } &&
25850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25853 ac_status=$?
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); }; }; then
25856 ac_cv_lib_jpeg_jpeg_read_header=yes
25857else
25858 echo "$as_me: failed program was:" >&5
25859sed 's/^/| /' conftest.$ac_ext >&5
25860
25861ac_cv_lib_jpeg_jpeg_read_header=no
25862fi
ac1cb8d3
VS
25863rm -f conftest.err conftest.$ac_objext \
25864 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25865LIBS=$ac_check_lib_save_LIBS
25866fi
25867echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25868echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25869if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25870 JPEG_LINK=" -ljpeg"
25871fi
25872
25873 fi
25874
25875 if test "x$JPEG_LINK" = "x" ; then
25876 if test "$wxUSE_LIBJPEG" = "sys" ; then
25877 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25878echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25879 { (exit 1); exit 1; }; }
25880 else
25881 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25882echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25883 wxUSE_LIBJPEG=builtin
25884 fi
25885 else
25886 wxUSE_LIBJPEG=sys
25887 fi
25888 fi
25889 fi
25890fi
25891
25892
25893TIFF_LINK=
25894TIFF_PREREQ_LINKS=-lm
25895if test "$wxUSE_LIBTIFF" != "no" ; then
25896 cat >>confdefs.h <<\_ACEOF
25897#define wxUSE_LIBTIFF 1
25898_ACEOF
25899
25900
25901 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25902 if test "$wxUSE_LIBJPEG" = "sys"; then
25903 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25904 fi
25905 if test "$wxUSE_ZLIB" = "sys"; then
25906 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25907 fi
25908 if test "${ac_cv_header_tiffio_h+set}" = set; then
25909 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25910echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25911if test "${ac_cv_header_tiffio_h+set}" = set; then
25912 echo $ECHO_N "(cached) $ECHO_C" >&6
25913fi
25914echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25915echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25916else
25917 # Is the header compilable?
25918echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25919echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25920cat >conftest.$ac_ext <<_ACEOF
25921/* confdefs.h. */
25922_ACEOF
25923cat confdefs.h >>conftest.$ac_ext
25924cat >>conftest.$ac_ext <<_ACEOF
25925/* end confdefs.h. */
25926$ac_includes_default
25927#include <tiffio.h>
25928_ACEOF
25929rm -f conftest.$ac_objext
25930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25931 (eval $ac_compile) 2>conftest.er1
a848cd7e 25932 ac_status=$?
ac1cb8d3
VS
25933 grep -v '^ *+' conftest.er1 >conftest.err
25934 rm -f conftest.er1
25935 cat conftest.err >&5
a848cd7e
SC
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } &&
c9a66001 25938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; } &&
25944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; }; then
25950 ac_header_compiler=yes
25951else
25952 echo "$as_me: failed program was:" >&5
25953sed 's/^/| /' conftest.$ac_ext >&5
25954
25955ac_header_compiler=no
25956fi
ac1cb8d3 25957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25958echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25959echo "${ECHO_T}$ac_header_compiler" >&6
25960
25961# Is the header present?
25962echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25963echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25964cat >conftest.$ac_ext <<_ACEOF
25965/* confdefs.h. */
25966_ACEOF
25967cat confdefs.h >>conftest.$ac_ext
25968cat >>conftest.$ac_ext <<_ACEOF
25969/* end confdefs.h. */
25970#include <tiffio.h>
25971_ACEOF
25972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25974 ac_status=$?
25975 grep -v '^ *+' conftest.er1 >conftest.err
25976 rm -f conftest.er1
25977 cat conftest.err >&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } >/dev/null; then
25980 if test -s conftest.err; then
5d7b7554
VZ
25981 ac_cpp_err=$ac_cxx_preproc_warn_flag
25982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25983 else
25984 ac_cpp_err=
25985 fi
25986else
25987 ac_cpp_err=yes
25988fi
25989if test -z "$ac_cpp_err"; then
25990 ac_header_preproc=yes
25991else
25992 echo "$as_me: failed program was:" >&5
25993sed 's/^/| /' conftest.$ac_ext >&5
25994
25995 ac_header_preproc=no
25996fi
25997rm -f conftest.err conftest.$ac_ext
25998echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25999echo "${ECHO_T}$ac_header_preproc" >&6
26000
26001# So? What about this header?
5d7b7554 26002case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26003 yes:no: )
a848cd7e
SC
26004 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26005echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26006 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26007echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26008 ac_header_preproc=yes
a848cd7e 26009 ;;
ac1cb8d3 26010 no:yes:* )
a848cd7e
SC
26011 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26012echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26013 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26014echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26015 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26016echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26017 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26018echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26019 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26020echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26021 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26022echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26023 (
26024 cat <<\_ASBOX
ac1cb8d3
VS
26025## ----------------------------------------- ##
26026## Report this to wx-dev@lists.wxwidgets.org ##
26027## ----------------------------------------- ##
a848cd7e
SC
26028_ASBOX
26029 ) |
26030 sed "s/^/$as_me: WARNING: /" >&2
26031 ;;
26032esac
26033echo "$as_me:$LINENO: checking for tiffio.h" >&5
26034echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26035if test "${ac_cv_header_tiffio_h+set}" = set; then
26036 echo $ECHO_N "(cached) $ECHO_C" >&6
26037else
26038 ac_cv_header_tiffio_h=$ac_header_preproc
26039fi
26040echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26041echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26042
26043fi
26044if test $ac_cv_header_tiffio_h = yes; then
26045
26046 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26047echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26048if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26049 echo $ECHO_N "(cached) $ECHO_C" >&6
26050else
26051 ac_check_lib_save_LIBS=$LIBS
26052LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26053cat >conftest.$ac_ext <<_ACEOF
26054/* confdefs.h. */
26055_ACEOF
26056cat confdefs.h >>conftest.$ac_ext
26057cat >>conftest.$ac_ext <<_ACEOF
26058/* end confdefs.h. */
26059
26060/* Override any gcc2 internal prototype to avoid an error. */
26061#ifdef __cplusplus
26062extern "C"
26063#endif
26064/* We use char because int might match the return type of a gcc2
26065 builtin and then its argument prototype would still apply. */
26066char TIFFError ();
26067int
26068main ()
26069{
26070TIFFError ();
26071 ;
26072 return 0;
26073}
26074_ACEOF
26075rm -f conftest.$ac_objext conftest$ac_exeext
26076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26077 (eval $ac_link) 2>conftest.er1
a848cd7e 26078 ac_status=$?
ac1cb8d3
VS
26079 grep -v '^ *+' conftest.er1 >conftest.err
26080 rm -f conftest.er1
26081 cat conftest.err >&5
a848cd7e
SC
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } &&
c9a66001 26084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); }; } &&
26090 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092 (eval $ac_try) 2>&5
26093 ac_status=$?
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); }; }; then
26096 ac_cv_lib_tiff_TIFFError=yes
26097else
26098 echo "$as_me: failed program was:" >&5
26099sed 's/^/| /' conftest.$ac_ext >&5
26100
26101ac_cv_lib_tiff_TIFFError=no
26102fi
ac1cb8d3
VS
26103rm -f conftest.err conftest.$ac_objext \
26104 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26105LIBS=$ac_check_lib_save_LIBS
26106fi
26107echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26108echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26109if test $ac_cv_lib_tiff_TIFFError = yes; then
26110 TIFF_LINK=" -ltiff"
26111fi
26112
26113
26114
26115fi
26116
26117
26118
26119 if test "x$TIFF_LINK" = "x" ; then
26120 if test "$wxUSE_LIBTIFF" = "sys" ; then
26121 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26122echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26123 { (exit 1); exit 1; }; }
26124 else
26125 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26126echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26127 wxUSE_LIBTIFF=builtin
26128 fi
26129 else
26130 wxUSE_LIBTIFF=sys
26131 fi
26132 fi
26133fi
26134
26135
47a7e797
MW
26136if test "$wxUSE_WCHAR_T" != "yes"; then
26137 if test "$wxUSE_EXPAT" != "no"; then
26138 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26139echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26140 wxUSE_EXPAT=no
26141 fi
26142 if test "$wxUSE_XML" != "no"; then
26143 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26144echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26145 wxUSE_XML=no
26146 fi
26147fi
26148
a848cd7e
SC
26149if test "$wxUSE_EXPAT" != "no"; then
26150 wxUSE_XML=yes
26151 cat >>confdefs.h <<\_ACEOF
26152#define wxUSE_EXPAT 1
26153_ACEOF
26154
26155 cat >>confdefs.h <<\_ACEOF
26156#define wxUSE_XML 1
26157_ACEOF
26158
26159
26160 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26161 if test "${ac_cv_header_expat_h+set}" = set; then
26162 echo "$as_me:$LINENO: checking for expat.h" >&5
26163echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26164if test "${ac_cv_header_expat_h+set}" = set; then
26165 echo $ECHO_N "(cached) $ECHO_C" >&6
26166fi
26167echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26168echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26169else
26170 # Is the header compilable?
26171echo "$as_me:$LINENO: checking expat.h usability" >&5
26172echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26173cat >conftest.$ac_ext <<_ACEOF
26174/* confdefs.h. */
26175_ACEOF
26176cat confdefs.h >>conftest.$ac_ext
26177cat >>conftest.$ac_ext <<_ACEOF
26178/* end confdefs.h. */
26179$ac_includes_default
26180#include <expat.h>
26181_ACEOF
26182rm -f conftest.$ac_objext
26183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26184 (eval $ac_compile) 2>conftest.er1
a848cd7e 26185 ac_status=$?
ac1cb8d3
VS
26186 grep -v '^ *+' conftest.er1 >conftest.err
26187 rm -f conftest.er1
26188 cat conftest.err >&5
a848cd7e
SC
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } &&
c9a66001 26191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193 (eval $ac_try) 2>&5
26194 ac_status=$?
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); }; } &&
26197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199 (eval $ac_try) 2>&5
26200 ac_status=$?
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; }; then
26203 ac_header_compiler=yes
26204else
26205 echo "$as_me: failed program was:" >&5
26206sed 's/^/| /' conftest.$ac_ext >&5
26207
26208ac_header_compiler=no
26209fi
ac1cb8d3 26210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26211echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26212echo "${ECHO_T}$ac_header_compiler" >&6
26213
26214# Is the header present?
26215echo "$as_me:$LINENO: checking expat.h presence" >&5
26216echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26217cat >conftest.$ac_ext <<_ACEOF
26218/* confdefs.h. */
26219_ACEOF
26220cat confdefs.h >>conftest.$ac_ext
26221cat >>conftest.$ac_ext <<_ACEOF
26222/* end confdefs.h. */
26223#include <expat.h>
26224_ACEOF
26225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26227 ac_status=$?
26228 grep -v '^ *+' conftest.er1 >conftest.err
26229 rm -f conftest.er1
26230 cat conftest.err >&5
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); } >/dev/null; then
26233 if test -s conftest.err; then
5d7b7554
VZ
26234 ac_cpp_err=$ac_cxx_preproc_warn_flag
26235 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26236 else
26237 ac_cpp_err=
26238 fi
26239else
26240 ac_cpp_err=yes
26241fi
26242if test -z "$ac_cpp_err"; then
26243 ac_header_preproc=yes
26244else
26245 echo "$as_me: failed program was:" >&5
26246sed 's/^/| /' conftest.$ac_ext >&5
26247
26248 ac_header_preproc=no
26249fi
26250rm -f conftest.err conftest.$ac_ext
26251echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26252echo "${ECHO_T}$ac_header_preproc" >&6
26253
26254# So? What about this header?
5d7b7554 26255case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26256 yes:no: )
a848cd7e
SC
26257 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26258echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26259 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26260echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26261 ac_header_preproc=yes
a848cd7e 26262 ;;
ac1cb8d3 26263 no:yes:* )
a848cd7e
SC
26264 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26265echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26266 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26267echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26268 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26269echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26270 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26271echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26272 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26273echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26274 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26275echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26276 (
26277 cat <<\_ASBOX
ac1cb8d3
VS
26278## ----------------------------------------- ##
26279## Report this to wx-dev@lists.wxwidgets.org ##
26280## ----------------------------------------- ##
a848cd7e
SC
26281_ASBOX
26282 ) |
26283 sed "s/^/$as_me: WARNING: /" >&2
26284 ;;
26285esac
26286echo "$as_me:$LINENO: checking for expat.h" >&5
26287echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26288if test "${ac_cv_header_expat_h+set}" = set; then
26289 echo $ECHO_N "(cached) $ECHO_C" >&6
26290else
26291 ac_cv_header_expat_h=$ac_header_preproc
26292fi
26293echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26294echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26295
26296fi
26297if test $ac_cv_header_expat_h = yes; then
26298 found_expat_h=1
26299fi
26300
26301
26302 if test "x$found_expat_h" = "x1"; then
26303 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26304echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26305if test "${wx_cv_expat_is_not_broken+set}" = set; then
26306 echo $ECHO_N "(cached) $ECHO_C" >&6
26307else
26308
a848cd7e
SC
26309 cat >conftest.$ac_ext <<_ACEOF
26310/* confdefs.h. */
26311_ACEOF
26312cat confdefs.h >>conftest.$ac_ext
26313cat >>conftest.$ac_ext <<_ACEOF
26314/* end confdefs.h. */
26315#include <expat.h>
26316int
26317main ()
26318{
26319
26320 ;
26321 return 0;
26322}
26323_ACEOF
26324rm -f conftest.$ac_objext
26325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26326 (eval $ac_compile) 2>conftest.er1
a848cd7e 26327 ac_status=$?
ac1cb8d3
VS
26328 grep -v '^ *+' conftest.er1 >conftest.err
26329 rm -f conftest.er1
26330 cat conftest.err >&5
a848cd7e
SC
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); } &&
c9a66001 26333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26335 (eval $ac_try) 2>&5
26336 ac_status=$?
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); }; } &&
26339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341 (eval $ac_try) 2>&5
26342 ac_status=$?
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); }; }; then
26345 wx_cv_expat_is_not_broken=yes
26346else
26347 echo "$as_me: failed program was:" >&5
26348sed 's/^/| /' conftest.$ac_ext >&5
26349
26350wx_cv_expat_is_not_broken=no
26351
26352fi
ac1cb8d3 26353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26354
26355
26356fi
26357echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26358echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26359 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26360 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26361echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26362if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26363 echo $ECHO_N "(cached) $ECHO_C" >&6
26364else
26365 ac_check_lib_save_LIBS=$LIBS
26366LIBS="-lexpat $LIBS"
26367cat >conftest.$ac_ext <<_ACEOF
26368/* confdefs.h. */
26369_ACEOF
26370cat confdefs.h >>conftest.$ac_ext
26371cat >>conftest.$ac_ext <<_ACEOF
26372/* end confdefs.h. */
26373
26374/* Override any gcc2 internal prototype to avoid an error. */
26375#ifdef __cplusplus
26376extern "C"
26377#endif
26378/* We use char because int might match the return type of a gcc2
26379 builtin and then its argument prototype would still apply. */
26380char XML_ParserCreate ();
26381int
26382main ()
26383{
26384XML_ParserCreate ();
26385 ;
26386 return 0;
26387}
26388_ACEOF
26389rm -f conftest.$ac_objext conftest$ac_exeext
26390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26391 (eval $ac_link) 2>conftest.er1
a848cd7e 26392 ac_status=$?
ac1cb8d3
VS
26393 grep -v '^ *+' conftest.er1 >conftest.err
26394 rm -f conftest.er1
26395 cat conftest.err >&5
a848cd7e
SC
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } &&
c9a66001 26398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26400 (eval $ac_try) 2>&5
26401 ac_status=$?
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); }; } &&
26404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; }; then
26410 ac_cv_lib_expat_XML_ParserCreate=yes
26411else
26412 echo "$as_me: failed program was:" >&5
26413sed 's/^/| /' conftest.$ac_ext >&5
26414
26415ac_cv_lib_expat_XML_ParserCreate=no
26416fi
ac1cb8d3
VS
26417rm -f conftest.err conftest.$ac_objext \
26418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26419LIBS=$ac_check_lib_save_LIBS
26420fi
26421echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26422echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26423if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26424 EXPAT_LINK=" -lexpat"
26425fi
26426
26427 fi
26428 fi
26429 if test "x$EXPAT_LINK" = "x" ; then
26430 if test "$wxUSE_EXPAT" = "sys" ; then
26431 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26432echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26433 { (exit 1); exit 1; }; }
26434 else
26435 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26436echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26437 wxUSE_EXPAT=builtin
26438 fi
26439 else
26440 wxUSE_EXPAT=sys
26441 fi
26442 fi
26443 if test "$wxUSE_EXPAT" = "builtin" ; then
26444
26445
26446subdirs="$subdirs src/expat"
26447
26448 fi
26449fi
26450
26451
26452
26453if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26454 if test "${ac_cv_header_mspack_h+set}" = set; then
26455 echo "$as_me:$LINENO: checking for mspack.h" >&5
26456echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26457if test "${ac_cv_header_mspack_h+set}" = set; then
26458 echo $ECHO_N "(cached) $ECHO_C" >&6
26459fi
26460echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26461echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26462else
26463 # Is the header compilable?
26464echo "$as_me:$LINENO: checking mspack.h usability" >&5
26465echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26466cat >conftest.$ac_ext <<_ACEOF
26467/* confdefs.h. */
26468_ACEOF
26469cat confdefs.h >>conftest.$ac_ext
26470cat >>conftest.$ac_ext <<_ACEOF
26471/* end confdefs.h. */
26472$ac_includes_default
26473#include <mspack.h>
26474_ACEOF
26475rm -f conftest.$ac_objext
26476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26477 (eval $ac_compile) 2>conftest.er1
a848cd7e 26478 ac_status=$?
ac1cb8d3
VS
26479 grep -v '^ *+' conftest.er1 >conftest.err
26480 rm -f conftest.er1
26481 cat conftest.err >&5
a848cd7e
SC
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } &&
c9a66001 26484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; } &&
26490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26493 ac_status=$?
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); }; }; then
26496 ac_header_compiler=yes
26497else
26498 echo "$as_me: failed program was:" >&5
26499sed 's/^/| /' conftest.$ac_ext >&5
26500
26501ac_header_compiler=no
26502fi
ac1cb8d3 26503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26504echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26505echo "${ECHO_T}$ac_header_compiler" >&6
26506
26507# Is the header present?
26508echo "$as_me:$LINENO: checking mspack.h presence" >&5
26509echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26510cat >conftest.$ac_ext <<_ACEOF
26511/* confdefs.h. */
26512_ACEOF
26513cat confdefs.h >>conftest.$ac_ext
26514cat >>conftest.$ac_ext <<_ACEOF
26515/* end confdefs.h. */
26516#include <mspack.h>
26517_ACEOF
26518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26520 ac_status=$?
26521 grep -v '^ *+' conftest.er1 >conftest.err
26522 rm -f conftest.er1
26523 cat conftest.err >&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } >/dev/null; then
26526 if test -s conftest.err; then
5d7b7554
VZ
26527 ac_cpp_err=$ac_cxx_preproc_warn_flag
26528 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26529 else
26530 ac_cpp_err=
26531 fi
26532else
26533 ac_cpp_err=yes
26534fi
26535if test -z "$ac_cpp_err"; then
26536 ac_header_preproc=yes
26537else
26538 echo "$as_me: failed program was:" >&5
26539sed 's/^/| /' conftest.$ac_ext >&5
26540
26541 ac_header_preproc=no
26542fi
26543rm -f conftest.err conftest.$ac_ext
26544echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26545echo "${ECHO_T}$ac_header_preproc" >&6
26546
26547# So? What about this header?
5d7b7554 26548case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26549 yes:no: )
a848cd7e
SC
26550 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26551echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26552 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26553echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26554 ac_header_preproc=yes
a848cd7e 26555 ;;
ac1cb8d3 26556 no:yes:* )
a848cd7e
SC
26557 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26558echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26559 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26560echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26561 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26562echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26563 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26564echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26565 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26566echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26567 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26568echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26569 (
26570 cat <<\_ASBOX
ac1cb8d3
VS
26571## ----------------------------------------- ##
26572## Report this to wx-dev@lists.wxwidgets.org ##
26573## ----------------------------------------- ##
a848cd7e
SC
26574_ASBOX
26575 ) |
26576 sed "s/^/$as_me: WARNING: /" >&2
26577 ;;
26578esac
26579echo "$as_me:$LINENO: checking for mspack.h" >&5
26580echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26581if test "${ac_cv_header_mspack_h+set}" = set; then
26582 echo $ECHO_N "(cached) $ECHO_C" >&6
26583else
26584 ac_cv_header_mspack_h=$ac_header_preproc
26585fi
26586echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26587echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26588
26589fi
26590if test $ac_cv_header_mspack_h = yes; then
26591 found_mspack_h=1
26592fi
26593
26594
26595 if test "x$found_mspack_h" = "x1"; then
26596 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26597echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26598if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26599 echo $ECHO_N "(cached) $ECHO_C" >&6
26600else
26601 ac_check_lib_save_LIBS=$LIBS
26602LIBS="-lmspack $LIBS"
26603cat >conftest.$ac_ext <<_ACEOF
26604/* confdefs.h. */
26605_ACEOF
26606cat confdefs.h >>conftest.$ac_ext
26607cat >>conftest.$ac_ext <<_ACEOF
26608/* end confdefs.h. */
26609
26610/* Override any gcc2 internal prototype to avoid an error. */
26611#ifdef __cplusplus
26612extern "C"
26613#endif
26614/* We use char because int might match the return type of a gcc2
26615 builtin and then its argument prototype would still apply. */
26616char mspack_create_chm_decompressor ();
26617int
26618main ()
26619{
26620mspack_create_chm_decompressor ();
26621 ;
26622 return 0;
26623}
26624_ACEOF
26625rm -f conftest.$ac_objext conftest$ac_exeext
26626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26627 (eval $ac_link) 2>conftest.er1
a848cd7e 26628 ac_status=$?
ac1cb8d3
VS
26629 grep -v '^ *+' conftest.er1 >conftest.err
26630 rm -f conftest.er1
26631 cat conftest.err >&5
a848cd7e
SC
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); } &&
c9a66001 26634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636 (eval $ac_try) 2>&5
26637 ac_status=$?
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); }; } &&
26640 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642 (eval $ac_try) 2>&5
26643 ac_status=$?
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); }; }; then
26646 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26647else
26648 echo "$as_me: failed program was:" >&5
26649sed 's/^/| /' conftest.$ac_ext >&5
26650
26651ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26652fi
ac1cb8d3
VS
26653rm -f conftest.err conftest.$ac_objext \
26654 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26655LIBS=$ac_check_lib_save_LIBS
26656fi
26657echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26658echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26659if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26660 MSPACK_LINK=" -lmspack"
26661fi
26662
26663 fi
26664 if test "x$MSPACK_LINK" = "x" ; then
26665 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26666 fi
26667fi
26668
26669if test "$wxUSE_LIBMSPACK" != "no"; then
26670 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26671#define wxUSE_LIBMSPACK 1
26672_ACEOF
26673
a848cd7e
SC
26674fi
26675
26676
26677
26678AFMINSTALL=
26679WIN32INSTALL=
26680
26681TOOLKIT=
26682TOOLKIT_INCLUDE=
26683WIDGET_SET=
26684
26685if test "$USE_WIN32" = 1 ; then
26686
26687for ac_header in w32api.h
26688do
26689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26690if eval "test \"\${$as_ac_Header+set}\" = set"; then
26691 echo "$as_me:$LINENO: checking for $ac_header" >&5
26692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26693if eval "test \"\${$as_ac_Header+set}\" = set"; then
26694 echo $ECHO_N "(cached) $ECHO_C" >&6
26695fi
26696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26698else
26699 # Is the header compilable?
26700echo "$as_me:$LINENO: checking $ac_header usability" >&5
26701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26702cat >conftest.$ac_ext <<_ACEOF
26703/* confdefs.h. */
26704_ACEOF
26705cat confdefs.h >>conftest.$ac_ext
26706cat >>conftest.$ac_ext <<_ACEOF
26707/* end confdefs.h. */
26708$ac_includes_default
26709#include <$ac_header>
26710_ACEOF
26711rm -f conftest.$ac_objext
26712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26713 (eval $ac_compile) 2>conftest.er1
a848cd7e 26714 ac_status=$?
ac1cb8d3
VS
26715 grep -v '^ *+' conftest.er1 >conftest.err
26716 rm -f conftest.er1
26717 cat conftest.err >&5
a848cd7e
SC
26718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719 (exit $ac_status); } &&
c9a66001 26720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26722 (eval $ac_try) 2>&5
26723 ac_status=$?
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); }; } &&
26726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26728 (eval $ac_try) 2>&5
26729 ac_status=$?
26730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); }; }; then
26732 ac_header_compiler=yes
26733else
26734 echo "$as_me: failed program was:" >&5
26735sed 's/^/| /' conftest.$ac_ext >&5
26736
26737ac_header_compiler=no
26738fi
ac1cb8d3 26739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26741echo "${ECHO_T}$ac_header_compiler" >&6
26742
26743# Is the header present?
26744echo "$as_me:$LINENO: checking $ac_header presence" >&5
26745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26746cat >conftest.$ac_ext <<_ACEOF
26747/* confdefs.h. */
26748_ACEOF
26749cat confdefs.h >>conftest.$ac_ext
26750cat >>conftest.$ac_ext <<_ACEOF
26751/* end confdefs.h. */
26752#include <$ac_header>
26753_ACEOF
26754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26756 ac_status=$?
26757 grep -v '^ *+' conftest.er1 >conftest.err
26758 rm -f conftest.er1
26759 cat conftest.err >&5
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); } >/dev/null; then
26762 if test -s conftest.err; then
5d7b7554
VZ
26763 ac_cpp_err=$ac_cxx_preproc_warn_flag
26764 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26765 else
26766 ac_cpp_err=
26767 fi
26768else
26769 ac_cpp_err=yes
26770fi
26771if test -z "$ac_cpp_err"; then
26772 ac_header_preproc=yes
26773else
26774 echo "$as_me: failed program was:" >&5
26775sed 's/^/| /' conftest.$ac_ext >&5
26776
26777 ac_header_preproc=no
26778fi
26779rm -f conftest.err conftest.$ac_ext
26780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26781echo "${ECHO_T}$ac_header_preproc" >&6
26782
26783# So? What about this header?
5d7b7554 26784case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26785 yes:no: )
a848cd7e
SC
26786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26790 ac_header_preproc=yes
a848cd7e 26791 ;;
ac1cb8d3 26792 no:yes:* )
a848cd7e
SC
26793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26800echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26805 (
26806 cat <<\_ASBOX
ac1cb8d3
VS
26807## ----------------------------------------- ##
26808## Report this to wx-dev@lists.wxwidgets.org ##
26809## ----------------------------------------- ##
a848cd7e
SC
26810_ASBOX
26811 ) |
26812 sed "s/^/$as_me: WARNING: /" >&2
26813 ;;
26814esac
26815echo "$as_me:$LINENO: checking for $ac_header" >&5
26816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26817if eval "test \"\${$as_ac_Header+set}\" = set"; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26819else
ac1cb8d3 26820 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26821fi
26822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26824
26825fi
26826if test `eval echo '${'$as_ac_Header'}'` = yes; then
26827 cat >>confdefs.h <<_ACEOF
26828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26829_ACEOF
26830
26831fi
26832
26833done
26834
26835 if test "${ac_cv_header_windows_h+set}" = set; then
26836 echo "$as_me:$LINENO: checking for windows.h" >&5
26837echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26838if test "${ac_cv_header_windows_h+set}" = set; then
26839 echo $ECHO_N "(cached) $ECHO_C" >&6
26840fi
26841echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26842echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26843else
26844 # Is the header compilable?
26845echo "$as_me:$LINENO: checking windows.h usability" >&5
26846echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26847cat >conftest.$ac_ext <<_ACEOF
26848/* confdefs.h. */
26849_ACEOF
26850cat confdefs.h >>conftest.$ac_ext
26851cat >>conftest.$ac_ext <<_ACEOF
26852/* end confdefs.h. */
26853$ac_includes_default
26854#include <windows.h>
26855_ACEOF
26856rm -f conftest.$ac_objext
26857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26858 (eval $ac_compile) 2>conftest.er1
a848cd7e 26859 ac_status=$?
ac1cb8d3
VS
26860 grep -v '^ *+' conftest.er1 >conftest.err
26861 rm -f conftest.er1
26862 cat conftest.err >&5
a848cd7e
SC
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); } &&
c9a66001 26865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26867 (eval $ac_try) 2>&5
26868 ac_status=$?
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); }; } &&
26871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26873 (eval $ac_try) 2>&5
26874 ac_status=$?
26875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876 (exit $ac_status); }; }; then
26877 ac_header_compiler=yes
26878else
26879 echo "$as_me: failed program was:" >&5
26880sed 's/^/| /' conftest.$ac_ext >&5
26881
26882ac_header_compiler=no
26883fi
ac1cb8d3 26884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26885echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26886echo "${ECHO_T}$ac_header_compiler" >&6
26887
26888# Is the header present?
26889echo "$as_me:$LINENO: checking windows.h presence" >&5
26890echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26891cat >conftest.$ac_ext <<_ACEOF
26892/* confdefs.h. */
26893_ACEOF
26894cat confdefs.h >>conftest.$ac_ext
26895cat >>conftest.$ac_ext <<_ACEOF
26896/* end confdefs.h. */
26897#include <windows.h>
26898_ACEOF
26899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26901 ac_status=$?
26902 grep -v '^ *+' conftest.er1 >conftest.err
26903 rm -f conftest.er1
26904 cat conftest.err >&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } >/dev/null; then
26907 if test -s conftest.err; then
5d7b7554
VZ
26908 ac_cpp_err=$ac_cxx_preproc_warn_flag
26909 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26910 else
26911 ac_cpp_err=
26912 fi
26913else
26914 ac_cpp_err=yes
26915fi
26916if test -z "$ac_cpp_err"; then
26917 ac_header_preproc=yes
26918else
26919 echo "$as_me: failed program was:" >&5
26920sed 's/^/| /' conftest.$ac_ext >&5
26921
26922 ac_header_preproc=no
26923fi
26924rm -f conftest.err conftest.$ac_ext
26925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26926echo "${ECHO_T}$ac_header_preproc" >&6
26927
26928# So? What about this header?
5d7b7554 26929case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26930 yes:no: )
a848cd7e
SC
26931 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26932echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26933 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26934echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26935 ac_header_preproc=yes
a848cd7e 26936 ;;
ac1cb8d3 26937 no:yes:* )
a848cd7e
SC
26938 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26939echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26940 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26941echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26942 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26943echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26944 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26945echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26946 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26947echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26948 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26949echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26950 (
26951 cat <<\_ASBOX
ac1cb8d3
VS
26952## ----------------------------------------- ##
26953## Report this to wx-dev@lists.wxwidgets.org ##
26954## ----------------------------------------- ##
a848cd7e
SC
26955_ASBOX
26956 ) |
26957 sed "s/^/$as_me: WARNING: /" >&2
26958 ;;
26959esac
26960echo "$as_me:$LINENO: checking for windows.h" >&5
26961echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26962if test "${ac_cv_header_windows_h+set}" = set; then
26963 echo $ECHO_N "(cached) $ECHO_C" >&6
26964else
26965 ac_cv_header_windows_h=$ac_header_preproc
26966fi
26967echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26968echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26969
26970fi
26971if test $ac_cv_header_windows_h = yes; then
26972 :
26973else
26974
26975 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26976echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26977 { (exit 1); exit 1; }; }
26978
26979fi
26980
26981
26982
26983 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26984
26985 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26986 LIBS="$LIBS -loleacc"
26987 fi
26988
26989 case "${host}" in
26990 *-*-cygwin* )
26991 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26992 esac
26993
26994 if test "$wxUSE_ODBC" = "sys" ; then
26995 wxUSE_ODBC = "yes"
26996 fi
26997 if test "$wxUSE_ODBC" = "yes" ; then
26998 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26999 cat >>confdefs.h <<\_ACEOF
27000#define wxUSE_ODBC 1
27001_ACEOF
27002
27003 fi
27004
370d2fd7 27005 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27006 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27007
004ee6da 27008 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27009
a848cd7e
SC
27010 WIN32INSTALL=win32install
27011fi
27012
27013if test "$wxUSE_GUI" = "yes"; then
27014 USE_GUI=1
27015
27016 GUI_TK_LIBRARY=
27017
27018 WXGTK12=
27019 WXGTK127=
27020 WXGTK20=
27021 WXGPE=
27022
207bc66c
RN
27023 if test "$wxUSE_COCOA" = 1 ; then
27024 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27025 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27026echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27027 wxUSE_PRINTING_ARCHITECTURE=no
27028 fi
27029 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27030 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27031echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27032 wxUSE_DRAG_AND_DROP=no
27033 fi
27034 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27035 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27036echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27037 wxUSE_DRAGIMAGE=no
27038 fi
27039 fi
27040
a848cd7e
SC
27041 if test "$wxUSE_MSW" = 1 ; then
27042 TOOLKIT=MSW
27043 GUIDIST=MSW_DIST
27044
ceec2216 27045 case "${host}" in
a848cd7e
SC
27046 *-*-mingw32* )
27047 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27048 esac
27049 fi
27050
27051 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27052 ac_ext=c
27053ac_cpp='$CPP $CPPFLAGS'
27054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27056ac_compiler_gnu=$ac_cv_c_compiler_gnu
27057
27058
a848cd7e
SC
27059 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27060echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27061
27062 gtk_version_cached=1
27063 if test "${wx_cv_lib_gtk+set}" = set; then
27064 echo $ECHO_N "(cached) $ECHO_C" >&6
27065else
27066
27067 gtk_version_cached=0
27068 echo "$as_me:$LINENO: result: " >&5
27069echo "${ECHO_T}" >&6
27070
27071 GTK_MODULES=
27072 if test "$wxUSE_THREADS" = "yes"; then
27073 GTK_MODULES=gthread
27074 fi
27075
f597b41c 27076 wx_cv_lib_gtk=
5001df0d
MW
27077 if test "x$wxGTK_VERSION" != "x1"
27078 then
27079 case "${host}" in
27080 *-*-solaris2* )
27081 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27082 enable_gtktest=no
5001df0d
MW
27083 fi
27084 esac
27085
a848cd7e
SC
27086 # Check whether --enable-gtktest or --disable-gtktest was given.
27087if test "${enable_gtktest+set}" = set; then
27088 enableval="$enable_gtktest"
27089
27090else
27091 enable_gtktest=yes
27092fi;
27093
27094 pkg_config_args=gtk+-2.0
27095 for module in . $GTK_MODULES
27096 do
27097 case "$module" in
27098 gthread)
27099 pkg_config_args="$pkg_config_args gthread-2.0"
27100 ;;
27101 esac
27102 done
27103
27104 no_gtk=""
27105
27106 # Extract the first word of "pkg-config", so it can be a program name with args.
27107set dummy pkg-config; ac_word=$2
27108echo "$as_me:$LINENO: checking for $ac_word" >&5
27109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27110if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27111 echo $ECHO_N "(cached) $ECHO_C" >&6
27112else
27113 case $PKG_CONFIG in
27114 [\\/]* | ?:[\\/]*)
27115 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27116 ;;
27117 *)
27118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27119for as_dir in $PATH
27120do
27121 IFS=$as_save_IFS
27122 test -z "$as_dir" && as_dir=.
27123 for ac_exec_ext in '' $ac_executable_extensions; do
27124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27125 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27127 break 2
27128 fi
27129done
27130done
27131
27132 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27133 ;;
27134esac
27135fi
27136PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27137
27138if test -n "$PKG_CONFIG"; then
27139 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27140echo "${ECHO_T}$PKG_CONFIG" >&6
27141else
27142 echo "$as_me:$LINENO: result: no" >&5
27143echo "${ECHO_T}no" >&6
27144fi
27145
27146
27147 if test x$PKG_CONFIG != xno ; then
27148 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27149 :
27150 else
c2218763 27151 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27152 no_gtk=yes
27153 PKG_CONFIG=no
27154 fi
27155 else
27156 no_gtk=yes
27157 fi
27158
27159 min_gtk_version=2.0.0
27160 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27161echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27162
27163 if test x$PKG_CONFIG != xno ; then
27164 ## don't try to run the test against uninstalled libtool libs
27165 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27166 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27167 enable_gtktest=no
27168 fi
27169
27170 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27171 :
27172 else
27173 no_gtk=yes
27174 fi
27175 fi
27176
27177 if test x"$no_gtk" = x ; then
27178 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27179 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27180 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27181 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27182 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27183 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27184 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27185 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27186 if test "x$enable_gtktest" = "xyes" ; then
27187 ac_save_CFLAGS="$CFLAGS"
27188 ac_save_LIBS="$LIBS"
27189 CFLAGS="$CFLAGS $GTK_CFLAGS"
27190 LIBS="$GTK_LIBS $LIBS"
27191 rm -f conf.gtktest
27192 if test "$cross_compiling" = yes; then
27193 echo $ac_n "cross compiling; assumed OK... $ac_c"
27194else
27195 cat >conftest.$ac_ext <<_ACEOF
27196/* confdefs.h. */
27197_ACEOF
27198cat confdefs.h >>conftest.$ac_ext
27199cat >>conftest.$ac_ext <<_ACEOF
27200/* end confdefs.h. */
27201
27202#include <gtk/gtk.h>
27203#include <stdio.h>
27204#include <stdlib.h>
27205
27206int
27207main ()
27208{
27209 int major, minor, micro;
27210 char *tmp_version;
27211
27212 system ("touch conf.gtktest");
27213
27214 /* HP/UX 9 (%@#!) writes to sscanf strings */
27215 tmp_version = g_strdup("$min_gtk_version");
27216 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27217 printf("%s, bad version string\n", "$min_gtk_version");
27218 exit(1);
27219 }
27220
27221 if ((gtk_major_version != $gtk_config_major_version) ||
27222 (gtk_minor_version != $gtk_config_minor_version) ||
27223 (gtk_micro_version != $gtk_config_micro_version))
27224 {
27225 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27226 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27227 gtk_major_version, gtk_minor_version, gtk_micro_version);
27228 printf ("*** was found! If pkg-config was correct, then it is best\n");
27229 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27230 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27231 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27232 printf("*** required on your system.\n");
27233 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27234 printf("*** to point to the correct configuration files\n");
27235 }
27236 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27237 (gtk_minor_version != GTK_MINOR_VERSION) ||
27238 (gtk_micro_version != GTK_MICRO_VERSION))
27239 {
27240 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27241 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27242 printf("*** library (version %d.%d.%d)\n",
27243 gtk_major_version, gtk_minor_version, gtk_micro_version);
27244 }
27245 else
27246 {
27247 if ((gtk_major_version > major) ||
27248 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27249 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27250 {
27251 return 0;
27252 }
27253 else
27254 {
27255 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27256 gtk_major_version, gtk_minor_version, gtk_micro_version);
27257 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27258 major, minor, micro);
27259 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27260 printf("***\n");
27261 printf("*** If you have already installed a sufficiently new version, this error\n");
27262 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27263 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27264 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27265 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27266 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27267 printf("*** so that the correct libraries are found at run-time))\n");
27268 }
27269 }
27270 return 1;
27271}
27272
27273_ACEOF
27274rm -f conftest$ac_exeext
27275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27276 (eval $ac_link) 2>&5
27277 ac_status=$?
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27281 (eval $ac_try) 2>&5
27282 ac_status=$?
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); }; }; then
27285 :
27286else
27287 echo "$as_me: program exited with status $ac_status" >&5
27288echo "$as_me: failed program was:" >&5
27289sed 's/^/| /' conftest.$ac_ext >&5
27290
27291( exit $ac_status )
27292no_gtk=yes
27293fi
ac1cb8d3 27294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27295fi
27296 CFLAGS="$ac_save_CFLAGS"
27297 LIBS="$ac_save_LIBS"
27298 fi
27299 fi
27300 if test "x$no_gtk" = x ; then
27301 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27302echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27303 wx_cv_lib_gtk=2.0
27304 else
27305 echo "$as_me:$LINENO: result: no" >&5
27306echo "${ECHO_T}no" >&6
27307 if test "$PKG_CONFIG" = "no" ; then
27308 echo "*** A new enough version of pkg-config was not found."
27309 echo "*** See http://pkgconfig.sourceforge.net"
27310 else
27311 if test -f conf.gtktest ; then
27312 :
27313 else
27314 echo "*** Could not run GTK+ test program, checking why..."
27315 ac_save_CFLAGS="$CFLAGS"
27316 ac_save_LIBS="$LIBS"
27317 CFLAGS="$CFLAGS $GTK_CFLAGS"
27318 LIBS="$LIBS $GTK_LIBS"
27319 cat >conftest.$ac_ext <<_ACEOF
27320/* confdefs.h. */
27321_ACEOF
27322cat confdefs.h >>conftest.$ac_ext
27323cat >>conftest.$ac_ext <<_ACEOF
27324/* end confdefs.h. */
27325
27326#include <gtk/gtk.h>
27327#include <stdio.h>
27328
27329int
27330main ()
27331{
27332 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27333 ;
27334 return 0;
27335}
27336_ACEOF
27337rm -f conftest.$ac_objext conftest$ac_exeext
27338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27339 (eval $ac_link) 2>conftest.er1
a848cd7e 27340 ac_status=$?
ac1cb8d3
VS
27341 grep -v '^ *+' conftest.er1 >conftest.err
27342 rm -f conftest.er1
27343 cat conftest.err >&5
a848cd7e
SC
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } &&
c9a66001 27346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27348 (eval $ac_try) 2>&5
27349 ac_status=$?
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); }; } &&
27352 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27354 (eval $ac_try) 2>&5
27355 ac_status=$?
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); }; }; then
27358 echo "*** The test program compiled, but did not run. This usually means"
27359 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27360 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27361 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27362 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27363 echo "*** is required on your system"
27364 echo "***"
27365 echo "*** If you have an old version installed, it is best to remove it, although"
27366 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27367else
27368 echo "$as_me: failed program was:" >&5
27369sed 's/^/| /' conftest.$ac_ext >&5
27370
27371 echo "*** The test program failed to compile or link. See the file config.log for the"
27372 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27373fi
ac1cb8d3
VS
27374rm -f conftest.err conftest.$ac_objext \
27375 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27376 CFLAGS="$ac_save_CFLAGS"
27377 LIBS="$ac_save_LIBS"
27378 fi
27379 fi
27380 GTK_CFLAGS=""
27381 GTK_LIBS=""
27382 :
27383 fi
27384
27385
27386 rm -f conf.gtktest
27387
5001df0d
MW
27388
27389 case "${host}" in
27390 *-*-solaris2* )
27391 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27392 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27393 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27394 fi
27395 if test "$wxUSE_SHARED" != "yes"; then
27396 GTK_LIBS="$GTK_LIBS -lX11"
27397 fi
27398 esac
f597b41c
MW
27399 fi
27400
f34ca037
MW
27401 if test -z "$wx_cv_lib_gtk"; then
27402 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27403
27404# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27405if test "${with_gtk_prefix+set}" = set; then
27406 withval="$with_gtk_prefix"
27407 gtk_config_prefix="$withval"
27408else
27409 gtk_config_prefix=""
27410fi;
27411
27412# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27413if test "${with_gtk_exec_prefix+set}" = set; then
27414 withval="$with_gtk_exec_prefix"
27415 gtk_config_exec_prefix="$withval"
27416else
27417 gtk_config_exec_prefix=""
27418fi;
27419# Check whether --enable-gtktest or --disable-gtktest was given.
27420if test "${enable_gtktest+set}" = set; then
27421 enableval="$enable_gtktest"
27422
27423else
27424 enable_gtktest=yes
27425fi;
27426
27427 for module in . $GTK_MODULES
27428 do
27429 case "$module" in
27430 gthread)
27431 gtk_config_args="$gtk_config_args gthread"
27432 ;;
27433 esac
27434 done
27435
27436 if test x$gtk_config_exec_prefix != x ; then
27437 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27438 if test x${GTK_CONFIG+set} != xset ; then
27439 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27440 fi
27441 fi
27442 if test x$gtk_config_prefix != x ; then
27443 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27444 if test x${GTK_CONFIG+set} != xset ; then
27445 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27446 fi
27447 fi
27448
27449 # Extract the first word of "gtk-config", so it can be a program name with args.
27450set dummy gtk-config; ac_word=$2
27451echo "$as_me:$LINENO: checking for $ac_word" >&5
27452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27453if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27454 echo $ECHO_N "(cached) $ECHO_C" >&6
27455else
27456 case $GTK_CONFIG in
27457 [\\/]* | ?:[\\/]*)
27458 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27459 ;;
27460 *)
27461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27462for as_dir in $PATH
27463do
27464 IFS=$as_save_IFS
27465 test -z "$as_dir" && as_dir=.
27466 for ac_exec_ext in '' $ac_executable_extensions; do
27467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27468 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27470 break 2
27471 fi
27472done
27473done
27474
27475 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27476 ;;
27477esac
27478fi
27479GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27480
27481if test -n "$GTK_CONFIG"; then
27482 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27483echo "${ECHO_T}$GTK_CONFIG" >&6
27484else
27485 echo "$as_me:$LINENO: result: no" >&5
27486echo "${ECHO_T}no" >&6
27487fi
27488
27489 min_gtk_version=1.2.7
27490 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27491echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27492 no_gtk=""
27493 if test "$GTK_CONFIG" = "no" ; then
27494 no_gtk=yes
27495 else
27496 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27497 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27498 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27499 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27500 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27501 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27502 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27503 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27504 if test "x$enable_gtktest" = "xyes" ; then
27505 ac_save_CFLAGS="$CFLAGS"
27506 ac_save_LIBS="$LIBS"
27507 CFLAGS="$CFLAGS $GTK_CFLAGS"
27508 LIBS="$GTK_LIBS $LIBS"
27509 rm -f conf.gtktest
27510 if test "$cross_compiling" = yes; then
27511 echo $ac_n "cross compiling; assumed OK... $ac_c"
27512else
27513 cat >conftest.$ac_ext <<_ACEOF
27514/* confdefs.h. */
27515_ACEOF
27516cat confdefs.h >>conftest.$ac_ext
27517cat >>conftest.$ac_ext <<_ACEOF
27518/* end confdefs.h. */
27519
27520#include <gtk/gtk.h>
27521#include <stdio.h>
27522#include <stdlib.h>
27523
27524int
27525main ()
27526{
27527 int major, minor, micro;
27528 char *tmp_version;
27529
27530 system ("touch conf.gtktest");
27531
27532 /* HP/UX 9 (%@#!) writes to sscanf strings */
27533 tmp_version = g_strdup("$min_gtk_version");
27534 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27535 printf("%s, bad version string\n", "$min_gtk_version");
27536 exit(1);
27537 }
27538
27539 if ((gtk_major_version != $gtk_config_major_version) ||
27540 (gtk_minor_version != $gtk_config_minor_version) ||
27541 (gtk_micro_version != $gtk_config_micro_version))
27542 {
27543 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27544 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27545 gtk_major_version, gtk_minor_version, gtk_micro_version);
27546 printf ("*** was found! If gtk-config was correct, then it is best\n");
27547 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27548 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27549 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27550 printf("*** required on your system.\n");
27551 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27552 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27553 printf("*** before re-running configure\n");
27554 }
27555#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27556 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27557 (gtk_minor_version != GTK_MINOR_VERSION) ||
27558 (gtk_micro_version != GTK_MICRO_VERSION))
27559 {
27560 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27561 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27562 printf("*** library (version %d.%d.%d)\n",
27563 gtk_major_version, gtk_minor_version, gtk_micro_version);
27564 }
27565#endif /* defined (GTK_MAJOR_VERSION) ... */
27566 else
27567 {
27568 if ((gtk_major_version > major) ||
27569 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27570 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27571 {
27572 return 0;
27573 }
27574 else
27575 {
27576 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27577 gtk_major_version, gtk_minor_version, gtk_micro_version);
27578 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27579 major, minor, micro);
27580 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27581 printf("***\n");
27582 printf("*** If you have already installed a sufficiently new version, this error\n");
27583 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27584 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27585 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27586 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27587 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27588 printf("*** so that the correct libraries are found at run-time))\n");
27589 }
27590 }
27591 return 1;
27592}
27593
27594_ACEOF
27595rm -f conftest$ac_exeext
27596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27597 (eval $ac_link) 2>&5
27598 ac_status=$?
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27602 (eval $ac_try) 2>&5
27603 ac_status=$?
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); }; }; then
27606 :
27607else
27608 echo "$as_me: program exited with status $ac_status" >&5
27609echo "$as_me: failed program was:" >&5
27610sed 's/^/| /' conftest.$ac_ext >&5
27611
27612( exit $ac_status )
27613no_gtk=yes
27614fi
ac1cb8d3 27615rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27616fi
27617 CFLAGS="$ac_save_CFLAGS"
27618 LIBS="$ac_save_LIBS"
27619 fi
27620 fi
27621 if test "x$no_gtk" = x ; then
27622 echo "$as_me:$LINENO: result: yes" >&5
27623echo "${ECHO_T}yes" >&6
27624 wx_cv_lib_gtk=1.2.7
27625 else
27626 echo "$as_me:$LINENO: result: no" >&5
27627echo "${ECHO_T}no" >&6
27628 if test "$GTK_CONFIG" = "no" ; then
27629 echo "*** The gtk-config script installed by GTK could not be found"
27630 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27631 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27632 echo "*** full path to gtk-config."
27633 else
27634 if test -f conf.gtktest ; then
27635 :
27636 else
27637 echo "*** Could not run GTK test program, checking why..."
27638 CFLAGS="$CFLAGS $GTK_CFLAGS"
27639 LIBS="$LIBS $GTK_LIBS"
27640 cat >conftest.$ac_ext <<_ACEOF
27641/* confdefs.h. */
27642_ACEOF
27643cat confdefs.h >>conftest.$ac_ext
27644cat >>conftest.$ac_ext <<_ACEOF
27645/* end confdefs.h. */
27646
27647#include <gtk/gtk.h>
27648#include <stdio.h>
27649
27650int
27651main ()
27652{
27653 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27654 ;
27655 return 0;
27656}
27657_ACEOF
27658rm -f conftest.$ac_objext conftest$ac_exeext
27659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27660 (eval $ac_link) 2>conftest.er1
a848cd7e 27661 ac_status=$?
ac1cb8d3
VS
27662 grep -v '^ *+' conftest.er1 >conftest.err
27663 rm -f conftest.er1
27664 cat conftest.err >&5
a848cd7e
SC
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); } &&
c9a66001 27667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669 (eval $ac_try) 2>&5
27670 ac_status=$?
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; } &&
27673 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27675 (eval $ac_try) 2>&5
27676 ac_status=$?
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); }; }; then
27679 echo "*** The test program compiled, but did not run. This usually means"
27680 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27681 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27682 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27683 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27684 echo "*** is required on your system"
27685 echo "***"
27686 echo "*** If you have an old version installed, it is best to remove it, although"
27687 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27688 echo "***"
27689 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27690 echo "*** came with the system with the command"
27691 echo "***"
27692 echo "*** rpm --erase --nodeps gtk gtk-devel"
27693else
27694 echo "$as_me: failed program was:" >&5
27695sed 's/^/| /' conftest.$ac_ext >&5
27696
27697 echo "*** The test program failed to compile or link. See the file config.log for the"
27698 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27699 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27700 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27701fi
ac1cb8d3
VS
27702rm -f conftest.err conftest.$ac_objext \
27703 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27704 CFLAGS="$ac_save_CFLAGS"
27705 LIBS="$ac_save_LIBS"
27706 fi
27707 fi
27708 GTK_CFLAGS=""
27709 GTK_LIBS=""
27710 :
27711 fi
27712
27713
27714 rm -f conf.gtktest
27715
27716
f34ca037 27717 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27718
27719# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27720if test "${with_gtk_prefix+set}" = set; then
27721 withval="$with_gtk_prefix"
27722 gtk_config_prefix="$withval"
27723else
27724 gtk_config_prefix=""
27725fi;
27726
27727# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27728if test "${with_gtk_exec_prefix+set}" = set; then
27729 withval="$with_gtk_exec_prefix"
27730 gtk_config_exec_prefix="$withval"
27731else
27732 gtk_config_exec_prefix=""
27733fi;
27734# Check whether --enable-gtktest or --disable-gtktest was given.
27735if test "${enable_gtktest+set}" = set; then
27736 enableval="$enable_gtktest"
27737
27738else
27739 enable_gtktest=yes
27740fi;
27741
27742 for module in . $GTK_MODULES
27743 do
27744 case "$module" in
27745 gthread)
27746 gtk_config_args="$gtk_config_args gthread"
27747 ;;
27748 esac
27749 done
27750
27751 if test x$gtk_config_exec_prefix != x ; then
27752 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27753 if test x${GTK_CONFIG+set} != xset ; then
27754 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27755 fi
27756 fi
27757 if test x$gtk_config_prefix != x ; then
27758 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27759 if test x${GTK_CONFIG+set} != xset ; then
27760 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27761 fi
27762 fi
27763
27764 # Extract the first word of "gtk-config", so it can be a program name with args.
27765set dummy gtk-config; ac_word=$2
27766echo "$as_me:$LINENO: checking for $ac_word" >&5
27767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27768if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27769 echo $ECHO_N "(cached) $ECHO_C" >&6
27770else
27771 case $GTK_CONFIG in
27772 [\\/]* | ?:[\\/]*)
27773 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27774 ;;
27775 *)
27776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27777for as_dir in $PATH
27778do
27779 IFS=$as_save_IFS
27780 test -z "$as_dir" && as_dir=.
27781 for ac_exec_ext in '' $ac_executable_extensions; do
27782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27783 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27785 break 2
27786 fi
27787done
27788done
27789
27790 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27791 ;;
27792esac
27793fi
27794GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27795
27796if test -n "$GTK_CONFIG"; then
27797 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27798echo "${ECHO_T}$GTK_CONFIG" >&6
27799else
27800 echo "$as_me:$LINENO: result: no" >&5
27801echo "${ECHO_T}no" >&6
27802fi
27803
27804 min_gtk_version=1.2.3
27805 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27806echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27807 no_gtk=""
27808 if test "$GTK_CONFIG" = "no" ; then
27809 no_gtk=yes
27810 else
27811 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27812 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27813 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27814 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27815 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27816 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27817 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27818 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27819 if test "x$enable_gtktest" = "xyes" ; then
27820 ac_save_CFLAGS="$CFLAGS"
27821 ac_save_LIBS="$LIBS"
27822 CFLAGS="$CFLAGS $GTK_CFLAGS"
27823 LIBS="$GTK_LIBS $LIBS"
27824 rm -f conf.gtktest
27825 if test "$cross_compiling" = yes; then
27826 echo $ac_n "cross compiling; assumed OK... $ac_c"
27827else
27828 cat >conftest.$ac_ext <<_ACEOF
27829/* confdefs.h. */
27830_ACEOF
27831cat confdefs.h >>conftest.$ac_ext
27832cat >>conftest.$ac_ext <<_ACEOF
27833/* end confdefs.h. */
27834
27835#include <gtk/gtk.h>
27836#include <stdio.h>
27837#include <stdlib.h>
27838
27839int
27840main ()
27841{
27842 int major, minor, micro;
27843 char *tmp_version;
27844
27845 system ("touch conf.gtktest");
27846
27847 /* HP/UX 9 (%@#!) writes to sscanf strings */
27848 tmp_version = g_strdup("$min_gtk_version");
27849 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27850 printf("%s, bad version string\n", "$min_gtk_version");
27851 exit(1);
27852 }
27853
27854 if ((gtk_major_version != $gtk_config_major_version) ||
27855 (gtk_minor_version != $gtk_config_minor_version) ||
27856 (gtk_micro_version != $gtk_config_micro_version))
27857 {
27858 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27859 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27860 gtk_major_version, gtk_minor_version, gtk_micro_version);
27861 printf ("*** was found! If gtk-config was correct, then it is best\n");
27862 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27863 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27864 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27865 printf("*** required on your system.\n");
27866 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27867 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27868 printf("*** before re-running configure\n");
27869 }
27870#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27871 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27872 (gtk_minor_version != GTK_MINOR_VERSION) ||
27873 (gtk_micro_version != GTK_MICRO_VERSION))
27874 {
27875 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27876 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27877 printf("*** library (version %d.%d.%d)\n",
27878 gtk_major_version, gtk_minor_version, gtk_micro_version);
27879 }
27880#endif /* defined (GTK_MAJOR_VERSION) ... */
27881 else
27882 {
27883 if ((gtk_major_version > major) ||
27884 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27885 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27886 {
27887 return 0;
27888 }
27889 else
27890 {
27891 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27892 gtk_major_version, gtk_minor_version, gtk_micro_version);
27893 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27894 major, minor, micro);
27895 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27896 printf("***\n");
27897 printf("*** If you have already installed a sufficiently new version, this error\n");
27898 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27899 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27900 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27901 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27902 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27903 printf("*** so that the correct libraries are found at run-time))\n");
27904 }
27905 }
27906 return 1;
27907}
27908
27909_ACEOF
27910rm -f conftest$ac_exeext
27911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27912 (eval $ac_link) 2>&5
27913 ac_status=$?
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27917 (eval $ac_try) 2>&5
27918 ac_status=$?
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); }; }; then
27921 :
27922else
27923 echo "$as_me: program exited with status $ac_status" >&5
27924echo "$as_me: failed program was:" >&5
27925sed 's/^/| /' conftest.$ac_ext >&5
27926
27927( exit $ac_status )
27928no_gtk=yes
27929fi
ac1cb8d3 27930rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27931fi
27932 CFLAGS="$ac_save_CFLAGS"
27933 LIBS="$ac_save_LIBS"
27934 fi
27935 fi
27936 if test "x$no_gtk" = x ; then
27937 echo "$as_me:$LINENO: result: yes" >&5
27938echo "${ECHO_T}yes" >&6
27939 wx_cv_lib_gtk=1.2.3
27940 else
27941 echo "$as_me:$LINENO: result: no" >&5
27942echo "${ECHO_T}no" >&6
27943 if test "$GTK_CONFIG" = "no" ; then
27944 echo "*** The gtk-config script installed by GTK could not be found"
27945 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27946 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27947 echo "*** full path to gtk-config."
27948 else
27949 if test -f conf.gtktest ; then
27950 :
27951 else
27952 echo "*** Could not run GTK test program, checking why..."
27953 CFLAGS="$CFLAGS $GTK_CFLAGS"
27954 LIBS="$LIBS $GTK_LIBS"
27955 cat >conftest.$ac_ext <<_ACEOF
27956/* confdefs.h. */
27957_ACEOF
27958cat confdefs.h >>conftest.$ac_ext
27959cat >>conftest.$ac_ext <<_ACEOF
27960/* end confdefs.h. */
27961
27962#include <gtk/gtk.h>
27963#include <stdio.h>
27964
27965int
27966main ()
27967{
27968 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27969 ;
27970 return 0;
27971}
27972_ACEOF
27973rm -f conftest.$ac_objext conftest$ac_exeext
27974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27975 (eval $ac_link) 2>conftest.er1
a848cd7e 27976 ac_status=$?
ac1cb8d3
VS
27977 grep -v '^ *+' conftest.er1 >conftest.err
27978 rm -f conftest.er1
27979 cat conftest.err >&5
a848cd7e
SC
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
c9a66001 27982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27984 (eval $ac_try) 2>&5
27985 ac_status=$?
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); }; } &&
27988 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27991 ac_status=$?
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; }; then
27994 echo "*** The test program compiled, but did not run. This usually means"
27995 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27996 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27997 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27998 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27999 echo "*** is required on your system"
28000 echo "***"
28001 echo "*** If you have an old version installed, it is best to remove it, although"
28002 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28003 echo "***"
28004 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28005 echo "*** came with the system with the command"
28006 echo "***"
28007 echo "*** rpm --erase --nodeps gtk gtk-devel"
28008else
28009 echo "$as_me: failed program was:" >&5
28010sed 's/^/| /' conftest.$ac_ext >&5
28011
28012 echo "*** The test program failed to compile or link. See the file config.log for the"
28013 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28014 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28015 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28016fi
ac1cb8d3
VS
28017rm -f conftest.err conftest.$ac_objext \
28018 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28019 CFLAGS="$ac_save_CFLAGS"
28020 LIBS="$ac_save_LIBS"
28021 fi
28022 fi
28023 GTK_CFLAGS=""
28024 GTK_LIBS=""
28025 :
28026 fi
28027
28028
28029 rm -f conf.gtktest
28030
f34ca037 28031 fi
a848cd7e
SC
28032 fi
28033 fi
28034
28035 if test -z "$wx_cv_lib_gtk"; then
28036 wx_cv_lib_gtk=none
28037 else
28038 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28039 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28040 fi
28041
28042
28043fi
28044
28045
28046 if test "$gtk_version_cached" = 1; then
28047 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28048echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28049 fi
28050
28051 case "$wx_cv_lib_gtk" in
28052 2.0) WXGTK20=1
28053 TOOLKIT_VERSION=2
28054 ;;
28055 1.2.7) WXGTK127=1
28056 WXGTK12=1
28057 ;;
28058 1.2.3) WXGTK12=1
28059 ;;
28060 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28061The development files for GTK+ were not found. For GTK+ 2, please
28062ensure that pkg-config is in the path and that gtk+-2.0.pc is
28063installed. For GTK+ 1.2 please check that gtk-config is in the path,
28064and that the version is 1.2.3 or above. Also check that the
28065libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28066--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28067 " >&5
28068echo "$as_me: error:
f597b41c
MW
28069The development files for GTK+ were not found. For GTK+ 2, please
28070ensure that pkg-config is in the path and that gtk+-2.0.pc is
28071installed. For GTK+ 1.2 please check that gtk-config is in the path,
28072and that the version is 1.2.3 or above. Also check that the
28073libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28074--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28075 " >&2;}
28076 { (exit 1); exit 1; }; }
28077 ;;
28078 esac
28079
28080 if test "$WXGTK20" = 1; then
6954625c 28081 save_CFLAGS="$CFLAGS"
304205f1 28082 save_LIBS="$LIBS"
6954625c 28083 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28084 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28085
d12aef51
VZ
28086 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28087echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28088 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28089/* confdefs.h. */
28090_ACEOF
28091cat confdefs.h >>conftest.$ac_ext
28092cat >>conftest.$ac_ext <<_ACEOF
28093/* end confdefs.h. */
304205f1 28094
d12aef51 28095 #include <gtk/gtk.h>
304205f1 28096
d12aef51
VZ
28097int
28098main ()
28099{
304205f1 28100
d12aef51 28101 void *f = gtk_icon_size_lookup;
abc736fd
MW
28102
28103 ;
28104 return 0;
28105}
28106_ACEOF
28107rm -f conftest.$ac_objext
28108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28109 (eval $ac_compile) 2>conftest.er1
28110 ac_status=$?
28111 grep -v '^ *+' conftest.er1 >conftest.err
28112 rm -f conftest.er1
28113 cat conftest.err >&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } &&
c9a66001 28116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28119 ac_status=$?
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; } &&
28122 { ac_try='test -s conftest.$ac_objext'
28123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124 (eval $ac_try) 2>&5
28125 ac_status=$?
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); }; }; then
28128
28129 echo "$as_me:$LINENO: result: no" >&5
28130echo "${ECHO_T}no" >&6
28131
28132else
28133 echo "$as_me: failed program was:" >&5
28134sed 's/^/| /' conftest.$ac_ext >&5
28135
28136
28137 cat >>confdefs.h <<\_ACEOF
28138#define NEED_GTK_ICON_SIZE_LOOKUP 1
28139_ACEOF
28140
28141 echo "$as_me:$LINENO: result: yes" >&5
28142echo "${ECHO_T}yes" >&6
28143
28144fi
28145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28146
e9263684
VZ
28147 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28148echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28149 cat >conftest.$ac_ext <<_ACEOF
28150/* confdefs.h. */
28151_ACEOF
28152cat confdefs.h >>conftest.$ac_ext
28153cat >>conftest.$ac_ext <<_ACEOF
28154/* end confdefs.h. */
28155
28156 #include <gtk/gtk.h>
28157
28158int
28159main ()
28160{
28161
28162 #if !GTK_CHECK_VERSION(2,6,0)
28163 Not GTK+ 2.6
28164 #endif
28165
28166 ;
28167 return 0;
28168}
28169_ACEOF
28170rm -f conftest.$ac_objext
28171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28172 (eval $ac_compile) 2>conftest.er1
28173 ac_status=$?
28174 grep -v '^ *+' conftest.er1 >conftest.err
28175 rm -f conftest.er1
28176 cat conftest.err >&5
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); } &&
c9a66001 28179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28181 (eval $ac_try) 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try='test -s conftest.$ac_objext'
28186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187 (eval $ac_try) 2>&5
28188 ac_status=$?
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; }; then
28191
28192 cat >>confdefs.h <<\_ACEOF
28193#define __WXGTK26__ 1
28194_ACEOF
28195
28196 cat >>confdefs.h <<\_ACEOF
28197#define __WXGTK24__ 1
28198_ACEOF
28199
28200 echo "$as_me:$LINENO: result: yes" >&5
28201echo "${ECHO_T}yes" >&6
28202 ac_wxgtk26=1
28203
28204else
28205 echo "$as_me: failed program was:" >&5
28206sed 's/^/| /' conftest.$ac_ext >&5
28207
28208
28209 echo "$as_me:$LINENO: result: no" >&5
28210echo "${ECHO_T}no" >&6
28211 ac_wxgtk26=0
28212
28213fi
28214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28215
28216 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28217 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28218echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28219 cat >conftest.$ac_ext <<_ACEOF
28220/* confdefs.h. */
28221_ACEOF
28222cat confdefs.h >>conftest.$ac_ext
28223cat >>conftest.$ac_ext <<_ACEOF
28224/* end confdefs.h. */
28225
28226 #include <gtk/gtk.h>
28227
28228int
28229main ()
28230{
28231
28232 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28233 Not GTK+ 2.4
9755e73b
VS
28234 #endif
28235
28236 ;
28237 return 0;
28238}
28239_ACEOF
28240rm -f conftest.$ac_objext
28241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28242 (eval $ac_compile) 2>conftest.er1
28243 ac_status=$?
28244 grep -v '^ *+' conftest.er1 >conftest.err
28245 rm -f conftest.er1
28246 cat conftest.err >&5
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); } &&
c9a66001 28249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28251 (eval $ac_try) 2>&5
28252 ac_status=$?
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); }; } &&
28255 { ac_try='test -s conftest.$ac_objext'
28256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28257 (eval $ac_try) 2>&5
28258 ac_status=$?
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); }; }; then
28261
28262 cat >>confdefs.h <<\_ACEOF
28263#define __WXGTK24__ 1
28264_ACEOF
28265
28266 echo "$as_me:$LINENO: result: yes" >&5
28267echo "${ECHO_T}yes" >&6
28268
28269else
28270 echo "$as_me: failed program was:" >&5
28271sed 's/^/| /' conftest.$ac_ext >&5
28272
28273
28274 echo "$as_me:$LINENO: result: no" >&5
28275echo "${ECHO_T}no" >&6
28276
28277fi
28278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28279 fi
9755e73b 28280
6954625c 28281 CFLAGS="$save_CFLAGS"
304205f1 28282 LIBS="$save_LIBS"
a848cd7e
SC
28283 else
28284 if test "$wxUSE_UNICODE" = "yes"; then
28285 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28286echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28287 wxUSE_UNICODE=no
28288 fi
28289 fi
28290
e56f4f9e
VZ
28291 ac_ext=cc
28292ac_cpp='$CXXCPP $CPPFLAGS'
28293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28296
28297
a848cd7e
SC
28298 if test "$USE_DARWIN" != 1; then
28299
28300for ac_func in poll
28301do
28302as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28303echo "$as_me:$LINENO: checking for $ac_func" >&5
28304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28305if eval "test \"\${$as_ac_var+set}\" = set"; then
28306 echo $ECHO_N "(cached) $ECHO_C" >&6
28307else
28308 cat >conftest.$ac_ext <<_ACEOF
28309/* confdefs.h. */
28310_ACEOF
28311cat confdefs.h >>conftest.$ac_ext
28312cat >>conftest.$ac_ext <<_ACEOF
28313/* end confdefs.h. */
ac1cb8d3
VS
28314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28316#define $ac_func innocuous_$ac_func
28317
a848cd7e
SC
28318/* System header to define __stub macros and hopefully few prototypes,
28319 which can conflict with char $ac_func (); below.
28320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28321 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28322
a848cd7e
SC
28323#ifdef __STDC__
28324# include <limits.h>
28325#else
28326# include <assert.h>
28327#endif
ac1cb8d3
VS
28328
28329#undef $ac_func
28330
a848cd7e
SC
28331/* Override any gcc2 internal prototype to avoid an error. */
28332#ifdef __cplusplus
28333extern "C"
28334{
28335#endif
28336/* We use char because int might match the return type of a gcc2
28337 builtin and then its argument prototype would still apply. */
28338char $ac_func ();
28339/* The GNU C library defines this for functions which it implements
28340 to always fail with ENOSYS. Some functions are actually named
28341 something starting with __ and the normal name is an alias. */
28342#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28343choke me
28344#else
28345char (*f) () = $ac_func;
28346#endif
28347#ifdef __cplusplus
28348}
28349#endif
28350
28351int
28352main ()
28353{
28354return f != $ac_func;
28355 ;
28356 return 0;
28357}
28358_ACEOF
28359rm -f conftest.$ac_objext conftest$ac_exeext
28360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28361 (eval $ac_link) 2>conftest.er1
a848cd7e 28362 ac_status=$?
ac1cb8d3
VS
28363 grep -v '^ *+' conftest.er1 >conftest.err
28364 rm -f conftest.er1
28365 cat conftest.err >&5
a848cd7e
SC
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); } &&
c9a66001 28368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28371 ac_status=$?
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; } &&
28374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376 (eval $ac_try) 2>&5
28377 ac_status=$?
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; }; then
28380 eval "$as_ac_var=yes"
28381else
28382 echo "$as_me: failed program was:" >&5
28383sed 's/^/| /' conftest.$ac_ext >&5
28384
28385eval "$as_ac_var=no"
28386fi
ac1cb8d3
VS
28387rm -f conftest.err conftest.$ac_objext \
28388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28389fi
28390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28392if test `eval echo '${'$as_ac_var'}'` = yes; then
28393 cat >>confdefs.h <<_ACEOF
28394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28395_ACEOF
28396
28397fi
28398done
28399
28400 fi
28401
28402 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28403 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28404
28405 AFMINSTALL=afminstall
28406 TOOLKIT=GTK
28407 GUIDIST=GTK_DIST
28408
28409 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28410echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28411if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28413else
28414 ac_check_lib_save_LIBS=$LIBS
28415LIBS="-lgdk $LIBS"
28416cat >conftest.$ac_ext <<_ACEOF
28417/* confdefs.h. */
28418_ACEOF
28419cat confdefs.h >>conftest.$ac_ext
28420cat >>conftest.$ac_ext <<_ACEOF
28421/* end confdefs.h. */
28422
28423/* Override any gcc2 internal prototype to avoid an error. */
28424#ifdef __cplusplus
28425extern "C"
28426#endif
28427/* We use char because int might match the return type of a gcc2
28428 builtin and then its argument prototype would still apply. */
28429char gdk_im_open ();
28430int
28431main ()
28432{
28433gdk_im_open ();
28434 ;
28435 return 0;
28436}
28437_ACEOF
28438rm -f conftest.$ac_objext conftest$ac_exeext
28439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28440 (eval $ac_link) 2>conftest.er1
a848cd7e 28441 ac_status=$?
ac1cb8d3
VS
28442 grep -v '^ *+' conftest.er1 >conftest.err
28443 rm -f conftest.er1
28444 cat conftest.err >&5
a848cd7e
SC
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); } &&
c9a66001 28447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28450 ac_status=$?
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; } &&
28453 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; }; then
28459 ac_cv_lib_gdk_gdk_im_open=yes
28460else
28461 echo "$as_me: failed program was:" >&5
28462sed 's/^/| /' conftest.$ac_ext >&5
28463
28464ac_cv_lib_gdk_gdk_im_open=no
28465fi
ac1cb8d3
VS
28466rm -f conftest.err conftest.$ac_objext \
28467 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28468LIBS=$ac_check_lib_save_LIBS
28469fi
28470echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28471echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28472if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28473 cat >>confdefs.h <<\_ACEOF
28474#define HAVE_XIM 1
28475_ACEOF
28476
28477fi
28478
28479
28480
28481 if test "$wxUSE_GPE" = "yes"; then
28482 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28483echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28484
0ad5d837
VZ
28485 ac_find_libraries=
28486 for ac_dir in $SEARCH_LIB;
a848cd7e 28487 do
3eca31dc 28488 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28489 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28490 ac_find_libraries=$ac_dir
28491 break 2
28492 fi
28493 done
28494 done
28495
28496 if test "$ac_find_libraries" != "" ; then
28497
0ad5d837 28498 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28499 ac_path_to_link=""
28500 else
0ad5d837
VZ
28501 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28502 result=$?
28503 if test $result = 0; then
28504 ac_path_to_link=""
28505 else
28506 ac_path_to_link=" -L$ac_find_libraries"
28507 fi
a848cd7e
SC
28508 fi
28509
28510 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28511 WXGPE=1
0ad5d837
VZ
28512 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28513echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28514 else
28515 echo "$as_me:$LINENO: result: not found" >&5
28516echo "${ECHO_T}not found" >&6
28517 fi
28518
28519 fi
28520 fi
28521
28522 if test "$wxUSE_MGL" = 1; then
28523 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28524echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28525 if test "x$MGL_ROOT" = x ; then
28526 echo "$as_me:$LINENO: result: not found" >&5
28527echo "${ECHO_T}not found" >&6
28528 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28529echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28530 { (exit 1); exit 1; }; }
28531 else
28532 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28533echo "${ECHO_T}$MGL_ROOT" >&6
28534 fi
28535
28536 echo "$as_me:$LINENO: checking for libmgl location" >&5
28537echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28538 case "${host}" in
28539 *-*-linux* )
28540 if test "x$wxUSE_SHARED" = xyes ; then
28541 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28542 else
28543 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28544 fi
28545 ;;
28546 *-pc-msdosdjgpp )
28547 mgl_os_candidates="dos32/dj2"
28548 ;;
28549 *)
28550 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28551echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28552 { (exit 1); exit 1; }; }
28553 esac
28554
28555 mgl_lib_type=""
28556 mgl_os=""
28557
28558 for mgl_os_i in $mgl_os_candidates ; do
28559 if test "x$mgl_os" = x ; then
28560 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28561 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28562 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28563 mgl_lib_type=debug
28564 mgl_os=$mgl_os_i
28565 fi
28566 fi
28567 if test "x$mgl_lib_type" = x ; then
28568 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28569 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28570 mgl_lib_type=release
28571 mgl_os=$mgl_os_i
28572 fi
28573 fi
28574 fi
28575 done
28576
28577 if test "x$mgl_os" = x ; then
28578 echo "$as_me:$LINENO: result: not found" >&5
28579echo "${ECHO_T}not found" >&6
28580 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28581echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28582 { (exit 1); exit 1; }; }
28583 fi
28584 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28585echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28586
28587 wxUSE_UNIVERSAL="yes"
28588
28589 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28590 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28591
28592 AFMINSTALL=afminstall
28593 TOOLKIT=MGL
28594 GUIDIST=MGL_DIST
28595 fi
28596
b3c86150
VS
28597 if test "$wxUSE_DFB" = 1; then
28598
28599
28600if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
28601 if test -n "$ac_tool_prefix"; then
28602 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28603set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28604echo "$as_me:$LINENO: checking for $ac_word" >&5
28605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28606if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28607 echo $ECHO_N "(cached) $ECHO_C" >&6
28608else
28609 case $PKG_CONFIG in
28610 [\\/]* | ?:[\\/]*)
28611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28612 ;;
28613 *)
28614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28615for as_dir in $PATH
28616do
28617 IFS=$as_save_IFS
28618 test -z "$as_dir" && as_dir=.
28619 for ac_exec_ext in '' $ac_executable_extensions; do
28620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28621 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28623 break 2
28624 fi
28625done
28626done
28627
28628 ;;
28629esac
28630fi
28631PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28632
28633if test -n "$PKG_CONFIG"; then
28634 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28635echo "${ECHO_T}$PKG_CONFIG" >&6
28636else
28637 echo "$as_me:$LINENO: result: no" >&5
28638echo "${ECHO_T}no" >&6
28639fi
28640
28641fi
28642if test -z "$ac_cv_path_PKG_CONFIG"; then
28643 ac_pt_PKG_CONFIG=$PKG_CONFIG
28644 # Extract the first word of "pkg-config", so it can be a program name with args.
28645set dummy pkg-config; ac_word=$2
28646echo "$as_me:$LINENO: checking for $ac_word" >&5
28647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28648if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
28650else
28651 case $ac_pt_PKG_CONFIG in
28652 [\\/]* | ?:[\\/]*)
28653 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
28654 ;;
28655 *)
28656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28657for as_dir in $PATH
28658do
28659 IFS=$as_save_IFS
28660 test -z "$as_dir" && as_dir=.
28661 for ac_exec_ext in '' $ac_executable_extensions; do
28662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28663 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28665 break 2
28666 fi
28667done
28668done
28669
28670 ;;
28671esac
28672fi
28673ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
28674
28675if test -n "$ac_pt_PKG_CONFIG"; then
28676 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
28677echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
28678else
28679 echo "$as_me:$LINENO: result: no" >&5
28680echo "${ECHO_T}no" >&6
28681fi
28682
28683 PKG_CONFIG=$ac_pt_PKG_CONFIG
28684else
28685 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
28686fi
28687
28688fi
28689if test -n "$PKG_CONFIG"; then
28690 _pkg_min_version=0.9.0
28691 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
28692echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
28693 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
28694 echo "$as_me:$LINENO: result: yes" >&5
28695echo "${ECHO_T}yes" >&6
28696 else
28697 echo "$as_me:$LINENO: result: no" >&5
28698echo "${ECHO_T}no" >&6
28699 PKG_CONFIG=""
28700 fi
28701
28702fi
28703
28704pkg_failed=no
28705echo "$as_me:$LINENO: checking for DIRECTFB" >&5
28706echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
28707
28708if test -n "$PKG_CONFIG"; then
28709 if test -n "$DIRECTFB_CFLAGS"; then
28710 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
28711 else
28712 if test -n "$PKG_CONFIG" && \
737d3175
VZ
28713 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
28714 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; then
737d3175 28718 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
28719else
28720 pkg_failed=yes
28721fi
28722 fi
28723else
28724 pkg_failed=untried
28725fi
28726if test -n "$PKG_CONFIG"; then
28727 if test -n "$DIRECTFB_LIBS"; then
28728 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
28729 else
28730 if test -n "$PKG_CONFIG" && \
737d3175
VZ
28731 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
28732 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
28733 ac_status=$?
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); }; then
737d3175 28736 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
28737else
28738 pkg_failed=yes
28739fi
28740 fi
28741else
28742 pkg_failed=untried
28743fi
28744
28745
28746
28747if test $pkg_failed = yes; then
28748
28749if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28750 _pkg_short_errors_supported=yes
28751else
28752 _pkg_short_errors_supported=no
28753fi
28754 if test $_pkg_short_errors_supported = yes; then
737d3175 28755 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 28756 else
737d3175 28757 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
28758 fi
28759 # Put the nasty error message in config.log where it belongs
28760 echo "$DIRECTFB_PKG_ERRORS" >&5
28761
28762
28763 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
28764echo "$as_me: error: DirectFB not found." >&2;}
28765 { (exit 1); exit 1; }; }
28766
28767
28768elif test $pkg_failed = untried; then
28769
28770 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
28771echo "$as_me: error: DirectFB not found." >&2;}
28772 { (exit 1); exit 1; }; }
28773
28774
28775else
28776 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
28777 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
28778 echo "$as_me:$LINENO: result: yes" >&5
28779echo "${ECHO_T}yes" >&6
28780
28781 wxUSE_UNIVERSAL="yes"
28782 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
28783 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
28784 TOOLKIT=DFB
28785 GUIDIST=DFB_DIST
28786
28787fi
28788 fi
28789
a848cd7e
SC
28790 if test "$wxUSE_MICROWIN" = 1; then
28791 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28792echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28793 if test "x$MICROWINDOWS" = x ; then
28794 echo "$as_me:$LINENO: result: not found" >&5
28795echo "${ECHO_T}not found" >&6
28796 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28797echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28798 { (exit 1); exit 1; }; }
28799 else
28800 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28801echo "${ECHO_T}$MICROWINDOWS" >&6
28802 fi
28803
28804 if test -f $MICROWINDOWS/lib/libmwin.a; then
28805 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28806echo "${ECHO_T}MicroWindows' libraries found." >&6
28807 else
28808 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28809echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28810 { (exit 1); exit 1; }; }
28811 fi
28812
28813 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28814 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28815
28816 wxUSE_UNIVERSAL="yes"
28817
28818 AFMINSTALL=afminstall
28819 TOOLKIT=MICROWIN
28820 GUIDIST=MICROWIN_DIST
28821
28822 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28823 fi
28824
74b84332 28825 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
c9a66001
VZ
28826
28827if test "x$ac_path_x_has_been_run" != xyes; then
28828 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28829echo $ECHO_N "checking for X... $ECHO_C" >&6
28830
c9a66001 28831ac_path_x_has_been_run=yes
a848cd7e
SC
28832
28833# Check whether --with-x or --without-x was given.
28834if test "${with_x+set}" = set; then
28835 withval="$with_x"
28836
28837fi;
28838# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28839if test "x$with_x" = xno; then
28840 # The user explicitly disabled X.
28841 have_x=disabled
28842else
28843 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28844 # Both variables are already set.
28845 have_x=yes
28846 else
28847 if test "${ac_cv_have_x+set}" = set; then
28848 echo $ECHO_N "(cached) $ECHO_C" >&6
28849else
28850 # One or both of the vars are not set, and there is no cached value.
28851ac_x_includes=no ac_x_libraries=no
28852rm -fr conftest.dir
28853if mkdir conftest.dir; then
28854 cd conftest.dir
28855 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28856 cat >Imakefile <<'_ACEOF'
28857acfindx:
28858 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28859_ACEOF
28860 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28862 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28863 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28864 for ac_extension in a so sl; do
28865 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28866 test -f $ac_im_libdir/libX11.$ac_extension; then
28867 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28868 fi
28869 done
28870 # Screen out bogus values from the imake configuration. They are
28871 # bogus both because they are the default anyway, and because
28872 # using them would break gcc on systems where it needs fixed includes.
28873 case $ac_im_incroot in
28874 /usr/include) ;;
28875 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28876 esac
28877 case $ac_im_usrlibdir in
28878 /usr/lib | /lib) ;;
28879 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28880 esac
28881 fi
28882 cd ..
28883 rm -fr conftest.dir
28884fi
28885
28886# Standard set of common directories for X headers.
28887# Check X11 before X11Rn because it is often a symlink to the current release.
28888ac_x_header_dirs='
28889/usr/X11/include
28890/usr/X11R6/include
28891/usr/X11R5/include
28892/usr/X11R4/include
28893
28894/usr/include/X11
28895/usr/include/X11R6
28896/usr/include/X11R5
28897/usr/include/X11R4
28898
28899/usr/local/X11/include
28900/usr/local/X11R6/include
28901/usr/local/X11R5/include
28902/usr/local/X11R4/include
28903
28904/usr/local/include/X11
28905/usr/local/include/X11R6
28906/usr/local/include/X11R5
28907/usr/local/include/X11R4
28908
28909/usr/X386/include
28910/usr/x386/include
28911/usr/XFree86/include/X11
28912
28913/usr/include
28914/usr/local/include
28915/usr/unsupported/include
28916/usr/athena/include
28917/usr/local/x11r5/include
28918/usr/lpp/Xamples/include
28919
28920/usr/openwin/include
28921/usr/openwin/share/include'
28922
28923if test "$ac_x_includes" = no; then
c9a66001 28924 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28925 # First, try using that file with no special directory specified.
28926 cat >conftest.$ac_ext <<_ACEOF
28927/* confdefs.h. */
28928_ACEOF
28929cat confdefs.h >>conftest.$ac_ext
28930cat >>conftest.$ac_ext <<_ACEOF
28931/* end confdefs.h. */
737d3175 28932#include <X11/Xlib.h>
a848cd7e
SC
28933_ACEOF
28934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28936 ac_status=$?
28937 grep -v '^ *+' conftest.er1 >conftest.err
28938 rm -f conftest.er1
28939 cat conftest.err >&5
28940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941 (exit $ac_status); } >/dev/null; then
28942 if test -s conftest.err; then
5d7b7554
VZ
28943 ac_cpp_err=$ac_cxx_preproc_warn_flag
28944 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28945 else
28946 ac_cpp_err=
28947 fi
28948else
28949 ac_cpp_err=yes
28950fi
28951if test -z "$ac_cpp_err"; then
28952 # We can compile using X headers with no special include directory.
28953ac_x_includes=
28954else
28955 echo "$as_me: failed program was:" >&5
28956sed 's/^/| /' conftest.$ac_ext >&5
28957
28958 for ac_dir in $ac_x_header_dirs; do
737d3175 28959 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
28960 ac_x_includes=$ac_dir
28961 break
28962 fi
28963done
28964fi
28965rm -f conftest.err conftest.$ac_ext
28966fi # $ac_x_includes = no
28967
28968if test "$ac_x_libraries" = no; then
28969 # Check for the libraries.
28970 # See if we find them without any special options.
28971 # Don't add to $LIBS permanently.
28972 ac_save_LIBS=$LIBS
737d3175 28973 LIBS="-lX11 $LIBS"
a848cd7e
SC
28974 cat >conftest.$ac_ext <<_ACEOF
28975/* confdefs.h. */
28976_ACEOF
28977cat confdefs.h >>conftest.$ac_ext
28978cat >>conftest.$ac_ext <<_ACEOF
28979/* end confdefs.h. */
737d3175 28980#include <X11/Xlib.h>
a848cd7e
SC
28981int
28982main ()
28983{
737d3175 28984XrmInitialize ()
a848cd7e
SC
28985 ;
28986 return 0;
28987}
28988_ACEOF
28989rm -f conftest.$ac_objext conftest$ac_exeext
28990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28991 (eval $ac_link) 2>conftest.er1
a848cd7e 28992 ac_status=$?
ac1cb8d3
VS
28993 grep -v '^ *+' conftest.er1 >conftest.err
28994 rm -f conftest.er1
28995 cat conftest.err >&5
a848cd7e
SC
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); } &&
c9a66001 28998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000 (eval $ac_try) 2>&5
29001 ac_status=$?
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); }; } &&
29004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006 (eval $ac_try) 2>&5
29007 ac_status=$?
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); }; }; then
29010 LIBS=$ac_save_LIBS
29011# We can link X programs with no special library path.
29012ac_x_libraries=
29013else
29014 echo "$as_me: failed program was:" >&5
29015sed 's/^/| /' conftest.$ac_ext >&5
29016
29017LIBS=$ac_save_LIBS
29018for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29019do
29020 # Don't even attempt the hair of trying to link an X program!
29021 for ac_extension in a so sl; do
737d3175 29022 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29023 ac_x_libraries=$ac_dir
29024 break 2
29025 fi
29026 done
29027done
29028fi
ac1cb8d3
VS
29029rm -f conftest.err conftest.$ac_objext \
29030 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29031fi # $ac_x_libraries = no
29032
29033if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29034 # Didn't find X anywhere. Cache the known absence of X.
29035 ac_cv_have_x="have_x=no"
29036else
29037 # Record where we found X for the cache.
29038 ac_cv_have_x="have_x=yes \
ac1cb8d3 29039 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29040fi
29041fi
29042
29043 fi
29044 eval "$ac_cv_have_x"
29045fi # $with_x != no
29046
29047if test "$have_x" != yes; then
29048 echo "$as_me:$LINENO: result: $have_x" >&5
29049echo "${ECHO_T}$have_x" >&6
29050 no_x=yes
29051else
29052 # If each of the values was on the command line, it overrides each guess.
29053 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29054 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29055 # Update the cache value to reflect the command line values.
29056 ac_cv_have_x="have_x=yes \
29057 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c9a66001
VZ
29058 # It might be that x_includes is empty (headers are found in the
29059 # standard search path. Then output the corresponding message
29060 ac_out_x_includes=$x_includes
29061 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29062 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29063echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29064fi
29065
c9a66001 29066fi
a848cd7e
SC
29067if test "$no_x" = yes; then
29068 # Not all programs may use this symbol, but it does not hurt to define it.
29069
29070cat >>confdefs.h <<\_ACEOF
29071#define X_DISPLAY_MISSING 1
29072_ACEOF
29073
29074 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29075else
29076 if test -n "$x_includes"; then
29077 X_CFLAGS="$X_CFLAGS -I$x_includes"
29078 fi
29079
29080 # It would also be nice to do this for all -L options, not just this one.
29081 if test -n "$x_libraries"; then
29082 X_LIBS="$X_LIBS -L$x_libraries"
29083 # For Solaris; some versions of Sun CC require a space after -R and
29084 # others require no space. Words are not sufficient . . . .
29085 case `(uname -sr) 2>/dev/null` in
29086 "SunOS 5"*)
29087 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29088echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29089 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29090 cat >conftest.$ac_ext <<_ACEOF
29091/* confdefs.h. */
29092_ACEOF
29093cat confdefs.h >>conftest.$ac_ext
29094cat >>conftest.$ac_ext <<_ACEOF
29095/* end confdefs.h. */
29096
29097int
29098main ()
29099{
29100
29101 ;
29102 return 0;
29103}
29104_ACEOF
29105rm -f conftest.$ac_objext conftest$ac_exeext
29106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29107 (eval $ac_link) 2>conftest.er1
a848cd7e 29108 ac_status=$?
ac1cb8d3
VS
29109 grep -v '^ *+' conftest.er1 >conftest.err
29110 rm -f conftest.er1
29111 cat conftest.err >&5
a848cd7e
SC
29112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113 (exit $ac_status); } &&
c9a66001 29114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116 (eval $ac_try) 2>&5
29117 ac_status=$?
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; } &&
29120 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122 (eval $ac_try) 2>&5
29123 ac_status=$?
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; }; then
29126 ac_R_nospace=yes
29127else
29128 echo "$as_me: failed program was:" >&5
29129sed 's/^/| /' conftest.$ac_ext >&5
29130
29131ac_R_nospace=no
29132fi
ac1cb8d3
VS
29133rm -f conftest.err conftest.$ac_objext \
29134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29135 if test $ac_R_nospace = yes; then
29136 echo "$as_me:$LINENO: result: no" >&5
29137echo "${ECHO_T}no" >&6
29138 X_LIBS="$X_LIBS -R$x_libraries"
29139 else
29140 LIBS="$ac_xsave_LIBS -R $x_libraries"
29141 cat >conftest.$ac_ext <<_ACEOF
29142/* confdefs.h. */
29143_ACEOF
29144cat confdefs.h >>conftest.$ac_ext
29145cat >>conftest.$ac_ext <<_ACEOF
29146/* end confdefs.h. */
29147
29148int
29149main ()
29150{
29151
29152 ;
29153 return 0;
29154}
29155_ACEOF
29156rm -f conftest.$ac_objext conftest$ac_exeext
29157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29158 (eval $ac_link) 2>conftest.er1
a848cd7e 29159 ac_status=$?
ac1cb8d3
VS
29160 grep -v '^ *+' conftest.er1 >conftest.err
29161 rm -f conftest.er1
29162 cat conftest.err >&5
a848cd7e
SC
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); } &&
c9a66001 29165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29167 (eval $ac_try) 2>&5
29168 ac_status=$?
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); }; } &&
29171 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29173 (eval $ac_try) 2>&5
29174 ac_status=$?
29175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); }; }; then
29177 ac_R_space=yes
29178else
29179 echo "$as_me: failed program was:" >&5
29180sed 's/^/| /' conftest.$ac_ext >&5
29181
29182ac_R_space=no
29183fi
ac1cb8d3
VS
29184rm -f conftest.err conftest.$ac_objext \
29185 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29186 if test $ac_R_space = yes; then
29187 echo "$as_me:$LINENO: result: yes" >&5
29188echo "${ECHO_T}yes" >&6
29189 X_LIBS="$X_LIBS -R $x_libraries"
29190 else
29191 echo "$as_me:$LINENO: result: neither works" >&5
29192echo "${ECHO_T}neither works" >&6
29193 fi
29194 fi
29195 LIBS=$ac_xsave_LIBS
29196 esac
29197 fi
29198
29199 # Check for system-dependent libraries X programs must link with.
29200 # Do this before checking for the system-independent R6 libraries
29201 # (-lICE), since we may need -lsocket or whatever for X linking.
29202
29203 if test "$ISC" = yes; then
29204 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29205 else
29206 # Martyn Johnson says this is needed for Ultrix, if the X
29207 # libraries were built with DECnet support. And Karl Berry says
29208 # the Alpha needs dnet_stub (dnet does not exist).
29209 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29210 cat >conftest.$ac_ext <<_ACEOF
29211/* confdefs.h. */
29212_ACEOF
29213cat confdefs.h >>conftest.$ac_ext
29214cat >>conftest.$ac_ext <<_ACEOF
29215/* end confdefs.h. */
29216
29217/* Override any gcc2 internal prototype to avoid an error. */
29218#ifdef __cplusplus
29219extern "C"
29220#endif
29221/* We use char because int might match the return type of a gcc2
29222 builtin and then its argument prototype would still apply. */
29223char XOpenDisplay ();
29224int
29225main ()
29226{
29227XOpenDisplay ();
29228 ;
29229 return 0;
29230}
29231_ACEOF
29232rm -f conftest.$ac_objext conftest$ac_exeext
29233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29234 (eval $ac_link) 2>conftest.er1
a848cd7e 29235 ac_status=$?
ac1cb8d3
VS
29236 grep -v '^ *+' conftest.er1 >conftest.err
29237 rm -f conftest.er1
29238 cat conftest.err >&5
a848cd7e
SC
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); } &&
c9a66001 29241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243 (eval $ac_try) 2>&5
29244 ac_status=$?
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); }; } &&
29247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29249 (eval $ac_try) 2>&5
29250 ac_status=$?
29251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252 (exit $ac_status); }; }; then
29253 :
29254else
29255 echo "$as_me: failed program was:" >&5
29256sed 's/^/| /' conftest.$ac_ext >&5
29257
29258echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29259echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29260if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29261 echo $ECHO_N "(cached) $ECHO_C" >&6
29262else
29263 ac_check_lib_save_LIBS=$LIBS
29264LIBS="-ldnet $LIBS"
29265cat >conftest.$ac_ext <<_ACEOF
29266/* confdefs.h. */
29267_ACEOF
29268cat confdefs.h >>conftest.$ac_ext
29269cat >>conftest.$ac_ext <<_ACEOF
29270/* end confdefs.h. */
29271
29272/* Override any gcc2 internal prototype to avoid an error. */
29273#ifdef __cplusplus
29274extern "C"
29275#endif
29276/* We use char because int might match the return type of a gcc2
29277 builtin and then its argument prototype would still apply. */
29278char dnet_ntoa ();
29279int
29280main ()
29281{
29282dnet_ntoa ();
29283 ;
29284 return 0;
29285}
29286_ACEOF
29287rm -f conftest.$ac_objext conftest$ac_exeext
29288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29289 (eval $ac_link) 2>conftest.er1
a848cd7e 29290 ac_status=$?
ac1cb8d3
VS
29291 grep -v '^ *+' conftest.er1 >conftest.err
29292 rm -f conftest.er1
29293 cat conftest.err >&5
a848cd7e
SC
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); } &&
c9a66001 29296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29298 (eval $ac_try) 2>&5
29299 ac_status=$?
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); }; } &&
29302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29304 (eval $ac_try) 2>&5
29305 ac_status=$?
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); }; }; then
29308 ac_cv_lib_dnet_dnet_ntoa=yes
29309else
29310 echo "$as_me: failed program was:" >&5
29311sed 's/^/| /' conftest.$ac_ext >&5
29312
29313ac_cv_lib_dnet_dnet_ntoa=no
29314fi
ac1cb8d3
VS
29315rm -f conftest.err conftest.$ac_objext \
29316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29317LIBS=$ac_check_lib_save_LIBS
29318fi
29319echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29320echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29321if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29322 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29323fi
29324
29325 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29326 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29327echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29328if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29329 echo $ECHO_N "(cached) $ECHO_C" >&6
29330else
29331 ac_check_lib_save_LIBS=$LIBS
29332LIBS="-ldnet_stub $LIBS"
29333cat >conftest.$ac_ext <<_ACEOF
29334/* confdefs.h. */
29335_ACEOF
29336cat confdefs.h >>conftest.$ac_ext
29337cat >>conftest.$ac_ext <<_ACEOF
29338/* end confdefs.h. */
29339
29340/* Override any gcc2 internal prototype to avoid an error. */
29341#ifdef __cplusplus
29342extern "C"
29343#endif
29344/* We use char because int might match the return type of a gcc2
29345 builtin and then its argument prototype would still apply. */
29346char dnet_ntoa ();
29347int
29348main ()
29349{
29350dnet_ntoa ();
29351 ;
29352 return 0;
29353}
29354_ACEOF
29355rm -f conftest.$ac_objext conftest$ac_exeext
29356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29357 (eval $ac_link) 2>conftest.er1
a848cd7e 29358 ac_status=$?
ac1cb8d3
VS
29359 grep -v '^ *+' conftest.er1 >conftest.err
29360 rm -f conftest.er1
29361 cat conftest.err >&5
a848cd7e
SC
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } &&
c9a66001 29364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29366 (eval $ac_try) 2>&5
29367 ac_status=$?
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369 (exit $ac_status); }; } &&
29370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29372 (eval $ac_try) 2>&5
29373 ac_status=$?
29374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); }; }; then
29376 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29377else
29378 echo "$as_me: failed program was:" >&5
29379sed 's/^/| /' conftest.$ac_ext >&5
29380
29381ac_cv_lib_dnet_stub_dnet_ntoa=no
29382fi
ac1cb8d3
VS
29383rm -f conftest.err conftest.$ac_objext \
29384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29385LIBS=$ac_check_lib_save_LIBS
29386fi
29387echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29388echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29389if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29390 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29391fi
29392
29393 fi
29394fi
ac1cb8d3
VS
29395rm -f conftest.err conftest.$ac_objext \
29396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29397 LIBS="$ac_xsave_LIBS"
29398
29399 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29400 # to get the SysV transport functions.
29401 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29402 # needs -lnsl.
29403 # The nsl library prevents programs from opening the X display
29404 # on Irix 5.2, according to T.E. Dickey.
29405 # The functions gethostbyname, getservbyname, and inet_addr are
29406 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29407 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29408echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29409if test "${ac_cv_func_gethostbyname+set}" = set; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29411else
29412 cat >conftest.$ac_ext <<_ACEOF
29413/* confdefs.h. */
29414_ACEOF
29415cat confdefs.h >>conftest.$ac_ext
29416cat >>conftest.$ac_ext <<_ACEOF
29417/* end confdefs.h. */
ac1cb8d3
VS
29418/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29420#define gethostbyname innocuous_gethostbyname
29421
a848cd7e
SC
29422/* System header to define __stub macros and hopefully few prototypes,
29423 which can conflict with char gethostbyname (); below.
29424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29425 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29426
a848cd7e
SC
29427#ifdef __STDC__
29428# include <limits.h>
29429#else
29430# include <assert.h>
29431#endif
ac1cb8d3
VS
29432
29433#undef gethostbyname
29434
a848cd7e
SC
29435/* Override any gcc2 internal prototype to avoid an error. */
29436#ifdef __cplusplus
29437extern "C"
29438{
29439#endif
29440/* We use char because int might match the return type of a gcc2
29441 builtin and then its argument prototype would still apply. */
29442char gethostbyname ();
29443/* The GNU C library defines this for functions which it implements
29444 to always fail with ENOSYS. Some functions are actually named
29445 something starting with __ and the normal name is an alias. */
29446#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29447choke me
29448#else
29449char (*f) () = gethostbyname;
29450#endif
29451#ifdef __cplusplus
29452}
29453#endif
29454
29455int
29456main ()
29457{
29458return f != gethostbyname;
29459 ;
29460 return 0;
29461}
29462_ACEOF
29463rm -f conftest.$ac_objext conftest$ac_exeext
29464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29465 (eval $ac_link) 2>conftest.er1
a848cd7e 29466 ac_status=$?
ac1cb8d3
VS
29467 grep -v '^ *+' conftest.er1 >conftest.err
29468 rm -f conftest.er1
29469 cat conftest.err >&5
a848cd7e
SC
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); } &&
c9a66001 29472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474 (eval $ac_try) 2>&5
29475 ac_status=$?
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); }; } &&
29478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29480 (eval $ac_try) 2>&5
29481 ac_status=$?
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); }; }; then
29484 ac_cv_func_gethostbyname=yes
29485else
29486 echo "$as_me: failed program was:" >&5
29487sed 's/^/| /' conftest.$ac_ext >&5
29488
29489ac_cv_func_gethostbyname=no
29490fi
ac1cb8d3
VS
29491rm -f conftest.err conftest.$ac_objext \
29492 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29493fi
29494echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29495echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29496
29497 if test $ac_cv_func_gethostbyname = no; then
29498 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29499echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29500if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29501 echo $ECHO_N "(cached) $ECHO_C" >&6
29502else
29503 ac_check_lib_save_LIBS=$LIBS
29504LIBS="-lnsl $LIBS"
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
29512/* Override any gcc2 internal prototype to avoid an error. */
29513#ifdef __cplusplus
29514extern "C"
29515#endif
29516/* We use char because int might match the return type of a gcc2
29517 builtin and then its argument prototype would still apply. */
29518char gethostbyname ();
29519int
29520main ()
29521{
29522gethostbyname ();
29523 ;
29524 return 0;
29525}
29526_ACEOF
29527rm -f conftest.$ac_objext conftest$ac_exeext
29528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29529 (eval $ac_link) 2>conftest.er1
29530 ac_status=$?
29531 grep -v '^ *+' conftest.er1 >conftest.err
29532 rm -f conftest.er1
29533 cat conftest.err >&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); } &&
c9a66001 29536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; } &&
29542 { ac_try='test -s conftest$ac_exeext'
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; }; then
29548 ac_cv_lib_nsl_gethostbyname=yes
29549else
29550 echo "$as_me: failed program was:" >&5
29551sed 's/^/| /' conftest.$ac_ext >&5
29552
29553ac_cv_lib_nsl_gethostbyname=no
29554fi
29555rm -f conftest.err conftest.$ac_objext \
29556 conftest$ac_exeext conftest.$ac_ext
29557LIBS=$ac_check_lib_save_LIBS
29558fi
29559echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29560echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29561if test $ac_cv_lib_nsl_gethostbyname = yes; then
29562 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29563fi
29564
29565 if test $ac_cv_lib_nsl_gethostbyname = no; then
29566 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29567echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29568if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29570else
29571 ac_check_lib_save_LIBS=$LIBS
29572LIBS="-lbsd $LIBS"
29573cat >conftest.$ac_ext <<_ACEOF
29574/* confdefs.h. */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h. */
29579
29580/* Override any gcc2 internal prototype to avoid an error. */
29581#ifdef __cplusplus
29582extern "C"
29583#endif
29584/* We use char because int might match the return type of a gcc2
29585 builtin and then its argument prototype would still apply. */
29586char gethostbyname ();
29587int
29588main ()
29589{
29590gethostbyname ();
29591 ;
29592 return 0;
29593}
29594_ACEOF
29595rm -f conftest.$ac_objext conftest$ac_exeext
29596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29597 (eval $ac_link) 2>conftest.er1
a848cd7e 29598 ac_status=$?
ac1cb8d3
VS
29599 grep -v '^ *+' conftest.er1 >conftest.err
29600 rm -f conftest.er1
29601 cat conftest.err >&5
a848cd7e
SC
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); } &&
c9a66001 29604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29606 (eval $ac_try) 2>&5
29607 ac_status=$?
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29609 (exit $ac_status); }; } &&
29610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29612 (eval $ac_try) 2>&5
29613 ac_status=$?
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; }; then
29616 ac_cv_lib_bsd_gethostbyname=yes
29617else
29618 echo "$as_me: failed program was:" >&5
29619sed 's/^/| /' conftest.$ac_ext >&5
29620
29621ac_cv_lib_bsd_gethostbyname=no
29622fi
ac1cb8d3
VS
29623rm -f conftest.err conftest.$ac_objext \
29624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29625LIBS=$ac_check_lib_save_LIBS
29626fi
29627echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29628echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29629if test $ac_cv_lib_bsd_gethostbyname = yes; then
29630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29631fi
29632
29633 fi
29634 fi
29635
29636 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29637 # socket/setsockopt and other routines are undefined under SCO ODT
29638 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29639 # on later versions), says Simon Leinen: it contains gethostby*
29640 # variants that don't use the name server (or something). -lsocket
29641 # must be given before -lnsl if both are needed. We assume that
29642 # if connect needs -lnsl, so does gethostbyname.
29643 echo "$as_me:$LINENO: checking for connect" >&5
29644echo $ECHO_N "checking for connect... $ECHO_C" >&6
29645if test "${ac_cv_func_connect+set}" = set; then
29646 echo $ECHO_N "(cached) $ECHO_C" >&6
29647else
29648 cat >conftest.$ac_ext <<_ACEOF
29649/* confdefs.h. */
29650_ACEOF
29651cat confdefs.h >>conftest.$ac_ext
29652cat >>conftest.$ac_ext <<_ACEOF
29653/* end confdefs.h. */
ac1cb8d3
VS
29654/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29656#define connect innocuous_connect
29657
a848cd7e
SC
29658/* System header to define __stub macros and hopefully few prototypes,
29659 which can conflict with char connect (); below.
29660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29661 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29662
a848cd7e
SC
29663#ifdef __STDC__
29664# include <limits.h>
29665#else
29666# include <assert.h>
29667#endif
ac1cb8d3
VS
29668
29669#undef connect
29670
a848cd7e
SC
29671/* Override any gcc2 internal prototype to avoid an error. */
29672#ifdef __cplusplus
29673extern "C"
29674{
29675#endif
29676/* We use char because int might match the return type of a gcc2
29677 builtin and then its argument prototype would still apply. */
29678char connect ();
29679/* The GNU C library defines this for functions which it implements
29680 to always fail with ENOSYS. Some functions are actually named
29681 something starting with __ and the normal name is an alias. */
29682#if defined (__stub_connect) || defined (__stub___connect)
29683choke me
29684#else
29685char (*f) () = connect;
29686#endif
29687#ifdef __cplusplus
29688}
29689#endif
29690
29691int
29692main ()
29693{
29694return f != connect;
29695 ;
29696 return 0;
29697}
29698_ACEOF
29699rm -f conftest.$ac_objext conftest$ac_exeext
29700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29701 (eval $ac_link) 2>conftest.er1
a848cd7e 29702 ac_status=$?
ac1cb8d3
VS
29703 grep -v '^ *+' conftest.er1 >conftest.err
29704 rm -f conftest.er1
29705 cat conftest.err >&5
a848cd7e
SC
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); } &&
c9a66001 29708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29710 (eval $ac_try) 2>&5
29711 ac_status=$?
29712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); }; } &&
29714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29716 (eval $ac_try) 2>&5
29717 ac_status=$?
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); }; }; then
29720 ac_cv_func_connect=yes
29721else
29722 echo "$as_me: failed program was:" >&5
29723sed 's/^/| /' conftest.$ac_ext >&5
29724
29725ac_cv_func_connect=no
29726fi
ac1cb8d3
VS
29727rm -f conftest.err conftest.$ac_objext \
29728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29729fi
29730echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29731echo "${ECHO_T}$ac_cv_func_connect" >&6
29732
29733 if test $ac_cv_func_connect = no; then
29734 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29735echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29736if test "${ac_cv_lib_socket_connect+set}" = set; then
29737 echo $ECHO_N "(cached) $ECHO_C" >&6
29738else
29739 ac_check_lib_save_LIBS=$LIBS
29740LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29741cat >conftest.$ac_ext <<_ACEOF
29742/* confdefs.h. */
29743_ACEOF
29744cat confdefs.h >>conftest.$ac_ext
29745cat >>conftest.$ac_ext <<_ACEOF
29746/* end confdefs.h. */
29747
29748/* Override any gcc2 internal prototype to avoid an error. */
29749#ifdef __cplusplus
29750extern "C"
29751#endif
29752/* We use char because int might match the return type of a gcc2
29753 builtin and then its argument prototype would still apply. */
29754char connect ();
29755int
29756main ()
29757{
29758connect ();
29759 ;
29760 return 0;
29761}
29762_ACEOF
29763rm -f conftest.$ac_objext conftest$ac_exeext
29764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29765 (eval $ac_link) 2>conftest.er1
a848cd7e 29766 ac_status=$?
ac1cb8d3
VS
29767 grep -v '^ *+' conftest.er1 >conftest.err
29768 rm -f conftest.er1
29769 cat conftest.err >&5
a848cd7e
SC
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); } &&
c9a66001 29772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774 (eval $ac_try) 2>&5
29775 ac_status=$?
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); }; } &&
29778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780 (eval $ac_try) 2>&5
29781 ac_status=$?
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; }; then
29784 ac_cv_lib_socket_connect=yes
29785else
29786 echo "$as_me: failed program was:" >&5
29787sed 's/^/| /' conftest.$ac_ext >&5
29788
29789ac_cv_lib_socket_connect=no
29790fi
ac1cb8d3
VS
29791rm -f conftest.err conftest.$ac_objext \
29792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29793LIBS=$ac_check_lib_save_LIBS
29794fi
29795echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29796echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29797if test $ac_cv_lib_socket_connect = yes; then
29798 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29799fi
29800
29801 fi
29802
29803 # Guillermo Gomez says -lposix is necessary on A/UX.
29804 echo "$as_me:$LINENO: checking for remove" >&5
29805echo $ECHO_N "checking for remove... $ECHO_C" >&6
29806if test "${ac_cv_func_remove+set}" = set; then
29807 echo $ECHO_N "(cached) $ECHO_C" >&6
29808else
29809 cat >conftest.$ac_ext <<_ACEOF
29810/* confdefs.h. */
29811_ACEOF
29812cat confdefs.h >>conftest.$ac_ext
29813cat >>conftest.$ac_ext <<_ACEOF
29814/* end confdefs.h. */
ac1cb8d3
VS
29815/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29817#define remove innocuous_remove
29818
a848cd7e
SC
29819/* System header to define __stub macros and hopefully few prototypes,
29820 which can conflict with char remove (); below.
29821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29822 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29823
a848cd7e
SC
29824#ifdef __STDC__
29825# include <limits.h>
29826#else
29827# include <assert.h>
29828#endif
ac1cb8d3
VS
29829
29830#undef remove
29831
a848cd7e
SC
29832/* Override any gcc2 internal prototype to avoid an error. */
29833#ifdef __cplusplus
29834extern "C"
29835{
29836#endif
29837/* We use char because int might match the return type of a gcc2
29838 builtin and then its argument prototype would still apply. */
29839char remove ();
29840/* The GNU C library defines this for functions which it implements
29841 to always fail with ENOSYS. Some functions are actually named
29842 something starting with __ and the normal name is an alias. */
29843#if defined (__stub_remove) || defined (__stub___remove)
29844choke me
29845#else
29846char (*f) () = remove;
29847#endif
29848#ifdef __cplusplus
29849}
29850#endif
29851
29852int
29853main ()
29854{
29855return f != remove;
29856 ;
29857 return 0;
29858}
29859_ACEOF
29860rm -f conftest.$ac_objext conftest$ac_exeext
29861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29862 (eval $ac_link) 2>conftest.er1
a848cd7e 29863 ac_status=$?
ac1cb8d3
VS
29864 grep -v '^ *+' conftest.er1 >conftest.err
29865 rm -f conftest.er1
29866 cat conftest.err >&5
a848cd7e
SC
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } &&
c9a66001 29869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871 (eval $ac_try) 2>&5
29872 ac_status=$?
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); }; } &&
29875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29877 (eval $ac_try) 2>&5
29878 ac_status=$?
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); }; }; then
29881 ac_cv_func_remove=yes
29882else
29883 echo "$as_me: failed program was:" >&5
29884sed 's/^/| /' conftest.$ac_ext >&5
29885
29886ac_cv_func_remove=no
29887fi
ac1cb8d3
VS
29888rm -f conftest.err conftest.$ac_objext \
29889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29890fi
29891echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29892echo "${ECHO_T}$ac_cv_func_remove" >&6
29893
29894 if test $ac_cv_func_remove = no; then
29895 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29896echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29897if test "${ac_cv_lib_posix_remove+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29899else
29900 ac_check_lib_save_LIBS=$LIBS
29901LIBS="-lposix $LIBS"
29902cat >conftest.$ac_ext <<_ACEOF
29903/* confdefs.h. */
29904_ACEOF
29905cat confdefs.h >>conftest.$ac_ext
29906cat >>conftest.$ac_ext <<_ACEOF
29907/* end confdefs.h. */
29908
29909/* Override any gcc2 internal prototype to avoid an error. */
29910#ifdef __cplusplus
29911extern "C"
29912#endif
29913/* We use char because int might match the return type of a gcc2
29914 builtin and then its argument prototype would still apply. */
29915char remove ();
29916int
29917main ()
29918{
29919remove ();
29920 ;
29921 return 0;
29922}
29923_ACEOF
29924rm -f conftest.$ac_objext conftest$ac_exeext
29925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29926 (eval $ac_link) 2>conftest.er1
a848cd7e 29927 ac_status=$?
ac1cb8d3
VS
29928 grep -v '^ *+' conftest.er1 >conftest.err
29929 rm -f conftest.er1
29930 cat conftest.err >&5
a848cd7e
SC
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); } &&
c9a66001 29933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935 (eval $ac_try) 2>&5
29936 ac_status=$?
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); }; } &&
29939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29942 ac_status=$?
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; }; then
29945 ac_cv_lib_posix_remove=yes
29946else
29947 echo "$as_me: failed program was:" >&5
29948sed 's/^/| /' conftest.$ac_ext >&5
29949
29950ac_cv_lib_posix_remove=no
29951fi
ac1cb8d3
VS
29952rm -f conftest.err conftest.$ac_objext \
29953 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29954LIBS=$ac_check_lib_save_LIBS
29955fi
29956echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29957echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29958if test $ac_cv_lib_posix_remove = yes; then
29959 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29960fi
29961
29962 fi
29963
29964 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29965 echo "$as_me:$LINENO: checking for shmat" >&5
29966echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29967if test "${ac_cv_func_shmat+set}" = set; then
29968 echo $ECHO_N "(cached) $ECHO_C" >&6
29969else
29970 cat >conftest.$ac_ext <<_ACEOF
29971/* confdefs.h. */
29972_ACEOF
29973cat confdefs.h >>conftest.$ac_ext
29974cat >>conftest.$ac_ext <<_ACEOF
29975/* end confdefs.h. */
ac1cb8d3
VS
29976/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29978#define shmat innocuous_shmat
29979
a848cd7e
SC
29980/* System header to define __stub macros and hopefully few prototypes,
29981 which can conflict with char shmat (); below.
29982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29983 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29984
a848cd7e
SC
29985#ifdef __STDC__
29986# include <limits.h>
29987#else
29988# include <assert.h>
29989#endif
ac1cb8d3
VS
29990
29991#undef shmat
29992
a848cd7e
SC
29993/* Override any gcc2 internal prototype to avoid an error. */
29994#ifdef __cplusplus
29995extern "C"
29996{
29997#endif
29998/* We use char because int might match the return type of a gcc2
29999 builtin and then its argument prototype would still apply. */
30000char shmat ();
30001/* The GNU C library defines this for functions which it implements
30002 to always fail with ENOSYS. Some functions are actually named
30003 something starting with __ and the normal name is an alias. */
30004#if defined (__stub_shmat) || defined (__stub___shmat)
30005choke me
30006#else
30007char (*f) () = shmat;
30008#endif
30009#ifdef __cplusplus
30010}
30011#endif
30012
30013int
30014main ()
30015{
30016return f != shmat;
30017 ;
30018 return 0;
30019}
30020_ACEOF
30021rm -f conftest.$ac_objext conftest$ac_exeext
30022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30023 (eval $ac_link) 2>conftest.er1
a848cd7e 30024 ac_status=$?
ac1cb8d3
VS
30025 grep -v '^ *+' conftest.er1 >conftest.err
30026 rm -f conftest.er1
30027 cat conftest.err >&5
a848cd7e
SC
30028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029 (exit $ac_status); } &&
c9a66001 30030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30032 (eval $ac_try) 2>&5
30033 ac_status=$?
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; } &&
30036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038 (eval $ac_try) 2>&5
30039 ac_status=$?
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; }; then
30042 ac_cv_func_shmat=yes
30043else
30044 echo "$as_me: failed program was:" >&5
30045sed 's/^/| /' conftest.$ac_ext >&5
30046
30047ac_cv_func_shmat=no
30048fi
ac1cb8d3
VS
30049rm -f conftest.err conftest.$ac_objext \
30050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30051fi
30052echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30053echo "${ECHO_T}$ac_cv_func_shmat" >&6
30054
30055 if test $ac_cv_func_shmat = no; then
30056 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30057echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30058if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30059 echo $ECHO_N "(cached) $ECHO_C" >&6
30060else
30061 ac_check_lib_save_LIBS=$LIBS
30062LIBS="-lipc $LIBS"
30063cat >conftest.$ac_ext <<_ACEOF
30064/* confdefs.h. */
30065_ACEOF
30066cat confdefs.h >>conftest.$ac_ext
30067cat >>conftest.$ac_ext <<_ACEOF
30068/* end confdefs.h. */
30069
30070/* Override any gcc2 internal prototype to avoid an error. */
30071#ifdef __cplusplus
30072extern "C"
30073#endif
30074/* We use char because int might match the return type of a gcc2
30075 builtin and then its argument prototype would still apply. */
30076char shmat ();
30077int
30078main ()
30079{
30080shmat ();
30081 ;
30082 return 0;
30083}
30084_ACEOF
30085rm -f conftest.$ac_objext conftest$ac_exeext
30086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30087 (eval $ac_link) 2>conftest.er1
a848cd7e 30088 ac_status=$?
ac1cb8d3
VS
30089 grep -v '^ *+' conftest.er1 >conftest.err
30090 rm -f conftest.er1
30091 cat conftest.err >&5
a848cd7e
SC
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); } &&
c9a66001 30094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096 (eval $ac_try) 2>&5
30097 ac_status=$?
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; } &&
30100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30102 (eval $ac_try) 2>&5
30103 ac_status=$?
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; }; then
30106 ac_cv_lib_ipc_shmat=yes
30107else
30108 echo "$as_me: failed program was:" >&5
30109sed 's/^/| /' conftest.$ac_ext >&5
30110
30111ac_cv_lib_ipc_shmat=no
30112fi
ac1cb8d3
VS
30113rm -f conftest.err conftest.$ac_objext \
30114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30115LIBS=$ac_check_lib_save_LIBS
30116fi
30117echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30118echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30119if test $ac_cv_lib_ipc_shmat = yes; then
30120 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30121fi
30122
30123 fi
30124 fi
30125
30126 # Check for libraries that X11R6 Xt/Xaw programs need.
30127 ac_save_LDFLAGS=$LDFLAGS
30128 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30129 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30130 # check for ICE first), but we must link in the order -lSM -lICE or
30131 # we get undefined symbols. So assume we have SM if we have ICE.
30132 # These have to be linked with before -lX11, unlike the other
30133 # libraries we check for below, so use a different variable.
30134 # John Interrante, Karl Berry
30135 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30136echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30137if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30138 echo $ECHO_N "(cached) $ECHO_C" >&6
30139else
30140 ac_check_lib_save_LIBS=$LIBS
30141LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30142cat >conftest.$ac_ext <<_ACEOF
30143/* confdefs.h. */
30144_ACEOF
30145cat confdefs.h >>conftest.$ac_ext
30146cat >>conftest.$ac_ext <<_ACEOF
30147/* end confdefs.h. */
30148
30149/* Override any gcc2 internal prototype to avoid an error. */
30150#ifdef __cplusplus
30151extern "C"
30152#endif
30153/* We use char because int might match the return type of a gcc2
30154 builtin and then its argument prototype would still apply. */
30155char IceConnectionNumber ();
30156int
30157main ()
30158{
30159IceConnectionNumber ();
30160 ;
30161 return 0;
30162}
30163_ACEOF
30164rm -f conftest.$ac_objext conftest$ac_exeext
30165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30166 (eval $ac_link) 2>conftest.er1
a848cd7e 30167 ac_status=$?
ac1cb8d3
VS
30168 grep -v '^ *+' conftest.er1 >conftest.err
30169 rm -f conftest.er1
30170 cat conftest.err >&5
a848cd7e
SC
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); } &&
c9a66001 30173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30175 (eval $ac_try) 2>&5
30176 ac_status=$?
30177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178 (exit $ac_status); }; } &&
30179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30181 (eval $ac_try) 2>&5
30182 ac_status=$?
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); }; }; then
30185 ac_cv_lib_ICE_IceConnectionNumber=yes
30186else
30187 echo "$as_me: failed program was:" >&5
30188sed 's/^/| /' conftest.$ac_ext >&5
30189
30190ac_cv_lib_ICE_IceConnectionNumber=no
30191fi
ac1cb8d3
VS
30192rm -f conftest.err conftest.$ac_objext \
30193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30194LIBS=$ac_check_lib_save_LIBS
30195fi
30196echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30197echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30198if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30199 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30200fi
30201
30202 LDFLAGS=$ac_save_LDFLAGS
30203
30204fi
30205
30206
30207 if test "$no_x" = "yes"; then
89d90d6d
VZ
30208 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30209echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30210 { (exit 1); exit 1; }; }
a848cd7e
SC
30211 fi
30212
74b84332
VS
30213 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30214 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30215 AFMINSTALL=afminstall
30216 COMPILED_X_PROGRAM=0
30217
74b84332
VS
30218 fi
30219
30220 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30221 if test "$wxUSE_NANOX" = "yes"; then
30222 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30223echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30224 if test "x$MICROWIN" = x ; then
30225 echo "$as_me:$LINENO: result: not found" >&5
30226echo "${ECHO_T}not found" >&6
30227 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30228echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30229 { (exit 1); exit 1; }; }
30230 else
30231 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30232echo "${ECHO_T}$MICROWIN" >&6
30233 cat >>confdefs.h <<\_ACEOF
30234#define wxUSE_NANOX 1
30235_ACEOF
30236
30237 fi
30238 fi
30239
30240 if test "$wxUSE_UNICODE" = "yes"; then
30241
3ecd9f92
MW
30242pkg_failed=no
30243echo "$as_me:$LINENO: checking for PANGOX" >&5
30244echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30245
3ecd9f92
MW
30246if test -n "$PKG_CONFIG"; then
30247 if test -n "$PANGOX_CFLAGS"; then
30248 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30249 else
30250 if test -n "$PKG_CONFIG" && \
30251 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30252 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30253 ac_status=$?
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); }; then
30256 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30257else
30258 pkg_failed=yes
30259fi
30260 fi
30261else
30262 pkg_failed=untried
30263fi
30264if test -n "$PKG_CONFIG"; then
30265 if test -n "$PANGOX_LIBS"; then
30266 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30267 else
30268 if test -n "$PKG_CONFIG" && \
30269 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30270 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30271 ac_status=$?
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; then
30274 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30275else
30276 pkg_failed=yes
30277fi
30278 fi
30279else
30280 pkg_failed=untried
30281fi
30282
30283
30284
30285if test $pkg_failed = yes; then
30286
30287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30288 _pkg_short_errors_supported=yes
30289else
30290 _pkg_short_errors_supported=no
30291fi
30292 if test $_pkg_short_errors_supported = yes; then
30293 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30294 else
30295 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30296 fi
3ecd9f92
MW
30297 # Put the nasty error message in config.log where it belongs
30298 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30299
30300
3ecd9f92
MW
30301 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30302echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30303 { (exit 1); exit 1; }; }
a848cd7e 30304
a848cd7e 30305
3ecd9f92 30306elif test $pkg_failed = untried; then
a848cd7e 30307
3ecd9f92
MW
30308 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30309echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30310 { (exit 1); exit 1; }; }
30311
30312
30313else
30314 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30315 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30316 echo "$as_me:$LINENO: result: yes" >&5
30317echo "${ECHO_T}yes" >&6
30318
30319 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30320 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30321
30322fi
30323
30324pkg_failed=no
30325echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30326echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30327
30328if test -n "$PKG_CONFIG"; then
30329 if test -n "$PANGOFT2_CFLAGS"; then
30330 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30331 else
30332 if test -n "$PKG_CONFIG" && \
30333 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30334 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30335 ac_status=$?
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); }; then
30338 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30339else
30340 pkg_failed=yes
30341fi
30342 fi
30343else
30344 pkg_failed=untried
30345fi
30346if test -n "$PKG_CONFIG"; then
30347 if test -n "$PANGOFT2_LIBS"; then
30348 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30349 else
30350 if test -n "$PKG_CONFIG" && \
30351 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30352 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30353 ac_status=$?
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; then
30356 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30357else
30358 pkg_failed=yes
30359fi
30360 fi
30361else
30362 pkg_failed=untried
30363fi
30364
30365
30366
30367if test $pkg_failed = yes; then
30368
30369if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30370 _pkg_short_errors_supported=yes
30371else
30372 _pkg_short_errors_supported=no
30373fi
30374 if test $_pkg_short_errors_supported = yes; then
30375 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30376 else
30377 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30378 fi
30379 # Put the nasty error message in config.log where it belongs
30380 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30381
a848cd7e
SC
30382
30383 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30384echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30385 wxUSE_PRINTING_ARCHITECTURE="no"
30386
30387
3ecd9f92 30388elif test $pkg_failed = untried; then
a848cd7e 30389
3ecd9f92
MW
30390 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30391echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30392 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30393
a848cd7e 30394
a848cd7e 30395else
3ecd9f92
MW
30396 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30397 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30398 echo "$as_me:$LINENO: result: yes" >&5
30399echo "${ECHO_T}yes" >&6
30400
30401 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30402 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30403
a848cd7e 30404fi
3ecd9f92
MW
30405
30406pkg_failed=no
30407echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30408echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30409
30410if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30411 if test -n "$PANGOXFT_CFLAGS"; then
30412 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30413 else
30414 if test -n "$PKG_CONFIG" && \
30415 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30416 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30417 ac_status=$?
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); }; then
30420 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30421else
3ecd9f92
MW
30422 pkg_failed=yes
30423fi
30424 fi
30425else
30426 pkg_failed=untried
30427fi
30428if test -n "$PKG_CONFIG"; then
30429 if test -n "$PANGOXFT_LIBS"; then
30430 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30431 else
30432 if test -n "$PKG_CONFIG" && \
30433 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30434 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30435 ac_status=$?
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; then
30438 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30439else
30440 pkg_failed=yes
30441fi
30442 fi
30443else
30444 pkg_failed=untried
a848cd7e
SC
30445fi
30446
a848cd7e 30447
a848cd7e 30448
3ecd9f92 30449if test $pkg_failed = yes; then
a848cd7e 30450
3ecd9f92
MW
30451if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30452 _pkg_short_errors_supported=yes
30453else
30454 _pkg_short_errors_supported=no
30455fi
30456 if test $_pkg_short_errors_supported = yes; then
30457 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30458 else
30459 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30460 fi
3ecd9f92
MW
30461 # Put the nasty error message in config.log where it belongs
30462 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
30463
30464
3ecd9f92
MW
30465 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30466echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30467
a848cd7e 30468
3ecd9f92 30469elif test $pkg_failed = untried; then
a848cd7e 30470
3ecd9f92
MW
30471 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30472echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30473
30474
30475else
30476 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30477 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30478 echo "$as_me:$LINENO: result: yes" >&5
30479echo "${ECHO_T}yes" >&6
a848cd7e 30480
4ae1af05
MB
30481 cat >>confdefs.h <<\_ACEOF
30482#define HAVE_PANGO_XFT 1
30483_ACEOF
30484
c92ad099 30485 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30486 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30487
3ecd9f92 30488fi
e56f4f9e 30489 save_CXXFLAGS="$CXXFLAGS"
304205f1 30490 save_LIBS="$LIBS"
e56f4f9e 30491 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30492 LIBS="$LIBS $PANGOX_LIBS"
30493
30494for ac_func in pango_font_family_is_monospace
30495do
30496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30497echo "$as_me:$LINENO: checking for $ac_func" >&5
30498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30499if eval "test \"\${$as_ac_var+set}\" = set"; then
30500 echo $ECHO_N "(cached) $ECHO_C" >&6
30501else
30502 cat >conftest.$ac_ext <<_ACEOF
30503/* confdefs.h. */
30504_ACEOF
30505cat confdefs.h >>conftest.$ac_ext
30506cat >>conftest.$ac_ext <<_ACEOF
30507/* end confdefs.h. */
30508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30510#define $ac_func innocuous_$ac_func
30511
30512/* System header to define __stub macros and hopefully few prototypes,
30513 which can conflict with char $ac_func (); below.
30514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30515 <limits.h> exists even on freestanding compilers. */
30516
30517#ifdef __STDC__
30518# include <limits.h>
30519#else
30520# include <assert.h>
30521#endif
30522
30523#undef $ac_func
30524
30525/* Override any gcc2 internal prototype to avoid an error. */
30526#ifdef __cplusplus
30527extern "C"
30528{
30529#endif
30530/* We use char because int might match the return type of a gcc2
30531 builtin and then its argument prototype would still apply. */
30532char $ac_func ();
30533/* The GNU C library defines this for functions which it implements
30534 to always fail with ENOSYS. Some functions are actually named
30535 something starting with __ and the normal name is an alias. */
30536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30537choke me
30538#else
30539char (*f) () = $ac_func;
30540#endif
30541#ifdef __cplusplus
30542}
30543#endif
30544
30545int
30546main ()
30547{
30548return f != $ac_func;
30549 ;
30550 return 0;
30551}
30552_ACEOF
30553rm -f conftest.$ac_objext conftest$ac_exeext
30554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30555 (eval $ac_link) 2>conftest.er1
30556 ac_status=$?
30557 grep -v '^ *+' conftest.er1 >conftest.err
30558 rm -f conftest.er1
30559 cat conftest.err >&5
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); } &&
c9a66001 30562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
30563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30564 (eval $ac_try) 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; } &&
30568 { ac_try='test -s conftest$ac_exeext'
30569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30570 (eval $ac_try) 2>&5
30571 ac_status=$?
30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); }; }; then
30574 eval "$as_ac_var=yes"
30575else
30576 echo "$as_me: failed program was:" >&5
30577sed 's/^/| /' conftest.$ac_ext >&5
30578
30579eval "$as_ac_var=no"
30580fi
30581rm -f conftest.err conftest.$ac_objext \
30582 conftest$ac_exeext conftest.$ac_ext
30583fi
30584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30586if test `eval echo '${'$as_ac_var'}'` = yes; then
30587 cat >>confdefs.h <<_ACEOF
30588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30589_ACEOF
30590
30591fi
30592done
30593
e56f4f9e 30594 CXXFLAGS="$save_CXXFLAGS"
304205f1 30595 LIBS="$save_LIBS"
a848cd7e
SC
30596 fi
30597
30598 wxUSE_UNIVERSAL="yes"
30599
30600 if test "$wxUSE_NANOX" = "yes"; then
30601 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30602 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"
30603 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30604 else
30605 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30606 fi
30607
a848cd7e
SC
30608 TOOLKIT=X11
30609 GUIDIST=X11_DIST
30610 fi
30611
30612 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30613 if test "$wxUSE_UNICODE" = "yes"; then
30614 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30615echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30616 { (exit 1); exit 1; }; }
30617 fi
30618
74b84332
VS
30619 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30620echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30621
74b84332
VS
30622ac_find_includes=
30623for ac_dir in $SEARCH_INCLUDE /usr/include;
30624 do
30625 if test -f "$ac_dir/Xm/Xm.h"; then
30626 ac_find_includes=$ac_dir
30627 break
30628 fi
30629 done
a848cd7e 30630
74b84332
VS
30631 if test "$ac_find_includes" != "" ; then
30632 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30633echo "${ECHO_T}found in $ac_find_includes" >&6
30634
30635 if test "x$ac_find_includes" = "x/usr/include"; then
30636 ac_path_to_include=""
30637 else
30638 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30639 result=$?
30640 if test $result = 0; then
30641 ac_path_to_include=""
30642 else
30643 ac_path_to_include=" -I$ac_find_includes"
30644 fi
a848cd7e
SC
30645 fi
30646
74b84332
VS
30647 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30648 else
e56f4f9e
VZ
30649 save_CXXFLAGS=$CXXFLAGS
30650 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30651
74b84332 30652 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30653/* confdefs.h. */
30654_ACEOF
30655cat confdefs.h >>conftest.$ac_ext
30656cat >>conftest.$ac_ext <<_ACEOF
30657/* end confdefs.h. */
30658
74b84332
VS
30659 #include <Xm/Xm.h>
30660
a848cd7e
SC
30661int
30662main ()
30663{
30664
74b84332
VS
30665 int version;
30666 version = xmUseVersion;
30667
a848cd7e
SC
30668 ;
30669 return 0;
30670}
30671_ACEOF
74b84332
VS
30672rm -f conftest.$ac_objext
30673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30674 (eval $ac_compile) 2>conftest.er1
a848cd7e 30675 ac_status=$?
ac1cb8d3
VS
30676 grep -v '^ *+' conftest.er1 >conftest.err
30677 rm -f conftest.er1
30678 cat conftest.err >&5
a848cd7e
SC
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } &&
c9a66001 30681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683 (eval $ac_try) 2>&5
30684 ac_status=$?
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; } &&
74b84332 30687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30689 (eval $ac_try) 2>&5
30690 ac_status=$?
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); }; }; then
74b84332
VS
30693
30694 echo "$as_me:$LINENO: result: found in default search path" >&5
30695echo "${ECHO_T}found in default search path" >&6
30696 COMPILED_X_PROGRAM=1
30697
a848cd7e
SC
30698else
30699 echo "$as_me: failed program was:" >&5
30700sed 's/^/| /' conftest.$ac_ext >&5
30701
a848cd7e 30702
74b84332
VS
30703 echo "$as_me:$LINENO: result: no" >&5
30704echo "${ECHO_T}no" >&6
e051b34e
MW
30705 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30706echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30707 { (exit 1); exit 1; }; }
a848cd7e 30708
a848cd7e 30709
a848cd7e 30710fi
74b84332 30711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30712
e56f4f9e 30713 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30714 fi
30715
0ad5d837
VZ
30716
30717 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30718echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30719
0ad5d837
VZ
30720 ac_find_libraries=
30721 for ac_dir in $SEARCH_LIB;
74b84332 30722 do
3eca31dc 30723 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30724 if test -f "$ac_dir/libXm.$ac_extension"; then
30725 ac_find_libraries=$ac_dir
30726 break 2
a848cd7e 30727 fi
74b84332
VS
30728 done
30729 done
a848cd7e 30730
0ad5d837
VZ
30731
30732 if test "x$ac_find_libraries" != "x" ; then
30733 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30734echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30735
74b84332 30736
0ad5d837 30737 if test "$ac_find_libraries" = "default location"; then
74b84332 30738 ac_path_to_link=""
a848cd7e 30739 else
0ad5d837
VZ
30740 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30741 result=$?
30742 if test $result = 0; then
30743 ac_path_to_link=""
30744 else
30745 ac_path_to_link=" -L$ac_find_libraries"
30746 fi
74b84332
VS
30747 fi
30748
0ad5d837
VZ
30749 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30750 else
e56f4f9e
VZ
30751 save_CXXFLAGS=$CXXFLAGS
30752 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30753 save_LIBS="$LIBS"
30754 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30755
0ad5d837 30756 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30757/* confdefs.h. */
30758_ACEOF
30759cat confdefs.h >>conftest.$ac_ext
30760cat >>conftest.$ac_ext <<_ACEOF
30761/* end confdefs.h. */
30762
0ad5d837 30763 #include <Xm/Xm.h>
74b84332 30764
a848cd7e
SC
30765int
30766main ()
30767{
74b84332 30768
0ad5d837
VZ
30769 int version;
30770 version = xmUseVersion;
74b84332 30771
a848cd7e
SC
30772 ;
30773 return 0;
30774}
30775_ACEOF
0ad5d837
VZ
30776rm -f conftest.$ac_objext conftest$ac_exeext
30777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30778 (eval $ac_link) 2>conftest.er1
a848cd7e 30779 ac_status=$?
ac1cb8d3
VS
30780 grep -v '^ *+' conftest.er1 >conftest.err
30781 rm -f conftest.er1
30782 cat conftest.err >&5
a848cd7e
SC
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); } &&
c9a66001 30785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30787 (eval $ac_try) 2>&5
30788 ac_status=$?
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); }; } &&
0ad5d837 30791 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793 (eval $ac_try) 2>&5
30794 ac_status=$?
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; }; then
74b84332 30797
0ad5d837 30798 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30799echo "${ECHO_T}found in default search path" >&6
0ad5d837 30800 COMPILED_X_PROGRAM=1
74b84332 30801
a848cd7e
SC
30802else
30803 echo "$as_me: failed program was:" >&5
30804sed 's/^/| /' conftest.$ac_ext >&5
30805
74b84332 30806
6f9cf1e6 30807 echo "$as_me:$LINENO: result: no" >&5
74b84332 30808echo "${ECHO_T}no" >&6
6f9cf1e6 30809 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30810echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30811 { (exit 1); exit 1; }; }
30812
30813
30814fi
0ad5d837
VZ
30815rm -f conftest.err conftest.$ac_objext \
30816 conftest$ac_exeext conftest.$ac_ext
74b84332 30817
e56f4f9e 30818 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30819 LIBS="$save_LIBS"
74b84332
VS
30820 fi
30821
30822 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30823echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30824 libp_link=""
30825 libsm_ice_link=""
30826 libs_found=0
30827 for libp in "" " -lXp"; do
30828 if test "$libs_found" = "0"; then
30829 for libsm_ice in "" " -lSM -lICE"; do
30830 if test "$libs_found" = "0"; then
30831 save_LIBS="$LIBS"
30832 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30833 save_CXXFLAGS=$CXXFLAGS
30834 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30835
30836 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30837/* confdefs.h. */
30838_ACEOF
30839cat confdefs.h >>conftest.$ac_ext
30840cat >>conftest.$ac_ext <<_ACEOF
30841/* end confdefs.h. */
30842
74b84332
VS
30843 #include <Xm/Xm.h>
30844 #include <Xm/List.h>
30845
a848cd7e
SC
30846int
30847main ()
30848{
74b84332
VS
30849
30850 XmString string = NULL;
30851 Widget w = NULL;
30852 int position = 0;
30853 XmListAddItem(w, string, position);
30854
a848cd7e
SC
30855 ;
30856 return 0;
30857}
30858_ACEOF
30859rm -f conftest.$ac_objext conftest$ac_exeext
30860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30861 (eval $ac_link) 2>conftest.er1
a848cd7e 30862 ac_status=$?
ac1cb8d3
VS
30863 grep -v '^ *+' conftest.er1 >conftest.err
30864 rm -f conftest.er1
30865 cat conftest.err >&5
a848cd7e
SC
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); } &&
c9a66001 30868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30870 (eval $ac_try) 2>&5
30871 ac_status=$?
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); }; } &&
30874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30876 (eval $ac_try) 2>&5
30877 ac_status=$?
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); }; }; then
30880
30881 libp_link="$libp"
30882 libsm_ice_link="$libsm_ice"
30883 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30884echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30885 libs_found=1
30886
30887else
30888 echo "$as_me: failed program was:" >&5
30889sed 's/^/| /' conftest.$ac_ext >&5
30890
30891
30892
30893fi
ac1cb8d3
VS
30894rm -f conftest.err conftest.$ac_objext \
30895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30896
30897 LIBS="$save_LIBS"
e56f4f9e 30898 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30899 fi
30900 done
30901 fi
30902 done
30903
30904 if test "$libs_found" = "0"; then
30905 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30906echo "${ECHO_T}can't find the right libraries" >&6
30907 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30908echo "$as_me: error: can't link a simple motif program" >&2;}
30909 { (exit 1); exit 1; }; }
30910 fi
30911
62fa8b3a
MW
30912 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30913echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30914if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30915 echo $ECHO_N "(cached) $ECHO_C" >&6
30916else
30917 ac_check_lib_save_LIBS=$LIBS
30918LIBS="-lSgm $LIBS"
30919cat >conftest.$ac_ext <<_ACEOF
30920/* confdefs.h. */
30921_ACEOF
30922cat confdefs.h >>conftest.$ac_ext
30923cat >>conftest.$ac_ext <<_ACEOF
30924/* end confdefs.h. */
30925
30926/* Override any gcc2 internal prototype to avoid an error. */
30927#ifdef __cplusplus
30928extern "C"
30929#endif
30930/* We use char because int might match the return type of a gcc2
30931 builtin and then its argument prototype would still apply. */
30932char SgCreateList ();
30933int
30934main ()
30935{
30936SgCreateList ();
30937 ;
30938 return 0;
30939}
30940_ACEOF
30941rm -f conftest.$ac_objext conftest$ac_exeext
30942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30943 (eval $ac_link) 2>conftest.er1
30944 ac_status=$?
30945 grep -v '^ *+' conftest.er1 >conftest.err
30946 rm -f conftest.er1
30947 cat conftest.err >&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); } &&
c9a66001 30950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30952 (eval $ac_try) 2>&5
30953 ac_status=$?
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); }; } &&
30956 { ac_try='test -s conftest$ac_exeext'
30957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30958 (eval $ac_try) 2>&5
30959 ac_status=$?
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); }; }; then
30962 ac_cv_lib_Sgm_SgCreateList=yes
30963else
30964 echo "$as_me: failed program was:" >&5
30965sed 's/^/| /' conftest.$ac_ext >&5
30966
30967ac_cv_lib_Sgm_SgCreateList=no
30968fi
30969rm -f conftest.err conftest.$ac_objext \
30970 conftest$ac_exeext conftest.$ac_ext
30971LIBS=$ac_check_lib_save_LIBS
30972fi
30973echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30974echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30975if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30976 libsgm_link=" -lSgm"
30977fi
30978
30979
e56f4f9e
VZ
30980 save_CXXFLAGS=$CXXFLAGS
30981 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30982
a848cd7e
SC
30983 echo "$as_me:$LINENO: checking for Motif 2" >&5
30984echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30985if test "${wx_cv_lib_motif2+set}" = set; then
30986 echo $ECHO_N "(cached) $ECHO_C" >&6
30987else
30988 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30989/* confdefs.h. */
30990_ACEOF
30991cat confdefs.h >>conftest.$ac_ext
30992cat >>conftest.$ac_ext <<_ACEOF
30993/* end confdefs.h. */
30994
0ad5d837 30995 #include <Xm/Xm.h>
a848cd7e
SC
30996
30997int
30998main ()
30999{
31000
0ad5d837
VZ
31001 #if XmVersion < 2000
31002 Not Motif 2
31003 #endif
a848cd7e
SC
31004
31005 ;
31006 return 0;
31007}
31008_ACEOF
31009rm -f conftest.$ac_objext
31010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31011 (eval $ac_compile) 2>conftest.er1
a848cd7e 31012 ac_status=$?
ac1cb8d3
VS
31013 grep -v '^ *+' conftest.er1 >conftest.err
31014 rm -f conftest.er1
31015 cat conftest.err >&5
a848cd7e
SC
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); } &&
c9a66001 31018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31020 (eval $ac_try) 2>&5
31021 ac_status=$?
31022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023 (exit $ac_status); }; } &&
31024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31026 (eval $ac_try) 2>&5
31027 ac_status=$?
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); }; }; then
0ad5d837 31030 wx_cv_lib_motif2="yes"
a848cd7e
SC
31031else
31032 echo "$as_me: failed program was:" >&5
31033sed 's/^/| /' conftest.$ac_ext >&5
31034
0ad5d837
VZ
31035wx_cv_lib_motif2="no"
31036fi
31037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31038fi
31039echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31040echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31041 if test "$wx_cv_lib_motif2" = "yes"; then
31042 cat >>confdefs.h <<\_ACEOF
31043#define __WXMOTIF20__ 1
31044_ACEOF
a848cd7e 31045
0ad5d837
VZ
31046 else
31047 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31048#define __WXMOTIF20__ 0
31049_ACEOF
31050
0ad5d837 31051 fi
2113bc77
MW
31052
31053 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31054echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31055if test "${wx_cv_lib_lesstif+set}" = set; then
31056 echo $ECHO_N "(cached) $ECHO_C" >&6
31057else
31058 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31059/* confdefs.h. */
31060_ACEOF
31061cat confdefs.h >>conftest.$ac_ext
31062cat >>conftest.$ac_ext <<_ACEOF
31063/* end confdefs.h. */
31064
0ad5d837 31065 #include <Xm/Xm.h>
2113bc77
MW
31066
31067int
31068main ()
31069{
31070
0ad5d837
VZ
31071 #if !defined(LesstifVersion) || LesstifVersion <= 0
31072 Not Lesstif
31073 #endif
2113bc77
MW
31074
31075 ;
31076 return 0;
31077}
31078_ACEOF
31079rm -f conftest.$ac_objext
31080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31081 (eval $ac_compile) 2>conftest.er1
31082 ac_status=$?
31083 grep -v '^ *+' conftest.er1 >conftest.err
31084 rm -f conftest.er1
31085 cat conftest.err >&5
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); } &&
c9a66001 31088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31090 (eval $ac_try) 2>&5
31091 ac_status=$?
31092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093 (exit $ac_status); }; } &&
31094 { ac_try='test -s conftest.$ac_objext'
31095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31096 (eval $ac_try) 2>&5
31097 ac_status=$?
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; }; then
0ad5d837 31100 wx_cv_lib_lesstif="yes"
2113bc77
MW
31101else
31102 echo "$as_me: failed program was:" >&5
31103sed 's/^/| /' conftest.$ac_ext >&5
31104
0ad5d837
VZ
31105wx_cv_lib_lesstif="no"
31106fi
31107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31108
0ad5d837
VZ
31109fi
31110echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31111echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31112 if test "$wx_cv_lib_lesstif" = "yes"; then
31113 cat >>confdefs.h <<\_ACEOF
31114#define __WXLESSTIF__ 1
31115_ACEOF
31116
31117 else
31118 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31119#define __WXLESSTIF__ 0
31120_ACEOF
31121
0ad5d837 31122 fi
2113bc77 31123
e56f4f9e 31124 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31125
62fa8b3a 31126 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31127 TOOLKIT=MOTIF
31128 GUIDIST=MOTIF_DIST
31129 fi
31130
74b84332 31131 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31132 if test "$wxUSE_LIBXPM" = "sys"; then
31133 echo "$as_me:$LINENO: checking for Xpm library" >&5
31134echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31135
0ad5d837
VZ
31136 ac_find_libraries=
31137 for ac_dir in $SEARCH_LIB;
a848cd7e 31138 do
3eca31dc 31139 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31140 if test -f "$ac_dir/libXpm.$ac_extension"; then
31141 ac_find_libraries=$ac_dir
31142 break 2
31143 fi
31144 done
31145 done
31146
31147 if test "$ac_find_libraries" != "" ; then
31148
0ad5d837 31149 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31150 ac_path_to_link=""
31151 else
0ad5d837
VZ
31152 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31153 result=$?
31154 if test $result = 0; then
31155 ac_path_to_link=""
31156 else
31157 ac_path_to_link=" -L$ac_find_libraries"
31158 fi
a848cd7e
SC
31159 fi
31160
31161 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31162 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31163echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31164
31165 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31166echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31167if test "${wx_cv_x11_xpm_h+set}" = set; then
31168 echo $ECHO_N "(cached) $ECHO_C" >&6
31169else
31170
e56f4f9e
VZ
31171 save_CXXFLAGS=$CXXFLAGS
31172 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31173
31174 cat >conftest.$ac_ext <<_ACEOF
31175/* confdefs.h. */
31176_ACEOF
31177cat confdefs.h >>conftest.$ac_ext
31178cat >>conftest.$ac_ext <<_ACEOF
31179/* end confdefs.h. */
31180
31181 #include <X11/xpm.h>
31182
31183int
31184main ()
31185{
31186
31187 int version;
31188 version = XpmLibraryVersion();
31189
31190 ;
31191 return 0;
31192}
31193_ACEOF
31194rm -f conftest.$ac_objext
31195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31196 (eval $ac_compile) 2>conftest.er1
a848cd7e 31197 ac_status=$?
ac1cb8d3
VS
31198 grep -v '^ *+' conftest.er1 >conftest.err
31199 rm -f conftest.er1
31200 cat conftest.err >&5
a848cd7e
SC
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); } &&
c9a66001 31203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31205 (eval $ac_try) 2>&5
31206 ac_status=$?
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); }; } &&
31209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31211 (eval $ac_try) 2>&5
31212 ac_status=$?
31213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214 (exit $ac_status); }; }; then
31215 wx_cv_x11_xpm_h=yes
31216else
31217 echo "$as_me: failed program was:" >&5
31218sed 's/^/| /' conftest.$ac_ext >&5
31219
31220wx_cv_x11_xpm_h=no
31221
31222fi
ac1cb8d3 31223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31224
e56f4f9e 31225 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31226
31227
31228fi
31229echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31230echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31231
31232 if test $wx_cv_x11_xpm_h = "yes"; then
31233 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31234 cat >>confdefs.h <<\_ACEOF
31235#define wxHAVE_LIB_XPM 1
31236_ACEOF
31237
31238 else
31239 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31240echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31241 fi
31242 fi
31243
31244 fi
31245
31246 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31247echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31248if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31249 echo $ECHO_N "(cached) $ECHO_C" >&6
31250else
31251 ac_check_lib_save_LIBS=$LIBS
31252LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31253cat >conftest.$ac_ext <<_ACEOF
31254/* confdefs.h. */
31255_ACEOF
31256cat confdefs.h >>conftest.$ac_ext
31257cat >>conftest.$ac_ext <<_ACEOF
31258/* end confdefs.h. */
31259
31260/* Override any gcc2 internal prototype to avoid an error. */
31261#ifdef __cplusplus
31262extern "C"
31263#endif
31264/* We use char because int might match the return type of a gcc2
31265 builtin and then its argument prototype would still apply. */
31266char XShapeQueryExtension ();
31267int
31268main ()
31269{
31270XShapeQueryExtension ();
31271 ;
31272 return 0;
31273}
31274_ACEOF
31275rm -f conftest.$ac_objext conftest$ac_exeext
31276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31277 (eval $ac_link) 2>conftest.er1
a848cd7e 31278 ac_status=$?
ac1cb8d3
VS
31279 grep -v '^ *+' conftest.er1 >conftest.err
31280 rm -f conftest.er1
31281 cat conftest.err >&5
a848cd7e
SC
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); } &&
c9a66001 31284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31286 (eval $ac_try) 2>&5
31287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; } &&
31290 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31292 (eval $ac_try) 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; }; then
31296 ac_cv_lib_Xext_XShapeQueryExtension=yes
31297else
31298 echo "$as_me: failed program was:" >&5
31299sed 's/^/| /' conftest.$ac_ext >&5
31300
31301ac_cv_lib_Xext_XShapeQueryExtension=no
31302fi
ac1cb8d3
VS
31303rm -f conftest.err conftest.$ac_objext \
31304 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31305LIBS=$ac_check_lib_save_LIBS
31306fi
31307echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31308echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31309if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31310
31311 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31312 wxHAVE_XEXT_LIB=1
31313
31314fi
31315
31316
31317 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31318 save_CXXFLAGS="$CXXFLAGS"
31319 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31320
31321 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31322echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31323 cat >conftest.$ac_ext <<_ACEOF
31324/* confdefs.h. */
31325_ACEOF
31326cat confdefs.h >>conftest.$ac_ext
31327cat >>conftest.$ac_ext <<_ACEOF
31328/* end confdefs.h. */
31329
31330 #include <X11/Xlib.h>
31331 #include <X11/extensions/shape.h>
31332
31333int
31334main ()
31335{
31336
31337 int dummy1, dummy2;
31338 XShapeQueryExtension((Display*)NULL,
31339 (int*)NULL, (int*)NULL);
31340
31341 ;
31342 return 0;
31343}
31344_ACEOF
31345rm -f conftest.$ac_objext
31346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31347 (eval $ac_compile) 2>conftest.er1
a848cd7e 31348 ac_status=$?
ac1cb8d3
VS
31349 grep -v '^ *+' conftest.er1 >conftest.err
31350 rm -f conftest.er1
31351 cat conftest.err >&5
a848cd7e
SC
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } &&
c9a66001 31354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31356 (eval $ac_try) 2>&5
31357 ac_status=$?
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); }; } &&
31360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31362 (eval $ac_try) 2>&5
31363 ac_status=$?
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; }; then
31366
31367 cat >>confdefs.h <<\_ACEOF
31368#define HAVE_XSHAPE 1
31369_ACEOF
31370
31371 echo "$as_me:$LINENO: result: found" >&5
31372echo "${ECHO_T}found" >&6
31373
31374else
31375 echo "$as_me: failed program was:" >&5
31376sed 's/^/| /' conftest.$ac_ext >&5
31377
31378
31379 echo "$as_me:$LINENO: result: not found" >&5
31380echo "${ECHO_T}not found" >&6
31381
31382fi
ac1cb8d3 31383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31384 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31385
31386 fi
31387 fi
31388
31389 if test "$wxUSE_MAC" = 1; then
31390 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31391echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31392 if test "$GCC" = yes; then
31393 echo "$as_me:$LINENO: result: gcc" >&5
31394echo "${ECHO_T}gcc" >&6
31395 CPPFLAGS_PASCAL="-fpascal-strings"
31396 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31397 echo "$as_me:$LINENO: result: xlc" >&5
31398echo "${ECHO_T}xlc" >&6
31399 CPPFLAGS_PASCAL="-qmacpstr"
31400 else
31401 echo "$as_me:$LINENO: result: none" >&5
31402echo "${ECHO_T}none" >&6
31403 fi
31404
1e9e8aba 31405 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31406 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31407 else
c92ad099 31408 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31409 fi
a848cd7e 31410
a848cd7e
SC
31411 TOOLKIT=MAC
31412 GUIDIST=MACX_DIST
dd21ced8 31413 WXBASEPORT="_carbon"
a848cd7e
SC
31414 fi
31415
31416 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31417 TOOLKIT=COCOA
31418 GUIDIST=COCOA_DIST
31419 fi
31420
31421 if test "$wxUSE_PM" = 1; then
31422 TOOLKIT=PM
de59c161
RD
31423 GUIDIST=PM_DIST
31424 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31425echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31426if test "${wx_cv_spbcdata+set}" = set; then
31427 echo $ECHO_N "(cached) $ECHO_C" >&6
31428else
31429
31430 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31431/* confdefs.h. */
31432_ACEOF
31433cat confdefs.h >>conftest.$ac_ext
31434cat >>conftest.$ac_ext <<_ACEOF
31435/* end confdefs.h. */
31436
31437 #define INCL_PM
31438 #include <os2.h>
31439
31440int
31441main ()
31442{
31443
31444 SPBCDATA test;
31445
31446 ;
31447 return 0;
31448}
31449_ACEOF
31450rm -f conftest.$ac_objext
31451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31452 (eval $ac_compile) 2>conftest.er1
de59c161 31453 ac_status=$?
ac1cb8d3
VS
31454 grep -v '^ *+' conftest.er1 >conftest.err
31455 rm -f conftest.er1
31456 cat conftest.err >&5
de59c161
RD
31457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458 (exit $ac_status); } &&
c9a66001 31459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31461 (eval $ac_try) 2>&5
31462 ac_status=$?
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); }; } &&
31465 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31467 (eval $ac_try) 2>&5
31468 ac_status=$?
31469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470 (exit $ac_status); }; }; then
31471 wx_cv_spbcdata=yes
31472else
31473 echo "$as_me: failed program was:" >&5
31474sed 's/^/| /' conftest.$ac_ext >&5
31475
31476wx_cv_spbcdata=no
31477
31478fi
ac1cb8d3 31479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31480
31481
31482fi
31483echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31484echo "${ECHO_T}$wx_cv_spbcdata" >&6
31485
31486 if test $wx_cv_spbcdata = "yes"; then
31487 cat >>confdefs.h <<\_ACEOF
31488#define HAVE_SPBCDATA 1
31489_ACEOF
31490
31491 fi
a848cd7e
SC
31492 fi
31493
31494 if test "$TOOLKIT" = "PM" ; then
31495 TOOLKIT_DIR="os2"
31496 else
31497 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31498 fi
31499
a848cd7e 31500 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31501 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31502 WIDGET_SET=univ
a848cd7e
SC
31503 fi
31504
31505 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31506 DISTDIR="wx\$(TOOLKIT)"
31507else
31508 USE_GUI=0
31509
31510 TOOLKIT_DIR="base"
31511
31512 if test "$USE_WIN32" = 1 ; then
a848cd7e 31513 TOOLKIT="MSW"
a848cd7e
SC
31514 fi
31515
a848cd7e
SC
31516 GUIDIST="BASE_DIST"
31517 DISTDIR="wxBase"
31518fi
31519
31520
d12aef51
VZ
31521if test "$wxUSE_GUI" = "yes"; then
31522 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31523
31524for ac_header in X11/Xlib.h
31525do
31526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31527if eval "test \"\${$as_ac_Header+set}\" = set"; then
31528 echo "$as_me:$LINENO: checking for $ac_header" >&5
31529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31530if eval "test \"\${$as_ac_Header+set}\" = set"; then
31531 echo $ECHO_N "(cached) $ECHO_C" >&6
31532fi
31533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31535else
31536 # Is the header compilable?
31537echo "$as_me:$LINENO: checking $ac_header usability" >&5
31538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31539cat >conftest.$ac_ext <<_ACEOF
31540/* confdefs.h. */
31541_ACEOF
31542cat confdefs.h >>conftest.$ac_ext
31543cat >>conftest.$ac_ext <<_ACEOF
31544/* end confdefs.h. */
31545$ac_includes_default
31546#include <$ac_header>
31547_ACEOF
31548rm -f conftest.$ac_objext
31549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31550 (eval $ac_compile) 2>conftest.er1
31551 ac_status=$?
31552 grep -v '^ *+' conftest.er1 >conftest.err
31553 rm -f conftest.er1
31554 cat conftest.err >&5
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); } &&
c9a66001 31557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31559 (eval $ac_try) 2>&5
31560 ac_status=$?
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); }; } &&
31563 { ac_try='test -s conftest.$ac_objext'
31564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31565 (eval $ac_try) 2>&5
31566 ac_status=$?
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); }; }; then
31569 ac_header_compiler=yes
31570else
31571 echo "$as_me: failed program was:" >&5
31572sed 's/^/| /' conftest.$ac_ext >&5
31573
31574ac_header_compiler=no
31575fi
31576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31578echo "${ECHO_T}$ac_header_compiler" >&6
31579
31580# Is the header present?
31581echo "$as_me:$LINENO: checking $ac_header presence" >&5
31582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31583cat >conftest.$ac_ext <<_ACEOF
31584/* confdefs.h. */
31585_ACEOF
31586cat confdefs.h >>conftest.$ac_ext
31587cat >>conftest.$ac_ext <<_ACEOF
31588/* end confdefs.h. */
31589#include <$ac_header>
31590_ACEOF
31591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31593 ac_status=$?
31594 grep -v '^ *+' conftest.er1 >conftest.err
31595 rm -f conftest.er1
31596 cat conftest.err >&5
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); } >/dev/null; then
31599 if test -s conftest.err; then
5d7b7554
VZ
31600 ac_cpp_err=$ac_cxx_preproc_warn_flag
31601 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31602 else
31603 ac_cpp_err=
31604 fi
31605else
31606 ac_cpp_err=yes
31607fi
31608if test -z "$ac_cpp_err"; then
31609 ac_header_preproc=yes
31610else
31611 echo "$as_me: failed program was:" >&5
31612sed 's/^/| /' conftest.$ac_ext >&5
31613
31614 ac_header_preproc=no
31615fi
31616rm -f conftest.err conftest.$ac_ext
31617echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31618echo "${ECHO_T}$ac_header_preproc" >&6
31619
31620# So? What about this header?
5d7b7554 31621case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31622 yes:no: )
31623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31627 ac_header_preproc=yes
31628 ;;
31629 no:yes:* )
31630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31637echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31642 (
31643 cat <<\_ASBOX
31644## ----------------------------------------- ##
31645## Report this to wx-dev@lists.wxwidgets.org ##
31646## ----------------------------------------- ##
31647_ASBOX
31648 ) |
31649 sed "s/^/$as_me: WARNING: /" >&2
31650 ;;
31651esac
31652echo "$as_me:$LINENO: checking for $ac_header" >&5
31653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31654if eval "test \"\${$as_ac_Header+set}\" = set"; then
31655 echo $ECHO_N "(cached) $ECHO_C" >&6
31656else
31657 eval "$as_ac_Header=\$ac_header_preproc"
31658fi
31659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31661
31662fi
31663if test `eval echo '${'$as_ac_Header'}'` = yes; then
31664 cat >>confdefs.h <<_ACEOF
31665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31666_ACEOF
31667
31668fi
31669
31670done
31671
31672
31673for ac_header in X11/XKBlib.h
31674do
31675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31676echo "$as_me:$LINENO: checking for $ac_header" >&5
31677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31678if eval "test \"\${$as_ac_Header+set}\" = set"; then
31679 echo $ECHO_N "(cached) $ECHO_C" >&6
31680else
31681 cat >conftest.$ac_ext <<_ACEOF
31682/* confdefs.h. */
31683_ACEOF
31684cat confdefs.h >>conftest.$ac_ext
31685cat >>conftest.$ac_ext <<_ACEOF
31686/* end confdefs.h. */
31687
31688 #if HAVE_X11_XLIB_H
31689 #include <X11/Xlib.h>
31690 #endif
31691
31692
31693#include <$ac_header>
31694_ACEOF
31695rm -f conftest.$ac_objext
31696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31697 (eval $ac_compile) 2>conftest.er1
31698 ac_status=$?
31699 grep -v '^ *+' conftest.er1 >conftest.err
31700 rm -f conftest.er1
31701 cat conftest.err >&5
31702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703 (exit $ac_status); } &&
c9a66001 31704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31706 (eval $ac_try) 2>&5
31707 ac_status=$?
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; } &&
31710 { ac_try='test -s conftest.$ac_objext'
31711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31712 (eval $ac_try) 2>&5
31713 ac_status=$?
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); }; }; then
31716 eval "$as_ac_Header=yes"
31717else
31718 echo "$as_me: failed program was:" >&5
31719sed 's/^/| /' conftest.$ac_ext >&5
31720
31721eval "$as_ac_Header=no"
31722fi
31723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31724fi
31725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31727if test `eval echo '${'$as_ac_Header'}'` = yes; then
31728 cat >>confdefs.h <<_ACEOF
31729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31730_ACEOF
31731
31732fi
31733
31734done
31735
31736 fi
31737fi
31738
a848cd7e
SC
31739
31740
31741IODBC_C_SRC=""
31742
31743
31744if test "$TOOLKIT" != "MSW" ; then
31745
31746 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31747
31748 if test "${ac_cv_header_sql_h+set}" = set; then
31749 echo "$as_me:$LINENO: checking for sql.h" >&5
31750echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31751if test "${ac_cv_header_sql_h+set}" = set; then
31752 echo $ECHO_N "(cached) $ECHO_C" >&6
31753fi
31754echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31755echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31756else
31757 # Is the header compilable?
31758echo "$as_me:$LINENO: checking sql.h usability" >&5
31759echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31760cat >conftest.$ac_ext <<_ACEOF
31761/* confdefs.h. */
31762_ACEOF
31763cat confdefs.h >>conftest.$ac_ext
31764cat >>conftest.$ac_ext <<_ACEOF
31765/* end confdefs.h. */
31766$ac_includes_default
31767#include <sql.h>
31768_ACEOF
31769rm -f conftest.$ac_objext
31770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31771 (eval $ac_compile) 2>conftest.er1
a848cd7e 31772 ac_status=$?
ac1cb8d3
VS
31773 grep -v '^ *+' conftest.er1 >conftest.err
31774 rm -f conftest.er1
31775 cat conftest.err >&5
a848cd7e
SC
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); } &&
c9a66001 31778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780 (eval $ac_try) 2>&5
31781 ac_status=$?
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; } &&
31784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31786 (eval $ac_try) 2>&5
31787 ac_status=$?
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; }; then
31790 ac_header_compiler=yes
31791else
31792 echo "$as_me: failed program was:" >&5
31793sed 's/^/| /' conftest.$ac_ext >&5
31794
31795ac_header_compiler=no
31796fi
ac1cb8d3 31797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31799echo "${ECHO_T}$ac_header_compiler" >&6
31800
31801# Is the header present?
31802echo "$as_me:$LINENO: checking sql.h presence" >&5
31803echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31804cat >conftest.$ac_ext <<_ACEOF
31805/* confdefs.h. */
31806_ACEOF
31807cat confdefs.h >>conftest.$ac_ext
31808cat >>conftest.$ac_ext <<_ACEOF
31809/* end confdefs.h. */
31810#include <sql.h>
31811_ACEOF
31812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31814 ac_status=$?
31815 grep -v '^ *+' conftest.er1 >conftest.err
31816 rm -f conftest.er1
31817 cat conftest.err >&5
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); } >/dev/null; then
31820 if test -s conftest.err; then
5d7b7554
VZ
31821 ac_cpp_err=$ac_cxx_preproc_warn_flag
31822 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31823 else
31824 ac_cpp_err=
31825 fi
31826else
31827 ac_cpp_err=yes
31828fi
31829if test -z "$ac_cpp_err"; then
31830 ac_header_preproc=yes
31831else
31832 echo "$as_me: failed program was:" >&5
31833sed 's/^/| /' conftest.$ac_ext >&5
31834
31835 ac_header_preproc=no
31836fi
31837rm -f conftest.err conftest.$ac_ext
31838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31839echo "${ECHO_T}$ac_header_preproc" >&6
31840
31841# So? What about this header?
5d7b7554 31842case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31843 yes:no: )
a848cd7e
SC
31844 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31845echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31846 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31847echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31848 ac_header_preproc=yes
a848cd7e 31849 ;;
ac1cb8d3 31850 no:yes:* )
a848cd7e
SC
31851 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31852echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31853 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31854echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31855 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31856echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31857 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31858echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31859 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31860echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31861 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31862echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31863 (
31864 cat <<\_ASBOX
ac1cb8d3
VS
31865## ----------------------------------------- ##
31866## Report this to wx-dev@lists.wxwidgets.org ##
31867## ----------------------------------------- ##
a848cd7e
SC
31868_ASBOX
31869 ) |
31870 sed "s/^/$as_me: WARNING: /" >&2
31871 ;;
31872esac
31873echo "$as_me:$LINENO: checking for sql.h" >&5
31874echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31875if test "${ac_cv_header_sql_h+set}" = set; then
31876 echo $ECHO_N "(cached) $ECHO_C" >&6
31877else
31878 ac_cv_header_sql_h=$ac_header_preproc
31879fi
31880echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31881echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31882
31883fi
31884if test $ac_cv_header_sql_h = yes; then
31885 found_sql_h=1
31886fi
31887
31888
31889 if test "x$found_sql_h" = "x1" ; then
31890 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31891echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31892if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31893 echo $ECHO_N "(cached) $ECHO_C" >&6
31894else
31895 ac_check_lib_save_LIBS=$LIBS
31896LIBS="-liodbc $LIBS"
31897cat >conftest.$ac_ext <<_ACEOF
31898/* confdefs.h. */
31899_ACEOF
31900cat confdefs.h >>conftest.$ac_ext
31901cat >>conftest.$ac_ext <<_ACEOF
31902/* end confdefs.h. */
31903
31904/* Override any gcc2 internal prototype to avoid an error. */
31905#ifdef __cplusplus
31906extern "C"
31907#endif
31908/* We use char because int might match the return type of a gcc2
31909 builtin and then its argument prototype would still apply. */
31910char SQLAllocEnv ();
31911int
31912main ()
31913{
31914SQLAllocEnv ();
31915 ;
31916 return 0;
31917}
31918_ACEOF
31919rm -f conftest.$ac_objext conftest$ac_exeext
31920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31921 (eval $ac_link) 2>conftest.er1
a848cd7e 31922 ac_status=$?
ac1cb8d3
VS
31923 grep -v '^ *+' conftest.er1 >conftest.err
31924 rm -f conftest.er1
31925 cat conftest.err >&5
a848cd7e
SC
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); } &&
c9a66001 31928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31930 (eval $ac_try) 2>&5
31931 ac_status=$?
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; } &&
31934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31937 ac_status=$?
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; }; then
31940 ac_cv_lib_iodbc_SQLAllocEnv=yes
31941else
31942 echo "$as_me: failed program was:" >&5
31943sed 's/^/| /' conftest.$ac_ext >&5
31944
31945ac_cv_lib_iodbc_SQLAllocEnv=no
31946fi
ac1cb8d3
VS
31947rm -f conftest.err conftest.$ac_objext \
31948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31949LIBS=$ac_check_lib_save_LIBS
31950fi
31951echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31952echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31953if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31954 ODBC_LINK=" -liodbc"
31955else
31956
31957 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31958echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31959if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31960 echo $ECHO_N "(cached) $ECHO_C" >&6
31961else
31962 ac_check_lib_save_LIBS=$LIBS
31963LIBS="-lunixodbc $LIBS"
31964cat >conftest.$ac_ext <<_ACEOF
31965/* confdefs.h. */
31966_ACEOF
31967cat confdefs.h >>conftest.$ac_ext
31968cat >>conftest.$ac_ext <<_ACEOF
31969/* end confdefs.h. */
31970
31971/* Override any gcc2 internal prototype to avoid an error. */
31972#ifdef __cplusplus
31973extern "C"
31974#endif
31975/* We use char because int might match the return type of a gcc2
31976 builtin and then its argument prototype would still apply. */
31977char SQLAllocEnv ();
31978int
31979main ()
31980{
31981SQLAllocEnv ();
31982 ;
31983 return 0;
31984}
31985_ACEOF
31986rm -f conftest.$ac_objext conftest$ac_exeext
31987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31988 (eval $ac_link) 2>conftest.er1
a848cd7e 31989 ac_status=$?
ac1cb8d3
VS
31990 grep -v '^ *+' conftest.er1 >conftest.err
31991 rm -f conftest.er1
31992 cat conftest.err >&5
a848cd7e
SC
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); } &&
c9a66001 31995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997 (eval $ac_try) 2>&5
31998 ac_status=$?
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); }; } &&
32001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32003 (eval $ac_try) 2>&5
32004 ac_status=$?
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); }; }; then
32007 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32008else
32009 echo "$as_me: failed program was:" >&5
32010sed 's/^/| /' conftest.$ac_ext >&5
32011
32012ac_cv_lib_unixodbc_SQLAllocEnv=no
32013fi
ac1cb8d3
VS
32014rm -f conftest.err conftest.$ac_objext \
32015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32016LIBS=$ac_check_lib_save_LIBS
32017fi
32018echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32019echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32020if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32021 ODBC_LINK=" -lunixodbc"
32022else
32023
32024 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32025echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32026if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32027 echo $ECHO_N "(cached) $ECHO_C" >&6
32028else
32029 ac_check_lib_save_LIBS=$LIBS
32030LIBS="-lodbc $LIBS"
32031cat >conftest.$ac_ext <<_ACEOF
32032/* confdefs.h. */
32033_ACEOF
32034cat confdefs.h >>conftest.$ac_ext
32035cat >>conftest.$ac_ext <<_ACEOF
32036/* end confdefs.h. */
32037
32038/* Override any gcc2 internal prototype to avoid an error. */
32039#ifdef __cplusplus
32040extern "C"
32041#endif
32042/* We use char because int might match the return type of a gcc2
32043 builtin and then its argument prototype would still apply. */
32044char SQLAllocEnv ();
32045int
32046main ()
32047{
32048SQLAllocEnv ();
32049 ;
32050 return 0;
32051}
32052_ACEOF
32053rm -f conftest.$ac_objext conftest$ac_exeext
32054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32055 (eval $ac_link) 2>conftest.er1
a848cd7e 32056 ac_status=$?
ac1cb8d3
VS
32057 grep -v '^ *+' conftest.er1 >conftest.err
32058 rm -f conftest.er1
32059 cat conftest.err >&5
a848cd7e
SC
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); } &&
c9a66001 32062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064 (eval $ac_try) 2>&5
32065 ac_status=$?
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; } &&
32068 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32070 (eval $ac_try) 2>&5
32071 ac_status=$?
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; }; then
32074 ac_cv_lib_odbc_SQLAllocEnv=yes
32075else
32076 echo "$as_me: failed program was:" >&5
32077sed 's/^/| /' conftest.$ac_ext >&5
32078
32079ac_cv_lib_odbc_SQLAllocEnv=no
32080fi
ac1cb8d3
VS
32081rm -f conftest.err conftest.$ac_objext \
32082 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32083LIBS=$ac_check_lib_save_LIBS
32084fi
32085echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32086echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32087if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32088 ODBC_LINK=" -lodbc"
32089fi
32090
32091
32092fi
32093
32094
32095fi
32096
32097 fi
32098 if test "x$ODBC_LINK" = "x" ; then
32099 if test "$wxUSE_ODBC" = "sys" ; then
32100 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32101echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32102 { (exit 1); exit 1; }; }
32103 else
32104 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32105echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32106 wxUSE_ODBC=builtin
32107 fi
32108 else
32109 wxUSE_ODBC=sys
32110 fi
32111 fi
a848cd7e 32112
2da0c077
RD
32113 if test "$wxUSE_ODBC" = "builtin" ; then
32114 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32115#define wxUSE_BUILTIN_IODBC 1
32116_ACEOF
32117
a848cd7e
SC
32118 fi
32119fi
32120
2da0c077
RD
32121if test "$wxUSE_ODBC" != "no" ; then
32122 cat >>confdefs.h <<\_ACEOF
32123#define wxUSE_ODBC 1
32124_ACEOF
32125
32126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32127
5ff751d6 32128 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32129fi
a848cd7e 32130
01cb68df 32131
a848cd7e 32132if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32133 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32134 echo "$as_me:$LINENO: checking for Xinerama" >&5
32135echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32136
0ad5d837
VZ
32137 ac_find_libraries=
32138 for ac_dir in $SEARCH_LIB;
32139 do
32140 for ac_extension in a so sl dylib dll.a; do
32141 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32142 ac_find_libraries=$ac_dir
32143 break 2
32144 fi
32145 done
32146 done
32147
a848cd7e
SC
32148 if test "$ac_find_libraries" != "" ; then
32149
0ad5d837 32150 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32151 ac_path_to_link=""
32152 else
0ad5d837
VZ
32153 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32154 result=$?
32155 if test $result = 0; then
32156 ac_path_to_link=""
32157 else
32158 ac_path_to_link=" -L$ac_find_libraries"
32159 fi
a848cd7e
SC
32160 fi
32161
32162 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32163 LDFLAGS="$LDFLAGS $ac_path_to_link"
32164 fi
32165 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32166 echo "$as_me:$LINENO: result: yes" >&5
32167echo "${ECHO_T}yes" >&6
32168
32169 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32170echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32171
0ad5d837
VZ
32172 ac_find_libraries=
32173 for ac_dir in $SEARCH_LIB;
a848cd7e 32174 do
3eca31dc 32175 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32176 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32177 ac_find_libraries=$ac_dir
32178 break 2
32179 fi
32180 done
32181 done
32182
32183 if test "$ac_find_libraries" != "" ; then
32184 echo "$as_me:$LINENO: result: yes" >&5
32185echo "${ECHO_T}yes" >&6
32186
32187for ac_header in X11/extensions/xf86vmode.h
32188do
32189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32190echo "$as_me:$LINENO: checking for $ac_header" >&5
32191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32192if eval "test \"\${$as_ac_Header+set}\" = set"; then
32193 echo $ECHO_N "(cached) $ECHO_C" >&6
32194else
32195 cat >conftest.$ac_ext <<_ACEOF
32196/* confdefs.h. */
32197_ACEOF
32198cat confdefs.h >>conftest.$ac_ext
32199cat >>conftest.$ac_ext <<_ACEOF
32200/* end confdefs.h. */
32201
32202 #if HAVE_X11_XLIB_H
32203 #include <X11/Xlib.h>
32204 #endif
32205
32206
32207#include <$ac_header>
32208_ACEOF
32209rm -f conftest.$ac_objext
32210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32211 (eval $ac_compile) 2>conftest.er1
a848cd7e 32212 ac_status=$?
ac1cb8d3
VS
32213 grep -v '^ *+' conftest.er1 >conftest.err
32214 rm -f conftest.er1
32215 cat conftest.err >&5
a848cd7e
SC
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); } &&
c9a66001 32218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32220 (eval $ac_try) 2>&5
32221 ac_status=$?
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223 (exit $ac_status); }; } &&
32224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32226 (eval $ac_try) 2>&5
32227 ac_status=$?
32228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229 (exit $ac_status); }; }; then
32230 eval "$as_ac_Header=yes"
32231else
32232 echo "$as_me: failed program was:" >&5
32233sed 's/^/| /' conftest.$ac_ext >&5
32234
32235eval "$as_ac_Header=no"
32236fi
ac1cb8d3 32237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32238fi
32239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32241if test `eval echo '${'$as_ac_Header'}'` = yes; then
32242 cat >>confdefs.h <<_ACEOF
32243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32244_ACEOF
32245
32246 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32247
32248fi
32249
32250done
32251
32252 else
32253 echo "$as_me:$LINENO: result: no" >&5
32254echo "${ECHO_T}no" >&6
32255 fi
32256
32257 else
32258 echo "$as_me:$LINENO: result: no" >&5
32259echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32260 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32261echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32262 wxUSE_DISPLAY="no"
32263 fi
01cb68df
RG
32264 elif test "$wxUSE_MSW" = 1; then
32265
e5efa97e 32266for ac_header in ddraw.h
01cb68df
RG
32267do
32268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32269echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32271if eval "test \"\${$as_ac_Header+set}\" = set"; then
32272 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32273else
5294a27e 32274 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32275/* confdefs.h. */
32276_ACEOF
32277cat confdefs.h >>conftest.$ac_ext
32278cat >>conftest.$ac_ext <<_ACEOF
32279/* end confdefs.h. */
5294a27e
VZ
32280#include <windows.h>
32281
01cb68df
RG
32282#include <$ac_header>
32283_ACEOF
32284rm -f conftest.$ac_objext
32285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32286 (eval $ac_compile) 2>conftest.er1
01cb68df 32287 ac_status=$?
ac1cb8d3
VS
32288 grep -v '^ *+' conftest.er1 >conftest.err
32289 rm -f conftest.er1
32290 cat conftest.err >&5
01cb68df
RG
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } &&
c9a66001 32293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32295 (eval $ac_try) 2>&5
32296 ac_status=$?
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); }; } &&
32299 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32301 (eval $ac_try) 2>&5
32302 ac_status=$?
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; }; then
5294a27e 32305 eval "$as_ac_Header=yes"
01cb68df
RG
32306else
32307 echo "$as_me: failed program was:" >&5
32308sed 's/^/| /' conftest.$ac_ext >&5
32309
5294a27e 32310eval "$as_ac_Header=no"
01cb68df 32311fi
ac1cb8d3 32312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32313fi
32314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32316if test `eval echo '${'$as_ac_Header'}'` = yes; then
32317 cat >>confdefs.h <<_ACEOF
32318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32319_ACEOF
32320
01cb68df
RG
32321fi
32322
32323done
32324
a848cd7e
SC
32325 fi
32326fi
32327
32328
32329USE_OPENGL=0
32330if test "$wxUSE_OPENGL" = "yes"; then
32331 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32332 OPENGL_LIBS="-framework OpenGL -framework AGL"
32333 elif test "$wxUSE_MSW" = 1; then
32334 OPENGL_LIBS="-lopengl32 -lglu32"
32335 else
32336
32337
32338ac_find_includes=
32339for ac_dir in $SEARCH_INCLUDE /usr/include;
32340 do
32341 if test -f "$ac_dir/GL/gl.h"; then
32342 ac_find_includes=$ac_dir
32343 break
32344 fi
32345 done
32346
32347 if test "$ac_find_includes" != "" ; then
32348 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32349echo "${ECHO_T}found in $ac_find_includes" >&6
32350
32351 if test "x$ac_find_includes" = "x/usr/include"; then
32352 ac_path_to_include=""
32353 else
32354 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32355 result=$?
32356 if test $result = 0; then
32357 ac_path_to_include=""
32358 else
32359 ac_path_to_include=" -I$ac_find_includes"
32360 fi
32361 fi
32362
c92ad099 32363 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32364 fi
32365
32366 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32367 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32368echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32369if test "${ac_cv_header_GL_gl_h+set}" = set; then
32370 echo $ECHO_N "(cached) $ECHO_C" >&6
32371fi
32372echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32373echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32374else
32375 # Is the header compilable?
32376echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32377echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32378cat >conftest.$ac_ext <<_ACEOF
32379/* confdefs.h. */
32380_ACEOF
32381cat confdefs.h >>conftest.$ac_ext
32382cat >>conftest.$ac_ext <<_ACEOF
32383/* end confdefs.h. */
32384$ac_includes_default
32385#include <GL/gl.h>
32386_ACEOF
32387rm -f conftest.$ac_objext
32388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32389 (eval $ac_compile) 2>conftest.er1
a848cd7e 32390 ac_status=$?
ac1cb8d3
VS
32391 grep -v '^ *+' conftest.er1 >conftest.err
32392 rm -f conftest.er1
32393 cat conftest.err >&5
a848cd7e
SC
32394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); } &&
c9a66001 32396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32399 ac_status=$?
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; } &&
32402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404 (eval $ac_try) 2>&5
32405 ac_status=$?
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; }; then
32408 ac_header_compiler=yes
32409else
32410 echo "$as_me: failed program was:" >&5
32411sed 's/^/| /' conftest.$ac_ext >&5
32412
32413ac_header_compiler=no
32414fi
ac1cb8d3 32415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32417echo "${ECHO_T}$ac_header_compiler" >&6
32418
32419# Is the header present?
32420echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32421echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32422cat >conftest.$ac_ext <<_ACEOF
32423/* confdefs.h. */
32424_ACEOF
32425cat confdefs.h >>conftest.$ac_ext
32426cat >>conftest.$ac_ext <<_ACEOF
32427/* end confdefs.h. */
32428#include <GL/gl.h>
32429_ACEOF
32430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32432 ac_status=$?
32433 grep -v '^ *+' conftest.er1 >conftest.err
32434 rm -f conftest.er1
32435 cat conftest.err >&5
32436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437 (exit $ac_status); } >/dev/null; then
32438 if test -s conftest.err; then
5d7b7554
VZ
32439 ac_cpp_err=$ac_cxx_preproc_warn_flag
32440 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32441 else
32442 ac_cpp_err=
32443 fi
32444else
32445 ac_cpp_err=yes
32446fi
32447if test -z "$ac_cpp_err"; then
32448 ac_header_preproc=yes
32449else
32450 echo "$as_me: failed program was:" >&5
32451sed 's/^/| /' conftest.$ac_ext >&5
32452
32453 ac_header_preproc=no
32454fi
32455rm -f conftest.err conftest.$ac_ext
32456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32457echo "${ECHO_T}$ac_header_preproc" >&6
32458
32459# So? What about this header?
5d7b7554 32460case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32461 yes:no: )
a848cd7e
SC
32462 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32463echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32464 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32465echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32466 ac_header_preproc=yes
a848cd7e 32467 ;;
ac1cb8d3 32468 no:yes:* )
a848cd7e
SC
32469 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32470echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32471 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32472echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32473 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32474echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32475 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32476echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32477 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32478echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32479 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32480echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32481 (
32482 cat <<\_ASBOX
ac1cb8d3
VS
32483## ----------------------------------------- ##
32484## Report this to wx-dev@lists.wxwidgets.org ##
32485## ----------------------------------------- ##
a848cd7e
SC
32486_ASBOX
32487 ) |
32488 sed "s/^/$as_me: WARNING: /" >&2
32489 ;;
32490esac
32491echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32492echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32493if test "${ac_cv_header_GL_gl_h+set}" = set; then
32494 echo $ECHO_N "(cached) $ECHO_C" >&6
32495else
32496 ac_cv_header_GL_gl_h=$ac_header_preproc
32497fi
32498echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32499echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32500
32501fi
32502if test $ac_cv_header_GL_gl_h = yes; then
32503
32504 found_gl=0
32505
32506 echo "$as_me:$LINENO: checking for -lGL" >&5
32507echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32508
0ad5d837
VZ
32509 ac_find_libraries=
32510 for ac_dir in $SEARCH_LIB;
a848cd7e 32511 do
3eca31dc 32512 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32513 if test -f "$ac_dir/libGL.$ac_extension"; then
32514 ac_find_libraries=$ac_dir
32515 break 2
32516 fi
32517 done
32518 done
32519
32520 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32521 echo "$as_me:$LINENO: result: yes" >&5
32522echo "${ECHO_T}yes" >&6
32523
a848cd7e 32524
0ad5d837 32525 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32526 ac_path_to_link=""
32527 else
0ad5d837
VZ
32528 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32529 result=$?
32530 if test $result = 0; then
32531 ac_path_to_link=""
32532 else
32533 ac_path_to_link=" -L$ac_find_libraries"
32534 fi
a848cd7e
SC
32535 fi
32536
32537 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32538 LDFLAGS_GL="$ac_path_to_link"
32539 fi
32540
69120ee4
VZ
32541 echo "$as_me:$LINENO: checking for -lGLU" >&5
32542echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32543
0ad5d837
VZ
32544 ac_find_libraries=
32545 for ac_dir in $SEARCH_LIB;
32546 do
32547 for ac_extension in a so sl dylib dll.a; do
32548 if test -f "$ac_dir/libGLU.$ac_extension"; then
32549 ac_find_libraries=$ac_dir
32550 break 2
32551 fi
32552 done
32553 done
32554
a848cd7e
SC
32555 if test "$ac_find_libraries" != "" ; then
32556
0ad5d837 32557 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32558 ac_path_to_link=""
32559 else
0ad5d837
VZ
32560 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32561 result=$?
32562 if test $result = 0; then
32563 ac_path_to_link=""
32564 else
32565 ac_path_to_link=" -L$ac_find_libraries"
32566 fi
a848cd7e
SC
32567 fi
32568
32569 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32570 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32571 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32572 fi
32573
32574 found_gl=1
32575 OPENGL_LIBS="-lGL -lGLU"
32576 echo "$as_me:$LINENO: result: yes" >&5
32577echo "${ECHO_T}yes" >&6
69120ee4
VZ
32578 else
32579 echo "$as_me:$LINENO: result: no" >&5
32580echo "${ECHO_T}no" >&6
a848cd7e 32581 fi
69120ee4
VZ
32582 else
32583 echo "$as_me:$LINENO: result: no" >&5
32584echo "${ECHO_T}no" >&6
a848cd7e
SC
32585 fi
32586
32587 if test "$found_gl" != 1; then
a848cd7e
SC
32588 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32589echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32590
0ad5d837
VZ
32591 ac_find_libraries=
32592 for ac_dir in $SEARCH_LIB;
a848cd7e 32593 do
3eca31dc 32594 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32595 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32596 ac_find_libraries=$ac_dir
32597 break 2
32598 fi
32599 done
32600 done
32601
32602 if test "$ac_find_libraries" != "" ; then
32603
0ad5d837 32604 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32605 ac_path_to_link=""
32606 else
0ad5d837
VZ
32607 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32608 result=$?
32609 if test $result = 0; then
32610 ac_path_to_link=""
32611 else
32612 ac_path_to_link=" -L$ac_find_libraries"
32613 fi
a848cd7e
SC
32614 fi
32615
32616 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32617 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32618 echo "$as_me:$LINENO: result: yes" >&5
32619echo "${ECHO_T}yes" >&6
32620 else
32621 echo "$as_me:$LINENO: result: no" >&5
32622echo "${ECHO_T}no" >&6
32623 fi
32624 fi
32625
32626fi
32627
32628
32629
32630 if test "x$OPENGL_LIBS" = "x"; then
32631 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32632echo "$as_me: error: OpenGL libraries not available" >&2;}
32633 { (exit 1); exit 1; }; }
32634 fi
32635 fi
32636
32637 if test "$wxUSE_OPENGL" = "yes"; then
32638 USE_OPENGL=1
32639 cat >>confdefs.h <<\_ACEOF
32640#define wxUSE_OPENGL 1
32641_ACEOF
32642
32643 cat >>confdefs.h <<\_ACEOF
32644#define wxUSE_GLCANVAS 1
32645_ACEOF
32646
32647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32648 fi
32649fi
32650
a848cd7e
SC
32651
32652if test -n "$TOOLKIT" ; then
32653 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32654fi
32655
a848cd7e
SC
32656
32657
32658if test "$wxUSE_SHARED" = "yes"; then
32659 case "${host}" in
32660 *-pc-msdosdjgpp )
32661 wxUSE_SHARED=no
32662 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32663echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32664 ;;
32665 esac
32666fi
32667
a848cd7e 32668if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32669
32670
32671 found_versioning=no
32672
32673
32674 if test $found_versioning = no ; then
32675 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32676echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32677if test "${wx_cv_version_script+set}" = set; then
32678 echo $ECHO_N "(cached) $ECHO_C" >&6
32679else
32680
32681 echo "VER_1 { *; };" >conftest.sym
32682 echo "int main() { return 0; }" >conftest.cpp
32683
32684 if { ac_try='
32685 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32686 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688 (eval $ac_try) 2>&5
32689 ac_status=$?
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; } ; then
32692 if test -s conftest.stderr ; then
32693 wx_cv_version_script=no
32694 else
32695 wx_cv_version_script=yes
32696 fi
32697 else
32698 wx_cv_version_script=no
32699 fi
e5d4b470
MW
32700
32701 if test $wx_cv_version_script = yes
32702 then
32703 echo "struct B { virtual ~B() { } }; \
32704 struct D : public B { }; \
32705 void F() { D d; }" > conftest.cpp
32706
32707 if { ac_try='
32708 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32709 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32711 (eval $ac_try) 2>&5
32712 ac_status=$?
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); }; } &&
32715 { ac_try='
32716 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32717 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32719 (eval $ac_try) 2>&5
32720 ac_status=$?
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); }; }
32723 then
32724 if { ac_try='
32725 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32726 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32728 (eval $ac_try) 2>&5
32729 ac_status=$?
32730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); }; }
32732 then
32733 wx_cv_version_script=yes
32734 else
32735 wx_cv_version_script=no
32736 fi
32737 fi
32738 fi
32739
a848cd7e 32740 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32741 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32742
32743fi
32744echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32745echo "${ECHO_T}$wx_cv_version_script" >&6
32746 if test $wx_cv_version_script = yes ; then
32747 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32748 fi
32749 fi
32750
32751
32752 case "${host}" in
32753 *-*-linux* | *-*-gnu* )
32754 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32755 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32756 ;;
a848cd7e
SC
32757
32758 *-*-solaris2* )
32759 if test "$GCC" = yes ; then
c92ad099 32760 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32761
32762 saveLdflags="$LDFLAGS"
32763 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32764 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32765echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32766 cat >conftest.$ac_ext <<_ACEOF
32767/* confdefs.h. */
32768_ACEOF
32769cat confdefs.h >>conftest.$ac_ext
32770cat >>conftest.$ac_ext <<_ACEOF
32771/* end confdefs.h. */
32772
32773int
32774main ()
32775{
32776
32777 ;
32778 return 0;
32779}
32780_ACEOF
32781rm -f conftest.$ac_objext conftest$ac_exeext
32782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32783 (eval $ac_link) 2>conftest.er1
a848cd7e 32784 ac_status=$?
ac1cb8d3
VS
32785 grep -v '^ *+' conftest.er1 >conftest.err
32786 rm -f conftest.er1
32787 cat conftest.err >&5
a848cd7e
SC
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); } &&
c9a66001 32790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32792 (eval $ac_try) 2>&5
32793 ac_status=$?
32794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795 (exit $ac_status); }; } &&
32796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32798 (eval $ac_try) 2>&5
32799 ac_status=$?
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; }; then
32802
32803 echo "$as_me:$LINENO: result: yes" >&5
32804echo "${ECHO_T}yes" >&6
32805 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32806 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32807
32808else
32809 echo "$as_me: failed program was:" >&5
32810sed 's/^/| /' conftest.$ac_ext >&5
32811
32812
32813 echo "$as_me:$LINENO: result: no" >&5
32814echo "${ECHO_T}no" >&6
32815 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32816echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32817 LDFLAGS="$saveLdflags -Wl,-R,/"
32818 cat >conftest.$ac_ext <<_ACEOF
32819/* confdefs.h. */
32820_ACEOF
32821cat confdefs.h >>conftest.$ac_ext
32822cat >>conftest.$ac_ext <<_ACEOF
32823/* end confdefs.h. */
32824
32825int
32826main ()
32827{
32828
32829 ;
32830 return 0;
32831}
32832_ACEOF
32833rm -f conftest.$ac_objext conftest$ac_exeext
32834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32835 (eval $ac_link) 2>conftest.er1
a848cd7e 32836 ac_status=$?
ac1cb8d3
VS
32837 grep -v '^ *+' conftest.er1 >conftest.err
32838 rm -f conftest.er1
32839 cat conftest.err >&5
a848cd7e
SC
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); } &&
c9a66001 32842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844 (eval $ac_try) 2>&5
32845 ac_status=$?
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); }; } &&
32848 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32850 (eval $ac_try) 2>&5
32851 ac_status=$?
32852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32853 (exit $ac_status); }; }; then
32854
ffa0583f 32855 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32856echo "${ECHO_T}yes" >&6
ffa0583f
RL
32857 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32858 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32859
a848cd7e
SC
32860else
32861 echo "$as_me: failed program was:" >&5
32862sed 's/^/| /' conftest.$ac_ext >&5
32863
32864
32865 echo "$as_me:$LINENO: result: no" >&5
32866echo "${ECHO_T}no" >&6
32867
32868fi
ac1cb8d3
VS
32869rm -f conftest.err conftest.$ac_objext \
32870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32871
32872fi
ac1cb8d3
VS
32873rm -f conftest.err conftest.$ac_objext \
32874 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32875 LDFLAGS="$saveLdflags"
32876 else
a848cd7e 32877 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32878 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32879 fi
32880 ;;
32881
cfda0ea8 32882 *-*-darwin* )
0caebc27
MW
32883 install_name_tool=`which install_name_tool`
32884 if test "$install_name_tool" -a -x "$install_name_tool"; then
32885 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32886 cat <<EOF >change-install-names
a848cd7e
SC
32887#!/bin/sh
32888libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32889inst_cmd="install_name_tool "
32890for i in \${libnames} ; do
32891 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32892done
32893\${inst_cmd} \${3}
32894EOF
0caebc27
MW
32895 chmod +x change-install-names
32896 fi
a848cd7e
SC
32897 ;;
32898
32899 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32900 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32901 ;;
a848cd7e 32902
81f90336
MW
32903 *-*-hpux* )
32904 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32905 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32906 ;;
81f90336 32907
a848cd7e 32908 esac
ceec2216 32909
ffa0583f
RL
32910 if test $wxUSE_RPATH = "no"; then
32911 SAMPLES_RPATH_FLAG=''
32912 SAMPLES_RPATH_POSTLINK=''
32913 WXCONFIG_RPATH=''
32914 fi
32915
32916 SHARED=1
32917
32918else
32919
ceec2216
RL
32920 config_linkage_component="-static"
32921 SHARED=0
ffa0583f 32922
ceec2216 32923fi
a848cd7e 32924
a848cd7e 32925
ceec2216
RL
32926UNICODE=0
32927lib_unicode_suffix=
32928WX_CHARTYPE="ansi"
32929if test "$wxUSE_UNICODE" = "yes"; then
32930 lib_unicode_suffix=u
32931 WX_CHARTYPE="unicode"
32932 UNICODE=1
a848cd7e
SC
32933fi
32934
ceec2216
RL
32935lib_debug_suffix=
32936WX_DEBUGTYPE="release"
32937DEBUG_FLAG=0
32938if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32939 lib_debug_suffix=d
32940 WX_DEBUGTYPE="debug"
32941 DEBUG_FLAG=1
32942fi
a848cd7e 32943
ceec2216
RL
32944WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32945WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32946
ceec2216
RL
32947DEBUG_INFO=0
32948if test "$wxUSE_DEBUG_INFO" = "yes"; then
32949 DEBUG_INFO=1
32950fi
a848cd7e 32951
ceec2216 32952WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32953
ceec2216 32954TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32955
ceec2216 32956TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32957
ceec2216
RL
32958if test "$cross_compiling" = "yes"; then
32959 HOST_SUFFIX="-$host_alias"
32960 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32961 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32962fi
32963
dd21ced8 32964WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32965if test "${TOOLKIT_DIR}" = "os2"; then
32966 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32967else
32968 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32969fi
ceec2216
RL
32970
32971
32972
1d1af5ea
DE
32973if test "$wxUSE_COCOA" = 1; then
32974
32975
32976 ac_ext=c
32977ac_cpp='$CPP $CPPFLAGS'
32978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32980ac_compiler_gnu=$ac_cv_c_compiler_gnu
32981
32982ac_ext=m
32983
32984 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32985echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32986 cat >conftest.$ac_ext <<_ACEOF
32987/* confdefs.h. */
32988_ACEOF
32989cat confdefs.h >>conftest.$ac_ext
32990cat >>conftest.$ac_ext <<_ACEOF
32991/* end confdefs.h. */
32992#include <AppKit/NSEvent.h>
32993#include <CoreFoundation/CoreFoundation.h>
32994
32995int
32996main ()
32997{
32998
32999 ;
33000 return 0;
33001}
33002_ACEOF
33003rm -f conftest.$ac_objext
33004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33005 (eval $ac_compile) 2>conftest.er1
33006 ac_status=$?
33007 grep -v '^ *+' conftest.er1 >conftest.err
33008 rm -f conftest.er1
33009 cat conftest.err >&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } &&
c9a66001 33012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014 (eval $ac_try) 2>&5
33015 ac_status=$?
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); }; } &&
33018 { ac_try='test -s conftest.$ac_objext'
33019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33020 (eval $ac_try) 2>&5
33021 ac_status=$?
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023 (exit $ac_status); }; }; then
33024 echo "$as_me:$LINENO: result: no" >&5
33025echo "${ECHO_T}no" >&6
33026else
33027 echo "$as_me: failed program was:" >&5
33028sed 's/^/| /' conftest.$ac_ext >&5
33029
33030echo "$as_me:$LINENO: result: yes" >&5
33031echo "${ECHO_T}yes" >&6
33032 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33033echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33034 cat >conftest.$ac_ext <<_ACEOF
33035/* confdefs.h. */
33036_ACEOF
33037cat confdefs.h >>conftest.$ac_ext
33038cat >>conftest.$ac_ext <<_ACEOF
33039/* end confdefs.h. */
33040#define __Point__ 1
33041#include <AppKit/NSEvent.h>
33042#include <CoreFoundation/CoreFoundation.h>
33043
33044int
33045main ()
33046{
33047
33048 ;
33049 return 0;
33050}
33051_ACEOF
33052rm -f conftest.$ac_objext
33053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33054 (eval $ac_compile) 2>conftest.er1
33055 ac_status=$?
33056 grep -v '^ *+' conftest.er1 >conftest.err
33057 rm -f conftest.er1
33058 cat conftest.err >&5
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); } &&
c9a66001 33061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33063 (eval $ac_try) 2>&5
33064 ac_status=$?
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); }; } &&
33067 { ac_try='test -s conftest.$ac_objext'
33068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33069 (eval $ac_try) 2>&5
33070 ac_status=$?
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); }; }; then
33073 echo "$as_me:$LINENO: result: yes" >&5
33074echo "${ECHO_T}yes" >&6
33075 cat >>confdefs.h <<\_ACEOF
33076#define __Point__ 1
33077_ACEOF
33078
33079
33080else
33081 echo "$as_me: failed program was:" >&5
33082sed 's/^/| /' conftest.$ac_ext >&5
33083
33084{ { echo "$as_me:$LINENO: error: no
33085See \`config.log' for more details." >&5
33086echo "$as_me: error: no
33087See \`config.log' for more details." >&2;}
33088 { (exit 1); exit 1; }; }
33089
33090fi
33091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33092
33093fi
33094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33095 ac_ext=cc
33096ac_cpp='$CXXCPP $CPPFLAGS'
33097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33100
33101fi
33102
a848cd7e 33103if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33104 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33105 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33106
a848cd7e 33107 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33108
33109 # Extract the first word of "Rez", so it can be a program name with args.
33110set dummy Rez; ac_word=$2
33111echo "$as_me:$LINENO: checking for $ac_word" >&5
33112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33113if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33114 echo $ECHO_N "(cached) $ECHO_C" >&6
33115else
8ced02f6
DE
33116 if test -n "$REZ"; then
33117 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33118else
33119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33120for as_dir in $PATH
33121do
33122 IFS=$as_save_IFS
33123 test -z "$as_dir" && as_dir=.
33124 for ac_exec_ext in '' $ac_executable_extensions; do
33125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33126 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33128 break 2
33129 fi
33130done
33131done
33132
8ced02f6 33133 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33134fi
33135fi
8ced02f6
DE
33136REZ=$ac_cv_prog_REZ
33137if test -n "$REZ"; then
33138 echo "$as_me:$LINENO: result: $REZ" >&5
33139echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33140else
33141 echo "$as_me:$LINENO: result: no" >&5
33142echo "${ECHO_T}no" >&6
33143fi
33144
33145 # Extract the first word of "DeRez", so it can be a program name with args.
33146set dummy DeRez; ac_word=$2
33147echo "$as_me:$LINENO: checking for $ac_word" >&5
33148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33149if test "${ac_cv_prog_DEREZ+set}" = set; then
33150 echo $ECHO_N "(cached) $ECHO_C" >&6
33151else
33152 if test -n "$DEREZ"; then
33153 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33154else
33155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33156for as_dir in $PATH
33157do
33158 IFS=$as_save_IFS
33159 test -z "$as_dir" && as_dir=.
33160 for ac_exec_ext in '' $ac_executable_extensions; do
33161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33162 ac_cv_prog_DEREZ="DeRez"
33163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33164 break 2
33165 fi
33166done
33167done
33168
33169 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33170fi
33171fi
33172DEREZ=$ac_cv_prog_DEREZ
33173if test -n "$DEREZ"; then
33174 echo "$as_me:$LINENO: result: $DEREZ" >&5
33175echo "${ECHO_T}$DEREZ" >&6
33176else
33177 echo "$as_me:$LINENO: result: no" >&5
33178echo "${ECHO_T}no" >&6
33179fi
33180
33181 # Extract the first word of "SetFile", so it can be a program name with args.
33182set dummy SetFile; ac_word=$2
33183echo "$as_me:$LINENO: checking for $ac_word" >&5
33184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33185if test "${ac_cv_prog_SETFILE+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33187else
33188 if test -n "$SETFILE"; then
33189 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33190else
33191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33192for as_dir in $PATH
33193do
33194 IFS=$as_save_IFS
33195 test -z "$as_dir" && as_dir=.
33196 for ac_exec_ext in '' $ac_executable_extensions; do
33197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33198 ac_cv_prog_SETFILE="SetFile"
33199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33200 break 2
33201 fi
33202done
33203done
33204
33205 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33206fi
33207fi
33208SETFILE=$ac_cv_prog_SETFILE
33209if test -n "$SETFILE"; then
33210 echo "$as_me:$LINENO: result: $SETFILE" >&5
33211echo "${ECHO_T}$SETFILE" >&6
33212else
33213 echo "$as_me:$LINENO: result: no" >&5
33214echo "${ECHO_T}no" >&6
33215fi
33216
33217
33218 MACSETFILE="\$(SETFILE)"
33219
33220 if test "$wxUSE_MAC" = 1; then
8ced02f6 33221 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33222 RESCOMP="$REZ"
33223 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33224 else
004ee6da
RL
33225 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33226 RESCOMP="echo -n \| $REZ"
33227 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33228 fi
004ee6da 33229
a848cd7e 33230else
ffa0583f 33231 MACSETFILE="@true"
a848cd7e 33232
8ced02f6 33233 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33234 RESCOMP="emxbind"
33235 WXCONFIG_RESFLAGS="-ep"
33236
33237 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33238 else
8ced02f6 33239 POSTLINK_COMMAND="@true"
a848cd7e 33240 fi
004ee6da 33241
a848cd7e
SC
33242fi
33243
33244
33245
33246echo "$as_me:$LINENO: checking for mode_t" >&5
33247echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33248if test "${ac_cv_type_mode_t+set}" = set; then
33249 echo $ECHO_N "(cached) $ECHO_C" >&6
33250else
33251 cat >conftest.$ac_ext <<_ACEOF
33252/* confdefs.h. */
33253_ACEOF
33254cat confdefs.h >>conftest.$ac_ext
33255cat >>conftest.$ac_ext <<_ACEOF
33256/* end confdefs.h. */
33257$ac_includes_default
33258int
33259main ()
33260{
33261if ((mode_t *) 0)
33262 return 0;
33263if (sizeof (mode_t))
33264 return 0;
33265 ;
33266 return 0;
33267}
33268_ACEOF
33269rm -f conftest.$ac_objext
33270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33271 (eval $ac_compile) 2>conftest.er1
a848cd7e 33272 ac_status=$?
ac1cb8d3
VS
33273 grep -v '^ *+' conftest.er1 >conftest.err
33274 rm -f conftest.er1
33275 cat conftest.err >&5
a848cd7e
SC
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277 (exit $ac_status); } &&
c9a66001 33278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33280 (eval $ac_try) 2>&5
33281 ac_status=$?
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; } &&
33284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33286 (eval $ac_try) 2>&5
33287 ac_status=$?
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); }; }; then
33290 ac_cv_type_mode_t=yes
33291else
33292 echo "$as_me: failed program was:" >&5
33293sed 's/^/| /' conftest.$ac_ext >&5
33294
33295ac_cv_type_mode_t=no
33296fi
ac1cb8d3 33297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33298fi
33299echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33300echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33301if test $ac_cv_type_mode_t = yes; then
33302 :
33303else
33304
33305cat >>confdefs.h <<_ACEOF
33306#define mode_t int
33307_ACEOF
33308
33309fi
33310
33311echo "$as_me:$LINENO: checking for off_t" >&5
33312echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33313if test "${ac_cv_type_off_t+set}" = set; then
33314 echo $ECHO_N "(cached) $ECHO_C" >&6
33315else
33316 cat >conftest.$ac_ext <<_ACEOF
33317/* confdefs.h. */
33318_ACEOF
33319cat confdefs.h >>conftest.$ac_ext
33320cat >>conftest.$ac_ext <<_ACEOF
33321/* end confdefs.h. */
33322$ac_includes_default
33323int
33324main ()
33325{
33326if ((off_t *) 0)
33327 return 0;
33328if (sizeof (off_t))
33329 return 0;
33330 ;
33331 return 0;
33332}
33333_ACEOF
33334rm -f conftest.$ac_objext
33335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33336 (eval $ac_compile) 2>conftest.er1
a848cd7e 33337 ac_status=$?
ac1cb8d3
VS
33338 grep -v '^ *+' conftest.er1 >conftest.err
33339 rm -f conftest.er1
33340 cat conftest.err >&5
a848cd7e
SC
33341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342 (exit $ac_status); } &&
c9a66001 33343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33345 (eval $ac_try) 2>&5
33346 ac_status=$?
33347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348 (exit $ac_status); }; } &&
33349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33351 (eval $ac_try) 2>&5
33352 ac_status=$?
33353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354 (exit $ac_status); }; }; then
33355 ac_cv_type_off_t=yes
33356else
33357 echo "$as_me: failed program was:" >&5
33358sed 's/^/| /' conftest.$ac_ext >&5
33359
33360ac_cv_type_off_t=no
33361fi
ac1cb8d3 33362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33363fi
33364echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33365echo "${ECHO_T}$ac_cv_type_off_t" >&6
33366if test $ac_cv_type_off_t = yes; then
33367 :
33368else
33369
33370cat >>confdefs.h <<_ACEOF
33371#define off_t long
33372_ACEOF
33373
33374fi
33375
33376echo "$as_me:$LINENO: checking for pid_t" >&5
33377echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33378if test "${ac_cv_type_pid_t+set}" = set; then
33379 echo $ECHO_N "(cached) $ECHO_C" >&6
33380else
33381 cat >conftest.$ac_ext <<_ACEOF
33382/* confdefs.h. */
33383_ACEOF
33384cat confdefs.h >>conftest.$ac_ext
33385cat >>conftest.$ac_ext <<_ACEOF
33386/* end confdefs.h. */
33387$ac_includes_default
33388int
33389main ()
33390{
33391if ((pid_t *) 0)
33392 return 0;
33393if (sizeof (pid_t))
33394 return 0;
33395 ;
33396 return 0;
33397}
33398_ACEOF
33399rm -f conftest.$ac_objext
33400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33401 (eval $ac_compile) 2>conftest.er1
a848cd7e 33402 ac_status=$?
ac1cb8d3
VS
33403 grep -v '^ *+' conftest.er1 >conftest.err
33404 rm -f conftest.er1
33405 cat conftest.err >&5
a848cd7e
SC
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); } &&
c9a66001 33408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33410 (eval $ac_try) 2>&5
33411 ac_status=$?
33412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413 (exit $ac_status); }; } &&
33414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33416 (eval $ac_try) 2>&5
33417 ac_status=$?
33418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); }; }; then
33420 ac_cv_type_pid_t=yes
33421else
33422 echo "$as_me: failed program was:" >&5
33423sed 's/^/| /' conftest.$ac_ext >&5
33424
33425ac_cv_type_pid_t=no
33426fi
ac1cb8d3 33427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33428fi
33429echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33430echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33431if test $ac_cv_type_pid_t = yes; then
33432 :
33433else
33434
33435cat >>confdefs.h <<_ACEOF
33436#define pid_t int
33437_ACEOF
33438
33439fi
33440
33441echo "$as_me:$LINENO: checking for size_t" >&5
33442echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33443if test "${ac_cv_type_size_t+set}" = set; then
33444 echo $ECHO_N "(cached) $ECHO_C" >&6
33445else
33446 cat >conftest.$ac_ext <<_ACEOF
33447/* confdefs.h. */
33448_ACEOF
33449cat confdefs.h >>conftest.$ac_ext
33450cat >>conftest.$ac_ext <<_ACEOF
33451/* end confdefs.h. */
33452$ac_includes_default
33453int
33454main ()
33455{
33456if ((size_t *) 0)
33457 return 0;
33458if (sizeof (size_t))
33459 return 0;
33460 ;
33461 return 0;
33462}
33463_ACEOF
33464rm -f conftest.$ac_objext
33465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33466 (eval $ac_compile) 2>conftest.er1
a848cd7e 33467 ac_status=$?
ac1cb8d3
VS
33468 grep -v '^ *+' conftest.er1 >conftest.err
33469 rm -f conftest.er1
33470 cat conftest.err >&5
a848cd7e
SC
33471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33472 (exit $ac_status); } &&
c9a66001 33473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33475 (eval $ac_try) 2>&5
33476 ac_status=$?
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); }; } &&
33479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33481 (eval $ac_try) 2>&5
33482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; }; then
33485 ac_cv_type_size_t=yes
33486else
33487 echo "$as_me: failed program was:" >&5
33488sed 's/^/| /' conftest.$ac_ext >&5
33489
33490ac_cv_type_size_t=no
33491fi
ac1cb8d3 33492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33493fi
33494echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33495echo "${ECHO_T}$ac_cv_type_size_t" >&6
33496if test $ac_cv_type_size_t = yes; then
33497 :
33498else
33499
33500cat >>confdefs.h <<_ACEOF
33501#define size_t unsigned
33502_ACEOF
33503
33504fi
33505
33506echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33507echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33508if test "${ac_cv_type_uid_t+set}" = set; then
33509 echo $ECHO_N "(cached) $ECHO_C" >&6
33510else
33511 cat >conftest.$ac_ext <<_ACEOF
33512/* confdefs.h. */
33513_ACEOF
33514cat confdefs.h >>conftest.$ac_ext
33515cat >>conftest.$ac_ext <<_ACEOF
33516/* end confdefs.h. */
33517#include <sys/types.h>
33518
33519_ACEOF
33520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33521 $EGREP "uid_t" >/dev/null 2>&1; then
33522 ac_cv_type_uid_t=yes
33523else
33524 ac_cv_type_uid_t=no
33525fi
33526rm -f conftest*
33527
33528fi
33529echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33530echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33531if test $ac_cv_type_uid_t = no; then
33532
33533cat >>confdefs.h <<\_ACEOF
33534#define uid_t int
33535_ACEOF
33536
33537
33538cat >>confdefs.h <<\_ACEOF
33539#define gid_t int
33540_ACEOF
33541
33542fi
33543
33544
d51253e8
RL
33545echo "$as_me:$LINENO: checking for ssize_t" >&5
33546echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33547if test "${ac_cv_type_ssize_t+set}" = set; then
33548 echo $ECHO_N "(cached) $ECHO_C" >&6
33549else
33550 cat >conftest.$ac_ext <<_ACEOF
33551/* confdefs.h. */
33552_ACEOF
33553cat confdefs.h >>conftest.$ac_ext
33554cat >>conftest.$ac_ext <<_ACEOF
33555/* end confdefs.h. */
33556$ac_includes_default
33557int
33558main ()
33559{
33560if ((ssize_t *) 0)
33561 return 0;
33562if (sizeof (ssize_t))
33563 return 0;
33564 ;
33565 return 0;
33566}
33567_ACEOF
33568rm -f conftest.$ac_objext
33569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33570 (eval $ac_compile) 2>conftest.er1
33571 ac_status=$?
33572 grep -v '^ *+' conftest.er1 >conftest.err
33573 rm -f conftest.er1
33574 cat conftest.err >&5
33575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576 (exit $ac_status); } &&
c9a66001 33577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
33578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33579 (eval $ac_try) 2>&5
33580 ac_status=$?
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); }; } &&
33583 { ac_try='test -s conftest.$ac_objext'
33584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585 (eval $ac_try) 2>&5
33586 ac_status=$?
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); }; }; then
33589 ac_cv_type_ssize_t=yes
33590else
33591 echo "$as_me: failed program was:" >&5
33592sed 's/^/| /' conftest.$ac_ext >&5
33593
33594ac_cv_type_ssize_t=no
33595fi
33596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33597fi
33598echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33599echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33600if test $ac_cv_type_ssize_t = yes; then
33601
33602cat >>confdefs.h <<_ACEOF
33603#define HAVE_SSIZE_T 1
33604_ACEOF
33605
33606
33607fi
33608
33609
a848cd7e
SC
33610echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33611echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33612if test "${wx_cv_size_t_is_uint+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33614else
33615
33616 cat >conftest.$ac_ext <<_ACEOF
33617/* confdefs.h. */
33618_ACEOF
33619cat confdefs.h >>conftest.$ac_ext
33620cat >>conftest.$ac_ext <<_ACEOF
33621/* end confdefs.h. */
33622#include <stddef.h>
33623int
33624main ()
33625{
33626
33627 return 0; }
33628
33629 struct Foo { void foo(size_t); void foo(unsigned int); };
33630
33631 int bar() {
33632
33633 ;
33634 return 0;
33635}
33636_ACEOF
33637rm -f conftest.$ac_objext
33638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33639 (eval $ac_compile) 2>conftest.er1
a848cd7e 33640 ac_status=$?
ac1cb8d3
VS
33641 grep -v '^ *+' conftest.er1 >conftest.err
33642 rm -f conftest.er1
33643 cat conftest.err >&5
a848cd7e
SC
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); } &&
c9a66001 33646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33648 (eval $ac_try) 2>&5
33649 ac_status=$?
33650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); }; } &&
33652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33654 (eval $ac_try) 2>&5
33655 ac_status=$?
33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657 (exit $ac_status); }; }; then
33658 wx_cv_size_t_is_uint=no
33659else
33660 echo "$as_me: failed program was:" >&5
33661sed 's/^/| /' conftest.$ac_ext >&5
33662
33663wx_cv_size_t_is_uint=yes
33664
33665fi
ac1cb8d3 33666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33667
33668
33669fi
33670echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33671echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33672
33673if test "$wx_cv_size_t_is_uint" = "yes"; then
33674 cat >>confdefs.h <<\_ACEOF
33675#define wxSIZE_T_IS_UINT 1
33676_ACEOF
33677
33678else
33679 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33680echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33681if test "${wx_cv_size_t_is_ulong+set}" = set; then
33682 echo $ECHO_N "(cached) $ECHO_C" >&6
33683else
33684 cat >conftest.$ac_ext <<_ACEOF
33685/* confdefs.h. */
33686_ACEOF
33687cat confdefs.h >>conftest.$ac_ext
33688cat >>conftest.$ac_ext <<_ACEOF
33689/* end confdefs.h. */
33690#include <stddef.h>
33691int
33692main ()
33693{
33694
33695 return 0; }
33696
33697 struct Foo { void foo(size_t); void foo(unsigned long); };
33698
33699 int bar() {
33700
33701 ;
33702 return 0;
33703}
33704_ACEOF
33705rm -f conftest.$ac_objext
33706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33707 (eval $ac_compile) 2>conftest.er1
a848cd7e 33708 ac_status=$?
ac1cb8d3
VS
33709 grep -v '^ *+' conftest.er1 >conftest.err
33710 rm -f conftest.er1
33711 cat conftest.err >&5
a848cd7e
SC
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); } &&
c9a66001 33714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33717 ac_status=$?
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; } &&
33720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722 (eval $ac_try) 2>&5
33723 ac_status=$?
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); }; }; then
33726 wx_cv_size_t_is_ulong=no
33727else
33728 echo "$as_me: failed program was:" >&5
33729sed 's/^/| /' conftest.$ac_ext >&5
33730
33731wx_cv_size_t_is_ulong=yes
33732
33733fi
ac1cb8d3 33734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33735
33736fi
33737echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33738echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33739
33740 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33741 cat >>confdefs.h <<\_ACEOF
33742#define wxSIZE_T_IS_ULONG 1
33743_ACEOF
33744
33745 fi
33746fi
33747
a848cd7e
SC
33748
33749echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33750echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33751if test "${wx_cv_struct_pw_gecos+set}" = set; then
33752 echo $ECHO_N "(cached) $ECHO_C" >&6
33753else
33754
33755 cat >conftest.$ac_ext <<_ACEOF
33756/* confdefs.h. */
33757_ACEOF
33758cat confdefs.h >>conftest.$ac_ext
33759cat >>conftest.$ac_ext <<_ACEOF
33760/* end confdefs.h. */
33761#include <pwd.h>
33762int
33763main ()
33764{
33765
33766 char *p;
33767 struct passwd *pw;
33768 p = pw->pw_gecos;
33769
33770 ;
33771 return 0;
33772}
33773_ACEOF
33774rm -f conftest.$ac_objext
33775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33776 (eval $ac_compile) 2>conftest.er1
a848cd7e 33777 ac_status=$?
ac1cb8d3
VS
33778 grep -v '^ *+' conftest.er1 >conftest.err
33779 rm -f conftest.er1
33780 cat conftest.err >&5
a848cd7e
SC
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); } &&
c9a66001 33783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33785 (eval $ac_try) 2>&5
33786 ac_status=$?
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); }; } &&
33789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791 (eval $ac_try) 2>&5
33792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; }; then
33795
33796 wx_cv_struct_pw_gecos=yes
33797
33798else
33799 echo "$as_me: failed program was:" >&5
33800sed 's/^/| /' conftest.$ac_ext >&5
33801
33802
33803 wx_cv_struct_pw_gecos=no
33804
33805
33806fi
ac1cb8d3 33807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33808
33809
33810fi
33811echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33812echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33813
33814if test "$wx_cv_struct_pw_gecos" = "yes"; then
33815 cat >>confdefs.h <<\_ACEOF
33816#define HAVE_PW_GECOS 1
33817_ACEOF
33818
33819fi
33820
33821
47a7e797 33822if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33823 cat >>confdefs.h <<\_ACEOF
33824#define wxUSE_WCHAR_T 1
33825_ACEOF
33826
33827
33828 WCSLEN_FOUND=0
33829 WCHAR_LINK=
33830
33831for ac_func in wcslen
33832do
33833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33834echo "$as_me:$LINENO: checking for $ac_func" >&5
33835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33836if eval "test \"\${$as_ac_var+set}\" = set"; then
33837 echo $ECHO_N "(cached) $ECHO_C" >&6
33838else
33839 cat >conftest.$ac_ext <<_ACEOF
33840/* confdefs.h. */
33841_ACEOF
33842cat confdefs.h >>conftest.$ac_ext
33843cat >>conftest.$ac_ext <<_ACEOF
33844/* end confdefs.h. */
ac1cb8d3
VS
33845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33847#define $ac_func innocuous_$ac_func
33848
a848cd7e
SC
33849/* System header to define __stub macros and hopefully few prototypes,
33850 which can conflict with char $ac_func (); below.
33851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33852 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33853
a848cd7e
SC
33854#ifdef __STDC__
33855# include <limits.h>
33856#else
33857# include <assert.h>
33858#endif
ac1cb8d3
VS
33859
33860#undef $ac_func
33861
a848cd7e
SC
33862/* Override any gcc2 internal prototype to avoid an error. */
33863#ifdef __cplusplus
33864extern "C"
33865{
33866#endif
33867/* We use char because int might match the return type of a gcc2
33868 builtin and then its argument prototype would still apply. */
33869char $ac_func ();
33870/* The GNU C library defines this for functions which it implements
33871 to always fail with ENOSYS. Some functions are actually named
33872 something starting with __ and the normal name is an alias. */
33873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33874choke me
33875#else
33876char (*f) () = $ac_func;
33877#endif
33878#ifdef __cplusplus
33879}
33880#endif
33881
33882int
33883main ()
33884{
33885return f != $ac_func;
33886 ;
33887 return 0;
33888}
33889_ACEOF
33890rm -f conftest.$ac_objext conftest$ac_exeext
33891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33892 (eval $ac_link) 2>conftest.er1
a848cd7e 33893 ac_status=$?
ac1cb8d3
VS
33894 grep -v '^ *+' conftest.er1 >conftest.err
33895 rm -f conftest.er1
33896 cat conftest.err >&5
a848cd7e
SC
33897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898 (exit $ac_status); } &&
c9a66001 33899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33901 (eval $ac_try) 2>&5
33902 ac_status=$?
33903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904 (exit $ac_status); }; } &&
33905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33907 (eval $ac_try) 2>&5
33908 ac_status=$?
33909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910 (exit $ac_status); }; }; then
33911 eval "$as_ac_var=yes"
33912else
33913 echo "$as_me: failed program was:" >&5
33914sed 's/^/| /' conftest.$ac_ext >&5
33915
33916eval "$as_ac_var=no"
33917fi
ac1cb8d3
VS
33918rm -f conftest.err conftest.$ac_objext \
33919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33920fi
33921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33923if test `eval echo '${'$as_ac_var'}'` = yes; then
33924 cat >>confdefs.h <<_ACEOF
33925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33926_ACEOF
33927 WCSLEN_FOUND=1
33928fi
33929done
33930
33931
33932 if test "$WCSLEN_FOUND" = 0; then
33933 if test "$TOOLKIT" = "MSW"; then
33934 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33935echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33936if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33937 echo $ECHO_N "(cached) $ECHO_C" >&6
33938else
33939 ac_check_lib_save_LIBS=$LIBS
33940LIBS="-lmsvcrt $LIBS"
33941cat >conftest.$ac_ext <<_ACEOF
33942/* confdefs.h. */
33943_ACEOF
33944cat confdefs.h >>conftest.$ac_ext
33945cat >>conftest.$ac_ext <<_ACEOF
33946/* end confdefs.h. */
33947
33948/* Override any gcc2 internal prototype to avoid an error. */
33949#ifdef __cplusplus
33950extern "C"
33951#endif
33952/* We use char because int might match the return type of a gcc2
33953 builtin and then its argument prototype would still apply. */
33954char wcslen ();
33955int
33956main ()
33957{
33958wcslen ();
33959 ;
33960 return 0;
33961}
33962_ACEOF
33963rm -f conftest.$ac_objext conftest$ac_exeext
33964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33965 (eval $ac_link) 2>conftest.er1
a848cd7e 33966 ac_status=$?
ac1cb8d3
VS
33967 grep -v '^ *+' conftest.er1 >conftest.err
33968 rm -f conftest.er1
33969 cat conftest.err >&5
a848cd7e
SC
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); } &&
c9a66001 33972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33974 (eval $ac_try) 2>&5
33975 ac_status=$?
33976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977 (exit $ac_status); }; } &&
33978 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33980 (eval $ac_try) 2>&5
33981 ac_status=$?
33982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983 (exit $ac_status); }; }; then
33984 ac_cv_lib_msvcrt_wcslen=yes
33985else
33986 echo "$as_me: failed program was:" >&5
33987sed 's/^/| /' conftest.$ac_ext >&5
33988
33989ac_cv_lib_msvcrt_wcslen=no
33990fi
ac1cb8d3
VS
33991rm -f conftest.err conftest.$ac_objext \
33992 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33993LIBS=$ac_check_lib_save_LIBS
33994fi
33995echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33996echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33997if test $ac_cv_lib_msvcrt_wcslen = yes; then
33998 WCHAR_OK=1
33999fi
34000
34001 else
34002 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34003echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34004if test "${ac_cv_lib_w_wcslen+set}" = set; then
34005 echo $ECHO_N "(cached) $ECHO_C" >&6
34006else
34007 ac_check_lib_save_LIBS=$LIBS
34008LIBS="-lw $LIBS"
34009cat >conftest.$ac_ext <<_ACEOF
34010/* confdefs.h. */
34011_ACEOF
34012cat confdefs.h >>conftest.$ac_ext
34013cat >>conftest.$ac_ext <<_ACEOF
34014/* end confdefs.h. */
34015
34016/* Override any gcc2 internal prototype to avoid an error. */
34017#ifdef __cplusplus
34018extern "C"
34019#endif
34020/* We use char because int might match the return type of a gcc2
34021 builtin and then its argument prototype would still apply. */
34022char wcslen ();
34023int
34024main ()
34025{
34026wcslen ();
34027 ;
34028 return 0;
34029}
34030_ACEOF
34031rm -f conftest.$ac_objext conftest$ac_exeext
34032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34033 (eval $ac_link) 2>conftest.er1
a848cd7e 34034 ac_status=$?
ac1cb8d3
VS
34035 grep -v '^ *+' conftest.er1 >conftest.err
34036 rm -f conftest.er1
34037 cat conftest.err >&5
a848cd7e
SC
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); } &&
c9a66001 34040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34042 (eval $ac_try) 2>&5
34043 ac_status=$?
34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); }; } &&
34046 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34048 (eval $ac_try) 2>&5
34049 ac_status=$?
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); }; }; then
34052 ac_cv_lib_w_wcslen=yes
34053else
34054 echo "$as_me: failed program was:" >&5
34055sed 's/^/| /' conftest.$ac_ext >&5
34056
34057ac_cv_lib_w_wcslen=no
34058fi
ac1cb8d3
VS
34059rm -f conftest.err conftest.$ac_objext \
34060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34061LIBS=$ac_check_lib_save_LIBS
34062fi
34063echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34064echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34065if test $ac_cv_lib_w_wcslen = yes; then
34066
34067 WCHAR_LINK=" -lw"
34068 WCSLEN_FOUND=1
34069
34070fi
34071
34072 fi
34073 fi
34074
34075 if test "$WCSLEN_FOUND" = 1; then
34076 cat >>confdefs.h <<\_ACEOF
34077#define HAVE_WCSLEN 1
34078_ACEOF
34079
34080 fi
34081
efdf6afe 34082 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34083 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34084 fi
34085
efdf6afe
VZ
34086 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34087echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34088if test "${ac_cv_type_mbstate_t+set}" = set; then
34089 echo $ECHO_N "(cached) $ECHO_C" >&6
34090else
34091 cat >conftest.$ac_ext <<_ACEOF
34092/* confdefs.h. */
34093_ACEOF
34094cat confdefs.h >>conftest.$ac_ext
34095cat >>conftest.$ac_ext <<_ACEOF
34096/* end confdefs.h. */
34097#include <wchar.h>
34098
34099int
34100main ()
34101{
34102if ((mbstate_t *) 0)
34103 return 0;
34104if (sizeof (mbstate_t))
34105 return 0;
34106 ;
34107 return 0;
34108}
34109_ACEOF
34110rm -f conftest.$ac_objext
34111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34112 (eval $ac_compile) 2>conftest.er1
34113 ac_status=$?
34114 grep -v '^ *+' conftest.er1 >conftest.err
34115 rm -f conftest.er1
34116 cat conftest.err >&5
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); } &&
c9a66001 34119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34121 (eval $ac_try) 2>&5
34122 ac_status=$?
34123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124 (exit $ac_status); }; } &&
34125 { ac_try='test -s conftest.$ac_objext'
34126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34127 (eval $ac_try) 2>&5
34128 ac_status=$?
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); }; }; then
34131 ac_cv_type_mbstate_t=yes
34132else
34133 echo "$as_me: failed program was:" >&5
34134sed 's/^/| /' conftest.$ac_ext >&5
34135
34136ac_cv_type_mbstate_t=no
34137fi
34138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34139fi
34140echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34141echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34142if test $ac_cv_type_mbstate_t = yes; then
34143
34144cat >>confdefs.h <<_ACEOF
34145#define HAVE_MBSTATE_T 1
34146_ACEOF
34147
a848cd7e
SC
34148
34149for ac_func in wcsrtombs
34150do
34151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34152echo "$as_me:$LINENO: checking for $ac_func" >&5
34153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34154if eval "test \"\${$as_ac_var+set}\" = set"; then
34155 echo $ECHO_N "(cached) $ECHO_C" >&6
34156else
34157 cat >conftest.$ac_ext <<_ACEOF
34158/* confdefs.h. */
34159_ACEOF
34160cat confdefs.h >>conftest.$ac_ext
34161cat >>conftest.$ac_ext <<_ACEOF
34162/* end confdefs.h. */
ac1cb8d3
VS
34163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34165#define $ac_func innocuous_$ac_func
34166
a848cd7e
SC
34167/* System header to define __stub macros and hopefully few prototypes,
34168 which can conflict with char $ac_func (); below.
34169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34170 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34171
a848cd7e
SC
34172#ifdef __STDC__
34173# include <limits.h>
34174#else
34175# include <assert.h>
34176#endif
ac1cb8d3
VS
34177
34178#undef $ac_func
34179
a848cd7e
SC
34180/* Override any gcc2 internal prototype to avoid an error. */
34181#ifdef __cplusplus
34182extern "C"
34183{
34184#endif
34185/* We use char because int might match the return type of a gcc2
34186 builtin and then its argument prototype would still apply. */
34187char $ac_func ();
34188/* The GNU C library defines this for functions which it implements
34189 to always fail with ENOSYS. Some functions are actually named
34190 something starting with __ and the normal name is an alias. */
34191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34192choke me
34193#else
34194char (*f) () = $ac_func;
34195#endif
34196#ifdef __cplusplus
34197}
34198#endif
34199
34200int
34201main ()
34202{
34203return f != $ac_func;
34204 ;
34205 return 0;
34206}
34207_ACEOF
34208rm -f conftest.$ac_objext conftest$ac_exeext
34209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34210 (eval $ac_link) 2>conftest.er1
a848cd7e 34211 ac_status=$?
ac1cb8d3
VS
34212 grep -v '^ *+' conftest.er1 >conftest.err
34213 rm -f conftest.er1
34214 cat conftest.err >&5
a848cd7e
SC
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216 (exit $ac_status); } &&
c9a66001 34217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34219 (eval $ac_try) 2>&5
34220 ac_status=$?
34221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222 (exit $ac_status); }; } &&
34223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225 (eval $ac_try) 2>&5
34226 ac_status=$?
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; }; then
34229 eval "$as_ac_var=yes"
34230else
34231 echo "$as_me: failed program was:" >&5
34232sed 's/^/| /' conftest.$ac_ext >&5
34233
34234eval "$as_ac_var=no"
34235fi
ac1cb8d3
VS
34236rm -f conftest.err conftest.$ac_objext \
34237 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34238fi
34239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34240echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34241if test `eval echo '${'$as_ac_var'}'` = yes; then
34242 cat >>confdefs.h <<_ACEOF
34243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34244_ACEOF
34245
34246fi
34247done
34248
efdf6afe
VZ
34249fi
34250
a848cd7e
SC
34251else
34252 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34253echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34254fi
34255
a848cd7e 34256
4a767dd5
VZ
34257
34258for ac_func in snprintf vsnprintf
a848cd7e
SC
34259do
34260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34261echo "$as_me:$LINENO: checking for $ac_func" >&5
34262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34263if eval "test \"\${$as_ac_var+set}\" = set"; then
34264 echo $ECHO_N "(cached) $ECHO_C" >&6
34265else
34266 cat >conftest.$ac_ext <<_ACEOF
34267/* confdefs.h. */
34268_ACEOF
34269cat confdefs.h >>conftest.$ac_ext
34270cat >>conftest.$ac_ext <<_ACEOF
34271/* end confdefs.h. */
ac1cb8d3
VS
34272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34274#define $ac_func innocuous_$ac_func
34275
a848cd7e
SC
34276/* System header to define __stub macros and hopefully few prototypes,
34277 which can conflict with char $ac_func (); below.
34278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34279 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34280
a848cd7e
SC
34281#ifdef __STDC__
34282# include <limits.h>
34283#else
34284# include <assert.h>
34285#endif
ac1cb8d3
VS
34286
34287#undef $ac_func
34288
a848cd7e
SC
34289/* Override any gcc2 internal prototype to avoid an error. */
34290#ifdef __cplusplus
34291extern "C"
34292{
34293#endif
34294/* We use char because int might match the return type of a gcc2
34295 builtin and then its argument prototype would still apply. */
34296char $ac_func ();
34297/* The GNU C library defines this for functions which it implements
34298 to always fail with ENOSYS. Some functions are actually named
34299 something starting with __ and the normal name is an alias. */
34300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34301choke me
34302#else
34303char (*f) () = $ac_func;
34304#endif
34305#ifdef __cplusplus
34306}
34307#endif
34308
34309int
34310main ()
34311{
34312return f != $ac_func;
34313 ;
34314 return 0;
34315}
34316_ACEOF
34317rm -f conftest.$ac_objext conftest$ac_exeext
34318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34319 (eval $ac_link) 2>conftest.er1
a848cd7e 34320 ac_status=$?
ac1cb8d3
VS
34321 grep -v '^ *+' conftest.er1 >conftest.err
34322 rm -f conftest.er1
34323 cat conftest.err >&5
a848cd7e
SC
34324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325 (exit $ac_status); } &&
c9a66001 34326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328 (eval $ac_try) 2>&5
34329 ac_status=$?
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); }; } &&
34332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334 (eval $ac_try) 2>&5
34335 ac_status=$?
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); }; }; then
34338 eval "$as_ac_var=yes"
34339else
34340 echo "$as_me: failed program was:" >&5
34341sed 's/^/| /' conftest.$ac_ext >&5
34342
34343eval "$as_ac_var=no"
34344fi
ac1cb8d3
VS
34345rm -f conftest.err conftest.$ac_objext \
34346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34347fi
34348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34349echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34350if test `eval echo '${'$as_ac_var'}'` = yes; then
34351 cat >>confdefs.h <<_ACEOF
34352#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34353_ACEOF
34354
34355fi
34356done
34357
34358
34359if test "$ac_cv_func_vsnprintf" = "yes"; then
34360 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34361echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34362if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34363 echo $ECHO_N "(cached) $ECHO_C" >&6
34364else
34365
efdf6afe 34366 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34367/* confdefs.h. */
34368_ACEOF
34369cat confdefs.h >>conftest.$ac_ext
34370cat >>conftest.$ac_ext <<_ACEOF
34371/* end confdefs.h. */
34372
34373 #include <stdio.h>
34374 #include <stdarg.h>
efdf6afe
VZ
34375 #ifdef __MSL__
34376 #if __MSL__ >= 0x6000
34377 namespace std {}
34378 using namespace std;
34379 #endif
34380 #endif
a848cd7e
SC
34381
34382int
34383main ()
34384{
34385
34386 char *buf;
34387 va_list ap;
62fa8b3a 34388 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34389
34390 ;
34391 return 0;
34392}
34393_ACEOF
34394rm -f conftest.$ac_objext
34395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34396 (eval $ac_compile) 2>conftest.er1
34397 ac_status=$?
34398 grep -v '^ *+' conftest.er1 >conftest.err
34399 rm -f conftest.er1
34400 cat conftest.err >&5
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); } &&
c9a66001 34403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34405 (eval $ac_try) 2>&5
34406 ac_status=$?
34407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408 (exit $ac_status); }; } &&
34409 { ac_try='test -s conftest.$ac_objext'
34410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34411 (eval $ac_try) 2>&5
34412 ac_status=$?
34413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34414 (exit $ac_status); }; }; then
34415 wx_cv_func_vsnprintf_decl=yes
34416else
34417 echo "$as_me: failed program was:" >&5
34418sed 's/^/| /' conftest.$ac_ext >&5
34419
a848cd7e
SC
34420wx_cv_func_vsnprintf_decl=no
34421
34422fi
ac1cb8d3 34423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34424
34425
34426fi
34427echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34428echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34429
34430 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34431 cat >>confdefs.h <<\_ACEOF
34432#define HAVE_VSNPRINTF_DECL 1
34433_ACEOF
34434
62fa8b3a
MW
34435
34436 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34437echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34438if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34439 echo $ECHO_N "(cached) $ECHO_C" >&6
34440else
34441
34442 cat >conftest.$ac_ext <<_ACEOF
34443/* confdefs.h. */
34444_ACEOF
34445cat confdefs.h >>conftest.$ac_ext
34446cat >>conftest.$ac_ext <<_ACEOF
34447/* end confdefs.h. */
34448
34449 #include <stdio.h>
34450 #include <stdarg.h>
34451 #ifdef __MSL__
34452 #if __MSL__ >= 0x6000
34453 namespace std {}
34454 using namespace std;
34455 #endif
34456 #endif
34457
34458int
34459main ()
34460{
34461
34462 char *buf;
34463 va_list ap;
34464 const char *fmt = "%s";
34465 vsnprintf(buf, 10u, fmt, ap);
34466
34467 ;
34468 return 0;
34469}
34470_ACEOF
34471rm -f conftest.$ac_objext
34472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34473 (eval $ac_compile) 2>conftest.er1
34474 ac_status=$?
34475 grep -v '^ *+' conftest.er1 >conftest.err
34476 rm -f conftest.er1
34477 cat conftest.err >&5
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); } &&
c9a66001 34480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34482 (eval $ac_try) 2>&5
34483 ac_status=$?
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; } &&
34486 { ac_try='test -s conftest.$ac_objext'
34487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34488 (eval $ac_try) 2>&5
34489 ac_status=$?
34490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491 (exit $ac_status); }; }; then
34492 wx_cv_func_broken_vsnprintf_decl=no
34493else
34494 echo "$as_me: failed program was:" >&5
34495sed 's/^/| /' conftest.$ac_ext >&5
34496
34497wx_cv_func_broken_vsnprintf_decl=yes
34498
34499fi
34500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34501
34502
34503fi
34504echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34505echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34506
34507 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34508 cat >>confdefs.h <<\_ACEOF
34509#define HAVE_BROKEN_VSNPRINTF_DECL 1
34510_ACEOF
34511
34512 fi
a848cd7e
SC
34513 fi
34514fi
34515
4a767dd5
VZ
34516if test "$ac_cv_func_snprintf" = "yes"; then
34517 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34518echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34519if test "${wx_cv_func_snprintf_decl+set}" = set; then
34520 echo $ECHO_N "(cached) $ECHO_C" >&6
34521else
34522
34523 cat >conftest.$ac_ext <<_ACEOF
34524/* confdefs.h. */
34525_ACEOF
34526cat confdefs.h >>conftest.$ac_ext
34527cat >>conftest.$ac_ext <<_ACEOF
34528/* end confdefs.h. */
34529
34530 #include <stdio.h>
34531 #include <stdarg.h>
34532 #ifdef __MSL__
34533 #if __MSL__ >= 0x6000
34534 namespace std {}
34535 using namespace std;
34536 #endif
34537 #endif
34538
34539int
34540main ()
34541{
34542
34543 char *buf;
62fa8b3a 34544 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34545
34546 ;
34547 return 0;
34548}
34549_ACEOF
34550rm -f conftest.$ac_objext
34551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34552 (eval $ac_compile) 2>conftest.er1
34553 ac_status=$?
34554 grep -v '^ *+' conftest.er1 >conftest.err
34555 rm -f conftest.er1
34556 cat conftest.err >&5
34557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558 (exit $ac_status); } &&
c9a66001 34559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
34560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34561 (eval $ac_try) 2>&5
34562 ac_status=$?
34563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564 (exit $ac_status); }; } &&
34565 { ac_try='test -s conftest.$ac_objext'
34566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34567 (eval $ac_try) 2>&5
34568 ac_status=$?
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); }; }; then
34571 wx_cv_func_snprintf_decl=yes
34572else
34573 echo "$as_me: failed program was:" >&5
34574sed 's/^/| /' conftest.$ac_ext >&5
34575
34576wx_cv_func_snprintf_decl=no
34577
34578fi
34579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34580
34581
34582fi
34583echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34584echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34585
34586 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34587 cat >>confdefs.h <<\_ACEOF
34588#define HAVE_SNPRINTF_DECL 1
34589_ACEOF
34590
62fa8b3a
MW
34591
34592 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34593echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34594if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34595 echo $ECHO_N "(cached) $ECHO_C" >&6
34596else
34597
34598 cat >conftest.$ac_ext <<_ACEOF
34599/* confdefs.h. */
34600_ACEOF
34601cat confdefs.h >>conftest.$ac_ext
34602cat >>conftest.$ac_ext <<_ACEOF
34603/* end confdefs.h. */
34604
34605 #include <stdio.h>
34606 #include <stdarg.h>
34607 #ifdef __MSL__
34608 #if __MSL__ >= 0x6000
34609 namespace std {}
34610 using namespace std;
34611 #endif
34612 #endif
34613
34614int
34615main ()
34616{
34617
34618 char *buf;
34619 const char *fmt = "%s";
34620 snprintf(buf, 10u, fmt, "wx");
34621
34622 ;
34623 return 0;
34624}
34625_ACEOF
34626rm -f conftest.$ac_objext
34627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34628 (eval $ac_compile) 2>conftest.er1
34629 ac_status=$?
34630 grep -v '^ *+' conftest.er1 >conftest.err
34631 rm -f conftest.er1
34632 cat conftest.err >&5
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); } &&
c9a66001 34635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34637 (eval $ac_try) 2>&5
34638 ac_status=$?
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); }; } &&
34641 { ac_try='test -s conftest.$ac_objext'
34642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34643 (eval $ac_try) 2>&5
34644 ac_status=$?
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); }; }; then
34647 wx_cv_func_broken_snprintf_decl=no
34648else
34649 echo "$as_me: failed program was:" >&5
34650sed 's/^/| /' conftest.$ac_ext >&5
34651
34652wx_cv_func_broken_snprintf_decl=yes
34653
34654fi
34655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34656
34657
34658fi
34659echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34660echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34661
34662 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34663 cat >>confdefs.h <<\_ACEOF
34664#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
34665_ACEOF
34666
34667 fi
34668 fi
34669
34670 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34671
34672 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34673echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34674if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34675 echo $ECHO_N "(cached) $ECHO_C" >&6
34676else
34677
34678 if test "$cross_compiling" = yes; then
737d3175
VZ
34679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34680See \`config.log' for more details." >&5
34681echo "$as_me: error: cannot run test program while cross compiling
34682See \`config.log' for more details." >&2;}
8b6682b9
JS
34683 { (exit 1); exit 1; }; }
34684else
34685 cat >conftest.$ac_ext <<_ACEOF
34686/* confdefs.h. */
34687_ACEOF
34688cat confdefs.h >>conftest.$ac_ext
34689cat >>conftest.$ac_ext <<_ACEOF
34690/* end confdefs.h. */
34691
34692 #include <stdio.h>
34693
34694 int main (void)
34695 {
34696 char buffer[128];
34697 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34698 if (strcmp ("2 3 1", buffer) == 0)
34699 exit (0);
34700 exit (1);
34701 }
34702
34703_ACEOF
34704rm -f conftest$ac_exeext
34705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34706 (eval $ac_link) 2>&5
34707 ac_status=$?
34708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34711 (eval $ac_try) 2>&5
34712 ac_status=$?
34713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714 (exit $ac_status); }; }; then
34715 wx_cv_func_snprintf_pos_params=no
34716else
34717 echo "$as_me: program exited with status $ac_status" >&5
34718echo "$as_me: failed program was:" >&5
34719sed 's/^/| /' conftest.$ac_ext >&5
34720
34721( exit $ac_status )
34722wx_cv_func_snprintf_pos_params=yes
34723
34724fi
34725rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34726fi
34727
34728
34729fi
34730echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34731echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34732
34733 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34734 cat >>confdefs.h <<\_ACEOF
34735#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
34736_ACEOF
34737
34738 fi
4a767dd5
VZ
34739 fi
34740fi
34741
8b6682b9 34742
a848cd7e
SC
34743if test "$wxUSE_UNICODE" = yes; then
34744
34745
34746
fbe47c7b
VS
34747
34748
34749
34750for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34751do
34752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34753echo "$as_me:$LINENO: checking for $ac_func" >&5
34754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34755if eval "test \"\${$as_ac_var+set}\" = set"; then
34756 echo $ECHO_N "(cached) $ECHO_C" >&6
34757else
34758 cat >conftest.$ac_ext <<_ACEOF
34759/* confdefs.h. */
34760_ACEOF
34761cat confdefs.h >>conftest.$ac_ext
34762cat >>conftest.$ac_ext <<_ACEOF
34763/* end confdefs.h. */
ac1cb8d3
VS
34764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34766#define $ac_func innocuous_$ac_func
34767
a848cd7e
SC
34768/* System header to define __stub macros and hopefully few prototypes,
34769 which can conflict with char $ac_func (); below.
34770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34771 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34772
a848cd7e
SC
34773#ifdef __STDC__
34774# include <limits.h>
34775#else
34776# include <assert.h>
34777#endif
ac1cb8d3
VS
34778
34779#undef $ac_func
34780
a848cd7e
SC
34781/* Override any gcc2 internal prototype to avoid an error. */
34782#ifdef __cplusplus
34783extern "C"
34784{
34785#endif
34786/* We use char because int might match the return type of a gcc2
34787 builtin and then its argument prototype would still apply. */
34788char $ac_func ();
34789/* The GNU C library defines this for functions which it implements
34790 to always fail with ENOSYS. Some functions are actually named
34791 something starting with __ and the normal name is an alias. */
34792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34793choke me
34794#else
34795char (*f) () = $ac_func;
34796#endif
34797#ifdef __cplusplus
34798}
34799#endif
34800
34801int
34802main ()
34803{
34804return f != $ac_func;
34805 ;
34806 return 0;
34807}
34808_ACEOF
34809rm -f conftest.$ac_objext conftest$ac_exeext
34810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34811 (eval $ac_link) 2>conftest.er1
a848cd7e 34812 ac_status=$?
ac1cb8d3
VS
34813 grep -v '^ *+' conftest.er1 >conftest.err
34814 rm -f conftest.er1
34815 cat conftest.err >&5
a848cd7e
SC
34816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34817 (exit $ac_status); } &&
c9a66001 34818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34820 (eval $ac_try) 2>&5
34821 ac_status=$?
34822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823 (exit $ac_status); }; } &&
34824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34826 (eval $ac_try) 2>&5
34827 ac_status=$?
34828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829 (exit $ac_status); }; }; then
34830 eval "$as_ac_var=yes"
34831else
34832 echo "$as_me: failed program was:" >&5
34833sed 's/^/| /' conftest.$ac_ext >&5
34834
34835eval "$as_ac_var=no"
34836fi
ac1cb8d3
VS
34837rm -f conftest.err conftest.$ac_objext \
34838 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34839fi
34840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34841echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34842if test `eval echo '${'$as_ac_var'}'` = yes; then
34843 cat >>confdefs.h <<_ACEOF
34844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34845_ACEOF
34846
34847fi
34848done
34849
34850
34851 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34852echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34853 cat >conftest.$ac_ext <<_ACEOF
34854/* confdefs.h. */
34855_ACEOF
34856cat confdefs.h >>conftest.$ac_ext
34857cat >>conftest.$ac_ext <<_ACEOF
34858/* end confdefs.h. */
34859#include <wchar.h>
34860int
34861main ()
34862{
34863&_vsnwprintf;
34864 ;
34865 return 0;
34866}
34867_ACEOF
34868rm -f conftest.$ac_objext
34869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34870 (eval $ac_compile) 2>conftest.er1
a848cd7e 34871 ac_status=$?
ac1cb8d3
VS
34872 grep -v '^ *+' conftest.er1 >conftest.err
34873 rm -f conftest.er1
34874 cat conftest.err >&5
a848cd7e
SC
34875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876 (exit $ac_status); } &&
c9a66001 34877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34879 (eval $ac_try) 2>&5
34880 ac_status=$?
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); }; } &&
34883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34885 (eval $ac_try) 2>&5
34886 ac_status=$?
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); }; }; then
34889 echo "$as_me:$LINENO: result: yes" >&5
34890echo "${ECHO_T}yes" >&6
34891 cat >>confdefs.h <<\_ACEOF
34892#define HAVE__VSNWPRINTF 1
34893_ACEOF
34894
34895else
34896 echo "$as_me: failed program was:" >&5
34897sed 's/^/| /' conftest.$ac_ext >&5
34898
34899echo "$as_me:$LINENO: result: no" >&5
34900echo "${ECHO_T}no" >&6
34901fi
ac1cb8d3 34902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34903fi
34904
6ebeb4c7
VZ
34905if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34906
34907for ac_func in fnmatch
34908do
34909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34910echo "$as_me:$LINENO: checking for $ac_func" >&5
34911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34912if eval "test \"\${$as_ac_var+set}\" = set"; then
34913 echo $ECHO_N "(cached) $ECHO_C" >&6
34914else
34915 cat >conftest.$ac_ext <<_ACEOF
34916/* confdefs.h. */
34917_ACEOF
34918cat confdefs.h >>conftest.$ac_ext
34919cat >>conftest.$ac_ext <<_ACEOF
34920/* end confdefs.h. */
34921/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34923#define $ac_func innocuous_$ac_func
34924
34925/* System header to define __stub macros and hopefully few prototypes,
34926 which can conflict with char $ac_func (); below.
34927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34928 <limits.h> exists even on freestanding compilers. */
34929
34930#ifdef __STDC__
34931# include <limits.h>
34932#else
34933# include <assert.h>
34934#endif
34935
34936#undef $ac_func
34937
34938/* Override any gcc2 internal prototype to avoid an error. */
34939#ifdef __cplusplus
34940extern "C"
34941{
34942#endif
34943/* We use char because int might match the return type of a gcc2
34944 builtin and then its argument prototype would still apply. */
34945char $ac_func ();
34946/* The GNU C library defines this for functions which it implements
34947 to always fail with ENOSYS. Some functions are actually named
34948 something starting with __ and the normal name is an alias. */
34949#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34950choke me
34951#else
34952char (*f) () = $ac_func;
34953#endif
34954#ifdef __cplusplus
34955}
34956#endif
34957
34958int
34959main ()
34960{
34961return f != $ac_func;
34962 ;
34963 return 0;
34964}
34965_ACEOF
34966rm -f conftest.$ac_objext conftest$ac_exeext
34967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34968 (eval $ac_link) 2>conftest.er1
34969 ac_status=$?
34970 grep -v '^ *+' conftest.er1 >conftest.err
34971 rm -f conftest.er1
34972 cat conftest.err >&5
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); } &&
c9a66001 34975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34977 (eval $ac_try) 2>&5
34978 ac_status=$?
34979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980 (exit $ac_status); }; } &&
34981 { ac_try='test -s conftest$ac_exeext'
34982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34983 (eval $ac_try) 2>&5
34984 ac_status=$?
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); }; }; then
34987 eval "$as_ac_var=yes"
34988else
34989 echo "$as_me: failed program was:" >&5
34990sed 's/^/| /' conftest.$ac_ext >&5
34991
34992eval "$as_ac_var=no"
34993fi
34994rm -f conftest.err conftest.$ac_objext \
34995 conftest$ac_exeext conftest.$ac_ext
34996fi
34997echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34998echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34999if test `eval echo '${'$as_ac_var'}'` = yes; then
35000 cat >>confdefs.h <<_ACEOF
35001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35002_ACEOF
35003
35004fi
35005done
35006
35007fi
35008
35009if test "$wxUSE_FILE" = "yes"; then
35010
35011for ac_func in fsync
35012do
35013as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35014echo "$as_me:$LINENO: checking for $ac_func" >&5
35015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35016if eval "test \"\${$as_ac_var+set}\" = set"; then
35017 echo $ECHO_N "(cached) $ECHO_C" >&6
35018else
35019 cat >conftest.$ac_ext <<_ACEOF
35020/* confdefs.h. */
35021_ACEOF
35022cat confdefs.h >>conftest.$ac_ext
35023cat >>conftest.$ac_ext <<_ACEOF
35024/* end confdefs.h. */
35025/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35027#define $ac_func innocuous_$ac_func
35028
35029/* System header to define __stub macros and hopefully few prototypes,
35030 which can conflict with char $ac_func (); below.
35031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35032 <limits.h> exists even on freestanding compilers. */
35033
35034#ifdef __STDC__
35035# include <limits.h>
35036#else
35037# include <assert.h>
35038#endif
35039
35040#undef $ac_func
35041
35042/* Override any gcc2 internal prototype to avoid an error. */
35043#ifdef __cplusplus
35044extern "C"
35045{
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 $ac_func ();
35050/* The GNU C library defines this for functions which it implements
35051 to always fail with ENOSYS. Some functions are actually named
35052 something starting with __ and the normal name is an alias. */
35053#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35054choke me
35055#else
35056char (*f) () = $ac_func;
35057#endif
35058#ifdef __cplusplus
35059}
35060#endif
35061
35062int
35063main ()
35064{
35065return f != $ac_func;
35066 ;
35067 return 0;
35068}
35069_ACEOF
35070rm -f conftest.$ac_objext conftest$ac_exeext
35071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35072 (eval $ac_link) 2>conftest.er1
35073 ac_status=$?
35074 grep -v '^ *+' conftest.er1 >conftest.err
35075 rm -f conftest.er1
35076 cat conftest.err >&5
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); } &&
c9a66001 35079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35081 (eval $ac_try) 2>&5
35082 ac_status=$?
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); }; } &&
35085 { ac_try='test -s conftest$ac_exeext'
35086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087 (eval $ac_try) 2>&5
35088 ac_status=$?
35089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); }; }; then
35091 eval "$as_ac_var=yes"
35092else
35093 echo "$as_me: failed program was:" >&5
35094sed 's/^/| /' conftest.$ac_ext >&5
35095
35096eval "$as_ac_var=no"
35097fi
35098rm -f conftest.err conftest.$ac_objext \
35099 conftest$ac_exeext conftest.$ac_ext
35100fi
35101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35102echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35103if test `eval echo '${'$as_ac_var'}'` = yes; then
35104 cat >>confdefs.h <<_ACEOF
35105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35106_ACEOF
35107
35108fi
35109done
35110
35111fi
a848cd7e
SC
35112
35113
c2e9ada4
VZ
35114for ac_func in round
35115do
35116as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35117echo "$as_me:$LINENO: checking for $ac_func" >&5
35118echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35119if eval "test \"\${$as_ac_var+set}\" = set"; then
35120 echo $ECHO_N "(cached) $ECHO_C" >&6
35121else
35122 cat >conftest.$ac_ext <<_ACEOF
35123/* confdefs.h. */
35124_ACEOF
35125cat confdefs.h >>conftest.$ac_ext
35126cat >>conftest.$ac_ext <<_ACEOF
35127/* end confdefs.h. */
35128/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35130#define $ac_func innocuous_$ac_func
35131
35132/* System header to define __stub macros and hopefully few prototypes,
35133 which can conflict with char $ac_func (); below.
35134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35135 <limits.h> exists even on freestanding compilers. */
35136
35137#ifdef __STDC__
35138# include <limits.h>
35139#else
35140# include <assert.h>
35141#endif
35142
35143#undef $ac_func
35144
35145/* Override any gcc2 internal prototype to avoid an error. */
35146#ifdef __cplusplus
35147extern "C"
35148{
35149#endif
35150/* We use char because int might match the return type of a gcc2
35151 builtin and then its argument prototype would still apply. */
35152char $ac_func ();
35153/* The GNU C library defines this for functions which it implements
35154 to always fail with ENOSYS. Some functions are actually named
35155 something starting with __ and the normal name is an alias. */
35156#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35157choke me
35158#else
35159char (*f) () = $ac_func;
35160#endif
35161#ifdef __cplusplus
35162}
35163#endif
35164
35165int
35166main ()
35167{
35168return f != $ac_func;
35169 ;
35170 return 0;
35171}
35172_ACEOF
35173rm -f conftest.$ac_objext conftest$ac_exeext
35174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35175 (eval $ac_link) 2>conftest.er1
35176 ac_status=$?
35177 grep -v '^ *+' conftest.er1 >conftest.err
35178 rm -f conftest.er1
35179 cat conftest.err >&5
35180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); } &&
35182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35184 (eval $ac_try) 2>&5
35185 ac_status=$?
35186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187 (exit $ac_status); }; } &&
35188 { ac_try='test -s conftest$ac_exeext'
35189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190 (eval $ac_try) 2>&5
35191 ac_status=$?
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); }; }; then
35194 eval "$as_ac_var=yes"
35195else
35196 echo "$as_me: failed program was:" >&5
35197sed 's/^/| /' conftest.$ac_ext >&5
35198
35199eval "$as_ac_var=no"
35200fi
35201rm -f conftest.err conftest.$ac_objext \
35202 conftest$ac_exeext conftest.$ac_ext
35203fi
35204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35206if test `eval echo '${'$as_ac_var'}'` = yes; then
35207 cat >>confdefs.h <<_ACEOF
35208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35209_ACEOF
35210
35211fi
35212done
35213
35214if test "$ac_cv_func_round" = yes; then
35215 echo "$as_me:$LINENO: checking whether round is declared" >&5
35216echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35217if test "${ac_cv_have_decl_round+set}" = set; then
35218 echo $ECHO_N "(cached) $ECHO_C" >&6
35219else
35220 cat >conftest.$ac_ext <<_ACEOF
35221/* confdefs.h. */
35222_ACEOF
35223cat confdefs.h >>conftest.$ac_ext
35224cat >>conftest.$ac_ext <<_ACEOF
35225/* end confdefs.h. */
35226#include <math.h>
35227
35228int
35229main ()
35230{
35231#ifndef round
35232 char *p = (char *) round;
35233#endif
35234
35235 ;
35236 return 0;
35237}
35238_ACEOF
35239rm -f conftest.$ac_objext
35240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35241 (eval $ac_compile) 2>conftest.er1
35242 ac_status=$?
35243 grep -v '^ *+' conftest.er1 >conftest.err
35244 rm -f conftest.er1
35245 cat conftest.err >&5
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); } &&
35248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35250 (eval $ac_try) 2>&5
35251 ac_status=$?
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); }; } &&
35254 { ac_try='test -s conftest.$ac_objext'
35255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35256 (eval $ac_try) 2>&5
35257 ac_status=$?
35258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35259 (exit $ac_status); }; }; then
35260 ac_cv_have_decl_round=yes
35261else
35262 echo "$as_me: failed program was:" >&5
35263sed 's/^/| /' conftest.$ac_ext >&5
35264
35265ac_cv_have_decl_round=no
35266fi
35267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35268fi
35269echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35270echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35271if test $ac_cv_have_decl_round = yes; then
35272
35273cat >>confdefs.h <<_ACEOF
35274#define HAVE_DECL_ROUND 1
35275_ACEOF
35276
35277
35278else
35279 cat >>confdefs.h <<_ACEOF
35280#define HAVE_DECL_ROUND 0
35281_ACEOF
35282
35283
35284fi
35285
35286
35287fi
35288
35289
a848cd7e
SC
35290if test "$TOOLKIT" != "MSW"; then
35291
35292
a848cd7e
SC
35293
35294
35295
35296# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35297if test "${with_libiconv_prefix+set}" = set; then
35298 withval="$with_libiconv_prefix"
35299
35300 for dir in `echo "$withval" | tr : ' '`; do
35301 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35302 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35303 done
35304
35305fi;
35306
35307 echo "$as_me:$LINENO: checking for iconv" >&5
35308echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35309if test "${am_cv_func_iconv+set}" = set; then
35310 echo $ECHO_N "(cached) $ECHO_C" >&6
35311else
35312
35313 am_cv_func_iconv="no, consider installing GNU libiconv"
35314 am_cv_lib_iconv=no
35315 cat >conftest.$ac_ext <<_ACEOF
35316/* confdefs.h. */
35317_ACEOF
35318cat confdefs.h >>conftest.$ac_ext
35319cat >>conftest.$ac_ext <<_ACEOF
35320/* end confdefs.h. */
35321#include <stdlib.h>
35322#include <iconv.h>
35323int
35324main ()
35325{
35326iconv_t cd = iconv_open("","");
35327 iconv(cd,NULL,NULL,NULL,NULL);
35328 iconv_close(cd);
35329 ;
35330 return 0;
35331}
35332_ACEOF
35333rm -f conftest.$ac_objext conftest$ac_exeext
35334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35335 (eval $ac_link) 2>conftest.er1
a848cd7e 35336 ac_status=$?
ac1cb8d3
VS
35337 grep -v '^ *+' conftest.er1 >conftest.err
35338 rm -f conftest.er1
35339 cat conftest.err >&5
a848cd7e
SC
35340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341 (exit $ac_status); } &&
c9a66001 35342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35344 (eval $ac_try) 2>&5
35345 ac_status=$?
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); }; } &&
35348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35350 (eval $ac_try) 2>&5
35351 ac_status=$?
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); }; }; then
35354 am_cv_func_iconv=yes
35355else
35356 echo "$as_me: failed program was:" >&5
35357sed 's/^/| /' conftest.$ac_ext >&5
35358
35359fi
ac1cb8d3
VS
35360rm -f conftest.err conftest.$ac_objext \
35361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35362 if test "$am_cv_func_iconv" != yes; then
35363 am_save_LIBS="$LIBS"
35364 LIBS="$LIBS -liconv"
35365 cat >conftest.$ac_ext <<_ACEOF
35366/* confdefs.h. */
35367_ACEOF
35368cat confdefs.h >>conftest.$ac_ext
35369cat >>conftest.$ac_ext <<_ACEOF
35370/* end confdefs.h. */
35371#include <stdlib.h>
35372#include <iconv.h>
35373int
35374main ()
35375{
35376iconv_t cd = iconv_open("","");
35377 iconv(cd,NULL,NULL,NULL,NULL);
35378 iconv_close(cd);
35379 ;
35380 return 0;
35381}
35382_ACEOF
35383rm -f conftest.$ac_objext conftest$ac_exeext
35384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35385 (eval $ac_link) 2>conftest.er1
a848cd7e 35386 ac_status=$?
ac1cb8d3
VS
35387 grep -v '^ *+' conftest.er1 >conftest.err
35388 rm -f conftest.er1
35389 cat conftest.err >&5
a848cd7e
SC
35390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391 (exit $ac_status); } &&
c9a66001 35392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35394 (eval $ac_try) 2>&5
35395 ac_status=$?
35396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35397 (exit $ac_status); }; } &&
35398 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35400 (eval $ac_try) 2>&5
35401 ac_status=$?
35402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403 (exit $ac_status); }; }; then
35404 am_cv_lib_iconv=yes
35405 am_cv_func_iconv=yes
35406else
35407 echo "$as_me: failed program was:" >&5
35408sed 's/^/| /' conftest.$ac_ext >&5
35409
35410fi
ac1cb8d3
VS
35411rm -f conftest.err conftest.$ac_objext \
35412 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35413 LIBS="$am_save_LIBS"
35414 fi
35415
35416fi
35417echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35418echo "${ECHO_T}$am_cv_func_iconv" >&6
35419 if test "$am_cv_func_iconv" = yes; then
35420
35421cat >>confdefs.h <<\_ACEOF
35422#define HAVE_ICONV 1
35423_ACEOF
35424
35425 echo "$as_me:$LINENO: checking if iconv needs const" >&5
35426echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35427if test "${wx_cv_func_iconv_const+set}" = set; then
35428 echo $ECHO_N "(cached) $ECHO_C" >&6
35429else
35430 cat >conftest.$ac_ext <<_ACEOF
35431/* confdefs.h. */
35432_ACEOF
35433cat confdefs.h >>conftest.$ac_ext
35434cat >>conftest.$ac_ext <<_ACEOF
35435/* end confdefs.h. */
35436
35437#include <stdlib.h>
35438#include <iconv.h>
35439extern
35440#ifdef __cplusplus
35441"C"
35442#endif
35443#if defined(__STDC__) || defined(__cplusplus)
35444size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35445#else
35446size_t iconv();
35447#endif
35448
35449int
35450main ()
35451{
35452
35453 ;
35454 return 0;
35455}
35456_ACEOF
35457rm -f conftest.$ac_objext
35458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35459 (eval $ac_compile) 2>conftest.er1
a848cd7e 35460 ac_status=$?
ac1cb8d3
VS
35461 grep -v '^ *+' conftest.er1 >conftest.err
35462 rm -f conftest.er1
35463 cat conftest.err >&5
a848cd7e
SC
35464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35465 (exit $ac_status); } &&
c9a66001 35466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35468 (eval $ac_try) 2>&5
35469 ac_status=$?
35470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35471 (exit $ac_status); }; } &&
35472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35474 (eval $ac_try) 2>&5
35475 ac_status=$?
35476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35477 (exit $ac_status); }; }; then
35478 wx_cv_func_iconv_const="no"
35479else
35480 echo "$as_me: failed program was:" >&5
35481sed 's/^/| /' conftest.$ac_ext >&5
35482
35483wx_cv_func_iconv_const="yes"
35484
35485fi
ac1cb8d3 35486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35487
35488fi
35489echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35490echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35491
35492 iconv_const=
35493 if test "x$wx_cv_func_iconv_const" = "xyes"; then
35494 iconv_const="const"
35495 fi
35496
35497
35498cat >>confdefs.h <<_ACEOF
35499#define ICONV_CONST $iconv_const
35500_ACEOF
35501
35502 fi
35503 LIBICONV=
35504 if test "$am_cv_lib_iconv" = yes; then
35505 LIBICONV="-liconv"
35506 fi
35507
35508
35509LIBS="$LIBICONV $LIBS"
a848cd7e
SC
35510
35511if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35512
35513for ac_func in sigaction
35514do
35515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35516echo "$as_me:$LINENO: checking for $ac_func" >&5
35517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35518if eval "test \"\${$as_ac_var+set}\" = set"; then
35519 echo $ECHO_N "(cached) $ECHO_C" >&6
35520else
35521 cat >conftest.$ac_ext <<_ACEOF
35522/* confdefs.h. */
35523_ACEOF
35524cat confdefs.h >>conftest.$ac_ext
35525cat >>conftest.$ac_ext <<_ACEOF
35526/* end confdefs.h. */
ac1cb8d3
VS
35527/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35529#define $ac_func innocuous_$ac_func
35530
a848cd7e
SC
35531/* System header to define __stub macros and hopefully few prototypes,
35532 which can conflict with char $ac_func (); below.
35533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35534 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35535
a848cd7e
SC
35536#ifdef __STDC__
35537# include <limits.h>
35538#else
35539# include <assert.h>
35540#endif
ac1cb8d3
VS
35541
35542#undef $ac_func
35543
a848cd7e
SC
35544/* Override any gcc2 internal prototype to avoid an error. */
35545#ifdef __cplusplus
35546extern "C"
35547{
35548#endif
35549/* We use char because int might match the return type of a gcc2
35550 builtin and then its argument prototype would still apply. */
35551char $ac_func ();
35552/* The GNU C library defines this for functions which it implements
35553 to always fail with ENOSYS. Some functions are actually named
35554 something starting with __ and the normal name is an alias. */
35555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35556choke me
35557#else
35558char (*f) () = $ac_func;
35559#endif
35560#ifdef __cplusplus
35561}
35562#endif
35563
35564int
35565main ()
35566{
35567return f != $ac_func;
35568 ;
35569 return 0;
35570}
35571_ACEOF
35572rm -f conftest.$ac_objext conftest$ac_exeext
35573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35574 (eval $ac_link) 2>conftest.er1
a848cd7e 35575 ac_status=$?
ac1cb8d3
VS
35576 grep -v '^ *+' conftest.er1 >conftest.err
35577 rm -f conftest.er1
35578 cat conftest.err >&5
a848cd7e
SC
35579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580 (exit $ac_status); } &&
c9a66001 35581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583 (eval $ac_try) 2>&5
35584 ac_status=$?
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); }; } &&
35587 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35589 (eval $ac_try) 2>&5
35590 ac_status=$?
35591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592 (exit $ac_status); }; }; then
35593 eval "$as_ac_var=yes"
35594else
35595 echo "$as_me: failed program was:" >&5
35596sed 's/^/| /' conftest.$ac_ext >&5
35597
35598eval "$as_ac_var=no"
35599fi
ac1cb8d3
VS
35600rm -f conftest.err conftest.$ac_objext \
35601 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35602fi
35603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35604echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35605if test `eval echo '${'$as_ac_var'}'` = yes; then
35606 cat >>confdefs.h <<_ACEOF
35607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35608_ACEOF
35609
35610fi
35611done
35612
35613
35614 if test "$ac_cv_func_sigaction" = "no"; then
35615 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35616echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35617 wxUSE_ON_FATAL_EXCEPTION=no
35618 fi
35619
35620 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
35621 echo "$as_me:$LINENO: checking for sa_handler type" >&5
35622echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35623if test "${wx_cv_type_sa_handler+set}" = set; then
35624 echo $ECHO_N "(cached) $ECHO_C" >&6
35625else
35626
35627 cat >conftest.$ac_ext <<_ACEOF
35628/* confdefs.h. */
35629_ACEOF
35630cat confdefs.h >>conftest.$ac_ext
35631cat >>conftest.$ac_ext <<_ACEOF
35632/* end confdefs.h. */
35633#include <signal.h>
35634int
35635main ()
35636{
35637
35638 extern void testSigHandler(int);
35639
35640 struct sigaction sa;
35641 sa.sa_handler = testSigHandler;
35642
35643 ;
35644 return 0;
35645}
35646_ACEOF
35647rm -f conftest.$ac_objext
35648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35649 (eval $ac_compile) 2>conftest.er1
a848cd7e 35650 ac_status=$?
ac1cb8d3
VS
35651 grep -v '^ *+' conftest.er1 >conftest.err
35652 rm -f conftest.er1
35653 cat conftest.err >&5
a848cd7e
SC
35654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655 (exit $ac_status); } &&
c9a66001 35656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35658 (eval $ac_try) 2>&5
35659 ac_status=$?
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); }; } &&
35662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35664 (eval $ac_try) 2>&5
35665 ac_status=$?
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); }; }; then
35668
35669 wx_cv_type_sa_handler=int
35670
35671else
35672 echo "$as_me: failed program was:" >&5
35673sed 's/^/| /' conftest.$ac_ext >&5
35674
35675
35676 wx_cv_type_sa_handler=void
35677
35678fi
ac1cb8d3 35679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35680
35681fi
35682echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35683echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35684
a848cd7e
SC
35685 cat >>confdefs.h <<_ACEOF
35686#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35687_ACEOF
35688
35689 fi
35690fi
35691
eaff0f0d 35692if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35693 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35694echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35695if test "${wx_cv_func_backtrace+set}" = set; then
35696 echo $ECHO_N "(cached) $ECHO_C" >&6
35697else
35698
35699 cat >conftest.$ac_ext <<_ACEOF
35700/* confdefs.h. */
35701_ACEOF
35702cat confdefs.h >>conftest.$ac_ext
35703cat >>conftest.$ac_ext <<_ACEOF
35704/* end confdefs.h. */
35705#include <execinfo.h>
35706int
35707main ()
35708{
35709
35710 void *trace[1];
35711 char **messages;
35712
35713 backtrace(trace, 1);
35714 messages = backtrace_symbols(trace, 1);
35715
35716 ;
35717 return 0;
35718}
35719_ACEOF
35720rm -f conftest.$ac_objext
35721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35722 (eval $ac_compile) 2>conftest.er1
35723 ac_status=$?
35724 grep -v '^ *+' conftest.er1 >conftest.err
35725 rm -f conftest.er1
35726 cat conftest.err >&5
35727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728 (exit $ac_status); } &&
c9a66001 35729 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35731 (eval $ac_try) 2>&5
35732 ac_status=$?
35733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); }; } &&
35735 { ac_try='test -s conftest.$ac_objext'
35736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35737 (eval $ac_try) 2>&5
35738 ac_status=$?
35739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740 (exit $ac_status); }; }; then
35741 wx_cv_func_backtrace=yes
35742else
35743 echo "$as_me: failed program was:" >&5
35744sed 's/^/| /' conftest.$ac_ext >&5
35745
35746wx_cv_func_backtrace=no
35747
35748fi
35749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35750
35751
35752fi
35753echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35754echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35755
35756
35757 if test "$wx_cv_func_backtrace" = "no"; then
35758 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35759echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35760 wxUSE_STACKWALKER=no
35761 else
35762 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35763echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35764if test "${wx_cv_func_cxa_demangle+set}" = set; then
35765 echo $ECHO_N "(cached) $ECHO_C" >&6
35766else
35767
35768 cat >conftest.$ac_ext <<_ACEOF
35769/* confdefs.h. */
35770_ACEOF
35771cat confdefs.h >>conftest.$ac_ext
35772cat >>conftest.$ac_ext <<_ACEOF
35773/* end confdefs.h. */
35774#include <cxxabi.h>
35775int
35776main ()
35777{
35778
35779 int rc;
35780 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35781
35782 ;
35783 return 0;
35784}
35785_ACEOF
dfe0c803
JS
35786rm -f conftest.$ac_objext conftest$ac_exeext
35787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35788 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35789 ac_status=$?
35790 grep -v '^ *+' conftest.er1 >conftest.err
35791 rm -f conftest.er1
35792 cat conftest.err >&5
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); } &&
c9a66001 35795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35797 (eval $ac_try) 2>&5
35798 ac_status=$?
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); }; } &&
dfe0c803 35801 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35803 (eval $ac_try) 2>&5
35804 ac_status=$?
35805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806 (exit $ac_status); }; }; then
35807 wx_cv_func_cxa_demangle=yes
35808else
35809 echo "$as_me: failed program was:" >&5
35810sed 's/^/| /' conftest.$ac_ext >&5
35811
35812wx_cv_func_cxa_demangle=no
35813
35814fi
dfe0c803
JS
35815rm -f conftest.err conftest.$ac_objext \
35816 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35817
35818
35819fi
35820echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35821echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35822
35823 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35824 cat >>confdefs.h <<\_ACEOF
35825#define HAVE_CXA_DEMANGLE 1
35826_ACEOF
35827
35828 fi
35829 fi
eaff0f0d
VZ
35830fi
35831
898beab1
DE
35832if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35833 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35834echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35835 wxUSE_STACKWALKER=no
35836fi
35837
35838
a848cd7e
SC
35839
35840
35841for ac_func in mkstemp mktemp
35842do
35843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35844echo "$as_me:$LINENO: checking for $ac_func" >&5
35845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35846if eval "test \"\${$as_ac_var+set}\" = set"; then
35847 echo $ECHO_N "(cached) $ECHO_C" >&6
35848else
35849 cat >conftest.$ac_ext <<_ACEOF
35850/* confdefs.h. */
35851_ACEOF
35852cat confdefs.h >>conftest.$ac_ext
35853cat >>conftest.$ac_ext <<_ACEOF
35854/* end confdefs.h. */
ac1cb8d3
VS
35855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35857#define $ac_func innocuous_$ac_func
35858
a848cd7e
SC
35859/* System header to define __stub macros and hopefully few prototypes,
35860 which can conflict with char $ac_func (); below.
35861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35862 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35863
a848cd7e
SC
35864#ifdef __STDC__
35865# include <limits.h>
35866#else
35867# include <assert.h>
35868#endif
ac1cb8d3
VS
35869
35870#undef $ac_func
35871
a848cd7e
SC
35872/* Override any gcc2 internal prototype to avoid an error. */
35873#ifdef __cplusplus
35874extern "C"
35875{
35876#endif
35877/* We use char because int might match the return type of a gcc2
35878 builtin and then its argument prototype would still apply. */
35879char $ac_func ();
35880/* The GNU C library defines this for functions which it implements
35881 to always fail with ENOSYS. Some functions are actually named
35882 something starting with __ and the normal name is an alias. */
35883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35884choke me
35885#else
35886char (*f) () = $ac_func;
35887#endif
35888#ifdef __cplusplus
35889}
35890#endif
35891
35892int
35893main ()
35894{
35895return f != $ac_func;
35896 ;
35897 return 0;
35898}
35899_ACEOF
35900rm -f conftest.$ac_objext conftest$ac_exeext
35901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35902 (eval $ac_link) 2>conftest.er1
a848cd7e 35903 ac_status=$?
ac1cb8d3
VS
35904 grep -v '^ *+' conftest.er1 >conftest.err
35905 rm -f conftest.er1
35906 cat conftest.err >&5
a848cd7e
SC
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); } &&
c9a66001 35909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35911 (eval $ac_try) 2>&5
35912 ac_status=$?
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); }; } &&
35915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35917 (eval $ac_try) 2>&5
35918 ac_status=$?
35919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35920 (exit $ac_status); }; }; then
35921 eval "$as_ac_var=yes"
35922else
35923 echo "$as_me: failed program was:" >&5
35924sed 's/^/| /' conftest.$ac_ext >&5
35925
35926eval "$as_ac_var=no"
35927fi
ac1cb8d3
VS
35928rm -f conftest.err conftest.$ac_objext \
35929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35930fi
35931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35933if test `eval echo '${'$as_ac_var'}'` = yes; then
35934 cat >>confdefs.h <<_ACEOF
35935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35936_ACEOF
35937 break
35938fi
35939done
35940
35941
35942echo "$as_me:$LINENO: checking for statfs" >&5
35943echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35944if test "${wx_cv_func_statfs+set}" = set; then
35945 echo $ECHO_N "(cached) $ECHO_C" >&6
35946else
35947 cat >conftest.$ac_ext <<_ACEOF
35948/* confdefs.h. */
35949_ACEOF
35950cat confdefs.h >>conftest.$ac_ext
35951cat >>conftest.$ac_ext <<_ACEOF
35952/* end confdefs.h. */
35953
35954 #if defined(__BSD__)
84ae7ca4
VZ
35955 #include <sys/param.h>
35956 #include <sys/mount.h>
a848cd7e 35957 #else
84ae7ca4 35958 #include <sys/vfs.h>
a848cd7e
SC
35959 #endif
35960
35961int
35962main ()
35963{
35964
35965 long l;
35966 struct statfs fs;
35967 statfs("/", &fs);
35968 l = fs.f_bsize;
35969 l += fs.f_blocks;
35970 l += fs.f_bavail;
35971
35972 ;
35973 return 0;
35974}
35975_ACEOF
35976rm -f conftest.$ac_objext
35977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35978 (eval $ac_compile) 2>conftest.er1
a848cd7e 35979 ac_status=$?
ac1cb8d3
VS
35980 grep -v '^ *+' conftest.er1 >conftest.err
35981 rm -f conftest.er1
35982 cat conftest.err >&5
a848cd7e
SC
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); } &&
c9a66001 35985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35987 (eval $ac_try) 2>&5
35988 ac_status=$?
35989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35990 (exit $ac_status); }; } &&
35991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35993 (eval $ac_try) 2>&5
35994 ac_status=$?
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); }; }; then
84ae7ca4 35997 wx_cv_func_statfs=yes
a848cd7e
SC
35998else
35999 echo "$as_me: failed program was:" >&5
36000sed 's/^/| /' conftest.$ac_ext >&5
36001
84ae7ca4 36002wx_cv_func_statfs=no
a848cd7e
SC
36003
36004fi
ac1cb8d3 36005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36006
36007fi
36008echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36009echo "${ECHO_T}$wx_cv_func_statfs" >&6
36010
36011if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36012 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36013echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36014if test "${wx_cv_func_statfs_decl+set}" = set; then
36015 echo $ECHO_N "(cached) $ECHO_C" >&6
36016else
0683aca6
VZ
36017 cat >conftest.$ac_ext <<_ACEOF
36018/* confdefs.h. */
36019_ACEOF
36020cat confdefs.h >>conftest.$ac_ext
36021cat >>conftest.$ac_ext <<_ACEOF
36022/* end confdefs.h. */
84ae7ca4 36023
0683aca6
VZ
36024 #if defined(__BSD__)
36025 #include <sys/param.h>
36026 #include <sys/mount.h>
36027 #else
36028 #include <sys/vfs.h>
36029 #endif
36030
36031int
36032main ()
36033{
36034
36035 struct statfs fs;
36036 statfs("", &fs);
36037
36038 ;
36039 return 0;
36040}
36041_ACEOF
36042rm -f conftest.$ac_objext
36043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36044 (eval $ac_compile) 2>conftest.er1
36045 ac_status=$?
36046 grep -v '^ *+' conftest.er1 >conftest.err
36047 rm -f conftest.er1
36048 cat conftest.err >&5
36049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 (exit $ac_status); } &&
c9a66001 36051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
36052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36053 (eval $ac_try) 2>&5
36054 ac_status=$?
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); }; } &&
36057 { ac_try='test -s conftest.$ac_objext'
36058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36059 (eval $ac_try) 2>&5
36060 ac_status=$?
36061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062 (exit $ac_status); }; }; then
36063 wx_cv_func_statfs_decl=yes
36064else
36065 echo "$as_me: failed program was:" >&5
36066sed 's/^/| /' conftest.$ac_ext >&5
36067
36068wx_cv_func_statfs_decl=no
36069
36070fi
36071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
36072
36073fi
36074echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36075echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
36076
36077 if test "$wx_cv_func_statfs_decl" = "yes"; then
36078 cat >>confdefs.h <<\_ACEOF
36079#define HAVE_STATFS_DECL 1
36080_ACEOF
36081
36082 fi
36083
a848cd7e
SC
36084 wx_cv_type_statvfs_t="struct statfs"
36085 cat >>confdefs.h <<\_ACEOF
36086#define HAVE_STATFS 1
36087_ACEOF
36088
36089else
36090 echo "$as_me:$LINENO: checking for statvfs" >&5
36091echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36092if test "${wx_cv_func_statvfs+set}" = set; then
36093 echo $ECHO_N "(cached) $ECHO_C" >&6
36094else
36095 cat >conftest.$ac_ext <<_ACEOF
36096/* confdefs.h. */
36097_ACEOF
36098cat confdefs.h >>conftest.$ac_ext
36099cat >>conftest.$ac_ext <<_ACEOF
36100/* end confdefs.h. */
36101
36102 #include <stddef.h>
36103 #include <sys/statvfs.h>
36104
36105int
36106main ()
36107{
36108
36109 statvfs("/", NULL);
36110
36111 ;
36112 return 0;
36113}
36114_ACEOF
36115rm -f conftest.$ac_objext
36116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36117 (eval $ac_compile) 2>conftest.er1
a848cd7e 36118 ac_status=$?
ac1cb8d3
VS
36119 grep -v '^ *+' conftest.er1 >conftest.err
36120 rm -f conftest.er1
36121 cat conftest.err >&5
a848cd7e
SC
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); } &&
c9a66001 36124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36126 (eval $ac_try) 2>&5
36127 ac_status=$?
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); }; } &&
36130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36132 (eval $ac_try) 2>&5
36133 ac_status=$?
36134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135 (exit $ac_status); }; }; then
36136 wx_cv_func_statvfs=yes
36137else
36138 echo "$as_me: failed program was:" >&5
36139sed 's/^/| /' conftest.$ac_ext >&5
36140
36141wx_cv_func_statvfs=no
36142
36143fi
ac1cb8d3 36144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36145
36146fi
36147echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36148echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36149
36150 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 36151 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
36152echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36153if test "${wx_cv_type_statvfs_t+set}" = set; then
36154 echo $ECHO_N "(cached) $ECHO_C" >&6
36155else
36156 cat >conftest.$ac_ext <<_ACEOF
36157/* confdefs.h. */
36158_ACEOF
36159cat confdefs.h >>conftest.$ac_ext
36160cat >>conftest.$ac_ext <<_ACEOF
36161/* end confdefs.h. */
36162
36163 #include <sys/statvfs.h>
36164
36165int
36166main ()
36167{
36168
36169 long l;
36170 statvfs_t fs;
36171 statvfs("/", &fs);
36172 l = fs.f_bsize;
36173 l += fs.f_blocks;
36174 l += fs.f_bavail;
36175
36176 ;
36177 return 0;
36178}
36179_ACEOF
36180rm -f conftest.$ac_objext
36181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36182 (eval $ac_compile) 2>conftest.er1
a848cd7e 36183 ac_status=$?
ac1cb8d3
VS
36184 grep -v '^ *+' conftest.er1 >conftest.err
36185 rm -f conftest.er1
36186 cat conftest.err >&5
a848cd7e
SC
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); } &&
c9a66001 36189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36191 (eval $ac_try) 2>&5
36192 ac_status=$?
36193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36194 (exit $ac_status); }; } &&
36195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36197 (eval $ac_try) 2>&5
36198 ac_status=$?
36199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36200 (exit $ac_status); }; }; then
36201 wx_cv_type_statvfs_t=statvfs_t
36202else
36203 echo "$as_me: failed program was:" >&5
36204sed 's/^/| /' conftest.$ac_ext >&5
36205
36206
36207 cat >conftest.$ac_ext <<_ACEOF
36208/* confdefs.h. */
36209_ACEOF
36210cat confdefs.h >>conftest.$ac_ext
36211cat >>conftest.$ac_ext <<_ACEOF
36212/* end confdefs.h. */
36213
36214 #include <sys/statvfs.h>
36215
36216int
36217main ()
36218{
36219
36220 long l;
36221 struct statvfs fs;
36222 statvfs("/", &fs);
36223 l = fs.f_bsize;
36224 l += fs.f_blocks;
36225 l += fs.f_bavail;
36226
36227 ;
36228 return 0;
36229}
36230_ACEOF
36231rm -f conftest.$ac_objext
36232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36233 (eval $ac_compile) 2>conftest.er1
a848cd7e 36234 ac_status=$?
ac1cb8d3
VS
36235 grep -v '^ *+' conftest.er1 >conftest.err
36236 rm -f conftest.er1
36237 cat conftest.err >&5
a848cd7e
SC
36238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); } &&
c9a66001 36240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36242 (eval $ac_try) 2>&5
36243 ac_status=$?
36244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36245 (exit $ac_status); }; } &&
36246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248 (eval $ac_try) 2>&5
36249 ac_status=$?
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); }; }; then
36252 wx_cv_type_statvfs_t="struct statvfs"
36253else
36254 echo "$as_me: failed program was:" >&5
36255sed 's/^/| /' conftest.$ac_ext >&5
36256
36257wx_cv_type_statvfs_t="unknown"
36258
36259fi
ac1cb8d3 36260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36261
36262
36263fi
ac1cb8d3 36264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36265
36266fi
36267echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36268echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36269
a848cd7e
SC
36270 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36271 cat >>confdefs.h <<\_ACEOF
36272#define HAVE_STATVFS 1
36273_ACEOF
36274
36275 fi
36276 else
36277 wx_cv_type_statvfs_t="unknown"
36278 fi
36279fi
36280
36281if test "$wx_cv_type_statvfs_t" != "unknown"; then
36282 cat >>confdefs.h <<_ACEOF
36283#define WX_STATFS_T $wx_cv_type_statvfs_t
36284_ACEOF
36285
36286else
36287 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36288echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36289fi
36290
36291if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36292
36293
36294for ac_func in fcntl flock
36295do
36296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36297echo "$as_me:$LINENO: checking for $ac_func" >&5
36298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36299if eval "test \"\${$as_ac_var+set}\" = set"; then
36300 echo $ECHO_N "(cached) $ECHO_C" >&6
36301else
36302 cat >conftest.$ac_ext <<_ACEOF
36303/* confdefs.h. */
36304_ACEOF
36305cat confdefs.h >>conftest.$ac_ext
36306cat >>conftest.$ac_ext <<_ACEOF
36307/* end confdefs.h. */
ac1cb8d3
VS
36308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36310#define $ac_func innocuous_$ac_func
36311
a848cd7e
SC
36312/* System header to define __stub macros and hopefully few prototypes,
36313 which can conflict with char $ac_func (); below.
36314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36315 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36316
a848cd7e
SC
36317#ifdef __STDC__
36318# include <limits.h>
36319#else
36320# include <assert.h>
36321#endif
ac1cb8d3
VS
36322
36323#undef $ac_func
36324
a848cd7e
SC
36325/* Override any gcc2 internal prototype to avoid an error. */
36326#ifdef __cplusplus
36327extern "C"
36328{
36329#endif
36330/* We use char because int might match the return type of a gcc2
36331 builtin and then its argument prototype would still apply. */
36332char $ac_func ();
36333/* The GNU C library defines this for functions which it implements
36334 to always fail with ENOSYS. Some functions are actually named
36335 something starting with __ and the normal name is an alias. */
36336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36337choke me
36338#else
36339char (*f) () = $ac_func;
36340#endif
36341#ifdef __cplusplus
36342}
36343#endif
36344
36345int
36346main ()
36347{
36348return f != $ac_func;
36349 ;
36350 return 0;
36351}
36352_ACEOF
36353rm -f conftest.$ac_objext conftest$ac_exeext
36354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36355 (eval $ac_link) 2>conftest.er1
a848cd7e 36356 ac_status=$?
ac1cb8d3
VS
36357 grep -v '^ *+' conftest.er1 >conftest.err
36358 rm -f conftest.er1
36359 cat conftest.err >&5
a848cd7e
SC
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); } &&
c9a66001 36362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36364 (eval $ac_try) 2>&5
36365 ac_status=$?
36366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); }; } &&
36368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36370 (eval $ac_try) 2>&5
36371 ac_status=$?
36372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36373 (exit $ac_status); }; }; then
36374 eval "$as_ac_var=yes"
36375else
36376 echo "$as_me: failed program was:" >&5
36377sed 's/^/| /' conftest.$ac_ext >&5
36378
36379eval "$as_ac_var=no"
36380fi
ac1cb8d3
VS
36381rm -f conftest.err conftest.$ac_objext \
36382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36383fi
36384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36386if test `eval echo '${'$as_ac_var'}'` = yes; then
36387 cat >>confdefs.h <<_ACEOF
36388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36389_ACEOF
36390 break
36391fi
36392done
36393
36394
36395 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36396 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36397echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36398 wxUSE_SNGLINST_CHECKER=no
36399 fi
36400fi
36401
36402
36403for ac_func in timegm
36404do
36405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36406echo "$as_me:$LINENO: checking for $ac_func" >&5
36407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36408if eval "test \"\${$as_ac_var+set}\" = set"; then
36409 echo $ECHO_N "(cached) $ECHO_C" >&6
36410else
36411 cat >conftest.$ac_ext <<_ACEOF
36412/* confdefs.h. */
36413_ACEOF
36414cat confdefs.h >>conftest.$ac_ext
36415cat >>conftest.$ac_ext <<_ACEOF
36416/* end confdefs.h. */
ac1cb8d3
VS
36417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36419#define $ac_func innocuous_$ac_func
36420
a848cd7e
SC
36421/* System header to define __stub macros and hopefully few prototypes,
36422 which can conflict with char $ac_func (); below.
36423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36424 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36425
a848cd7e
SC
36426#ifdef __STDC__
36427# include <limits.h>
36428#else
36429# include <assert.h>
36430#endif
ac1cb8d3
VS
36431
36432#undef $ac_func
36433
a848cd7e
SC
36434/* Override any gcc2 internal prototype to avoid an error. */
36435#ifdef __cplusplus
36436extern "C"
36437{
36438#endif
36439/* We use char because int might match the return type of a gcc2
36440 builtin and then its argument prototype would still apply. */
36441char $ac_func ();
36442/* The GNU C library defines this for functions which it implements
36443 to always fail with ENOSYS. Some functions are actually named
36444 something starting with __ and the normal name is an alias. */
36445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36446choke me
36447#else
36448char (*f) () = $ac_func;
36449#endif
36450#ifdef __cplusplus
36451}
36452#endif
36453
36454int
36455main ()
36456{
36457return f != $ac_func;
36458 ;
36459 return 0;
36460}
36461_ACEOF
36462rm -f conftest.$ac_objext conftest$ac_exeext
36463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36464 (eval $ac_link) 2>conftest.er1
a848cd7e 36465 ac_status=$?
ac1cb8d3
VS
36466 grep -v '^ *+' conftest.er1 >conftest.err
36467 rm -f conftest.er1
36468 cat conftest.err >&5
a848cd7e
SC
36469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36470 (exit $ac_status); } &&
c9a66001 36471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36473 (eval $ac_try) 2>&5
36474 ac_status=$?
36475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36476 (exit $ac_status); }; } &&
36477 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36479 (eval $ac_try) 2>&5
36480 ac_status=$?
36481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482 (exit $ac_status); }; }; then
36483 eval "$as_ac_var=yes"
36484else
36485 echo "$as_me: failed program was:" >&5
36486sed 's/^/| /' conftest.$ac_ext >&5
36487
36488eval "$as_ac_var=no"
36489fi
ac1cb8d3
VS
36490rm -f conftest.err conftest.$ac_objext \
36491 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36492fi
36493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36495if test `eval echo '${'$as_ac_var'}'` = yes; then
36496 cat >>confdefs.h <<_ACEOF
36497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36498_ACEOF
36499
36500fi
36501done
36502
36503
36504
36505
36506for ac_func in putenv setenv
36507do
36508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36509echo "$as_me:$LINENO: checking for $ac_func" >&5
36510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36511if eval "test \"\${$as_ac_var+set}\" = set"; then
36512 echo $ECHO_N "(cached) $ECHO_C" >&6
36513else
36514 cat >conftest.$ac_ext <<_ACEOF
36515/* confdefs.h. */
36516_ACEOF
36517cat confdefs.h >>conftest.$ac_ext
36518cat >>conftest.$ac_ext <<_ACEOF
36519/* end confdefs.h. */
ac1cb8d3
VS
36520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36522#define $ac_func innocuous_$ac_func
36523
a848cd7e
SC
36524/* System header to define __stub macros and hopefully few prototypes,
36525 which can conflict with char $ac_func (); below.
36526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36527 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36528
a848cd7e
SC
36529#ifdef __STDC__
36530# include <limits.h>
36531#else
36532# include <assert.h>
36533#endif
ac1cb8d3
VS
36534
36535#undef $ac_func
36536
a848cd7e
SC
36537/* Override any gcc2 internal prototype to avoid an error. */
36538#ifdef __cplusplus
36539extern "C"
36540{
36541#endif
36542/* We use char because int might match the return type of a gcc2
36543 builtin and then its argument prototype would still apply. */
36544char $ac_func ();
36545/* The GNU C library defines this for functions which it implements
36546 to always fail with ENOSYS. Some functions are actually named
36547 something starting with __ and the normal name is an alias. */
36548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36549choke me
36550#else
36551char (*f) () = $ac_func;
36552#endif
36553#ifdef __cplusplus
36554}
36555#endif
36556
36557int
36558main ()
36559{
36560return f != $ac_func;
36561 ;
36562 return 0;
36563}
36564_ACEOF
36565rm -f conftest.$ac_objext conftest$ac_exeext
36566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36567 (eval $ac_link) 2>conftest.er1
a848cd7e 36568 ac_status=$?
ac1cb8d3
VS
36569 grep -v '^ *+' conftest.er1 >conftest.err
36570 rm -f conftest.er1
36571 cat conftest.err >&5
a848cd7e
SC
36572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573 (exit $ac_status); } &&
c9a66001 36574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36576 (eval $ac_try) 2>&5
36577 ac_status=$?
36578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579 (exit $ac_status); }; } &&
36580 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36582 (eval $ac_try) 2>&5
36583 ac_status=$?
36584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585 (exit $ac_status); }; }; then
36586 eval "$as_ac_var=yes"
36587else
36588 echo "$as_me: failed program was:" >&5
36589sed 's/^/| /' conftest.$ac_ext >&5
36590
36591eval "$as_ac_var=no"
36592fi
ac1cb8d3
VS
36593rm -f conftest.err conftest.$ac_objext \
36594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36595fi
36596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36598if test `eval echo '${'$as_ac_var'}'` = yes; then
36599 cat >>confdefs.h <<_ACEOF
36600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36601_ACEOF
36602 break
36603fi
36604done
36605
36606
36607HAVE_SOME_SLEEP_FUNC=0
36608if test "$USE_BEOS" = 1; then
36609 cat >>confdefs.h <<\_ACEOF
36610#define HAVE_SLEEP 1
36611_ACEOF
36612
36613 HAVE_SOME_SLEEP_FUNC=1
36614fi
36615
36616if test "$USE_DARWIN" = 1; then
36617 cat >>confdefs.h <<\_ACEOF
36618#define HAVE_USLEEP 1
36619_ACEOF
36620
36621 HAVE_SOME_SLEEP_FUNC=1
36622fi
36623
36624if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36625 POSIX4_LINK=
36626
36627for ac_func in nanosleep
36628do
36629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36630echo "$as_me:$LINENO: checking for $ac_func" >&5
36631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36632if eval "test \"\${$as_ac_var+set}\" = set"; then
36633 echo $ECHO_N "(cached) $ECHO_C" >&6
36634else
36635 cat >conftest.$ac_ext <<_ACEOF
36636/* confdefs.h. */
36637_ACEOF
36638cat confdefs.h >>conftest.$ac_ext
36639cat >>conftest.$ac_ext <<_ACEOF
36640/* end confdefs.h. */
ac1cb8d3
VS
36641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36643#define $ac_func innocuous_$ac_func
36644
a848cd7e
SC
36645/* System header to define __stub macros and hopefully few prototypes,
36646 which can conflict with char $ac_func (); below.
36647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36648 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36649
a848cd7e
SC
36650#ifdef __STDC__
36651# include <limits.h>
36652#else
36653# include <assert.h>
36654#endif
ac1cb8d3
VS
36655
36656#undef $ac_func
36657
a848cd7e
SC
36658/* Override any gcc2 internal prototype to avoid an error. */
36659#ifdef __cplusplus
36660extern "C"
36661{
36662#endif
36663/* We use char because int might match the return type of a gcc2
36664 builtin and then its argument prototype would still apply. */
36665char $ac_func ();
36666/* The GNU C library defines this for functions which it implements
36667 to always fail with ENOSYS. Some functions are actually named
36668 something starting with __ and the normal name is an alias. */
36669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36670choke me
36671#else
36672char (*f) () = $ac_func;
36673#endif
36674#ifdef __cplusplus
36675}
36676#endif
36677
36678int
36679main ()
36680{
36681return f != $ac_func;
36682 ;
36683 return 0;
36684}
36685_ACEOF
36686rm -f conftest.$ac_objext conftest$ac_exeext
36687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36688 (eval $ac_link) 2>conftest.er1
a848cd7e 36689 ac_status=$?
ac1cb8d3
VS
36690 grep -v '^ *+' conftest.er1 >conftest.err
36691 rm -f conftest.er1
36692 cat conftest.err >&5
a848cd7e
SC
36693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36694 (exit $ac_status); } &&
c9a66001 36695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36697 (eval $ac_try) 2>&5
36698 ac_status=$?
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); }; } &&
36701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703 (eval $ac_try) 2>&5
36704 ac_status=$?
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); }; }; then
36707 eval "$as_ac_var=yes"
36708else
36709 echo "$as_me: failed program was:" >&5
36710sed 's/^/| /' conftest.$ac_ext >&5
36711
36712eval "$as_ac_var=no"
36713fi
ac1cb8d3
VS
36714rm -f conftest.err conftest.$ac_objext \
36715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36716fi
36717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36719if test `eval echo '${'$as_ac_var'}'` = yes; then
36720 cat >>confdefs.h <<_ACEOF
36721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36722_ACEOF
36723 cat >>confdefs.h <<\_ACEOF
36724#define HAVE_NANOSLEEP 1
36725_ACEOF
36726
36727else
36728
36729 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36730echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36731if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36732 echo $ECHO_N "(cached) $ECHO_C" >&6
36733else
36734 ac_check_lib_save_LIBS=$LIBS
36735LIBS="-lposix4 $LIBS"
36736cat >conftest.$ac_ext <<_ACEOF
36737/* confdefs.h. */
36738_ACEOF
36739cat confdefs.h >>conftest.$ac_ext
36740cat >>conftest.$ac_ext <<_ACEOF
36741/* end confdefs.h. */
36742
36743/* Override any gcc2 internal prototype to avoid an error. */
36744#ifdef __cplusplus
36745extern "C"
36746#endif
36747/* We use char because int might match the return type of a gcc2
36748 builtin and then its argument prototype would still apply. */
36749char nanosleep ();
36750int
36751main ()
36752{
36753nanosleep ();
36754 ;
36755 return 0;
36756}
36757_ACEOF
36758rm -f conftest.$ac_objext conftest$ac_exeext
36759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36760 (eval $ac_link) 2>conftest.er1
a848cd7e 36761 ac_status=$?
ac1cb8d3
VS
36762 grep -v '^ *+' conftest.er1 >conftest.err
36763 rm -f conftest.er1
36764 cat conftest.err >&5
a848cd7e
SC
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); } &&
c9a66001 36767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36769 (eval $ac_try) 2>&5
36770 ac_status=$?
36771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772 (exit $ac_status); }; } &&
36773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36775 (eval $ac_try) 2>&5
36776 ac_status=$?
36777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778 (exit $ac_status); }; }; then
36779 ac_cv_lib_posix4_nanosleep=yes
36780else
36781 echo "$as_me: failed program was:" >&5
36782sed 's/^/| /' conftest.$ac_ext >&5
36783
36784ac_cv_lib_posix4_nanosleep=no
36785fi
ac1cb8d3
VS
36786rm -f conftest.err conftest.$ac_objext \
36787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36788LIBS=$ac_check_lib_save_LIBS
36789fi
36790echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36791echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36792if test $ac_cv_lib_posix4_nanosleep = yes; then
36793
36794 cat >>confdefs.h <<\_ACEOF
36795#define HAVE_NANOSLEEP 1
36796_ACEOF
36797
36798 POSIX4_LINK=" -lposix4"
36799
36800else
36801
36802
36803for ac_func in usleep
36804do
36805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36806echo "$as_me:$LINENO: checking for $ac_func" >&5
36807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36808if eval "test \"\${$as_ac_var+set}\" = set"; then
36809 echo $ECHO_N "(cached) $ECHO_C" >&6
36810else
36811 cat >conftest.$ac_ext <<_ACEOF
36812/* confdefs.h. */
36813_ACEOF
36814cat confdefs.h >>conftest.$ac_ext
36815cat >>conftest.$ac_ext <<_ACEOF
36816/* end confdefs.h. */
ac1cb8d3
VS
36817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36819#define $ac_func innocuous_$ac_func
36820
a848cd7e
SC
36821/* System header to define __stub macros and hopefully few prototypes,
36822 which can conflict with char $ac_func (); below.
36823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36824 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36825
a848cd7e
SC
36826#ifdef __STDC__
36827# include <limits.h>
36828#else
36829# include <assert.h>
36830#endif
ac1cb8d3
VS
36831
36832#undef $ac_func
36833
a848cd7e
SC
36834/* Override any gcc2 internal prototype to avoid an error. */
36835#ifdef __cplusplus
36836extern "C"
36837{
36838#endif
36839/* We use char because int might match the return type of a gcc2
36840 builtin and then its argument prototype would still apply. */
36841char $ac_func ();
36842/* The GNU C library defines this for functions which it implements
36843 to always fail with ENOSYS. Some functions are actually named
36844 something starting with __ and the normal name is an alias. */
36845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36846choke me
36847#else
36848char (*f) () = $ac_func;
36849#endif
36850#ifdef __cplusplus
36851}
36852#endif
36853
36854int
36855main ()
36856{
36857return f != $ac_func;
36858 ;
36859 return 0;
36860}
36861_ACEOF
36862rm -f conftest.$ac_objext conftest$ac_exeext
36863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36864 (eval $ac_link) 2>conftest.er1
a848cd7e 36865 ac_status=$?
ac1cb8d3
VS
36866 grep -v '^ *+' conftest.er1 >conftest.err
36867 rm -f conftest.er1
36868 cat conftest.err >&5
a848cd7e
SC
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); } &&
c9a66001 36871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873 (eval $ac_try) 2>&5
36874 ac_status=$?
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); }; } &&
36877 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879 (eval $ac_try) 2>&5
36880 ac_status=$?
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); }; }; then
36883 eval "$as_ac_var=yes"
36884else
36885 echo "$as_me: failed program was:" >&5
36886sed 's/^/| /' conftest.$ac_ext >&5
36887
36888eval "$as_ac_var=no"
36889fi
ac1cb8d3
VS
36890rm -f conftest.err conftest.$ac_objext \
36891 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36892fi
36893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36895if test `eval echo '${'$as_ac_var'}'` = yes; then
36896 cat >>confdefs.h <<_ACEOF
36897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36898_ACEOF
36899 cat >>confdefs.h <<\_ACEOF
36900#define HAVE_USLEEP 1
36901_ACEOF
36902
36903else
36904 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36905echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36906
36907fi
36908done
36909
36910
36911
36912fi
36913
36914
36915
36916fi
36917done
36918
36919fi
36920
36921
36922
36923for ac_func in uname gethostname
36924do
36925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36926echo "$as_me:$LINENO: checking for $ac_func" >&5
36927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36928if eval "test \"\${$as_ac_var+set}\" = set"; then
36929 echo $ECHO_N "(cached) $ECHO_C" >&6
36930else
36931 cat >conftest.$ac_ext <<_ACEOF
36932/* confdefs.h. */
36933_ACEOF
36934cat confdefs.h >>conftest.$ac_ext
36935cat >>conftest.$ac_ext <<_ACEOF
36936/* end confdefs.h. */
ac1cb8d3
VS
36937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36939#define $ac_func innocuous_$ac_func
36940
a848cd7e
SC
36941/* System header to define __stub macros and hopefully few prototypes,
36942 which can conflict with char $ac_func (); below.
36943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36944 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36945
a848cd7e
SC
36946#ifdef __STDC__
36947# include <limits.h>
36948#else
36949# include <assert.h>
36950#endif
ac1cb8d3
VS
36951
36952#undef $ac_func
36953
a848cd7e
SC
36954/* Override any gcc2 internal prototype to avoid an error. */
36955#ifdef __cplusplus
36956extern "C"
36957{
36958#endif
36959/* We use char because int might match the return type of a gcc2
36960 builtin and then its argument prototype would still apply. */
36961char $ac_func ();
36962/* The GNU C library defines this for functions which it implements
36963 to always fail with ENOSYS. Some functions are actually named
36964 something starting with __ and the normal name is an alias. */
36965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36966choke me
36967#else
36968char (*f) () = $ac_func;
36969#endif
36970#ifdef __cplusplus
36971}
36972#endif
36973
36974int
36975main ()
36976{
36977return f != $ac_func;
36978 ;
36979 return 0;
36980}
36981_ACEOF
36982rm -f conftest.$ac_objext conftest$ac_exeext
36983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36984 (eval $ac_link) 2>conftest.er1
a848cd7e 36985 ac_status=$?
ac1cb8d3
VS
36986 grep -v '^ *+' conftest.er1 >conftest.err
36987 rm -f conftest.er1
36988 cat conftest.err >&5
a848cd7e
SC
36989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990 (exit $ac_status); } &&
c9a66001 36991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36993 (eval $ac_try) 2>&5
36994 ac_status=$?
36995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996 (exit $ac_status); }; } &&
36997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36999 (eval $ac_try) 2>&5
37000 ac_status=$?
37001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002 (exit $ac_status); }; }; then
37003 eval "$as_ac_var=yes"
37004else
37005 echo "$as_me: failed program was:" >&5
37006sed 's/^/| /' conftest.$ac_ext >&5
37007
37008eval "$as_ac_var=no"
37009fi
ac1cb8d3
VS
37010rm -f conftest.err conftest.$ac_objext \
37011 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37012fi
37013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37014echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37015if test `eval echo '${'$as_ac_var'}'` = yes; then
37016 cat >>confdefs.h <<_ACEOF
37017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37018_ACEOF
37019 break
37020fi
37021done
37022
37023
56632e81
MW
37024
37025 for wx_func in strtok_r
37026 do
37027 echo "$as_me:$LINENO: checking for $wx_func" >&5
37028echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37029if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37030 echo $ECHO_N "(cached) $ECHO_C" >&6
37031else
56632e81
MW
37032
37033 cat >conftest.$ac_ext <<_ACEOF
37034
37035 /* confdefs.h. */
a848cd7e
SC
37036_ACEOF
37037cat confdefs.h >>conftest.$ac_ext
37038cat >>conftest.$ac_ext <<_ACEOF
37039/* end confdefs.h. */
56632e81
MW
37040
37041 #define _REENTRANT
37042 $ac_includes_default
37043
a848cd7e
SC
37044int
37045main ()
37046{
56632e81
MW
37047
37048 #ifndef $wx_func
37049 &$wx_func;
37050 #endif
37051
5acfd58d 37052
a848cd7e
SC
37053 ;
37054 return 0;
37055}
56632e81 37056
a848cd7e 37057_ACEOF
56632e81
MW
37058rm -f conftest.$ac_objext conftest$ac_exeext
37059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37060 (eval $ac_link) 2>conftest.er1
a848cd7e 37061 ac_status=$?
ac1cb8d3
VS
37062 grep -v '^ *+' conftest.er1 >conftest.err
37063 rm -f conftest.er1
37064 cat conftest.err >&5
a848cd7e
SC
37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); } &&
c9a66001 37067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37069 (eval $ac_try) 2>&5
37070 ac_status=$?
37071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37072 (exit $ac_status); }; } &&
56632e81 37073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37075 (eval $ac_try) 2>&5
37076 ac_status=$?
37077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078 (exit $ac_status); }; }; then
56632e81 37079 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
37080else
37081 echo "$as_me: failed program was:" >&5
37082sed 's/^/| /' conftest.$ac_ext >&5
37083
56632e81 37084eval wx_cv_func_$wx_func=no
a848cd7e 37085fi
56632e81
MW
37086rm -f conftest.err conftest.$ac_objext \
37087 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37088
56632e81
MW
37089fi
37090echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37091echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 37092
56632e81
MW
37093 if eval test \$wx_cv_func_$wx_func = yes
37094 then
37095 cat >>confdefs.h <<_ACEOF
37096#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
37097_ACEOF
37098
37099
56632e81
MW
37100 else
37101 :
5acfd58d 37102
56632e81
MW
37103 fi
37104 done
5acfd58d 37105
a848cd7e 37106
a848cd7e
SC
37107INET_LINK=
37108
37109for ac_func in inet_addr
37110do
37111as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37112echo "$as_me:$LINENO: checking for $ac_func" >&5
37113echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37114if eval "test \"\${$as_ac_var+set}\" = set"; then
37115 echo $ECHO_N "(cached) $ECHO_C" >&6
37116else
37117 cat >conftest.$ac_ext <<_ACEOF
37118/* confdefs.h. */
37119_ACEOF
37120cat confdefs.h >>conftest.$ac_ext
37121cat >>conftest.$ac_ext <<_ACEOF
37122/* end confdefs.h. */
ac1cb8d3
VS
37123/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37125#define $ac_func innocuous_$ac_func
37126
a848cd7e
SC
37127/* System header to define __stub macros and hopefully few prototypes,
37128 which can conflict with char $ac_func (); below.
37129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37130 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37131
a848cd7e
SC
37132#ifdef __STDC__
37133# include <limits.h>
37134#else
37135# include <assert.h>
37136#endif
ac1cb8d3
VS
37137
37138#undef $ac_func
37139
a848cd7e
SC
37140/* Override any gcc2 internal prototype to avoid an error. */
37141#ifdef __cplusplus
37142extern "C"
37143{
37144#endif
37145/* We use char because int might match the return type of a gcc2
37146 builtin and then its argument prototype would still apply. */
37147char $ac_func ();
37148/* The GNU C library defines this for functions which it implements
37149 to always fail with ENOSYS. Some functions are actually named
37150 something starting with __ and the normal name is an alias. */
37151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37152choke me
37153#else
37154char (*f) () = $ac_func;
37155#endif
37156#ifdef __cplusplus
37157}
37158#endif
37159
37160int
37161main ()
37162{
37163return f != $ac_func;
37164 ;
37165 return 0;
37166}
37167_ACEOF
37168rm -f conftest.$ac_objext conftest$ac_exeext
37169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37170 (eval $ac_link) 2>conftest.er1
a848cd7e 37171 ac_status=$?
ac1cb8d3
VS
37172 grep -v '^ *+' conftest.er1 >conftest.err
37173 rm -f conftest.er1
37174 cat conftest.err >&5
a848cd7e
SC
37175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37176 (exit $ac_status); } &&
c9a66001 37177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37179 (eval $ac_try) 2>&5
37180 ac_status=$?
37181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37182 (exit $ac_status); }; } &&
37183 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37185 (eval $ac_try) 2>&5
37186 ac_status=$?
37187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37188 (exit $ac_status); }; }; then
37189 eval "$as_ac_var=yes"
37190else
37191 echo "$as_me: failed program was:" >&5
37192sed 's/^/| /' conftest.$ac_ext >&5
37193
37194eval "$as_ac_var=no"
37195fi
ac1cb8d3
VS
37196rm -f conftest.err conftest.$ac_objext \
37197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37198fi
37199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37200echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37201if test `eval echo '${'$as_ac_var'}'` = yes; then
37202 cat >>confdefs.h <<_ACEOF
37203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37204_ACEOF
37205 cat >>confdefs.h <<\_ACEOF
37206#define HAVE_INET_ADDR 1
37207_ACEOF
37208
37209else
37210
37211 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37212echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37213if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37214 echo $ECHO_N "(cached) $ECHO_C" >&6
37215else
37216 ac_check_lib_save_LIBS=$LIBS
37217LIBS="-lnsl $LIBS"
37218cat >conftest.$ac_ext <<_ACEOF
37219/* confdefs.h. */
37220_ACEOF
37221cat confdefs.h >>conftest.$ac_ext
37222cat >>conftest.$ac_ext <<_ACEOF
37223/* end confdefs.h. */
37224
37225/* Override any gcc2 internal prototype to avoid an error. */
37226#ifdef __cplusplus
37227extern "C"
37228#endif
37229/* We use char because int might match the return type of a gcc2
37230 builtin and then its argument prototype would still apply. */
37231char inet_addr ();
37232int
37233main ()
37234{
37235inet_addr ();
37236 ;
37237 return 0;
37238}
37239_ACEOF
37240rm -f conftest.$ac_objext conftest$ac_exeext
37241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37242 (eval $ac_link) 2>conftest.er1
a848cd7e 37243 ac_status=$?
ac1cb8d3
VS
37244 grep -v '^ *+' conftest.er1 >conftest.err
37245 rm -f conftest.er1
37246 cat conftest.err >&5
a848cd7e
SC
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); } &&
c9a66001 37249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37251 (eval $ac_try) 2>&5
37252 ac_status=$?
37253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254 (exit $ac_status); }; } &&
37255 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37257 (eval $ac_try) 2>&5
37258 ac_status=$?
37259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); }; }; then
37261 ac_cv_lib_nsl_inet_addr=yes
37262else
37263 echo "$as_me: failed program was:" >&5
37264sed 's/^/| /' conftest.$ac_ext >&5
37265
37266ac_cv_lib_nsl_inet_addr=no
37267fi
ac1cb8d3
VS
37268rm -f conftest.err conftest.$ac_objext \
37269 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37270LIBS=$ac_check_lib_save_LIBS
37271fi
37272echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37273echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37274if test $ac_cv_lib_nsl_inet_addr = yes; then
37275 INET_LINK="nsl"
37276else
37277
37278 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37279echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37280if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37281 echo $ECHO_N "(cached) $ECHO_C" >&6
37282else
37283 ac_check_lib_save_LIBS=$LIBS
37284LIBS="-lresolv $LIBS"
37285cat >conftest.$ac_ext <<_ACEOF
37286/* confdefs.h. */
37287_ACEOF
37288cat confdefs.h >>conftest.$ac_ext
37289cat >>conftest.$ac_ext <<_ACEOF
37290/* end confdefs.h. */
37291
37292/* Override any gcc2 internal prototype to avoid an error. */
37293#ifdef __cplusplus
37294extern "C"
37295#endif
37296/* We use char because int might match the return type of a gcc2
37297 builtin and then its argument prototype would still apply. */
37298char inet_addr ();
37299int
37300main ()
37301{
37302inet_addr ();
37303 ;
37304 return 0;
37305}
37306_ACEOF
37307rm -f conftest.$ac_objext conftest$ac_exeext
37308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37309 (eval $ac_link) 2>conftest.er1
a848cd7e 37310 ac_status=$?
ac1cb8d3
VS
37311 grep -v '^ *+' conftest.er1 >conftest.err
37312 rm -f conftest.er1
37313 cat conftest.err >&5
a848cd7e
SC
37314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315 (exit $ac_status); } &&
c9a66001 37316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37318 (eval $ac_try) 2>&5
37319 ac_status=$?
37320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); }; } &&
37322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324 (eval $ac_try) 2>&5
37325 ac_status=$?
37326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327 (exit $ac_status); }; }; then
37328 ac_cv_lib_resolv_inet_addr=yes
37329else
37330 echo "$as_me: failed program was:" >&5
37331sed 's/^/| /' conftest.$ac_ext >&5
37332
37333ac_cv_lib_resolv_inet_addr=no
37334fi
ac1cb8d3
VS
37335rm -f conftest.err conftest.$ac_objext \
37336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37337LIBS=$ac_check_lib_save_LIBS
37338fi
37339echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37340echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37341if test $ac_cv_lib_resolv_inet_addr = yes; then
37342 INET_LINK="resolv"
37343else
37344
37345 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37346echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37347if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37348 echo $ECHO_N "(cached) $ECHO_C" >&6
37349else
37350 ac_check_lib_save_LIBS=$LIBS
37351LIBS="-lsocket $LIBS"
37352cat >conftest.$ac_ext <<_ACEOF
37353/* confdefs.h. */
37354_ACEOF
37355cat confdefs.h >>conftest.$ac_ext
37356cat >>conftest.$ac_ext <<_ACEOF
37357/* end confdefs.h. */
37358
37359/* Override any gcc2 internal prototype to avoid an error. */
37360#ifdef __cplusplus
37361extern "C"
37362#endif
37363/* We use char because int might match the return type of a gcc2
37364 builtin and then its argument prototype would still apply. */
37365char inet_addr ();
37366int
37367main ()
37368{
37369inet_addr ();
37370 ;
37371 return 0;
37372}
37373_ACEOF
37374rm -f conftest.$ac_objext conftest$ac_exeext
37375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37376 (eval $ac_link) 2>conftest.er1
a848cd7e 37377 ac_status=$?
ac1cb8d3
VS
37378 grep -v '^ *+' conftest.er1 >conftest.err
37379 rm -f conftest.er1
37380 cat conftest.err >&5
a848cd7e
SC
37381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382 (exit $ac_status); } &&
c9a66001 37383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37385 (eval $ac_try) 2>&5
37386 ac_status=$?
37387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388 (exit $ac_status); }; } &&
37389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37391 (eval $ac_try) 2>&5
37392 ac_status=$?
37393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394 (exit $ac_status); }; }; then
37395 ac_cv_lib_socket_inet_addr=yes
37396else
37397 echo "$as_me: failed program was:" >&5
37398sed 's/^/| /' conftest.$ac_ext >&5
37399
37400ac_cv_lib_socket_inet_addr=no
37401fi
ac1cb8d3
VS
37402rm -f conftest.err conftest.$ac_objext \
37403 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37404LIBS=$ac_check_lib_save_LIBS
37405fi
37406echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37407echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37408if test $ac_cv_lib_socket_inet_addr = yes; then
37409 INET_LINK="socket"
37410
37411fi
37412
37413
37414
37415fi
37416
37417
37418
37419fi
37420
37421
37422
37423fi
37424done
37425
37426
37427
37428for ac_func in inet_aton
37429do
37430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37431echo "$as_me:$LINENO: checking for $ac_func" >&5
37432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37433if eval "test \"\${$as_ac_var+set}\" = set"; then
37434 echo $ECHO_N "(cached) $ECHO_C" >&6
37435else
37436 cat >conftest.$ac_ext <<_ACEOF
37437/* confdefs.h. */
37438_ACEOF
37439cat confdefs.h >>conftest.$ac_ext
37440cat >>conftest.$ac_ext <<_ACEOF
37441/* end confdefs.h. */
ac1cb8d3
VS
37442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37444#define $ac_func innocuous_$ac_func
37445
a848cd7e
SC
37446/* System header to define __stub macros and hopefully few prototypes,
37447 which can conflict with char $ac_func (); below.
37448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37449 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37450
a848cd7e
SC
37451#ifdef __STDC__
37452# include <limits.h>
37453#else
37454# include <assert.h>
37455#endif
ac1cb8d3
VS
37456
37457#undef $ac_func
37458
a848cd7e
SC
37459/* Override any gcc2 internal prototype to avoid an error. */
37460#ifdef __cplusplus
37461extern "C"
37462{
37463#endif
37464/* We use char because int might match the return type of a gcc2
37465 builtin and then its argument prototype would still apply. */
37466char $ac_func ();
37467/* The GNU C library defines this for functions which it implements
37468 to always fail with ENOSYS. Some functions are actually named
37469 something starting with __ and the normal name is an alias. */
37470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37471choke me
37472#else
37473char (*f) () = $ac_func;
37474#endif
37475#ifdef __cplusplus
37476}
37477#endif
37478
37479int
37480main ()
37481{
37482return f != $ac_func;
37483 ;
37484 return 0;
37485}
37486_ACEOF
37487rm -f conftest.$ac_objext conftest$ac_exeext
37488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37489 (eval $ac_link) 2>conftest.er1
a848cd7e 37490 ac_status=$?
ac1cb8d3
VS
37491 grep -v '^ *+' conftest.er1 >conftest.err
37492 rm -f conftest.er1
37493 cat conftest.err >&5
a848cd7e
SC
37494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495 (exit $ac_status); } &&
c9a66001 37496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37498 (eval $ac_try) 2>&5
37499 ac_status=$?
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); }; } &&
37502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37504 (eval $ac_try) 2>&5
37505 ac_status=$?
37506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507 (exit $ac_status); }; }; then
37508 eval "$as_ac_var=yes"
37509else
37510 echo "$as_me: failed program was:" >&5
37511sed 's/^/| /' conftest.$ac_ext >&5
37512
37513eval "$as_ac_var=no"
37514fi
ac1cb8d3
VS
37515rm -f conftest.err conftest.$ac_objext \
37516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37517fi
37518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37520if test `eval echo '${'$as_ac_var'}'` = yes; then
37521 cat >>confdefs.h <<_ACEOF
37522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37523_ACEOF
37524 cat >>confdefs.h <<\_ACEOF
37525#define HAVE_INET_ATON 1
37526_ACEOF
37527
37528else
37529
37530 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37531echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37532echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37533if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37534 echo $ECHO_N "(cached) $ECHO_C" >&6
37535else
37536 ac_check_lib_save_LIBS=$LIBS
37537LIBS="-l$INET_LINK $LIBS"
37538cat >conftest.$ac_ext <<_ACEOF
37539/* confdefs.h. */
37540_ACEOF
37541cat confdefs.h >>conftest.$ac_ext
37542cat >>conftest.$ac_ext <<_ACEOF
37543/* end confdefs.h. */
37544
37545/* Override any gcc2 internal prototype to avoid an error. */
37546#ifdef __cplusplus
37547extern "C"
37548#endif
37549/* We use char because int might match the return type of a gcc2
37550 builtin and then its argument prototype would still apply. */
37551char inet_aton ();
37552int
37553main ()
37554{
37555inet_aton ();
37556 ;
37557 return 0;
37558}
37559_ACEOF
37560rm -f conftest.$ac_objext conftest$ac_exeext
37561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37562 (eval $ac_link) 2>conftest.er1
a848cd7e 37563 ac_status=$?
ac1cb8d3
VS
37564 grep -v '^ *+' conftest.er1 >conftest.err
37565 rm -f conftest.er1
37566 cat conftest.err >&5
a848cd7e
SC
37567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37568 (exit $ac_status); } &&
c9a66001 37569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
37575 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37577 (eval $ac_try) 2>&5
37578 ac_status=$?
37579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580 (exit $ac_status); }; }; then
37581 eval "$as_ac_Lib=yes"
37582else
37583 echo "$as_me: failed program was:" >&5
37584sed 's/^/| /' conftest.$ac_ext >&5
37585
37586eval "$as_ac_Lib=no"
37587fi
ac1cb8d3
VS
37588rm -f conftest.err conftest.$ac_objext \
37589 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37590LIBS=$ac_check_lib_save_LIBS
37591fi
37592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37593echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37594if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37595 cat >>confdefs.h <<\_ACEOF
37596#define HAVE_INET_ATON 1
37597_ACEOF
37598
37599fi
37600
37601
37602fi
37603done
37604
37605
37606if test "x$INET_LINK" != "x"; then
37607 cat >>confdefs.h <<\_ACEOF
37608#define HAVE_INET_ADDR 1
37609_ACEOF
37610
37611 INET_LINK=" -l$INET_LINK"
37612fi
37613
37614fi
37615
37616
37617
37618EXTRALIBS_ESD=
37619echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37620echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37621if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37622 echo $ECHO_N "(cached) $ECHO_C" >&6
37623else
37624 ac_check_lib_save_LIBS=$LIBS
37625LIBS="-lesd $LIBS"
37626cat >conftest.$ac_ext <<_ACEOF
37627/* confdefs.h. */
37628_ACEOF
37629cat confdefs.h >>conftest.$ac_ext
37630cat >>conftest.$ac_ext <<_ACEOF
37631/* end confdefs.h. */
37632
37633/* Override any gcc2 internal prototype to avoid an error. */
37634#ifdef __cplusplus
37635extern "C"
37636#endif
37637/* We use char because int might match the return type of a gcc2
37638 builtin and then its argument prototype would still apply. */
37639char esd_close ();
37640int
37641main ()
37642{
37643esd_close ();
37644 ;
37645 return 0;
37646}
37647_ACEOF
37648rm -f conftest.$ac_objext conftest$ac_exeext
37649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37650 (eval $ac_link) 2>conftest.er1
a848cd7e 37651 ac_status=$?
ac1cb8d3
VS
37652 grep -v '^ *+' conftest.er1 >conftest.err
37653 rm -f conftest.er1
37654 cat conftest.err >&5
a848cd7e
SC
37655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); } &&
c9a66001 37657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37659 (eval $ac_try) 2>&5
37660 ac_status=$?
37661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662 (exit $ac_status); }; } &&
37663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37665 (eval $ac_try) 2>&5
37666 ac_status=$?
37667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668 (exit $ac_status); }; }; then
37669 ac_cv_lib_esd_esd_close=yes
37670else
37671 echo "$as_me: failed program was:" >&5
37672sed 's/^/| /' conftest.$ac_ext >&5
37673
37674ac_cv_lib_esd_esd_close=no
37675fi
ac1cb8d3
VS
37676rm -f conftest.err conftest.$ac_objext \
37677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37678LIBS=$ac_check_lib_save_LIBS
37679fi
37680echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37681echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37682if test $ac_cv_lib_esd_esd_close = yes; then
37683
37684
37685for ac_header in esd.h
37686do
37687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37688if eval "test \"\${$as_ac_Header+set}\" = set"; then
37689 echo "$as_me:$LINENO: checking for $ac_header" >&5
37690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37691if eval "test \"\${$as_ac_Header+set}\" = set"; then
37692 echo $ECHO_N "(cached) $ECHO_C" >&6
37693fi
37694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37696else
37697 # Is the header compilable?
37698echo "$as_me:$LINENO: checking $ac_header usability" >&5
37699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37700cat >conftest.$ac_ext <<_ACEOF
37701/* confdefs.h. */
37702_ACEOF
37703cat confdefs.h >>conftest.$ac_ext
37704cat >>conftest.$ac_ext <<_ACEOF
37705/* end confdefs.h. */
37706$ac_includes_default
37707#include <$ac_header>
37708_ACEOF
37709rm -f conftest.$ac_objext
37710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37711 (eval $ac_compile) 2>conftest.er1
a848cd7e 37712 ac_status=$?
ac1cb8d3
VS
37713 grep -v '^ *+' conftest.er1 >conftest.err
37714 rm -f conftest.er1
37715 cat conftest.err >&5
a848cd7e
SC
37716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717 (exit $ac_status); } &&
c9a66001 37718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37720 (eval $ac_try) 2>&5
37721 ac_status=$?
37722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723 (exit $ac_status); }; } &&
37724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37726 (eval $ac_try) 2>&5
37727 ac_status=$?
37728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37729 (exit $ac_status); }; }; then
37730 ac_header_compiler=yes
37731else
37732 echo "$as_me: failed program was:" >&5
37733sed 's/^/| /' conftest.$ac_ext >&5
37734
37735ac_header_compiler=no
37736fi
ac1cb8d3 37737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37739echo "${ECHO_T}$ac_header_compiler" >&6
37740
37741# Is the header present?
37742echo "$as_me:$LINENO: checking $ac_header presence" >&5
37743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37744cat >conftest.$ac_ext <<_ACEOF
37745/* confdefs.h. */
37746_ACEOF
37747cat confdefs.h >>conftest.$ac_ext
37748cat >>conftest.$ac_ext <<_ACEOF
37749/* end confdefs.h. */
37750#include <$ac_header>
37751_ACEOF
37752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37754 ac_status=$?
37755 grep -v '^ *+' conftest.er1 >conftest.err
37756 rm -f conftest.er1
37757 cat conftest.err >&5
37758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37759 (exit $ac_status); } >/dev/null; then
37760 if test -s conftest.err; then
5d7b7554
VZ
37761 ac_cpp_err=$ac_cxx_preproc_warn_flag
37762 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37763 else
37764 ac_cpp_err=
37765 fi
37766else
37767 ac_cpp_err=yes
37768fi
37769if test -z "$ac_cpp_err"; then
37770 ac_header_preproc=yes
37771else
37772 echo "$as_me: failed program was:" >&5
37773sed 's/^/| /' conftest.$ac_ext >&5
37774
37775 ac_header_preproc=no
37776fi
37777rm -f conftest.err conftest.$ac_ext
37778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37779echo "${ECHO_T}$ac_header_preproc" >&6
37780
37781# So? What about this header?
5d7b7554 37782case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37783 yes:no: )
a848cd7e
SC
37784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37788 ac_header_preproc=yes
a848cd7e 37789 ;;
ac1cb8d3 37790 no:yes:* )
a848cd7e
SC
37791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37803 (
37804 cat <<\_ASBOX
ac1cb8d3
VS
37805## ----------------------------------------- ##
37806## Report this to wx-dev@lists.wxwidgets.org ##
37807## ----------------------------------------- ##
a848cd7e
SC
37808_ASBOX
37809 ) |
37810 sed "s/^/$as_me: WARNING: /" >&2
37811 ;;
37812esac
37813echo "$as_me:$LINENO: checking for $ac_header" >&5
37814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37815if eval "test \"\${$as_ac_Header+set}\" = set"; then
37816 echo $ECHO_N "(cached) $ECHO_C" >&6
37817else
ac1cb8d3 37818 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37819fi
37820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37822
37823fi
37824if test `eval echo '${'$as_ac_Header'}'` = yes; then
37825 cat >>confdefs.h <<_ACEOF
37826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37827_ACEOF
37828
37829 EXTRALIBS_ESD="-lesd"
37830
37831fi
37832
37833done
37834
37835
37836fi
37837
37838
37839
37840echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37841echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37842cat >conftest.$ac_ext <<_ACEOF
37843/* confdefs.h. */
37844_ACEOF
37845cat confdefs.h >>conftest.$ac_ext
37846cat >>conftest.$ac_ext <<_ACEOF
37847/* end confdefs.h. */
37848#ifdef __linux__
37849 #include <linux/cdrom.h>
37850 #else
37851 /* For Solaris */
37852 #include <sys/cdio.h>
37853 #endif
37854
37855int
37856main ()
37857{
37858struct cdrom_tocentry entry, old_entry;
37859 ;
37860 return 0;
37861}
37862_ACEOF
37863rm -f conftest.$ac_objext
37864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37865 (eval $ac_compile) 2>conftest.er1
a848cd7e 37866 ac_status=$?
ac1cb8d3
VS
37867 grep -v '^ *+' conftest.er1 >conftest.err
37868 rm -f conftest.er1
37869 cat conftest.err >&5
a848cd7e
SC
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); } &&
c9a66001 37872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37874 (eval $ac_try) 2>&5
37875 ac_status=$?
37876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877 (exit $ac_status); }; } &&
37878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37880 (eval $ac_try) 2>&5
37881 ac_status=$?
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); }; }; then
37884 echo "$as_me:$LINENO: result: yes" >&5
37885echo "${ECHO_T}yes" >&6
37886 cat >>confdefs.h <<\_ACEOF
37887#define HAVE_KNOWN_CDROM_INTERFACE 1
37888_ACEOF
37889
37890else
37891 echo "$as_me: failed program was:" >&5
37892sed 's/^/| /' conftest.$ac_ext >&5
37893
37894echo "$as_me:$LINENO: result: no" >&5
37895echo "${ECHO_T}no" >&6
37896fi
ac1cb8d3 37897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37898
37899
37900cat >confcache <<\_ACEOF
37901# This file is a shell script that caches the results of configure
37902# tests run on this system so they can be shared between configure
37903# scripts and configure runs, see configure's option --config-cache.
37904# It is not useful on other systems. If it contains results you don't
37905# want to keep, you may remove or edit it.
37906#
37907# config.status only pays attention to the cache file if you give it
37908# the --recheck option to rerun configure.
37909#
37910# `ac_cv_env_foo' variables (set or unset) will be overridden when
37911# loading this file, other *unset* `ac_cv_foo' will be assigned the
37912# following values.
37913
37914_ACEOF
37915
37916# The following way of writing the cache mishandles newlines in values,
37917# but we know of no workaround that is simple, portable, and efficient.
37918# So, don't put newlines in cache variables' values.
37919# Ultrix sh set writes to stderr and can't be redirected directly,
37920# and sets the high bit in the cache file unless we assign to the vars.
37921{
37922 (set) 2>&1 |
37923 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37924 *ac_space=\ *)
37925 # `set' does not quote correctly, so add quotes (double-quote
37926 # substitution turns \\\\ into \\, and sed turns \\ into \).
37927 sed -n \
ac1cb8d3
VS
37928 "s/'/'\\\\''/g;
37929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37930 ;;
37931 *)
37932 # `set' quotes correctly as required by POSIX, so do not add quotes.
37933 sed -n \
ac1cb8d3 37934 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37935 ;;
37936 esac;
37937} |
37938 sed '
37939 t clear
37940 : clear
37941 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37942 t end
37943 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37944 : end' >>confcache
37945if diff $cache_file confcache >/dev/null 2>&1; then :; else
37946 if test -w $cache_file; then
37947 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37948 cat confcache >$cache_file
37949 else
37950 echo "not updating unwritable cache $cache_file"
37951 fi
37952fi
37953rm -f confcache
37954
37955
a848cd7e
SC
37956if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37957
37958
37959 THREADS_LINK=
e56f4f9e 37960 THREADS_CXXFLAGS=
a848cd7e
SC
37961
37962 if test "$wxUSE_THREADS" = "yes" ; then
37963 if test "$USE_BEOS" = 1; then
37964 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37965echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37966 wxUSE_THREADS="no"
37967 fi
37968 fi
37969
37970 if test "$wxUSE_THREADS" = "yes" ; then
37971
37972
37973 THREAD_OPTS="-pthread"
37974 case "${host}" in
37975 *-*-solaris2* | *-*-sunos4* )
37976 if test "x$GCC" = "xyes"; then
37977 THREAD_OPTS="-pthreads $THREAD_OPTS"
37978 else
37979 THREAD_OPTS="-mt $THREAD_OPTS"
37980 fi
37981 ;;
37982 *-*-freebsd*)
37983 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37984 ;;
37985 *-*-darwin* | *-*-cygwin* )
37986 THREAD_OPTS=""
37987 ;;
37988 *-*-aix*)
37989 THREAD_OPTS="pthreads"
37990 ;;
37991 *-hp-hpux* )
00421666
MW
37992 if test "x$GCC" = "xyes"; then
37993 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37994 THREAD_OPTS=""
37995 else
0093c2fc 37996 THREAD_OPTS="-mt"
a848cd7e
SC
37997 fi
37998 ;;
37999
38000 *-*-irix* )
38001 if test "x$GCC" = "xyes"; then
38002 THREAD_OPTS=""
38003 fi
38004 ;;
38005
38006 *-*-*UnixWare*)
38007 if test "x$GCC" != "xyes"; then
38008 THREAD_OPTS="-Ethread"
38009 fi
38010 ;;
38011 esac
38012
38013 THREAD_OPTS="$THREAD_OPTS pthread none"
38014
38015 THREADS_OK=no
38016 for flag in $THREAD_OPTS; do
38017 case $flag in
38018 none)
38019 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38020echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38021 ;;
38022
38023 -*)
38024 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38025echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 38026 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
38027 ;;
38028
38029 *)
38030 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38031echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38032 THREADS_LINK="-l$flag"
38033 ;;
38034 esac
38035
38036 save_LIBS="$LIBS"
e56f4f9e 38037 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 38038 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 38039 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
38040
38041 cat >conftest.$ac_ext <<_ACEOF
38042/* confdefs.h. */
38043_ACEOF
38044cat confdefs.h >>conftest.$ac_ext
38045cat >>conftest.$ac_ext <<_ACEOF
38046/* end confdefs.h. */
38047#include <pthread.h>
38048int
38049main ()
38050{
38051pthread_create(0,0,0,0);
38052 ;
38053 return 0;
38054}
38055_ACEOF
38056rm -f conftest.$ac_objext conftest$ac_exeext
38057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38058 (eval $ac_link) 2>conftest.er1
a848cd7e 38059 ac_status=$?
ac1cb8d3
VS
38060 grep -v '^ *+' conftest.er1 >conftest.err
38061 rm -f conftest.er1
38062 cat conftest.err >&5
a848cd7e
SC
38063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064 (exit $ac_status); } &&
c9a66001 38065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38067 (eval $ac_try) 2>&5
38068 ac_status=$?
38069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38070 (exit $ac_status); }; } &&
38071 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38073 (eval $ac_try) 2>&5
38074 ac_status=$?
38075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076 (exit $ac_status); }; }; then
38077 THREADS_OK=yes
38078else
38079 echo "$as_me: failed program was:" >&5
38080sed 's/^/| /' conftest.$ac_ext >&5
38081
38082fi
ac1cb8d3
VS
38083rm -f conftest.err conftest.$ac_objext \
38084 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38085
38086 LIBS="$save_LIBS"
e56f4f9e 38087 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
38088
38089 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38090echo "${ECHO_T}$THREADS_OK" >&6
38091 if test "x$THREADS_OK" = "xyes"; then
38092 break;
38093 fi
38094
38095 THREADS_LINK=""
e56f4f9e 38096 THREADS_CXXFLAGS=""
a848cd7e
SC
38097 done
38098
38099 if test "x$THREADS_OK" != "xyes"; then
38100 wxUSE_THREADS=no
38101 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38102echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38103 else
e56f4f9e 38104 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
38105 LIBS="$THREADS_LINK $LIBS"
38106
38107 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38108echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38109 flag=no
38110 case "${host}" in
38111 *-aix*)
38112 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38113 flag="-D_THREAD_SAFE"
38114 ;;
38115 *-freebsd*)
38116 flag="-D_THREAD_SAFE"
38117 ;;
38118 *-hp-hpux* )
38119 flag="-D_REENTRANT"
38120 if test "x$GCC" != "xyes"; then
38121 flag="$flag -D_RWSTD_MULTI_THREAD"
38122 fi
38123 ;;
38124 *solaris* | alpha*-osf*)
38125 flag="-D_REENTRANT"
38126 ;;
38127 esac
38128 echo "$as_me:$LINENO: result: ${flag}" >&5
38129echo "${ECHO_T}${flag}" >&6
38130 if test "x$flag" != xno; then
e56f4f9e 38131 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
38132 fi
38133
e56f4f9e 38134 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
38135 fi
38136 fi
38137
38138 if test "$wxUSE_THREADS" = "yes" ; then
38139
38140for ac_func in thr_setconcurrency
38141do
38142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38143echo "$as_me:$LINENO: checking for $ac_func" >&5
38144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38145if eval "test \"\${$as_ac_var+set}\" = set"; then
38146 echo $ECHO_N "(cached) $ECHO_C" >&6
38147else
38148 cat >conftest.$ac_ext <<_ACEOF
38149/* confdefs.h. */
38150_ACEOF
38151cat confdefs.h >>conftest.$ac_ext
38152cat >>conftest.$ac_ext <<_ACEOF
38153/* end confdefs.h. */
ac1cb8d3
VS
38154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38156#define $ac_func innocuous_$ac_func
38157
a848cd7e
SC
38158/* System header to define __stub macros and hopefully few prototypes,
38159 which can conflict with char $ac_func (); below.
38160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38161 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38162
a848cd7e
SC
38163#ifdef __STDC__
38164# include <limits.h>
38165#else
38166# include <assert.h>
38167#endif
ac1cb8d3
VS
38168
38169#undef $ac_func
38170
a848cd7e
SC
38171/* Override any gcc2 internal prototype to avoid an error. */
38172#ifdef __cplusplus
38173extern "C"
38174{
38175#endif
38176/* We use char because int might match the return type of a gcc2
38177 builtin and then its argument prototype would still apply. */
38178char $ac_func ();
38179/* The GNU C library defines this for functions which it implements
38180 to always fail with ENOSYS. Some functions are actually named
38181 something starting with __ and the normal name is an alias. */
38182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38183choke me
38184#else
38185char (*f) () = $ac_func;
38186#endif
38187#ifdef __cplusplus
38188}
38189#endif
38190
38191int
38192main ()
38193{
38194return f != $ac_func;
38195 ;
38196 return 0;
38197}
38198_ACEOF
38199rm -f conftest.$ac_objext conftest$ac_exeext
38200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38201 (eval $ac_link) 2>conftest.er1
a848cd7e 38202 ac_status=$?
ac1cb8d3
VS
38203 grep -v '^ *+' conftest.er1 >conftest.err
38204 rm -f conftest.er1
38205 cat conftest.err >&5
a848cd7e
SC
38206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207 (exit $ac_status); } &&
c9a66001 38208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38210 (eval $ac_try) 2>&5
38211 ac_status=$?
38212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213 (exit $ac_status); }; } &&
38214 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38216 (eval $ac_try) 2>&5
38217 ac_status=$?
38218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38219 (exit $ac_status); }; }; then
38220 eval "$as_ac_var=yes"
38221else
38222 echo "$as_me: failed program was:" >&5
38223sed 's/^/| /' conftest.$ac_ext >&5
38224
38225eval "$as_ac_var=no"
38226fi
ac1cb8d3
VS
38227rm -f conftest.err conftest.$ac_objext \
38228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38229fi
38230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38232if test `eval echo '${'$as_ac_var'}'` = yes; then
38233 cat >>confdefs.h <<_ACEOF
38234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38235_ACEOF
38236
38237fi
38238done
38239
38240
6ebeb4c7
VZ
38241 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38242echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38243if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38244 echo $ECHO_N "(cached) $ECHO_C" >&6
38245else
38246
38247 cat >conftest.$ac_ext <<_ACEOF
38248/* confdefs.h. */
38249_ACEOF
38250cat confdefs.h >>conftest.$ac_ext
38251cat >>conftest.$ac_ext <<_ACEOF
38252/* end confdefs.h. */
38253#include <pthread.h>
38254 void ThreadCleanupFunc(void *p);
38255
38256int
38257main ()
38258{
38259
38260 void *p;
38261 pthread_cleanup_push(ThreadCleanupFunc, p);
38262 pthread_cleanup_pop(0);
38263
38264 ;
38265 return 0;
38266}
38267_ACEOF
38268rm -f conftest.$ac_objext
38269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38270 (eval $ac_compile) 2>conftest.er1
38271 ac_status=$?
38272 grep -v '^ *+' conftest.er1 >conftest.err
38273 rm -f conftest.er1
38274 cat conftest.err >&5
38275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276 (exit $ac_status); } &&
c9a66001 38277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
38278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38279 (eval $ac_try) 2>&5
38280 ac_status=$?
38281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282 (exit $ac_status); }; } &&
38283 { ac_try='test -s conftest.$ac_objext'
38284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38285 (eval $ac_try) 2>&5
38286 ac_status=$?
38287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288 (exit $ac_status); }; }; then
38289
38290 wx_cv_func_pthread_cleanup=yes
38291
38292else
38293 echo "$as_me: failed program was:" >&5
38294sed 's/^/| /' conftest.$ac_ext >&5
38295
38296
38297 wx_cv_func_pthread_cleanup=no
38298
38299
38300fi
38301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38302
38303fi
38304echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38305echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38306 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38307 cat >>confdefs.h <<\_ACEOF
38308#define wxHAVE_PTHREAD_CLEANUP 1
38309_ACEOF
38310
38311 fi
38312
a848cd7e
SC
38313
38314for ac_header in sched.h
38315do
38316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38317if eval "test \"\${$as_ac_Header+set}\" = set"; then
38318 echo "$as_me:$LINENO: checking for $ac_header" >&5
38319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38320if eval "test \"\${$as_ac_Header+set}\" = set"; then
38321 echo $ECHO_N "(cached) $ECHO_C" >&6
38322fi
38323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38325else
38326 # Is the header compilable?
38327echo "$as_me:$LINENO: checking $ac_header usability" >&5
38328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38329cat >conftest.$ac_ext <<_ACEOF
38330/* confdefs.h. */
38331_ACEOF
38332cat confdefs.h >>conftest.$ac_ext
38333cat >>conftest.$ac_ext <<_ACEOF
38334/* end confdefs.h. */
38335$ac_includes_default
38336#include <$ac_header>
38337_ACEOF
38338rm -f conftest.$ac_objext
38339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38340 (eval $ac_compile) 2>conftest.er1
a848cd7e 38341 ac_status=$?
ac1cb8d3
VS
38342 grep -v '^ *+' conftest.er1 >conftest.err
38343 rm -f conftest.er1
38344 cat conftest.err >&5
a848cd7e
SC
38345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346 (exit $ac_status); } &&
c9a66001 38347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38349 (eval $ac_try) 2>&5
38350 ac_status=$?
38351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38352 (exit $ac_status); }; } &&
38353 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38355 (eval $ac_try) 2>&5
38356 ac_status=$?
38357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38358 (exit $ac_status); }; }; then
38359 ac_header_compiler=yes
38360else
38361 echo "$as_me: failed program was:" >&5
38362sed 's/^/| /' conftest.$ac_ext >&5
38363
38364ac_header_compiler=no
38365fi
ac1cb8d3 38366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38368echo "${ECHO_T}$ac_header_compiler" >&6
38369
38370# Is the header present?
38371echo "$as_me:$LINENO: checking $ac_header presence" >&5
38372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38373cat >conftest.$ac_ext <<_ACEOF
38374/* confdefs.h. */
38375_ACEOF
38376cat confdefs.h >>conftest.$ac_ext
38377cat >>conftest.$ac_ext <<_ACEOF
38378/* end confdefs.h. */
38379#include <$ac_header>
38380_ACEOF
38381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38383 ac_status=$?
38384 grep -v '^ *+' conftest.er1 >conftest.err
38385 rm -f conftest.er1
38386 cat conftest.err >&5
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); } >/dev/null; then
38389 if test -s conftest.err; then
5d7b7554
VZ
38390 ac_cpp_err=$ac_cxx_preproc_warn_flag
38391 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38392 else
38393 ac_cpp_err=
38394 fi
38395else
38396 ac_cpp_err=yes
38397fi
38398if test -z "$ac_cpp_err"; then
38399 ac_header_preproc=yes
38400else
38401 echo "$as_me: failed program was:" >&5
38402sed 's/^/| /' conftest.$ac_ext >&5
38403
38404 ac_header_preproc=no
38405fi
38406rm -f conftest.err conftest.$ac_ext
38407echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38408echo "${ECHO_T}$ac_header_preproc" >&6
38409
38410# So? What about this header?
5d7b7554 38411case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38412 yes:no: )
a848cd7e
SC
38413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38417 ac_header_preproc=yes
a848cd7e 38418 ;;
ac1cb8d3 38419 no:yes:* )
a848cd7e
SC
38420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38432 (
38433 cat <<\_ASBOX
ac1cb8d3
VS
38434## ----------------------------------------- ##
38435## Report this to wx-dev@lists.wxwidgets.org ##
38436## ----------------------------------------- ##
a848cd7e
SC
38437_ASBOX
38438 ) |
38439 sed "s/^/$as_me: WARNING: /" >&2
38440 ;;
38441esac
38442echo "$as_me:$LINENO: checking for $ac_header" >&5
38443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38444if eval "test \"\${$as_ac_Header+set}\" = set"; then
38445 echo $ECHO_N "(cached) $ECHO_C" >&6
38446else
ac1cb8d3 38447 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38448fi
38449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38451
38452fi
38453if test `eval echo '${'$as_ac_Header'}'` = yes; then
38454 cat >>confdefs.h <<_ACEOF
38455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38456_ACEOF
38457
38458fi
38459
38460done
38461
38462 if test "$ac_cv_header_sched_h" = "yes"; then
38463 echo "$as_me:$LINENO: checking for sched_yield" >&5
38464echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38465if test "${ac_cv_func_sched_yield+set}" = set; then
38466 echo $ECHO_N "(cached) $ECHO_C" >&6
38467else
38468 cat >conftest.$ac_ext <<_ACEOF
38469/* confdefs.h. */
38470_ACEOF
38471cat confdefs.h >>conftest.$ac_ext
38472cat >>conftest.$ac_ext <<_ACEOF
38473/* end confdefs.h. */
ac1cb8d3
VS
38474/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38476#define sched_yield innocuous_sched_yield
38477
a848cd7e
SC
38478/* System header to define __stub macros and hopefully few prototypes,
38479 which can conflict with char sched_yield (); below.
38480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38481 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38482
a848cd7e
SC
38483#ifdef __STDC__
38484# include <limits.h>
38485#else
38486# include <assert.h>
38487#endif
ac1cb8d3
VS
38488
38489#undef sched_yield
38490
a848cd7e
SC
38491/* Override any gcc2 internal prototype to avoid an error. */
38492#ifdef __cplusplus
38493extern "C"
38494{
38495#endif
38496/* We use char because int might match the return type of a gcc2
38497 builtin and then its argument prototype would still apply. */
38498char sched_yield ();
38499/* The GNU C library defines this for functions which it implements
38500 to always fail with ENOSYS. Some functions are actually named
38501 something starting with __ and the normal name is an alias. */
38502#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38503choke me
38504#else
38505char (*f) () = sched_yield;
38506#endif
38507#ifdef __cplusplus
38508}
38509#endif
38510
38511int
38512main ()
38513{
38514return f != sched_yield;
38515 ;
38516 return 0;
38517}
38518_ACEOF
38519rm -f conftest.$ac_objext conftest$ac_exeext
38520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38521 (eval $ac_link) 2>conftest.er1
a848cd7e 38522 ac_status=$?
ac1cb8d3
VS
38523 grep -v '^ *+' conftest.er1 >conftest.err
38524 rm -f conftest.er1
38525 cat conftest.err >&5
a848cd7e
SC
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); } &&
c9a66001 38528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38530 (eval $ac_try) 2>&5
38531 ac_status=$?
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); }; } &&
38534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38536 (eval $ac_try) 2>&5
38537 ac_status=$?
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); }; }; then
38540 ac_cv_func_sched_yield=yes
38541else
38542 echo "$as_me: failed program was:" >&5
38543sed 's/^/| /' conftest.$ac_ext >&5
38544
38545ac_cv_func_sched_yield=no
38546fi
ac1cb8d3
VS
38547rm -f conftest.err conftest.$ac_objext \
38548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38549fi
38550echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38551echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38552if test $ac_cv_func_sched_yield = yes; then
38553 cat >>confdefs.h <<\_ACEOF
38554#define HAVE_SCHED_YIELD 1
38555_ACEOF
38556
38557else
38558
38559 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38560echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38561if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38562 echo $ECHO_N "(cached) $ECHO_C" >&6
38563else
38564 ac_check_lib_save_LIBS=$LIBS
38565LIBS="-lposix4 $LIBS"
38566cat >conftest.$ac_ext <<_ACEOF
38567/* confdefs.h. */
38568_ACEOF
38569cat confdefs.h >>conftest.$ac_ext
38570cat >>conftest.$ac_ext <<_ACEOF
38571/* end confdefs.h. */
38572
38573/* Override any gcc2 internal prototype to avoid an error. */
38574#ifdef __cplusplus
38575extern "C"
38576#endif
38577/* We use char because int might match the return type of a gcc2
38578 builtin and then its argument prototype would still apply. */
38579char sched_yield ();
38580int
38581main ()
38582{
38583sched_yield ();
38584 ;
38585 return 0;
38586}
38587_ACEOF
38588rm -f conftest.$ac_objext conftest$ac_exeext
38589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38590 (eval $ac_link) 2>conftest.er1
a848cd7e 38591 ac_status=$?
ac1cb8d3
VS
38592 grep -v '^ *+' conftest.er1 >conftest.err
38593 rm -f conftest.er1
38594 cat conftest.err >&5
a848cd7e
SC
38595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596 (exit $ac_status); } &&
c9a66001 38597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38599 (eval $ac_try) 2>&5
38600 ac_status=$?
38601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602 (exit $ac_status); }; } &&
38603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38605 (eval $ac_try) 2>&5
38606 ac_status=$?
38607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608 (exit $ac_status); }; }; then
38609 ac_cv_lib_posix4_sched_yield=yes
38610else
38611 echo "$as_me: failed program was:" >&5
38612sed 's/^/| /' conftest.$ac_ext >&5
38613
38614ac_cv_lib_posix4_sched_yield=no
38615fi
ac1cb8d3
VS
38616rm -f conftest.err conftest.$ac_objext \
38617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38618LIBS=$ac_check_lib_save_LIBS
38619fi
38620echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38621echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38622if test $ac_cv_lib_posix4_sched_yield = yes; then
38623 cat >>confdefs.h <<\_ACEOF
38624#define HAVE_SCHED_YIELD 1
38625_ACEOF
38626 POSIX4_LINK=" -lposix4"
38627else
38628 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38629echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38630
38631fi
38632
38633
38634
38635fi
38636
38637 fi
38638
38639 HAVE_PRIOR_FUNCS=0
38640 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38641echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38642if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38643 echo $ECHO_N "(cached) $ECHO_C" >&6
38644else
38645 cat >conftest.$ac_ext <<_ACEOF
38646/* confdefs.h. */
38647_ACEOF
38648cat confdefs.h >>conftest.$ac_ext
38649cat >>conftest.$ac_ext <<_ACEOF
38650/* end confdefs.h. */
ac1cb8d3
VS
38651/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38653#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38654
a848cd7e
SC
38655/* System header to define __stub macros and hopefully few prototypes,
38656 which can conflict with char pthread_attr_getschedpolicy (); below.
38657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38658 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38659
a848cd7e
SC
38660#ifdef __STDC__
38661# include <limits.h>
38662#else
38663# include <assert.h>
38664#endif
ac1cb8d3
VS
38665
38666#undef pthread_attr_getschedpolicy
38667
a848cd7e
SC
38668/* Override any gcc2 internal prototype to avoid an error. */
38669#ifdef __cplusplus
38670extern "C"
38671{
38672#endif
38673/* We use char because int might match the return type of a gcc2
38674 builtin and then its argument prototype would still apply. */
38675char pthread_attr_getschedpolicy ();
38676/* The GNU C library defines this for functions which it implements
38677 to always fail with ENOSYS. Some functions are actually named
38678 something starting with __ and the normal name is an alias. */
38679#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38680choke me
38681#else
38682char (*f) () = pthread_attr_getschedpolicy;
38683#endif
38684#ifdef __cplusplus
38685}
38686#endif
38687
38688int
38689main ()
38690{
38691return f != pthread_attr_getschedpolicy;
38692 ;
38693 return 0;
38694}
38695_ACEOF
38696rm -f conftest.$ac_objext conftest$ac_exeext
38697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38698 (eval $ac_link) 2>conftest.er1
a848cd7e 38699 ac_status=$?
ac1cb8d3
VS
38700 grep -v '^ *+' conftest.er1 >conftest.err
38701 rm -f conftest.er1
38702 cat conftest.err >&5
a848cd7e
SC
38703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38704 (exit $ac_status); } &&
c9a66001 38705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38707 (eval $ac_try) 2>&5
38708 ac_status=$?
38709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38710 (exit $ac_status); }; } &&
38711 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38713 (eval $ac_try) 2>&5
38714 ac_status=$?
38715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38716 (exit $ac_status); }; }; then
38717 ac_cv_func_pthread_attr_getschedpolicy=yes
38718else
38719 echo "$as_me: failed program was:" >&5
38720sed 's/^/| /' conftest.$ac_ext >&5
38721
38722ac_cv_func_pthread_attr_getschedpolicy=no
38723fi
ac1cb8d3
VS
38724rm -f conftest.err conftest.$ac_objext \
38725 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38726fi
38727echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38728echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38729if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38730 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38731echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38732if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38733 echo $ECHO_N "(cached) $ECHO_C" >&6
38734else
38735 cat >conftest.$ac_ext <<_ACEOF
38736/* confdefs.h. */
38737_ACEOF
38738cat confdefs.h >>conftest.$ac_ext
38739cat >>conftest.$ac_ext <<_ACEOF
38740/* end confdefs.h. */
ac1cb8d3
VS
38741/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38743#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38744
a848cd7e
SC
38745/* System header to define __stub macros and hopefully few prototypes,
38746 which can conflict with char pthread_attr_setschedparam (); below.
38747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38748 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38749
a848cd7e
SC
38750#ifdef __STDC__
38751# include <limits.h>
38752#else
38753# include <assert.h>
38754#endif
ac1cb8d3
VS
38755
38756#undef pthread_attr_setschedparam
38757
a848cd7e
SC
38758/* Override any gcc2 internal prototype to avoid an error. */
38759#ifdef __cplusplus
38760extern "C"
38761{
38762#endif
38763/* We use char because int might match the return type of a gcc2
38764 builtin and then its argument prototype would still apply. */
38765char pthread_attr_setschedparam ();
38766/* The GNU C library defines this for functions which it implements
38767 to always fail with ENOSYS. Some functions are actually named
38768 something starting with __ and the normal name is an alias. */
38769#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38770choke me
38771#else
38772char (*f) () = pthread_attr_setschedparam;
38773#endif
38774#ifdef __cplusplus
38775}
38776#endif
38777
38778int
38779main ()
38780{
38781return f != pthread_attr_setschedparam;
38782 ;
38783 return 0;
38784}
38785_ACEOF
38786rm -f conftest.$ac_objext conftest$ac_exeext
38787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38788 (eval $ac_link) 2>conftest.er1
a848cd7e 38789 ac_status=$?
ac1cb8d3
VS
38790 grep -v '^ *+' conftest.er1 >conftest.err
38791 rm -f conftest.er1
38792 cat conftest.err >&5
a848cd7e
SC
38793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38794 (exit $ac_status); } &&
c9a66001 38795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38797 (eval $ac_try) 2>&5
38798 ac_status=$?
38799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800 (exit $ac_status); }; } &&
38801 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38803 (eval $ac_try) 2>&5
38804 ac_status=$?
38805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38806 (exit $ac_status); }; }; then
38807 ac_cv_func_pthread_attr_setschedparam=yes
38808else
38809 echo "$as_me: failed program was:" >&5
38810sed 's/^/| /' conftest.$ac_ext >&5
38811
38812ac_cv_func_pthread_attr_setschedparam=no
38813fi
ac1cb8d3
VS
38814rm -f conftest.err conftest.$ac_objext \
38815 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38816fi
38817echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38818echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38819if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38820 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38821echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38822if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38823 echo $ECHO_N "(cached) $ECHO_C" >&6
38824else
38825 cat >conftest.$ac_ext <<_ACEOF
38826/* confdefs.h. */
38827_ACEOF
38828cat confdefs.h >>conftest.$ac_ext
38829cat >>conftest.$ac_ext <<_ACEOF
38830/* end confdefs.h. */
ac1cb8d3
VS
38831/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38833#define sched_get_priority_max innocuous_sched_get_priority_max
38834
a848cd7e
SC
38835/* System header to define __stub macros and hopefully few prototypes,
38836 which can conflict with char sched_get_priority_max (); below.
38837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38839
a848cd7e
SC
38840#ifdef __STDC__
38841# include <limits.h>
38842#else
38843# include <assert.h>
38844#endif
ac1cb8d3
VS
38845
38846#undef sched_get_priority_max
38847
a848cd7e
SC
38848/* Override any gcc2 internal prototype to avoid an error. */
38849#ifdef __cplusplus
38850extern "C"
38851{
38852#endif
38853/* We use char because int might match the return type of a gcc2
38854 builtin and then its argument prototype would still apply. */
38855char sched_get_priority_max ();
38856/* The GNU C library defines this for functions which it implements
38857 to always fail with ENOSYS. Some functions are actually named
38858 something starting with __ and the normal name is an alias. */
38859#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38860choke me
38861#else
38862char (*f) () = sched_get_priority_max;
38863#endif
38864#ifdef __cplusplus
38865}
38866#endif
38867
38868int
38869main ()
38870{
38871return f != sched_get_priority_max;
38872 ;
38873 return 0;
38874}
38875_ACEOF
38876rm -f conftest.$ac_objext conftest$ac_exeext
38877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38878 (eval $ac_link) 2>conftest.er1
a848cd7e 38879 ac_status=$?
ac1cb8d3
VS
38880 grep -v '^ *+' conftest.er1 >conftest.err
38881 rm -f conftest.er1
38882 cat conftest.err >&5
a848cd7e
SC
38883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38884 (exit $ac_status); } &&
c9a66001 38885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38887 (eval $ac_try) 2>&5
38888 ac_status=$?
38889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38890 (exit $ac_status); }; } &&
38891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38893 (eval $ac_try) 2>&5
38894 ac_status=$?
38895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38896 (exit $ac_status); }; }; then
38897 ac_cv_func_sched_get_priority_max=yes
38898else
38899 echo "$as_me: failed program was:" >&5
38900sed 's/^/| /' conftest.$ac_ext >&5
38901
38902ac_cv_func_sched_get_priority_max=no
38903fi
ac1cb8d3
VS
38904rm -f conftest.err conftest.$ac_objext \
38905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38906fi
38907echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38908echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38909if test $ac_cv_func_sched_get_priority_max = yes; then
38910 HAVE_PRIOR_FUNCS=1
38911else
38912 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38913echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38914if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38915 echo $ECHO_N "(cached) $ECHO_C" >&6
38916else
38917 ac_check_lib_save_LIBS=$LIBS
38918LIBS="-lposix4 $LIBS"
38919cat >conftest.$ac_ext <<_ACEOF
38920/* confdefs.h. */
38921_ACEOF
38922cat confdefs.h >>conftest.$ac_ext
38923cat >>conftest.$ac_ext <<_ACEOF
38924/* end confdefs.h. */
38925
38926/* Override any gcc2 internal prototype to avoid an error. */
38927#ifdef __cplusplus
38928extern "C"
38929#endif
38930/* We use char because int might match the return type of a gcc2
38931 builtin and then its argument prototype would still apply. */
38932char sched_get_priority_max ();
38933int
38934main ()
38935{
38936sched_get_priority_max ();
38937 ;
38938 return 0;
38939}
38940_ACEOF
38941rm -f conftest.$ac_objext conftest$ac_exeext
38942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38943 (eval $ac_link) 2>conftest.er1
a848cd7e 38944 ac_status=$?
ac1cb8d3
VS
38945 grep -v '^ *+' conftest.er1 >conftest.err
38946 rm -f conftest.er1
38947 cat conftest.err >&5
a848cd7e
SC
38948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38949 (exit $ac_status); } &&
c9a66001 38950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952 (eval $ac_try) 2>&5
38953 ac_status=$?
38954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955 (exit $ac_status); }; } &&
38956 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38958 (eval $ac_try) 2>&5
38959 ac_status=$?
38960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961 (exit $ac_status); }; }; then
38962 ac_cv_lib_posix4_sched_get_priority_max=yes
38963else
38964 echo "$as_me: failed program was:" >&5
38965sed 's/^/| /' conftest.$ac_ext >&5
38966
38967ac_cv_lib_posix4_sched_get_priority_max=no
38968fi
ac1cb8d3
VS
38969rm -f conftest.err conftest.$ac_objext \
38970 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38971LIBS=$ac_check_lib_save_LIBS
38972fi
38973echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38974echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38975if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38976
38977 HAVE_PRIOR_FUNCS=1
38978 POSIX4_LINK=" -lposix4"
38979
38980fi
38981
38982
38983fi
38984
38985
38986fi
38987
38988
38989fi
38990
38991
38992 if test "$HAVE_PRIOR_FUNCS" = 1; then
38993 cat >>confdefs.h <<\_ACEOF
38994#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38995_ACEOF
38996
38997 else
38998 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38999echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39000 fi
39001
39002 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39003echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39004if test "${ac_cv_func_pthread_cancel+set}" = set; then
39005 echo $ECHO_N "(cached) $ECHO_C" >&6
39006else
39007 cat >conftest.$ac_ext <<_ACEOF
39008/* confdefs.h. */
39009_ACEOF
39010cat confdefs.h >>conftest.$ac_ext
39011cat >>conftest.$ac_ext <<_ACEOF
39012/* end confdefs.h. */
ac1cb8d3
VS
39013/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39015#define pthread_cancel innocuous_pthread_cancel
39016
a848cd7e
SC
39017/* System header to define __stub macros and hopefully few prototypes,
39018 which can conflict with char pthread_cancel (); below.
39019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39020 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39021
a848cd7e
SC
39022#ifdef __STDC__
39023# include <limits.h>
39024#else
39025# include <assert.h>
39026#endif
ac1cb8d3
VS
39027
39028#undef pthread_cancel
39029
a848cd7e
SC
39030/* Override any gcc2 internal prototype to avoid an error. */
39031#ifdef __cplusplus
39032extern "C"
39033{
39034#endif
39035/* We use char because int might match the return type of a gcc2
39036 builtin and then its argument prototype would still apply. */
39037char pthread_cancel ();
39038/* The GNU C library defines this for functions which it implements
39039 to always fail with ENOSYS. Some functions are actually named
39040 something starting with __ and the normal name is an alias. */
39041#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39042choke me
39043#else
39044char (*f) () = pthread_cancel;
39045#endif
39046#ifdef __cplusplus
39047}
39048#endif
39049
39050int
39051main ()
39052{
39053return f != pthread_cancel;
39054 ;
39055 return 0;
39056}
39057_ACEOF
39058rm -f conftest.$ac_objext conftest$ac_exeext
39059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39060 (eval $ac_link) 2>conftest.er1
a848cd7e 39061 ac_status=$?
ac1cb8d3
VS
39062 grep -v '^ *+' conftest.er1 >conftest.err
39063 rm -f conftest.er1
39064 cat conftest.err >&5
a848cd7e
SC
39065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39066 (exit $ac_status); } &&
c9a66001 39067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39069 (eval $ac_try) 2>&5
39070 ac_status=$?
39071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 (exit $ac_status); }; } &&
39073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
39079 ac_cv_func_pthread_cancel=yes
39080else
39081 echo "$as_me: failed program was:" >&5
39082sed 's/^/| /' conftest.$ac_ext >&5
39083
39084ac_cv_func_pthread_cancel=no
39085fi
ac1cb8d3
VS
39086rm -f conftest.err conftest.$ac_objext \
39087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39088fi
39089echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39090echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39091if test $ac_cv_func_pthread_cancel = yes; then
39092 cat >>confdefs.h <<\_ACEOF
39093#define HAVE_PTHREAD_CANCEL 1
39094_ACEOF
39095
39096else
39097 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39098echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39099fi
39100
39101
abc736fd
MW
39102 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39103echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39104if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39105 echo $ECHO_N "(cached) $ECHO_C" >&6
39106else
39107 cat >conftest.$ac_ext <<_ACEOF
39108/* confdefs.h. */
39109_ACEOF
39110cat confdefs.h >>conftest.$ac_ext
39111cat >>conftest.$ac_ext <<_ACEOF
39112/* end confdefs.h. */
39113/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39115#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39116
39117/* System header to define __stub macros and hopefully few prototypes,
39118 which can conflict with char pthread_attr_setstacksize (); below.
39119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39120 <limits.h> exists even on freestanding compilers. */
39121
39122#ifdef __STDC__
39123# include <limits.h>
39124#else
39125# include <assert.h>
39126#endif
39127
39128#undef pthread_attr_setstacksize
39129
39130/* Override any gcc2 internal prototype to avoid an error. */
39131#ifdef __cplusplus
39132extern "C"
39133{
39134#endif
39135/* We use char because int might match the return type of a gcc2
39136 builtin and then its argument prototype would still apply. */
39137char pthread_attr_setstacksize ();
39138/* The GNU C library defines this for functions which it implements
39139 to always fail with ENOSYS. Some functions are actually named
39140 something starting with __ and the normal name is an alias. */
39141#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39142choke me
39143#else
39144char (*f) () = pthread_attr_setstacksize;
39145#endif
39146#ifdef __cplusplus
39147}
39148#endif
39149
39150int
39151main ()
39152{
39153return f != pthread_attr_setstacksize;
39154 ;
39155 return 0;
39156}
39157_ACEOF
39158rm -f conftest.$ac_objext conftest$ac_exeext
39159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39160 (eval $ac_link) 2>conftest.er1
39161 ac_status=$?
39162 grep -v '^ *+' conftest.er1 >conftest.err
39163 rm -f conftest.er1
39164 cat conftest.err >&5
39165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39166 (exit $ac_status); } &&
c9a66001 39167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
39168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39169 (eval $ac_try) 2>&5
39170 ac_status=$?
39171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172 (exit $ac_status); }; } &&
39173 { ac_try='test -s conftest$ac_exeext'
39174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39175 (eval $ac_try) 2>&5
39176 ac_status=$?
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); }; }; then
39179 ac_cv_func_pthread_attr_setstacksize=yes
39180else
39181 echo "$as_me: failed program was:" >&5
39182sed 's/^/| /' conftest.$ac_ext >&5
39183
39184ac_cv_func_pthread_attr_setstacksize=no
39185fi
39186rm -f conftest.err conftest.$ac_objext \
39187 conftest$ac_exeext conftest.$ac_ext
39188fi
39189echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39190echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39191if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39192 cat >>confdefs.h <<\_ACEOF
39193#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39194_ACEOF
39195
39196fi
39197
a848cd7e
SC
39198
39199
39200 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39201echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39202if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39203 echo $ECHO_N "(cached) $ECHO_C" >&6
39204else
39205
39206 cat >conftest.$ac_ext <<_ACEOF
39207/* confdefs.h. */
39208_ACEOF
39209cat confdefs.h >>conftest.$ac_ext
39210cat >>conftest.$ac_ext <<_ACEOF
39211/* end confdefs.h. */
39212#include <pthread.h>
39213int
39214main ()
39215{
39216
39217 pthread_mutexattr_t attr;
39218 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39219
39220 ;
39221 return 0;
39222}
39223_ACEOF
39224rm -f conftest.$ac_objext
39225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39226 (eval $ac_compile) 2>conftest.er1
a848cd7e 39227 ac_status=$?
ac1cb8d3
VS
39228 grep -v '^ *+' conftest.er1 >conftest.err
39229 rm -f conftest.er1
39230 cat conftest.err >&5
a848cd7e
SC
39231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232 (exit $ac_status); } &&
c9a66001 39233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39235 (eval $ac_try) 2>&5
39236 ac_status=$?
39237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39238 (exit $ac_status); }; } &&
39239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39241 (eval $ac_try) 2>&5
39242 ac_status=$?
39243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39244 (exit $ac_status); }; }; then
123dca7d 39245 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39246else
39247 echo "$as_me: failed program was:" >&5
39248sed 's/^/| /' conftest.$ac_ext >&5
39249
123dca7d 39250wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39251
39252fi
ac1cb8d3 39253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39254
39255fi
39256echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39257echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39258
39259 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39260 cat >>confdefs.h <<\_ACEOF
39261#define HAVE_PTHREAD_MUTEXATTR_T 1
39262_ACEOF
39263
123dca7d
VZ
39264
39265 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39266echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39267if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39268 echo $ECHO_N "(cached) $ECHO_C" >&6
39269else
39270
39271 cat >conftest.$ac_ext <<_ACEOF
39272/* confdefs.h. */
39273_ACEOF
39274cat confdefs.h >>conftest.$ac_ext
39275cat >>conftest.$ac_ext <<_ACEOF
39276/* end confdefs.h. */
39277#include <pthread.h>
39278int
39279main ()
39280{
39281
39282 pthread_mutexattr_t attr;
39283 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39284
39285 ;
39286 return 0;
39287}
39288_ACEOF
39289rm -f conftest.$ac_objext
39290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39291 (eval $ac_compile) 2>conftest.er1
39292 ac_status=$?
39293 grep -v '^ *+' conftest.er1 >conftest.err
39294 rm -f conftest.er1
39295 cat conftest.err >&5
39296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297 (exit $ac_status); } &&
c9a66001 39298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
39299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39300 (eval $ac_try) 2>&5
39301 ac_status=$?
39302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39303 (exit $ac_status); }; } &&
39304 { ac_try='test -s conftest.$ac_objext'
39305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39306 (eval $ac_try) 2>&5
39307 ac_status=$?
39308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39309 (exit $ac_status); }; }; then
39310 wx_cv_func_pthread_mutexattr_settype_decl=yes
39311else
39312 echo "$as_me: failed program was:" >&5
39313sed 's/^/| /' conftest.$ac_ext >&5
39314
39315wx_cv_func_pthread_mutexattr_settype_decl=no
39316
39317fi
39318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39319
39320fi
39321echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39322echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39323 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39324 cat >>confdefs.h <<\_ACEOF
39325#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39326_ACEOF
39327
39328 fi
a848cd7e
SC
39329 else
39330 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39331echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39332if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39333 echo $ECHO_N "(cached) $ECHO_C" >&6
39334else
39335
39336 cat >conftest.$ac_ext <<_ACEOF
39337/* confdefs.h. */
39338_ACEOF
39339cat confdefs.h >>conftest.$ac_ext
39340cat >>conftest.$ac_ext <<_ACEOF
39341/* end confdefs.h. */
39342#include <pthread.h>
39343int
39344main ()
39345{
39346
39347 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39348
39349 ;
39350 return 0;
39351}
39352_ACEOF
39353rm -f conftest.$ac_objext
39354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39355 (eval $ac_compile) 2>conftest.er1
a848cd7e 39356 ac_status=$?
ac1cb8d3
VS
39357 grep -v '^ *+' conftest.er1 >conftest.err
39358 rm -f conftest.er1
39359 cat conftest.err >&5
a848cd7e
SC
39360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39361 (exit $ac_status); } &&
c9a66001 39362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39364 (eval $ac_try) 2>&5
39365 ac_status=$?
39366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39367 (exit $ac_status); }; } &&
39368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39370 (eval $ac_try) 2>&5
39371 ac_status=$?
39372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39373 (exit $ac_status); }; }; then
39374
39375 wx_cv_type_pthread_rec_mutex_init=yes
39376
39377else
39378 echo "$as_me: failed program was:" >&5
39379sed 's/^/| /' conftest.$ac_ext >&5
39380
39381
39382 wx_cv_type_pthread_rec_mutex_init=no
39383
39384
39385fi
ac1cb8d3 39386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39387
39388fi
39389echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39390echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39391 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39392 cat >>confdefs.h <<\_ACEOF
39393#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39394_ACEOF
39395
39396 else
39397 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39398echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39399 fi
39400 fi
39401 fi
39402
39403else
39404 if test "$wxUSE_THREADS" = "yes" ; then
39405 case "${host}" in
39406 *-*-mingw32* )
39407 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39408echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39409if test "${wx_cv_cflags_mthread+set}" = set; then
39410 echo $ECHO_N "(cached) $ECHO_C" >&6
39411else
39412
e56f4f9e
VZ
39413 CXXFLAGS_OLD="$CXXFLAGS"
39414 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
39415 cat >conftest.$ac_ext <<_ACEOF
39416/* confdefs.h. */
39417_ACEOF
39418cat confdefs.h >>conftest.$ac_ext
39419cat >>conftest.$ac_ext <<_ACEOF
39420/* end confdefs.h. */
39421
39422int
39423main ()
39424{
39425
39426 ;
39427 return 0;
39428}
39429_ACEOF
39430rm -f conftest.$ac_objext
39431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39432 (eval $ac_compile) 2>conftest.er1
a848cd7e 39433 ac_status=$?
ac1cb8d3
VS
39434 grep -v '^ *+' conftest.er1 >conftest.err
39435 rm -f conftest.er1
39436 cat conftest.err >&5
a848cd7e
SC
39437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438 (exit $ac_status); } &&
c9a66001 39439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
39445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39447 (eval $ac_try) 2>&5
39448 ac_status=$?
39449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39450 (exit $ac_status); }; }; then
39451 wx_cv_cflags_mthread=yes
39452else
39453 echo "$as_me: failed program was:" >&5
39454sed 's/^/| /' conftest.$ac_ext >&5
39455
39456wx_cv_cflags_mthread=no
39457
39458fi
ac1cb8d3 39459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39460
39461
39462fi
39463echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39464echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39465
39466 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 39467 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
39468 LDFLAGS="$LDFLAGS -mthreads"
39469 else
e56f4f9e 39470 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
39471 fi
39472 ;;
39473 *-pc-os2*emx )
5ff751d6
VZ
39474 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39475 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
39476 LDFLAGS="$LDFLAGS -Zmt"
39477 ;;
39478 esac
39479 fi
39480fi
39481
004ee6da
RL
39482echo "$as_me:$LINENO: checking for localtime_r" >&5
39483echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39484if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
39485 echo $ECHO_N "(cached) $ECHO_C" >&6
39486else
39487 cat >conftest.$ac_ext <<_ACEOF
39488/* confdefs.h. */
39489_ACEOF
39490cat confdefs.h >>conftest.$ac_ext
39491cat >>conftest.$ac_ext <<_ACEOF
39492/* end confdefs.h. */
004ee6da 39493/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 39494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 39495#define localtime_r innocuous_localtime_r
ac1cb8d3 39496
a848cd7e 39497/* System header to define __stub macros and hopefully few prototypes,
004ee6da 39498 which can conflict with char localtime_r (); below.
a848cd7e
SC
39499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39500 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39501
a848cd7e
SC
39502#ifdef __STDC__
39503# include <limits.h>
39504#else
39505# include <assert.h>
39506#endif
ac1cb8d3 39507
004ee6da 39508#undef localtime_r
ac1cb8d3 39509
a848cd7e
SC
39510/* Override any gcc2 internal prototype to avoid an error. */
39511#ifdef __cplusplus
39512extern "C"
39513{
39514#endif
39515/* We use char because int might match the return type of a gcc2
39516 builtin and then its argument prototype would still apply. */
004ee6da 39517char localtime_r ();
a848cd7e
SC
39518/* The GNU C library defines this for functions which it implements
39519 to always fail with ENOSYS. Some functions are actually named
39520 something starting with __ and the normal name is an alias. */
004ee6da 39521#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
39522choke me
39523#else
004ee6da 39524char (*f) () = localtime_r;
a848cd7e
SC
39525#endif
39526#ifdef __cplusplus
39527}
39528#endif
39529
39530int
39531main ()
39532{
004ee6da
RL
39533return f != localtime_r;
39534 ;
39535 return 0;
39536}
39537_ACEOF
39538rm -f conftest.$ac_objext conftest$ac_exeext
39539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39540 (eval $ac_link) 2>conftest.er1
39541 ac_status=$?
39542 grep -v '^ *+' conftest.er1 >conftest.err
39543 rm -f conftest.er1
39544 cat conftest.err >&5
39545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39546 (exit $ac_status); } &&
c9a66001 39547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39549 (eval $ac_try) 2>&5
39550 ac_status=$?
39551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39552 (exit $ac_status); }; } &&
39553 { ac_try='test -s conftest$ac_exeext'
39554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39555 (eval $ac_try) 2>&5
39556 ac_status=$?
39557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39558 (exit $ac_status); }; }; then
39559 ac_cv_func_localtime_r=yes
39560else
39561 echo "$as_me: failed program was:" >&5
39562sed 's/^/| /' conftest.$ac_ext >&5
39563
39564ac_cv_func_localtime_r=no
39565fi
39566rm -f conftest.err conftest.$ac_objext \
39567 conftest$ac_exeext conftest.$ac_ext
39568fi
39569echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39570echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39571if test $ac_cv_func_localtime_r = yes; then
39572 cat >>confdefs.h <<\_ACEOF
39573#define HAVE_LOCALTIME_R 1
39574_ACEOF
39575
39576fi
39577
39578echo "$as_me:$LINENO: checking for gmtime_r" >&5
39579echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39580if test "${ac_cv_func_gmtime_r+set}" = set; then
39581 echo $ECHO_N "(cached) $ECHO_C" >&6
39582else
39583 cat >conftest.$ac_ext <<_ACEOF
39584/* confdefs.h. */
39585_ACEOF
39586cat confdefs.h >>conftest.$ac_ext
39587cat >>conftest.$ac_ext <<_ACEOF
39588/* end confdefs.h. */
39589/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39591#define gmtime_r innocuous_gmtime_r
39592
39593/* System header to define __stub macros and hopefully few prototypes,
39594 which can conflict with char gmtime_r (); below.
39595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39596 <limits.h> exists even on freestanding compilers. */
39597
39598#ifdef __STDC__
39599# include <limits.h>
39600#else
39601# include <assert.h>
39602#endif
39603
39604#undef gmtime_r
39605
39606/* Override any gcc2 internal prototype to avoid an error. */
39607#ifdef __cplusplus
39608extern "C"
39609{
39610#endif
39611/* We use char because int might match the return type of a gcc2
39612 builtin and then its argument prototype would still apply. */
39613char gmtime_r ();
39614/* The GNU C library defines this for functions which it implements
39615 to always fail with ENOSYS. Some functions are actually named
39616 something starting with __ and the normal name is an alias. */
39617#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39618choke me
39619#else
39620char (*f) () = gmtime_r;
39621#endif
39622#ifdef __cplusplus
39623}
39624#endif
39625
39626int
39627main ()
39628{
39629return f != gmtime_r;
39630 ;
39631 return 0;
39632}
39633_ACEOF
39634rm -f conftest.$ac_objext conftest$ac_exeext
39635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39636 (eval $ac_link) 2>conftest.er1
39637 ac_status=$?
39638 grep -v '^ *+' conftest.er1 >conftest.err
39639 rm -f conftest.er1
39640 cat conftest.err >&5
39641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39642 (exit $ac_status); } &&
c9a66001 39643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39645 (eval $ac_try) 2>&5
39646 ac_status=$?
39647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39648 (exit $ac_status); }; } &&
39649 { ac_try='test -s conftest$ac_exeext'
39650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39651 (eval $ac_try) 2>&5
39652 ac_status=$?
39653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39654 (exit $ac_status); }; }; then
39655 ac_cv_func_gmtime_r=yes
39656else
39657 echo "$as_me: failed program was:" >&5
39658sed 's/^/| /' conftest.$ac_ext >&5
39659
39660ac_cv_func_gmtime_r=no
39661fi
39662rm -f conftest.err conftest.$ac_objext \
39663 conftest$ac_exeext conftest.$ac_ext
39664fi
39665echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39666echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39667if test $ac_cv_func_gmtime_r = yes; then
39668 cat >>confdefs.h <<\_ACEOF
39669#define HAVE_GMTIME_R 1
39670_ACEOF
39671
39672fi
39673
39674echo "$as_me:$LINENO: checking for readdir_r" >&5
39675echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39676if test "${ac_cv_func_readdir_r+set}" = set; then
39677 echo $ECHO_N "(cached) $ECHO_C" >&6
39678else
39679 cat >conftest.$ac_ext <<_ACEOF
39680/* confdefs.h. */
39681_ACEOF
39682cat confdefs.h >>conftest.$ac_ext
39683cat >>conftest.$ac_ext <<_ACEOF
39684/* end confdefs.h. */
39685/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39687#define readdir_r innocuous_readdir_r
39688
39689/* System header to define __stub macros and hopefully few prototypes,
39690 which can conflict with char readdir_r (); below.
39691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39692 <limits.h> exists even on freestanding compilers. */
39693
39694#ifdef __STDC__
39695# include <limits.h>
39696#else
39697# include <assert.h>
39698#endif
39699
39700#undef readdir_r
39701
39702/* Override any gcc2 internal prototype to avoid an error. */
39703#ifdef __cplusplus
39704extern "C"
39705{
39706#endif
39707/* We use char because int might match the return type of a gcc2
39708 builtin and then its argument prototype would still apply. */
39709char readdir_r ();
39710/* The GNU C library defines this for functions which it implements
39711 to always fail with ENOSYS. Some functions are actually named
39712 something starting with __ and the normal name is an alias. */
39713#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39714choke me
39715#else
39716char (*f) () = readdir_r;
39717#endif
39718#ifdef __cplusplus
39719}
39720#endif
39721
39722int
39723main ()
39724{
39725return f != readdir_r;
39726 ;
39727 return 0;
39728}
39729_ACEOF
39730rm -f conftest.$ac_objext conftest$ac_exeext
39731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39732 (eval $ac_link) 2>conftest.er1
39733 ac_status=$?
39734 grep -v '^ *+' conftest.er1 >conftest.err
39735 rm -f conftest.er1
39736 cat conftest.err >&5
39737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738 (exit $ac_status); } &&
c9a66001 39739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39741 (eval $ac_try) 2>&5
39742 ac_status=$?
39743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744 (exit $ac_status); }; } &&
39745 { ac_try='test -s conftest$ac_exeext'
39746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747 (eval $ac_try) 2>&5
39748 ac_status=$?
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); }; }; then
39751 ac_cv_func_readdir_r=yes
39752else
39753 echo "$as_me: failed program was:" >&5
39754sed 's/^/| /' conftest.$ac_ext >&5
39755
39756ac_cv_func_readdir_r=no
39757fi
39758rm -f conftest.err conftest.$ac_objext \
39759 conftest$ac_exeext conftest.$ac_ext
39760fi
39761echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39762echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39763if test $ac_cv_func_readdir_r = yes; then
39764 cat >>confdefs.h <<\_ACEOF
39765#define HAVE_READDIR_R 1
39766_ACEOF
39767
39768fi
39769
004ee6da 39770
004ee6da
RL
39771
39772
39773 ac_ext=c
39774ac_cpp='$CPP $CPPFLAGS'
39775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39777ac_compiler_gnu=$ac_cv_c_compiler_gnu
39778
39779 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39780echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39781
39782 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39783 echo $ECHO_N "(cached) $ECHO_C" >&6
39784else
39785
39786
2f6c5bb5 39787################################################################
004ee6da
RL
39788
39789ac_cv_func_which_gethostbyname_r=unknown
39790
39791#
39792# ONE ARGUMENT (sanity check)
39793#
39794
39795# This should fail, as there is no variant of gethostbyname_r() that takes
39796# a single argument. If it actually compiles, then we can assume that
39797# netdb.h is not declaring the function, and the compiler is thereby
39798# assuming an implicit prototype. In which case, we're out of luck.
39799#
39800cat >conftest.$ac_ext <<_ACEOF
39801/* confdefs.h. */
39802_ACEOF
39803cat confdefs.h >>conftest.$ac_ext
39804cat >>conftest.$ac_ext <<_ACEOF
39805/* end confdefs.h. */
39806#include <netdb.h>
39807int
39808main ()
39809{
39810
39811 char *name = "www.gnu.org";
39812 (void)gethostbyname_r(name) /* ; */
39813
39814 ;
39815 return 0;
39816}
39817_ACEOF
39818rm -f conftest.$ac_objext
39819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39820 (eval $ac_compile) 2>conftest.er1
39821 ac_status=$?
39822 grep -v '^ *+' conftest.er1 >conftest.err
39823 rm -f conftest.er1
39824 cat conftest.err >&5
39825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39826 (exit $ac_status); } &&
c9a66001 39827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39829 (eval $ac_try) 2>&5
39830 ac_status=$?
39831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832 (exit $ac_status); }; } &&
39833 { ac_try='test -s conftest.$ac_objext'
39834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39835 (eval $ac_try) 2>&5
39836 ac_status=$?
39837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838 (exit $ac_status); }; }; then
39839 ac_cv_func_which_gethostbyname_r=no
39840else
39841 echo "$as_me: failed program was:" >&5
39842sed 's/^/| /' conftest.$ac_ext >&5
39843
39844fi
39845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39846
39847#
39848# SIX ARGUMENTS
39849# (e.g. Linux)
39850#
39851
39852if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39853
39854cat >conftest.$ac_ext <<_ACEOF
39855/* confdefs.h. */
39856_ACEOF
39857cat confdefs.h >>conftest.$ac_ext
39858cat >>conftest.$ac_ext <<_ACEOF
39859/* end confdefs.h. */
39860#include <netdb.h>
39861int
39862main ()
39863{
39864
39865 char *name = "www.gnu.org";
39866 struct hostent ret, *retp;
39867 char buf[1024];
39868 int buflen = 1024;
39869 int my_h_errno;
39870 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39871
39872 ;
39873 return 0;
39874}
39875_ACEOF
39876rm -f conftest.$ac_objext
39877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39878 (eval $ac_compile) 2>conftest.er1
39879 ac_status=$?
39880 grep -v '^ *+' conftest.er1 >conftest.err
39881 rm -f conftest.er1
39882 cat conftest.err >&5
39883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39884 (exit $ac_status); } &&
c9a66001 39885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39887 (eval $ac_try) 2>&5
39888 ac_status=$?
39889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39890 (exit $ac_status); }; } &&
39891 { ac_try='test -s conftest.$ac_objext'
39892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39893 (eval $ac_try) 2>&5
39894 ac_status=$?
39895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896 (exit $ac_status); }; }; then
39897 ac_cv_func_which_gethostbyname_r=six
39898else
39899 echo "$as_me: failed program was:" >&5
39900sed 's/^/| /' conftest.$ac_ext >&5
39901
39902fi
39903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39904
39905fi
39906
39907#
39908# FIVE ARGUMENTS
39909# (e.g. Solaris)
39910#
39911
39912if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39913
39914cat >conftest.$ac_ext <<_ACEOF
39915/* confdefs.h. */
39916_ACEOF
39917cat confdefs.h >>conftest.$ac_ext
39918cat >>conftest.$ac_ext <<_ACEOF
39919/* end confdefs.h. */
39920#include <netdb.h>
39921int
39922main ()
39923{
39924
39925 char *name = "www.gnu.org";
39926 struct hostent ret;
39927 char buf[1024];
39928 int buflen = 1024;
39929 int my_h_errno;
39930 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39931
39932 ;
39933 return 0;
39934}
39935_ACEOF
39936rm -f conftest.$ac_objext
39937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39938 (eval $ac_compile) 2>conftest.er1
39939 ac_status=$?
39940 grep -v '^ *+' conftest.er1 >conftest.err
39941 rm -f conftest.er1
39942 cat conftest.err >&5
39943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944 (exit $ac_status); } &&
c9a66001 39945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39947 (eval $ac_try) 2>&5
39948 ac_status=$?
39949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950 (exit $ac_status); }; } &&
39951 { ac_try='test -s conftest.$ac_objext'
39952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39953 (eval $ac_try) 2>&5
39954 ac_status=$?
39955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956 (exit $ac_status); }; }; then
39957 ac_cv_func_which_gethostbyname_r=five
39958else
39959 echo "$as_me: failed program was:" >&5
39960sed 's/^/| /' conftest.$ac_ext >&5
39961
39962fi
39963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39964
39965fi
39966
39967#
39968# THREE ARGUMENTS
39969# (e.g. AIX, HP-UX, Tru64)
39970#
39971
39972if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39973
39974cat >conftest.$ac_ext <<_ACEOF
39975/* confdefs.h. */
39976_ACEOF
39977cat confdefs.h >>conftest.$ac_ext
39978cat >>conftest.$ac_ext <<_ACEOF
39979/* end confdefs.h. */
39980#include <netdb.h>
39981int
39982main ()
39983{
39984
39985 char *name = "www.gnu.org";
39986 struct hostent ret;
39987 struct hostent_data data;
39988 (void)gethostbyname_r(name, &ret, &data) /* ; */
39989
39990 ;
39991 return 0;
39992}
39993_ACEOF
39994rm -f conftest.$ac_objext
39995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39996 (eval $ac_compile) 2>conftest.er1
39997 ac_status=$?
39998 grep -v '^ *+' conftest.er1 >conftest.err
39999 rm -f conftest.er1
40000 cat conftest.err >&5
40001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002 (exit $ac_status); } &&
c9a66001 40003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40005 (eval $ac_try) 2>&5
40006 ac_status=$?
40007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40008 (exit $ac_status); }; } &&
40009 { ac_try='test -s conftest.$ac_objext'
40010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40011 (eval $ac_try) 2>&5
40012 ac_status=$?
40013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014 (exit $ac_status); }; }; then
40015 ac_cv_func_which_gethostbyname_r=three
40016else
40017 echo "$as_me: failed program was:" >&5
40018sed 's/^/| /' conftest.$ac_ext >&5
40019
40020fi
40021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40022
40023fi
40024
2f6c5bb5 40025################################################################
004ee6da
RL
40026
40027
40028fi
40029
40030case "$ac_cv_func_which_gethostbyname_r" in
40031 three)
40032 echo "$as_me:$LINENO: result: three" >&5
40033echo "${ECHO_T}three" >&6
40034 cat >>confdefs.h <<\_ACEOF
40035#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40036_ACEOF
40037
40038 ;;
40039
40040 five)
40041 echo "$as_me:$LINENO: result: five" >&5
40042echo "${ECHO_T}five" >&6
40043 cat >>confdefs.h <<\_ACEOF
40044#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40045_ACEOF
40046
40047 ;;
40048
40049 six)
40050 echo "$as_me:$LINENO: result: six" >&5
40051echo "${ECHO_T}six" >&6
40052 cat >>confdefs.h <<\_ACEOF
40053#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40054_ACEOF
40055
40056 ;;
40057
40058 no)
40059 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40060echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40061 ;;
40062
40063 unknown)
40064 echo "$as_me:$LINENO: result: can't tell" >&5
40065echo "${ECHO_T}can't tell" >&6
40066 ;;
40067
40068 *)
40069 { { echo "$as_me:$LINENO: error: internal error" >&5
40070echo "$as_me: error: internal error" >&2;}
40071 { (exit 1); exit 1; }; }
40072 ;;
40073esac
40074
5ec3bc43
JS
40075ac_ext=cc
40076ac_cpp='$CXXCPP $CPPFLAGS'
40077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
40080
40081
40082
40083 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40084 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40085 echo "$as_me:$LINENO: checking for gethostbyname" >&5
40086echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40087if test "${ac_cv_func_gethostbyname+set}" = set; then
40088 echo $ECHO_N "(cached) $ECHO_C" >&6
40089else
40090 cat >conftest.$ac_ext <<_ACEOF
40091/* confdefs.h. */
40092_ACEOF
40093cat confdefs.h >>conftest.$ac_ext
40094cat >>conftest.$ac_ext <<_ACEOF
40095/* end confdefs.h. */
40096/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40098#define gethostbyname innocuous_gethostbyname
40099
40100/* System header to define __stub macros and hopefully few prototypes,
40101 which can conflict with char gethostbyname (); below.
40102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40103 <limits.h> exists even on freestanding compilers. */
40104
40105#ifdef __STDC__
40106# include <limits.h>
40107#else
40108# include <assert.h>
40109#endif
40110
40111#undef gethostbyname
40112
40113/* Override any gcc2 internal prototype to avoid an error. */
40114#ifdef __cplusplus
40115extern "C"
40116{
40117#endif
40118/* We use char because int might match the return type of a gcc2
40119 builtin and then its argument prototype would still apply. */
40120char gethostbyname ();
40121/* The GNU C library defines this for functions which it implements
40122 to always fail with ENOSYS. Some functions are actually named
40123 something starting with __ and the normal name is an alias. */
40124#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40125choke me
40126#else
40127char (*f) () = gethostbyname;
40128#endif
40129#ifdef __cplusplus
40130}
40131#endif
40132
40133int
40134main ()
40135{
40136return f != gethostbyname;
40137 ;
40138 return 0;
40139}
40140_ACEOF
40141rm -f conftest.$ac_objext conftest$ac_exeext
40142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40143 (eval $ac_link) 2>conftest.er1
40144 ac_status=$?
40145 grep -v '^ *+' conftest.er1 >conftest.err
40146 rm -f conftest.er1
40147 cat conftest.err >&5
40148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149 (exit $ac_status); } &&
c9a66001 40150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40152 (eval $ac_try) 2>&5
40153 ac_status=$?
40154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40155 (exit $ac_status); }; } &&
40156 { ac_try='test -s conftest$ac_exeext'
40157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40158 (eval $ac_try) 2>&5
40159 ac_status=$?
40160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40161 (exit $ac_status); }; }; then
40162 ac_cv_func_gethostbyname=yes
40163else
40164 echo "$as_me: failed program was:" >&5
40165sed 's/^/| /' conftest.$ac_ext >&5
40166
40167ac_cv_func_gethostbyname=no
40168fi
40169rm -f conftest.err conftest.$ac_objext \
40170 conftest$ac_exeext conftest.$ac_ext
40171fi
40172echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40173echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40174if test $ac_cv_func_gethostbyname = yes; then
40175 cat >>confdefs.h <<\_ACEOF
40176#define HAVE_GETHOSTBYNAME 1
40177_ACEOF
40178
40179fi
40180
40181 fi
40182 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40183echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
3ecd9f92
MW
40184if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40185 echo $ECHO_N "(cached) $ECHO_C" >&6
40186else
40187
40188echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40189echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
40190if test "${ac_cv_func_getservbyname_r+set}" = set; then
40191 echo $ECHO_N "(cached) $ECHO_C" >&6
40192else
40193 cat >conftest.$ac_ext <<_ACEOF
40194/* confdefs.h. */
40195_ACEOF
40196cat confdefs.h >>conftest.$ac_ext
40197cat >>conftest.$ac_ext <<_ACEOF
40198/* end confdefs.h. */
40199/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
40200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40201#define getservbyname_r innocuous_getservbyname_r
40202
40203/* System header to define __stub macros and hopefully few prototypes,
40204 which can conflict with char getservbyname_r (); below.
40205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40206 <limits.h> exists even on freestanding compilers. */
40207
40208#ifdef __STDC__
40209# include <limits.h>
40210#else
40211# include <assert.h>
40212#endif
40213
40214#undef getservbyname_r
40215
40216/* Override any gcc2 internal prototype to avoid an error. */
40217#ifdef __cplusplus
40218extern "C"
40219{
40220#endif
40221/* We use char because int might match the return type of a gcc2
40222 builtin and then its argument prototype would still apply. */
40223char getservbyname_r ();
40224/* The GNU C library defines this for functions which it implements
40225 to always fail with ENOSYS. Some functions are actually named
40226 something starting with __ and the normal name is an alias. */
40227#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
40228choke me
40229#else
40230char (*f) () = getservbyname_r;
40231#endif
40232#ifdef __cplusplus
40233}
40234#endif
40235
40236int
40237main ()
40238{
40239return f != getservbyname_r;
40240 ;
40241 return 0;
40242}
40243_ACEOF
40244rm -f conftest.$ac_objext conftest$ac_exeext
40245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40246 (eval $ac_link) 2>conftest.er1
40247 ac_status=$?
40248 grep -v '^ *+' conftest.er1 >conftest.err
40249 rm -f conftest.er1
40250 cat conftest.err >&5
40251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40252 (exit $ac_status); } &&
c9a66001 40253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40255 (eval $ac_try) 2>&5
40256 ac_status=$?
40257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40258 (exit $ac_status); }; } &&
40259 { ac_try='test -s conftest$ac_exeext'
40260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40261 (eval $ac_try) 2>&5
40262 ac_status=$?
40263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264 (exit $ac_status); }; }; then
40265 ac_cv_func_getservbyname_r=yes
40266else
40267 echo "$as_me: failed program was:" >&5
40268sed 's/^/| /' conftest.$ac_ext >&5
40269
40270ac_cv_func_getservbyname_r=no
40271fi
40272rm -f conftest.err conftest.$ac_objext \
40273 conftest$ac_exeext conftest.$ac_ext
40274fi
40275echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
40276echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
40277if test $ac_cv_func_getservbyname_r = yes; then
3ecd9f92
MW
40278
40279 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40280/* confdefs.h. */
40281_ACEOF
40282cat confdefs.h >>conftest.$ac_ext
40283cat >>conftest.$ac_ext <<_ACEOF
40284/* end confdefs.h. */
3ecd9f92
MW
40285
40286# include <netdb.h>
40287
004ee6da
RL
40288int
40289main ()
40290{
40291
3ecd9f92
MW
40292
40293 char *name;
40294 char *proto;
40295 struct servent *se;
40296 struct servent_data data;
40297 (void) getservbyname_r(name, proto, se, &data);
40298
004ee6da
RL
40299
40300 ;
40301 return 0;
40302}
40303_ACEOF
40304rm -f conftest.$ac_objext
40305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40306 (eval $ac_compile) 2>conftest.er1
40307 ac_status=$?
40308 grep -v '^ *+' conftest.er1 >conftest.err
40309 rm -f conftest.er1
40310 cat conftest.err >&5
40311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312 (exit $ac_status); } &&
c9a66001 40313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40315 (eval $ac_try) 2>&5
40316 ac_status=$?
40317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40318 (exit $ac_status); }; } &&
40319 { ac_try='test -s conftest.$ac_objext'
40320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40321 (eval $ac_try) 2>&5
40322 ac_status=$?
40323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); }; }; then
40325 ac_cv_func_which_getservbyname_r=four
40326else
40327 echo "$as_me: failed program was:" >&5
40328sed 's/^/| /' conftest.$ac_ext >&5
40329
3ecd9f92
MW
40330
40331 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40332/* confdefs.h. */
40333_ACEOF
40334cat confdefs.h >>conftest.$ac_ext
40335cat >>conftest.$ac_ext <<_ACEOF
40336/* end confdefs.h. */
3ecd9f92
MW
40337
40338# include <netdb.h>
40339
004ee6da
RL
40340int
40341main ()
40342{
40343
3ecd9f92
MW
40344 char *name;
40345 char *proto;
40346 struct servent *se, *res;
40347 char buffer[2048];
40348 int buflen = 2048;
40349 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
40350
40351 ;
40352 return 0;
40353}
40354_ACEOF
40355rm -f conftest.$ac_objext
40356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40357 (eval $ac_compile) 2>conftest.er1
40358 ac_status=$?
40359 grep -v '^ *+' conftest.er1 >conftest.err
40360 rm -f conftest.er1
40361 cat conftest.err >&5
40362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40363 (exit $ac_status); } &&
c9a66001 40364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40366 (eval $ac_try) 2>&5
40367 ac_status=$?
40368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40369 (exit $ac_status); }; } &&
40370 { ac_try='test -s conftest.$ac_objext'
40371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40372 (eval $ac_try) 2>&5
40373 ac_status=$?
40374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40375 (exit $ac_status); }; }; then
40376 ac_cv_func_which_getservbyname_r=six
40377else
40378 echo "$as_me: failed program was:" >&5
40379sed 's/^/| /' conftest.$ac_ext >&5
40380
3ecd9f92
MW
40381
40382 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40383/* confdefs.h. */
40384_ACEOF
40385cat confdefs.h >>conftest.$ac_ext
40386cat >>conftest.$ac_ext <<_ACEOF
40387/* end confdefs.h. */
3ecd9f92
MW
40388
40389# include <netdb.h>
40390
004ee6da
RL
40391int
40392main ()
40393{
40394
3ecd9f92
MW
40395 char *name;
40396 char *proto;
40397 struct servent *se;
40398 char buffer[2048];
40399 int buflen = 2048;
40400 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40401
40402 ;
40403 return 0;
40404}
40405_ACEOF
40406rm -f conftest.$ac_objext
40407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40408 (eval $ac_compile) 2>conftest.er1
40409 ac_status=$?
40410 grep -v '^ *+' conftest.er1 >conftest.err
40411 rm -f conftest.er1
40412 cat conftest.err >&5
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); } &&
c9a66001 40415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417 (eval $ac_try) 2>&5
40418 ac_status=$?
40419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); }; } &&
40421 { ac_try='test -s conftest.$ac_objext'
40422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40423 (eval $ac_try) 2>&5
40424 ac_status=$?
40425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40426 (exit $ac_status); }; }; then
40427 ac_cv_func_which_getservbyname_r=five
40428else
40429 echo "$as_me: failed program was:" >&5
40430sed 's/^/| /' conftest.$ac_ext >&5
40431
40432ac_cv_func_which_getservbyname_r=no
40433fi
40434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40435
3ecd9f92
MW
40436
40437
40438
004ee6da
RL
40439fi
40440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40441
3ecd9f92 40442
004ee6da
RL
40443fi
40444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 40445
004ee6da
RL
40446else
40447 ac_cv_func_which_getservbyname_r=no
40448fi
40449
3ecd9f92
MW
40450fi
40451echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40452echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
40453
40454if test $ac_cv_func_which_getservbyname_r = six; then
40455 cat >>confdefs.h <<\_ACEOF
40456#define HAVE_FUNC_GETSERVBYNAME_R_6 1
40457_ACEOF
40458
40459elif test $ac_cv_func_which_getservbyname_r = five; then
40460 cat >>confdefs.h <<\_ACEOF
40461#define HAVE_FUNC_GETSERVBYNAME_R_5 1
40462_ACEOF
40463
40464elif test $ac_cv_func_which_getservbyname_r = four; then
40465 cat >>confdefs.h <<\_ACEOF
40466#define HAVE_FUNC_GETSERVBYNAME_R_4 1
40467_ACEOF
40468
3ecd9f92 40469
004ee6da
RL
40470fi
40471
40472
40473 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40474 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40475
40476for ac_func in getservbyname
40477do
40478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40479echo "$as_me:$LINENO: checking for $ac_func" >&5
40480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40481if eval "test \"\${$as_ac_var+set}\" = set"; then
40482 echo $ECHO_N "(cached) $ECHO_C" >&6
40483else
40484 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40492#define $ac_func innocuous_$ac_func
40493
40494/* System header to define __stub macros and hopefully few prototypes,
40495 which can conflict with char $ac_func (); below.
40496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40497 <limits.h> exists even on freestanding compilers. */
40498
40499#ifdef __STDC__
40500# include <limits.h>
40501#else
40502# include <assert.h>
40503#endif
40504
40505#undef $ac_func
40506
40507/* Override any gcc2 internal prototype to avoid an error. */
40508#ifdef __cplusplus
40509extern "C"
40510{
40511#endif
40512/* We use char because int might match the return type of a gcc2
40513 builtin and then its argument prototype would still apply. */
40514char $ac_func ();
40515/* The GNU C library defines this for functions which it implements
40516 to always fail with ENOSYS. Some functions are actually named
40517 something starting with __ and the normal name is an alias. */
40518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40519choke me
40520#else
40521char (*f) () = $ac_func;
40522#endif
40523#ifdef __cplusplus
40524}
40525#endif
40526
40527int
40528main ()
40529{
40530return f != $ac_func;
40531 ;
40532 return 0;
40533}
40534_ACEOF
40535rm -f conftest.$ac_objext conftest$ac_exeext
40536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40537 (eval $ac_link) 2>conftest.er1
40538 ac_status=$?
40539 grep -v '^ *+' conftest.er1 >conftest.err
40540 rm -f conftest.er1
40541 cat conftest.err >&5
40542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40543 (exit $ac_status); } &&
c9a66001 40544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40546 (eval $ac_try) 2>&5
40547 ac_status=$?
40548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549 (exit $ac_status); }; } &&
40550 { ac_try='test -s conftest$ac_exeext'
40551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40552 (eval $ac_try) 2>&5
40553 ac_status=$?
40554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40555 (exit $ac_status); }; }; then
40556 eval "$as_ac_var=yes"
40557else
40558 echo "$as_me: failed program was:" >&5
40559sed 's/^/| /' conftest.$ac_ext >&5
40560
40561eval "$as_ac_var=no"
40562fi
40563rm -f conftest.err conftest.$ac_objext \
40564 conftest$ac_exeext conftest.$ac_ext
40565fi
40566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40568if test `eval echo '${'$as_ac_var'}'` = yes; then
40569 cat >>confdefs.h <<_ACEOF
40570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40571_ACEOF
40572 cat >>confdefs.h <<\_ACEOF
40573#define HAVE_GETSERVBYNAME 1
40574_ACEOF
40575
40576fi
40577done
40578
40579 fi
40580
004ee6da
RL
40581if test "$wxUSE_THREADS" = "yes"; then
40582 cat >>confdefs.h <<\_ACEOF
40583#define wxUSE_THREADS 1
40584_ACEOF
40585
40586
40587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40588else
56632e81 40589 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
40590 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40591echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40592 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40593 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40594 echo "$as_me:$LINENO: result: yes" >&5
40595echo "${ECHO_T}yes" >&6
40596 else
40597 echo "$as_me:$LINENO: result: no" >&5
40598echo "${ECHO_T}no" >&6
40599 fi
40600 fi
40601fi
40602
40603if test "$WXGTK20" = 1 ; then
40604 cat >>confdefs.h <<_ACEOF
40605#define __WXGTK20__ $WXGTK20
40606_ACEOF
40607
40608 WXGTK12=1
40609fi
40610
40611if test "$WXGTK12" = 1 ; then
40612 cat >>confdefs.h <<_ACEOF
40613#define __WXGTK12__ $WXGTK12
40614_ACEOF
40615
40616fi
40617
40618if test "$WXGTK127" = 1 ; then
40619 cat >>confdefs.h <<_ACEOF
40620#define __WXGTK127__ $WXGTK127
40621_ACEOF
40622
40623fi
40624
40625if test "$WXGPE" = 1 ; then
40626 cat >>confdefs.h <<_ACEOF
40627#define __WXGPE__ $WXGPE
40628_ACEOF
40629
40630fi
40631
40632DEBUG_CFLAGS=
40633if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40634 DEBUG_CFLAGS="-g"
40635 wxUSE_OPTIMISE=no
40636fi
40637
40638if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40639 wxUSE_DEBUG_INFO=yes
40640 if test "$GCC" = yes; then
40641 DEBUG_CFLAGS="-ggdb"
40642 fi
40643fi
40644
40645if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40646 cat >>confdefs.h <<\_ACEOF
40647#define WXDEBUG 1
40648_ACEOF
40649
40650 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40651else
40652 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40653 if test "x$wxGTK_VERSION" = "x1" ; then
40654 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40655 fi
004ee6da
RL
40656 fi
40657fi
40658
40659if test "$wxUSE_MEM_TRACING" = "yes" ; then
40660 cat >>confdefs.h <<\_ACEOF
40661#define wxUSE_MEMORY_TRACING 1
40662_ACEOF
40663
40664 cat >>confdefs.h <<\_ACEOF
40665#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40666_ACEOF
40667
40668 cat >>confdefs.h <<\_ACEOF
40669#define wxUSE_DEBUG_NEW_ALWAYS 1
40670_ACEOF
40671
40672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40673fi
40674
40675if test "$wxUSE_DMALLOC" = "yes" ; then
40676 DMALLOC_LIBS="-ldmallocthcxx"
40677fi
40678
40679PROFILE_FLAGS=
40680if test "$wxUSE_PROFILE" = "yes" ; then
40681 PROFILE_FLAGS=" -pg"
40682fi
40683
40684if test "$GCC" = "yes" ; then
40685 if test "$wxUSE_NO_RTTI" = "yes" ; then
40686 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40687 fi
40688 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40689 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40690 fi
40691 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40692 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40693 fi
40694
40695 case "${host}" in
40696 powerpc*-*-aix* )
40697 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40698 ;;
40699 *-hppa* )
40700 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40701 ;;
40702 esac
40703fi
40704
40705OPTIMISE_CFLAGS=
40706if test "$wxUSE_OPTIMISE" = "no" ; then
40707 if test "$GCC" = yes ; then
40708 OPTIMISE_CFLAGS="-O0"
40709 fi
40710else
40711 if test "$GCC" = yes ; then
e5efa97e
VZ
40712 case "${host}" in
40713 *-pc-os2_emx | *-pc-os2-emx )
40714 OPTIMISE_CFLAGS="-O2"
40715 ;;
40716 *)
40717 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40718 ;;
40719 esac
004ee6da
RL
40720 else
40721 OPTIMISE_CFLAGS="-O"
40722 fi
40723fi
40724
40725
40726if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40727 cat >>confdefs.h <<\_ACEOF
40728#define WXWIN_COMPATIBILITY_2_4 1
40729_ACEOF
40730
40731
40732 WXWIN_COMPATIBILITY_2_6="yes"
40733fi
40734
40735if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40736 cat >>confdefs.h <<\_ACEOF
40737#define WXWIN_COMPATIBILITY_2_6 1
40738_ACEOF
40739
40740fi
40741
40742
40743if test "$wxUSE_GUI" = "yes"; then
40744 cat >>confdefs.h <<\_ACEOF
40745#define wxUSE_GUI 1
40746_ACEOF
40747
40748
40749 fi
40750
40751
40752if test "$wxUSE_UNIX" = "yes"; then
40753 cat >>confdefs.h <<\_ACEOF
40754#define wxUSE_UNIX 1
40755_ACEOF
40756
40757fi
40758
40759
40760if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40761
40762 HAVE_DL_FUNCS=0
40763 HAVE_SHL_FUNCS=0
40764 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40765 if test "$USE_DARWIN" = 1; then
40766 HAVE_DL_FUNCS=1
40767 elif test "$USE_DOS" = 1; then
40768 HAVE_DL_FUNCS=0
40769 else
40770
40771for ac_func in dlopen
40772do
40773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40774echo "$as_me:$LINENO: checking for $ac_func" >&5
40775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40776if eval "test \"\${$as_ac_var+set}\" = set"; then
40777 echo $ECHO_N "(cached) $ECHO_C" >&6
40778else
40779 cat >conftest.$ac_ext <<_ACEOF
40780/* confdefs.h. */
40781_ACEOF
40782cat confdefs.h >>conftest.$ac_ext
40783cat >>conftest.$ac_ext <<_ACEOF
40784/* end confdefs.h. */
40785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40787#define $ac_func innocuous_$ac_func
40788
40789/* System header to define __stub macros and hopefully few prototypes,
40790 which can conflict with char $ac_func (); below.
40791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40792 <limits.h> exists even on freestanding compilers. */
40793
40794#ifdef __STDC__
40795# include <limits.h>
40796#else
40797# include <assert.h>
40798#endif
40799
40800#undef $ac_func
40801
40802/* Override any gcc2 internal prototype to avoid an error. */
40803#ifdef __cplusplus
40804extern "C"
40805{
40806#endif
40807/* We use char because int might match the return type of a gcc2
40808 builtin and then its argument prototype would still apply. */
40809char $ac_func ();
40810/* The GNU C library defines this for functions which it implements
40811 to always fail with ENOSYS. Some functions are actually named
40812 something starting with __ and the normal name is an alias. */
40813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40814choke me
40815#else
40816char (*f) () = $ac_func;
40817#endif
40818#ifdef __cplusplus
40819}
40820#endif
40821
40822int
40823main ()
40824{
40825return f != $ac_func;
a848cd7e
SC
40826 ;
40827 return 0;
40828}
40829_ACEOF
40830rm -f conftest.$ac_objext conftest$ac_exeext
40831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40832 (eval $ac_link) 2>conftest.er1
a848cd7e 40833 ac_status=$?
ac1cb8d3
VS
40834 grep -v '^ *+' conftest.er1 >conftest.err
40835 rm -f conftest.er1
40836 cat conftest.err >&5
a848cd7e
SC
40837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40838 (exit $ac_status); } &&
c9a66001 40839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40841 (eval $ac_try) 2>&5
40842 ac_status=$?
40843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40844 (exit $ac_status); }; } &&
40845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40847 (eval $ac_try) 2>&5
40848 ac_status=$?
40849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850 (exit $ac_status); }; }; then
40851 eval "$as_ac_var=yes"
40852else
40853 echo "$as_me: failed program was:" >&5
40854sed 's/^/| /' conftest.$ac_ext >&5
40855
40856eval "$as_ac_var=no"
40857fi
ac1cb8d3
VS
40858rm -f conftest.err conftest.$ac_objext \
40859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40860fi
40861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40863if test `eval echo '${'$as_ac_var'}'` = yes; then
40864 cat >>confdefs.h <<_ACEOF
40865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40866_ACEOF
40867
40868 cat >>confdefs.h <<\_ACEOF
40869#define HAVE_DLOPEN 1
40870_ACEOF
40871
40872 HAVE_DL_FUNCS=1
40873
40874else
40875
40876 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40877echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40878if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40879 echo $ECHO_N "(cached) $ECHO_C" >&6
40880else
40881 ac_check_lib_save_LIBS=$LIBS
40882LIBS="-ldl $LIBS"
40883cat >conftest.$ac_ext <<_ACEOF
40884/* confdefs.h. */
40885_ACEOF
40886cat confdefs.h >>conftest.$ac_ext
40887cat >>conftest.$ac_ext <<_ACEOF
40888/* end confdefs.h. */
40889
40890/* Override any gcc2 internal prototype to avoid an error. */
40891#ifdef __cplusplus
40892extern "C"
40893#endif
40894/* We use char because int might match the return type of a gcc2
40895 builtin and then its argument prototype would still apply. */
40896char dlopen ();
40897int
40898main ()
40899{
40900dlopen ();
40901 ;
40902 return 0;
40903}
40904_ACEOF
40905rm -f conftest.$ac_objext conftest$ac_exeext
40906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40907 (eval $ac_link) 2>conftest.er1
a848cd7e 40908 ac_status=$?
ac1cb8d3
VS
40909 grep -v '^ *+' conftest.er1 >conftest.err
40910 rm -f conftest.er1
40911 cat conftest.err >&5
a848cd7e
SC
40912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40913 (exit $ac_status); } &&
c9a66001 40914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40916 (eval $ac_try) 2>&5
40917 ac_status=$?
40918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40919 (exit $ac_status); }; } &&
40920 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40922 (eval $ac_try) 2>&5
40923 ac_status=$?
40924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40925 (exit $ac_status); }; }; then
40926 ac_cv_lib_dl_dlopen=yes
40927else
40928 echo "$as_me: failed program was:" >&5
40929sed 's/^/| /' conftest.$ac_ext >&5
40930
40931ac_cv_lib_dl_dlopen=no
40932fi
ac1cb8d3
VS
40933rm -f conftest.err conftest.$ac_objext \
40934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40935LIBS=$ac_check_lib_save_LIBS
40936fi
40937echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40938echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40939if test $ac_cv_lib_dl_dlopen = yes; then
40940
40941 cat >>confdefs.h <<\_ACEOF
40942#define HAVE_DLOPEN 1
40943_ACEOF
40944
40945 HAVE_DL_FUNCS=1
40946 DL_LINK=" -ldl$DL_LINK"
40947
40948else
40949
40950
40951for ac_func in shl_load
40952do
40953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40954echo "$as_me:$LINENO: checking for $ac_func" >&5
40955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40956if eval "test \"\${$as_ac_var+set}\" = set"; then
40957 echo $ECHO_N "(cached) $ECHO_C" >&6
40958else
40959 cat >conftest.$ac_ext <<_ACEOF
40960/* confdefs.h. */
40961_ACEOF
40962cat confdefs.h >>conftest.$ac_ext
40963cat >>conftest.$ac_ext <<_ACEOF
40964/* end confdefs.h. */
ac1cb8d3
VS
40965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40967#define $ac_func innocuous_$ac_func
40968
a848cd7e
SC
40969/* System header to define __stub macros and hopefully few prototypes,
40970 which can conflict with char $ac_func (); below.
40971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40972 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40973
a848cd7e
SC
40974#ifdef __STDC__
40975# include <limits.h>
40976#else
40977# include <assert.h>
40978#endif
ac1cb8d3
VS
40979
40980#undef $ac_func
40981
a848cd7e
SC
40982/* Override any gcc2 internal prototype to avoid an error. */
40983#ifdef __cplusplus
40984extern "C"
40985{
40986#endif
40987/* We use char because int might match the return type of a gcc2
40988 builtin and then its argument prototype would still apply. */
40989char $ac_func ();
40990/* The GNU C library defines this for functions which it implements
40991 to always fail with ENOSYS. Some functions are actually named
40992 something starting with __ and the normal name is an alias. */
40993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40994choke me
40995#else
40996char (*f) () = $ac_func;
40997#endif
40998#ifdef __cplusplus
40999}
41000#endif
41001
41002int
41003main ()
41004{
41005return f != $ac_func;
41006 ;
41007 return 0;
41008}
41009_ACEOF
41010rm -f conftest.$ac_objext conftest$ac_exeext
41011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41012 (eval $ac_link) 2>conftest.er1
a848cd7e 41013 ac_status=$?
ac1cb8d3
VS
41014 grep -v '^ *+' conftest.er1 >conftest.err
41015 rm -f conftest.er1
41016 cat conftest.err >&5
a848cd7e
SC
41017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41018 (exit $ac_status); } &&
c9a66001 41019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41021 (eval $ac_try) 2>&5
41022 ac_status=$?
41023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41024 (exit $ac_status); }; } &&
41025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41027 (eval $ac_try) 2>&5
41028 ac_status=$?
41029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030 (exit $ac_status); }; }; then
41031 eval "$as_ac_var=yes"
41032else
41033 echo "$as_me: failed program was:" >&5
41034sed 's/^/| /' conftest.$ac_ext >&5
41035
41036eval "$as_ac_var=no"
41037fi
ac1cb8d3
VS
41038rm -f conftest.err conftest.$ac_objext \
41039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41040fi
41041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41042echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41043if test `eval echo '${'$as_ac_var'}'` = yes; then
41044 cat >>confdefs.h <<_ACEOF
41045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41046_ACEOF
41047
41048 cat >>confdefs.h <<\_ACEOF
41049#define HAVE_SHL_LOAD 1
41050_ACEOF
41051
41052 HAVE_SHL_FUNCS=1
41053
41054else
41055
41056 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41057echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41058if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41059 echo $ECHO_N "(cached) $ECHO_C" >&6
41060else
41061 ac_check_lib_save_LIBS=$LIBS
41062LIBS="-lshl_load $LIBS"
41063cat >conftest.$ac_ext <<_ACEOF
41064/* confdefs.h. */
41065_ACEOF
41066cat confdefs.h >>conftest.$ac_ext
41067cat >>conftest.$ac_ext <<_ACEOF
41068/* end confdefs.h. */
41069
41070/* Override any gcc2 internal prototype to avoid an error. */
41071#ifdef __cplusplus
41072extern "C"
41073#endif
41074/* We use char because int might match the return type of a gcc2
41075 builtin and then its argument prototype would still apply. */
41076char dld ();
41077int
41078main ()
41079{
41080dld ();
41081 ;
41082 return 0;
41083}
41084_ACEOF
41085rm -f conftest.$ac_objext conftest$ac_exeext
41086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41087 (eval $ac_link) 2>conftest.er1
a848cd7e 41088 ac_status=$?
ac1cb8d3
VS
41089 grep -v '^ *+' conftest.er1 >conftest.err
41090 rm -f conftest.er1
41091 cat conftest.err >&5
a848cd7e
SC
41092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093 (exit $ac_status); } &&
c9a66001 41094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41096 (eval $ac_try) 2>&5
41097 ac_status=$?
41098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41099 (exit $ac_status); }; } &&
41100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41102 (eval $ac_try) 2>&5
41103 ac_status=$?
41104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41105 (exit $ac_status); }; }; then
41106 ac_cv_lib_shl_load_dld=yes
41107else
41108 echo "$as_me: failed program was:" >&5
41109sed 's/^/| /' conftest.$ac_ext >&5
41110
41111ac_cv_lib_shl_load_dld=no
41112fi
ac1cb8d3
VS
41113rm -f conftest.err conftest.$ac_objext \
41114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41115LIBS=$ac_check_lib_save_LIBS
41116fi
41117echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41118echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41119if test $ac_cv_lib_shl_load_dld = yes; then
41120
41121 HAVE_SHL_FUNCS=1
41122 DL_LINK=" -ldld$DL_LINK"
41123
41124fi
41125
41126
41127fi
41128done
41129
41130
41131fi
41132
41133
41134fi
41135done
41136
41137
41138 if test "$HAVE_DL_FUNCS" = 1; then
41139
41140for ac_func in dlerror
41141do
41142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41143echo "$as_me:$LINENO: checking for $ac_func" >&5
41144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41145if eval "test \"\${$as_ac_var+set}\" = set"; then
41146 echo $ECHO_N "(cached) $ECHO_C" >&6
41147else
41148 cat >conftest.$ac_ext <<_ACEOF
41149/* confdefs.h. */
41150_ACEOF
41151cat confdefs.h >>conftest.$ac_ext
41152cat >>conftest.$ac_ext <<_ACEOF
41153/* end confdefs.h. */
ac1cb8d3
VS
41154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41156#define $ac_func innocuous_$ac_func
41157
a848cd7e
SC
41158/* System header to define __stub macros and hopefully few prototypes,
41159 which can conflict with char $ac_func (); below.
41160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41161 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41162
a848cd7e
SC
41163#ifdef __STDC__
41164# include <limits.h>
41165#else
41166# include <assert.h>
41167#endif
ac1cb8d3
VS
41168
41169#undef $ac_func
41170
a848cd7e
SC
41171/* Override any gcc2 internal prototype to avoid an error. */
41172#ifdef __cplusplus
41173extern "C"
41174{
41175#endif
41176/* We use char because int might match the return type of a gcc2
41177 builtin and then its argument prototype would still apply. */
41178char $ac_func ();
41179/* The GNU C library defines this for functions which it implements
41180 to always fail with ENOSYS. Some functions are actually named
41181 something starting with __ and the normal name is an alias. */
41182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41183choke me
41184#else
41185char (*f) () = $ac_func;
41186#endif
41187#ifdef __cplusplus
41188}
41189#endif
41190
41191int
41192main ()
41193{
41194return f != $ac_func;
41195 ;
41196 return 0;
41197}
41198_ACEOF
41199rm -f conftest.$ac_objext conftest$ac_exeext
41200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41201 (eval $ac_link) 2>conftest.er1
a848cd7e 41202 ac_status=$?
ac1cb8d3
VS
41203 grep -v '^ *+' conftest.er1 >conftest.err
41204 rm -f conftest.er1
41205 cat conftest.err >&5
a848cd7e
SC
41206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207 (exit $ac_status); } &&
c9a66001 41208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41210 (eval $ac_try) 2>&5
41211 ac_status=$?
41212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213 (exit $ac_status); }; } &&
41214 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41216 (eval $ac_try) 2>&5
41217 ac_status=$?
41218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41219 (exit $ac_status); }; }; then
41220 eval "$as_ac_var=yes"
41221else
41222 echo "$as_me: failed program was:" >&5
41223sed 's/^/| /' conftest.$ac_ext >&5
41224
41225eval "$as_ac_var=no"
41226fi
ac1cb8d3
VS
41227rm -f conftest.err conftest.$ac_objext \
41228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41229fi
41230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41232if test `eval echo '${'$as_ac_var'}'` = yes; then
41233 cat >>confdefs.h <<_ACEOF
41234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41235_ACEOF
41236 cat >>confdefs.h <<\_ACEOF
41237#define HAVE_DLERROR 1
41238_ACEOF
41239
41240else
41241
41242 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41243echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41244if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41245 echo $ECHO_N "(cached) $ECHO_C" >&6
41246else
41247 ac_check_lib_save_LIBS=$LIBS
41248LIBS="-ldl $LIBS"
41249cat >conftest.$ac_ext <<_ACEOF
41250/* confdefs.h. */
41251_ACEOF
41252cat confdefs.h >>conftest.$ac_ext
41253cat >>conftest.$ac_ext <<_ACEOF
41254/* end confdefs.h. */
41255
41256/* Override any gcc2 internal prototype to avoid an error. */
41257#ifdef __cplusplus
41258extern "C"
41259#endif
41260/* We use char because int might match the return type of a gcc2
41261 builtin and then its argument prototype would still apply. */
41262char dlerror ();
41263int
41264main ()
41265{
41266dlerror ();
41267 ;
41268 return 0;
41269}
41270_ACEOF
41271rm -f conftest.$ac_objext conftest$ac_exeext
41272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41273 (eval $ac_link) 2>conftest.er1
a848cd7e 41274 ac_status=$?
ac1cb8d3
VS
41275 grep -v '^ *+' conftest.er1 >conftest.err
41276 rm -f conftest.er1
41277 cat conftest.err >&5
a848cd7e
SC
41278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41279 (exit $ac_status); } &&
c9a66001 41280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41282 (eval $ac_try) 2>&5
41283 ac_status=$?
41284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41285 (exit $ac_status); }; } &&
41286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41288 (eval $ac_try) 2>&5
41289 ac_status=$?
41290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41291 (exit $ac_status); }; }; then
41292 ac_cv_lib_dl_dlerror=yes
41293else
41294 echo "$as_me: failed program was:" >&5
41295sed 's/^/| /' conftest.$ac_ext >&5
41296
41297ac_cv_lib_dl_dlerror=no
41298fi
ac1cb8d3
VS
41299rm -f conftest.err conftest.$ac_objext \
41300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41301LIBS=$ac_check_lib_save_LIBS
41302fi
41303echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41304echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41305if test $ac_cv_lib_dl_dlerror = yes; then
41306 cat >>confdefs.h <<\_ACEOF
41307#define HAVE_DLERROR 1
41308_ACEOF
41309
41310fi
41311
41312
41313
41314fi
41315done
41316
41317 fi
41318 fi
41319
41320 if test "$HAVE_DL_FUNCS" = 0; then
41321 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41322 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41323 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41324echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41325 wxUSE_DYNAMIC_LOADER=no
41326 wxUSE_DYNLIB_CLASS=no
41327 else
41328 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41329echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41330 fi
41331 fi
41332 fi
41333 fi
41334fi
41335
41336if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41337 cat >>confdefs.h <<\_ACEOF
41338#define wxUSE_DYNAMIC_LOADER 1
41339_ACEOF
41340
41341fi
41342if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41343 cat >>confdefs.h <<\_ACEOF
41344#define wxUSE_DYNLIB_CLASS 1
41345_ACEOF
41346
41347fi
41348
41349
41350
41351if test "$wxUSE_PLUGINS" = "yes" ; then
41352 if test "$wxUSE_SHARED" = "no" ; then
41353 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41354echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41355 wxUSE_PLUGINS=no
41356 fi
41357 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41358 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41359echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41360 wxUSE_PLUGINS=no
41361 fi
41362 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41363 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41364echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41365 wxUSE_PLUGINS=no
41366 fi
41367 if test "$wxUSE_PLUGINS" = "yes" ; then
41368 cat >>confdefs.h <<\_ACEOF
41369#define wxUSE_PLUGINS 1
41370_ACEOF
41371
41372 fi
41373fi
41374
41375
41376if test "$wxUSE_STL" = "yes"; then
41377 cat >>confdefs.h <<\_ACEOF
41378#define wxUSE_STL 1
41379_ACEOF
41380
41381fi
41382
41383if test "$wxUSE_APPLE_IEEE" = "yes"; then
41384 cat >>confdefs.h <<\_ACEOF
41385#define wxUSE_APPLE_IEEE 1
41386_ACEOF
41387
41388fi
41389
41390if test "$wxUSE_TIMER" = "yes"; then
41391 cat >>confdefs.h <<\_ACEOF
41392#define wxUSE_TIMER 1
41393_ACEOF
41394
41395fi
41396
9c112555 41397if test "$USE_UNIX" = "1" ; then
31714590
VZ
41398 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41399echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 41400if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41401 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41402else
d12aef51
VZ
41403
41404 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41405/* confdefs.h. */
41406_ACEOF
41407cat confdefs.h >>conftest.$ac_ext
41408cat >>conftest.$ac_ext <<_ACEOF
41409/* end confdefs.h. */
d12aef51 41410
31714590 41411 #include <sys/ioctl.h>
d12aef51
VZ
41412 #include <sys/soundcard.h>
41413
41414int
41415main ()
41416{
41417
31714590 41418 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41419
41420 ;
41421 return 0;
41422}
a848cd7e 41423_ACEOF
d12aef51
VZ
41424rm -f conftest.$ac_objext conftest$ac_exeext
41425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41426 (eval $ac_link) 2>conftest.er1
a848cd7e 41427 ac_status=$?
ac1cb8d3
VS
41428 grep -v '^ *+' conftest.er1 >conftest.err
41429 rm -f conftest.er1
41430 cat conftest.err >&5
a848cd7e
SC
41431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41432 (exit $ac_status); } &&
c9a66001 41433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41435 (eval $ac_try) 2>&5
41436 ac_status=$?
41437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41438 (exit $ac_status); }; } &&
d12aef51 41439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41441 (eval $ac_try) 2>&5
41442 ac_status=$?
41443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41444 (exit $ac_status); }; }; then
d12aef51 41445 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41446else
41447 echo "$as_me: failed program was:" >&5
41448sed 's/^/| /' conftest.$ac_ext >&5
41449
a848cd7e 41450
d12aef51
VZ
41451 saveLibs="$LIBS"
41452 LIBS="$saveLibs -lossaudio"
41453 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41454/* confdefs.h. */
41455_ACEOF
41456cat confdefs.h >>conftest.$ac_ext
41457cat >>conftest.$ac_ext <<_ACEOF
41458/* end confdefs.h. */
d12aef51 41459
31714590 41460 #include <sys/ioctl.h>
d12aef51
VZ
41461 #include <sys/soundcard.h>
41462
41463int
41464main ()
41465{
41466
31714590 41467 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41468
41469 ;
41470 return 0;
41471}
a848cd7e 41472_ACEOF
d12aef51
VZ
41473rm -f conftest.$ac_objext conftest$ac_exeext
41474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41475 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
41476 ac_status=$?
41477 grep -v '^ *+' conftest.er1 >conftest.err
41478 rm -f conftest.er1
41479 cat conftest.err >&5
41480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 41481 (exit $ac_status); } &&
c9a66001 41482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
41483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41484 (eval $ac_try) 2>&5
41485 ac_status=$?
41486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487 (exit $ac_status); }; } &&
41488 { ac_try='test -s conftest$ac_exeext'
41489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41490 (eval $ac_try) 2>&5
41491 ac_status=$?
41492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41493 (exit $ac_status); }; }; then
41494 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41495else
41496 echo "$as_me: failed program was:" >&5
41497sed 's/^/| /' conftest.$ac_ext >&5
41498
a848cd7e 41499
d12aef51
VZ
41500 LIBS="$saveLibs"
41501 ac_cv_header_sys_soundcard=no
41502
41503
a848cd7e 41504fi
d12aef51
VZ
41505rm -f conftest.err conftest.$ac_objext \
41506 conftest$ac_exeext conftest.$ac_ext
41507
a848cd7e
SC
41508
41509fi
d12aef51
VZ
41510rm -f conftest.err conftest.$ac_objext \
41511 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41512
41513fi
d12aef51
VZ
41514echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41515echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 41516
d12aef51
VZ
41517 if test "$ac_cv_header_sys_soundcard" = "yes"; then
41518 cat >>confdefs.h <<\_ACEOF
41519#define HAVE_SYS_SOUNDCARD_H 1
41520_ACEOF
a848cd7e 41521
d12aef51
VZ
41522 else
41523 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41524 fi
9c112555
MW
41525fi
41526WITH_PLUGIN_SDL=0
41527if test "$wxUSE_SOUND" = "yes"; then
41528 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
41529 if test "$wxUSE_LIBSDL" != "no"; then
41530
41531# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41532if test "${with_sdl_prefix+set}" = set; then
41533 withval="$with_sdl_prefix"
41534 sdl_prefix="$withval"
41535else
41536 sdl_prefix=""
41537fi;
41538
41539# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41540if test "${with_sdl_exec_prefix+set}" = set; then
41541 withval="$with_sdl_exec_prefix"
41542 sdl_exec_prefix="$withval"
41543else
41544 sdl_exec_prefix=""
41545fi;
41546# Check whether --enable-sdltest or --disable-sdltest was given.
41547if test "${enable_sdltest+set}" = set; then
41548 enableval="$enable_sdltest"
41549
41550else
41551 enable_sdltest=yes
41552fi;
41553
41554 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
41555 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41556 if test x${SDL_CONFIG+set} != xset ; then
41557 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41558 fi
a848cd7e
SC
41559 fi
41560 if test x$sdl_prefix != x ; then
3ecd9f92
MW
41561 sdl_args="$sdl_args --prefix=$sdl_prefix"
41562 if test x${SDL_CONFIG+set} != xset ; then
41563 SDL_CONFIG=$sdl_prefix/bin/sdl-config
41564 fi
a848cd7e
SC
41565 fi
41566
3ecd9f92
MW
41567 if test "x$prefix" != xNONE; then
41568 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41569 fi
a848cd7e
SC
41570 # Extract the first word of "sdl-config", so it can be a program name with args.
41571set dummy sdl-config; ac_word=$2
41572echo "$as_me:$LINENO: checking for $ac_word" >&5
41573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41574if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41575 echo $ECHO_N "(cached) $ECHO_C" >&6
41576else
41577 case $SDL_CONFIG in
41578 [\\/]* | ?:[\\/]*)
41579 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41580 ;;
41581 *)
41582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41583for as_dir in $PATH
41584do
41585 IFS=$as_save_IFS
41586 test -z "$as_dir" && as_dir=.
41587 for ac_exec_ext in '' $ac_executable_extensions; do
41588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41589 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41591 break 2
41592 fi
41593done
41594done
41595
41596 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41597 ;;
41598esac
41599fi
41600SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41601
41602if test -n "$SDL_CONFIG"; then
41603 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41604echo "${ECHO_T}$SDL_CONFIG" >&6
41605else
41606 echo "$as_me:$LINENO: result: no" >&5
41607echo "${ECHO_T}no" >&6
41608fi
41609
41610 min_sdl_version=1.2.0
41611 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41612echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41613 no_sdl=""
41614 if test "$SDL_CONFIG" = "no" ; then
41615 no_sdl=yes
41616 else
41617 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41618 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41619
41620 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41621 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41622 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41623 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41624 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41625 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41626 if test "x$enable_sdltest" = "xyes" ; then
41627 ac_save_CFLAGS="$CFLAGS"
94acd38e 41628 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
41629 ac_save_LIBS="$LIBS"
41630 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41631 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41632 LIBS="$LIBS $SDL_LIBS"
41633 rm -f conf.sdltest
41634 if test "$cross_compiling" = yes; then
41635 echo $ac_n "cross compiling; assumed OK... $ac_c"
41636else
41637 cat >conftest.$ac_ext <<_ACEOF
41638/* confdefs.h. */
41639_ACEOF
41640cat confdefs.h >>conftest.$ac_ext
41641cat >>conftest.$ac_ext <<_ACEOF
41642/* end confdefs.h. */
41643
41644#include <stdio.h>
41645#include <stdlib.h>
41646#include <string.h>
41647#include "SDL.h"
41648
41649char*
41650my_strdup (char *str)
41651{
41652 char *new_str;
41653
41654 if (str)
41655 {
41656 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41657 strcpy (new_str, str);
41658 }
41659 else
41660 new_str = NULL;
41661
41662 return new_str;
41663}
41664
41665int main (int argc, char *argv[])
41666{
41667 int major, minor, micro;
41668 char *tmp_version;
41669
41670 /* This hangs on some systems (?)
41671 system ("touch conf.sdltest");
41672 */
41673 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41674
41675 /* HP/UX 9 (%@#!) writes to sscanf strings */
41676 tmp_version = my_strdup("$min_sdl_version");
41677 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41678 printf("%s, bad version string\n", "$min_sdl_version");
41679 exit(1);
41680 }
41681
41682 if (($sdl_major_version > major) ||
41683 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41684 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41685 {
41686 return 0;
41687 }
41688 else
41689 {
41690 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41691 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41692 printf("*** best to upgrade to the required version.\n");
41693 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41694 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41695 printf("*** config.cache before re-running configure\n");
41696 return 1;
41697 }
41698}
41699
41700
41701_ACEOF
41702rm -f conftest$ac_exeext
41703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41704 (eval $ac_link) 2>&5
41705 ac_status=$?
41706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41709 (eval $ac_try) 2>&5
41710 ac_status=$?
41711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41712 (exit $ac_status); }; }; then
41713 :
41714else
41715 echo "$as_me: program exited with status $ac_status" >&5
41716echo "$as_me: failed program was:" >&5
41717sed 's/^/| /' conftest.$ac_ext >&5
41718
41719( exit $ac_status )
41720no_sdl=yes
41721fi
ac1cb8d3 41722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41723fi
41724 CFLAGS="$ac_save_CFLAGS"
94acd38e 41725 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41726 LIBS="$ac_save_LIBS"
41727 fi
41728 fi
41729 if test "x$no_sdl" = x ; then
41730 echo "$as_me:$LINENO: result: yes" >&5
41731echo "${ECHO_T}yes" >&6
41732
41733 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41734 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41735 cat >>confdefs.h <<\_ACEOF
41736#define wxUSE_LIBSDL 1
41737_ACEOF
41738
41739
41740 else
41741 echo "$as_me:$LINENO: result: no" >&5
41742echo "${ECHO_T}no" >&6
41743 if test "$SDL_CONFIG" = "no" ; then
41744 echo "*** The sdl-config script installed by SDL could not be found"
41745 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41746 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41747 echo "*** full path to sdl-config."
41748 else
41749 if test -f conf.sdltest ; then
41750 :
41751 else
41752 echo "*** Could not run SDL test program, checking why..."
41753 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41754 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41755 LIBS="$LIBS $SDL_LIBS"
41756 cat >conftest.$ac_ext <<_ACEOF
41757/* confdefs.h. */
41758_ACEOF
41759cat confdefs.h >>conftest.$ac_ext
41760cat >>conftest.$ac_ext <<_ACEOF
41761/* end confdefs.h. */
41762
41763#include <stdio.h>
41764#include "SDL.h"
41765
41766int main(int argc, char *argv[])
41767{ return 0; }
41768#undef main
41769#define main K_and_R_C_main
41770
41771int
41772main ()
41773{
41774 return 0;
41775 ;
41776 return 0;
41777}
41778_ACEOF
41779rm -f conftest.$ac_objext conftest$ac_exeext
41780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41781 (eval $ac_link) 2>conftest.er1
a848cd7e 41782 ac_status=$?
ac1cb8d3
VS
41783 grep -v '^ *+' conftest.er1 >conftest.err
41784 rm -f conftest.er1
41785 cat conftest.err >&5
a848cd7e
SC
41786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787 (exit $ac_status); } &&
c9a66001 41788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41790 (eval $ac_try) 2>&5
41791 ac_status=$?
41792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41793 (exit $ac_status); }; } &&
41794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41796 (eval $ac_try) 2>&5
41797 ac_status=$?
41798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41799 (exit $ac_status); }; }; then
41800 echo "*** The test program compiled, but did not run. This usually means"
41801 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41802 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41803 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41804 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41805 echo "*** is required on your system"
41806 echo "***"
41807 echo "*** If you have an old version installed, it is best to remove it, although"
41808 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41809else
41810 echo "$as_me: failed program was:" >&5
41811sed 's/^/| /' conftest.$ac_ext >&5
41812
41813 echo "*** The test program failed to compile or link. See the file config.log for the"
41814 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41815 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41816 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41817fi
ac1cb8d3
VS
41818rm -f conftest.err conftest.$ac_objext \
41819 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41820 CFLAGS="$ac_save_CFLAGS"
94acd38e 41821 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41822 LIBS="$ac_save_LIBS"
41823 fi
41824 fi
41825 SDL_CFLAGS=""
41826 SDL_LIBS=""
41827 wxUSE_LIBSDL="no"
41828 fi
41829
41830
41831 rm -f conf.sdltest
41832
41833 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41834 WITH_PLUGIN_SDL=1
41835 fi
41836 fi
41837 fi
41838
41839 cat >>confdefs.h <<\_ACEOF
41840#define wxUSE_SOUND 1
41841_ACEOF
41842
41843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41844fi
41845
d1c38808
VZ
41846if test "$WXGTK20" = 1; then
41847 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41848 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41849
41850
3ecd9f92
MW
41851pkg_failed=no
41852echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
41853echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 41854
3ecd9f92
MW
41855if test -n "$PKG_CONFIG"; then
41856 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
41857 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
41858 else
41859 if test -n "$PKG_CONFIG" && \
41860 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41861 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41862 ac_status=$?
41863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864 (exit $ac_status); }; then
41865 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 41866else
3ecd9f92
MW
41867 pkg_failed=yes
41868fi
41869 fi
41870else
41871 pkg_failed=untried
d1c38808 41872fi
d1c38808 41873if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41874 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
41875 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
41876 else
41877 if test -n "$PKG_CONFIG" && \
41878 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41879 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41880 ac_status=$?
41881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41882 (exit $ac_status); }; then
41883 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 41884else
3ecd9f92
MW
41885 pkg_failed=yes
41886fi
41887 fi
41888else
41889 pkg_failed=untried
d1c38808
VZ
41890fi
41891
d1c38808 41892
d1c38808 41893
3ecd9f92 41894if test $pkg_failed = yes; then
d1c38808 41895
3ecd9f92
MW
41896if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41897 _pkg_short_errors_supported=yes
41898else
41899 _pkg_short_errors_supported=no
41900fi
41901 if test $_pkg_short_errors_supported = yes; then
41902 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41903 else
41904 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 41905 fi
3ecd9f92
MW
41906 # Put the nasty error message in config.log where it belongs
41907 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
41908
41909
3ecd9f92
MW
41910 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41911echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41912 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
41913
41914
3ecd9f92 41915elif test $pkg_failed = untried; then
d1c38808
VZ
41916
41917 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41918echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41919 wxUSE_LIBGNOMEPRINT="no"
41920
41921
3ecd9f92
MW
41922else
41923 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
41924 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
41925 echo "$as_me:$LINENO: result: yes" >&5
41926echo "${ECHO_T}yes" >&6
d1c38808 41927
3ecd9f92
MW
41928 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
41929 cat >>confdefs.h <<\_ACEOF
41930#define wxUSE_LIBGNOMEPRINT 1
41931_ACEOF
41932
41933
41934fi
d1c38808
VZ
41935 fi
41936 fi
41937fi
41938
2b850ae1
RR
41939if test "$WXGTK20" = 1; then
41940 if test "$wxUSE_MIMETYPE" = "yes" ; then
41941 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41942
41943
3ecd9f92
MW
41944pkg_failed=no
41945echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
41946echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 41947
3ecd9f92
MW
41948if test -n "$PKG_CONFIG"; then
41949 if test -n "$GNOMEVFS_CFLAGS"; then
41950 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
41951 else
41952 if test -n "$PKG_CONFIG" && \
41953 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41954 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41955 ac_status=$?
41956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41957 (exit $ac_status); }; then
41958 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 41959else
3ecd9f92
MW
41960 pkg_failed=yes
41961fi
41962 fi
41963else
41964 pkg_failed=untried
2b850ae1 41965fi
2b850ae1 41966if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41967 if test -n "$GNOMEVFS_LIBS"; then
41968 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
41969 else
41970 if test -n "$PKG_CONFIG" && \
41971 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41972 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41973 ac_status=$?
41974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41975 (exit $ac_status); }; then
41976 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 41977else
3ecd9f92
MW
41978 pkg_failed=yes
41979fi
41980 fi
41981else
41982 pkg_failed=untried
2b850ae1
RR
41983fi
41984
2b850ae1 41985
2b850ae1 41986
3ecd9f92 41987if test $pkg_failed = yes; then
2b850ae1 41988
3ecd9f92
MW
41989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41990 _pkg_short_errors_supported=yes
41991else
41992 _pkg_short_errors_supported=no
41993fi
41994 if test $_pkg_short_errors_supported = yes; then
41995 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41996 else
41997 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 41998 fi
3ecd9f92
MW
41999 # Put the nasty error message in config.log where it belongs
42000 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
42001
42002
3ecd9f92
MW
42003 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42004echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42005 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
42006
42007
3ecd9f92 42008elif test $pkg_failed = untried; then
2b850ae1
RR
42009
42010 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42011echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42012 wxUSE_LIBGNOMEVFS="no"
42013
42014
3ecd9f92
MW
42015else
42016 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42017 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42018 echo "$as_me:$LINENO: result: yes" >&5
42019echo "${ECHO_T}yes" >&6
2b850ae1 42020
3ecd9f92
MW
42021 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42022 cat >>confdefs.h <<\_ACEOF
42023#define wxUSE_LIBGNOMEVFS 1
42024_ACEOF
42025
42026
42027fi
2b850ae1
RR
42028 fi
42029 fi
42030fi
42031
3565d135
RR
42032if test "$WXGTK20" = 1; then
42033 if test "$wxUSE_LIBHILDON" = "yes" ; then
42034
3ecd9f92
MW
42035pkg_failed=no
42036echo "$as_me:$LINENO: checking for HILDON" >&5
42037echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 42038
3ecd9f92
MW
42039if test -n "$PKG_CONFIG"; then
42040 if test -n "$HILDON_CFLAGS"; then
42041 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42042 else
42043 if test -n "$PKG_CONFIG" && \
42044 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42045 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42046 ac_status=$?
42047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42048 (exit $ac_status); }; then
42049 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42050else
3ecd9f92
MW
42051 pkg_failed=yes
42052fi
42053 fi
42054else
42055 pkg_failed=untried
3565d135 42056fi
3565d135 42057if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42058 if test -n "$HILDON_LIBS"; then
42059 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42060 else
42061 if test -n "$PKG_CONFIG" && \
42062 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42063 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42064 ac_status=$?
42065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42066 (exit $ac_status); }; then
42067 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42068else
3ecd9f92
MW
42069 pkg_failed=yes
42070fi
42071 fi
42072else
42073 pkg_failed=untried
3565d135
RR
42074fi
42075
3565d135 42076
3565d135 42077
3ecd9f92 42078if test $pkg_failed = yes; then
3565d135 42079
3ecd9f92
MW
42080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42081 _pkg_short_errors_supported=yes
42082else
42083 _pkg_short_errors_supported=no
42084fi
42085 if test $_pkg_short_errors_supported = yes; then
42086 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42087 else
42088 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 42089 fi
3ecd9f92
MW
42090 # Put the nasty error message in config.log where it belongs
42091 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
42092
42093
3ecd9f92
MW
42094 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42095echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42096 wxUSE_LIBHILDON="no"
3565d135 42097
3565d135 42098
3ecd9f92
MW
42099elif test $pkg_failed = untried; then
42100
42101 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42102echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42103 wxUSE_LIBHILDON="no"
42104
42105
42106else
42107 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42108 HILDON_LIBS=$pkg_cv_HILDON_LIBS
42109 echo "$as_me:$LINENO: result: yes" >&5
42110echo "${ECHO_T}yes" >&6
3565d135
RR
42111
42112 EXTRALIBS_HILDON="$HILDON_LIBS"
42113 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42114 cat >>confdefs.h <<\_ACEOF
42115#define wxUSE_LIBHILDON 1
42116_ACEOF
42117
42118
3ecd9f92 42119fi
3565d135
RR
42120 fi
42121fi
d1c38808 42122
a848cd7e
SC
42123if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42124 cat >>confdefs.h <<\_ACEOF
42125#define wxUSE_CMDLINE_PARSER 1
42126_ACEOF
42127
42128fi
42129
42130if test "$wxUSE_STOPWATCH" = "yes"; then
42131 cat >>confdefs.h <<\_ACEOF
42132#define wxUSE_STOPWATCH 1
42133_ACEOF
42134
42135fi
42136
42137if test "$wxUSE_DATETIME" = "yes"; then
42138 cat >>confdefs.h <<\_ACEOF
42139#define wxUSE_DATETIME 1
42140_ACEOF
42141
42142fi
42143
42144if test "$wxUSE_FILE" = "yes"; then
42145 cat >>confdefs.h <<\_ACEOF
42146#define wxUSE_FILE 1
42147_ACEOF
42148
42149fi
42150
42151if test "$wxUSE_FFILE" = "yes"; then
42152 cat >>confdefs.h <<\_ACEOF
42153#define wxUSE_FFILE 1
42154_ACEOF
42155
42156fi
42157
42158if test "$wxUSE_FILESYSTEM" = "yes"; then
42159 cat >>confdefs.h <<\_ACEOF
42160#define wxUSE_FILESYSTEM 1
42161_ACEOF
42162
42163fi
42164
42165if test "$wxUSE_FS_ZIP" = "yes"; then
42166 cat >>confdefs.h <<\_ACEOF
42167#define wxUSE_FS_ZIP 1
42168_ACEOF
42169
42170fi
42171
9e8e867f 42172if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42173 cat >>confdefs.h <<\_ACEOF
9e8e867f 42174#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42175_ACEOF
42176
42177fi
42178
42179if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42180 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42181 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42182echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42183 elif test "$wxUSE_ZLIB" = "no"; then
42184 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42185echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42186 else
42187 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42188#define wxUSE_ZIPSTREAM 1
42189_ACEOF
42190
81f90336 42191 fi
a848cd7e
SC
42192fi
42193
a848cd7e 42194if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42195 if test "$USE_UNIX" != 1; then
42196 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42197echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42198 wxUSE_ON_FATAL_EXCEPTION=no
42199 else
42200 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42201#define wxUSE_ON_FATAL_EXCEPTION 1
42202_ACEOF
42203
18228ab4 42204 fi
a848cd7e
SC
42205fi
42206
eaff0f0d
VZ
42207if test "$wxUSE_STACKWALKER" = "yes"; then
42208 cat >>confdefs.h <<\_ACEOF
42209#define wxUSE_STACKWALKER 1
42210_ACEOF
42211
42212fi
42213
36b6448c 42214if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
42215 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42216 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42217echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
42218 wxUSE_DEBUGREPORT=no
42219 else
42220 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
42221#define wxUSE_DEBUGREPORT 1
42222_ACEOF
42223
21dfc162
MW
42224 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42226 fi
dfe0c803 42227 fi
36b6448c
VZ
42228fi
42229
a848cd7e
SC
42230if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42231 cat >>confdefs.h <<\_ACEOF
42232#define wxUSE_SNGLINST_CHECKER 1
42233_ACEOF
42234
42235fi
42236
42237if test "$wxUSE_BUSYINFO" = "yes"; then
42238 cat >>confdefs.h <<\_ACEOF
42239#define wxUSE_BUSYINFO 1
42240_ACEOF
42241
42242fi
42243
42244if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42245 cat >>confdefs.h <<\_ACEOF
42246#define wxUSE_STD_IOSTREAM 1
42247_ACEOF
42248
42249fi
42250
59746b65
MW
42251if test "$wxUSE_STD_STRING" = "yes"; then
42252 cat >>confdefs.h <<\_ACEOF
42253#define wxUSE_STD_STRING 1
42254_ACEOF
42255
42256fi
42257
07158944
VZ
42258if test "$wxUSE_STDPATHS" = "yes"; then
42259 cat >>confdefs.h <<\_ACEOF
42260#define wxUSE_STDPATHS 1
42261_ACEOF
42262
42263fi
42264
a848cd7e
SC
42265if test "$wxUSE_TEXTBUFFER" = "yes"; then
42266 cat >>confdefs.h <<\_ACEOF
42267#define wxUSE_TEXTBUFFER 1
42268_ACEOF
42269
42270fi
42271
42272if test "$wxUSE_TEXTFILE" = "yes"; then
42273 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42274 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42275echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42276 else
42277 cat >>confdefs.h <<\_ACEOF
42278#define wxUSE_TEXTFILE 1
42279_ACEOF
42280
42281 fi
42282fi
42283
42284if test "$wxUSE_CONFIG" = "yes" ; then
42285 if test "$wxUSE_TEXTFILE" != "yes"; then
42286 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42287echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42288 else
42289 cat >>confdefs.h <<\_ACEOF
42290#define wxUSE_CONFIG 1
89be85c2
VS
42291_ACEOF
42292
42293 cat >>confdefs.h <<\_ACEOF
42294#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42295_ACEOF
42296
42297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42298 fi
42299fi
42300
42301if test "$wxUSE_INTL" = "yes" ; then
42302 if test "$wxUSE_FILE" != "yes"; then
42303 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42304echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42305 else
42306 cat >>confdefs.h <<\_ACEOF
42307#define wxUSE_INTL 1
42308_ACEOF
42309
42310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42311 GUIDIST="$GUIDIST INTL_DIST"
42312 fi
42313fi
42314
42315if test "$wxUSE_LOG" = "yes"; then
42316 cat >>confdefs.h <<\_ACEOF
42317#define wxUSE_LOG 1
42318_ACEOF
42319
42320
42321 if test "$wxUSE_LOGGUI" = "yes"; then
42322 cat >>confdefs.h <<\_ACEOF
42323#define wxUSE_LOGGUI 1
42324_ACEOF
42325
42326 fi
42327
42328 if test "$wxUSE_LOGWINDOW" = "yes"; then
42329 cat >>confdefs.h <<\_ACEOF
42330#define wxUSE_LOGWINDOW 1
42331_ACEOF
42332
42333 fi
42334
42335 if test "$wxUSE_LOGDIALOG" = "yes"; then
42336 cat >>confdefs.h <<\_ACEOF
42337#define wxUSE_LOG_DIALOG 1
42338_ACEOF
42339
42340 fi
0b78747f
MW
42341
42342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42343fi
42344
42345if test "$wxUSE_LONGLONG" = "yes"; then
42346 cat >>confdefs.h <<\_ACEOF
42347#define wxUSE_LONGLONG 1
42348_ACEOF
42349
42350fi
42351
42352if test "$wxUSE_GEOMETRY" = "yes"; then
42353 cat >>confdefs.h <<\_ACEOF
42354#define wxUSE_GEOMETRY 1
42355_ACEOF
42356
42357fi
42358
a848cd7e
SC
42359if test "$wxUSE_STREAMS" = "yes" ; then
42360 cat >>confdefs.h <<\_ACEOF
42361#define wxUSE_STREAMS 1
42362_ACEOF
42363
42364fi
42365
8b6682b9
JS
42366if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42367 cat >>confdefs.h <<\_ACEOF
42368#define wxUSE_PRINTF_POS_PARAMS 1
42369_ACEOF
42370
42371fi
42372
42373
a848cd7e
SC
42374
42375if test "$wxUSE_DATETIME" = "yes"; then
42376
42377for ac_func in strptime
42378do
42379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42380echo "$as_me:$LINENO: checking for $ac_func" >&5
42381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42382if eval "test \"\${$as_ac_var+set}\" = set"; then
42383 echo $ECHO_N "(cached) $ECHO_C" >&6
42384else
42385 cat >conftest.$ac_ext <<_ACEOF
42386/* confdefs.h. */
42387_ACEOF
42388cat confdefs.h >>conftest.$ac_ext
42389cat >>conftest.$ac_ext <<_ACEOF
42390/* end confdefs.h. */
ac1cb8d3
VS
42391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42393#define $ac_func innocuous_$ac_func
42394
a848cd7e
SC
42395/* System header to define __stub macros and hopefully few prototypes,
42396 which can conflict with char $ac_func (); below.
42397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42398 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42399
a848cd7e
SC
42400#ifdef __STDC__
42401# include <limits.h>
42402#else
42403# include <assert.h>
42404#endif
ac1cb8d3
VS
42405
42406#undef $ac_func
42407
a848cd7e
SC
42408/* Override any gcc2 internal prototype to avoid an error. */
42409#ifdef __cplusplus
42410extern "C"
42411{
42412#endif
42413/* We use char because int might match the return type of a gcc2
42414 builtin and then its argument prototype would still apply. */
42415char $ac_func ();
42416/* The GNU C library defines this for functions which it implements
42417 to always fail with ENOSYS. Some functions are actually named
42418 something starting with __ and the normal name is an alias. */
42419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42420choke me
42421#else
42422char (*f) () = $ac_func;
42423#endif
42424#ifdef __cplusplus
42425}
42426#endif
42427
42428int
42429main ()
42430{
42431return f != $ac_func;
42432 ;
42433 return 0;
42434}
42435_ACEOF
42436rm -f conftest.$ac_objext conftest$ac_exeext
42437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42438 (eval $ac_link) 2>conftest.er1
a848cd7e 42439 ac_status=$?
ac1cb8d3
VS
42440 grep -v '^ *+' conftest.er1 >conftest.err
42441 rm -f conftest.er1
42442 cat conftest.err >&5
a848cd7e
SC
42443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42444 (exit $ac_status); } &&
c9a66001 42445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42447 (eval $ac_try) 2>&5
42448 ac_status=$?
42449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42450 (exit $ac_status); }; } &&
42451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42453 (eval $ac_try) 2>&5
42454 ac_status=$?
42455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42456 (exit $ac_status); }; }; then
42457 eval "$as_ac_var=yes"
42458else
42459 echo "$as_me: failed program was:" >&5
42460sed 's/^/| /' conftest.$ac_ext >&5
42461
42462eval "$as_ac_var=no"
42463fi
ac1cb8d3
VS
42464rm -f conftest.err conftest.$ac_objext \
42465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42466fi
42467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42468echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42469if test `eval echo '${'$as_ac_var'}'` = yes; then
42470 cat >>confdefs.h <<_ACEOF
42471#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42472_ACEOF
42473
42474fi
42475done
42476
f536f005
VZ
42477 if test "$ac_cv_func_strptime" = "yes"; then
42478 echo "$as_me:$LINENO: checking for strptime declaration" >&5
42479echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42480if test "${wx_cv_func_strptime_decl+set}" = set; then
42481 echo $ECHO_N "(cached) $ECHO_C" >&6
42482else
42483
f536f005
VZ
42484 cat >conftest.$ac_ext <<_ACEOF
42485/* confdefs.h. */
42486_ACEOF
42487cat confdefs.h >>conftest.$ac_ext
42488cat >>conftest.$ac_ext <<_ACEOF
42489/* end confdefs.h. */
42490
42491 #include <time.h>
42492
42493int
42494main ()
42495{
42496
42497 struct tm t;
42498 strptime("foo", "bar", &t);
42499
42500 ;
42501 return 0;
42502}
42503_ACEOF
42504rm -f conftest.$ac_objext
42505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42506 (eval $ac_compile) 2>conftest.er1
42507 ac_status=$?
42508 grep -v '^ *+' conftest.er1 >conftest.err
42509 rm -f conftest.er1
42510 cat conftest.err >&5
42511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42512 (exit $ac_status); } &&
c9a66001 42513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
42514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42515 (eval $ac_try) 2>&5
42516 ac_status=$?
42517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42518 (exit $ac_status); }; } &&
42519 { ac_try='test -s conftest.$ac_objext'
42520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42521 (eval $ac_try) 2>&5
42522 ac_status=$?
42523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524 (exit $ac_status); }; }; then
42525 wx_cv_func_strptime_decl=yes
42526else
42527 echo "$as_me: failed program was:" >&5
42528sed 's/^/| /' conftest.$ac_ext >&5
42529
42530wx_cv_func_strptime_decl=no
42531
42532fi
42533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
42534
42535
42536fi
42537echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42538echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42539 fi
42540 if test "$wx_cv_func_strptime_decl" = "yes"; then
42541 cat >>confdefs.h <<\_ACEOF
42542#define HAVE_STRPTIME_DECL 1
42543_ACEOF
42544
42545 fi
a848cd7e
SC
42546
42547 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42548echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42549if test "${wx_cv_var_timezone+set}" = set; then
42550 echo $ECHO_N "(cached) $ECHO_C" >&6
42551else
42552
42553 cat >conftest.$ac_ext <<_ACEOF
42554/* confdefs.h. */
42555_ACEOF
42556cat confdefs.h >>conftest.$ac_ext
42557cat >>conftest.$ac_ext <<_ACEOF
42558/* end confdefs.h. */
42559
42560 #include <time.h>
42561
42562int
42563main ()
42564{
42565
42566 int tz;
42567 tz = timezone;
42568
42569 ;
42570 return 0;
42571}
42572_ACEOF
42573rm -f conftest.$ac_objext
42574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42575 (eval $ac_compile) 2>conftest.er1
a848cd7e 42576 ac_status=$?
ac1cb8d3
VS
42577 grep -v '^ *+' conftest.er1 >conftest.err
42578 rm -f conftest.er1
42579 cat conftest.err >&5
a848cd7e
SC
42580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581 (exit $ac_status); } &&
c9a66001 42582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42584 (eval $ac_try) 2>&5
42585 ac_status=$?
42586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587 (exit $ac_status); }; } &&
42588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42590 (eval $ac_try) 2>&5
42591 ac_status=$?
42592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42593 (exit $ac_status); }; }; then
42594
42595 wx_cv_var_timezone=timezone
42596
42597else
42598 echo "$as_me: failed program was:" >&5
42599sed 's/^/| /' conftest.$ac_ext >&5
42600
42601
42602 cat >conftest.$ac_ext <<_ACEOF
42603/* confdefs.h. */
42604_ACEOF
42605cat confdefs.h >>conftest.$ac_ext
42606cat >>conftest.$ac_ext <<_ACEOF
42607/* end confdefs.h. */
42608
42609 #include <time.h>
42610
42611int
42612main ()
42613{
42614
42615 int tz;
42616 tz = _timezone;
42617
42618 ;
42619 return 0;
42620}
42621_ACEOF
42622rm -f conftest.$ac_objext
42623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42624 (eval $ac_compile) 2>conftest.er1
a848cd7e 42625 ac_status=$?
ac1cb8d3
VS
42626 grep -v '^ *+' conftest.er1 >conftest.err
42627 rm -f conftest.er1
42628 cat conftest.err >&5
a848cd7e
SC
42629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42630 (exit $ac_status); } &&
c9a66001 42631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42633 (eval $ac_try) 2>&5
42634 ac_status=$?
42635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42636 (exit $ac_status); }; } &&
42637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42639 (eval $ac_try) 2>&5
42640 ac_status=$?
42641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42642 (exit $ac_status); }; }; then
42643
42644 wx_cv_var_timezone=_timezone
42645
42646else
42647 echo "$as_me: failed program was:" >&5
42648sed 's/^/| /' conftest.$ac_ext >&5
42649
42650
42651 cat >conftest.$ac_ext <<_ACEOF
42652/* confdefs.h. */
42653_ACEOF
42654cat confdefs.h >>conftest.$ac_ext
42655cat >>conftest.$ac_ext <<_ACEOF
42656/* end confdefs.h. */
42657
42658 #include <time.h>
42659
42660int
42661main ()
42662{
42663
42664 int tz;
42665 tz = __timezone;
42666
42667 ;
42668 return 0;
42669}
42670_ACEOF
42671rm -f conftest.$ac_objext
42672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42673 (eval $ac_compile) 2>conftest.er1
a848cd7e 42674 ac_status=$?
ac1cb8d3
VS
42675 grep -v '^ *+' conftest.er1 >conftest.err
42676 rm -f conftest.er1
42677 cat conftest.err >&5
a848cd7e
SC
42678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42679 (exit $ac_status); } &&
c9a66001 42680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42682 (eval $ac_try) 2>&5
42683 ac_status=$?
42684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42685 (exit $ac_status); }; } &&
42686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42688 (eval $ac_try) 2>&5
42689 ac_status=$?
42690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691 (exit $ac_status); }; }; then
42692
42693 wx_cv_var_timezone=__timezone
42694
42695else
42696 echo "$as_me: failed program was:" >&5
42697sed 's/^/| /' conftest.$ac_ext >&5
42698
42699
42700 if test "$USE_DOS" = 0 ; then
42701 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42702echo "$as_me: WARNING: no timezone variable" >&2;}
42703 fi
42704
42705
42706fi
ac1cb8d3 42707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42708
42709
42710fi
ac1cb8d3 42711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42712
42713
42714fi
ac1cb8d3 42715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42716
42717
42718fi
42719echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42720echo "${ECHO_T}$wx_cv_var_timezone" >&6
42721
42722 if test "x$wx_cv_var_timezone" != x ; then
42723 cat >>confdefs.h <<_ACEOF
42724#define WX_TIMEZONE $wx_cv_var_timezone
42725_ACEOF
42726
42727 fi
42728
42729
42730for ac_func in localtime
42731do
42732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42733echo "$as_me:$LINENO: checking for $ac_func" >&5
42734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42735if eval "test \"\${$as_ac_var+set}\" = set"; then
42736 echo $ECHO_N "(cached) $ECHO_C" >&6
42737else
42738 cat >conftest.$ac_ext <<_ACEOF
42739/* confdefs.h. */
42740_ACEOF
42741cat confdefs.h >>conftest.$ac_ext
42742cat >>conftest.$ac_ext <<_ACEOF
42743/* end confdefs.h. */
ac1cb8d3
VS
42744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42746#define $ac_func innocuous_$ac_func
42747
a848cd7e
SC
42748/* System header to define __stub macros and hopefully few prototypes,
42749 which can conflict with char $ac_func (); below.
42750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42751 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42752
a848cd7e
SC
42753#ifdef __STDC__
42754# include <limits.h>
42755#else
42756# include <assert.h>
42757#endif
ac1cb8d3
VS
42758
42759#undef $ac_func
42760
a848cd7e
SC
42761/* Override any gcc2 internal prototype to avoid an error. */
42762#ifdef __cplusplus
42763extern "C"
42764{
42765#endif
42766/* We use char because int might match the return type of a gcc2
42767 builtin and then its argument prototype would still apply. */
42768char $ac_func ();
42769/* The GNU C library defines this for functions which it implements
42770 to always fail with ENOSYS. Some functions are actually named
42771 something starting with __ and the normal name is an alias. */
42772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42773choke me
42774#else
42775char (*f) () = $ac_func;
42776#endif
42777#ifdef __cplusplus
42778}
42779#endif
42780
42781int
42782main ()
42783{
42784return f != $ac_func;
42785 ;
42786 return 0;
42787}
42788_ACEOF
42789rm -f conftest.$ac_objext conftest$ac_exeext
42790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42791 (eval $ac_link) 2>conftest.er1
a848cd7e 42792 ac_status=$?
ac1cb8d3
VS
42793 grep -v '^ *+' conftest.er1 >conftest.err
42794 rm -f conftest.er1
42795 cat conftest.err >&5
a848cd7e
SC
42796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42797 (exit $ac_status); } &&
c9a66001 42798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42800 (eval $ac_try) 2>&5
42801 ac_status=$?
42802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803 (exit $ac_status); }; } &&
42804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42806 (eval $ac_try) 2>&5
42807 ac_status=$?
42808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42809 (exit $ac_status); }; }; then
42810 eval "$as_ac_var=yes"
42811else
42812 echo "$as_me: failed program was:" >&5
42813sed 's/^/| /' conftest.$ac_ext >&5
42814
42815eval "$as_ac_var=no"
42816fi
ac1cb8d3
VS
42817rm -f conftest.err conftest.$ac_objext \
42818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42819fi
42820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42821echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42822if test `eval echo '${'$as_ac_var'}'` = yes; then
42823 cat >>confdefs.h <<_ACEOF
42824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42825_ACEOF
42826
42827fi
42828done
42829
42830
42831 if test "$ac_cv_func_localtime" = "yes"; then
42832 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42833echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42834if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42835 echo $ECHO_N "(cached) $ECHO_C" >&6
42836else
42837
42838 cat >conftest.$ac_ext <<_ACEOF
42839/* confdefs.h. */
42840_ACEOF
42841cat confdefs.h >>conftest.$ac_ext
42842cat >>conftest.$ac_ext <<_ACEOF
42843/* end confdefs.h. */
42844
42845 #include <time.h>
42846
42847int
42848main ()
42849{
42850
42851 struct tm tm;
42852 tm.tm_gmtoff++;
42853
42854 ;
42855 return 0;
42856}
42857_ACEOF
42858rm -f conftest.$ac_objext
42859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42860 (eval $ac_compile) 2>conftest.er1
a848cd7e 42861 ac_status=$?
ac1cb8d3
VS
42862 grep -v '^ *+' conftest.er1 >conftest.err
42863 rm -f conftest.er1
42864 cat conftest.err >&5
a848cd7e
SC
42865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42866 (exit $ac_status); } &&
c9a66001 42867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42869 (eval $ac_try) 2>&5
42870 ac_status=$?
42871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42872 (exit $ac_status); }; } &&
42873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42875 (eval $ac_try) 2>&5
42876 ac_status=$?
42877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42878 (exit $ac_status); }; }; then
42879
42880 wx_cv_struct_tm_has_gmtoff=yes
42881
42882else
42883 echo "$as_me: failed program was:" >&5
42884sed 's/^/| /' conftest.$ac_ext >&5
42885
42886wx_cv_struct_tm_has_gmtoff=no
42887
42888fi
ac1cb8d3 42889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42890
42891fi
42892echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42893echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42894 fi
42895
42896 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42897 cat >>confdefs.h <<\_ACEOF
42898#define WX_GMTOFF_IN_TM 1
42899_ACEOF
42900
42901 fi
42902
42903
42904
42905for ac_func in gettimeofday ftime
42906do
42907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42908echo "$as_me:$LINENO: checking for $ac_func" >&5
42909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42910if eval "test \"\${$as_ac_var+set}\" = set"; then
42911 echo $ECHO_N "(cached) $ECHO_C" >&6
42912else
42913 cat >conftest.$ac_ext <<_ACEOF
42914/* confdefs.h. */
42915_ACEOF
42916cat confdefs.h >>conftest.$ac_ext
42917cat >>conftest.$ac_ext <<_ACEOF
42918/* end confdefs.h. */
ac1cb8d3
VS
42919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42921#define $ac_func innocuous_$ac_func
42922
a848cd7e
SC
42923/* System header to define __stub macros and hopefully few prototypes,
42924 which can conflict with char $ac_func (); below.
42925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42926 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42927
a848cd7e
SC
42928#ifdef __STDC__
42929# include <limits.h>
42930#else
42931# include <assert.h>
42932#endif
ac1cb8d3
VS
42933
42934#undef $ac_func
42935
a848cd7e
SC
42936/* Override any gcc2 internal prototype to avoid an error. */
42937#ifdef __cplusplus
42938extern "C"
42939{
42940#endif
42941/* We use char because int might match the return type of a gcc2
42942 builtin and then its argument prototype would still apply. */
42943char $ac_func ();
42944/* The GNU C library defines this for functions which it implements
42945 to always fail with ENOSYS. Some functions are actually named
42946 something starting with __ and the normal name is an alias. */
42947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42948choke me
42949#else
42950char (*f) () = $ac_func;
42951#endif
42952#ifdef __cplusplus
42953}
42954#endif
42955
42956int
42957main ()
42958{
42959return f != $ac_func;
42960 ;
42961 return 0;
42962}
42963_ACEOF
42964rm -f conftest.$ac_objext conftest$ac_exeext
42965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42966 (eval $ac_link) 2>conftest.er1
a848cd7e 42967 ac_status=$?
ac1cb8d3
VS
42968 grep -v '^ *+' conftest.er1 >conftest.err
42969 rm -f conftest.er1
42970 cat conftest.err >&5
a848cd7e
SC
42971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42972 (exit $ac_status); } &&
c9a66001 42973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42975 (eval $ac_try) 2>&5
42976 ac_status=$?
42977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42978 (exit $ac_status); }; } &&
42979 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42981 (eval $ac_try) 2>&5
42982 ac_status=$?
42983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42984 (exit $ac_status); }; }; then
42985 eval "$as_ac_var=yes"
42986else
42987 echo "$as_me: failed program was:" >&5
42988sed 's/^/| /' conftest.$ac_ext >&5
42989
42990eval "$as_ac_var=no"
42991fi
ac1cb8d3
VS
42992rm -f conftest.err conftest.$ac_objext \
42993 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42994fi
42995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42996echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42997if test `eval echo '${'$as_ac_var'}'` = yes; then
42998 cat >>confdefs.h <<_ACEOF
42999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43000_ACEOF
43001 break
43002fi
43003done
43004
43005
43006 if test "$ac_cv_func_gettimeofday" = "yes"; then
43007 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43008echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43009if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43010 echo $ECHO_N "(cached) $ECHO_C" >&6
43011else
43012
5d7b7554 43013 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43014/* confdefs.h. */
43015_ACEOF
43016cat confdefs.h >>conftest.$ac_ext
43017cat >>conftest.$ac_ext <<_ACEOF
43018/* end confdefs.h. */
43019
43020 #include <sys/time.h>
43021 #include <unistd.h>
43022
43023int
43024main ()
43025{
43026
43027 struct timeval tv;
43028 gettimeofday(&tv, NULL);
43029
43030 ;
43031 return 0;
43032}
43033_ACEOF
43034rm -f conftest.$ac_objext
43035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43036 (eval $ac_compile) 2>conftest.er1
a848cd7e 43037 ac_status=$?
ac1cb8d3
VS
43038 grep -v '^ *+' conftest.er1 >conftest.err
43039 rm -f conftest.er1
43040 cat conftest.err >&5
a848cd7e
SC
43041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43042 (exit $ac_status); } &&
c9a66001 43043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43045 (eval $ac_try) 2>&5
43046 ac_status=$?
43047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43048 (exit $ac_status); }; } &&
43049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43051 (eval $ac_try) 2>&5
43052 ac_status=$?
43053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43054 (exit $ac_status); }; }; then
43055 wx_cv_func_gettimeofday_has_2_args=yes
43056else
43057 echo "$as_me: failed program was:" >&5
43058sed 's/^/| /' conftest.$ac_ext >&5
43059
43060cat >conftest.$ac_ext <<_ACEOF
43061/* confdefs.h. */
43062_ACEOF
43063cat confdefs.h >>conftest.$ac_ext
43064cat >>conftest.$ac_ext <<_ACEOF
43065/* end confdefs.h. */
43066
43067 #include <sys/time.h>
43068 #include <unistd.h>
43069
43070int
43071main ()
43072{
43073
43074 struct timeval tv;
43075 gettimeofday(&tv);
43076
43077 ;
43078 return 0;
43079}
43080_ACEOF
43081rm -f conftest.$ac_objext
43082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43083 (eval $ac_compile) 2>conftest.er1
a848cd7e 43084 ac_status=$?
ac1cb8d3
VS
43085 grep -v '^ *+' conftest.er1 >conftest.err
43086 rm -f conftest.er1
43087 cat conftest.err >&5
a848cd7e
SC
43088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43089 (exit $ac_status); } &&
c9a66001 43090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43092 (eval $ac_try) 2>&5
43093 ac_status=$?
43094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43095 (exit $ac_status); }; } &&
43096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43098 (eval $ac_try) 2>&5
43099 ac_status=$?
43100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43101 (exit $ac_status); }; }; then
43102 wx_cv_func_gettimeofday_has_2_args=no
43103else
43104 echo "$as_me: failed program was:" >&5
43105sed 's/^/| /' conftest.$ac_ext >&5
43106
43107
43108 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43109echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43110 wx_cv_func_gettimeofday_has_2_args=unknown
43111
43112
43113fi
ac1cb8d3 43114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43115
43116fi
ac1cb8d3 43117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43118
43119fi
43120echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43121echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43122
43123 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43124 cat >>confdefs.h <<\_ACEOF
43125#define WX_GETTIMEOFDAY_NO_TZ 1
43126_ACEOF
43127
43128 fi
43129 fi
43130
43131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43132fi
43133
43134
43135if test "$wxUSE_SOCKETS" = "yes"; then
43136 if test "$wxUSE_MGL" = "1"; then
43137 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43138echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43139 wxUSE_SOCKETS="no"
43140 fi
43141fi
43142
43143if test "$wxUSE_SOCKETS" = "yes"; then
43144 if test "$TOOLKIT" != "MSW"; then
43145 echo "$as_me:$LINENO: checking for socket" >&5
43146echo $ECHO_N "checking for socket... $ECHO_C" >&6
43147if test "${ac_cv_func_socket+set}" = set; then
43148 echo $ECHO_N "(cached) $ECHO_C" >&6
43149else
43150 cat >conftest.$ac_ext <<_ACEOF
43151/* confdefs.h. */
43152_ACEOF
43153cat confdefs.h >>conftest.$ac_ext
43154cat >>conftest.$ac_ext <<_ACEOF
43155/* end confdefs.h. */
ac1cb8d3
VS
43156/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43158#define socket innocuous_socket
43159
a848cd7e
SC
43160/* System header to define __stub macros and hopefully few prototypes,
43161 which can conflict with char socket (); below.
43162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43163 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43164
a848cd7e
SC
43165#ifdef __STDC__
43166# include <limits.h>
43167#else
43168# include <assert.h>
43169#endif
ac1cb8d3
VS
43170
43171#undef socket
43172
a848cd7e
SC
43173/* Override any gcc2 internal prototype to avoid an error. */
43174#ifdef __cplusplus
43175extern "C"
43176{
43177#endif
43178/* We use char because int might match the return type of a gcc2
43179 builtin and then its argument prototype would still apply. */
43180char socket ();
43181/* The GNU C library defines this for functions which it implements
43182 to always fail with ENOSYS. Some functions are actually named
43183 something starting with __ and the normal name is an alias. */
43184#if defined (__stub_socket) || defined (__stub___socket)
43185choke me
43186#else
43187char (*f) () = socket;
43188#endif
43189#ifdef __cplusplus
43190}
43191#endif
43192
43193int
43194main ()
43195{
43196return f != socket;
43197 ;
43198 return 0;
43199}
43200_ACEOF
43201rm -f conftest.$ac_objext conftest$ac_exeext
43202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43203 (eval $ac_link) 2>conftest.er1
a848cd7e 43204 ac_status=$?
ac1cb8d3
VS
43205 grep -v '^ *+' conftest.er1 >conftest.err
43206 rm -f conftest.er1
43207 cat conftest.err >&5
a848cd7e
SC
43208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43209 (exit $ac_status); } &&
c9a66001 43210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43212 (eval $ac_try) 2>&5
43213 ac_status=$?
43214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43215 (exit $ac_status); }; } &&
43216 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43218 (eval $ac_try) 2>&5
43219 ac_status=$?
43220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43221 (exit $ac_status); }; }; then
43222 ac_cv_func_socket=yes
43223else
43224 echo "$as_me: failed program was:" >&5
43225sed 's/^/| /' conftest.$ac_ext >&5
43226
43227ac_cv_func_socket=no
43228fi
ac1cb8d3
VS
43229rm -f conftest.err conftest.$ac_objext \
43230 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43231fi
43232echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43233echo "${ECHO_T}$ac_cv_func_socket" >&6
43234if test $ac_cv_func_socket = yes; then
43235 :
43236else
43237
43238 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43239echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43240if test "${ac_cv_lib_socket_socket+set}" = set; then
43241 echo $ECHO_N "(cached) $ECHO_C" >&6
43242else
43243 ac_check_lib_save_LIBS=$LIBS
43244LIBS="-lsocket $LIBS"
43245cat >conftest.$ac_ext <<_ACEOF
43246/* confdefs.h. */
43247_ACEOF
43248cat confdefs.h >>conftest.$ac_ext
43249cat >>conftest.$ac_ext <<_ACEOF
43250/* end confdefs.h. */
43251
43252/* Override any gcc2 internal prototype to avoid an error. */
43253#ifdef __cplusplus
43254extern "C"
43255#endif
43256/* We use char because int might match the return type of a gcc2
43257 builtin and then its argument prototype would still apply. */
43258char socket ();
43259int
43260main ()
43261{
43262socket ();
43263 ;
43264 return 0;
43265}
43266_ACEOF
43267rm -f conftest.$ac_objext conftest$ac_exeext
43268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43269 (eval $ac_link) 2>conftest.er1
a848cd7e 43270 ac_status=$?
ac1cb8d3
VS
43271 grep -v '^ *+' conftest.er1 >conftest.err
43272 rm -f conftest.er1
43273 cat conftest.err >&5
a848cd7e
SC
43274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43275 (exit $ac_status); } &&
c9a66001 43276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43278 (eval $ac_try) 2>&5
43279 ac_status=$?
43280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43281 (exit $ac_status); }; } &&
43282 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43284 (eval $ac_try) 2>&5
43285 ac_status=$?
43286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43287 (exit $ac_status); }; }; then
43288 ac_cv_lib_socket_socket=yes
43289else
43290 echo "$as_me: failed program was:" >&5
43291sed 's/^/| /' conftest.$ac_ext >&5
43292
43293ac_cv_lib_socket_socket=no
43294fi
ac1cb8d3
VS
43295rm -f conftest.err conftest.$ac_objext \
43296 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43297LIBS=$ac_check_lib_save_LIBS
43298fi
43299echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43300echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43301if test $ac_cv_lib_socket_socket = yes; then
43302 if test "$INET_LINK" != " -lsocket"; then
43303 INET_LINK="$INET_LINK -lsocket"
43304 fi
43305else
43306
43307 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43308echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43309 wxUSE_SOCKETS=no
43310
43311
43312fi
43313
43314
43315
43316fi
43317
43318 fi
43319fi
43320
43321if test "$wxUSE_SOCKETS" = "yes" ; then
43322 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43323 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43324echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43325if test "${wx_cv_type_getsockname3+set}" = set; then
43326 echo $ECHO_N "(cached) $ECHO_C" >&6
43327else
43328
43329 cat >conftest.$ac_ext <<_ACEOF
43330/* confdefs.h. */
43331_ACEOF
43332cat confdefs.h >>conftest.$ac_ext
43333cat >>conftest.$ac_ext <<_ACEOF
43334/* end confdefs.h. */
43335
43336 #include <sys/types.h>
43337 #include <sys/socket.h>
43338
43339int
43340main ()
43341{
43342
43343 socklen_t len;
43344 getsockname(0, 0, &len);
43345
43346 ;
43347 return 0;
43348}
43349_ACEOF
43350rm -f conftest.$ac_objext
43351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43352 (eval $ac_compile) 2>conftest.er1
a848cd7e 43353 ac_status=$?
ac1cb8d3
VS
43354 grep -v '^ *+' conftest.er1 >conftest.err
43355 rm -f conftest.er1
43356 cat conftest.err >&5
a848cd7e
SC
43357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43358 (exit $ac_status); } &&
c9a66001 43359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43361 (eval $ac_try) 2>&5
43362 ac_status=$?
43363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43364 (exit $ac_status); }; } &&
43365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43367 (eval $ac_try) 2>&5
43368 ac_status=$?
43369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43370 (exit $ac_status); }; }; then
43371 wx_cv_type_getsockname3=socklen_t
43372else
43373 echo "$as_me: failed program was:" >&5
43374sed 's/^/| /' conftest.$ac_ext >&5
43375
43376
6459a506 43377 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43378 if test "$GCC" = yes ; then
c92ad099 43379 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43380 fi
43381
43382 cat >conftest.$ac_ext <<_ACEOF
43383/* confdefs.h. */
43384_ACEOF
43385cat confdefs.h >>conftest.$ac_ext
43386cat >>conftest.$ac_ext <<_ACEOF
43387/* end confdefs.h. */
43388
43389 #include <sys/types.h>
43390 #include <sys/socket.h>
43391
43392int
43393main ()
43394{
43395
43396 size_t len;
43397 getsockname(0, 0, &len);
43398
43399 ;
43400 return 0;
43401}
43402_ACEOF
43403rm -f conftest.$ac_objext
43404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43405 (eval $ac_compile) 2>conftest.er1
a848cd7e 43406 ac_status=$?
ac1cb8d3
VS
43407 grep -v '^ *+' conftest.er1 >conftest.err
43408 rm -f conftest.er1
43409 cat conftest.err >&5
a848cd7e
SC
43410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43411 (exit $ac_status); } &&
c9a66001 43412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43414 (eval $ac_try) 2>&5
43415 ac_status=$?
43416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417 (exit $ac_status); }; } &&
43418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43420 (eval $ac_try) 2>&5
43421 ac_status=$?
43422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43423 (exit $ac_status); }; }; then
43424 wx_cv_type_getsockname3=size_t
43425else
43426 echo "$as_me: failed program was:" >&5
43427sed 's/^/| /' conftest.$ac_ext >&5
43428
43429cat >conftest.$ac_ext <<_ACEOF
43430/* confdefs.h. */
43431_ACEOF
43432cat confdefs.h >>conftest.$ac_ext
43433cat >>conftest.$ac_ext <<_ACEOF
43434/* end confdefs.h. */
43435
43436 #include <sys/types.h>
43437 #include <sys/socket.h>
43438
43439int
43440main ()
43441{
43442
43443 int len;
43444 getsockname(0, 0, &len);
43445
43446 ;
43447 return 0;
43448}
43449_ACEOF
43450rm -f conftest.$ac_objext
43451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43452 (eval $ac_compile) 2>conftest.er1
a848cd7e 43453 ac_status=$?
ac1cb8d3
VS
43454 grep -v '^ *+' conftest.er1 >conftest.err
43455 rm -f conftest.er1
43456 cat conftest.err >&5
a848cd7e
SC
43457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43458 (exit $ac_status); } &&
c9a66001 43459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43461 (eval $ac_try) 2>&5
43462 ac_status=$?
43463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43464 (exit $ac_status); }; } &&
43465 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43467 (eval $ac_try) 2>&5
43468 ac_status=$?
43469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43470 (exit $ac_status); }; }; then
43471 wx_cv_type_getsockname3=int
43472else
43473 echo "$as_me: failed program was:" >&5
43474sed 's/^/| /' conftest.$ac_ext >&5
43475
43476wx_cv_type_getsockname3=unknown
43477
43478fi
ac1cb8d3 43479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43480
43481fi
ac1cb8d3 43482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43483
6459a506 43484 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
43485
43486
43487fi
ac1cb8d3 43488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43489
43490fi
43491echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43492echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43493
43494 if test "$wx_cv_type_getsockname3" = "unknown"; then
43495 wxUSE_SOCKETS=no
43496 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43497echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43498 else
43499 cat >>confdefs.h <<_ACEOF
9e03e02d 43500#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
43501_ACEOF
43502
43503 fi
43504 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43505echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43506if test "${wx_cv_type_getsockopt5+set}" = set; then
43507 echo $ECHO_N "(cached) $ECHO_C" >&6
43508else
43509
43510 cat >conftest.$ac_ext <<_ACEOF
43511/* confdefs.h. */
43512_ACEOF
43513cat confdefs.h >>conftest.$ac_ext
43514cat >>conftest.$ac_ext <<_ACEOF
43515/* end confdefs.h. */
43516
43517 #include <sys/types.h>
43518 #include <sys/socket.h>
43519
43520int
43521main ()
43522{
43523
43524 socklen_t len;
43525 getsockopt(0, 0, 0, 0, &len);
43526
43527 ;
43528 return 0;
43529}
43530_ACEOF
43531rm -f conftest.$ac_objext
43532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43533 (eval $ac_compile) 2>conftest.er1
43534 ac_status=$?
43535 grep -v '^ *+' conftest.er1 >conftest.err
43536 rm -f conftest.er1
43537 cat conftest.err >&5
43538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43539 (exit $ac_status); } &&
c9a66001 43540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43542 (eval $ac_try) 2>&5
43543 ac_status=$?
43544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43545 (exit $ac_status); }; } &&
43546 { ac_try='test -s conftest.$ac_objext'
43547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43548 (eval $ac_try) 2>&5
43549 ac_status=$?
43550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551 (exit $ac_status); }; }; then
43552 wx_cv_type_getsockopt5=socklen_t
43553else
43554 echo "$as_me: failed program was:" >&5
43555sed 's/^/| /' conftest.$ac_ext >&5
43556
43557
6459a506 43558 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 43559 if test "$GCC" = yes ; then
c92ad099 43560 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
43561 fi
43562
43563 cat >conftest.$ac_ext <<_ACEOF
43564/* confdefs.h. */
43565_ACEOF
43566cat confdefs.h >>conftest.$ac_ext
43567cat >>conftest.$ac_ext <<_ACEOF
43568/* end confdefs.h. */
43569
43570 #include <sys/types.h>
43571 #include <sys/socket.h>
43572
43573int
43574main ()
43575{
43576
43577 size_t len;
43578 getsockopt(0, 0, 0, 0, &len);
43579
43580 ;
43581 return 0;
43582}
43583_ACEOF
43584rm -f conftest.$ac_objext
43585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43586 (eval $ac_compile) 2>conftest.er1
43587 ac_status=$?
43588 grep -v '^ *+' conftest.er1 >conftest.err
43589 rm -f conftest.er1
43590 cat conftest.err >&5
43591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43592 (exit $ac_status); } &&
c9a66001 43593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43595 (eval $ac_try) 2>&5
43596 ac_status=$?
43597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43598 (exit $ac_status); }; } &&
43599 { ac_try='test -s conftest.$ac_objext'
43600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43601 (eval $ac_try) 2>&5
43602 ac_status=$?
43603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43604 (exit $ac_status); }; }; then
43605 wx_cv_type_getsockopt5=size_t
43606else
43607 echo "$as_me: failed program was:" >&5
43608sed 's/^/| /' conftest.$ac_ext >&5
43609
43610cat >conftest.$ac_ext <<_ACEOF
43611/* confdefs.h. */
43612_ACEOF
43613cat confdefs.h >>conftest.$ac_ext
43614cat >>conftest.$ac_ext <<_ACEOF
43615/* end confdefs.h. */
43616
43617 #include <sys/types.h>
43618 #include <sys/socket.h>
43619
43620int
43621main ()
43622{
43623
43624 int len;
43625 getsockopt(0, 0, 0, 0, &len);
43626
43627 ;
43628 return 0;
43629}
43630_ACEOF
43631rm -f conftest.$ac_objext
43632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43633 (eval $ac_compile) 2>conftest.er1
43634 ac_status=$?
43635 grep -v '^ *+' conftest.er1 >conftest.err
43636 rm -f conftest.er1
43637 cat conftest.err >&5
43638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43639 (exit $ac_status); } &&
c9a66001 43640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43642 (eval $ac_try) 2>&5
43643 ac_status=$?
43644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43645 (exit $ac_status); }; } &&
43646 { ac_try='test -s conftest.$ac_objext'
43647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43648 (eval $ac_try) 2>&5
43649 ac_status=$?
43650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43651 (exit $ac_status); }; }; then
43652 wx_cv_type_getsockopt5=int
43653else
43654 echo "$as_me: failed program was:" >&5
43655sed 's/^/| /' conftest.$ac_ext >&5
43656
43657wx_cv_type_getsockopt5=unknown
43658
43659fi
43660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43661
43662fi
43663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43664
6459a506 43665 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43666
43667
43668fi
43669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43670
43671fi
43672echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43673echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43674
43675 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43676 wxUSE_SOCKETS=no
43677 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43678echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43679 else
43680 cat >>confdefs.h <<_ACEOF
43681#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43682_ACEOF
43683
43684 fi
43685 fi
43686fi
43687
43688if test "$wxUSE_SOCKETS" = "yes" ; then
43689 cat >>confdefs.h <<\_ACEOF
43690#define wxUSE_SOCKETS 1
43691_ACEOF
43692
43693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43694fi
43695
43696if test "$wxUSE_PROTOCOL" = "yes"; then
43697 if test "$wxUSE_SOCKETS" != "yes"; then
43698 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43699echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43700 wxUSE_PROTOCOL=no
43701 fi
43702fi
43703
43704if test "$wxUSE_PROTOCOL" = "yes"; then
43705 cat >>confdefs.h <<\_ACEOF
43706#define wxUSE_PROTOCOL 1
43707_ACEOF
43708
43709
43710 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43711 cat >>confdefs.h <<\_ACEOF
43712#define wxUSE_PROTOCOL_HTTP 1
43713_ACEOF
43714
43715 fi
43716 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43717 cat >>confdefs.h <<\_ACEOF
43718#define wxUSE_PROTOCOL_FTP 1
43719_ACEOF
43720
43721 fi
43722 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43723 cat >>confdefs.h <<\_ACEOF
43724#define wxUSE_PROTOCOL_FILE 1
43725_ACEOF
43726
43727 fi
43728else
43729 if test "$wxUSE_FS_INET" = "yes"; then
43730 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43731echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43732 wxUSE_FS_INET="no"
43733 fi
43734fi
43735
43736if test "$wxUSE_URL" = "yes"; then
43737 if test "$wxUSE_PROTOCOL" != "yes"; then
43738 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43739echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43740 wxUSE_URL=no
43741 fi
43742 if test "$wxUSE_URL" = "yes"; then
43743 cat >>confdefs.h <<\_ACEOF
43744#define wxUSE_URL 1
43745_ACEOF
43746
43747 fi
43748fi
43749
43750if test "$wxUSE_FS_INET" = "yes"; then
43751 cat >>confdefs.h <<\_ACEOF
43752#define wxUSE_FS_INET 1
43753_ACEOF
43754
43755fi
43756
43757
ee45c548
MW
43758if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43759 wxUSE_JOYSTICK=no
43760
43761 if test "$TOOLKIT" = "MSW"; then
43762 wxUSE_JOYSTICK=yes
43763
43764 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43765 if test "$USE_DARWIN" = 1; then
43766 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43767echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43768 cat >conftest.$ac_ext <<_ACEOF
43769/* confdefs.h. */
43770_ACEOF
43771cat confdefs.h >>conftest.$ac_ext
43772cat >>conftest.$ac_ext <<_ACEOF
43773/* end confdefs.h. */
43774 #include <IOKit/hid/IOHIDLib.h>
43775int
43776main ()
43777{
43778 IOHIDQueueInterface *qi = NULL;
43779 IOHIDCallbackFunction cb = NULL;
43780 qi->setEventCallout(NULL, cb, NULL, NULL);
43781 ;
43782 return 0;
43783}
43784_ACEOF
43785rm -f conftest.$ac_objext
43786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43787 (eval $ac_compile) 2>conftest.er1
43788 ac_status=$?
43789 grep -v '^ *+' conftest.er1 >conftest.err
43790 rm -f conftest.er1
43791 cat conftest.err >&5
43792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43793 (exit $ac_status); } &&
c9a66001 43794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
43795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43796 (eval $ac_try) 2>&5
43797 ac_status=$?
43798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43799 (exit $ac_status); }; } &&
43800 { ac_try='test -s conftest.$ac_objext'
43801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43802 (eval $ac_try) 2>&5
43803 ac_status=$?
43804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43805 (exit $ac_status); }; }; then
43806 wxUSE_JOYSTICK=yes
a848cd7e 43807
ee45c548
MW
43808else
43809 echo "$as_me: failed program was:" >&5
43810sed 's/^/| /' conftest.$ac_ext >&5
43811
43812fi
43813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43814 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43815echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43816 fi
43817
43818 else
a848cd7e
SC
43819
43820for ac_header in linux/joystick.h
43821do
43822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43823if eval "test \"\${$as_ac_Header+set}\" = set"; then
43824 echo "$as_me:$LINENO: checking for $ac_header" >&5
43825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43826if eval "test \"\${$as_ac_Header+set}\" = set"; then
43827 echo $ECHO_N "(cached) $ECHO_C" >&6
43828fi
43829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43831else
43832 # Is the header compilable?
43833echo "$as_me:$LINENO: checking $ac_header usability" >&5
43834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43835cat >conftest.$ac_ext <<_ACEOF
43836/* confdefs.h. */
43837_ACEOF
43838cat confdefs.h >>conftest.$ac_ext
43839cat >>conftest.$ac_ext <<_ACEOF
43840/* end confdefs.h. */
43841$ac_includes_default
43842#include <$ac_header>
43843_ACEOF
43844rm -f conftest.$ac_objext
43845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43846 (eval $ac_compile) 2>conftest.er1
a848cd7e 43847 ac_status=$?
ac1cb8d3
VS
43848 grep -v '^ *+' conftest.er1 >conftest.err
43849 rm -f conftest.er1
43850 cat conftest.err >&5
a848cd7e
SC
43851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43852 (exit $ac_status); } &&
c9a66001 43853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43855 (eval $ac_try) 2>&5
43856 ac_status=$?
43857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43858 (exit $ac_status); }; } &&
43859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43861 (eval $ac_try) 2>&5
43862 ac_status=$?
43863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43864 (exit $ac_status); }; }; then
43865 ac_header_compiler=yes
43866else
43867 echo "$as_me: failed program was:" >&5
43868sed 's/^/| /' conftest.$ac_ext >&5
43869
43870ac_header_compiler=no
43871fi
ac1cb8d3 43872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43873echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43874echo "${ECHO_T}$ac_header_compiler" >&6
43875
43876# Is the header present?
43877echo "$as_me:$LINENO: checking $ac_header presence" >&5
43878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43879cat >conftest.$ac_ext <<_ACEOF
43880/* confdefs.h. */
43881_ACEOF
43882cat confdefs.h >>conftest.$ac_ext
43883cat >>conftest.$ac_ext <<_ACEOF
43884/* end confdefs.h. */
43885#include <$ac_header>
43886_ACEOF
43887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43889 ac_status=$?
43890 grep -v '^ *+' conftest.er1 >conftest.err
43891 rm -f conftest.er1
43892 cat conftest.err >&5
43893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43894 (exit $ac_status); } >/dev/null; then
43895 if test -s conftest.err; then
5d7b7554
VZ
43896 ac_cpp_err=$ac_cxx_preproc_warn_flag
43897 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43898 else
43899 ac_cpp_err=
43900 fi
43901else
43902 ac_cpp_err=yes
43903fi
43904if test -z "$ac_cpp_err"; then
43905 ac_header_preproc=yes
43906else
43907 echo "$as_me: failed program was:" >&5
43908sed 's/^/| /' conftest.$ac_ext >&5
43909
43910 ac_header_preproc=no
43911fi
43912rm -f conftest.err conftest.$ac_ext
43913echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43914echo "${ECHO_T}$ac_header_preproc" >&6
43915
43916# So? What about this header?
5d7b7554 43917case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43918 yes:no: )
a848cd7e
SC
43919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43923 ac_header_preproc=yes
a848cd7e 43924 ;;
ac1cb8d3 43925 no:yes:* )
a848cd7e
SC
43926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43929echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43931echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43933echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43938 (
43939 cat <<\_ASBOX
ac1cb8d3
VS
43940## ----------------------------------------- ##
43941## Report this to wx-dev@lists.wxwidgets.org ##
43942## ----------------------------------------- ##
a848cd7e
SC
43943_ASBOX
43944 ) |
43945 sed "s/^/$as_me: WARNING: /" >&2
43946 ;;
43947esac
43948echo "$as_me:$LINENO: checking for $ac_header" >&5
43949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43950if eval "test \"\${$as_ac_Header+set}\" = set"; then
43951 echo $ECHO_N "(cached) $ECHO_C" >&6
43952else
ac1cb8d3 43953 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43954fi
43955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43957
43958fi
43959if test `eval echo '${'$as_ac_Header'}'` = yes; then
43960 cat >>confdefs.h <<_ACEOF
43961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43962_ACEOF
ee45c548 43963 wxUSE_JOYSTICK=yes
a848cd7e
SC
43964fi
43965
43966done
43967
ee45c548 43968 fi
4cb1d3da 43969
ee45c548
MW
43970 if test "$wxUSE_JOYSTICK" = "yes"; then
43971 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43972#define wxUSE_JOYSTICK 1
43973_ACEOF
43974
ee45c548
MW
43975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43976 else
43977 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43978echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43979 fi
43980fi
43981
43982
43983
43984if test "$wxUSE_FONTMAP" = "yes" ; then
43985 cat >>confdefs.h <<\_ACEOF
43986#define wxUSE_FONTMAP 1
43987_ACEOF
43988
43989fi
43990
43991if test "$wxUSE_UNICODE" = "yes" ; then
43992 cat >>confdefs.h <<\_ACEOF
43993#define wxUSE_UNICODE 1
43994_ACEOF
43995
43996
43997 if test "$USE_WIN32" != 1; then
43998 wxUSE_UNICODE_MSLU=no
43999 fi
44000
44001 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44002 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44003echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44004if test "${ac_cv_lib_unicows_main+set}" = set; then
44005 echo $ECHO_N "(cached) $ECHO_C" >&6
44006else
44007 ac_check_lib_save_LIBS=$LIBS
44008LIBS="-lunicows $LIBS"
44009cat >conftest.$ac_ext <<_ACEOF
44010/* confdefs.h. */
44011_ACEOF
44012cat confdefs.h >>conftest.$ac_ext
44013cat >>conftest.$ac_ext <<_ACEOF
44014/* end confdefs.h. */
44015
44016
44017int
44018main ()
44019{
44020main ();
44021 ;
44022 return 0;
44023}
44024_ACEOF
44025rm -f conftest.$ac_objext conftest$ac_exeext
44026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44027 (eval $ac_link) 2>conftest.er1
a848cd7e 44028 ac_status=$?
ac1cb8d3
VS
44029 grep -v '^ *+' conftest.er1 >conftest.err
44030 rm -f conftest.er1
44031 cat conftest.err >&5
a848cd7e
SC
44032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44033 (exit $ac_status); } &&
c9a66001 44034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44036 (eval $ac_try) 2>&5
44037 ac_status=$?
44038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039 (exit $ac_status); }; } &&
44040 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44042 (eval $ac_try) 2>&5
44043 ac_status=$?
44044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44045 (exit $ac_status); }; }; then
44046 ac_cv_lib_unicows_main=yes
44047else
44048 echo "$as_me: failed program was:" >&5
44049sed 's/^/| /' conftest.$ac_ext >&5
44050
44051ac_cv_lib_unicows_main=no
44052fi
ac1cb8d3
VS
44053rm -f conftest.err conftest.$ac_objext \
44054 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44055LIBS=$ac_check_lib_save_LIBS
44056fi
44057echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44058echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44059if test $ac_cv_lib_unicows_main = yes; then
44060
44061 cat >>confdefs.h <<\_ACEOF
44062#define wxUSE_UNICODE_MSLU 1
44063_ACEOF
44064
44065
44066else
44067
44068 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44069 Applications will only run on Windows NT/2000/XP!" >&5
44070echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44071 Applications will only run on Windows NT/2000/XP!" >&2;}
44072 wxUSE_UNICODE_MSLU=no
44073
44074fi
44075
44076 fi
44077fi
44078
44079if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44080 cat >>confdefs.h <<\_ACEOF
44081#define wxUSE_EXPERIMENTAL_PRINTF 1
44082_ACEOF
44083
44084fi
44085
44086
44087if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44088 cat >>confdefs.h <<\_ACEOF
44089#define wxUSE_POSTSCRIPT 1
44090_ACEOF
44091
44092fi
44093
44094cat >>confdefs.h <<\_ACEOF
44095#define wxUSE_AFM_FOR_POSTSCRIPT 1
44096_ACEOF
44097
44098
44099cat >>confdefs.h <<\_ACEOF
44100#define wxUSE_NORMALIZED_PS_FONTS 1
44101_ACEOF
44102
44103
44104
44105if test "$wxUSE_CONSTRAINTS" = "yes"; then
44106 cat >>confdefs.h <<\_ACEOF
44107#define wxUSE_CONSTRAINTS 1
44108_ACEOF
44109
44110 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44111fi
44112
8a7b1113
VZ
44113if test "$wxUSE_MDI" = "yes"; then
44114 cat >>confdefs.h <<\_ACEOF
44115#define wxUSE_MDI 1
44116_ACEOF
44117
44118
44119 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44120 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44121#define wxUSE_MDI_ARCHITECTURE 1
44122_ACEOF
44123
8a7b1113
VZ
44124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44125 fi
a848cd7e
SC
44126fi
44127
44128if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44129 cat >>confdefs.h <<\_ACEOF
44130#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44131_ACEOF
44132
44133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44134 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44136 fi
44137fi
44138
44139if test "$wxUSE_HELP" = "yes"; then
44140 cat >>confdefs.h <<\_ACEOF
44141#define wxUSE_HELP 1
44142_ACEOF
44143
44144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44145
44146 if test "$wxUSE_MSW" = 1; then
44147 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44148 cat >>confdefs.h <<\_ACEOF
44149#define wxUSE_MS_HTML_HELP 1
44150_ACEOF
44151
44152 fi
44153 fi
44154
44155 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44156 if test "$wxUSE_HTML" = "yes"; then
44157 cat >>confdefs.h <<\_ACEOF
44158#define wxUSE_WXHTML_HELP 1
44159_ACEOF
44160
44161 else
44162 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44163echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44164 wxUSE_WXHTML_HELP=no
44165 fi
44166 fi
44167fi
44168
44169if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44170 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44171 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44172echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44173 else
44174 cat >>confdefs.h <<\_ACEOF
44175#define wxUSE_PRINTING_ARCHITECTURE 1
44176_ACEOF
44177
44178 fi
44179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44180fi
44181
44182if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
44183 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44184echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44185 { (exit 1); exit 1; }; }
44186fi
44187
44188
efdf6afe
VZ
44189if test "$wxUSE_METAFILE" = "yes"; then
44190 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44191 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44192echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44193 wxUSE_METAFILE=no
44194 fi
44195fi
44196
44197
a848cd7e
SC
44198if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
44199 -o "$wxUSE_CLIPBOARD" = "yes" \
44200 -o "$wxUSE_OLE" = "yes" \
44201 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44202
44203for ac_header in ole2.h
44204do
44205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44206if eval "test \"\${$as_ac_Header+set}\" = set"; then
44207 echo "$as_me:$LINENO: checking for $ac_header" >&5
44208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44209if eval "test \"\${$as_ac_Header+set}\" = set"; then
44210 echo $ECHO_N "(cached) $ECHO_C" >&6
44211fi
44212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44214else
44215 # Is the header compilable?
44216echo "$as_me:$LINENO: checking $ac_header usability" >&5
44217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44218cat >conftest.$ac_ext <<_ACEOF
44219/* confdefs.h. */
44220_ACEOF
44221cat confdefs.h >>conftest.$ac_ext
44222cat >>conftest.$ac_ext <<_ACEOF
44223/* end confdefs.h. */
44224$ac_includes_default
44225#include <$ac_header>
44226_ACEOF
44227rm -f conftest.$ac_objext
44228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44229 (eval $ac_compile) 2>conftest.er1
a848cd7e 44230 ac_status=$?
ac1cb8d3
VS
44231 grep -v '^ *+' conftest.er1 >conftest.err
44232 rm -f conftest.er1
44233 cat conftest.err >&5
a848cd7e
SC
44234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235 (exit $ac_status); } &&
c9a66001 44236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44238 (eval $ac_try) 2>&5
44239 ac_status=$?
44240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44241 (exit $ac_status); }; } &&
44242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44244 (eval $ac_try) 2>&5
44245 ac_status=$?
44246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44247 (exit $ac_status); }; }; then
44248 ac_header_compiler=yes
44249else
44250 echo "$as_me: failed program was:" >&5
44251sed 's/^/| /' conftest.$ac_ext >&5
44252
44253ac_header_compiler=no
44254fi
ac1cb8d3 44255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44257echo "${ECHO_T}$ac_header_compiler" >&6
44258
44259# Is the header present?
44260echo "$as_me:$LINENO: checking $ac_header presence" >&5
44261echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44262cat >conftest.$ac_ext <<_ACEOF
44263/* confdefs.h. */
44264_ACEOF
44265cat confdefs.h >>conftest.$ac_ext
44266cat >>conftest.$ac_ext <<_ACEOF
44267/* end confdefs.h. */
44268#include <$ac_header>
44269_ACEOF
44270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44272 ac_status=$?
44273 grep -v '^ *+' conftest.er1 >conftest.err
44274 rm -f conftest.er1
44275 cat conftest.err >&5
44276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44277 (exit $ac_status); } >/dev/null; then
44278 if test -s conftest.err; then
5d7b7554
VZ
44279 ac_cpp_err=$ac_cxx_preproc_warn_flag
44280 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44281 else
44282 ac_cpp_err=
44283 fi
44284else
44285 ac_cpp_err=yes
44286fi
44287if test -z "$ac_cpp_err"; then
44288 ac_header_preproc=yes
44289else
44290 echo "$as_me: failed program was:" >&5
44291sed 's/^/| /' conftest.$ac_ext >&5
44292
44293 ac_header_preproc=no
44294fi
44295rm -f conftest.err conftest.$ac_ext
44296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44297echo "${ECHO_T}$ac_header_preproc" >&6
44298
44299# So? What about this header?
5d7b7554 44300case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44301 yes:no: )
a848cd7e
SC
44302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44306 ac_header_preproc=yes
a848cd7e 44307 ;;
ac1cb8d3 44308 no:yes:* )
a848cd7e
SC
44309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44321 (
44322 cat <<\_ASBOX
ac1cb8d3
VS
44323## ----------------------------------------- ##
44324## Report this to wx-dev@lists.wxwidgets.org ##
44325## ----------------------------------------- ##
a848cd7e
SC
44326_ASBOX
44327 ) |
44328 sed "s/^/$as_me: WARNING: /" >&2
44329 ;;
44330esac
44331echo "$as_me:$LINENO: checking for $ac_header" >&5
44332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44333if eval "test \"\${$as_ac_Header+set}\" = set"; then
44334 echo $ECHO_N "(cached) $ECHO_C" >&6
44335else
ac1cb8d3 44336 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44337fi
44338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44340
44341fi
44342if test `eval echo '${'$as_ac_Header'}'` = yes; then
44343 cat >>confdefs.h <<_ACEOF
44344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44345_ACEOF
44346
44347fi
44348
44349done
44350
44351
44352 if test "$ac_cv_header_ole2_h" = "yes" ; then
44353 if test "$GCC" = yes ; then
a848cd7e
SC
44354 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44355echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44356 cat >conftest.$ac_ext <<_ACEOF
44357/* confdefs.h. */
44358_ACEOF
44359cat confdefs.h >>conftest.$ac_ext
44360cat >>conftest.$ac_ext <<_ACEOF
44361/* end confdefs.h. */
44362#include <windows.h>
44363 #include <ole2.h>
44364int
44365main ()
44366{
44367
44368 ;
44369 return 0;
44370}
44371_ACEOF
44372rm -f conftest.$ac_objext
44373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44374 (eval $ac_compile) 2>conftest.er1
a848cd7e 44375 ac_status=$?
ac1cb8d3
VS
44376 grep -v '^ *+' conftest.er1 >conftest.err
44377 rm -f conftest.er1
44378 cat conftest.err >&5
a848cd7e
SC
44379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44380 (exit $ac_status); } &&
c9a66001 44381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44383 (eval $ac_try) 2>&5
44384 ac_status=$?
44385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44386 (exit $ac_status); }; } &&
44387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44389 (eval $ac_try) 2>&5
44390 ac_status=$?
44391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44392 (exit $ac_status); }; }; then
44393 echo "$as_me:$LINENO: result: no" >&5
44394echo "${ECHO_T}no" >&6
44395else
44396 echo "$as_me: failed program was:" >&5
44397sed 's/^/| /' conftest.$ac_ext >&5
44398
44399echo "$as_me:$LINENO: result: yes" >&5
44400echo "${ECHO_T}yes" >&6
5ff751d6 44401 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44402fi
ac1cb8d3 44403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44404 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44405 if test "$wxUSE_OLE" = "yes" ; then
44406 cat >>confdefs.h <<\_ACEOF
44407#define wxUSE_OLE 1
44408_ACEOF
44409
0b78747f 44410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44411 fi
44412 fi
44413
44414 if test "$wxUSE_DATAOBJ" = "yes" ; then
44415 cat >>confdefs.h <<\_ACEOF
44416#define wxUSE_DATAOBJ 1
44417_ACEOF
44418
44419 fi
44420 else
44421 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44422echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44423
44424 wxUSE_CLIPBOARD=no
44425 wxUSE_DRAG_AND_DROP=no
44426 wxUSE_DATAOBJ=no
44427 wxUSE_OLE=no
44428 fi
44429
44430 if test "$wxUSE_METAFILE" = "yes"; then
44431 cat >>confdefs.h <<\_ACEOF
44432#define wxUSE_METAFILE 1
44433_ACEOF
44434
44435
44436 cat >>confdefs.h <<\_ACEOF
44437#define wxUSE_ENH_METAFILE 1
44438_ACEOF
44439
44440 fi
44441fi
44442
44443if test "$wxUSE_IPC" = "yes"; then
0b78747f 44444 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
44445 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44446echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 44447 wxUSE_IPC=no
a848cd7e
SC
44448 fi
44449
0b78747f
MW
44450 if test "$wxUSE_IPC" = "yes"; then
44451 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44452#define wxUSE_IPC 1
44453_ACEOF
44454
0b78747f
MW
44455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44456 fi
a848cd7e
SC
44457fi
44458
eb730a0c 44459if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44460 if test "$wxUSE_MGL" = 1; then
44461 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44462echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44463 wxUSE_DATAOBJ=no
44464 else
44465 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
44466#define wxUSE_DATAOBJ 1
44467_ACEOF
44468
2113bc77 44469 fi
eb730a0c
JS
44470else
44471 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44472echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44473 wxUSE_CLIPBOARD=no
44474 wxUSE_DRAG_AND_DROP=no
44475fi
44476
a848cd7e
SC
44477if test "$wxUSE_CLIPBOARD" = "yes"; then
44478 if test "$wxUSE_MGL" = 1; then
44479 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44480echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44481 wxUSE_CLIPBOARD=no
44482 fi
44483
44484 if test "$wxUSE_CLIPBOARD" = "yes"; then
44485 cat >>confdefs.h <<\_ACEOF
44486#define wxUSE_CLIPBOARD 1
44487_ACEOF
44488
a848cd7e
SC
44489 fi
44490fi
44491
44492if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44493 if test "$wxUSE_GTK" = 1; then
44494 if test "$WXGTK12" != 1; then
44495 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44496echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44497 wxUSE_DRAG_AND_DROP=no
44498 fi
44499 fi
44500
44501 if test "$wxUSE_MOTIF" = 1; then
44502 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44503echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44504 wxUSE_DRAG_AND_DROP=no
44505 fi
44506
44507 if test "$wxUSE_X11" = 1; then
44508 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44509echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44510 wxUSE_DRAG_AND_DROP=no
44511 fi
44512
44513 if test "$wxUSE_MGL" = 1; then
44514 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44515echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44516 wxUSE_DRAG_AND_DROP=no
44517 fi
44518
44519 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44520 cat >>confdefs.h <<\_ACEOF
44521#define wxUSE_DRAG_AND_DROP 1
44522_ACEOF
44523
44524 fi
44525
44526fi
44527
44528if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44530fi
44531
44532if test "$wxUSE_SPLINES" = "yes" ; then
44533 cat >>confdefs.h <<\_ACEOF
44534#define wxUSE_SPLINES 1
44535_ACEOF
44536
44537fi
44538
fbe2ca43
SN
44539if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44540 cat >>confdefs.h <<\_ACEOF
44541#define wxUSE_MOUSEWHEEL 1
44542_ACEOF
44543
44544fi
44545
a848cd7e
SC
44546
44547USES_CONTROLS=0
44548if test "$wxUSE_CONTROLS" = "yes"; then
44549 USES_CONTROLS=1
44550fi
44551
44552if test "$wxUSE_ACCEL" = "yes"; then
44553 cat >>confdefs.h <<\_ACEOF
44554#define wxUSE_ACCEL 1
44555_ACEOF
44556
44557 USES_CONTROLS=1
44558fi
44559
44560if test "$wxUSE_BUTTON" = "yes"; then
44561 cat >>confdefs.h <<\_ACEOF
44562#define wxUSE_BUTTON 1
44563_ACEOF
44564
44565 USES_CONTROLS=1
44566fi
44567
44568if test "$wxUSE_BMPBUTTON" = "yes"; then
44569 cat >>confdefs.h <<\_ACEOF
44570#define wxUSE_BMPBUTTON 1
44571_ACEOF
44572
44573 USES_CONTROLS=1
44574fi
44575
44576if test "$wxUSE_CALCTRL" = "yes"; then
44577 cat >>confdefs.h <<\_ACEOF
44578#define wxUSE_CALENDARCTRL 1
44579_ACEOF
44580
44581 USES_CONTROLS=1
44582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44583fi
44584
44585if test "$wxUSE_CARET" = "yes"; then
44586 cat >>confdefs.h <<\_ACEOF
44587#define wxUSE_CARET 1
44588_ACEOF
44589
44590 USES_CONTROLS=1
44591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44592fi
44593
44594if test "$wxUSE_COMBOBOX" = "yes"; then
44595 cat >>confdefs.h <<\_ACEOF
44596#define wxUSE_COMBOBOX 1
44597_ACEOF
44598
44599 USES_CONTROLS=1
44600fi
44601
a57d600f 44602if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44603 cat >>confdefs.h <<\_ACEOF
a57d600f 44604#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44605_ACEOF
44606
44607 USES_CONTROLS=1
44608fi
44609
a848cd7e
SC
44610if test "$wxUSE_CHOICE" = "yes"; then
44611 cat >>confdefs.h <<\_ACEOF
44612#define wxUSE_CHOICE 1
44613_ACEOF
44614
44615 USES_CONTROLS=1
44616fi
44617
92bbdbcd
WS
44618if test "$wxUSE_CHOICEBOOK" = "yes"; then
44619 cat >>confdefs.h <<\_ACEOF
44620#define wxUSE_CHOICEBOOK 1
44621_ACEOF
44622
44623 USES_CONTROLS=1
44624fi
44625
a848cd7e
SC
44626if test "$wxUSE_CHECKBOX" = "yes"; then
44627 cat >>confdefs.h <<\_ACEOF
44628#define wxUSE_CHECKBOX 1
44629_ACEOF
44630
44631 USES_CONTROLS=1
44632fi
44633
44634if test "$wxUSE_CHECKLST" = "yes"; then
44635 cat >>confdefs.h <<\_ACEOF
44636#define wxUSE_CHECKLISTBOX 1
44637_ACEOF
44638
44639 USES_CONTROLS=1
44640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44641fi
44642
e9263684
VZ
44643if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44644 cat >>confdefs.h <<\_ACEOF
44645#define wxUSE_COLOURPICKERCTRL 1
44646_ACEOF
44647
44648 USES_CONTROLS=1
44649fi
44650
da98e9be
VZ
44651if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44652 cat >>confdefs.h <<\_ACEOF
44653#define wxUSE_DATEPICKCTRL 1
44654_ACEOF
44655
44656 USES_CONTROLS=1
44657fi
44658
e9263684
VZ
44659if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44660 cat >>confdefs.h <<\_ACEOF
44661#define wxUSE_DIRPICKERCTRL 1
44662_ACEOF
44663
44664 USES_CONTROLS=1
44665fi
44666
44667if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44668 cat >>confdefs.h <<\_ACEOF
44669#define wxUSE_FILEPICKERCTRL 1
44670_ACEOF
44671
44672 USES_CONTROLS=1
44673fi
44674
44675if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44676 cat >>confdefs.h <<\_ACEOF
44677#define wxUSE_FONTPICKERCTRL 1
44678_ACEOF
44679
44680 USES_CONTROLS=1
44681fi
44682
a848cd7e
SC
44683if test "$wxUSE_DISPLAY" = "yes"; then
44684 cat >>confdefs.h <<\_ACEOF
44685#define wxUSE_DISPLAY 1
44686_ACEOF
44687
0b78747f 44688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44689fi
44690
44691if test "$wxUSE_GAUGE" = "yes"; then
44692 cat >>confdefs.h <<\_ACEOF
44693#define wxUSE_GAUGE 1
44694_ACEOF
44695
44696 USES_CONTROLS=1
44697fi
44698
44699if test "$wxUSE_GRID" = "yes"; then
44700 cat >>confdefs.h <<\_ACEOF
44701#define wxUSE_GRID 1
44702_ACEOF
44703
44704 USES_CONTROLS=1
44705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44706fi
44707
6954625c
VZ
44708if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44709 cat >>confdefs.h <<\_ACEOF
44710#define wxUSE_HYPERLINKCTRL 1
44711_ACEOF
44712
44713 USES_CONTROLS=1
44714fi
44715
20e34ecc
RR
44716if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44717 cat >>confdefs.h <<\_ACEOF
44718#define wxUSE_DATAVIEWCTRL 1
44719_ACEOF
44720
44721 USES_CONTROLS=1
44722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44723fi
44724
a848cd7e
SC
44725if test "$wxUSE_IMAGLIST" = "yes"; then
44726 cat >>confdefs.h <<\_ACEOF
44727#define wxUSE_IMAGLIST 1
44728_ACEOF
44729
44730fi
44731
44732if test "$wxUSE_LISTBOOK" = "yes"; then
44733 cat >>confdefs.h <<\_ACEOF
44734#define wxUSE_LISTBOOK 1
44735_ACEOF
44736
44737 USES_CONTROLS=1
44738fi
44739
44740if test "$wxUSE_LISTBOX" = "yes"; then
44741 cat >>confdefs.h <<\_ACEOF
44742#define wxUSE_LISTBOX 1
44743_ACEOF
44744
44745 USES_CONTROLS=1
0b78747f 44746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44747fi
44748
44749if test "$wxUSE_LISTCTRL" = "yes"; then
44750 if test "$wxUSE_IMAGLIST" = "yes"; then
44751 cat >>confdefs.h <<\_ACEOF
44752#define wxUSE_LISTCTRL 1
44753_ACEOF
44754
44755 USES_CONTROLS=1
44756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44757 else
44758 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44759echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44760 fi
44761fi
44762
44763if test "$wxUSE_NOTEBOOK" = "yes"; then
44764 cat >>confdefs.h <<\_ACEOF
44765#define wxUSE_NOTEBOOK 1
44766_ACEOF
44767
44768 USES_CONTROLS=1
44769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44770fi
44771
a57d600f 44772if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44773 cat >>confdefs.h <<\_ACEOF
a57d600f 44774#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44775_ACEOF
44776
44777 USES_CONTROLS=1
44778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44779fi
44780
a848cd7e
SC
44781
44782if test "$wxUSE_RADIOBOX" = "yes"; then
44783 cat >>confdefs.h <<\_ACEOF
44784#define wxUSE_RADIOBOX 1
44785_ACEOF
44786
44787 USES_CONTROLS=1
44788fi
44789
44790if test "$wxUSE_RADIOBTN" = "yes"; then
44791 cat >>confdefs.h <<\_ACEOF
44792#define wxUSE_RADIOBTN 1
44793_ACEOF
44794
44795 USES_CONTROLS=1
44796fi
44797
44798if test "$wxUSE_SASH" = "yes"; then
44799 cat >>confdefs.h <<\_ACEOF
44800#define wxUSE_SASH 1
44801_ACEOF
44802
44803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44804fi
44805
44806if test "$wxUSE_SCROLLBAR" = "yes"; then
44807 cat >>confdefs.h <<\_ACEOF
44808#define wxUSE_SCROLLBAR 1
44809_ACEOF
44810
44811 USES_CONTROLS=1
44812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44813fi
44814
44815if test "$wxUSE_SLIDER" = "yes"; then
44816 cat >>confdefs.h <<\_ACEOF
44817#define wxUSE_SLIDER 1
44818_ACEOF
44819
44820 USES_CONTROLS=1
44821fi
44822
44823if test "$wxUSE_SPINBTN" = "yes"; then
44824 cat >>confdefs.h <<\_ACEOF
44825#define wxUSE_SPINBTN 1
44826_ACEOF
44827
44828 USES_CONTROLS=1
44829fi
44830
44831if test "$wxUSE_SPINCTRL" = "yes"; then
44832 cat >>confdefs.h <<\_ACEOF
44833#define wxUSE_SPINCTRL 1
44834_ACEOF
44835
44836 USES_CONTROLS=1
44837fi
44838
44839if test "$wxUSE_SPLITTER" = "yes"; then
44840 cat >>confdefs.h <<\_ACEOF
44841#define wxUSE_SPLITTER 1
44842_ACEOF
44843
44844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44845fi
44846
44847if test "$wxUSE_STATBMP" = "yes"; then
44848 cat >>confdefs.h <<\_ACEOF
44849#define wxUSE_STATBMP 1
44850_ACEOF
44851
44852 USES_CONTROLS=1
44853fi
44854
44855if test "$wxUSE_STATBOX" = "yes"; then
44856 cat >>confdefs.h <<\_ACEOF
44857#define wxUSE_STATBOX 1
44858_ACEOF
44859
44860 USES_CONTROLS=1
44861fi
44862
44863if test "$wxUSE_STATTEXT" = "yes"; then
44864 cat >>confdefs.h <<\_ACEOF
44865#define wxUSE_STATTEXT 1
44866_ACEOF
44867
44868 USES_CONTROLS=1
44869fi
44870
44871if test "$wxUSE_STATLINE" = "yes"; then
44872 cat >>confdefs.h <<\_ACEOF
44873#define wxUSE_STATLINE 1
44874_ACEOF
44875
44876 USES_CONTROLS=1
44877fi
44878
44879if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44880 cat >>confdefs.h <<\_ACEOF
44881#define wxUSE_NATIVE_STATUSBAR 1
44882_ACEOF
44883
a848cd7e
SC
44884 cat >>confdefs.h <<\_ACEOF
44885#define wxUSE_STATUSBAR 1
44886_ACEOF
44887
44888 USES_CONTROLS=1
44889
44890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44891fi
44892
f10e38c4 44893if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44894 cat >>confdefs.h <<\_ACEOF
44895#define wxUSE_TAB_DIALOG 1
44896_ACEOF
44897
a848cd7e
SC
44898fi
44899
44900if test "$wxUSE_TEXTCTRL" = "yes"; then
44901 cat >>confdefs.h <<\_ACEOF
44902#define wxUSE_TEXTCTRL 1
44903_ACEOF
44904
44905 USES_CONTROLS=1
44906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44907fi
44908
44909if test "$wxUSE_TOGGLEBTN" = "yes"; then
44910 if test "$wxUSE_COCOA" = 1 ; then
44911 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44912echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44913 wxUSE_TOGGLEBTN=no
44914 fi
a848cd7e
SC
44915
44916 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44917 cat >>confdefs.h <<\_ACEOF
44918#define wxUSE_TOGGLEBTN 1
44919_ACEOF
44920
44921 USES_CONTROLS=1
44922 fi
44923fi
44924
a848cd7e
SC
44925if test "$wxUSE_TOOLBAR" = "yes"; then
44926 cat >>confdefs.h <<\_ACEOF
44927#define wxUSE_TOOLBAR 1
44928_ACEOF
44929
44930 USES_CONTROLS=1
44931
452b6243
VS
44932 if test "$wxUSE_UNIVERSAL" = "yes"; then
44933 wxUSE_TOOLBAR_NATIVE="no"
44934 else
44935 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
44936 cat >>confdefs.h <<\_ACEOF
44937#define wxUSE_TOOLBAR_NATIVE 1
44938_ACEOF
44939
a848cd7e
SC
44940 fi
44941
44942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44943fi
44944
44945if test "$wxUSE_TOOLTIPS" = "yes"; then
44946 if test "$wxUSE_MOTIF" = 1; then
44947 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44948echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44949 else
44950 if test "$wxUSE_UNIVERSAL" = "yes"; then
44951 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44952echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44953 else
44954 cat >>confdefs.h <<\_ACEOF
44955#define wxUSE_TOOLTIPS 1
44956_ACEOF
44957
44958 fi
44959 fi
44960fi
44961
0093c2fc
VZ
44962if test "$wxUSE_TREEBOOK" = "yes"; then
44963 cat >>confdefs.h <<\_ACEOF
44964#define wxUSE_TREEBOOK 1
44965_ACEOF
44966
44967 USES_CONTROLS=1
44968fi
44969
5ec3bc43
JS
44970if test "$wxUSE_TOOLBOOK" = "yes"; then
44971 cat >>confdefs.h <<\_ACEOF
44972#define wxUSE_TOOLBOOK 1
44973_ACEOF
44974
44975 USES_CONTROLS=1
44976fi
44977
a848cd7e
SC
44978if test "$wxUSE_TREECTRL" = "yes"; then
44979 if test "$wxUSE_IMAGLIST" = "yes"; then
44980 cat >>confdefs.h <<\_ACEOF
44981#define wxUSE_TREECTRL 1
44982_ACEOF
44983
44984 USES_CONTROLS=1
44985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44986 else
44987 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44988echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44989 fi
44990fi
44991
44992if test "$wxUSE_POPUPWIN" = "yes"; then
44993 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44994 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44995echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44996 else
44997 if test "$wxUSE_PM" = 1; then
44998 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44999echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45000 else
45001 cat >>confdefs.h <<\_ACEOF
45002#define wxUSE_POPUPWIN 1
45003_ACEOF
45004
0b78747f 45005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
45006
45007 USES_CONTROLS=1
45008 fi
45009 fi
45010fi
45011
0dcd06dd 45012if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
45013 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45014 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45015echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45016 else
45017 cat >>confdefs.h <<\_ACEOF
45018#define wxUSE_DIALUP_MANAGER 1
45019_ACEOF
45020
45021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45022 fi
45023fi
45024
a848cd7e
SC
45025if test "$wxUSE_TIPWINDOW" = "yes"; then
45026 if test "$wxUSE_PM" = 1; then
45027 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45028echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45029 else
45030 cat >>confdefs.h <<\_ACEOF
45031#define wxUSE_TIPWINDOW 1
45032_ACEOF
45033
45034 fi
45035fi
45036
45037if test "$USES_CONTROLS" = 1; then
45038 cat >>confdefs.h <<\_ACEOF
45039#define wxUSE_CONTROLS 1
45040_ACEOF
45041
45042fi
45043
45044
45045if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45046 cat >>confdefs.h <<\_ACEOF
45047#define wxUSE_ACCESSIBILITY 1
45048_ACEOF
45049
45050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45051fi
45052
38b4a946
VZ
45053if test "$wxUSE_DC_CACHEING" = "yes"; then
45054 cat >>confdefs.h <<\_ACEOF
45055#define wxUSE_DC_CACHEING 1
45056_ACEOF
45057
45058fi
45059
a848cd7e
SC
45060if test "$wxUSE_DRAGIMAGE" = "yes"; then
45061 cat >>confdefs.h <<\_ACEOF
45062#define wxUSE_DRAGIMAGE 1
45063_ACEOF
45064
45065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45066fi
45067
45068if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
45069 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45070 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45071echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45072 else
45073 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45074#define wxUSE_EXCEPTIONS 1
45075_ACEOF
45076
07bea8f0
VS
45077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45078 fi
a848cd7e
SC
45079fi
45080
45081USE_HTML=0
45082if test "$wxUSE_HTML" = "yes"; then
45083 cat >>confdefs.h <<\_ACEOF
45084#define wxUSE_HTML 1
45085_ACEOF
45086
45087 USE_HTML=1
45088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
45089 if test "$wxUSE_MAC" = 1; then
45090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45091 fi
a848cd7e 45092fi
646b6ec1 45093if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 45094 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 45095 old_CPPFLAGS="$CPPFLAGS"
c92ad099 45096 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
45097 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45098echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45099if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45100 echo $ECHO_N "(cached) $ECHO_C" >&6
45101else
45102 cat >conftest.$ac_ext <<_ACEOF
45103/* confdefs.h. */
45104_ACEOF
45105cat confdefs.h >>conftest.$ac_ext
45106cat >>conftest.$ac_ext <<_ACEOF
45107/* end confdefs.h. */
45108#include <Carbon/Carbon.h>
45109
45110#include <WebKit/HIWebView.h>
45111_ACEOF
45112rm -f conftest.$ac_objext
45113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45114 (eval $ac_compile) 2>conftest.er1
45115 ac_status=$?
45116 grep -v '^ *+' conftest.er1 >conftest.err
45117 rm -f conftest.er1
45118 cat conftest.err >&5
45119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45120 (exit $ac_status); } &&
c9a66001 45121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
45122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45123 (eval $ac_try) 2>&5
45124 ac_status=$?
45125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45126 (exit $ac_status); }; } &&
45127 { ac_try='test -s conftest.$ac_objext'
45128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45129 (eval $ac_try) 2>&5
45130 ac_status=$?
45131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45132 (exit $ac_status); }; }; then
45133 ac_cv_header_WebKit_HIWebView_h=yes
45134else
45135 echo "$as_me: failed program was:" >&5
45136sed 's/^/| /' conftest.$ac_ext >&5
45137
45138ac_cv_header_WebKit_HIWebView_h=no
45139fi
45140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45141fi
45142echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45143echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45144if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45145
45146 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45147#define wxUSE_WEBKIT 1
45148_ACEOF
45149
07bea8f0
VS
45150 WEBKIT_LINK="-framework WebKit"
45151
45152else
45153
45154 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45155echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45156 wxUSE_WEBKIT=no
45157
646b6ec1
VS
45158fi
45159
07bea8f0
VS
45160
45161 CPPFLAGS="$old_CPPFLAGS"
45162 elif test "$wxUSE_COCOA" = 1; then
45163 cat >>confdefs.h <<\_ACEOF
45164#define wxUSE_WEBKIT 1
45165_ACEOF
45166
45167 else
45168 wxUSE_WEBKIT=no
45169 fi
45170fi
45171
9a8f0513
VS
45172USE_XRC=0
45173if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45174 if test "$wxUSE_XML" != "yes"; then
45175 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45176echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45177 wxUSE_XRC=no
45178 else
45179 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
45180#define wxUSE_XRC 1
45181_ACEOF
45182
d2ebf0b7
VS
45183 USE_XRC=1
45184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45185 fi
9a8f0513 45186fi
07bea8f0 45187
3f60522a
JS
45188USE_AUI=0
45189if test "$wxUSE_AUI" = "yes"; then
45190 cat >>confdefs.h <<\_ACEOF
45191#define wxUSE_AUI 1
45192_ACEOF
45193
45194 USE_AUI=1
45195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45196fi
45197
a848cd7e
SC
45198if test "$wxUSE_MENUS" = "yes"; then
45199 cat >>confdefs.h <<\_ACEOF
45200#define wxUSE_MENUS 1
45201_ACEOF
45202
45203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45204fi
45205
45206if test "$wxUSE_METAFILE" = "yes"; then
45207 cat >>confdefs.h <<\_ACEOF
45208#define wxUSE_METAFILE 1
45209_ACEOF
45210
45211fi
45212
45213if test "$wxUSE_MIMETYPE" = "yes"; then
45214 cat >>confdefs.h <<\_ACEOF
45215#define wxUSE_MIMETYPE 1
45216_ACEOF
45217
45218fi
45219
45220if test "$wxUSE_MINIFRAME" = "yes"; then
45221 cat >>confdefs.h <<\_ACEOF
45222#define wxUSE_MINIFRAME 1
45223_ACEOF
45224
45225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45226fi
45227
45228if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45229 cat >>confdefs.h <<\_ACEOF
45230#define wxUSE_SYSTEM_OPTIONS 1
45231_ACEOF
45232
45233 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45234 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45236 fi
45237fi
45238
45239
45240if test "$wxUSE_VALIDATORS" = "yes"; then
45241 cat >>confdefs.h <<\_ACEOF
45242#define wxUSE_VALIDATORS 1
45243_ACEOF
45244
45245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45246fi
45247
45248if test "$wxUSE_PALETTE" = "yes" ; then
45249 cat >>confdefs.h <<\_ACEOF
45250#define wxUSE_PALETTE 1
45251_ACEOF
45252
45253fi
45254
45255if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45256 LIBS=" -lunicows $LIBS"
45257fi
45258
91dea314
MW
45259USE_RICHTEXT=0
45260if test "$wxUSE_RICHTEXT" = "yes"; then
45261 cat >>confdefs.h <<\_ACEOF
45262#define wxUSE_RICHTEXT 1
45263_ACEOF
45264
45265 USE_RICHTEXT=1
45266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45267fi
45268
a848cd7e
SC
45269
45270if test "$wxUSE_IMAGE" = "yes" ; then
45271 cat >>confdefs.h <<\_ACEOF
45272#define wxUSE_IMAGE 1
45273_ACEOF
45274
45275
45276 if test "$wxUSE_GIF" = "yes" ; then
45277 cat >>confdefs.h <<\_ACEOF
45278#define wxUSE_GIF 1
45279_ACEOF
45280
45281 fi
45282
45283 if test "$wxUSE_PCX" = "yes" ; then
45284 cat >>confdefs.h <<\_ACEOF
45285#define wxUSE_PCX 1
45286_ACEOF
45287
45288 fi
45289
45290 if test "$wxUSE_IFF" = "yes" ; then
45291 cat >>confdefs.h <<\_ACEOF
45292#define wxUSE_IFF 1
45293_ACEOF
45294
45295 fi
45296
45297 if test "$wxUSE_PNM" = "yes" ; then
45298 cat >>confdefs.h <<\_ACEOF
45299#define wxUSE_PNM 1
45300_ACEOF
45301
45302 fi
45303
45304 if test "$wxUSE_XPM" = "yes" ; then
45305 cat >>confdefs.h <<\_ACEOF
45306#define wxUSE_XPM 1
45307_ACEOF
45308
45309 fi
45310
45311 if test "$wxUSE_ICO_CUR" = "yes" ; then
45312 cat >>confdefs.h <<\_ACEOF
45313#define wxUSE_ICO_CUR 1
45314_ACEOF
45315
45316 fi
45317fi
45318
45319
45320if test "$wxUSE_CHOICEDLG" = "yes"; then
45321 cat >>confdefs.h <<\_ACEOF
45322#define wxUSE_CHOICEDLG 1
45323_ACEOF
45324
45325fi
45326
45327if test "$wxUSE_COLOURDLG" = "yes"; then
45328 cat >>confdefs.h <<\_ACEOF
45329#define wxUSE_COLOURDLG 1
45330_ACEOF
45331
45332fi
45333
45334if test "$wxUSE_FILEDLG" = "yes"; then
45335 cat >>confdefs.h <<\_ACEOF
45336#define wxUSE_FILEDLG 1
45337_ACEOF
45338
45339fi
45340
45341if test "$wxUSE_FINDREPLDLG" = "yes"; then
45342 cat >>confdefs.h <<\_ACEOF
45343#define wxUSE_FINDREPLDLG 1
45344_ACEOF
45345
45346fi
45347
45348if test "$wxUSE_FONTDLG" = "yes"; then
45349 cat >>confdefs.h <<\_ACEOF
45350#define wxUSE_FONTDLG 1
45351_ACEOF
45352
45353fi
45354
45355if test "$wxUSE_DIRDLG" = "yes"; then
45356 if test "$wxUSE_TREECTRL" != "yes"; then
45357 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45358echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45359 else
45360 cat >>confdefs.h <<\_ACEOF
45361#define wxUSE_DIRDLG 1
45362_ACEOF
45363
45364 fi
45365fi
45366
45367if test "$wxUSE_MSGDLG" = "yes"; then
45368 cat >>confdefs.h <<\_ACEOF
45369#define wxUSE_MSGDLG 1
45370_ACEOF
45371
45372fi
45373
45374if test "$wxUSE_NUMBERDLG" = "yes"; then
45375 cat >>confdefs.h <<\_ACEOF
45376#define wxUSE_NUMBERDLG 1
45377_ACEOF
45378
45379fi
45380
45381if test "$wxUSE_PROGRESSDLG" = "yes"; then
45382 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45383 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45384echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45385 else
45386 cat >>confdefs.h <<\_ACEOF
45387#define wxUSE_PROGRESSDLG 1
45388_ACEOF
45389
45390 fi
45391fi
45392
45393if test "$wxUSE_SPLASH" = "yes"; then
45394 cat >>confdefs.h <<\_ACEOF
45395#define wxUSE_SPLASH 1
45396_ACEOF
45397
2057db16 45398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45399fi
45400
45401if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45402 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45403 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45404echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45405 else
45406 cat >>confdefs.h <<\_ACEOF
45407#define wxUSE_STARTUP_TIPS 1
45408_ACEOF
45409
45410 fi
45411fi
45412
45413if test "$wxUSE_TEXTDLG" = "yes"; then
45414 cat >>confdefs.h <<\_ACEOF
45415#define wxUSE_TEXTDLG 1
45416_ACEOF
45417
45418fi
45419
45420if test "$wxUSE_WIZARDDLG" = "yes"; then
45421 cat >>confdefs.h <<\_ACEOF
45422#define wxUSE_WIZARDDLG 1
45423_ACEOF
45424
45425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45426fi
45427
45428
f10e38c4
VZ
45429USE_MEDIA=0
45430
ce756cb0 45431if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
45432 USE_MEDIA=1
45433
ce756cb0 45434 if test "$wxUSE_GTK" = 1; then
c9a66001 45435 wxUSE_GSTREAMER="no"
ce756cb0 45436
f10e38c4
VZ
45437 GST_VERSION_MAJOR=0
45438 GST_VERSION_MINOR=10
2f6c5bb5 45439 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
45440
45441 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45442
3ecd9f92
MW
45443pkg_failed=no
45444echo "$as_me:$LINENO: checking for GST" >&5
45445echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 45446
3ecd9f92
MW
45447if test -n "$PKG_CONFIG"; then
45448 if test -n "$GST_CFLAGS"; then
45449 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45450 else
45451 if test -n "$PKG_CONFIG" && \
45452 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45453 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45454 ac_status=$?
45455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45456 (exit $ac_status); }; then
45457 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45458else
3ecd9f92
MW
45459 pkg_failed=yes
45460fi
45461 fi
45462else
45463 pkg_failed=untried
dae87f93 45464fi
dae87f93 45465if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45466 if test -n "$GST_LIBS"; then
45467 pkg_cv_GST_LIBS="$GST_LIBS"
45468 else
45469 if test -n "$PKG_CONFIG" && \
45470 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45471 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45472 ac_status=$?
45473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45474 (exit $ac_status); }; then
45475 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45476else
3ecd9f92
MW
45477 pkg_failed=yes
45478fi
45479 fi
45480else
45481 pkg_failed=untried
dae87f93
RN
45482fi
45483
dae87f93 45484
2f6c5bb5 45485
3ecd9f92 45486if test $pkg_failed = yes; then
ce756cb0 45487
3ecd9f92
MW
45488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45489 _pkg_short_errors_supported=yes
45490else
45491 _pkg_short_errors_supported=no
45492fi
45493 if test $_pkg_short_errors_supported = yes; then
45494 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45495 else
45496 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 45497 fi
3ecd9f92
MW
45498 # Put the nasty error message in config.log where it belongs
45499 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45500
45501
3ecd9f92
MW
45502 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45503echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45504 GST_VERSION_MINOR=8
dae87f93 45505
ce756cb0 45506
3ecd9f92 45507elif test $pkg_failed = untried; then
dae87f93 45508
2f6c5bb5
VZ
45509 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45510echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 45511 GST_VERSION_MINOR=8
dae87f93 45512
2f6c5bb5 45513
3ecd9f92
MW
45514else
45515 GST_CFLAGS=$pkg_cv_GST_CFLAGS
45516 GST_LIBS=$pkg_cv_GST_LIBS
45517 echo "$as_me:$LINENO: result: yes" >&5
45518echo "${ECHO_T}yes" >&6
45519
45520 wxUSE_GSTREAMER="yes"
45521 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 45522
3ecd9f92 45523fi
2f6c5bb5
VZ
45524 else
45525 GST_VERSION_MINOR=8
f10e38c4 45526 fi
dae87f93 45527
2f6c5bb5
VZ
45528 if test $GST_VERSION_MINOR = "8"; then
45529 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 45530
3ecd9f92
MW
45531pkg_failed=no
45532echo "$as_me:$LINENO: checking for GST" >&5
45533echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 45534
3ecd9f92
MW
45535if test -n "$PKG_CONFIG"; then
45536 if test -n "$GST_CFLAGS"; then
45537 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45538 else
45539 if test -n "$PKG_CONFIG" && \
45540 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45541 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45542 ac_status=$?
45543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45544 (exit $ac_status); }; then
45545 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 45546else
3ecd9f92
MW
45547 pkg_failed=yes
45548fi
45549 fi
45550else
45551 pkg_failed=untried
dae87f93 45552fi
f10e38c4 45553if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45554 if test -n "$GST_LIBS"; then
45555 pkg_cv_GST_LIBS="$GST_LIBS"
45556 else
45557 if test -n "$PKG_CONFIG" && \
45558 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45559 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45560 ac_status=$?
45561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45562 (exit $ac_status); }; then
45563 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 45564else
3ecd9f92
MW
45565 pkg_failed=yes
45566fi
45567 fi
45568else
45569 pkg_failed=untried
dae87f93
RN
45570fi
45571
ce756cb0 45572
2f6c5bb5 45573
3ecd9f92 45574if test $pkg_failed = yes; then
dae87f93 45575
3ecd9f92
MW
45576if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45577 _pkg_short_errors_supported=yes
45578else
45579 _pkg_short_errors_supported=no
45580fi
45581 if test $_pkg_short_errors_supported = yes; then
45582 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45583 else
45584 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 45585 fi
3ecd9f92
MW
45586 # Put the nasty error message in config.log where it belongs
45587 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45588
45589
3ecd9f92
MW
45590 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45591echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45592
3ecd9f92 45593elif test $pkg_failed = untried; then
ce756cb0 45594
2f6c5bb5
VZ
45595 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45596echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45597
3ecd9f92
MW
45598else
45599 GST_CFLAGS=$pkg_cv_GST_CFLAGS
45600 GST_LIBS=$pkg_cv_GST_LIBS
45601 echo "$as_me:$LINENO: result: yes" >&5
45602echo "${ECHO_T}yes" >&6
45603 wxUSE_GSTREAMER="yes"
45604fi
dae87f93 45605 fi
ce756cb0 45606
f10e38c4 45607
dae87f93 45608 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
45609 case "${host}" in
45610 *-*-solaris2* )
45611 if "$GCC" = yes; then
45612 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45613 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45614 fi
45615 esac
45616
45617 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45618 LIBS="$GST_LIBS $LIBS"
45619
dae87f93 45620 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45621#define wxUSE_GSTREAMER 1
45622_ACEOF
45623
2f6c5bb5
VZ
45624 else
45625 USE_MEDIA=0
ce756cb0
RN
45626 fi
45627 fi
2f6c5bb5
VZ
45628
45629 if test $USE_MEDIA = 1; then
45630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45631 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45632#define wxUSE_MEDIACTRL 1
45633_ACEOF
45634
2f6c5bb5 45635 fi
ce756cb0
RN
45636fi
45637
45638
a848cd7e
SC
45639if test "$cross_compiling" = "yes"; then
45640 OSINFO="\"$host\""
45641else
45642 OSINFO=`uname -s -r -m`
45643 OSINFO="\"$OSINFO\""
45644fi
45645
45646cat >>confdefs.h <<_ACEOF
45647#define WXWIN_OS_DESCRIPTION $OSINFO
45648_ACEOF
45649
45650
45651
45652if test "x$prefix" != "xNONE"; then
45653 wxPREFIX=$prefix
45654else
45655 wxPREFIX=$ac_default_prefix
45656fi
45657
45658cat >>confdefs.h <<_ACEOF
45659#define wxINSTALL_PREFIX "$wxPREFIX"
45660_ACEOF
45661
45662
a848cd7e
SC
45663
45664
45665CORE_BASE_LIBS="net base"
45666CORE_GUI_LIBS="adv core"
45667
45668if test "$wxUSE_XML" = "yes" ; then
45669 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45670fi
45671if test "$wxUSE_ODBC" != "no" ; then
45672 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45673 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45674fi
45675if test "$wxUSE_HTML" = "yes" ; then
45676 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45677fi
61639efb
VZ
45678if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45679 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45680fi
9a8f0513
VS
45681if test "$wxUSE_XRC" = "yes" ; then
45682 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45683fi
3f60522a
JS
45684if test "$wxUSE_AUI" = "yes" ; then
45685 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45686fi
a848cd7e
SC
45687
45688if test "$wxUSE_GUI" != "yes"; then
45689 CORE_GUI_LIBS=""
45690fi
45691
45692
45693
45694
45695
5d7b7554
VZ
45696ac_ext=c
45697ac_cpp='$CPP $CPPFLAGS'
45698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45700ac_compiler_gnu=$ac_cv_c_compiler_gnu
45701
a848cd7e
SC
45702
45703
a848cd7e 45704if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45705 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45706 if test "$USE_DARWIN" = 1; then
45707 LDFLAGS="$LDFLAGS -framework QuickTime"
45708 else
45709 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45710 fi
07bea8f0 45711 fi
5dcf30a0 45712 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45713 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45714 else
45715 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45716 fi
a848cd7e
SC
45717fi
45718if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45719 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45720 if test "$wxUSE_MEDIACTRL" = "yes"; then
45721 LDFLAGS="$LDFLAGS -framework QuickTime"
45722 fi
a848cd7e 45723fi
19b27e78
MW
45724if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45725 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45726fi
a848cd7e 45727
a848cd7e
SC
45728LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45729
a848cd7e
SC
45730if test "$wxUSE_GUI" = "yes"; then
45731
45732
8bce5cda
MW
45733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45734 dynamic erase event exec font image minimal mobile \
45735 mobile/wxedit mobile/styles propsize render \
9e39d889 45736 rotate shaped vscroll widgets"
a848cd7e
SC
45737
45738 if test "$wxUSE_MONOLITHIC" != "yes"; then
45739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45740 fi
0b78747f 45741 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45743 if test "$wxUSE_UNIVERSAL" != "yes"; then
45744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45745 fi
45746 fi
45747 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45749 fi
a848cd7e
SC
45750else
45751 SAMPLES_SUBDIRS="console"
45752fi
45753
45754
48f625bc 45755if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45756 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45757elif test "$GCC" = yes ; then
45758 CWARNINGS="-Wall -Wundef"
45759fi
45760
48f625bc 45761if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45762 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45763elif test "$GXX" = yes ; then
45764 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45765fi
a848cd7e 45766
a848cd7e 45767
5ff751d6
VZ
45768WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45769WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45770
45771
c92ad099 45772CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45773 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45774 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45775 $CPPFLAGS `
5ff751d6 45776
8aeeb05c 45777C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45778CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45779CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45780
45781WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45782
a848cd7e 45783
95986553
DE
45784if test "x$MWCC" = "xyes"; then
45785
45786 CC="$CC -cwd source -I-"
45787 CXX="$CXX -cwd source -I-"
45788fi
45789
a848cd7e 45790
0c3c69fc 45791LIBS=`echo $LIBS`
a848cd7e
SC
45792EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45793EXTRALIBS_XML="$EXPAT_LINK"
45794EXTRALIBS_HTML="$MSPACK_LINK"
45795EXTRALIBS_ODBC="$ODBC_LINK"
45796if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45797 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45798fi
45799if test "$wxUSE_OPENGL" = "yes"; then
45800 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45801fi
45802
8aeeb05c 45803LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45804
5ff751d6 45805WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45806
45807if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45808 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45809fi
45810if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45811 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45812fi
45813if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45814 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45815fi
45816if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45817 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45818fi
45819if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45820 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45821fi
45822if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45823 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45824fi
45825if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45826 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45827fi
45828
45829for i in $wxconfig_3rdparty ; do
5ff751d6 45830 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45831done
45832
45833
45834if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45835 WXUNIV=1
45836else
45837 WXUNIV=0
45838fi
45839
45840
45841
45842
45843
45844
45845
45846
45847
45848if test $wxUSE_MONOLITHIC = "yes" ; then
45849 MONOLITHIC=1
45850else
45851 MONOLITHIC=0
45852fi
45853
45854if test $wxUSE_PLUGINS = "yes" ; then
45855 USE_PLUGINS=1
45856else
45857 USE_PLUGINS=0
45858fi
45859
45860if test $wxUSE_ODBC != "no" ; then
45861 USE_ODBC=1
45862else
45863 USE_ODBC=0
45864fi
45865
16358932
VZ
45866if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45867 USE_QA=1
45868else
45869 USE_QA=0
45870fi
45871
a848cd7e
SC
45872if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45873 OFFICIAL_BUILD=1
45874else
45875 OFFICIAL_BUILD=0
45876fi
45877
45878
45879
45880
45881
45882
45883
45884
45885
45886
45887
45888
45889
45890
45891
45892
45893
45894
45895
ceec2216 45896
d1c38808 45897
3565d135 45898
2b850ae1 45899
a848cd7e
SC
45900
45901
45902TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45903
45904
45905
45906
45907
45908
45909
45910
4d4ff94c
VZ
45911case "$TOOLKIT" in
45912 GTK)
c2e9ada4 45913 TOOLKIT_DESC="GTK+"
4d4ff94c 45914 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
45915 TOOLKIT_DESC="$TOOLKIT_DESC 2"
45916 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45917 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
45918 fi
45919 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45920 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
45921 fi
45922 if test "$wxUSE_LIBHILDON" = "yes"; then
45923 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
45924 fi
45925
45926 if test "$TOOLKIT_EXTRA" != ""; then
45927 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
45928 fi
4d4ff94c 45929 fi
9a8f0513 45930 ;;
4d4ff94c 45931
c2e9ada4
VZ
45932 ?*)
45933 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
45934 ;;
45935
4d4ff94c 45936 *)
c2e9ada4 45937 TOOLKIT_DESC="base only"
9a8f0513 45938 ;;
4d4ff94c 45939esac
a848cd7e 45940
fb00f58d
JS
45941if test "$wxUSE_WINE" = "yes"; then
45942 BAKEFILE_FORCE_PLATFORM=win32
45943fi
45944
7afc46ab 45945if test "$wxUSE_MAC" = 1 ; then
95768535
MW
45946 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
45947 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
45948 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
45949 else
45950 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
45951 fi
45952 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
45953 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
45954 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
45955 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
45956 bk_use_pch=no
45957 fi
45958 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45959 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
45960fi
45961
9a8f0513 45962
1e9e8aba
DE
45963
45964
a848cd7e 45965 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45966 if test "x${host}" = "x" ; then
45967 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45968echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45969 { (exit 1); exit 1; }; }
45970 fi
45971
a848cd7e
SC
45972 BAKEFILE_HOST="${host}"
45973 fi
45974
45975 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45976
45977 if test -n "$ac_tool_prefix"; then
45978 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45979set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45980echo "$as_me:$LINENO: checking for $ac_word" >&5
45981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45982if test "${ac_cv_prog_RANLIB+set}" = set; then
45983 echo $ECHO_N "(cached) $ECHO_C" >&6
45984else
45985 if test -n "$RANLIB"; then
45986 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45987else
45988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45989for as_dir in $PATH
45990do
45991 IFS=$as_save_IFS
45992 test -z "$as_dir" && as_dir=.
45993 for ac_exec_ext in '' $ac_executable_extensions; do
45994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45995 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45997 break 2
45998 fi
45999done
46000done
46001
46002fi
46003fi
46004RANLIB=$ac_cv_prog_RANLIB
46005if test -n "$RANLIB"; then
46006 echo "$as_me:$LINENO: result: $RANLIB" >&5
46007echo "${ECHO_T}$RANLIB" >&6
46008else
46009 echo "$as_me:$LINENO: result: no" >&5
46010echo "${ECHO_T}no" >&6
46011fi
46012
46013fi
46014if test -z "$ac_cv_prog_RANLIB"; then
46015 ac_ct_RANLIB=$RANLIB
46016 # Extract the first word of "ranlib", so it can be a program name with args.
46017set dummy ranlib; ac_word=$2
46018echo "$as_me:$LINENO: checking for $ac_word" >&5
46019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46020if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46021 echo $ECHO_N "(cached) $ECHO_C" >&6
46022else
46023 if test -n "$ac_ct_RANLIB"; then
46024 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46025else
46026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46027for as_dir in $PATH
46028do
46029 IFS=$as_save_IFS
46030 test -z "$as_dir" && as_dir=.
46031 for ac_exec_ext in '' $ac_executable_extensions; do
46032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46033 ac_cv_prog_ac_ct_RANLIB="ranlib"
46034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46035 break 2
46036 fi
46037done
46038done
46039
46040 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46041fi
46042fi
46043ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46044if test -n "$ac_ct_RANLIB"; then
46045 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46046echo "${ECHO_T}$ac_ct_RANLIB" >&6
46047else
46048 echo "$as_me:$LINENO: result: no" >&5
46049echo "${ECHO_T}no" >&6
46050fi
46051
46052 RANLIB=$ac_ct_RANLIB
46053else
46054 RANLIB="$ac_cv_prog_RANLIB"
46055fi
46056
46057 # Find a good install program. We prefer a C program (faster),
46058# so one script is as good as another. But avoid the broken or
46059# incompatible versions:
46060# SysV /etc/install, /usr/sbin/install
46061# SunOS /usr/etc/install
46062# IRIX /sbin/install
46063# AIX /bin/install
46064# AmigaOS /C/install, which installs bootblocks on floppy discs
46065# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46066# AFS /usr/afsws/bin/install, which mishandles nonexistent args
46067# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 46068# OS/2's system install, which has a completely different semantic
a848cd7e
SC
46069# ./install, which can be erroneously created by make from ./install.sh.
46070echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46071echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46072if test -z "$INSTALL"; then
46073if test "${ac_cv_path_install+set}" = set; then
46074 echo $ECHO_N "(cached) $ECHO_C" >&6
46075else
46076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46077for as_dir in $PATH
46078do
46079 IFS=$as_save_IFS
46080 test -z "$as_dir" && as_dir=.
46081 # Account for people who put trailing slashes in PATH elements.
46082case $as_dir/ in
46083 ./ | .// | /cC/* | \
46084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 46085 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
46086 /usr/ucb/* ) ;;
46087 *)
46088 # OSF1 and SCO ODT 3.0 have their own names for install.
46089 # Don't use installbsd from OSF since it installs stuff as root
46090 # by default.
46091 for ac_prog in ginstall scoinst install; do
46092 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
46093 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46094 if test $ac_prog = install &&
46095 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46096 # AIX install. It has an incompatible calling convention.
46097 :
46098 elif test $ac_prog = install &&
46099 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46100 # program-specific install script used by HP pwplus--don't use.
46101 :
46102 else
46103 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46104 break 3
46105 fi
46106 fi
a848cd7e
SC
46107 done
46108 done
46109 ;;
46110esac
46111done
46112
46113
46114fi
46115 if test "${ac_cv_path_install+set}" = set; then
46116 INSTALL=$ac_cv_path_install
46117 else
46118 # As a last resort, use the slow shell script. We don't cache a
46119 # path for INSTALL within a source directory, because that will
46120 # break other packages using the cache if that directory is
46121 # removed, or if the path is relative.
46122 INSTALL=$ac_install_sh
46123 fi
46124fi
46125echo "$as_me:$LINENO: result: $INSTALL" >&5
46126echo "${ECHO_T}$INSTALL" >&6
46127
46128# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46129# It thinks the first close brace ends the variable substitution.
46130test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46131
46132test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46133
46134test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46135
46136 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46137echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46138LN_S=$as_ln_s
46139if test "$LN_S" = "ln -s"; then
46140 echo "$as_me:$LINENO: result: yes" >&5
46141echo "${ECHO_T}yes" >&6
46142else
46143 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46144echo "${ECHO_T}no, using $LN_S" >&6
46145fi
46146
46147
46148 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46149echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46150set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46151if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46152 echo $ECHO_N "(cached) $ECHO_C" >&6
46153else
46154 cat >conftest.make <<\_ACEOF
46155all:
46156 @echo 'ac_maketemp="$(MAKE)"'
46157_ACEOF
46158# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46159eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46160if test -n "$ac_maketemp"; then
46161 eval ac_cv_prog_make_${ac_make}_set=yes
46162else
46163 eval ac_cv_prog_make_${ac_make}_set=no
46164fi
46165rm -f conftest.make
46166fi
46167if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46168 echo "$as_me:$LINENO: result: yes" >&5
46169echo "${ECHO_T}yes" >&6
46170 SET_MAKE=
46171else
46172 echo "$as_me:$LINENO: result: no" >&5
46173echo "${ECHO_T}no" >&6
46174 SET_MAKE="MAKE=${MAKE-make}"
46175fi
46176
46177
46178
46179 if test -n "$ac_tool_prefix"; then
46180 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46181set dummy ${ac_tool_prefix}ar; ac_word=$2
46182echo "$as_me:$LINENO: checking for $ac_word" >&5
46183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46184if test "${ac_cv_prog_AR+set}" = set; then
46185 echo $ECHO_N "(cached) $ECHO_C" >&6
46186else
46187 if test -n "$AR"; then
46188 ac_cv_prog_AR="$AR" # Let the user override the test.
46189else
46190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46191for as_dir in $PATH
46192do
46193 IFS=$as_save_IFS
46194 test -z "$as_dir" && as_dir=.
46195 for ac_exec_ext in '' $ac_executable_extensions; do
46196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46197 ac_cv_prog_AR="${ac_tool_prefix}ar"
46198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46199 break 2
46200 fi
46201done
46202done
46203
46204fi
46205fi
46206AR=$ac_cv_prog_AR
46207if test -n "$AR"; then
46208 echo "$as_me:$LINENO: result: $AR" >&5
46209echo "${ECHO_T}$AR" >&6
46210else
46211 echo "$as_me:$LINENO: result: no" >&5
46212echo "${ECHO_T}no" >&6
46213fi
46214
46215fi
46216if test -z "$ac_cv_prog_AR"; then
46217 ac_ct_AR=$AR
46218 # Extract the first word of "ar", so it can be a program name with args.
46219set dummy ar; ac_word=$2
46220echo "$as_me:$LINENO: checking for $ac_word" >&5
46221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46222if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46223 echo $ECHO_N "(cached) $ECHO_C" >&6
46224else
46225 if test -n "$ac_ct_AR"; then
46226 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46227else
46228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46229for as_dir in $PATH
46230do
46231 IFS=$as_save_IFS
46232 test -z "$as_dir" && as_dir=.
46233 for ac_exec_ext in '' $ac_executable_extensions; do
46234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46235 ac_cv_prog_ac_ct_AR="ar"
46236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46237 break 2
46238 fi
46239done
46240done
46241
46242 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46243fi
46244fi
46245ac_ct_AR=$ac_cv_prog_ac_ct_AR
46246if test -n "$ac_ct_AR"; then
46247 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46248echo "${ECHO_T}$ac_ct_AR" >&6
46249else
46250 echo "$as_me:$LINENO: result: no" >&5
46251echo "${ECHO_T}no" >&6
46252fi
46253
46254 AR=$ac_ct_AR
46255else
46256 AR="$ac_cv_prog_AR"
46257fi
46258
46259 if test -n "$ac_tool_prefix"; then
46260 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46261set dummy ${ac_tool_prefix}strip; ac_word=$2
46262echo "$as_me:$LINENO: checking for $ac_word" >&5
46263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46264if test "${ac_cv_prog_STRIP+set}" = set; then
46265 echo $ECHO_N "(cached) $ECHO_C" >&6
46266else
46267 if test -n "$STRIP"; then
46268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46269else
46270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46271for as_dir in $PATH
46272do
46273 IFS=$as_save_IFS
46274 test -z "$as_dir" && as_dir=.
46275 for ac_exec_ext in '' $ac_executable_extensions; do
46276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46277 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46279 break 2
46280 fi
46281done
46282done
46283
46284fi
46285fi
46286STRIP=$ac_cv_prog_STRIP
46287if test -n "$STRIP"; then
46288 echo "$as_me:$LINENO: result: $STRIP" >&5
46289echo "${ECHO_T}$STRIP" >&6
46290else
46291 echo "$as_me:$LINENO: result: no" >&5
46292echo "${ECHO_T}no" >&6
46293fi
46294
46295fi
46296if test -z "$ac_cv_prog_STRIP"; then
46297 ac_ct_STRIP=$STRIP
46298 # Extract the first word of "strip", so it can be a program name with args.
46299set dummy strip; ac_word=$2
46300echo "$as_me:$LINENO: checking for $ac_word" >&5
46301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46302if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46303 echo $ECHO_N "(cached) $ECHO_C" >&6
46304else
46305 if test -n "$ac_ct_STRIP"; then
46306 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46307else
46308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46309for as_dir in $PATH
46310do
46311 IFS=$as_save_IFS
46312 test -z "$as_dir" && as_dir=.
46313 for ac_exec_ext in '' $ac_executable_extensions; do
46314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46315 ac_cv_prog_ac_ct_STRIP="strip"
46316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46317 break 2
46318 fi
46319done
46320done
46321
46322 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46323fi
46324fi
46325ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46326if test -n "$ac_ct_STRIP"; then
46327 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46328echo "${ECHO_T}$ac_ct_STRIP" >&6
46329else
46330 echo "$as_me:$LINENO: result: no" >&5
46331echo "${ECHO_T}no" >&6
46332fi
46333
46334 STRIP=$ac_ct_STRIP
46335else
46336 STRIP="$ac_cv_prog_STRIP"
46337fi
46338
46339 if test -n "$ac_tool_prefix"; then
46340 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46341set dummy ${ac_tool_prefix}nm; ac_word=$2
46342echo "$as_me:$LINENO: checking for $ac_word" >&5
46343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46344if test "${ac_cv_prog_NM+set}" = set; then
46345 echo $ECHO_N "(cached) $ECHO_C" >&6
46346else
46347 if test -n "$NM"; then
46348 ac_cv_prog_NM="$NM" # Let the user override the test.
46349else
46350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46351for as_dir in $PATH
46352do
46353 IFS=$as_save_IFS
46354 test -z "$as_dir" && as_dir=.
46355 for ac_exec_ext in '' $ac_executable_extensions; do
46356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46357 ac_cv_prog_NM="${ac_tool_prefix}nm"
46358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46359 break 2
46360 fi
46361done
46362done
46363
46364fi
46365fi
46366NM=$ac_cv_prog_NM
46367if test -n "$NM"; then
46368 echo "$as_me:$LINENO: result: $NM" >&5
46369echo "${ECHO_T}$NM" >&6
46370else
46371 echo "$as_me:$LINENO: result: no" >&5
46372echo "${ECHO_T}no" >&6
46373fi
46374
46375fi
46376if test -z "$ac_cv_prog_NM"; then
46377 ac_ct_NM=$NM
46378 # Extract the first word of "nm", so it can be a program name with args.
46379set dummy nm; ac_word=$2
46380echo "$as_me:$LINENO: checking for $ac_word" >&5
46381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46382if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46383 echo $ECHO_N "(cached) $ECHO_C" >&6
46384else
46385 if test -n "$ac_ct_NM"; then
46386 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46387else
46388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46389for as_dir in $PATH
46390do
46391 IFS=$as_save_IFS
46392 test -z "$as_dir" && as_dir=.
46393 for ac_exec_ext in '' $ac_executable_extensions; do
46394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46395 ac_cv_prog_ac_ct_NM="nm"
46396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46397 break 2
46398 fi
46399done
46400done
46401
46402 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46403fi
46404fi
46405ac_ct_NM=$ac_cv_prog_ac_ct_NM
46406if test -n "$ac_ct_NM"; then
46407 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46408echo "${ECHO_T}$ac_ct_NM" >&6
46409else
46410 echo "$as_me:$LINENO: result: no" >&5
46411echo "${ECHO_T}no" >&6
46412fi
46413
46414 NM=$ac_ct_NM
46415else
46416 NM="$ac_cv_prog_NM"
46417fi
46418
46419
46420 case ${BAKEFILE_HOST} in
46421 *-hp-hpux* )
1e9e8aba 46422 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46423 ;;
46424 *) INSTALL_DIR="$INSTALL -d"
46425 ;;
46426 esac
46427
46428
46429 LDFLAGS_GUI=
46430 case ${BAKEFILE_HOST} in
46431 *-*-cygwin* | *-*-mingw32* )
46432 LDFLAGS_GUI="-mwindows"
46433 esac
46434
46435
46436 fi
46437
46438 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46439echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46440if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46441 echo $ECHO_N "(cached) $ECHO_C" >&6
46442else
46443
46444 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46445 egrep -s GNU > /dev/null); then
46446 bakefile_cv_prog_makeisgnu="yes"
46447 else
46448 bakefile_cv_prog_makeisgnu="no"
46449 fi
46450
46451fi
46452echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46453echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46454
46455 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46456 IF_GNU_MAKE=""
46457 else
46458 IF_GNU_MAKE="#"
46459 fi
46460
46461
46462
46463 PLATFORM_UNIX=0
46464 PLATFORM_WIN32=0
46465 PLATFORM_MSDOS=0
46466 PLATFORM_MAC=0
1e9e8aba 46467 PLATFORM_MACOS=0
a848cd7e
SC
46468 PLATFORM_MACOSX=0
46469 PLATFORM_OS2=0
1e9e8aba 46470 PLATFORM_BEOS=0
a848cd7e
SC
46471
46472 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46473 case "${BAKEFILE_HOST}" in
810b94f0 46474 *-*-mingw32* )
a848cd7e
SC
46475 PLATFORM_WIN32=1
46476 ;;
46477 *-pc-msdosdjgpp )
46478 PLATFORM_MSDOS=1
46479 ;;
46480 *-pc-os2_emx | *-pc-os2-emx )
46481 PLATFORM_OS2=1
46482 ;;
47bd5406 46483 *-*-darwin* )
a848cd7e
SC
46484 PLATFORM_MAC=1
46485 PLATFORM_MACOSX=1
46486 ;;
1e9e8aba
DE
46487 *-*-beos* )
46488 PLATFORM_BEOS=1
46489 ;;
46490 powerpc-apple-macos* )
46491 PLATFORM_MAC=1
46492 PLATFORM_MACOS=1
46493 ;;
a848cd7e
SC
46494 * )
46495 PLATFORM_UNIX=1
46496 ;;
46497 esac
46498 else
46499 case "$BAKEFILE_FORCE_PLATFORM" in
46500 win32 )
46501 PLATFORM_WIN32=1
46502 ;;
46503 msdos )
46504 PLATFORM_MSDOS=1
46505 ;;
46506 os2 )
46507 PLATFORM_OS2=1
46508 ;;
46509 darwin )
46510 PLATFORM_MAC=1
46511 PLATFORM_MACOSX=1
46512 ;;
46513 unix )
46514 PLATFORM_UNIX=1
46515 ;;
1e9e8aba
DE
46516 beos )
46517 PLATFORM_BEOS=1
46518 ;;
a848cd7e
SC
46519 * )
46520 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46521echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46522 { (exit 1); exit 1; }; }
46523 ;;
46524 esac
46525 fi
46526
46527
46528
46529
46530
46531
46532
46533
46534
1e9e8aba
DE
46535
46536
a848cd7e
SC
46537 # Check whether --enable-omf or --disable-omf was given.
46538if test "${enable_omf+set}" = set; then
46539 enableval="$enable_omf"
46540 bk_os2_use_omf="$enableval"
46541fi;
46542
46543 case "${BAKEFILE_HOST}" in
46544 *-*-darwin* )
47bd5406
VZ
46545 if test "x$GCC" = "xyes"; then
46546 CFLAGS="$CFLAGS -fno-common"
46547 CXXFLAGS="$CXXFLAGS -fno-common"
46548 fi
46549 if test "x$XLCC" = "xyes"; then
46550 CFLAGS="$CFLAGS -qnocommon"
46551 CXXFLAGS="$CXXFLAGS -qnocommon"
46552 fi
a848cd7e
SC
46553 ;;
46554
46555 *-pc-os2_emx | *-pc-os2-emx )
46556 if test "x$bk_os2_use_omf" = "xyes" ; then
46557 AR=emxomfar
46558 RANLIB=:
46559 LDFLAGS="-Zomf $LDFLAGS"
46560 CFLAGS="-Zomf $CFLAGS"
46561 CXXFLAGS="-Zomf $CXXFLAGS"
46562 OS2_LIBEXT="lib"
46563 else
46564 OS2_LIBEXT="a"
46565 fi
46566 ;;
1e9e8aba
DE
46567
46568 i*86-*-beos* )
46569 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46570 ;;
a848cd7e
SC
46571 esac
46572
46573
46574 SO_SUFFIX="so"
46575 SO_SUFFIX_MODULE="so"
46576 EXEEXT=""
46577 LIBPREFIX="lib"
46578 LIBEXT=".a"
46579 DLLPREFIX="lib"
46580 DLLPREFIX_MODULE=""
46581 DLLIMP_SUFFIX=""
810b94f0 46582 dlldir="$libdir"
a848cd7e
SC
46583
46584 case "${BAKEFILE_HOST}" in
46585 *-hp-hpux* )
46586 SO_SUFFIX="sl"
46587 SO_SUFFIX_MODULE="sl"
46588 ;;
46589 *-*-aix* )
46590 SO_SUFFIX="a"
46591 SO_SUFFIX_MODULE="a"
46592 ;;
810b94f0
MW
46593 *-*-cygwin* )
46594 SO_SUFFIX="dll"
46595 SO_SUFFIX_MODULE="dll"
46596 DLLIMP_SUFFIX="dll.a"
46597 EXEEXT=".exe"
46598 DLLPREFIX="cyg"
46599 dlldir="$bindir"
46600 ;;
46601 *-*-mingw32* )
a848cd7e
SC
46602 SO_SUFFIX="dll"
46603 SO_SUFFIX_MODULE="dll"
46604 DLLIMP_SUFFIX="dll.a"
46605 EXEEXT=".exe"
46606 DLLPREFIX=""
810b94f0 46607 dlldir="$bindir"
a848cd7e
SC
46608 ;;
46609 *-pc-msdosdjgpp )
46610 EXEEXT=".exe"
46611 DLLPREFIX=""
810b94f0 46612 dlldir="$bindir"
a848cd7e
SC
46613 ;;
46614 *-pc-os2_emx | *-pc-os2-emx )
46615 SO_SUFFIX="dll"
46616 SO_SUFFIX_MODULE="dll"
46617 DLLIMP_SUFFIX=$OS2_LIBEXT
46618 EXEEXT=".exe"
46619 DLLPREFIX=""
46620 LIBPREFIX=""
46621 LIBEXT=".$OS2_LIBEXT"
810b94f0 46622 dlldir="$bindir"
a848cd7e 46623 ;;
47bd5406 46624 *-*-darwin* )
a848cd7e
SC
46625 SO_SUFFIX="dylib"
46626 SO_SUFFIX_MODULE="bundle"
46627 ;;
46628 esac
46629
46630 if test "x$DLLIMP_SUFFIX" = "x" ; then
46631 DLLIMP_SUFFIX="$SO_SUFFIX"
46632 fi
46633
46634
46635
46636
46637
46638
46639
46640
46641
46642
46643
810b94f0 46644
1e9e8aba
DE
46645 PIC_FLAG=""
46646 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46647 PIC_FLAG="-fPIC"
46648 fi
46649
1e9e8aba
DE
46650 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46651 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46652 WINDOWS_IMPLIB=0
1e9e8aba 46653
a848cd7e
SC
46654 case "${BAKEFILE_HOST}" in
46655 *-hp-hpux* )
1e9e8aba 46656 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46657 LDFLAGS="$LDFLAGS -L/usr/lib"
46658
46659 SHARED_LD_CC="${CC} -b -o"
46660 SHARED_LD_CXX="${CXX} -b -o"
46661 PIC_FLAG="+Z"
46662 fi
46663 ;;
46664
46665 *-*-linux* )
46666 if test "x$GCC" != "xyes"; then
46667 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46668echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46669if test "${bakefile_cv_prog_icc+set}" = set; then
46670 echo $ECHO_N "(cached) $ECHO_C" >&6
46671else
46672
46673 cat >conftest.$ac_ext <<_ACEOF
46674/* confdefs.h. */
46675_ACEOF
46676cat confdefs.h >>conftest.$ac_ext
46677cat >>conftest.$ac_ext <<_ACEOF
46678/* end confdefs.h. */
46679
46680int
46681main ()
46682{
46683
46684 #ifndef __INTEL_COMPILER
e5efa97e 46685 This is not ICC
a848cd7e
SC
46686 #endif
46687
46688 ;
46689 return 0;
46690}
46691_ACEOF
46692rm -f conftest.$ac_objext
46693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46694 (eval $ac_compile) 2>conftest.er1
a848cd7e 46695 ac_status=$?
ac1cb8d3
VS
46696 grep -v '^ *+' conftest.er1 >conftest.err
46697 rm -f conftest.er1
46698 cat conftest.err >&5
a848cd7e
SC
46699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46700 (exit $ac_status); } &&
c9a66001 46701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46703 (eval $ac_try) 2>&5
46704 ac_status=$?
46705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46706 (exit $ac_status); }; } &&
46707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46709 (eval $ac_try) 2>&5
46710 ac_status=$?
46711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46712 (exit $ac_status); }; }; then
46713 bakefile_cv_prog_icc=yes
46714else
46715 echo "$as_me: failed program was:" >&5
46716sed 's/^/| /' conftest.$ac_ext >&5
46717
46718bakefile_cv_prog_icc=no
46719
46720fi
ac1cb8d3 46721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46722
46723fi
46724echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46725echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46726 if test "$bakefile_cv_prog_icc" = "yes"; then
46727 PIC_FLAG="-KPIC"
46728 fi
46729 fi
46730 ;;
46731
46732 *-*-solaris2* )
46733 if test "x$GCC" != xyes ; then
46734 SHARED_LD_CC="${CC} -G -o"
46735 SHARED_LD_CXX="${CXX} -G -o"
46736 PIC_FLAG="-KPIC"
46737 fi
46738 ;;
46739
46740 *-*-darwin* )
46741
473276a9
VS
46742D='$'
46743cat <<EOF >shared-ld-sh
a848cd7e
SC
46744#!/bin/sh
46745#-----------------------------------------------------------------------------
46746#-- Name: distrib/mac/shared-ld-sh
46747#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46748#-- Author: Gilles Depeyrot
46749#-- Copyright: (c) 2002 Gilles Depeyrot
46750#-- Licence: any use permitted
46751#-----------------------------------------------------------------------------
46752
46753verbose=0
46754args=""
46755objects=""
46756linking_flag="-dynamiclib"
810b94f0 46757ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46758
473276a9
VS
46759while test ${D}# -gt 0; do
46760 case ${D}1 in
a848cd7e
SC
46761
46762 -v)
46763 verbose=1
46764 ;;
46765
46766 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46767 # collect these options and values
473276a9 46768 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46769 shift
46770 ;;
46771
810b94f0
MW
46772 -s|-Wl,*)
46773 # collect these load args
46774 ldargs="${D}{ldargs} ${D}1"
2113bc77 46775 ;;
810b94f0
MW
46776
46777 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46778 # collect these options
473276a9 46779 args="${D}{args} ${D}1"
a848cd7e
SC
46780 ;;
46781
46782 -dynamiclib|-bundle)
473276a9 46783 linking_flag="${D}1"
a848cd7e
SC
46784 ;;
46785
46786 -*)
473276a9 46787 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46788 exit 1
46789 ;;
46790
46791 *.o | *.a | *.dylib)
46792 # collect object files
473276a9 46793 objects="${D}{objects} ${D}1"
a848cd7e
SC
46794 ;;
46795
46796 *)
473276a9 46797 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46798 exit 1
46799 ;;
46800
46801 esac
46802 shift
46803done
46804
810b94f0
MW
46805status=0
46806
a848cd7e
SC
46807#
46808# Link one module containing all the others
46809#
473276a9 46810if test ${D}{verbose} = 1; then
810b94f0 46811 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46812fi
810b94f0 46813c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46814status=${D}?
a848cd7e
SC
46815
46816#
810b94f0
MW
46817# Link the shared library from the single module created, but only if the
46818# previous command didn't fail:
a848cd7e 46819#
810b94f0
MW
46820if test ${D}{status} = 0; then
46821 if test ${D}{verbose} = 1; then
46822 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46823 fi
46824 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46825 status=${D}?
a848cd7e
SC
46826fi
46827
46828#
46829# Remove intermediate module
46830#
473276a9 46831rm -f master.${D}${D}.o
a848cd7e 46832
810b94f0 46833exit ${D}status
a848cd7e 46834EOF
473276a9 46835
583d6b4b
VZ
46836 chmod +x shared-ld-sh
46837
46838 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46839 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46840
46841
46842 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46843echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46844if test "${bakefile_cv_gcc31+set}" = set; then
46845 echo $ECHO_N "(cached) $ECHO_C" >&6
46846else
46847
46848 cat >conftest.$ac_ext <<_ACEOF
46849/* confdefs.h. */
46850_ACEOF
46851cat confdefs.h >>conftest.$ac_ext
46852cat >>conftest.$ac_ext <<_ACEOF
46853/* end confdefs.h. */
46854
46855int
46856main ()
46857{
46858
46859 #if (__GNUC__ < 3) || \
46860 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46861 This is old gcc
583d6b4b 46862 #endif
a848cd7e 46863
583d6b4b
VZ
46864 ;
46865 return 0;
46866}
46867_ACEOF
46868rm -f conftest.$ac_objext
46869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46870 (eval $ac_compile) 2>conftest.er1
46871 ac_status=$?
46872 grep -v '^ *+' conftest.er1 >conftest.err
46873 rm -f conftest.er1
46874 cat conftest.err >&5
46875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46876 (exit $ac_status); } &&
c9a66001 46877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
46878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46879 (eval $ac_try) 2>&5
46880 ac_status=$?
46881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46882 (exit $ac_status); }; } &&
46883 { ac_try='test -s conftest.$ac_objext'
46884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46885 (eval $ac_try) 2>&5
46886 ac_status=$?
46887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46888 (exit $ac_status); }; }; then
46889
46890 bakefile_cv_gcc31=yes
46891
46892else
46893 echo "$as_me: failed program was:" >&5
46894sed 's/^/| /' conftest.$ac_ext >&5
46895
46896
46897 bakefile_cv_gcc31=no
46898
46899
46900fi
46901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46902
46903fi
46904echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46905echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46906 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46907 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46908 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46909 else
46910 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46911 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46912 fi
46913
47bd5406
VZ
46914 if test "x$GCC" == "xyes"; then
46915 PIC_FLAG="-dynamic -fPIC"
46916 fi
46917 if test "x$XLCC" = "xyes"; then
46918 PIC_FLAG="-dynamic -DPIC"
46919 fi
a848cd7e
SC
46920 ;;
46921
46922 *-*-aix* )
f6b50c59 46923 if test "x$GCC" = "xyes"; then
583d6b4b 46924 PIC_FLAG=""
f6b50c59 46925
583d6b4b
VZ
46926 case "${BAKEFILE_HOST}" in
46927 *-*-aix5* )
46928 LD_EXPFULL="-Wl,-bexpfull"
46929 ;;
46930 esac
f6b50c59 46931
583d6b4b
VZ
46932 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46933 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46934 else
46935 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46936set dummy makeC++SharedLib; ac_word=$2
46937echo "$as_me:$LINENO: checking for $ac_word" >&5
46938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46939if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46940 echo $ECHO_N "(cached) $ECHO_C" >&6
46941else
46942 if test -n "$AIX_CXX_LD"; then
46943 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46944else
46945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46946for as_dir in $PATH
46947do
46948 IFS=$as_save_IFS
46949 test -z "$as_dir" && as_dir=.
46950 for ac_exec_ext in '' $ac_executable_extensions; do
46951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46952 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46954 break 2
46955 fi
46956done
46957done
46958
46959 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46960fi
46961fi
46962AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46963if test -n "$AIX_CXX_LD"; then
46964 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46965echo "${ECHO_T}$AIX_CXX_LD" >&6
46966else
46967 echo "$as_me:$LINENO: result: no" >&5
46968echo "${ECHO_T}no" >&6
46969fi
46970
f6b50c59 46971 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46972 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46973 fi
46974 ;;
46975
46976 *-*-beos* )
1e9e8aba
DE
46977 SHARED_LD_CC="${LD} -nostart -o"
46978 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46979 ;;
46980
46981 *-*-irix* )
46982 if test "x$GCC" != "xyes"; then
46983 PIC_FLAG="-KPIC"
46984 fi
46985 ;;
46986
46987 *-*-cygwin* | *-*-mingw32* )
46988 PIC_FLAG=""
1e9e8aba
DE
46989 SHARED_LD_CC="\$(CC) -shared -o"
46990 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46991 WINDOWS_IMPLIB=1
a848cd7e
SC
46992 ;;
46993
46994 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46995 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46996 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46997 PIC_FLAG=""
473276a9
VS
46998
46999D='$'
47000cat <<EOF >dllar.sh
47001#!/bin/sh
47002#
47003# dllar - a tool to build both a .dll and an .a file
47004# from a set of object (.o) files for EMX/OS2.
47005#
47006# Written by Andrew Zabolotny, bit@freya.etu.ru
47007# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47008#
47009# This script will accept a set of files on the command line.
47010# All the public symbols from the .o files will be exported into
47011# a .DEF file, then linker will be run (through gcc) against them to
47012# build a shared library consisting of all given .o files. All libraries
47013# (.a) will be first decompressed into component .o files then act as
47014# described above. You can optionally give a description (-d "description")
47015# which will be put into .DLL. To see the list of accepted options (as well
47016# as command-line format) simply run this program without options. The .DLL
47017# is built to be imported by name (there is no guarantee that new versions
47018# of the library you build will have same ordinals for same symbols).
47019#
47020# dllar is free software; you can redistribute it and/or modify
47021# it under the terms of the GNU General Public License as published by
47022# the Free Software Foundation; either version 2, or (at your option)
47023# any later version.
47024#
47025# dllar is distributed in the hope that it will be useful,
47026# but WITHOUT ANY WARRANTY; without even the implied warranty of
47027# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47028# GNU General Public License for more details.
47029#
47030# You should have received a copy of the GNU General Public License
47031# along with dllar; see the file COPYING. If not, write to the Free
47032# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47033# 02111-1307, USA.
47034
47035# To successfuly run this program you will need:
47036# - Current drive should have LFN support (HPFS, ext2, network, etc)
47037# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47038# - gcc
47039# (used to build the .dll)
47040# - emxexp
47041# (used to create .def file from .o files)
47042# - emximp
47043# (used to create .a file from .def file)
47044# - GNU text utilites (cat, sort, uniq)
47045# used to process emxexp output
47046# - GNU file utilities (mv, rm)
47047# - GNU sed
47048# - lxlite (optional, see flag below)
47049# (used for general .dll cleanup)
47050#
47051
47052flag_USE_LXLITE=1;
47053
47054#
47055# helper functions
47056# basnam, variant of basename, which does _not_ remove the path, _iff_
47057# second argument (suffix to remove) is given
47058basnam(){
47059 case ${D}# in
47060 1)
1e9e8aba 47061 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
47062 ;;
47063 2)
47064 echo ${D}1 | sed 's/'${D}2'${D}//'
47065 ;;
47066 *)
47067 echo "error in basnam ${D}*"
47068 exit 8
47069 ;;
47070 esac
47071}
47072
47073# Cleanup temporary files and output
47074CleanUp() {
47075 cd ${D}curDir
47076 for i in ${D}inputFiles ; do
47077 case ${D}i in
47078 *!)
47079 rm -rf \`basnam ${D}i !\`
47080 ;;
47081 *)
47082 ;;
47083 esac
47084 done
47085
47086 # Kill result in case of failure as there is just to many stupid make/nmake
47087 # things out there which doesn't do this.
1e9e8aba 47088 if [ ${D}# -eq 0 ]; then
473276a9
VS
47089 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47090 fi
47091}
47092
47093# Print usage and exit script with rc=1.
47094PrintHelp() {
b1d22ded
DE
47095 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47096 echo ' [-name-mangler-script script.sh]'
47097 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47098 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
47099 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 47100 echo ' [*.o] [*.a]'
473276a9
VS
47101 echo '*> "output_file" should have no extension.'
47102 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
47103 echo ' The import library name is derived from this and is set to "name".a,'
47104 echo ' unless overridden by -import'
47105 echo '*> "importlib_name" should have no extension.'
47106 echo ' If it has the .o, or .a extension, it is automatically removed.'
47107 echo ' This name is used as the import library name and may be longer and'
47108 echo ' more descriptive than the DLL name which has to follow the old '
47109 echo ' 8.3 convention of FAT.'
b1d22ded
DE
47110 echo '*> "script.sh may be given to override the output_file name by a'
47111 echo ' different name. It is mainly useful if the regular make process'
47112 echo ' of some package does not take into account OS/2 restriction of'
47113 echo ' DLL name lengths. It takes the importlib name as input and is'
47114 echo ' supposed to procude a shorter name as output. The script should'
47115 echo ' expect to get importlib_name without extension and should produce'
47116 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47117 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47118 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47119 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47120 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47121 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47122 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47123 echo ' If the last character of a symbol is "*", all symbols beginning'
47124 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47125 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47126 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47127 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47128 echo ' C runtime DLLs.'
b1d22ded 47129 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47130 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47131 echo ' unchanged to GCC at the end of command line.'
47132 echo '*> If you create a DLL from a library and you do not specify -o,'
47133 echo ' the basename for DLL and import library will be set to library name,'
47134 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47135 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47136 echo ' library will be renamed into gcc_s.a.'
47137 echo '--------'
47138 echo 'Example:'
47139 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47140 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47141 CleanUp
47142 exit 1
47143}
47144
47145# Execute a command.
47146# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47147# @Uses Whatever CleanUp() uses.
47148doCommand() {
47149 echo "${D}*"
47150 eval ${D}*
47151 rcCmd=${D}?
47152
1e9e8aba 47153 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47154 echo "command failed, exit code="${D}rcCmd
47155 CleanUp
47156 exit ${D}rcCmd
47157 fi
47158}
47159
47160# main routine
47161# setup globals
47162cmdLine=${D}*
47163outFile=""
47164outimpFile=""
47165inputFiles=""
b1d22ded 47166renameScript=""
473276a9
VS
47167description=""
47168CC=gcc.exe
47169CFLAGS="-s -Zcrtdll"
47170EXTRA_CFLAGS=""
47171EXPORT_BY_ORDINALS=0
47172exclude_symbols=""
47173library_flags=""
47174curDir=\`pwd\`
47175curDirS=curDir
47176case ${D}curDirS in
47177*/)
47178 ;;
47179*)
47180 curDirS=${D}{curDirS}"/"
47181 ;;
47182esac
47183# Parse commandline
47184libsToLink=0
b1d22ded 47185omfLinking=0
1e9e8aba 47186while [ ${D}1 ]; do
473276a9
VS
47187 case ${D}1 in
47188 -ord*)
47189 EXPORT_BY_ORDINALS=1;
47190 ;;
47191 -o*)
47192 shift
47193 outFile=${D}1
47194 ;;
47195 -i*)
47196 shift
47197 outimpFile=${D}1
47198 ;;
b1d22ded
DE
47199 -name-mangler-script)
47200 shift
47201 renameScript=${D}1
47202 ;;
473276a9
VS
47203 -d*)
47204 shift
47205 description=${D}1
47206 ;;
47207 -f*)
47208 shift
47209 CFLAGS=${D}1
47210 ;;
47211 -c*)
47212 shift
47213 CC=${D}1
47214 ;;
47215 -h*)
47216 PrintHelp
47217 ;;
47218 -ex*)
47219 shift
47220 exclude_symbols=${D}{exclude_symbols}${D}1" "
47221 ;;
47222 -libf*)
47223 shift
47224 library_flags=${D}{library_flags}${D}1" "
47225 ;;
47226 -nocrt*)
47227 CFLAGS="-s"
47228 ;;
47229 -nolxl*)
47230 flag_USE_LXLITE=0
47231 ;;
47232 -* | /*)
47233 case ${D}1 in
47234 -L* | -l*)
47235 libsToLink=1
47236 ;;
b1d22ded
DE
47237 -Zomf)
47238 omfLinking=1
47239 ;;
473276a9
VS
47240 *)
47241 ;;
47242 esac
47243 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47244 ;;
b1d22ded
DE
47245 *.dll)
47246 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47247 if [ ${D}omfLinking -eq 1 ]; then
47248 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47249 else
47250 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47251 fi
47252 ;;
473276a9
VS
47253 *)
47254 found=0;
1e9e8aba 47255 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47256 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47257 else
47258 for file in ${D}1 ; do
1e9e8aba 47259 if [ -f ${D}file ]; then
473276a9
VS
47260 inputFiles="${D}{inputFiles} ${D}file"
47261 found=1
47262 fi
47263 done
1e9e8aba 47264 if [ ${D}found -eq 0 ]; then
473276a9
VS
47265 echo "ERROR: No file(s) found: "${D}1
47266 exit 8
47267 fi
47268 fi
47269 ;;
47270 esac
47271 shift
47272done # iterate cmdline words
47273
47274#
1e9e8aba 47275if [ -z "${D}inputFiles" ]; then
473276a9
VS
47276 echo "dllar: no input files"
47277 PrintHelp
47278fi
47279
47280# Now extract all .o files from .a files
47281newInputFiles=""
47282for file in ${D}inputFiles ; do
47283 case ${D}file in
47284 *.a | *.lib)
47285 case ${D}file in
47286 *.a)
47287 suffix=".a"
47288 AR="ar"
47289 ;;
47290 *.lib)
47291 suffix=".lib"
47292 AR="emxomfar"
47293 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47294 ;;
47295 *)
47296 ;;
47297 esac
47298 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47299 mkdir ${D}dirname
1e9e8aba 47300 if [ ${D}? -ne 0 ]; then
473276a9
VS
47301 echo "Failed to create subdirectory ./${D}dirname"
47302 CleanUp
47303 exit 8;
47304 fi
47305 # Append '!' to indicate archive
47306 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47307 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47308 cd ${D}curDir
47309 found=0;
47310 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47311 if [ -f ${D}subfile ]; then
473276a9 47312 found=1
1e9e8aba 47313 if [ -s ${D}subfile ]; then
473276a9
VS
47314 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47315 newInputFiles="${D}newInputFiles ${D}subfile"
47316 fi
47317 fi
47318 done
1e9e8aba
DE
47319 if [ ${D}found -eq 0 ]; then
47320 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47321 fi
47322 ;;
47323 *)
47324 newInputFiles="${D}{newInputFiles} ${D}file"
47325 ;;
47326 esac
47327done
47328inputFiles="${D}newInputFiles"
47329
47330# Output filename(s).
47331do_backup=0;
1e9e8aba 47332if [ -z ${D}outFile ]; then
473276a9
VS
47333 do_backup=1;
47334 set outFile ${D}inputFiles; outFile=${D}2
47335fi
47336
47337# If it is an archive, remove the '!' and the '_%' suffixes
47338case ${D}outFile in
47339*_%!)
47340 outFile=\`basnam ${D}outFile _%!\`
47341 ;;
47342*)
47343 ;;
47344esac
47345case ${D}outFile in
47346*.dll)
47347 outFile=\`basnam ${D}outFile .dll\`
47348 ;;
47349*.DLL)
47350 outFile=\`basnam ${D}outFile .DLL\`
47351 ;;
47352*.o)
47353 outFile=\`basnam ${D}outFile .o\`
47354 ;;
47355*.obj)
47356 outFile=\`basnam ${D}outFile .obj\`
47357 ;;
47358*.a)
47359 outFile=\`basnam ${D}outFile .a\`
47360 ;;
47361*.lib)
47362 outFile=\`basnam ${D}outFile .lib\`
47363 ;;
47364*)
47365 ;;
47366esac
47367case ${D}outimpFile in
47368*.a)
47369 outimpFile=\`basnam ${D}outimpFile .a\`
47370 ;;
47371*.lib)
47372 outimpFile=\`basnam ${D}outimpFile .lib\`
47373 ;;
47374*)
47375 ;;
47376esac
1e9e8aba 47377if [ -z ${D}outimpFile ]; then
473276a9
VS
47378 outimpFile=${D}outFile
47379fi
47380defFile="${D}{outFile}.def"
47381arcFile="${D}{outimpFile}.a"
47382arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47383
47384#create ${D}dllFile as something matching 8.3 restrictions,
47385if [ -z ${D}renameScript ] ; then
47386 dllFile="${D}outFile"
47387else
47388 dllFile=\`${D}renameScript ${D}outimpFile\`
47389fi
473276a9 47390
1e9e8aba
DE
47391if [ ${D}do_backup -ne 0 ] ; then
47392 if [ -f ${D}arcFile ] ; then
473276a9
VS
47393 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47394 fi
1e9e8aba 47395 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47396 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47397 fi
47398fi
47399
47400# Extract public symbols from all the object files.
47401tmpdefFile=${D}{defFile}_%
47402rm -f ${D}tmpdefFile
47403for file in ${D}inputFiles ; do
47404 case ${D}file in
47405 *!)
47406 ;;
47407 *)
47408 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47409 ;;
47410 esac
47411done
47412
47413# Create the def file.
47414rm -f ${D}defFile
47415echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47416dllFile="${D}{dllFile}.dll"
47417if [ ! -z ${D}description ]; then
1e9e8aba 47418 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47419fi
47420echo "EXPORTS" >> ${D}defFile
47421
47422doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47423grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47424
47425# Checks if the export is ok or not.
47426for word in ${D}exclude_symbols; do
47427 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47428 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47429done
47430
47431
1e9e8aba
DE
47432if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47433 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47434 sed '
47435 N
47436 : loop
1e9e8aba 47437 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47438 t loop
47439 ' > ${D}{tmpdefFile}%
47440 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47441else
47442 rm -f ${D}{tmpdefFile}%
47443fi
47444cat ${D}tmpdefFile >> ${D}defFile
47445rm -f ${D}tmpdefFile
47446
47447# Do linking, create implib, and apply lxlite.
47448gccCmdl="";
47449for file in ${D}inputFiles ; do
47450 case ${D}file in
47451 *!)
47452 ;;
47453 *)
47454 gccCmdl="${D}gccCmdl ${D}file"
47455 ;;
47456 esac
47457done
47458doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47459touch "${D}{outFile}.dll"
47460
47461doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47462if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47463 add_flags="";
1e9e8aba 47464 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47465 add_flags="-ynd"
47466 fi
47467 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47468fi
47469doCommand "emxomf -s -l ${D}arcFile"
47470
47471# Successful exit.
47472CleanUp 1
47473exit 0
47474EOF
47475
47476 chmod +x dllar.sh
a848cd7e
SC
47477 ;;
47478
1e9e8aba 47479 powerpc-apple-macos* | \
0ad5d837 47480 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
47481 *-*-sunos4* | \
47482 *-*-osf* | \
47483 *-*-dgux5* | \
47a7e797
MW
47484 *-*-sysv5* | \
47485 *-pc-msdosdjgpp )
a848cd7e
SC
47486 ;;
47487
47488 *)
3ecd9f92 47489 esac
a848cd7e 47490
2057db16
VS
47491 if test "x$PIC_FLAG" != "x" ; then
47492 PIC_FLAG="$PIC_FLAG -DPIC"
47493 fi
47494
a848cd7e
SC
47495 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47496 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47497 fi
47498 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47499 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47500 fi
47501
47502
47503
47504
47505
47506
47507
47508
810b94f0 47509
a848cd7e
SC
47510 USE_SOVERSION=0
47511 USE_SOVERLINUX=0
47512 USE_SOVERSOLARIS=0
810b94f0 47513 USE_SOVERCYGWIN=0
a848cd7e
SC
47514 USE_SOSYMLINKS=0
47515 USE_MACVERSION=0
47516 SONAME_FLAG=
47517
47518 case "${BAKEFILE_HOST}" in
0ad5d837 47519 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
47520 SONAME_FLAG="-Wl,-soname,"
47521 USE_SOVERSION=1
47522 USE_SOVERLINUX=1
47523 USE_SOSYMLINKS=1
47524 ;;
47525
a848cd7e
SC
47526 *-*-solaris2* )
47527 SONAME_FLAG="-h "
47528 USE_SOVERSION=1
47529 USE_SOVERSOLARIS=1
47530 USE_SOSYMLINKS=1
47531 ;;
47532
47533 *-*-darwin* )
47534 USE_MACVERSION=1
47535 USE_SOVERSION=1
47536 USE_SOSYMLINKS=1
47537 ;;
810b94f0
MW
47538
47539 *-*-cygwin* )
47540 USE_SOVERSION=1
47541 USE_SOVERCYGWIN=1
47542 ;;
a848cd7e
SC
47543 esac
47544
47545
47546
47547
47548
47549
47550
47551
47552
810b94f0 47553
f10e38c4
VZ
47554 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47555if test "${enable_dependency_tracking+set}" = set; then
47556 enableval="$enable_dependency_tracking"
47557 bk_use_trackdeps="$enableval"
47558fi;
47559
a848cd7e
SC
47560 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47561echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47562
f10e38c4
VZ
47563 if test "x$bk_use_trackdeps" = "xno" ; then
47564 DEPS_TRACKING=0
47565 echo "$as_me:$LINENO: result: disabled" >&5
47566echo "${ECHO_T}disabled" >&6
47567 else
47568 DEPS_TRACKING=1
47569
47570 if test "x$GCC" = "xyes"; then
47571 DEPSMODE=gcc
47572 case "${BAKEFILE_HOST}" in
47573 *-*-darwin* )
47574 DEPSFLAG="-no-cpp-precomp -MMD"
47575 ;;
47576 * )
47577 DEPSFLAG="-MMD"
47578 ;;
47579 esac
47580 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47581echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47582 elif test "x$MWCC" = "xyes"; then
47583 DEPSMODE=mwcc
47584 DEPSFLAG="-MM"
47585 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47586echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47587 elif test "x$SUNCC" = "xyes"; then
47588 DEPSMODE=unixcc
47589 DEPSFLAG="-xM1"
47590 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47591echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47592 elif test "x$SGICC" = "xyes"; then
47593 DEPSMODE=unixcc
47594 DEPSFLAG="-M"
47595 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47596echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47597 elif test "x$HPCC" = "xyes"; then
47598 DEPSMODE=unixcc
47599 DEPSFLAG="+make"
47600 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47601echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47602 elif test "x$COMPAQCC" = "xyes"; then
47603 DEPSMODE=gcc
47604 DEPSFLAG="-MD"
47605 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47606echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47607 else
47608 DEPS_TRACKING=0
47609 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47610echo "${ECHO_T}none" >&6
f10e38c4 47611 fi
a848cd7e 47612
f10e38c4 47613 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47614
47615D='$'
47616cat <<EOF >bk-deps
a848cd7e
SC
47617#!/bin/sh
47618
47619# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47620# script. It is used to track C/C++ files dependencies in portable way.
47621#
47622# Permission is given to use this file in any way.
47623
473276a9 47624DEPSMODE=${DEPSMODE}
a848cd7e 47625DEPSDIR=.deps
0ad5d837 47626DEPSFLAG="${DEPSFLAG}"
a848cd7e 47627
473276a9 47628mkdir -p ${D}DEPSDIR
a848cd7e 47629
473276a9 47630if test ${D}DEPSMODE = gcc ; then
0ad5d837 47631 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47632 status=${D}?
47633 if test ${D}{status} != 0 ; then
47634 exit ${D}{status}
a848cd7e
SC
47635 fi
47636 # move created file to the location we want it in:
473276a9
VS
47637 while test ${D}# -gt 0; do
47638 case "${D}1" in
a848cd7e
SC
47639 -o )
47640 shift
473276a9 47641 objfile=${D}1
a848cd7e
SC
47642 ;;
47643 -* )
47644 ;;
47645 * )
473276a9 47646 srcfile=${D}1
a848cd7e
SC
47647 ;;
47648 esac
47649 shift
47650 done
1e9e8aba
DE
47651 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47652 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47653 if test -f ${D}depfile ; then
47654 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47655 rm -f ${D}depfile
a848cd7e 47656 else
a1aa0349 47657 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47658 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47659 if test ! -f ${D}depfile ; then
47660 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47661 depfile="${D}objfile.d"
47662 fi
473276a9
VS
47663 if test -f ${D}depfile ; then
47664 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47665 rm -f ${D}depfile
a848cd7e
SC
47666 fi
47667 fi
47668 exit 0
81f90336 47669elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47670 ${D}* || exit ${D}?
81f90336
MW
47671 # Run mwcc again with -MM and redirect into the dep file we want
47672 # NOTE: We can't use shift here because we need ${D}* to be valid
47673 prevarg=
47674 for arg in ${D}* ; do
47675 if test "${D}prevarg" = "-o"; then
47676 objfile=${D}arg
47677 else
47678 case "${D}arg" in
47679 -* )
47680 ;;
47681 * )
47682 srcfile=${D}arg
47683 ;;
47684 esac
47685 fi
47686 prevarg="${D}arg"
47687 done
0ad5d837 47688 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47689 exit 0
0ad5d837 47690elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47691 ${D}* || exit ${D}?
a9e5b1f0
MW
47692 # Run compiler again with deps flag and redirect into the dep file.
47693 # It doesn't work if the '-o FILE' option is used, but without it the
47694 # dependency file will contain the wrong name for the object. So it is
47695 # removed from the command line, and the dep file is fixed with sed.
47696 cmd=""
47697 while test ${D}# -gt 0; do
47698 case "${D}1" in
47699 -o )
47700 shift
47701 objfile=${D}1
47702 ;;
47703 * )
47704 eval arg${D}#=\\${D}1
47705 cmd="${D}cmd \\${D}arg${D}#"
47706 ;;
47707 esac
47708 shift
47709 done
0ad5d837 47710 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47711 exit 0
a848cd7e 47712else
473276a9
VS
47713 ${D}*
47714 exit ${D}?
a848cd7e
SC
47715fi
47716EOF
473276a9 47717
f10e38c4
VZ
47718 chmod +x bk-deps
47719 fi
a848cd7e
SC
47720 fi
47721
47722
47723
47724
a848cd7e
SC
47725 case ${BAKEFILE_HOST} in
47726 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47727 if test -n "$ac_tool_prefix"; then
47728 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47729set dummy ${ac_tool_prefix}windres; ac_word=$2
47730echo "$as_me:$LINENO: checking for $ac_word" >&5
47731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47732if test "${ac_cv_prog_WINDRES+set}" = set; then
47733 echo $ECHO_N "(cached) $ECHO_C" >&6
47734else
47735 if test -n "$WINDRES"; then
47736 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47737else
47738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47739for as_dir in $PATH
47740do
47741 IFS=$as_save_IFS
47742 test -z "$as_dir" && as_dir=.
47743 for ac_exec_ext in '' $ac_executable_extensions; do
47744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47745 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47747 break 2
47748 fi
47749done
47750done
47751
47752fi
47753fi
47754WINDRES=$ac_cv_prog_WINDRES
47755if test -n "$WINDRES"; then
47756 echo "$as_me:$LINENO: result: $WINDRES" >&5
47757echo "${ECHO_T}$WINDRES" >&6
47758else
47759 echo "$as_me:$LINENO: result: no" >&5
47760echo "${ECHO_T}no" >&6
47761fi
47762
47763fi
47764if test -z "$ac_cv_prog_WINDRES"; then
47765 ac_ct_WINDRES=$WINDRES
47766 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47767set dummy windres; ac_word=$2
47768echo "$as_me:$LINENO: checking for $ac_word" >&5
47769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47770if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47771 echo $ECHO_N "(cached) $ECHO_C" >&6
47772else
8ced02f6
DE
47773 if test -n "$ac_ct_WINDRES"; then
47774 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47775else
47776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47777for as_dir in $PATH
47778do
47779 IFS=$as_save_IFS
47780 test -z "$as_dir" && as_dir=.
47781 for ac_exec_ext in '' $ac_executable_extensions; do
47782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47783 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47785 break 2
47786 fi
47787done
47788done
47789
a848cd7e
SC
47790fi
47791fi
8ced02f6
DE
47792ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47793if test -n "$ac_ct_WINDRES"; then
47794 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47795echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47796else
47797 echo "$as_me:$LINENO: result: no" >&5
47798echo "${ECHO_T}no" >&6
47799fi
47800
8ced02f6
DE
47801 WINDRES=$ac_ct_WINDRES
47802else
47803 WINDRES="$ac_cv_prog_WINDRES"
47804fi
47805
a848cd7e
SC
47806 ;;
47807
1e9e8aba 47808 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47809 # Extract the first word of "Rez", so it can be a program name with args.
47810set dummy Rez; ac_word=$2
47811echo "$as_me:$LINENO: checking for $ac_word" >&5
47812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47813if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47814 echo $ECHO_N "(cached) $ECHO_C" >&6
47815else
8ced02f6
DE
47816 if test -n "$REZ"; then
47817 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47818else
47819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47820for as_dir in $PATH
47821do
47822 IFS=$as_save_IFS
47823 test -z "$as_dir" && as_dir=.
47824 for ac_exec_ext in '' $ac_executable_extensions; do
47825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47826 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47828 break 2
47829 fi
47830done
47831done
47832
8ced02f6 47833 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47834fi
47835fi
8ced02f6
DE
47836REZ=$ac_cv_prog_REZ
47837if test -n "$REZ"; then
47838 echo "$as_me:$LINENO: result: $REZ" >&5
47839echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47840else
47841 echo "$as_me:$LINENO: result: no" >&5
47842echo "${ECHO_T}no" >&6
47843fi
47844
47845 # Extract the first word of "SetFile", so it can be a program name with args.
47846set dummy SetFile; ac_word=$2
47847echo "$as_me:$LINENO: checking for $ac_word" >&5
47848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47849if test "${ac_cv_prog_SETFILE+set}" = set; then
47850 echo $ECHO_N "(cached) $ECHO_C" >&6
47851else
47852 if test -n "$SETFILE"; then
47853 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47854else
47855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47856for as_dir in $PATH
47857do
47858 IFS=$as_save_IFS
47859 test -z "$as_dir" && as_dir=.
47860 for ac_exec_ext in '' $ac_executable_extensions; do
47861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47862 ac_cv_prog_SETFILE="SetFile"
47863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47864 break 2
47865 fi
47866done
47867done
47868
47869 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47870fi
47871fi
47872SETFILE=$ac_cv_prog_SETFILE
47873if test -n "$SETFILE"; then
47874 echo "$as_me:$LINENO: result: $SETFILE" >&5
47875echo "${ECHO_T}$SETFILE" >&6
47876else
47877 echo "$as_me:$LINENO: result: no" >&5
47878echo "${ECHO_T}no" >&6
47879fi
47880
47881 ;;
47882 esac
47883
47884
47885
47886
47887
8ced02f6 47888
f10e38c4 47889 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47890
dcc1b6ad 47891
f10e38c4 47892BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47893
646b6ec1 47894
74b84332 47895
a848cd7e
SC
47896 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47897if test "${enable_precomp_headers+set}" = set; then
47898 enableval="$enable_precomp_headers"
47899 bk_use_pch="$enableval"
47900fi;
47901
47902 GCC_PCH=0
f10e38c4
VZ
47903 ICC_PCH=0
47904 USE_PCH=0
a848cd7e 47905
5c60e845
MW
47906 case ${BAKEFILE_HOST} in
47907 *-*-cygwin* )
47908 bk_use_pch="no"
47909 ;;
47910 esac
47911
a848cd7e
SC
47912 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47913 if test "x$GCC" = "xyes"; then
47914 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47915echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47916 cat >conftest.$ac_ext <<_ACEOF
47917/* confdefs.h. */
47918_ACEOF
47919cat confdefs.h >>conftest.$ac_ext
47920cat >>conftest.$ac_ext <<_ACEOF
47921/* end confdefs.h. */
47922
47923int
47924main ()
47925{
47926
47927 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47928 There is no PCH support
a848cd7e
SC
47929 #endif
47930 #if (__GNUC__ < 3)
e5efa97e 47931 There is no PCH support
a848cd7e
SC
47932 #endif
47933 #if (__GNUC__ == 3) && \
47934 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47935 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47936 ( defined(__INTEL_COMPILER) )
e5efa97e 47937 There is no PCH support
a848cd7e
SC
47938 #endif
47939
47940 ;
47941 return 0;
47942}
47943_ACEOF
47944rm -f conftest.$ac_objext
47945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47946 (eval $ac_compile) 2>conftest.er1
a848cd7e 47947 ac_status=$?
ac1cb8d3
VS
47948 grep -v '^ *+' conftest.er1 >conftest.err
47949 rm -f conftest.er1
47950 cat conftest.err >&5
a848cd7e
SC
47951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47952 (exit $ac_status); } &&
c9a66001 47953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47955 (eval $ac_try) 2>&5
47956 ac_status=$?
47957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47958 (exit $ac_status); }; } &&
47959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47961 (eval $ac_try) 2>&5
47962 ac_status=$?
47963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964 (exit $ac_status); }; }; then
47965
47966 echo "$as_me:$LINENO: result: yes" >&5
47967echo "${ECHO_T}yes" >&6
a848cd7e
SC
47968 GCC_PCH=1
47969
47970else
47971 echo "$as_me: failed program was:" >&5
47972sed 's/^/| /' conftest.$ac_ext >&5
47973
47974
f10e38c4
VZ
47975 cat >conftest.$ac_ext <<_ACEOF
47976/* confdefs.h. */
47977_ACEOF
47978cat confdefs.h >>conftest.$ac_ext
47979cat >>conftest.$ac_ext <<_ACEOF
47980/* end confdefs.h. */
47981
47982int
47983main ()
47984{
47985
47986 #if !defined(__INTEL_COMPILER) || \
47987 (__INTEL_COMPILER < 800)
e5efa97e 47988 There is no PCH support
f10e38c4
VZ
47989 #endif
47990
47991 ;
47992 return 0;
47993}
47994_ACEOF
47995rm -f conftest.$ac_objext
47996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47997 (eval $ac_compile) 2>conftest.er1
47998 ac_status=$?
47999 grep -v '^ *+' conftest.er1 >conftest.err
48000 rm -f conftest.er1
48001 cat conftest.err >&5
48002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48003 (exit $ac_status); } &&
c9a66001 48004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
48005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48006 (eval $ac_try) 2>&5
48007 ac_status=$?
48008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48009 (exit $ac_status); }; } &&
48010 { ac_try='test -s conftest.$ac_objext'
48011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48012 (eval $ac_try) 2>&5
48013 ac_status=$?
48014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48015 (exit $ac_status); }; }; then
48016
48017 echo "$as_me:$LINENO: result: yes" >&5
48018echo "${ECHO_T}yes" >&6
48019 ICC_PCH=1
48020
48021else
48022 echo "$as_me: failed program was:" >&5
48023sed 's/^/| /' conftest.$ac_ext >&5
48024
48025
48026 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
48027echo "${ECHO_T}no" >&6
48028
48029fi
ac1cb8d3 48030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
48031
48032fi
48033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48034 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48035 USE_PCH=1
1e9e8aba
DE
48036
48037D='$'
48038cat <<EOF >bk-make-pch
a848cd7e
SC
48039#!/bin/sh
48040
48041# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48042# script. It is used to generated precompiled headers.
48043#
48044# Permission is given to use this file in any way.
48045
1e9e8aba
DE
48046outfile="${D}{1}"
48047header="${D}{2}"
a848cd7e
SC
48048shift
48049shift
48050
f10e38c4
VZ
48051compiler=""
48052headerfile=""
48053
1e9e8aba 48054while test ${D}{#} -gt 0; do
f10e38c4 48055 add_to_cmdline=1
1e9e8aba 48056 case "${D}{1}" in
a848cd7e 48057 -I* )
1e9e8aba
DE
48058 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48059 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48060 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
48061 fi
48062 ;;
f10e38c4
VZ
48063 -use-pch|-use_pch )
48064 shift
48065 add_to_cmdline=0
48066 ;;
a848cd7e 48067 esac
f10e38c4
VZ
48068 if test ${D}add_to_cmdline = 1 ; then
48069 compiler="${D}{compiler} ${D}{1}"
48070 fi
a848cd7e
SC
48071 shift
48072done
48073
1e9e8aba 48074if test "x${D}{headerfile}" = "x" ; then
f10e38c4 48075 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 48076else
1e9e8aba
DE
48077 if test -f ${D}{outfile} ; then
48078 rm -f ${D}{outfile}
a848cd7e 48079 else
1e9e8aba 48080 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 48081 fi
1e9e8aba 48082 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 48083 mkdir -p .deps
f10e38c4
VZ
48084 if test "x${GCC_PCH}" = "x1" ; then
48085 # can do this because gcc is >= 3.4:
48086 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48087 elif test "x${ICC_PCH}" = "x1" ; then
48088 filename=pch_gen-${D}${D}
48089 file=${D}{filename}.c
48090 dfile=${D}{filename}.d
48091 cat > ${D}file <<EOT
48092#include "${D}header"
48093EOT
48094 # using -MF icc complains about differing command lines in creation/use
48095 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48096 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48097 rm -f ${D}file ${D}dfile ${D}{filename}.o
48098 fi
1e9e8aba 48099 exit ${D}{?}
a848cd7e
SC
48100fi
48101EOF
1e9e8aba 48102
a848cd7e
SC
48103 chmod +x bk-make-pch
48104 fi
48105 fi
48106 fi
48107
48108
48109
f10e38c4 48110
a848cd7e
SC
48111 COND_BUILD_DEBUG="#"
48112 if test "x$BUILD" = "xdebug" ; then
48113 COND_BUILD_DEBUG=""
48114 fi
48115
48116 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48117 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48118 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48119 fi
48120
48121 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48122 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48123 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48124 fi
48125
48126 COND_BUILD_DEBUG_UNICODE_0="#"
48127 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48128 COND_BUILD_DEBUG_UNICODE_0=""
48129 fi
48130
48131 COND_BUILD_DEBUG_UNICODE_1="#"
48132 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48133 COND_BUILD_DEBUG_UNICODE_1=""
48134 fi
48135
48136 COND_BUILD_RELEASE="#"
48137 if test "x$BUILD" = "xrelease" ; then
48138 COND_BUILD_RELEASE=""
48139 fi
48140
48141 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48142 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48143 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48144 fi
48145
48146 COND_BUILD_RELEASE_UNICODE_0="#"
48147 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48148 COND_BUILD_RELEASE_UNICODE_0=""
48149 fi
48150
48151 COND_BUILD_RELEASE_UNICODE_1="#"
48152 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48153 COND_BUILD_RELEASE_UNICODE_1=""
48154 fi
48155
48156 COND_DEBUG_FLAG_1="#"
48157 if test "x$DEBUG_FLAG" = "x1" ; then
48158 COND_DEBUG_FLAG_1=""
48159 fi
48160
48161 COND_DEBUG_INFO_0="#"
48162 if test "x$DEBUG_INFO" = "x0" ; then
48163 COND_DEBUG_INFO_0=""
48164 fi
48165
48166 COND_DEBUG_INFO_1="#"
48167 if test "x$DEBUG_INFO" = "x1" ; then
48168 COND_DEBUG_INFO_1=""
48169 fi
48170
48171 COND_DEPS_TRACKING_0="#"
48172 if test "x$DEPS_TRACKING" = "x0" ; then
48173 COND_DEPS_TRACKING_0=""
48174 fi
48175
48176 COND_DEPS_TRACKING_1="#"
48177 if test "x$DEPS_TRACKING" = "x1" ; then
48178 COND_DEPS_TRACKING_1=""
48179 fi
48180
48181 COND_GCC_PCH_1="#"
48182 if test "x$GCC_PCH" = "x1" ; then
48183 COND_GCC_PCH_1=""
48184 fi
48185
f10e38c4
VZ
48186 COND_ICC_PCH_1="#"
48187 if test "x$ICC_PCH" = "x1" ; then
48188 COND_ICC_PCH_1=""
48189 fi
48190
a848cd7e
SC
48191 COND_MONOLITHIC_0="#"
48192 if test "x$MONOLITHIC" = "x0" ; then
48193 COND_MONOLITHIC_0=""
48194 fi
48195
48196 COND_MONOLITHIC_0_SHARED_0="#"
48197 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48198 COND_MONOLITHIC_0_SHARED_0=""
48199 fi
48200
3f60522a
JS
48201 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48202 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48203 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48204 fi
48205
a848cd7e
SC
48206 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48207 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48208 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48209 fi
48210
90970d69
DE
48211 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48212 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48213 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48214 fi
48215
f10e38c4
VZ
48216 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48217 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48218 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48219 fi
48220
a848cd7e
SC
48221 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48222 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48223 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48224 fi
48225
6671c68b
VZ
48226 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48227 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48228 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48229 fi
48230
a848cd7e
SC
48231 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48232 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48233 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48234 fi
48235
8b6682b9
JS
48236 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48237 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48238 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48239 fi
48240
ceec2216
RL
48241 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48242 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48243 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48244 fi
48245
a848cd7e
SC
48246 COND_MONOLITHIC_0_SHARED_1="#"
48247 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48248 COND_MONOLITHIC_0_SHARED_1=""
48249 fi
48250
3f60522a
JS
48251 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48252 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48253 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48254 fi
48255
a848cd7e
SC
48256 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48257 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48258 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48259 fi
48260
90970d69
DE
48261 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48262 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48263 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48264 fi
48265
f10e38c4
VZ
48266 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48267 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48268 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48269 fi
48270
a848cd7e
SC
48271 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48272 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48273 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48274 fi
48275
6671c68b
VZ
48276 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48277 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48278 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48279 fi
48280
a848cd7e
SC
48281 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48282 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48283 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48284 fi
48285
8b6682b9
JS
48286 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48287 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48288 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48289 fi
48290
ceec2216
RL
48291 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48292 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48293 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48294 fi
48295
e5efa97e
VZ
48296 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48297 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48298 COND_MONOLITHIC_0_USE_MEDIA_1=""
48299 fi
48300
a848cd7e
SC
48301 COND_MONOLITHIC_0_USE_ODBC_1="#"
48302 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48303 COND_MONOLITHIC_0_USE_ODBC_1=""
48304 fi
48305
48306 COND_MONOLITHIC_1="#"
48307 if test "x$MONOLITHIC" = "x1" ; then
48308 COND_MONOLITHIC_1=""
48309 fi
48310
48311 COND_MONOLITHIC_1_SHARED_0="#"
48312 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48313 COND_MONOLITHIC_1_SHARED_0=""
48314 fi
48315
48316 COND_MONOLITHIC_1_SHARED_1="#"
48317 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48318 COND_MONOLITHIC_1_SHARED_1=""
48319 fi
48320
48321 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48322 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48323 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48324 fi
48325
48326 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48327 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48328 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48329 fi
48330
eb730a0c
JS
48331 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48332 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48333 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48334 fi
48335
a848cd7e
SC
48336 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48337 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48338 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48339 fi
48340
48341 COND_PLATFORM_MACOSX_1="#"
48342 if test "x$PLATFORM_MACOSX" = "x1" ; then
48343 COND_PLATFORM_MACOSX_1=""
48344 fi
48345
a30f955f
VS
48346 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48347 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48348 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48349 fi
48350
a848cd7e
SC
48351 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48352 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48353 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48354 fi
48355
48356 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48357 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48358 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48359 fi
48360
48361 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48362 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48363 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48364 fi
48365
fc480dc1
DE
48366 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48367 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48368 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48369 fi
48370
1e9e8aba
DE
48371 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48372 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48373 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48374 fi
48375
ebee3cd0
VS
48376 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48377 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48378 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48379 fi
48380
48381 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48382 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48383 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48384 fi
48385
a848cd7e
SC
48386 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48387 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48388 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48389 fi
48390
48391 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48392 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48393 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48394 fi
48395
b48a2016
DE
48396 COND_PLATFORM_MACOS_1="#"
48397 if test "x$PLATFORM_MACOS" = "x1" ; then
48398 COND_PLATFORM_MACOS_1=""
48399 fi
48400
083508af
MW
48401 COND_PLATFORM_MAC_1="#"
48402 if test "x$PLATFORM_MAC" = "x1" ; then
48403 COND_PLATFORM_MAC_1=""
48404 fi
48405
e5efa97e
VZ
48406 COND_PLATFORM_MSDOS_0="#"
48407 if test "x$PLATFORM_MSDOS" = "x0" ; then
48408 COND_PLATFORM_MSDOS_0=""
48409 fi
48410
83d8eb47
MW
48411 COND_PLATFORM_MSDOS_1="#"
48412 if test "x$PLATFORM_MSDOS" = "x1" ; then
48413 COND_PLATFORM_MSDOS_1=""
48414 fi
48415
a848cd7e
SC
48416 COND_PLATFORM_OS2_1="#"
48417 if test "x$PLATFORM_OS2" = "x1" ; then
48418 COND_PLATFORM_OS2_1=""
48419 fi
48420
48421 COND_PLATFORM_UNIX_0="#"
48422 if test "x$PLATFORM_UNIX" = "x0" ; then
48423 COND_PLATFORM_UNIX_0=""
48424 fi
48425
48426 COND_PLATFORM_UNIX_1="#"
48427 if test "x$PLATFORM_UNIX" = "x1" ; then
48428 COND_PLATFORM_UNIX_1=""
48429 fi
48430
48431 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48432 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48433 COND_PLATFORM_UNIX_1_USE_GUI_1=""
48434 fi
48435
48436 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48437 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48438 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48439 fi
48440
48441 COND_PLATFORM_WIN32_0="#"
48442 if test "x$PLATFORM_WIN32" = "x0" ; then
48443 COND_PLATFORM_WIN32_0=""
48444 fi
48445
48446 COND_PLATFORM_WIN32_1="#"
48447 if test "x$PLATFORM_WIN32" = "x1" ; then
48448 COND_PLATFORM_WIN32_1=""
48449 fi
48450
48451 COND_SHARED_0="#"
48452 if test "x$SHARED" = "x0" ; then
48453 COND_SHARED_0=""
48454 fi
48455
083508af
MW
48456 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48457 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48458 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48459 fi
48460
48461 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48462 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48463 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48464 fi
48465
48466 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48467 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48468 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48469 fi
48470
a848cd7e
SC
48471 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48472 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48473 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48474 fi
48475
48476 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48477 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48478 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48479 fi
48480
48481 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48482 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48483 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48484 fi
48485
48486 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48487 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48488 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48489 fi
48490
083508af
MW
48491 COND_SHARED_0_USE_XRC_1="#"
48492 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48493 COND_SHARED_0_USE_XRC_1=""
48494 fi
48495
a848cd7e
SC
48496 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48497 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48498 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48499 fi
48500
48501 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48502 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48503 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48504 fi
48505
48506 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48507 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48508 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48509 fi
48510
48511 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48512 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48513 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48514 fi
48515
48516 COND_SHARED_1="#"
48517 if test "x$SHARED" = "x1" ; then
48518 COND_SHARED_1=""
48519 fi
48520
48521 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48522 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48523 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48524 fi
48525
083508af
MW
48526 COND_SHARED_1_USE_XRC_1="#"
48527 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48528 COND_SHARED_1_USE_XRC_1=""
48529 fi
48530
a30f955f
VS
48531 COND_TOOLKIT_="#"
48532 if test "x$TOOLKIT" = "x" ; then
48533 COND_TOOLKIT_=""
48534 fi
48535
a848cd7e
SC
48536 COND_TOOLKIT_COCOA="#"
48537 if test "x$TOOLKIT" = "xCOCOA" ; then
48538 COND_TOOLKIT_COCOA=""
48539 fi
48540
a49baeab
DE
48541 COND_TOOLKIT_COCOA_USE_GUI_1="#"
48542 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48543 COND_TOOLKIT_COCOA_USE_GUI_1=""
48544 fi
48545
a848cd7e
SC
48546 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48547 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48548 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48549 fi
48550
b3c86150
VS
48551 COND_TOOLKIT_DFB="#"
48552 if test "x$TOOLKIT" = "xDFB" ; then
48553 COND_TOOLKIT_DFB=""
48554 fi
48555
48556 COND_TOOLKIT_DFB_USE_GUI_1="#"
48557 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
48558 COND_TOOLKIT_DFB_USE_GUI_1=""
48559 fi
48560
a848cd7e
SC
48561 COND_TOOLKIT_GTK="#"
48562 if test "x$TOOLKIT" = "xGTK" ; then
48563 COND_TOOLKIT_GTK=""
48564 fi
48565
d044deea
MW
48566 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48567 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48568 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48569 fi
48570
48571 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48572 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48573 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48574 fi
48575
48576 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48577 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48578 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48579 fi
48580
48581 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48582 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48583 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48584 fi
48585
48586 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48587 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48588 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48589 fi
48590
48591 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48592 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48593 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48594 fi
48595
a848cd7e
SC
48596 COND_TOOLKIT_GTK_USE_GUI_1="#"
48597 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48598 COND_TOOLKIT_GTK_USE_GUI_1=""
48599 fi
48600
a848cd7e
SC
48601 COND_TOOLKIT_MAC="#"
48602 if test "x$TOOLKIT" = "xMAC" ; then
48603 COND_TOOLKIT_MAC=""
48604 fi
48605
48606 COND_TOOLKIT_MAC_USE_GUI_1="#"
48607 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48608 COND_TOOLKIT_MAC_USE_GUI_1=""
48609 fi
48610
48611 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48612 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48613 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48614 fi
48615
48616 COND_TOOLKIT_MGL="#"
48617 if test "x$TOOLKIT" = "xMGL" ; then
48618 COND_TOOLKIT_MGL=""
48619 fi
48620
48621 COND_TOOLKIT_MGL_USE_GUI_1="#"
48622 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48623 COND_TOOLKIT_MGL_USE_GUI_1=""
48624 fi
48625
48626 COND_TOOLKIT_MOTIF="#"
48627 if test "x$TOOLKIT" = "xMOTIF" ; then
48628 COND_TOOLKIT_MOTIF=""
48629 fi
48630
48631 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48632 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48633 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48634 fi
48635
48636 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48637 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48638 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48639 fi
48640
48641 COND_TOOLKIT_MSW="#"
48642 if test "x$TOOLKIT" = "xMSW" ; then
48643 COND_TOOLKIT_MSW=""
48644 fi
48645
48646 COND_TOOLKIT_MSW_USE_GUI_1="#"
48647 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48648 COND_TOOLKIT_MSW_USE_GUI_1=""
48649 fi
48650
48651 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48652 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48653 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48654 fi
48655
0ee4059d
DE
48656 COND_TOOLKIT_MSW_WXUNIV_0="#"
48657 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48658 COND_TOOLKIT_MSW_WXUNIV_0=""
48659 fi
48660
a848cd7e
SC
48661 COND_TOOLKIT_PM="#"
48662 if test "x$TOOLKIT" = "xPM" ; then
48663 COND_TOOLKIT_PM=""
48664 fi
48665
48666 COND_TOOLKIT_PM_USE_GUI_1="#"
48667 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48668 COND_TOOLKIT_PM_USE_GUI_1=""
48669 fi
48670
48671 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48672 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48673 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48674 fi
48675
3fd9c298
DE
48676 COND_TOOLKIT_WINCE="#"
48677 if test "x$TOOLKIT" = "xWINCE" ; then
48678 COND_TOOLKIT_WINCE=""
48679 fi
48680
48681 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48682 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48683 COND_TOOLKIT_WINCE_USE_GUI_1=""
48684 fi
48685
48686 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48687 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48688 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48689 fi
48690
0ee4059d
DE
48691 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48692 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48693 COND_TOOLKIT_WINCE_WXUNIV_0=""
48694 fi
48695
a848cd7e
SC
48696 COND_TOOLKIT_X11="#"
48697 if test "x$TOOLKIT" = "xX11" ; then
48698 COND_TOOLKIT_X11=""
48699 fi
48700
48701 COND_TOOLKIT_X11_USE_GUI_1="#"
48702 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48703 COND_TOOLKIT_X11_USE_GUI_1=""
48704 fi
48705
48706 COND_UNICODE_1="#"
48707 if test "x$UNICODE" = "x1" ; then
48708 COND_UNICODE_1=""
48709 fi
48710
48711 COND_USE_EXCEPTIONS_0="#"
48712 if test "x$USE_EXCEPTIONS" = "x0" ; then
48713 COND_USE_EXCEPTIONS_0=""
48714 fi
48715
48716 COND_USE_EXCEPTIONS_1="#"
48717 if test "x$USE_EXCEPTIONS" = "x1" ; then
48718 COND_USE_EXCEPTIONS_1=""
48719 fi
48720
48721 COND_USE_GUI_0="#"
48722 if test "x$USE_GUI" = "x0" ; then
48723 COND_USE_GUI_0=""
48724 fi
48725
48726 COND_USE_GUI_1="#"
48727 if test "x$USE_GUI" = "x1" ; then
48728 COND_USE_GUI_1=""
48729 fi
48730
48731 COND_USE_GUI_1_WXUNIV_0="#"
48732 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48733 COND_USE_GUI_1_WXUNIV_0=""
48734 fi
48735
48736 COND_USE_GUI_1_WXUNIV_1="#"
48737 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48738 COND_USE_GUI_1_WXUNIV_1=""
48739 fi
48740
48741 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48742 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48743 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48744 fi
48745
48746 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48747 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48748 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48749 fi
48750
48751 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48752 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48753 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48754 fi
48755
083508af
MW
48756 COND_USE_ODBC_1="#"
48757 if test "x$USE_ODBC" = "x1" ; then
48758 COND_USE_ODBC_1=""
48759 fi
48760
48761 COND_USE_OPENGL_1="#"
48762 if test "x$USE_OPENGL" = "x1" ; then
48763 COND_USE_OPENGL_1=""
48764 fi
48765
f10e38c4
VZ
48766 COND_USE_PCH_1="#"
48767 if test "x$USE_PCH" = "x1" ; then
48768 COND_USE_PCH_1=""
48769 fi
48770
a848cd7e
SC
48771 COND_USE_PLUGINS_0="#"
48772 if test "x$USE_PLUGINS" = "x0" ; then
48773 COND_USE_PLUGINS_0=""
48774 fi
48775
0b78747f
MW
48776 COND_USE_RTTI_0="#"
48777 if test "x$USE_RTTI" = "x0" ; then
48778 COND_USE_RTTI_0=""
48779 fi
48780
48781 COND_USE_RTTI_1="#"
48782 if test "x$USE_RTTI" = "x1" ; then
48783 COND_USE_RTTI_1=""
48784 fi
48785
a848cd7e
SC
48786 COND_USE_SOSYMLINKS_1="#"
48787 if test "x$USE_SOSYMLINKS" = "x1" ; then
48788 COND_USE_SOSYMLINKS_1=""
48789 fi
48790
eb730a0c
JS
48791 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48792 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48793 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48794 fi
48795
a848cd7e
SC
48796 COND_USE_SOVERLINUX_1="#"
48797 if test "x$USE_SOVERLINUX" = "x1" ; then
48798 COND_USE_SOVERLINUX_1=""
48799 fi
48800
48801 COND_USE_SOVERSION_0="#"
48802 if test "x$USE_SOVERSION" = "x0" ; then
48803 COND_USE_SOVERSION_0=""
48804 fi
48805
48806 COND_USE_SOVERSOLARIS_1="#"
48807 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48808 COND_USE_SOVERSOLARIS_1=""
48809 fi
48810
0b78747f
MW
48811 COND_USE_THREADS_0="#"
48812 if test "x$USE_THREADS" = "x0" ; then
48813 COND_USE_THREADS_0=""
48814 fi
48815
48816 COND_USE_THREADS_1="#"
48817 if test "x$USE_THREADS" = "x1" ; then
48818 COND_USE_THREADS_1=""
48819 fi
48820
a13a7f89
RL
48821 COND_USE_XRC_1="#"
48822 if test "x$USE_XRC" = "x1" ; then
48823 COND_USE_XRC_1=""
48824 fi
48825
eb730a0c
JS
48826 COND_WINDOWS_IMPLIB_1="#"
48827 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48828 COND_WINDOWS_IMPLIB_1=""
48829 fi
48830
a848cd7e
SC
48831 COND_WITH_PLUGIN_SDL_1="#"
48832 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48833 COND_WITH_PLUGIN_SDL_1=""
48834 fi
48835
1e6eb025
VZ
48836 COND_WXUNIV_0="#"
48837 if test "x$WXUNIV" = "x0" ; then
48838 COND_WXUNIV_0=""
48839 fi
48840
a848cd7e
SC
48841 COND_WXUNIV_1="#"
48842 if test "x$WXUNIV" = "x1" ; then
48843 COND_WXUNIV_1=""
48844 fi
48845
48846 COND_WXUSE_EXPAT_BUILTIN="#"
48847 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48848 COND_WXUSE_EXPAT_BUILTIN=""
48849 fi
48850
48851 COND_WXUSE_LIBJPEG_BUILTIN="#"
48852 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48853 COND_WXUSE_LIBJPEG_BUILTIN=""
48854 fi
48855
48856 COND_WXUSE_LIBPNG_BUILTIN="#"
48857 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48858 COND_WXUSE_LIBPNG_BUILTIN=""
48859 fi
48860
48861 COND_WXUSE_LIBTIFF_BUILTIN="#"
48862 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48863 COND_WXUSE_LIBTIFF_BUILTIN=""
48864 fi
48865
48866 COND_WXUSE_ODBC_BUILTIN="#"
48867 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48868 COND_WXUSE_ODBC_BUILTIN=""
48869 fi
48870
48871 COND_WXUSE_REGEX_BUILTIN="#"
48872 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48873 COND_WXUSE_REGEX_BUILTIN=""
48874 fi
48875
48876 COND_WXUSE_ZLIB_BUILTIN="#"
48877 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48878 COND_WXUSE_ZLIB_BUILTIN=""
48879 fi
48880
48881
48882
810b94f0
MW
48883 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48884 { { 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
48885echo "$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;}
48886 { (exit 1); exit 1; }; }
48887 fi
48888
2057db16
VS
48889 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48890 { { 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
48891echo "$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;}
48892 { (exit 1); exit 1; }; }
48893 fi
48894
a848cd7e 48895
7afc46ab
KO
48896
48897if test "$wxUSE_MAC" = 1 ; then
95768535 48898 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
48899 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48900 mv temp bk-deps
48901 chmod +x bk-deps
48902 fi
48903fi
48904
ceec2216
RL
48905if test "$wxUSE_SHARED" = "yes"; then
48906
48907 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48908 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48909
5b674b9d
DE
48910 case "${host}" in
48911 *-pc-os2_emx | *-pc-os2-emx )
48912 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48913 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48914 cp -p ${srcdir}/src/os2/dllnames.sh .
48915 cp -p ${srcdir}/src/os2/dllar.sh .
48916 ;;
48917 esac
ceec2216
RL
48918else
48919
48920 EXE_LINKER="$CXX -o"
48921
48922fi
69120ee4
VZ
48923if test "$wxUSE_OMF" = "yes"; then
48924 case "${host}" in
48925 *-pc-os2_emx | *-pc-os2-emx )
48926 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48927 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48928 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48929 ;;
48930 esac
48931fi
a848cd7e 48932
c08ebc62 48933if test $GCC_PCH = 1 ; then
254e8e29 48934 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48935fi
a848cd7e 48936
5ff751d6 48937WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48938
48939SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48940
48941
48942
48943
48944
48945
48946
48947
48948
48949
48950
48951
48952
48953
48954
48955
48956
48957
48958
48959
48960
48961
48962
48963
48964
48965
48966
48967
48968
48969
48970
48971
48972
48973
48974
48975
48976
48977
48978
48979
48980
48981
a848cd7e
SC
48982
48983
48984
48985
48986
48987
48988
48989
48990
48991
48992
48993
a848cd7e
SC
48994
48995
ddd14b14 48996
370d2fd7 48997
8ced02f6 48998
a848cd7e
SC
48999
49000
49001echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49002echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 49003set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
49004if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49005 echo $ECHO_N "(cached) $ECHO_C" >&6
49006else
49007 cat >conftest.make <<\_ACEOF
49008all:
49009 @echo 'ac_maketemp="$(MAKE)"'
49010_ACEOF
49011# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49012eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49013if test -n "$ac_maketemp"; then
49014 eval ac_cv_prog_make_${ac_make}_set=yes
49015else
49016 eval ac_cv_prog_make_${ac_make}_set=no
49017fi
49018rm -f conftest.make
49019fi
49020if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
49021 echo "$as_me:$LINENO: result: yes" >&5
49022echo "${ECHO_T}yes" >&6
49023 SET_MAKE=
49024else
49025 echo "$as_me:$LINENO: result: no" >&5
49026echo "${ECHO_T}no" >&6
49027 SET_MAKE="MAKE=${MAKE-make}"
49028fi
49029
49030
a848cd7e 49031
ceec2216
RL
49032 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49033
a848cd7e 49034
5c60e845
MW
49035if test "$USE_WIN32" = 1; then
49036 ac_config_commands="$ac_config_commands
49037 rcdefs.h
49038 "
49039
49040fi
49041
ceec2216 49042 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 49043
a848cd7e 49044
ceec2216 49045 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 49046
ceec2216
RL
49047
49048 ac_config_files="$ac_config_files version-script Makefile"
49049
49050
5c60e845 49051 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
49052
49053
9103d280 49054
1c14217d 49055if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
49056if test "$wxUSE_GUI" = "yes"; then
49057 SUBDIRS="samples demos utils contrib"
49058else SUBDIRS="samples utils"
49059fi
49060
49061
49062
49063# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49064if test "${with_cppunit_prefix+set}" = set; then
49065 withval="$with_cppunit_prefix"
49066 cppunit_config_prefix="$withval"
49067else
49068 cppunit_config_prefix=""
49069fi;
49070
49071# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49072if test "${with_cppunit_exec_prefix+set}" = set; then
49073 withval="$with_cppunit_exec_prefix"
49074 cppunit_config_exec_prefix="$withval"
49075else
49076 cppunit_config_exec_prefix=""
49077fi;
49078
49079 if test x$cppunit_config_exec_prefix != x ; then
49080 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49081 if test x${CPPUNIT_CONFIG+set} != xset ; then
49082 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49083 fi
49084 fi
49085 if test x$cppunit_config_prefix != x ; then
49086 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49087 if test x${CPPUNIT_CONFIG+set} != xset ; then
49088 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49089 fi
49090 fi
49091
49092 # Extract the first word of "cppunit-config", so it can be a program name with args.
49093set dummy cppunit-config; ac_word=$2
49094echo "$as_me:$LINENO: checking for $ac_word" >&5
49095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49096if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49097 echo $ECHO_N "(cached) $ECHO_C" >&6
49098else
49099 case $CPPUNIT_CONFIG in
49100 [\\/]* | ?:[\\/]*)
49101 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49102 ;;
49103 *)
49104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49105for as_dir in $PATH
49106do
49107 IFS=$as_save_IFS
49108 test -z "$as_dir" && as_dir=.
49109 for ac_exec_ext in '' $ac_executable_extensions; do
49110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49111 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49113 break 2
49114 fi
49115done
49116done
49117
49118 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49119 ;;
49120esac
49121fi
49122CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49123
49124if test -n "$CPPUNIT_CONFIG"; then
49125 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49126echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49127else
49128 echo "$as_me:$LINENO: result: no" >&5
49129echo "${ECHO_T}no" >&6
49130fi
49131
49132 cppunit_version_min=1.8.0
49133
49134 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49135echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49136 no_cppunit=""
49137 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
49138 echo "$as_me:$LINENO: result: no" >&5
49139echo "${ECHO_T}no" >&6
a848cd7e
SC
49140 no_cppunit=yes
49141 else
49142 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49143 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49144 cppunit_version=`$CPPUNIT_CONFIG --version`
49145
49146 cppunit_major_version=`echo $cppunit_version | \
49147 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49148 cppunit_minor_version=`echo $cppunit_version | \
49149 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49150 cppunit_micro_version=`echo $cppunit_version | \
49151 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49152
49153 cppunit_major_min=`echo $cppunit_version_min | \
49154 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49155 cppunit_minor_min=`echo $cppunit_version_min | \
49156 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49157 cppunit_micro_min=`echo $cppunit_version_min | \
49158 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49159
49160 cppunit_version_proper=`expr \
49161 $cppunit_major_version \> $cppunit_major_min \| \
49162 $cppunit_major_version \= $cppunit_major_min \& \
49163 $cppunit_minor_version \> $cppunit_minor_min \| \
49164 $cppunit_major_version \= $cppunit_major_min \& \
49165 $cppunit_minor_version \= $cppunit_minor_min \& \
49166 $cppunit_micro_version \>= $cppunit_micro_min `
49167
49168 if test "$cppunit_version_proper" = "1" ; then
49169 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49170echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49171 else
49172 echo "$as_me:$LINENO: result: no" >&5
49173echo "${ECHO_T}no" >&6
49174 no_cppunit=yes
49175 fi
49176 fi
49177
49178 if test "x$no_cppunit" = x ; then
c2218763 49179 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49180 else
49181 CPPUNIT_CFLAGS=""
49182 CPPUNIT_LIBS=""
c2218763 49183 :
a848cd7e
SC
49184 fi
49185
49186
49187
49188
49189
49190for subdir in `echo $SUBDIRS`; do
49191 if test -d ${srcdir}/${subdir} ; then
49192 if test "$wxUSE_GUI" = "yes"; then
49193 if test ${subdir} = "samples"; then
49194 makefiles="samples/Makefile.in $makefiles"
49195 for sample in `echo $SAMPLES_SUBDIRS`; do
49196 if test -d $srcdir/samples/$sample; then
49197 makefiles="samples/$sample/Makefile.in $makefiles"
49198 fi
49199 done
9c112555
MW
49200 else
49201 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49202 eval "disabled=\$$disabled_var"
49203 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49204 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49205 fi
49206 else if test ${subdir} = "samples"; then
49207 makefiles="samples/Makefile.in samples/console/Makefile.in"
49208 elif test ${subdir} = "utils"; then
6537ccf8
VS
49209 makefiles=""
49210 for util in HelpGen tex2rtf ; do
49211 if test -d $srcdir/utils/$util ; then
49212 makefiles="utils/$util/Makefile.in \
49213 utils/$util/src/Makefile.in \
49214 $makefiles"
49215 fi
49216 done
a848cd7e
SC
49217 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49218 fi
49219 fi
49220
49221 for mkin in $makefiles ; do
49222 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49223 ac_config_files="$ac_config_files $mk"
49224
49225 done
49226 fi
49227done
1c14217d 49228fi
a848cd7e
SC
49229cat >confcache <<\_ACEOF
49230# This file is a shell script that caches the results of configure
49231# tests run on this system so they can be shared between configure
49232# scripts and configure runs, see configure's option --config-cache.
49233# It is not useful on other systems. If it contains results you don't
49234# want to keep, you may remove or edit it.
49235#
49236# config.status only pays attention to the cache file if you give it
49237# the --recheck option to rerun configure.
49238#
49239# `ac_cv_env_foo' variables (set or unset) will be overridden when
49240# loading this file, other *unset* `ac_cv_foo' will be assigned the
49241# following values.
49242
49243_ACEOF
49244
49245# The following way of writing the cache mishandles newlines in values,
49246# but we know of no workaround that is simple, portable, and efficient.
49247# So, don't put newlines in cache variables' values.
49248# Ultrix sh set writes to stderr and can't be redirected directly,
49249# and sets the high bit in the cache file unless we assign to the vars.
49250{
49251 (set) 2>&1 |
49252 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49253 *ac_space=\ *)
49254 # `set' does not quote correctly, so add quotes (double-quote
49255 # substitution turns \\\\ into \\, and sed turns \\ into \).
49256 sed -n \
ac1cb8d3
VS
49257 "s/'/'\\\\''/g;
49258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49259 ;;
49260 *)
49261 # `set' quotes correctly as required by POSIX, so do not add quotes.
49262 sed -n \
ac1cb8d3 49263 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49264 ;;
49265 esac;
49266} |
49267 sed '
49268 t clear
49269 : clear
49270 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49271 t end
49272 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49273 : end' >>confcache
49274if diff $cache_file confcache >/dev/null 2>&1; then :; else
49275 if test -w $cache_file; then
49276 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49277 cat confcache >$cache_file
49278 else
49279 echo "not updating unwritable cache $cache_file"
49280 fi
49281fi
49282rm -f confcache
49283
49284test "x$prefix" = xNONE && prefix=$ac_default_prefix
49285# Let make expand exec_prefix.
49286test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49287
49288# VPATH may cause trouble with some makes, so we remove $(srcdir),
49289# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49290# trailing colons and then remove the whole line if VPATH becomes empty
49291# (actually we leave an empty line to preserve line numbers).
49292if test "x$srcdir" = x.; then
ac1cb8d3 49293 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49294s/:*\$(srcdir):*/:/;
49295s/:*\${srcdir}:*/:/;
49296s/:*@srcdir@:*/:/;
ac1cb8d3 49297s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49298s/:*$//;
ac1cb8d3 49299s/^[^=]*=[ ]*$//;
a848cd7e
SC
49300}'
49301fi
49302
49303DEFS=-DHAVE_CONFIG_H
49304
49305ac_libobjs=
49306ac_ltlibobjs=
49307for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49308 # 1. Remove the extension, and $U if already installed.
49309 ac_i=`echo "$ac_i" |
ac1cb8d3 49310 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49311 # 2. Add them.
49312 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49313 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49314done
49315LIBOBJS=$ac_libobjs
49316
49317LTLIBOBJS=$ac_ltlibobjs
49318
49319
49320
49321: ${CONFIG_STATUS=./config.status}
49322ac_clean_files_save=$ac_clean_files
49323ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49324{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49325echo "$as_me: creating $CONFIG_STATUS" >&6;}
49326cat >$CONFIG_STATUS <<_ACEOF
49327#! $SHELL
49328# Generated by $as_me.
49329# Run this file to recreate the current configuration.
49330# Compiler output produced by configure, useful for debugging
49331# configure, is in config.log if it exists.
49332
49333debug=false
49334ac_cs_recheck=false
49335ac_cs_silent=false
49336SHELL=\${CONFIG_SHELL-$SHELL}
49337_ACEOF
49338
49339cat >>$CONFIG_STATUS <<\_ACEOF
49340## --------------------- ##
49341## M4sh Initialization. ##
49342## --------------------- ##
49343
49344# Be Bourne compatible
49345if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49346 emulate sh
49347 NULLCMD=:
49348 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49349 # is contrary to our usage. Disable this feature.
49350 alias -g '${1+"$@"}'='"$@"'
49351elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49352 set -o posix
49353fi
ac1cb8d3 49354DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49355
49356# Support unset when possible.
ac1cb8d3 49357if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49358 as_unset=unset
49359else
49360 as_unset=false
49361fi
49362
49363
49364# Work around bugs in pre-3.0 UWIN ksh.
49365$as_unset ENV MAIL MAILPATH
49366PS1='$ '
49367PS2='> '
49368PS4='+ '
49369
49370# NLS nuisances.
49371for as_var in \
49372 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49373 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49374 LC_TELEPHONE LC_TIME
49375do
ac1cb8d3 49376 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49377 eval $as_var=C; export $as_var
49378 else
49379 $as_unset $as_var
49380 fi
49381done
49382
49383# Required to use basename.
49384if expr a : '\(a\)' >/dev/null 2>&1; then
49385 as_expr=expr
49386else
49387 as_expr=false
49388fi
49389
49390if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49391 as_basename=basename
49392else
49393 as_basename=false
49394fi
49395
49396
49397# Name of the executable.
49398as_me=`$as_basename "$0" ||
49399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49400 X"$0" : 'X\(//\)$' \| \
49401 X"$0" : 'X\(/\)$' \| \
49402 . : '\(.\)' 2>/dev/null ||
49403echo X/"$0" |
49404 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49405 /^X\/\(\/\/\)$/{ s//\1/; q; }
49406 /^X\/\(\/\).*/{ s//\1/; q; }
49407 s/.*/./; q'`
49408
49409
49410# PATH needs CR, and LINENO needs CR and PATH.
49411# Avoid depending upon Character Ranges.
49412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49415as_cr_digits='0123456789'
49416as_cr_alnum=$as_cr_Letters$as_cr_digits
49417
49418# The user is always right.
49419if test "${PATH_SEPARATOR+set}" != set; then
49420 echo "#! /bin/sh" >conf$$.sh
49421 echo "exit 0" >>conf$$.sh
49422 chmod +x conf$$.sh
49423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49424 PATH_SEPARATOR=';'
49425 else
49426 PATH_SEPARATOR=:
49427 fi
49428 rm -f conf$$.sh
49429fi
49430
49431
49432 as_lineno_1=$LINENO
49433 as_lineno_2=$LINENO
49434 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49435 test "x$as_lineno_1" != "x$as_lineno_2" &&
49436 test "x$as_lineno_3" = "x$as_lineno_2" || {
49437 # Find who we are. Look in the path if we contain no path at all
49438 # relative or not.
49439 case $0 in
49440 *[\\/]* ) as_myself=$0 ;;
49441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49442for as_dir in $PATH
49443do
49444 IFS=$as_save_IFS
49445 test -z "$as_dir" && as_dir=.
49446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49447done
49448
49449 ;;
49450 esac
49451 # We did not find ourselves, most probably we were run as `sh COMMAND'
49452 # in which case we are not to be found in the path.
49453 if test "x$as_myself" = x; then
49454 as_myself=$0
49455 fi
49456 if test ! -f "$as_myself"; then
49457 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49458echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49459 { (exit 1); exit 1; }; }
49460 fi
49461 case $CONFIG_SHELL in
49462 '')
49463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49464for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49465do
49466 IFS=$as_save_IFS
49467 test -z "$as_dir" && as_dir=.
49468 for as_base in sh bash ksh sh5; do
49469 case $as_dir in
49470 /*)
49471 if ("$as_dir/$as_base" -c '
49472 as_lineno_1=$LINENO
49473 as_lineno_2=$LINENO
49474 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49475 test "x$as_lineno_1" != "x$as_lineno_2" &&
49476 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49477 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49478 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49479 CONFIG_SHELL=$as_dir/$as_base
49480 export CONFIG_SHELL
49481 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49482 fi;;
49483 esac
49484 done
49485done
49486;;
49487 esac
49488
49489 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49490 # uniformly replaced by the line number. The first 'sed' inserts a
49491 # line-number line before each line; the second 'sed' does the real
49492 # work. The second script uses 'N' to pair each line-number line
49493 # with the numbered line, and appends trailing '-' during
49494 # substitution so that $LINENO is not a special case at line end.
49495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49496 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49497 sed '=' <$as_myself |
49498 sed '
49499 N
49500 s,$,-,
49501 : loop
49502 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49503 t loop
49504 s,-$,,
49505 s,^['$as_cr_digits']*\n,,
49506 ' >$as_me.lineno &&
49507 chmod +x $as_me.lineno ||
49508 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49509echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49510 { (exit 1); exit 1; }; }
49511
49512 # Don't try to exec as it changes $[0], causing all sort of problems
49513 # (the dirname of $[0] is not the place where we might find the
49514 # original and so on. Autoconf is especially sensible to this).
49515 . ./$as_me.lineno
49516 # Exit status is that of the last command.
49517 exit
49518}
49519
49520
49521case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49522 *c*,-n*) ECHO_N= ECHO_C='
49523' ECHO_T=' ' ;;
49524 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49525 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49526esac
49527
49528if expr a : '\(a\)' >/dev/null 2>&1; then
49529 as_expr=expr
49530else
49531 as_expr=false
49532fi
49533
49534rm -f conf$$ conf$$.exe conf$$.file
49535echo >conf$$.file
49536if ln -s conf$$.file conf$$ 2>/dev/null; then
49537 # We could just check for DJGPP; but this test a) works b) is more generic
49538 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49539 if test -f conf$$.exe; then
49540 # Don't use ln at all; we don't have any links
49541 as_ln_s='cp -p'
49542 else
49543 as_ln_s='ln -s'
49544 fi
49545elif ln conf$$.file conf$$ 2>/dev/null; then
49546 as_ln_s=ln
49547else
49548 as_ln_s='cp -p'
49549fi
49550rm -f conf$$ conf$$.exe conf$$.file
49551
49552if mkdir -p . 2>/dev/null; then
49553 as_mkdir_p=:
49554else
ac1cb8d3 49555 test -d ./-p && rmdir ./-p
a848cd7e
SC
49556 as_mkdir_p=false
49557fi
49558
49559as_executable_p="test -f"
49560
49561# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 49562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49563
49564# Sed expression to map a string onto a valid variable name.
ac1cb8d3 49565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49566
49567
49568# IFS
49569# We need space, tab and new line, in precisely that order.
49570as_nl='
49571'
49572IFS=" $as_nl"
49573
49574# CDPATH.
49575$as_unset CDPATH
49576
49577exec 6>&1
49578
49579# Open the log real soon, to keep \$[0] and so on meaningful, and to
49580# report actual input values of CONFIG_FILES etc. instead of their
49581# values after options handling. Logging --version etc. is OK.
49582exec 5>>config.log
49583{
49584 echo
49585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49586## Running $as_me. ##
49587_ASBOX
49588} >&5
49589cat >&5 <<_CSEOF
49590
dd8df4fc 49591This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49592generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49593
49594 CONFIG_FILES = $CONFIG_FILES
49595 CONFIG_HEADERS = $CONFIG_HEADERS
49596 CONFIG_LINKS = $CONFIG_LINKS
49597 CONFIG_COMMANDS = $CONFIG_COMMANDS
49598 $ $0 $@
49599
49600_CSEOF
49601echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49602echo >&5
49603_ACEOF
49604
49605# Files that config.status was made for.
49606if test -n "$ac_config_files"; then
49607 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49608fi
49609
49610if test -n "$ac_config_headers"; then
49611 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49612fi
49613
49614if test -n "$ac_config_links"; then
49615 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49616fi
49617
49618if test -n "$ac_config_commands"; then
49619 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49620fi
49621
49622cat >>$CONFIG_STATUS <<\_ACEOF
49623
49624ac_cs_usage="\
49625\`$as_me' instantiates files from templates according to the
49626current configuration.
49627
49628Usage: $0 [OPTIONS] [FILE]...
49629
49630 -h, --help print this help, then exit
49631 -V, --version print version number, then exit
49632 -q, --quiet do not print progress messages
49633 -d, --debug don't remove temporary files
49634 --recheck update $as_me by reconfiguring in the same conditions
49635 --file=FILE[:TEMPLATE]
ac1cb8d3 49636 instantiate the configuration file FILE
a848cd7e 49637 --header=FILE[:TEMPLATE]
ac1cb8d3 49638 instantiate the configuration header FILE
a848cd7e
SC
49639
49640Configuration files:
49641$config_files
49642
49643Configuration headers:
49644$config_headers
49645
49646Configuration commands:
49647$config_commands
49648
49649Report bugs to <bug-autoconf@gnu.org>."
49650_ACEOF
49651
49652cat >>$CONFIG_STATUS <<_ACEOF
49653ac_cs_version="\\
dd8df4fc 49654wxWidgets config.status 2.7.0
ac1cb8d3 49655configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49656 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49657
ac1cb8d3 49658Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49659This config.status script is free software; the Free Software Foundation
49660gives unlimited permission to copy, distribute and modify it."
49661srcdir=$srcdir
49662INSTALL="$INSTALL"
49663_ACEOF
49664
49665cat >>$CONFIG_STATUS <<\_ACEOF
49666# If no file are specified by the user, then we need to provide default
49667# value. By we need to know if files were specified by the user.
49668ac_need_defaults=:
49669while test $# != 0
49670do
49671 case $1 in
49672 --*=*)
49673 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49674 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49675 ac_shift=:
49676 ;;
49677 -*)
49678 ac_option=$1
49679 ac_optarg=$2
49680 ac_shift=shift
49681 ;;
49682 *) # This is not an option, so the user has probably given explicit
49683 # arguments.
49684 ac_option=$1
49685 ac_need_defaults=false;;
49686 esac
49687
49688 case $ac_option in
49689 # Handling of the options.
49690_ACEOF
49691cat >>$CONFIG_STATUS <<\_ACEOF
49692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49693 ac_cs_recheck=: ;;
49694 --version | --vers* | -V )
49695 echo "$ac_cs_version"; exit 0 ;;
49696 --he | --h)
49697 # Conflict between --help and --header
49698 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49699Try \`$0 --help' for more information." >&5
49700echo "$as_me: error: ambiguous option: $1
49701Try \`$0 --help' for more information." >&2;}
49702 { (exit 1); exit 1; }; };;
49703 --help | --hel | -h )
49704 echo "$ac_cs_usage"; exit 0 ;;
49705 --debug | --d* | -d )
49706 debug=: ;;
49707 --file | --fil | --fi | --f )
49708 $ac_shift
49709 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49710 ac_need_defaults=false;;
49711 --header | --heade | --head | --hea )
49712 $ac_shift
49713 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49714 ac_need_defaults=false;;
49715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49716 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49717 ac_cs_silent=: ;;
49718
49719 # This is an error.
49720 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49721Try \`$0 --help' for more information." >&5
49722echo "$as_me: error: unrecognized option: $1
49723Try \`$0 --help' for more information." >&2;}
49724 { (exit 1); exit 1; }; } ;;
49725
49726 *) ac_config_targets="$ac_config_targets $1" ;;
49727
49728 esac
49729 shift
49730done
49731
49732ac_configure_extra_args=
49733
49734if $ac_cs_silent; then
49735 exec 6>/dev/null
49736 ac_configure_extra_args="$ac_configure_extra_args --silent"
49737fi
49738
49739_ACEOF
49740cat >>$CONFIG_STATUS <<_ACEOF
49741if \$ac_cs_recheck; then
49742 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49743 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49744fi
49745
49746_ACEOF
49747
49748cat >>$CONFIG_STATUS <<_ACEOF
49749#
49750# INIT-COMMANDS section.
49751#
49752
5c60e845
MW
49753
49754 CPP="$CPP"
49755 infile="$srcdir/include/wx/msw/genrcdefs.h"
49756 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49757
49758
ceec2216
RL
49759 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49760 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49761 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49762 LN_S="${LN_S}"
a848cd7e
SC
49763
49764
49765_ACEOF
49766
49767
49768
49769cat >>$CONFIG_STATUS <<\_ACEOF
49770for ac_config_target in $ac_config_targets
49771do
49772 case "$ac_config_target" in
49773 # Handling of arguments.
ceec2216
RL
49774 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49775 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49776 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49777 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49778 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49779 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49780 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49781 "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
49782 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49783echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49784 { (exit 1); exit 1; }; };;
49785 esac
49786done
49787
49788# If the user did not use the arguments to specify the items to instantiate,
49789# then the envvar interface is used. Set only those that are not.
49790# We use the long form for the default assignment because of an extremely
49791# bizarre bug on SunOS 4.1.3.
49792if $ac_need_defaults; then
49793 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49794 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49795 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49796fi
49797
49798# Have a temporary directory for convenience. Make it in the build tree
49799# simply because there is no reason to put it here, and in addition,
49800# creating and moving files from /tmp can sometimes cause problems.
49801# Create a temporary directory, and hook for its removal unless debugging.
49802$debug ||
49803{
49804 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49805 trap '{ (exit 1); exit 1; }' 1 2 13 15
49806}
49807
49808# Create a (secure) tmp directory for tmp files.
49809
49810{
49811 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49812 test -n "$tmp" && test -d "$tmp"
49813} ||
49814{
49815 tmp=./confstat$$-$RANDOM
49816 (umask 077 && mkdir $tmp)
49817} ||
49818{
49819 echo "$me: cannot create a temporary directory in ." >&2
49820 { (exit 1); exit 1; }
49821}
49822
49823_ACEOF
49824
49825cat >>$CONFIG_STATUS <<_ACEOF
49826
49827#
49828# CONFIG_FILES section.
49829#
49830
49831# No need to generate the scripts if there are no CONFIG_FILES.
49832# This happens for instance when ./config.status config.h
49833if test -n "\$CONFIG_FILES"; then
49834 # Protect against being on the right side of a sed subst in config.status.
49835 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49836 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49837s,@SHELL@,$SHELL,;t t
49838s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49839s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49840s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49841s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49842s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49843s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49844s,@exec_prefix@,$exec_prefix,;t t
49845s,@prefix@,$prefix,;t t
49846s,@program_transform_name@,$program_transform_name,;t t
49847s,@bindir@,$bindir,;t t
49848s,@sbindir@,$sbindir,;t t
49849s,@libexecdir@,$libexecdir,;t t
49850s,@datadir@,$datadir,;t t
49851s,@sysconfdir@,$sysconfdir,;t t
49852s,@sharedstatedir@,$sharedstatedir,;t t
49853s,@localstatedir@,$localstatedir,;t t
49854s,@libdir@,$libdir,;t t
49855s,@includedir@,$includedir,;t t
49856s,@oldincludedir@,$oldincludedir,;t t
49857s,@infodir@,$infodir,;t t
49858s,@mandir@,$mandir,;t t
49859s,@build_alias@,$build_alias,;t t
49860s,@host_alias@,$host_alias,;t t
49861s,@target_alias@,$target_alias,;t t
49862s,@DEFS@,$DEFS,;t t
49863s,@ECHO_C@,$ECHO_C,;t t
49864s,@ECHO_N@,$ECHO_N,;t t
49865s,@ECHO_T@,$ECHO_T,;t t
49866s,@LIBS@,$LIBS,;t t
49867s,@build@,$build,;t t
49868s,@build_cpu@,$build_cpu,;t t
49869s,@build_vendor@,$build_vendor,;t t
49870s,@build_os@,$build_os,;t t
49871s,@host@,$host,;t t
49872s,@host_cpu@,$host_cpu,;t t
49873s,@host_vendor@,$host_vendor,;t t
49874s,@host_os@,$host_os,;t t
49875s,@target@,$target,;t t
49876s,@target_cpu@,$target_cpu,;t t
49877s,@target_vendor@,$target_vendor,;t t
49878s,@target_os@,$target_os,;t t
49879s,@CC@,$CC,;t t
49880s,@CFLAGS@,$CFLAGS,;t t
49881s,@LDFLAGS@,$LDFLAGS,;t t
49882s,@CPPFLAGS@,$CPPFLAGS,;t t
49883s,@ac_ct_CC@,$ac_ct_CC,;t t
49884s,@EXEEXT@,$EXEEXT,;t t
49885s,@OBJEXT@,$OBJEXT,;t t
49886s,@CPP@,$CPP,;t t
49887s,@EGREP@,$EGREP,;t t
49888s,@CXX@,$CXX,;t t
49889s,@CXXFLAGS@,$CXXFLAGS,;t t
49890s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49891s,@RANLIB@,$RANLIB,;t t
49892s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49893s,@AR@,$AR,;t t
8c80d384 49894s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49895s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49896s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49897s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49898s,@STRIP@,$STRIP,;t t
8c80d384 49899s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49900s,@WINDRES@,$WINDRES,;t t
49901s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49902s,@DLLTOOL@,$DLLTOOL,;t t
49903s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49904s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49905s,@LN_S@,$LN_S,;t t
49906s,@CXXCPP@,$CXXCPP,;t t
49907s,@subdirs@,$subdirs,;t t
49908s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49909s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49910s,@GTK_LIBS@,$GTK_LIBS,;t t
49911s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
49912s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
49913s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
49914s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
49915s,@X_CFLAGS@,$X_CFLAGS,;t t
49916s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49917s,@X_LIBS@,$X_LIBS,;t t
49918s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49919s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49920s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49921s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49922s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49923s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49924s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49925s,@REZ@,$REZ,;t t
a848cd7e
SC
49926s,@DEREZ@,$DEREZ,;t t
49927s,@SETFILE@,$SETFILE,;t t
49928s,@LIBICONV@,$LIBICONV,;t t
49929s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49930s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49931s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49932s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49933s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49934s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49935s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49936s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49937s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49938s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49939s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49940s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49941s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49942s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49943s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49944s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49945s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49946s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49947s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49948s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49949s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49950s,@VENDOR@,$VENDOR,;t t
49951s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49952s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49953s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49954s,@WXUNIV@,$WXUNIV,;t t
49955s,@MONOLITHIC@,$MONOLITHIC,;t t
49956s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49957s,@EXTRALIBS@,$EXTRALIBS,;t t
49958s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49959s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49960s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49961s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49962s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49963s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49964s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49965s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49966s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49967s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49968s,@UNICODE@,$UNICODE,;t t
49969s,@BUILD@,$BUILD,;t t
49970s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49971s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49972s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49973s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49974s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49975s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49976s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49977s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49978s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49979s,@SET_MAKE@,$SET_MAKE,;t t
49980s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49981s,@NM@,$NM,;t t
49982s,@ac_ct_NM@,$ac_ct_NM,;t t
49983s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49984s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49985s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49986s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49987s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49988s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49989s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49990s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49991s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49992s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49993s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49994s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49995s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49996s,@LIBPREFIX@,$LIBPREFIX,;t t
49997s,@LIBEXT@,$LIBEXT,;t t
49998s,@DLLPREFIX@,$DLLPREFIX,;t t
49999s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 50000s,@dlldir@,$dlldir,;t t
a848cd7e
SC
50001s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50002s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50003s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50004s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50005s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50006s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 50007s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
50008s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50009s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50010s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 50011s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
50012s,@USE_MACVERSION@,$USE_MACVERSION,;t t
50013s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
50014s,@SONAME_FLAG@,$SONAME_FLAG,;t t
50015s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
50016s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 50017s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
50018s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
50019s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
50020s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
50021s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
50022s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
50023s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
50024s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
50025s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
50026s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
50027s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
50028s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
50029s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
50030s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
50031s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
50032s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 50033s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
50034s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
50035s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 50036s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 50037s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 50038s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 50039s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 50040s,@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 50041s,@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 50042s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 50043s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 50044s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 50045s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 50046s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 50047s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 50048s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 50049s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 50050s,@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 50051s,@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 50052s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 50053s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 50054s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 50055s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
50056s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50057s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50058s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50059s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50060s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50061s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 50062s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
50063s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50064s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 50065s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
50066s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50067s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50068s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 50069s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 50070s,@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
50071s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50072s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
50073s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50074s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 50075s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 50076s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 50077s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 50078s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
50079s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50080s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50081s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50082s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50083s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50084s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50085s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50086s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
50087s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50088s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50089s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
50090s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50091s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50092s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50093s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 50094s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
50095s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50096s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50097s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50098s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50099s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50100s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 50101s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 50102s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 50103s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 50104s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 50105s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
50106s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
50107s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 50108s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
50109s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50110s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50111s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50112s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50113s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50114s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 50115s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
50116s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50117s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50118s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50119s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50120s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50121s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50122s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50123s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50124s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50125s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50126s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50127s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
50128s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50129s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50130s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50131s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50132s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50133s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50134s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50135s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50136s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50137s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50138s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50139s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50140s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50141s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50142s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50143s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50144s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50145s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50146s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50147s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50148s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50149s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50150s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50151s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50152s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50153s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50154s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50155s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50156s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50157s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50158s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50159s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50160s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50161s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50162s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50163s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50164s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50165s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50166s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50167s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50168s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50169s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50170s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50171s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50172s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50173s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50174s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50175s,@USE_GUI@,$USE_GUI,;t t
50176s,@AFMINSTALL@,$AFMINSTALL,;t t
50177s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50178s,@TOOLKIT@,$TOOLKIT,;t t
50179s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50180s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50181s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50182s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50183s,@WIDGET_SET@,$WIDGET_SET,;t t
50184s,@WX_RELEASE@,$WX_RELEASE,;t t
50185s,@WX_VERSION@,$WX_VERSION,;t t
50186s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50187s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50188s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50189s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50190s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50191s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50192s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50193s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50194s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50195s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50196s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50197s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50198s,@DISTDIR@,$DISTDIR,;t t
50199s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50200s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50201s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50202s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50203s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50204s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50205s,@RESFLAGS@,$RESFLAGS,;t t
50206s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50207s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50208s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50209s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50210s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50211s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50212s,@GCC@,$GCC,;t t
a848cd7e
SC
50213s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50214s,@LIBOBJS@,$LIBOBJS,;t t
50215s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50216CEOF
50217
50218_ACEOF
50219
50220 cat >>$CONFIG_STATUS <<\_ACEOF
50221 # Split the substitutions into bite-sized pieces for seds with
50222 # small command number limits, like on Digital OSF/1 and HP-UX.
50223 ac_max_sed_lines=48
50224 ac_sed_frag=1 # Number of current file.
50225 ac_beg=1 # First line for current file.
50226 ac_end=$ac_max_sed_lines # Line after last line for current file.
50227 ac_more_lines=:
50228 ac_sed_cmds=
50229 while $ac_more_lines; do
50230 if test $ac_beg -gt 1; then
50231 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50232 else
50233 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50234 fi
50235 if test ! -s $tmp/subs.frag; then
50236 ac_more_lines=false
50237 else
50238 # The purpose of the label and of the branching condition is to
50239 # speed up the sed processing (if there are no `@' at all, there
50240 # is no need to browse any of the substitutions).
50241 # These are the two extra sed commands mentioned above.
50242 (echo ':t
50243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50244 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50245 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50246 else
ac1cb8d3 50247 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50248 fi
50249 ac_sed_frag=`expr $ac_sed_frag + 1`
50250 ac_beg=$ac_end
50251 ac_end=`expr $ac_end + $ac_max_sed_lines`
50252 fi
50253 done
50254 if test -z "$ac_sed_cmds"; then
50255 ac_sed_cmds=cat
50256 fi
50257fi # test -n "$CONFIG_FILES"
50258
50259_ACEOF
50260cat >>$CONFIG_STATUS <<\_ACEOF
50261for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50263 case $ac_file in
50264 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50265 cat >$tmp/stdin
50266 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50268 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50270 * ) ac_file_in=$ac_file.in ;;
50271 esac
50272
50273 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50274 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50275$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50276 X"$ac_file" : 'X\(//\)[^/]' \| \
50277 X"$ac_file" : 'X\(//\)$' \| \
50278 X"$ac_file" : 'X\(/\)' \| \
50279 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50280echo X"$ac_file" |
50281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50282 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50283 /^X\(\/\/\)$/{ s//\1/; q; }
50284 /^X\(\/\).*/{ s//\1/; q; }
50285 s/.*/./; q'`
50286 { if $as_mkdir_p; then
50287 mkdir -p "$ac_dir"
50288 else
50289 as_dir="$ac_dir"
50290 as_dirs=
50291 while test ! -d "$as_dir"; do
50292 as_dirs="$as_dir $as_dirs"
50293 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50295 X"$as_dir" : 'X\(//\)[^/]' \| \
50296 X"$as_dir" : 'X\(//\)$' \| \
50297 X"$as_dir" : 'X\(/\)' \| \
50298 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50299echo X"$as_dir" |
50300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50302 /^X\(\/\/\)$/{ s//\1/; q; }
50303 /^X\(\/\).*/{ s//\1/; q; }
50304 s/.*/./; q'`
50305 done
50306 test ! -n "$as_dirs" || mkdir $as_dirs
50307 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50308echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50309 { (exit 1); exit 1; }; }; }
50310
50311 ac_builddir=.
50312
50313if test "$ac_dir" != .; then
50314 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50315 # A "../" for each directory in $ac_dir_suffix.
50316 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50317else
50318 ac_dir_suffix= ac_top_builddir=
50319fi
50320
50321case $srcdir in
50322 .) # No --srcdir option. We are building in place.
50323 ac_srcdir=.
50324 if test -z "$ac_top_builddir"; then
50325 ac_top_srcdir=.
50326 else
50327 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50328 fi ;;
50329 [\\/]* | ?:[\\/]* ) # Absolute path.
50330 ac_srcdir=$srcdir$ac_dir_suffix;
50331 ac_top_srcdir=$srcdir ;;
50332 *) # Relative path.
50333 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50334 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50335esac
ac1cb8d3
VS
50336
50337# Do not use `cd foo && pwd` to compute absolute paths, because
50338# the directories may not exist.
50339case `pwd` in
50340.) ac_abs_builddir="$ac_dir";;
50341*)
50342 case "$ac_dir" in
50343 .) ac_abs_builddir=`pwd`;;
50344 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50345 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50346 esac;;
50347esac
50348case $ac_abs_builddir in
50349.) ac_abs_top_builddir=${ac_top_builddir}.;;
50350*)
50351 case ${ac_top_builddir}. in
50352 .) ac_abs_top_builddir=$ac_abs_builddir;;
50353 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50354 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50355 esac;;
50356esac
50357case $ac_abs_builddir in
50358.) ac_abs_srcdir=$ac_srcdir;;
50359*)
50360 case $ac_srcdir in
50361 .) ac_abs_srcdir=$ac_abs_builddir;;
50362 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50363 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50364 esac;;
50365esac
50366case $ac_abs_builddir in
50367.) ac_abs_top_srcdir=$ac_top_srcdir;;
50368*)
50369 case $ac_top_srcdir in
50370 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50371 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50372 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50373 esac;;
50374esac
a848cd7e
SC
50375
50376
50377 case $INSTALL in
50378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50379 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50380 esac
50381
a848cd7e
SC
50382 # Let's still pretend it is `configure' which instantiates (i.e., don't
50383 # use $as_me), people would be surprised to read:
50384 # /* config.h. Generated by config.status. */
50385 if test x"$ac_file" = x-; then
50386 configure_input=
50387 else
50388 configure_input="$ac_file. "
50389 fi
50390 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50391 sed 's,.*/,,'` by configure."
a848cd7e
SC
50392
50393 # First look for the input files in the build tree, otherwise in the
50394 # src tree.
50395 ac_file_inputs=`IFS=:
50396 for f in $ac_file_in; do
50397 case $f in
50398 -) echo $tmp/stdin ;;
50399 [\\/$]*)
ac1cb8d3
VS
50400 # Absolute (can't be DOS-style, as IFS=:)
50401 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50402echo "$as_me: error: cannot find input file: $f" >&2;}
50403 { (exit 1); exit 1; }; }
ac1cb8d3 50404 echo "$f";;
a848cd7e 50405 *) # Relative
ac1cb8d3
VS
50406 if test -f "$f"; then
50407 # Build tree
50408 echo "$f"
50409 elif test -f "$srcdir/$f"; then
50410 # Source tree
50411 echo "$srcdir/$f"
50412 else
50413 # /dev/null tree
50414 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50415echo "$as_me: error: cannot find input file: $f" >&2;}
50416 { (exit 1); exit 1; }; }
ac1cb8d3 50417 fi;;
a848cd7e
SC
50418 esac
50419 done` || { (exit 1); exit 1; }
c9a66001
VZ
50420
50421 if test x"$ac_file" != x-; then
50422 { echo "$as_me:$LINENO: creating $ac_file" >&5
50423echo "$as_me: creating $ac_file" >&6;}
50424 rm -f "$ac_file"
50425 fi
a848cd7e
SC
50426_ACEOF
50427cat >>$CONFIG_STATUS <<_ACEOF
50428 sed "$ac_vpsub
50429$extrasub
50430_ACEOF
50431cat >>$CONFIG_STATUS <<\_ACEOF
50432:t
50433/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50434s,@configure_input@,$configure_input,;t t
50435s,@srcdir@,$ac_srcdir,;t t
50436s,@abs_srcdir@,$ac_abs_srcdir,;t t
50437s,@top_srcdir@,$ac_top_srcdir,;t t
50438s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50439s,@builddir@,$ac_builddir,;t t
50440s,@abs_builddir@,$ac_abs_builddir,;t t
50441s,@top_builddir@,$ac_top_builddir,;t t
50442s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50443s,@INSTALL@,$ac_INSTALL,;t t
50444" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50445 rm -f $tmp/stdin
50446 if test x"$ac_file" != x-; then
50447 mv $tmp/out $ac_file
50448 else
50449 cat $tmp/out
50450 rm -f $tmp/out
50451 fi
50452
ceec2216
RL
50453 # Run the commands associated with the file.
50454 case $ac_file in
50455 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
50456 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
50457 esac
a848cd7e
SC
50458done
50459_ACEOF
50460cat >>$CONFIG_STATUS <<\_ACEOF
50461
50462#
50463# CONFIG_HEADER section.
50464#
50465
50466# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50467# NAME is the cpp macro being defined and VALUE is the value it is being given.
50468#
50469# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50470ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50471ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50472ac_dC=' '
50473ac_dD=',;t'
50474# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50475ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50476ac_uB='$,\1#\2define\3'
50477ac_uC=' '
50478ac_uD=',;t'
50479
50480for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50481 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50482 case $ac_file in
50483 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50484 cat >$tmp/stdin
50485 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50486 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50487 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50488 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50489 * ) ac_file_in=$ac_file.in ;;
50490 esac
50491
50492 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50493echo "$as_me: creating $ac_file" >&6;}
50494
50495 # First look for the input files in the build tree, otherwise in the
50496 # src tree.
50497 ac_file_inputs=`IFS=:
50498 for f in $ac_file_in; do
50499 case $f in
50500 -) echo $tmp/stdin ;;
50501 [\\/$]*)
ac1cb8d3
VS
50502 # Absolute (can't be DOS-style, as IFS=:)
50503 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50504echo "$as_me: error: cannot find input file: $f" >&2;}
50505 { (exit 1); exit 1; }; }
ac1cb8d3
VS
50506 # Do quote $f, to prevent DOS paths from being IFS'd.
50507 echo "$f";;
a848cd7e 50508 *) # Relative
ac1cb8d3
VS
50509 if test -f "$f"; then
50510 # Build tree
50511 echo "$f"
50512 elif test -f "$srcdir/$f"; then
50513 # Source tree
50514 echo "$srcdir/$f"
50515 else
50516 # /dev/null tree
50517 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50518echo "$as_me: error: cannot find input file: $f" >&2;}
50519 { (exit 1); exit 1; }; }
ac1cb8d3 50520 fi;;
a848cd7e
SC
50521 esac
50522 done` || { (exit 1); exit 1; }
50523 # Remove the trailing spaces.
ac1cb8d3 50524 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
50525
50526_ACEOF
50527
50528# Transform confdefs.h into two sed scripts, `conftest.defines' and
50529# `conftest.undefs', that substitutes the proper values into
50530# config.h.in to produce config.h. The first handles `#define'
50531# templates, and the second `#undef' templates.
50532# And first: Protect against being on the right side of a sed subst in
50533# config.status. Protect against being in an unquoted here document
50534# in config.status.
50535rm -f conftest.defines conftest.undefs
50536# Using a here document instead of a string reduces the quoting nightmare.
50537# Putting comments in sed scripts is not portable.
50538#
50539# `end' is used to avoid that the second main sed command (meant for
50540# 0-ary CPP macros) applies to n-ary macro definitions.
50541# See the Autoconf documentation for `clear'.
50542cat >confdef2sed.sed <<\_ACEOF
50543s/[\\&,]/\\&/g
50544s,[\\$`],\\&,g
50545t clear
50546: clear
ac1cb8d3 50547s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 50548t end
ac1cb8d3 50549s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
50550: end
50551_ACEOF
50552# If some macros were called several times there might be several times
50553# the same #defines, which is useless. Nevertheless, we may not want to
50554# sort them, since we want the *last* AC-DEFINE to be honored.
50555uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50556sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50557rm -f confdef2sed.sed
50558
50559# This sed command replaces #undef with comments. This is necessary, for
50560# example, in the case of _POSIX_SOURCE, which is predefined and required
50561# on some systems where configure will not decide to define it.
50562cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 50563s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
50564_ACEOF
50565
50566# Break up conftest.defines because some shells have a limit on the size
50567# of here documents, and old seds have small limits too (100 cmds).
50568echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 50569echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
50570echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50571echo ' :' >>$CONFIG_STATUS
50572rm -f conftest.tail
50573while grep . conftest.defines >/dev/null
50574do
50575 # Write a limited-size here document to $tmp/defines.sed.
50576 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50577 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 50578 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
50579 # Work around the forget-to-reset-the-flag bug.
50580 echo 't clr' >>$CONFIG_STATUS
50581 echo ': clr' >>$CONFIG_STATUS
50582 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50583 echo 'CEOF
50584 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50585 rm -f $tmp/in
50586 mv $tmp/out $tmp/in
50587' >>$CONFIG_STATUS
50588 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50589 rm -f conftest.defines
50590 mv conftest.tail conftest.defines
50591done
50592rm -f conftest.defines
50593echo ' fi # grep' >>$CONFIG_STATUS
50594echo >>$CONFIG_STATUS
50595
50596# Break up conftest.undefs because some shells have a limit on the size
50597# of here documents, and old seds have small limits too (100 cmds).
50598echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50599rm -f conftest.tail
50600while grep . conftest.undefs >/dev/null
50601do
50602 # Write a limited-size here document to $tmp/undefs.sed.
50603 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50604 # Speed up: don't consider the non `#undef'
ac1cb8d3 50605 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50606 # Work around the forget-to-reset-the-flag bug.
50607 echo 't clr' >>$CONFIG_STATUS
50608 echo ': clr' >>$CONFIG_STATUS
50609 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50610 echo 'CEOF
50611 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50612 rm -f $tmp/in
50613 mv $tmp/out $tmp/in
50614' >>$CONFIG_STATUS
50615 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50616 rm -f conftest.undefs
50617 mv conftest.tail conftest.undefs
50618done
50619rm -f conftest.undefs
50620
50621cat >>$CONFIG_STATUS <<\_ACEOF
50622 # Let's still pretend it is `configure' which instantiates (i.e., don't
50623 # use $as_me), people would be surprised to read:
50624 # /* config.h. Generated by config.status. */
50625 if test x"$ac_file" = x-; then
50626 echo "/* Generated by configure. */" >$tmp/config.h
50627 else
50628 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50629 fi
50630 cat $tmp/in >>$tmp/config.h
50631 rm -f $tmp/in
50632 if test x"$ac_file" != x-; then
50633 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50634 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50635echo "$as_me: $ac_file is unchanged" >&6;}
50636 else
50637 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50638$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50639 X"$ac_file" : 'X\(//\)[^/]' \| \
50640 X"$ac_file" : 'X\(//\)$' \| \
50641 X"$ac_file" : 'X\(/\)' \| \
50642 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50643echo X"$ac_file" |
50644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50646 /^X\(\/\/\)$/{ s//\1/; q; }
50647 /^X\(\/\).*/{ s//\1/; q; }
50648 s/.*/./; q'`
50649 { if $as_mkdir_p; then
50650 mkdir -p "$ac_dir"
50651 else
50652 as_dir="$ac_dir"
50653 as_dirs=
50654 while test ! -d "$as_dir"; do
50655 as_dirs="$as_dir $as_dirs"
50656 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50658 X"$as_dir" : 'X\(//\)[^/]' \| \
50659 X"$as_dir" : 'X\(//\)$' \| \
50660 X"$as_dir" : 'X\(/\)' \| \
50661 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50662echo X"$as_dir" |
50663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50665 /^X\(\/\/\)$/{ s//\1/; q; }
50666 /^X\(\/\).*/{ s//\1/; q; }
50667 s/.*/./; q'`
50668 done
50669 test ! -n "$as_dirs" || mkdir $as_dirs
50670 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50671echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50672 { (exit 1); exit 1; }; }; }
50673
50674 rm -f $ac_file
50675 mv $tmp/config.h $ac_file
50676 fi
50677 else
50678 cat $tmp/config.h
50679 rm -f $tmp/config.h
50680 fi
50681done
50682_ACEOF
50683cat >>$CONFIG_STATUS <<\_ACEOF
50684
50685#
50686# CONFIG_COMMANDS section.
50687#
50688for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50689 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50690 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50691 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50692$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50693 X"$ac_dest" : 'X\(//\)[^/]' \| \
50694 X"$ac_dest" : 'X\(//\)$' \| \
50695 X"$ac_dest" : 'X\(/\)' \| \
50696 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50697echo X"$ac_dest" |
50698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50700 /^X\(\/\/\)$/{ s//\1/; q; }
50701 /^X\(\/\).*/{ s//\1/; q; }
50702 s/.*/./; q'`
ac1cb8d3
VS
50703 { if $as_mkdir_p; then
50704 mkdir -p "$ac_dir"
50705 else
50706 as_dir="$ac_dir"
50707 as_dirs=
50708 while test ! -d "$as_dir"; do
50709 as_dirs="$as_dir $as_dirs"
50710 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50711$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50712 X"$as_dir" : 'X\(//\)[^/]' \| \
50713 X"$as_dir" : 'X\(//\)$' \| \
50714 X"$as_dir" : 'X\(/\)' \| \
50715 . : '\(.\)' 2>/dev/null ||
50716echo X"$as_dir" |
50717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50719 /^X\(\/\/\)$/{ s//\1/; q; }
50720 /^X\(\/\).*/{ s//\1/; q; }
50721 s/.*/./; q'`
50722 done
50723 test ! -n "$as_dirs" || mkdir $as_dirs
50724 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50725echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50726 { (exit 1); exit 1; }; }; }
50727
a848cd7e
SC
50728 ac_builddir=.
50729
50730if test "$ac_dir" != .; then
50731 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50732 # A "../" for each directory in $ac_dir_suffix.
50733 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50734else
50735 ac_dir_suffix= ac_top_builddir=
50736fi
50737
50738case $srcdir in
50739 .) # No --srcdir option. We are building in place.
50740 ac_srcdir=.
50741 if test -z "$ac_top_builddir"; then
50742 ac_top_srcdir=.
50743 else
50744 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50745 fi ;;
50746 [\\/]* | ?:[\\/]* ) # Absolute path.
50747 ac_srcdir=$srcdir$ac_dir_suffix;
50748 ac_top_srcdir=$srcdir ;;
50749 *) # Relative path.
50750 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50751 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50752esac
ac1cb8d3
VS
50753
50754# Do not use `cd foo && pwd` to compute absolute paths, because
50755# the directories may not exist.
50756case `pwd` in
50757.) ac_abs_builddir="$ac_dir";;
50758*)
50759 case "$ac_dir" in
50760 .) ac_abs_builddir=`pwd`;;
50761 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50762 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50763 esac;;
50764esac
50765case $ac_abs_builddir in
50766.) ac_abs_top_builddir=${ac_top_builddir}.;;
50767*)
50768 case ${ac_top_builddir}. in
50769 .) ac_abs_top_builddir=$ac_abs_builddir;;
50770 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50771 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50772 esac;;
50773esac
50774case $ac_abs_builddir in
50775.) ac_abs_srcdir=$ac_srcdir;;
50776*)
50777 case $ac_srcdir in
50778 .) ac_abs_srcdir=$ac_abs_builddir;;
50779 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50780 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50781 esac;;
50782esac
50783case $ac_abs_builddir in
50784.) ac_abs_top_srcdir=$ac_top_srcdir;;
50785*)
50786 case $ac_top_srcdir in
50787 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50788 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50789 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50790 esac;;
50791esac
a848cd7e
SC
50792
50793
50794 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50795echo "$as_me: executing $ac_dest commands" >&6;}
50796 case $ac_dest in
5c60e845
MW
50797 rcdefs.h )
50798 mkdir -p $outdir &&
50799 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50800 ;;
ceec2216
RL
50801 wx-config ) rm -f wx-config
50802 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50803 ;;
a848cd7e
SC
50804 esac
50805done
50806_ACEOF
50807
50808cat >>$CONFIG_STATUS <<\_ACEOF
50809
50810{ (exit 0); exit 0; }
50811_ACEOF
50812chmod +x $CONFIG_STATUS
50813ac_clean_files=$ac_clean_files_save
50814
50815
50816# configure is writing to config.log, and then calls config.status.
50817# config.status does its own redirection, appending to config.log.
50818# Unfortunately, on DOS this fails, as config.log is still kept open
50819# by configure, so config.status won't be able to write to it; its
50820# output is simply discarded. So we exec the FD to /dev/null,
50821# effectively closing config.log, so it can be properly (re)opened and
50822# appended to by config.status. When coming back to configure, we
50823# need to make the FD available again.
50824if test "$no_create" != yes; then
50825 ac_cs_success=:
50826 ac_config_status_args=
50827 test "$silent" = yes &&
50828 ac_config_status_args="$ac_config_status_args --quiet"
50829 exec 5>/dev/null
50830 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50831 exec 5>>config.log
50832 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50833 # would make configure fail if this is the last instruction.
50834 $ac_cs_success || { (exit 1); exit 1; }
50835fi
50836
50837#
50838# CONFIG_SUBDIRS section.
50839#
50840if test "$no_recursion" != yes; then
50841
50842 # Remove --cache-file and --srcdir arguments so they do not pile up.
50843 ac_sub_configure_args=
50844 ac_prev=
50845 for ac_arg in $ac_configure_args; do
50846 if test -n "$ac_prev"; then
50847 ac_prev=
50848 continue
50849 fi
50850 case $ac_arg in
50851 -cache-file | --cache-file | --cache-fil | --cache-fi \
50852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50853 ac_prev=cache_file ;;
50854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50856 | --c=*)
50857 ;;
50858 --config-cache | -C)
50859 ;;
50860 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50861 ac_prev=srcdir ;;
50862 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50863 ;;
50864 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50865 ac_prev=prefix ;;
50866 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50867 ;;
50868 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50869 esac
50870 done
50871
50872 # Always prepend --prefix to ensure using the same prefix
50873 # in subdir configurations.
50874 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50875
50876 ac_popdir=`pwd`
50877 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50878
50879 # Do not complain, so a configure script can configure whichever
50880 # parts of a large source tree are present.
50881 test -d $srcdir/$ac_dir || continue
50882
50883 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50884echo "$as_me: configuring in $ac_dir" >&6;}
50885 { if $as_mkdir_p; then
50886 mkdir -p "$ac_dir"
50887 else
50888 as_dir="$ac_dir"
50889 as_dirs=
50890 while test ! -d "$as_dir"; do
50891 as_dirs="$as_dir $as_dirs"
50892 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50893$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50894 X"$as_dir" : 'X\(//\)[^/]' \| \
50895 X"$as_dir" : 'X\(//\)$' \| \
50896 X"$as_dir" : 'X\(/\)' \| \
50897 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50898echo X"$as_dir" |
50899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50901 /^X\(\/\/\)$/{ s//\1/; q; }
50902 /^X\(\/\).*/{ s//\1/; q; }
50903 s/.*/./; q'`
50904 done
50905 test ! -n "$as_dirs" || mkdir $as_dirs
50906 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50907echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50908 { (exit 1); exit 1; }; }; }
50909
50910 ac_builddir=.
50911
50912if test "$ac_dir" != .; then
50913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50914 # A "../" for each directory in $ac_dir_suffix.
50915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50916else
50917 ac_dir_suffix= ac_top_builddir=
50918fi
50919
50920case $srcdir in
50921 .) # No --srcdir option. We are building in place.
50922 ac_srcdir=.
50923 if test -z "$ac_top_builddir"; then
50924 ac_top_srcdir=.
50925 else
50926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50927 fi ;;
50928 [\\/]* | ?:[\\/]* ) # Absolute path.
50929 ac_srcdir=$srcdir$ac_dir_suffix;
50930 ac_top_srcdir=$srcdir ;;
50931 *) # Relative path.
50932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50934esac
ac1cb8d3
VS
50935
50936# Do not use `cd foo && pwd` to compute absolute paths, because
50937# the directories may not exist.
50938case `pwd` in
50939.) ac_abs_builddir="$ac_dir";;
50940*)
50941 case "$ac_dir" in
50942 .) ac_abs_builddir=`pwd`;;
50943 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50944 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50945 esac;;
50946esac
50947case $ac_abs_builddir in
50948.) ac_abs_top_builddir=${ac_top_builddir}.;;
50949*)
50950 case ${ac_top_builddir}. in
50951 .) ac_abs_top_builddir=$ac_abs_builddir;;
50952 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50953 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50954 esac;;
50955esac
50956case $ac_abs_builddir in
50957.) ac_abs_srcdir=$ac_srcdir;;
50958*)
50959 case $ac_srcdir in
50960 .) ac_abs_srcdir=$ac_abs_builddir;;
50961 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50962 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50963 esac;;
50964esac
50965case $ac_abs_builddir in
50966.) ac_abs_top_srcdir=$ac_top_srcdir;;
50967*)
50968 case $ac_top_srcdir in
50969 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50970 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50971 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50972 esac;;
50973esac
a848cd7e
SC
50974
50975
50976 cd $ac_dir
50977
50978 # Check for guested configure; otherwise get Cygnus style configure.
50979 if test -f $ac_srcdir/configure.gnu; then
50980 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50981 elif test -f $ac_srcdir/configure; then
50982 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50983 elif test -f $ac_srcdir/configure.in; then
50984 ac_sub_configure=$ac_configure
50985 else
50986 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50987echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50988 ac_sub_configure=
50989 fi
50990
50991 # The recursion is here.
50992 if test -n "$ac_sub_configure"; then
50993 # Make the cache file name correct relative to the subdirectory.
50994 case $cache_file in
50995 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50996 *) # Relative path.
ac1cb8d3 50997 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50998 esac
50999
51000 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51001echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51002 # The eval makes quoting arguments work.
51003 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
51004 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51005 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
51006echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51007 { (exit 1); exit 1; }; }
51008 fi
51009
c9a66001 51010 cd "$ac_popdir"
a848cd7e
SC
51011 done
51012fi
51013
51014
51015echo
77ffb593 51016echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 51017echo ""
c2e9ada4 51018echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 51019echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 51020
77ffb593
JS
51021echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
51022echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
51023echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 51024
77ffb593 51025echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
51026echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
51027echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 51028
77ffb593 51029echo " Which libraries should wxWidgets use?"
a848cd7e
SC
51030echo " jpeg ${wxUSE_LIBJPEG-none}"
51031echo " png ${wxUSE_LIBPNG-none}"
51032echo " regex ${wxUSE_REGEX}"
51033echo " tiff ${wxUSE_LIBTIFF-none}"
51034if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51035echo " xpm ${wxUSE_LIBXPM-none}"
51036fi
51037echo " zlib ${wxUSE_ZLIB}"
51038echo " odbc ${wxUSE_ODBC}"
51039echo " expat ${wxUSE_EXPAT}"
51040echo " libmspack ${wxUSE_LIBMSPACK}"
51041echo " sdl ${wxUSE_LIBSDL}"
51042
51043echo ""
51044