]> git.saurik.com Git - wxWidgets.git/blame - configure
Bump subrelease number
[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.
4fd169bd 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.8.1.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
f321ab7f 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+"$@"}'='"$@"'
f321ab7f
VS
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
a848cd7e 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.
f321ab7f 36$as_unset ENV MAIL MAILPATH
a848cd7e
SC
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
f321ab7f 50 $as_unset $as_var
a848cd7e
SC
51 fi
52done
53
54# Required to use basename.
f321ab7f 55if expr a : '\(a\)' >/dev/null 2>&1; then
a848cd7e
SC
56 as_expr=expr
57else
58 as_expr=false
59fi
60
f321ab7f 61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
a848cd7e
SC
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
f321ab7f 69as_me=`$as_basename "$0" ||
a848cd7e
SC
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
f321ab7f
VS
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
a848cd7e 74echo X/"$0" |
f321ab7f
VS
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
a848cd7e 79
3f7f284d 80
f321ab7f
VS
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
3f7f284d 88
f321ab7f
VS
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
3f7f284d
RD
100fi
101
3f7f284d 102
f321ab7f
VS
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
3f7f284d 119
f321ab7f
VS
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 '')
a848cd7e 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f321ab7f 134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
a848cd7e
SC
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
f321ab7f
VS
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
a848cd7e 140 /*)
f321ab7f 141 if ("$as_dir/$as_base" -c '
3f7f284d
RD
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
f321ab7f 144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3f7f284d 145 test "x$as_lineno_1" != "x$as_lineno_2" &&
f321ab7f
VS
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
a848cd7e
SC
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
f321ab7f
VS
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.
a848cd7e 165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
f321ab7f
VS
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
a848cd7e
SC
168 sed '
169 N
f321ab7f
VS
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
a848cd7e 173 t loop
f321ab7f
VS
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
a848cd7e 176 ' >$as_me.lineno &&
f321ab7f 177 chmod +x $as_me.lineno ||
a848cd7e
SC
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
f321ab7f
VS
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
a848cd7e
SC
185 # Exit status is that of the last command.
186 exit
187}
188
189
f321ab7f
VS
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= ;;
a848cd7e
SC
195esac
196
f321ab7f 197if expr a : '\(a\)' >/dev/null 2>&1; then
a848cd7e
SC
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
f321ab7f
VS
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
a848cd7e 210 as_ln_s='cp -p'
f321ab7f
VS
211 else
212 as_ln_s='ln -s'
213 fi
a848cd7e
SC
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
f321ab7f 219rm -f conf$$ conf$$.exe conf$$.file
a848cd7e
SC
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
f321ab7f 228as_executable_p="test -f"
a848cd7e
SC
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
f321ab7f
VS
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
a848cd7e
SC
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
f321ab7f
VS
252exec 6>&1
253
a848cd7e
SC
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
f321ab7f
VS
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
a848cd7e 270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
4fd169bd
VZ
273PACKAGE_VERSION='2.8.1'
274PACKAGE_STRING='wxWidgets 2.8.1'
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>
f321ab7f
VS
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
a848cd7e
SC
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
f321ab7f
VS
315ac_subdirs_all="$ac_subdirs_all src/expat"
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 wx_top_builddir 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 CAIRO_CFLAGS CAIRO_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 AROPTIONS 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 BK_DEPS GCC_PCH ICC_PCH BK_MAKE_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_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_TOOLKIT_MGL COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_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'
f321ab7f 347datadir='${prefix}/share'
a848cd7e
SC
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
f321ab7f 351libdir='${exec_prefix}/lib'
a848cd7e
SC
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
f321ab7f
VS
354infodir='${prefix}/info'
355mandir='${prefix}/man'
a848cd7e
SC
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
f321ab7f 362 eval "$ac_prev=\$ac_option"
a848cd7e
SC
363 ac_prev=
364 continue
365 fi
366
f321ab7f 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a848cd7e
SC
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
f321ab7f 371 case $ac_option in
a848cd7e
SC
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
f321ab7f 393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
a848cd7e 394 ac_prev=datadir ;;
f321ab7f
VS
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
a848cd7e
SC
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'`
f321ab7f 406 eval "enable_$ac_feature=no" ;;
a848cd7e
SC
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'`
f321ab7f
VS
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'" ;;
a848cd7e
SC
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 \
f321ab7f
VS
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
a848cd7e
SC
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
f321ab7f
VS
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a848cd7e
SC
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'`
f321ab7f
VS
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'" ;;
a848cd7e
SC
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'`
f321ab7f 610 eval "with_$ac_package=no" ;;
a848cd7e
SC
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; }; }
f321ab7f
VS
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
a848cd7e
SC
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
f321ab7f
VS
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
a848cd7e 664do
f321ab7f 665 eval ac_val=$`echo $ac_var`
a848cd7e 666 case $ac_val in
f321ab7f
VS
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 \
675 localstatedir libdir includedir oldincludedir infodir mandir
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; }; };;
a848cd7e
SC
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
f321ab7f
VS
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
a848cd7e 714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
f321ab7f
VS
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e 719echo X"$0" |
f321ab7f
VS
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
a848cd7e 725 srcdir=$ac_confdir
f321ab7f 726 if test ! -r $srcdir/$ac_unique_file; then
a848cd7e
SC
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
f321ab7f
VS
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
a848cd7e 738 { (exit 1); exit 1; }; }
f321ab7f 739 fi
a848cd7e 740fi
f321ab7f
VS
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
a848cd7e 743 { (exit 1); exit 1; }; }
f321ab7f
VS
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
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
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
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_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
850ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
851ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
852ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
853ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
854ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
855ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
856ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
857ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
858ac_env_GST_CFLAGS_value=$GST_CFLAGS
859ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
860ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
861ac_env_GST_LIBS_set=${GST_LIBS+set}
862ac_env_GST_LIBS_value=$GST_LIBS
863ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
864ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
865
866#
867# Report the --help message.
868#
869if test "$ac_init_help" = "long"; then
870 # Omit some internal or obsolete options to make the list less imposing.
871 # This message is too long to be a string in the A/UX 3.1 sh.
872 cat <<_ACEOF
4fd169bd 873\`configure' configures wxWidgets 2.8.1 to adapt to many kinds of systems.
a848cd7e
SC
874
875Usage: $0 [OPTION]... [VAR=VALUE]...
876
877To assign environment variables (e.g., CC, CFLAGS...), specify them as
878VAR=VALUE. See below for descriptions of some of the useful variables.
879
880Defaults for the options are specified in brackets.
881
882Configuration:
883 -h, --help display this help and exit
884 --help=short display options specific to this package
885 --help=recursive display the short help of all the included packages
886 -V, --version display version information and exit
887 -q, --quiet, --silent do not print \`checking...' messages
888 --cache-file=FILE cache test results in FILE [disabled]
889 -C, --config-cache alias for \`--cache-file=config.cache'
890 -n, --no-create do not create output files
891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
892
f321ab7f
VS
893_ACEOF
894
895 cat <<_ACEOF
a848cd7e
SC
896Installation directories:
897 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 898 [$ac_default_prefix]
a848cd7e 899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 900 [PREFIX]
a848cd7e
SC
901
902By default, \`make install' will install all the files in
903\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
904an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905for instance \`--prefix=\$HOME'.
906
907For better control, use the options below.
908
909Fine tuning of the installation directories:
910 --bindir=DIR user executables [EPREFIX/bin]
911 --sbindir=DIR system admin executables [EPREFIX/sbin]
912 --libexecdir=DIR program executables [EPREFIX/libexec]
f321ab7f 913 --datadir=DIR read-only architecture-independent data [PREFIX/share]
a848cd7e
SC
914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
917 --libdir=DIR object code libraries [EPREFIX/lib]
918 --includedir=DIR C header files [PREFIX/include]
919 --oldincludedir=DIR C header files for non-gcc [/usr/include]
f321ab7f
VS
920 --infodir=DIR info documentation [PREFIX/info]
921 --mandir=DIR man documentation [PREFIX/man]
a848cd7e
SC
922_ACEOF
923
924 cat <<\_ACEOF
925
926X features:
927 --x-includes=DIR X include files are in DIR
928 --x-libraries=DIR X library files are in DIR
929
930System types:
931 --build=BUILD configure for building on BUILD [guessed]
932 --host=HOST cross-compile to build programs to run on HOST [BUILD]
933 --target=TARGET configure for building compilers for TARGET [HOST]
934_ACEOF
935fi
936
937if test -n "$ac_init_help"; then
938 case $ac_init_help in
4fd169bd 939 short | recursive ) echo "Configuration of wxWidgets 2.8.1:";;
a848cd7e
SC
940 esac
941 cat <<\_ACEOF
942
943Optional Features:
944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
946 --enable-gui use GUI classes
77ffb593
JS
947 --enable-monolithic build wxWidgets as single library
948 --enable-plugins build parts of wxWidgets as loadable components
949 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 950 --enable-nanox use NanoX
f34ca037 951 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
952 --enable-gpe use GNOME PDA Environment features if possible
953 --enable-shared create shared library code
954 --enable-optimise create optimised code
955 --enable-debug same as debug_flag and debug_info
956 --enable-stl use STL for containers
957 --enable-omf use OMF object format
958 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
959 --enable-debug_info create code with debugging information
960 --enable-debug_gdb create code with extra GDB debugging information
961 --enable-debug_cntxt use wxDebugContext
962 --enable-mem_tracing create code with memory tracing
963 --enable-profile create code with profiling information
964 --enable-no_rtti create code without RTTI information
965 --enable-no_exceptions create code without C++ exceptions handling
966 --enable-permissive compile code disregarding strict ANSI
967 --enable-no_deps create code without dependency information
70c536f3 968 --disable-vararg_macros don't use vararg macros, even if they are supported
95768535 969 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
970 --enable-compat24 enable wxWidgets 2.4 compatibility
971 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 972 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
973 --enable-intl use internationalization system
974 --enable-config use wxConfig (and derived) classes
975 --enable-protocols use wxProtocol and derived classes
976 --enable-ftp use wxFTP (requires wxProtocol
977 --enable-http use wxHTTP (requires wxProtocol
978 --enable-fileproto use wxFileProto class (requires wxProtocol
979 --enable-sockets use socket/network classes
980 --enable-ole use OLE classes (Win32 only)
981 --enable-dataobj use data object classes
982 --enable-ipc use interprocess communication (wxSocket etc.)
983 --enable-apple_ieee use the Apple IEEE codec
81f90336 984 --enable-arcstream use wxArchive streams
eaff0f0d 985 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 986 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
987 --enable-cmdline use wxCmdLineParser class
988 --enable-datetime use wxDateTime class
36b6448c 989 --enable-debugreport use wxDebugReport class
a848cd7e
SC
990 --enable-dialupman use dialup network classes
991 --enable-dynlib use wxLibrary class for DLL loading
992 --enable-dynamicloader use (new) wxDynamicLibrary class
993 --enable-exceptions build exception-safe library
994 --enable-ffile use wxFFile class
995 --enable-file use wxFile class
996 --enable-filesystem use virtual file systems classes
997 --enable-fontmap use font encodings conversion classes
26e422a9 998 --enable-fs_archive use virtual archive filesystems
a848cd7e 999 --enable-fs_inet use virtual HTTP/FTP filesystems
916af76f 1000 --enable-fs_zip now replaced by fs_archive
a848cd7e
SC
1001 --enable-geometry use geometry class
1002 --enable-log use logging system
1003 --enable-longlong use wxLongLong class
1004 --enable-mimetype use wxMimeTypesManager
1005 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1006 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 1007 --enable-std_iostreams use standard C++ stream classes
59746b65 1008 --enable-std_string use standard C++ string classes
07158944 1009 --enable-stdpaths use wxStandardPaths class
a848cd7e 1010 --enable-stopwatch use wxStopWatch class
07158944 1011 --enable-streams use wxStream etc classes
a848cd7e 1012 --enable-sysoptions use wxSystemOptions
26e422a9 1013 --enable-tarstream use wxTar streams
a848cd7e
SC
1014 --enable-textbuf use wxTextBuffer class
1015 --enable-textfile use wxTextFile class
1016 --enable-timer use wxTimer class
1017 --enable-unicode compile wxString with Unicode support
1018 --enable-sound use wxSound class
3b57de8b 1019 --enable-mediactrl use wxMediaCtrl class
15291213 1020 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1021 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1022 --enable-zipstream use wxZip streams
a848cd7e 1023 --enable-url use wxURL class
ca5c6ac3 1024 --enable-variant use wxVariant class
a848cd7e
SC
1025 --enable-protocol use wxProtocol class
1026 --enable-protocol-http HTTP support in wxProtocol
1027 --enable-protocol-ftp FTP support in wxProtocol
1028 --enable-protocol-file FILE support in wxProtocol
1029 --enable-threads use threads
1030 --enable-docview use document view architecture
1031 --enable-help use help subsystem
1032 --enable-mshtmlhelp use MS HTML Help (win32)
1033 --enable-html use wxHTML sub-library
1034 --enable-htmlhelp use wxHTML-based help
9a8f0513 1035 --enable-xrc use XRC resources sub-library
3f60522a 1036 --enable-aui use AUI docking library
a848cd7e
SC
1037 --enable-constraints use layout-constraints system
1038 --enable-printarch use printing architecture
1039 --enable-mdi use multiple document interface architecture
8a7b1113 1040 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1041 --enable-loggui use standard GUI logger
1042 --enable-logwin use wxLogWindow
1043 --enable-logdialog use wxLogDialog
646b6ec1 1044 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1045 --enable-richtext use wxRichTextCtrl
f43426c1 1046 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1047 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1048 --enable-prologio not available; see contrib
1049 --enable-resources not available; see contrib
1050 --enable-clipboard use wxClipboard class
1051 --enable-dnd use Drag'n'Drop classes
1052 --enable-metafile use win32 metafiles
1053 --enable-controls use all usual controls
1054 --enable-accel use accelerators
3ea50042 1055 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1056 --enable-button use wxButton class
1057 --enable-bmpbutton use wxBitmapButton class
95a46303 1058 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1059 --enable-calendar use wxCalendarCtrl class
1060 --enable-caret use wxCaret class
1061 --enable-checkbox use wxCheckBox class
1062 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1063 --enable-choice use wxChoice class
92bbdbcd 1064 --enable-choicebook use wxChoicebook class
bd915ace 1065 --enable-collpane use wxCollapsiblePane class
e9263684 1066 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1067 --enable-combobox use wxComboBox class
a57d600f 1068 --enable-comboctrl use wxComboCtrl class
da98e9be 1069 --enable-datepick use wxDatePickerCtrl class
e9263684 1070 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1071 --enable-display use wxDisplay class
88bbc332 1072 --enable-detect_sm use code to detect X11 session manager
e9263684
VZ
1073 --enable-filepicker use wxFilePickerCtrl class
1074 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1075 --enable-gauge use wxGauge class
1076 --enable-grid use wxGrid class
1ecacba4 1077 --enable-dataviewctrl use wxDataViewCtrl class
6954625c 1078 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1079 --enable-imaglist use wxImageList class
1080 --enable-listbook use wxListbook class
1081 --enable-listbox use wxListBox class
1082 --enable-listctrl use wxListCtrl class
1083 --enable-notebook use wxNotebook class
a57d600f 1084 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1085 --enable-radiobox use wxRadioBox class
1086 --enable-radiobtn use wxRadioButton class
1087 --enable-sash use wxSashWindow class
1088 --enable-scrollbar use wxScrollBar class and scrollable windows
3f7f284d 1089 --enable-searchctrl use wxSearchCtrl class
a848cd7e
SC
1090 --enable-slider use wxSlider class
1091 --enable-spinbtn use wxSpinButton class
1092 --enable-spinctrl use wxSpinCtrl class
1093 --enable-splitter use wxSplitterWindow class
1094 --enable-statbmp use wxStaticBitmap class
1095 --enable-statbox use wxStaticBox class
1096 --enable-statline use wxStaticLine class
1097 --enable-stattext use wxStaticText class
1098 --enable-statusbar use wxStatusBar class
1099 --enable-tabdialog use wxTabControl class
1100 --enable-textctrl use wxTextCtrl class
1101 --enable-togglebtn use wxToggleButton class
1102 --enable-toolbar use wxToolBar class
1103 --enable-tbarnative use native wxToolBar class
0093c2fc 1104 --enable-treebook use wxTreebook class
5ec3bc43 1105 --enable-toolbook use wxToolbook class
a848cd7e
SC
1106 --enable-treectrl use wxTreeCtrl class
1107 --enable-tipwindow use wxTipWindow class
1108 --enable-popupwin use wxPopUpWindow class
1109 --enable-commondlg use all common dialogs
319c5ed4 1110 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1111 --enable-choicedlg use wxChoiceDialog
1112 --enable-coldlg use wxColourDialog
1113 --enable-filedlg use wxFileDialog
1114 --enable-finddlg use wxFindReplaceDialog
1115 --enable-fontdlg use wxFontDialog
1116 --enable-dirdlg use wxDirDialog
1117 --enable-msgdlg use wxMessageDialog
1118 --enable-numberdlg use wxNumberEntryDialog
1119 --enable-splash use wxSplashScreen
1120 --enable-textdlg use wxTextDialog
1121 --enable-tipdlg use startup tips
1122 --enable-progressdlg use wxProgressDialog
1123 --enable-wizarddlg use wxWizard
1124 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1125 --enable-miniframe use wxMiniFrame class
1126 --enable-tooltips use wxToolTip class
1127 --enable-splines use spline drawing code
fbe2ca43 1128 --enable-mousewheel use mousewheel
a848cd7e
SC
1129 --enable-validators use wxValidator and derived classes
1130 --enable-busyinfo use wxBusyInfo
4cb1d3da 1131 --enable-joystick use wxJoystick
38b4a946 1132 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1133 --enable-dragimage use wxDragImage
1134 --enable-accessibility enable accessibility support
38b4a946 1135 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1136 --enable-palette use wxPalette class
1137 --enable-image use wxImage class
1138 --enable-gif use gif images (GIF file format)
1139 --enable-pcx use pcx images (PCX file format)
bb9e79c0 1140 --enable-tga use tga images (TGA file format)
a848cd7e
SC
1141 --enable-iff use iff images (IFF file format)
1142 --enable-pnm use pnm images (PNM file format)
1143 --enable-xpm use xpm images (XPM file format)
1144 --enable-icocur use Windows ICO and CUR formats
77ffb593 1145 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1146 --enable-vendor=VENDOR vendor name (win32 DLL only)
1147 --disable-largefile omit support for large files
1148 --disable-gtktest do not try to compile and run a test GTK+ program
1149 --disable-gtktest Do not try to compile and run a test GTK program
1150 --disable-sdltest Do not try to compile and run a test SDL program
1151 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1152 --disable-dependency-tracking
1153 don't use dependency tracking even if the compiler
1154 can
ebee3cd0
VS
1155 --disable-precomp-headers
1156 don't use precompiled headers even if compiler can
a848cd7e
SC
1157
1158Optional Packages:
1159 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1160 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1161 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1162 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1163 --with-motif use Motif/Lesstif
1164 --with-mac use Mac OS X
1165 --with-cocoa use Cocoa
1166 --with-wine use Wine
1167 --with-msw use MS-Windows
1168 --with-pm use OS/2 Presentation Manager
1169 --with-mgl use SciTech MGL
b3c86150 1170 --with-directfb use DirectFB
a848cd7e
SC
1171 --with-microwin use MicroWindows
1172 --with-x11 use X11
1173 --with-libpng use libpng (PNG image format)
1174 --with-libjpeg use libjpeg (JPEG file format)
1175 --with-libtiff use libtiff (TIFF file format)
1176 --with-libxpm use libxpm (XPM file format)
1177 --with-libmspack use libmspack (CHM help files loading)
1178 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1179 --with-gnomeprint use GNOME print for printing under GNOME
1180 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1181 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1182 --with-opengl use OpenGL (or Mesa)
4353a8df 1183 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1184 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1185 --with-regex enable support for wxRegEx class
1186 --with-zlib use zlib for LZW compression
1187 --with-odbc use the IODBC and wxODBC classes
1188 --with-expat enable XML support using expat parser
ceec2216 1189 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1190 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1191 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1192 --with-x use the X Window System
1193 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1194 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1195 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1196 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1197 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1198
1199Some influential environment variables:
dcc1b6ad
VS
1200 CC C compiler command
1201 CFLAGS C compiler flags
1202 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1203 nonstandard directory <lib dir>
f321ab7f
VS
1204 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1205 headers in a nonstandard directory <include dir>
dcc1b6ad
VS
1206 CPP C preprocessor
1207 CXX C++ compiler command
1208 CXXFLAGS C++ compiler flags
1209 CXXCPP C++ preprocessor
3ecd9f92 1210 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1211 DIRECTFB_CFLAGS
1212 C compiler flags for DIRECTFB, overriding pkg-config
1213 DIRECTFB_LIBS
1214 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1215 PANGOX_CFLAGS
1216 C compiler flags for PANGOX, overriding pkg-config
1217 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1218 PANGOFT2_CFLAGS
1219 C compiler flags for PANGOFT2, overriding pkg-config
1220 PANGOFT2_LIBS
1221 linker flags for PANGOFT2, overriding pkg-config
1222 PANGOXFT_CFLAGS
1223 C compiler flags for PANGOXFT, overriding pkg-config
1224 PANGOXFT_LIBS
1225 linker flags for PANGOXFT, overriding pkg-config
1226 LIBGNOMEPRINTUI_CFLAGS
1227 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1228 LIBGNOMEPRINTUI_LIBS
1229 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1230 GNOMEVFS_CFLAGS
1231 C compiler flags for GNOMEVFS, overriding pkg-config
1232 GNOMEVFS_LIBS
1233 linker flags for GNOMEVFS, overriding pkg-config
1234 HILDON_CFLAGS
1235 C compiler flags for HILDON, overriding pkg-config
1236 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1237 CAIRO_CFLAGS
1238 C compiler flags for CAIRO, overriding pkg-config
1239 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1240 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1241 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1242
1243Use these variables to override the choices made by `configure' or to help
1244it to find libraries and programs with nonstandard names/locations.
1245
77ffb593 1246Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1247_ACEOF
1248fi
1249
1250if test "$ac_init_help" = "recursive"; then
1251 # If there are subdirs, report their specific --help.
f321ab7f 1252 ac_popdir=`pwd`
a848cd7e 1253 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
f321ab7f 1254 test -d $ac_dir || continue
a848cd7e
SC
1255 ac_builddir=.
1256
f321ab7f 1257if test "$ac_dir" != .; then
a848cd7e 1258 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
f321ab7f
VS
1259 # A "../" for each directory in $ac_dir_suffix.
1260 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1261else
1262 ac_dir_suffix= ac_top_builddir=
1263fi
a848cd7e
SC
1264
1265case $srcdir in
f321ab7f 1266 .) # No --srcdir option. We are building in place.
a848cd7e 1267 ac_srcdir=.
f321ab7f
VS
1268 if test -z "$ac_top_builddir"; then
1269 ac_top_srcdir=.
1270 else
1271 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1272 fi ;;
1273 [\\/]* | ?:[\\/]* ) # Absolute path.
a848cd7e 1274 ac_srcdir=$srcdir$ac_dir_suffix;
f321ab7f
VS
1275 ac_top_srcdir=$srcdir ;;
1276 *) # Relative path.
1277 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1278 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1279esac
1280
1281# Do not use `cd foo && pwd` to compute absolute paths, because
1282# the directories may not exist.
1283case `pwd` in
1284.) ac_abs_builddir="$ac_dir";;
1285*)
1286 case "$ac_dir" in
1287 .) ac_abs_builddir=`pwd`;;
1288 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1289 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1290 esac;;
1291esac
1292case $ac_abs_builddir in
1293.) ac_abs_top_builddir=${ac_top_builddir}.;;
1294*)
1295 case ${ac_top_builddir}. in
1296 .) ac_abs_top_builddir=$ac_abs_builddir;;
1297 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1298 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1299 esac;;
1300esac
1301case $ac_abs_builddir in
1302.) ac_abs_srcdir=$ac_srcdir;;
1303*)
1304 case $ac_srcdir in
1305 .) ac_abs_srcdir=$ac_abs_builddir;;
1306 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1307 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1308 esac;;
1309esac
1310case $ac_abs_builddir in
1311.) ac_abs_top_srcdir=$ac_top_srcdir;;
1312*)
1313 case $ac_top_srcdir in
1314 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1315 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1316 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1317 esac;;
ac1cb8d3 1318esac
f321ab7f
VS
1319
1320 cd $ac_dir
1321 # Check for guested configure; otherwise get Cygnus style configure.
1322 if test -f $ac_srcdir/configure.gnu; then
1323 echo
1324 $SHELL $ac_srcdir/configure.gnu --help=recursive
1325 elif test -f $ac_srcdir/configure; then
1326 echo
1327 $SHELL $ac_srcdir/configure --help=recursive
1328 elif test -f $ac_srcdir/configure.ac ||
1329 test -f $ac_srcdir/configure.in; then
1330 echo
1331 $ac_configure --help
a848cd7e
SC
1332 else
1333 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
f321ab7f
VS
1334 fi
1335 cd "$ac_popdir"
a848cd7e
SC
1336 done
1337fi
1338
f321ab7f 1339test -n "$ac_init_help" && exit 0
a848cd7e
SC
1340if $ac_init_version; then
1341 cat <<\_ACEOF
4fd169bd 1342wxWidgets configure 2.8.1
f321ab7f 1343generated by GNU Autoconf 2.59
a848cd7e 1344
f321ab7f 1345Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1346This configure script is free software; the Free Software Foundation
1347gives unlimited permission to copy, distribute and modify it.
1348_ACEOF
f321ab7f 1349 exit 0
a848cd7e 1350fi
f321ab7f
VS
1351exec 5>config.log
1352cat >&5 <<_ACEOF
a848cd7e
SC
1353This file contains any messages produced by compilers while
1354running configure, to aid debugging if configure makes a mistake.
1355
4fd169bd 1356It was created by wxWidgets $as_me 2.8.1, which was
f321ab7f 1357generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1358
1359 $ $0 $@
1360
1361_ACEOF
1362{
1363cat <<_ASUNAME
1364## --------- ##
1365## Platform. ##
1366## --------- ##
1367
1368hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1369uname -m = `(uname -m) 2>/dev/null || echo unknown`
1370uname -r = `(uname -r) 2>/dev/null || echo unknown`
1371uname -s = `(uname -s) 2>/dev/null || echo unknown`
1372uname -v = `(uname -v) 2>/dev/null || echo unknown`
1373
1374/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1375/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1376
1377/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1378/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1379/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
f321ab7f 1380hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
a848cd7e
SC
1381/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1382/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1383/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1384
1385_ASUNAME
1386
1387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388for as_dir in $PATH
1389do
1390 IFS=$as_save_IFS
1391 test -z "$as_dir" && as_dir=.
1392 echo "PATH: $as_dir"
1393done
1394
1395} >&5
1396
1397cat >&5 <<_ACEOF
1398
1399
1400## ----------- ##
1401## Core tests. ##
1402## ----------- ##
1403
1404_ACEOF
1405
1406
1407# Keep a trace of the command line.
1408# Strip out --no-create and --no-recursion so they do not pile up.
1409# Strip out --silent because we don't want to record it for future runs.
1410# Also quote any args containing shell meta-characters.
1411# Make two passes to allow for proper duplicate-argument suppression.
1412ac_configure_args=
1413ac_configure_args0=
1414ac_configure_args1=
f321ab7f 1415ac_sep=
a848cd7e
SC
1416ac_must_keep_next=false
1417for ac_pass in 1 2
1418do
1419 for ac_arg
1420 do
1421 case $ac_arg in
1422 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1424 | -silent | --silent | --silen | --sile | --sil)
1425 continue ;;
f321ab7f 1426 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a848cd7e
SC
1427 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1428 esac
1429 case $ac_pass in
1430 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1431 2)
1432 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1433 if test $ac_must_keep_next = true; then
ac1cb8d3 1434 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1435 else
ac1cb8d3
VS
1436 case $ac_arg in
1437 *=* | --config-cache | -C | -disable-* | --disable-* \
1438 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1439 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1440 | -with-* | --with-* | -without-* | --without-* | --x)
1441 case "$ac_configure_args0 " in
1442 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1443 esac
1444 ;;
1445 -* ) ac_must_keep_next=true ;;
1446 esac
a848cd7e 1447 fi
f321ab7f
VS
1448 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1449 # Get rid of the leading space.
1450 ac_sep=" "
a848cd7e
SC
1451 ;;
1452 esac
1453 done
1454done
1455$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1456$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1457
1458# When interrupted or exit'd, cleanup temporary files, and complete
1459# config.log. We remove comments because anyway the quotes in there
1460# would cause problems or look ugly.
f321ab7f
VS
1461# WARNING: Be sure not to use single quotes in there, as some shells,
1462# such as our DU 5.0 friend, will then `close' the trap.
a848cd7e
SC
1463trap 'exit_status=$?
1464 # Save into config.log some information that might help in debugging.
1465 {
1466 echo
1467
1468 cat <<\_ASBOX
1469## ---------------- ##
1470## Cache variables. ##
1471## ---------------- ##
1472_ASBOX
1473 echo
1474 # The following way of writing the cache mishandles newlines in values,
f321ab7f 1475{
a848cd7e 1476 (set) 2>&1 |
f321ab7f
VS
1477 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1478 *ac_space=\ *)
a848cd7e 1479 sed -n \
f321ab7f
VS
1480 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1482 ;;
a848cd7e 1483 *)
f321ab7f
VS
1484 sed -n \
1485 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e 1486 ;;
f321ab7f
VS
1487 esac;
1488}
a848cd7e
SC
1489 echo
1490
1491 cat <<\_ASBOX
1492## ----------------- ##
1493## Output variables. ##
1494## ----------------- ##
1495_ASBOX
1496 echo
1497 for ac_var in $ac_subst_vars
1498 do
f321ab7f
VS
1499 eval ac_val=$`echo $ac_var`
1500 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1501 done | sort
1502 echo
1503
1504 if test -n "$ac_subst_files"; then
1505 cat <<\_ASBOX
f321ab7f
VS
1506## ------------- ##
1507## Output files. ##
1508## ------------- ##
a848cd7e
SC
1509_ASBOX
1510 echo
1511 for ac_var in $ac_subst_files
1512 do
f321ab7f
VS
1513 eval ac_val=$`echo $ac_var`
1514 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1515 done | sort
1516 echo
1517 fi
1518
1519 if test -s confdefs.h; then
1520 cat <<\_ASBOX
1521## ----------- ##
1522## confdefs.h. ##
1523## ----------- ##
1524_ASBOX
1525 echo
f321ab7f 1526 sed "/^$/d" confdefs.h | sort
a848cd7e
SC
1527 echo
1528 fi
1529 test "$ac_signal" != 0 &&
1530 echo "$as_me: caught signal $ac_signal"
1531 echo "$as_me: exit $exit_status"
1532 } >&5
f321ab7f
VS
1533 rm -f core *.core &&
1534 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
a848cd7e 1535 exit $exit_status
f321ab7f 1536 ' 0
a848cd7e
SC
1537for ac_signal in 1 2 13 15; do
1538 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1539done
1540ac_signal=0
1541
1542# confdefs.h avoids OS command line length limits that DEFS can exceed.
f321ab7f
VS
1543rm -rf conftest* confdefs.h
1544# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1545echo >confdefs.h
a848cd7e
SC
1546
1547# Predefined preprocessor variables.
1548
1549cat >>confdefs.h <<_ACEOF
1550#define PACKAGE_NAME "$PACKAGE_NAME"
1551_ACEOF
1552
1553
1554cat >>confdefs.h <<_ACEOF
1555#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1556_ACEOF
1557
1558
1559cat >>confdefs.h <<_ACEOF
1560#define PACKAGE_VERSION "$PACKAGE_VERSION"
1561_ACEOF
1562
1563
1564cat >>confdefs.h <<_ACEOF
1565#define PACKAGE_STRING "$PACKAGE_STRING"
1566_ACEOF
1567
1568
1569cat >>confdefs.h <<_ACEOF
1570#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1571_ACEOF
1572
1573
1574# Let the site file select an alternate cache file if it wants to.
1575# Prefer explicitly selected file to automatically selected ones.
f321ab7f
VS
1576if test -z "$CONFIG_SITE"; then
1577 if test "x$prefix" != xNONE; then
1578 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1579 else
1580 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1581 fi
a848cd7e 1582fi
f321ab7f 1583for ac_site_file in $CONFIG_SITE; do
a848cd7e
SC
1584 if test -r "$ac_site_file"; then
1585 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1586echo "$as_me: loading site script $ac_site_file" >&6;}
1587 sed 's/^/| /' "$ac_site_file" >&5
1588 . "$ac_site_file"
1589 fi
1590done
1591
1592if test -r "$cache_file"; then
1593 # Some versions of bash will fail to source /dev/null (special
1594 # files actually), so we avoid doing that.
1595 if test -f "$cache_file"; then
1596 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1597echo "$as_me: loading cache $cache_file" >&6;}
1598 case $cache_file in
f321ab7f
VS
1599 [\\/]* | ?:[\\/]* ) . $cache_file;;
1600 *) . ./$cache_file;;
a848cd7e
SC
1601 esac
1602 fi
1603else
1604 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1605echo "$as_me: creating cache $cache_file" >&6;}
1606 >$cache_file
1607fi
1608
1609# Check that the precious variables saved in the cache have kept the same
1610# value.
1611ac_cache_corrupted=false
f321ab7f
VS
1612for ac_var in `(set) 2>&1 |
1613 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1614 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1615 eval ac_new_set=\$ac_env_${ac_var}_set
f321ab7f
VS
1616 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1617 eval ac_new_val="\$ac_env_${ac_var}_value"
a848cd7e
SC
1618 case $ac_old_set,$ac_new_set in
1619 set,)
1620 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1621echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1622 ac_cache_corrupted=: ;;
1623 ,set)
1624 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1625echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1626 ac_cache_corrupted=: ;;
1627 ,);;
1628 *)
1629 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1630 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1631echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1632 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1633echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1634 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1635echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1636 ac_cache_corrupted=:
a848cd7e
SC
1637 fi;;
1638 esac
1639 # Pass precious variables to config.status.
1640 if test "$ac_new_set" = set; then
1641 case $ac_new_val in
f321ab7f
VS
1642 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1643 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a848cd7e
SC
1644 *) ac_arg=$ac_var=$ac_new_val ;;
1645 esac
1646 case " $ac_configure_args " in
1647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1648 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1649 esac
1650 fi
1651done
1652if $ac_cache_corrupted; then
1653 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1654echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1655 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1656echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1657 { (exit 1); exit 1; }; }
1658fi
1659
f321ab7f
VS
1660ac_ext=c
1661ac_cpp='$CPP $CPPFLAGS'
1662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1664ac_compiler_gnu=$ac_cv_c_compiler_gnu
1665
a848cd7e
SC
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695ac_aux_dir=
f321ab7f
VS
1696for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1697 if test -f $ac_dir/install-sh; then
a848cd7e
SC
1698 ac_aux_dir=$ac_dir
1699 ac_install_sh="$ac_aux_dir/install-sh -c"
1700 break
f321ab7f 1701 elif test -f $ac_dir/install.sh; then
a848cd7e
SC
1702 ac_aux_dir=$ac_dir
1703 ac_install_sh="$ac_aux_dir/install.sh -c"
1704 break
f321ab7f 1705 elif test -f $ac_dir/shtool; then
a848cd7e
SC
1706 ac_aux_dir=$ac_dir
1707 ac_install_sh="$ac_aux_dir/shtool install -c"
1708 break
1709 fi
1710done
1711if test -z "$ac_aux_dir"; then
f321ab7f
VS
1712 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1713echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
a848cd7e
SC
1714 { (exit 1); exit 1; }; }
1715fi
f321ab7f
VS
1716ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1717ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1718ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a848cd7e
SC
1719
1720# Make sure we can run config.sub.
f321ab7f
VS
1721$ac_config_sub sun4 >/dev/null 2>&1 ||
1722 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1723echo "$as_me: error: cannot run $ac_config_sub" >&2;}
a848cd7e
SC
1724 { (exit 1); exit 1; }; }
1725
f321ab7f
VS
1726echo "$as_me:$LINENO: checking build system type" >&5
1727echo $ECHO_N "checking build system type... $ECHO_C" >&6
a848cd7e
SC
1728if test "${ac_cv_build+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
f321ab7f
VS
1731 ac_cv_build_alias=$build_alias
1732test -z "$ac_cv_build_alias" &&
1733 ac_cv_build_alias=`$ac_config_guess`
1734test -z "$ac_cv_build_alias" &&
a848cd7e
SC
1735 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1736echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1737 { (exit 1); exit 1; }; }
f321ab7f
VS
1738ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1739 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1740echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
a848cd7e
SC
1741 { (exit 1); exit 1; }; }
1742
1743fi
f321ab7f
VS
1744echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1745echo "${ECHO_T}$ac_cv_build" >&6
a848cd7e 1746build=$ac_cv_build
f321ab7f
VS
1747build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1748build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1749build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1750
1751
1752echo "$as_me:$LINENO: checking host system type" >&5
1753echo $ECHO_N "checking host system type... $ECHO_C" >&6
a848cd7e
SC
1754if test "${ac_cv_host+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
f321ab7f
VS
1757 ac_cv_host_alias=$host_alias
1758test -z "$ac_cv_host_alias" &&
1759 ac_cv_host_alias=$ac_cv_build_alias
1760ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1761 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1762echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
a848cd7e
SC
1763 { (exit 1); exit 1; }; }
1764
1765fi
f321ab7f
VS
1766echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1767echo "${ECHO_T}$ac_cv_host" >&6
a848cd7e 1768host=$ac_cv_host
f321ab7f
VS
1769host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1770host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1771host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1772
1773
1774echo "$as_me:$LINENO: checking target system type" >&5
1775echo $ECHO_N "checking target system type... $ECHO_C" >&6
a848cd7e
SC
1776if test "${ac_cv_target+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778else
f321ab7f
VS
1779 ac_cv_target_alias=$target_alias
1780test "x$ac_cv_target_alias" = "x" &&
1781 ac_cv_target_alias=$ac_cv_host_alias
1782ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1783 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1784echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
a848cd7e
SC
1785 { (exit 1); exit 1; }; }
1786
1787fi
f321ab7f
VS
1788echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1789echo "${ECHO_T}$ac_cv_target" >&6
a848cd7e 1790target=$ac_cv_target
f321ab7f
VS
1791target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a848cd7e
SC
1794
1795
1796# The aliases save the names the user supplied, while $host etc.
1797# will get canonicalized.
1798test -n "$target_alias" &&
1799 test "$program_prefix$program_suffix$program_transform_name" = \
1800 NONENONEs,x,x, &&
1801 program_prefix=${target_alias}-
1802
1803
1804
ceec2216 1805wx_major_version_number=2
25bb1412 1806wx_minor_version_number=8
4fd169bd 1807wx_release_number=1
1d51064c 1808wx_subrelease_number=1
a848cd7e 1809
ceec2216
RL
1810WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1811WX_VERSION=$WX_RELEASE.$wx_release_number
1812WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1813
ceec2216 1814WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1815
a848cd7e 1816
02b05020
VZ
1817wx_top_builddir="`pwd`"
1818
1819
a848cd7e
SC
1820
1821
1822USE_UNIX=1
1823USE_OS2=0
1824USE_WIN32=0
1825USE_DOS=0
1826USE_BEOS=0
1827USE_MAC=0
1828
1829USE_AIX=
1830USE_BSD= USE_DARWIN= USE_FREEBSD=
1831USE_GNU= USE_HPUX=
1832USE_LINUX=
1833USE_NETBSD=
1834USE_OPENBSD=
1835USE_OSF= USE_SGI=
1836USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1837USE_ULTRIX=
1838USE_UNIXWARE=
1839
1840USE_ALPHA=
1841
1842NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1843
b3c86150 1844ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1845
1846DEFAULT_wxUSE_COCOA=0
1847DEFAULT_wxUSE_GTK=0
1848DEFAULT_wxUSE_MAC=0
1849DEFAULT_wxUSE_MGL=0
1850DEFAULT_wxUSE_MICROWIN=0
1851DEFAULT_wxUSE_MOTIF=0
1852DEFAULT_wxUSE_MSW=0
1853DEFAULT_wxUSE_PM=0
1854DEFAULT_wxUSE_X11=0
b3c86150 1855DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1856
1857DEFAULT_DEFAULT_wxUSE_COCOA=0
1858DEFAULT_DEFAULT_wxUSE_GTK=0
1859DEFAULT_DEFAULT_wxUSE_MAC=0
1860DEFAULT_DEFAULT_wxUSE_MGL=0
1861DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1862DEFAULT_DEFAULT_wxUSE_MOTIF=0
1863DEFAULT_DEFAULT_wxUSE_MSW=0
1864DEFAULT_DEFAULT_wxUSE_PM=0
1865DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1866DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1867
1868PROGRAM_EXT=
1869SO_SUFFIX=so
1870SAMPLES_RPATH_FLAG=
1871SAMPLES_RPATH_POSTLINK=
1872
a03b8b04
RD
1873DEFAULT_STD_FLAG=yes
1874
a848cd7e
SC
1875case "${host}" in
1876 *-hp-hpux* )
1877 USE_HPUX=1
1878 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1880 SO_SUFFIX=sl
1881 cat >>confdefs.h <<\_ACEOF
1882#define __HPUX__ 1
1883_ACEOF
1884
2eef8513 1885
c92ad099 1886 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1887 ;;
1888 *-*-linux* )
1889 USE_LINUX=1
1890 cat >>confdefs.h <<\_ACEOF
1891#define __LINUX__ 1
1892_ACEOF
1893
1894 TMP=`uname -m`
1895 if test "x$TMP" = "xalpha"; then
1896 USE_ALPHA=1
1897 cat >>confdefs.h <<\_ACEOF
1898#define __ALPHA__ 1
1899_ACEOF
1900
1901 fi
1902 DEFAULT_DEFAULT_wxUSE_GTK=1
1903 ;;
1904 *-*-gnu* | *-*-k*bsd*-gnu )
1905 USE_GNU=1
1906 TMP=`uname -m`
1907 if test "x$TMP" = "xalpha"; then
1908 USE_ALPHA=1
1909 cat >>confdefs.h <<\_ACEOF
1910#define __ALPHA__ 1
1911_ACEOF
1912
1913 fi
1914 DEFAULT_DEFAULT_wxUSE_GTK=1
1915 ;;
1916 *-*-irix5* | *-*-irix6* )
1917 USE_SGI=1
1918 USE_SVR4=1
1919 cat >>confdefs.h <<\_ACEOF
1920#define __SGI__ 1
1921_ACEOF
1922
1923 cat >>confdefs.h <<\_ACEOF
1924#define __SVR4__ 1
1925_ACEOF
1926
1927 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1928 ;;
1929 *-*-solaris2* )
1930 USE_SUN=1
1931 USE_SOLARIS=1
1932 USE_SVR4=1
1933 cat >>confdefs.h <<\_ACEOF
1934#define __SUN__ 1
1935_ACEOF
1936
1937 cat >>confdefs.h <<\_ACEOF
1938#define __SOLARIS__ 1
1939_ACEOF
1940
1941 cat >>confdefs.h <<\_ACEOF
1942#define __SVR4__ 1
1943_ACEOF
1944
1945 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1946 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1947 ;;
1948 *-*-sunos4* )
1949 USE_SUN=1
1950 USE_SUNOS=1
1951 USE_BSD=1
1952 cat >>confdefs.h <<\_ACEOF
1953#define __SUN__ 1
1954_ACEOF
1955
1956 cat >>confdefs.h <<\_ACEOF
1957#define __SUNOS__ 1
1958_ACEOF
1959
1960 cat >>confdefs.h <<\_ACEOF
1961#define __BSD__ 1
1962_ACEOF
1963
1964 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1965 ;;
1966 *-*-freebsd*)
1967 USE_BSD=1
1968 USE_FREEBSD=1
1969 cat >>confdefs.h <<\_ACEOF
1970#define __FREEBSD__ 1
1971_ACEOF
1972
1973 cat >>confdefs.h <<\_ACEOF
1974#define __BSD__ 1
1975_ACEOF
1976
1977 DEFAULT_DEFAULT_wxUSE_GTK=1
1978 ;;
c9a66001 1979 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1980 USE_BSD=1
1981 USE_OPENBSD=1
1982 cat >>confdefs.h <<\_ACEOF
1983#define __OPENBSD__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define __BSD__ 1
1988_ACEOF
1989
1990 DEFAULT_DEFAULT_wxUSE_GTK=1
1991 ;;
1992 *-*-netbsd*)
1993 USE_BSD=1
1994 USE_NETBSD=1
1995 cat >>confdefs.h <<\_ACEOF
1996#define __NETBSD__ 1
1997_ACEOF
1998
1999 cat >>confdefs.h <<\_ACEOF
2000#define __BSD__ 1
2001_ACEOF
2002
2003 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 2004 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 2005
def7c04a 2006 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
2007 ;;
2008 *-*-osf* )
2009 USE_ALPHA=1
2010 USE_OSF=1
2011 cat >>confdefs.h <<\_ACEOF
2012#define __ALPHA__ 1
2013_ACEOF
2014
2015 cat >>confdefs.h <<\_ACEOF
2016#define __OSF__ 1
2017_ACEOF
2018
2019 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2020 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2021 ;;
2022 *-*-dgux5* )
2023 USE_ALPHA=1
2024 USE_SVR4=1
2025 cat >>confdefs.h <<\_ACEOF
2026#define __ALPHA__ 1
2027_ACEOF
2028
2029 cat >>confdefs.h <<\_ACEOF
2030#define __SVR4__ 1
2031_ACEOF
2032
2033 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2034 ;;
2035 *-*-sysv5* )
2036 USE_SYSV=1
2037 USE_SVR4=1
2038 cat >>confdefs.h <<\_ACEOF
2039#define __SYSV__ 1
2040_ACEOF
2041
2042 cat >>confdefs.h <<\_ACEOF
2043#define __SVR4__ 1
2044_ACEOF
2045
2046 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2047 ;;
2048 *-*-aix* )
2049 USE_AIX=1
2050 USE_SYSV=1
2051 USE_SVR4=1
2052 SO_SUFFIX=a
2053 cat >>confdefs.h <<\_ACEOF
2054#define __AIX__ 1
2055_ACEOF
2056
2057 cat >>confdefs.h <<\_ACEOF
2058#define __SYSV__ 1
2059_ACEOF
2060
2061 cat >>confdefs.h <<\_ACEOF
2062#define __SVR4__ 1
2063_ACEOF
2064
2065 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2066 ;;
2067
2068 *-*-*UnixWare*)
2069 USE_SYSV=1
2070 USE_SVR4=1
2071 USE_UNIXWARE=1
2072 cat >>confdefs.h <<\_ACEOF
2073#define __UNIXWARE__ 1
2074_ACEOF
2075
2076 ;;
2077
2078 *-*-cygwin* | *-*-mingw32* )
2079 SO_SUFFIX=dll
2080 PROGRAM_EXT=".exe"
a848cd7e
SC
2081 DEFAULT_DEFAULT_wxUSE_MSW=1
2082 ;;
2083
2084 *-pc-msdosdjgpp )
2085 USE_UNIX=0
2086 USE_DOS=1
2087 cat >>confdefs.h <<\_ACEOF
2088#define __DOS__ 1
2089_ACEOF
2090
2091 PROGRAM_EXT=".exe"
2092 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2093 ;;
2094
2095 *-pc-os2_emx | *-pc-os2-emx )
2096 cat >>confdefs.h <<\_ACEOF
2097#define __EMX__ 1
2098_ACEOF
2099
2100 USE_OS2=1
2101 cat >>confdefs.h <<\_ACEOF
2102#define __OS2__ 1
2103_ACEOF
2104
2105 PROGRAM_EXT=".exe"
2106 DEFAULT_DEFAULT_wxUSE_PM=1
2107 CXX=gcc
2108 LDFLAGS="$LDFLAGS -Zcrtdll"
2109 ac_executable_extensions=".exe"
2110 export ac_executable_extensions
2111 ac_save_IFS="$IFS"
2112 IFS='\\'
2113 ac_TEMP_PATH=
2114 for ac_dir in $PATH; do
2115 IFS=$ac_save_IFS
2116 if test -z "$ac_TEMP_PATH"; then
2117 ac_TEMP_PATH="$ac_dir"
2118 else
2119 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2120 fi
2121 done
2122 export PATH="$ac_TEMP_PATH"
2123 unset ac_TEMP_PATH
a03b8b04 2124 DEFAULT_STD_FLAG=no
a848cd7e
SC
2125 ;;
2126
cfda0ea8 2127 *-*-darwin* )
a848cd7e
SC
2128 USE_BSD=1
2129 USE_DARWIN=1
2130 SO_SUFFIX=dylib
2131 cat >>confdefs.h <<\_ACEOF
2132#define __BSD__ 1
2133_ACEOF
2134
2135 cat >>confdefs.h <<\_ACEOF
2136#define __DARWIN__ 1
a848cd7e
SC
2137_ACEOF
2138
2139 cat >>confdefs.h <<\_ACEOF
2140#define TARGET_CARBON 1
2141_ACEOF
2142
2143 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2144 DEFAULT_STD_FLAG=no
a848cd7e 2145 ;;
1e9e8aba
DE
2146 powerpc-apple-macos* )
2147 USE_UNIX=0
2148 ac_cv_c_bigendian=yes
2149 SO_SUFFIX=shlib
2150 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2151 DEFAULT_STD_FLAG=no
1e9e8aba 2152 ;;
a848cd7e
SC
2153
2154 *-*-beos* )
2155 USE_BEOS=1
2156 cat >>confdefs.h <<\_ACEOF
2157#define __BEOS__ 1
2158_ACEOF
2159
2160 ;;
2161
2162 *)
c9a66001
VZ
2163 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2164echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2165 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2166echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2167
2168 DEFAULT_DEFAULT_wxUSE_X11=1
2169 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2170esac
2171
2172
2173
2174
2175 wx_arg_cache_file="configarg.cache"
2176 echo "loading argument cache $wx_arg_cache_file"
2177 rm -f ${wx_arg_cache_file}.tmp
2178 touch ${wx_arg_cache_file}.tmp
2179 touch ${wx_arg_cache_file}
2180
2181
2182DEBUG_CONFIGURE=0
2183if test $DEBUG_CONFIGURE = 1; then
2184 DEFAULT_wxUSE_UNIVERSAL=no
2185 DEFAULT_wxUSE_STL=no
2186
2187 DEFAULT_wxUSE_NANOX=no
2188
2189 DEFAULT_wxUSE_THREADS=yes
2190
5acfd58d 2191 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2192 DEFAULT_wxUSE_OPTIMISE=no
2193 DEFAULT_wxUSE_PROFILE=no
2194 DEFAULT_wxUSE_NO_DEPS=no
70c536f3 2195 DEFAULT_wxUSE_VARARG_MACROS=no
a848cd7e
SC
2196 DEFAULT_wxUSE_NO_RTTI=no
2197 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2198 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2199 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2200 DEFAULT_wxUSE_PERMISSIVE=no
2201 DEFAULT_wxUSE_DEBUG_FLAG=yes
2202 DEFAULT_wxUSE_DEBUG_INFO=yes
2203 DEFAULT_wxUSE_DEBUG_GDB=yes
2204 DEFAULT_wxUSE_MEM_TRACING=no
2205 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2206 DEFAULT_wxUSE_DMALLOC=no
2207 DEFAULT_wxUSE_APPLE_IEEE=no
2208
2209 DEFAULT_wxUSE_EXCEPTIONS=no
2210 DEFAULT_wxUSE_LOG=yes
2211 DEFAULT_wxUSE_LOGWINDOW=no
2212 DEFAULT_wxUSE_LOGGUI=no
2213 DEFAULT_wxUSE_LOGDIALOG=no
2214
2215 DEFAULT_wxUSE_GUI=yes
2216 DEFAULT_wxUSE_CONTROLS=no
2217
2218 DEFAULT_wxUSE_REGEX=no
2219 DEFAULT_wxUSE_XML=no
2220 DEFAULT_wxUSE_EXPAT=no
2221 DEFAULT_wxUSE_ZLIB=no
2222 DEFAULT_wxUSE_LIBPNG=no
2223 DEFAULT_wxUSE_LIBJPEG=no
2224 DEFAULT_wxUSE_LIBTIFF=no
2225 DEFAULT_wxUSE_LIBXPM=no
2226 DEFAULT_wxUSE_LIBMSPACK=no
2227 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2228 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2229 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2230 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2231 DEFAULT_wxUSE_ODBC=no
2232 DEFAULT_wxUSE_OPENGL=no
2233
2234 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2235 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2236 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2237 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2238 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2239 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2240 DEFAULT_wxUSE_CMDLINE_PARSER=no
2241 DEFAULT_wxUSE_DATETIME=no
2242 DEFAULT_wxUSE_TIMER=no
2243 DEFAULT_wxUSE_STOPWATCH=no
2244 DEFAULT_wxUSE_FILE=no
2245 DEFAULT_wxUSE_FFILE=no
07158944 2246 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2247 DEFAULT_wxUSE_TEXTBUFFER=no
2248 DEFAULT_wxUSE_TEXTFILE=no
2249 DEFAULT_wxUSE_SOUND=no
3b57de8b 2250 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2251 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2252 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2253 DEFAULT_wxUSE_INTL=no
2254 DEFAULT_wxUSE_CONFIG=no
2255 DEFAULT_wxUSE_FONTMAP=no
2256 DEFAULT_wxUSE_STREAMS=no
2257 DEFAULT_wxUSE_SOCKETS=no
2258 DEFAULT_wxUSE_OLE=no
2259 DEFAULT_wxUSE_DATAOBJ=no
2260 DEFAULT_wxUSE_DIALUP_MANAGER=no
2261 DEFAULT_wxUSE_JOYSTICK=no
2262 DEFAULT_wxUSE_DYNLIB_CLASS=no
2263 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2264 DEFAULT_wxUSE_LONGLONG=no
2265 DEFAULT_wxUSE_GEOMETRY=no
2266
2267 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2268 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2269 DEFAULT_wxUSE_POSTSCRIPT=no
2270
2271 DEFAULT_wxUSE_CLIPBOARD=no
2272 DEFAULT_wxUSE_TOOLTIPS=no
2273 DEFAULT_wxUSE_DRAG_AND_DROP=no
2274 DEFAULT_wxUSE_DRAGIMAGE=no
2275 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2276 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2277
8a7b1113 2278 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2279 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2280 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2281 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2282
2283 DEFAULT_wxUSE_RESOURCES=no
2284 DEFAULT_wxUSE_CONSTRAINTS=no
2285 DEFAULT_wxUSE_IPC=no
2286 DEFAULT_wxUSE_HELP=no
2287 DEFAULT_wxUSE_MS_HTML_HELP=no
2288 DEFAULT_wxUSE_WXHTML_HELP=no
2289 DEFAULT_wxUSE_TREELAYOUT=no
2290 DEFAULT_wxUSE_METAFILE=no
2291 DEFAULT_wxUSE_MIMETYPE=no
2292 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2293 DEFAULT_wxUSE_PROTOCOL=no
2294 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2295 DEFAULT_wxUSE_PROTOCOL_FTP=no
2296 DEFAULT_wxUSE_PROTOCOL_FILE=no
2297 DEFAULT_wxUSE_URL=no
ca5c6ac3 2298 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2299
319c5ed4 2300 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2301 DEFAULT_wxUSE_COMMONDLGS=no
2302 DEFAULT_wxUSE_CHOICEDLG=no
2303 DEFAULT_wxUSE_COLOURDLG=no
2304 DEFAULT_wxUSE_DIRDLG=no
2305 DEFAULT_wxUSE_FILEDLG=no
2306 DEFAULT_wxUSE_FINDREPLDLG=no
2307 DEFAULT_wxUSE_FONTDLG=no
2308 DEFAULT_wxUSE_MSGDLG=no
2309 DEFAULT_wxUSE_NUMBERDLG=no
2310 DEFAULT_wxUSE_TEXTDLG=no
2311 DEFAULT_wxUSE_SPLASH=no
2312 DEFAULT_wxUSE_STARTUP_TIPS=no
2313 DEFAULT_wxUSE_PROGRESSDLG=no
2314 DEFAULT_wxUSE_WIZARDDLG=no
2315
2316 DEFAULT_wxUSE_MENUS=no
2317 DEFAULT_wxUSE_MINIFRAME=no
2318 DEFAULT_wxUSE_HTML=no
91dea314 2319 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2320 DEFAULT_wxUSE_XRC=no
3f60522a 2321 DEFAULT_wxUSE_AUI=no
646b6ec1 2322 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2323 DEFAULT_wxUSE_FILESYSTEM=no
2324 DEFAULT_wxUSE_FS_INET=no
2325 DEFAULT_wxUSE_FS_ZIP=no
26e422a9 2326 DEFAULT_wxUSE_FS_ARCHIVE=no
a848cd7e 2327 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2328 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2329 DEFAULT_wxUSE_ZIPSTREAM=no
26e422a9 2330 DEFAULT_wxUSE_TARSTREAM=no
a848cd7e
SC
2331 DEFAULT_wxUSE_VALIDATORS=no
2332
2333 DEFAULT_wxUSE_ACCEL=no
3ea50042 2334 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2335 DEFAULT_wxUSE_BUTTON=no
2336 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2337 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2338 DEFAULT_wxUSE_CALCTRL=no
2339 DEFAULT_wxUSE_CARET=no
2340 DEFAULT_wxUSE_CHECKBOX=no
2341 DEFAULT_wxUSE_CHECKLST=no
2342 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2343 DEFAULT_wxUSE_CHOICEBOOK=no
bd915ace 2344 DEFAULT_wxUSE_COLLPANE=no
e9263684 2345 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2346 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2347 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2348 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2349 DEFAULT_wxUSE_DISPLAY=no
88bbc332 2350 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
2351 DEFAULT_wxUSE_DIRPICKERCTRL=no
2352 DEFAULT_wxUSE_FILEPICKERCTRL=no
2353 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2354 DEFAULT_wxUSE_GAUGE=no
f43426c1 2355 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2356 DEFAULT_wxUSE_GRID=no
6954625c 2357 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2358 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2359 DEFAULT_wxUSE_IMAGLIST=no
2360 DEFAULT_wxUSE_LISTBOOK=no
2361 DEFAULT_wxUSE_LISTBOX=no
2362 DEFAULT_wxUSE_LISTCTRL=no
2363 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2364 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2365 DEFAULT_wxUSE_RADIOBOX=no
2366 DEFAULT_wxUSE_RADIOBTN=no
2367 DEFAULT_wxUSE_SASH=no
2368 DEFAULT_wxUSE_SCROLLBAR=no
3f7f284d 2369 DEFAULT_wxUSE_SEARCHCTRL=no
a848cd7e
SC
2370 DEFAULT_wxUSE_SLIDER=no
2371 DEFAULT_wxUSE_SPINBTN=no
2372 DEFAULT_wxUSE_SPINCTRL=no
2373 DEFAULT_wxUSE_SPLITTER=no
2374 DEFAULT_wxUSE_STATBMP=no
2375 DEFAULT_wxUSE_STATBOX=no
2376 DEFAULT_wxUSE_STATLINE=no
2377 DEFAULT_wxUSE_STATTEXT=no
2378 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2379 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2380 DEFAULT_wxUSE_TEXTCTRL=no
2381 DEFAULT_wxUSE_TOGGLEBTN=no
2382 DEFAULT_wxUSE_TOOLBAR=no
2383 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2384 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2385 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2386 DEFAULT_wxUSE_TREECTRL=no
2387 DEFAULT_wxUSE_POPUPWIN=no
2388 DEFAULT_wxUSE_TIPWINDOW=no
2389
2390 DEFAULT_wxUSE_UNICODE=no
2391 DEFAULT_wxUSE_UNICODE_MSLU=no
2392 DEFAULT_wxUSE_WCSRTOMBS=no
2393
2394 DEFAULT_wxUSE_PALETTE=no
2395 DEFAULT_wxUSE_IMAGE=no
2396 DEFAULT_wxUSE_GIF=no
2397 DEFAULT_wxUSE_PCX=no
bb9e79c0 2398 DEFAULT_wxUSE_TGA=no
a848cd7e
SC
2399 DEFAULT_wxUSE_PNM=no
2400 DEFAULT_wxUSE_IFF=no
2401 DEFAULT_wxUSE_XPM=no
2402 DEFAULT_wxUSE_ICO_CUR=no
2403 DEFAULT_wxUSE_ACCESSIBILITY=no
2404
2405 DEFAULT_wxUSE_MONOLITHIC=no
2406 DEFAULT_wxUSE_PLUGINS=no
2407 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2408else
2409 DEFAULT_wxUSE_UNIVERSAL=no
2410 DEFAULT_wxUSE_STL=no
2411
2412 DEFAULT_wxUSE_NANOX=no
2413
2414 DEFAULT_wxUSE_THREADS=yes
2415
5acfd58d 2416 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2417 DEFAULT_wxUSE_OPTIMISE=yes
2418 DEFAULT_wxUSE_PROFILE=no
2419 DEFAULT_wxUSE_NO_DEPS=no
70c536f3 2420 DEFAULT_wxUSE_VARARG_MACROS=yes
a848cd7e
SC
2421 DEFAULT_wxUSE_NO_RTTI=no
2422 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2423 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2424 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2425 DEFAULT_wxUSE_PERMISSIVE=no
2426 DEFAULT_wxUSE_DEBUG_FLAG=no
2427 DEFAULT_wxUSE_DEBUG_INFO=no
2428 DEFAULT_wxUSE_DEBUG_GDB=no
2429 DEFAULT_wxUSE_MEM_TRACING=no
2430 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2431 DEFAULT_wxUSE_DMALLOC=no
2432 DEFAULT_wxUSE_APPLE_IEEE=yes
2433
2434 DEFAULT_wxUSE_EXCEPTIONS=yes
2435 DEFAULT_wxUSE_LOG=yes
2436 DEFAULT_wxUSE_LOGWINDOW=yes
2437 DEFAULT_wxUSE_LOGGUI=yes
2438 DEFAULT_wxUSE_LOGDIALOG=yes
2439
2440 DEFAULT_wxUSE_GUI=yes
2441
2442 DEFAULT_wxUSE_REGEX=yes
2443 DEFAULT_wxUSE_XML=yes
2444 DEFAULT_wxUSE_EXPAT=yes
2445 DEFAULT_wxUSE_ZLIB=yes
2446 DEFAULT_wxUSE_LIBPNG=yes
2447 DEFAULT_wxUSE_LIBJPEG=yes
2448 DEFAULT_wxUSE_LIBTIFF=yes
2449 DEFAULT_wxUSE_LIBXPM=yes
2450 DEFAULT_wxUSE_LIBMSPACK=yes
2451 DEFAULT_wxUSE_LIBSDL=no
06629565 2452 DEFAULT_wxUSE_LIBGNOMEPRINT=yes
2b850ae1 2453 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2454 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2455 DEFAULT_wxUSE_ODBC=no
52cb607e 2456 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2457
2458 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2459 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2460 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2461 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2462 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2463 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2464 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2465 DEFAULT_wxUSE_DATETIME=yes
2466 DEFAULT_wxUSE_TIMER=yes
2467 DEFAULT_wxUSE_STOPWATCH=yes
2468 DEFAULT_wxUSE_FILE=yes
2469 DEFAULT_wxUSE_FFILE=yes
07158944 2470 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2471 DEFAULT_wxUSE_TEXTBUFFER=yes
2472 DEFAULT_wxUSE_TEXTFILE=yes
2473 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2474 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2475 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2476 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2477 DEFAULT_wxUSE_INTL=yes
2478 DEFAULT_wxUSE_CONFIG=yes
2479 DEFAULT_wxUSE_FONTMAP=yes
2480 DEFAULT_wxUSE_STREAMS=yes
2481 DEFAULT_wxUSE_SOCKETS=yes
2482 DEFAULT_wxUSE_OLE=yes
2483 DEFAULT_wxUSE_DATAOBJ=yes
2484 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2485 DEFAULT_wxUSE_JOYSTICK=yes
2486 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2487 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2488 DEFAULT_wxUSE_LONGLONG=yes
2489 DEFAULT_wxUSE_GEOMETRY=yes
2490
2491 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2492 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2493 DEFAULT_wxUSE_POSTSCRIPT=yes
2494
2495 DEFAULT_wxUSE_CLIPBOARD=yes
2496 DEFAULT_wxUSE_TOOLTIPS=yes
2497 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2498 DEFAULT_wxUSE_DRAGIMAGE=yes
2499 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2500 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2501
8a7b1113 2502 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2503 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2504 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2505 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2506
2507 DEFAULT_wxUSE_RESOURCES=no
2508 DEFAULT_wxUSE_CONSTRAINTS=yes
2509 DEFAULT_wxUSE_IPC=yes
2510 DEFAULT_wxUSE_HELP=yes
2511 DEFAULT_wxUSE_MS_HTML_HELP=yes
2512 DEFAULT_wxUSE_WXHTML_HELP=yes
2513 DEFAULT_wxUSE_TREELAYOUT=yes
2514 DEFAULT_wxUSE_METAFILE=yes
2515 DEFAULT_wxUSE_MIMETYPE=yes
2516 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2517 DEFAULT_wxUSE_PROTOCOL=yes
2518 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2519 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2520 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2521 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2522 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2523
319c5ed4 2524 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2525 DEFAULT_wxUSE_COMMONDLGS=yes
2526 DEFAULT_wxUSE_CHOICEDLG=yes
2527 DEFAULT_wxUSE_COLOURDLG=yes
2528 DEFAULT_wxUSE_DIRDLG=yes
2529 DEFAULT_wxUSE_FILEDLG=yes
2530 DEFAULT_wxUSE_FINDREPLDLG=yes
2531 DEFAULT_wxUSE_FONTDLG=yes
2532 DEFAULT_wxUSE_MSGDLG=yes
2533 DEFAULT_wxUSE_NUMBERDLG=yes
2534 DEFAULT_wxUSE_TEXTDLG=yes
2535 DEFAULT_wxUSE_SPLASH=yes
2536 DEFAULT_wxUSE_STARTUP_TIPS=yes
2537 DEFAULT_wxUSE_PROGRESSDLG=yes
2538 DEFAULT_wxUSE_WIZARDDLG=yes
2539
2540 DEFAULT_wxUSE_MENUS=yes
2541 DEFAULT_wxUSE_MINIFRAME=yes
2542 DEFAULT_wxUSE_HTML=yes
91dea314 2543 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2544 DEFAULT_wxUSE_XRC=yes
3f60522a 2545 DEFAULT_wxUSE_AUI=yes
646b6ec1 2546 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2547 DEFAULT_wxUSE_FILESYSTEM=yes
2548 DEFAULT_wxUSE_FS_INET=yes
2549 DEFAULT_wxUSE_FS_ZIP=yes
26e422a9 2550 DEFAULT_wxUSE_FS_ARCHIVE=yes
a848cd7e 2551 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2552 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2553 DEFAULT_wxUSE_ZIPSTREAM=yes
26e422a9 2554 DEFAULT_wxUSE_TARSTREAM=yes
a848cd7e
SC
2555 DEFAULT_wxUSE_VALIDATORS=yes
2556
2557 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2558 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2559 DEFAULT_wxUSE_BUTTON=yes
2560 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2561 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2562 DEFAULT_wxUSE_CALCTRL=yes
2563 DEFAULT_wxUSE_CARET=yes
2564 DEFAULT_wxUSE_CHECKBOX=yes
2565 DEFAULT_wxUSE_CHECKLST=yes
2566 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2567 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 2568 DEFAULT_wxUSE_COLLPANE=yes
e9263684 2569 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2570 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2571 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2572 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2573 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 2574 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
2575 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2576 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2577 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2578 DEFAULT_wxUSE_GAUGE=yes
2579 DEFAULT_wxUSE_GRID=yes
f43426c1 2580 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2581 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2582 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2583 DEFAULT_wxUSE_IMAGLIST=yes
2584 DEFAULT_wxUSE_LISTBOOK=yes
2585 DEFAULT_wxUSE_LISTBOX=yes
2586 DEFAULT_wxUSE_LISTCTRL=yes
2587 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2588 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2589 DEFAULT_wxUSE_RADIOBOX=yes
2590 DEFAULT_wxUSE_RADIOBTN=yes
2591 DEFAULT_wxUSE_SASH=yes
2592 DEFAULT_wxUSE_SCROLLBAR=yes
3f7f284d 2593 DEFAULT_wxUSE_SEARCHCTRL=yes
a848cd7e
SC
2594 DEFAULT_wxUSE_SLIDER=yes
2595 DEFAULT_wxUSE_SPINBTN=yes
2596 DEFAULT_wxUSE_SPINCTRL=yes
2597 DEFAULT_wxUSE_SPLITTER=yes
2598 DEFAULT_wxUSE_STATBMP=yes
2599 DEFAULT_wxUSE_STATBOX=yes
2600 DEFAULT_wxUSE_STATLINE=yes
2601 DEFAULT_wxUSE_STATTEXT=yes
2602 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2603 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2604 DEFAULT_wxUSE_TEXTCTRL=yes
2605 DEFAULT_wxUSE_TOGGLEBTN=yes
2606 DEFAULT_wxUSE_TOOLBAR=yes
2607 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2608 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2609 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2610 DEFAULT_wxUSE_TREECTRL=yes
2611 DEFAULT_wxUSE_POPUPWIN=yes
2612 DEFAULT_wxUSE_TIPWINDOW=yes
2613
78de529b 2614 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2615 DEFAULT_wxUSE_UNICODE_MSLU=yes
2616 DEFAULT_wxUSE_WCSRTOMBS=no
2617
2618 DEFAULT_wxUSE_PALETTE=yes
2619 DEFAULT_wxUSE_IMAGE=yes
2620 DEFAULT_wxUSE_GIF=yes
2621 DEFAULT_wxUSE_PCX=yes
bb9e79c0
VZ
2622 DEFAULT_wxUSE_TGA=yes
2623 DEFAULT_wxUSE_IFF=no DEFAULT_wxUSE_PNM=yes
a848cd7e
SC
2624 DEFAULT_wxUSE_XPM=yes
2625 DEFAULT_wxUSE_ICO_CUR=yes
2626 DEFAULT_wxUSE_ACCESSIBILITY=no
2627
2628 DEFAULT_wxUSE_MONOLITHIC=no
2629 DEFAULT_wxUSE_PLUGINS=no
2630 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2631
f34ca037 2632 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2633fi
2634
2635
2636
f34ca037 2637
a848cd7e
SC
2638for toolkit in `echo $ALL_TOOLKITS`; do
2639 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2640 if test "x$LINE" != "x" ; then
2641 has_toolkit_in_cache=1
2642 eval "DEFAULT_$LINE"
2643 eval "CACHE_$toolkit=1"
f34ca037
MW
2644
2645 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2646 if test "x$LINE" != "x" ; then
2647 eval "DEFAULT_$LINE"
2648 fi
a848cd7e
SC
2649 fi
2650done
2651
2652
2653
077c7880 2654 enablestring=
f321ab7f
VS
2655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2656echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
a848cd7e 2657 no_cache=0
f321ab7f 2658 # Check whether --enable-gui or --disable-gui was given.
a848cd7e 2659if test "${enable_gui+set}" = set; then
f321ab7f
VS
2660 enableval="$enable_gui"
2661
a848cd7e
SC
2662 if test "$enableval" = yes; then
2663 ac_cv_use_gui='wxUSE_GUI=yes'
2664 else
2665 ac_cv_use_gui='wxUSE_GUI=no'
2666 fi
2667
2668else
2669
2670 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2671 if test "x$LINE" != x ; then
2672 eval "DEFAULT_$LINE"
2673 else
2674 no_cache=1
2675 fi
2676
2677 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2678
f321ab7f 2679fi;
a848cd7e
SC
2680
2681 eval "$ac_cv_use_gui"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_GUI" = yes; then
f321ab7f
VS
2687 echo "$as_me:$LINENO: result: yes" >&5
2688echo "${ECHO_T}yes" >&6
a848cd7e 2689 else
f321ab7f
VS
2690 echo "$as_me:$LINENO: result: no" >&5
2691echo "${ECHO_T}no" >&6
a848cd7e
SC
2692 fi
2693
2694
077c7880 2695 enablestring=
f321ab7f
VS
2696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2697echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
a848cd7e 2698 no_cache=0
f321ab7f 2699 # Check whether --enable-monolithic or --disable-monolithic was given.
a848cd7e 2700if test "${enable_monolithic+set}" = set; then
f321ab7f
VS
2701 enableval="$enable_monolithic"
2702
a848cd7e
SC
2703 if test "$enableval" = yes; then
2704 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2705 else
2706 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2707 fi
2708
2709else
2710
2711 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2712 if test "x$LINE" != x ; then
2713 eval "DEFAULT_$LINE"
2714 else
2715 no_cache=1
2716 fi
2717
2718 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2719
f321ab7f 2720fi;
a848cd7e
SC
2721
2722 eval "$ac_cv_use_monolithic"
2723 if test "$no_cache" != 1; then
2724 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2725 fi
2726
2727 if test "$wxUSE_MONOLITHIC" = yes; then
f321ab7f
VS
2728 echo "$as_me:$LINENO: result: yes" >&5
2729echo "${ECHO_T}yes" >&6
a848cd7e 2730 else
f321ab7f
VS
2731 echo "$as_me:$LINENO: result: no" >&5
2732echo "${ECHO_T}no" >&6
a848cd7e
SC
2733 fi
2734
2735
077c7880 2736 enablestring=
f321ab7f
VS
2737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2738echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
a848cd7e 2739 no_cache=0
f321ab7f 2740 # Check whether --enable-plugins or --disable-plugins was given.
a848cd7e 2741if test "${enable_plugins+set}" = set; then
f321ab7f
VS
2742 enableval="$enable_plugins"
2743
a848cd7e
SC
2744 if test "$enableval" = yes; then
2745 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2746 else
2747 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2748 fi
2749
2750else
2751
2752 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2753 if test "x$LINE" != x ; then
2754 eval "DEFAULT_$LINE"
2755 else
2756 no_cache=1
2757 fi
2758
2759 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2760
f321ab7f 2761fi;
a848cd7e
SC
2762
2763 eval "$ac_cv_use_plugins"
2764 if test "$no_cache" != 1; then
2765 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2766 fi
2767
2768 if test "$wxUSE_PLUGINS" = yes; then
f321ab7f
VS
2769 echo "$as_me:$LINENO: result: yes" >&5
2770echo "${ECHO_T}yes" >&6
a848cd7e 2771 else
f321ab7f
VS
2772 echo "$as_me:$LINENO: result: no" >&5
2773echo "${ECHO_T}no" >&6
a848cd7e
SC
2774 fi
2775
2776
077c7880 2777 withstring=without
f321ab7f
VS
2778 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2779echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
1c14217d
VZ
2780 no_cache=0
2781
f321ab7f 2782# Check whether --with-subdirs or --without-subdirs was given.
1c14217d 2783if test "${with_subdirs+set}" = set; then
f321ab7f
VS
2784 withval="$with_subdirs"
2785
1c14217d
VZ
2786 if test "$withval" = yes; then
2787 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2788 else
2789 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2790 fi
2791
2792else
2793
2794 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2795 if test "x$LINE" != x ; then
2796 eval "DEFAULT_$LINE"
2797 else
2798 no_cache=1
2799 fi
2800
2801 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2802
f321ab7f 2803fi;
1c14217d
VZ
2804
2805 eval "$ac_cv_use_subdirs"
2806 if test "$no_cache" != 1; then
2807 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2808 fi
2809
2810 if test "$wxWITH_SUBDIRS" = yes; then
f321ab7f
VS
2811 echo "$as_me:$LINENO: result: yes" >&5
2812echo "${ECHO_T}yes" >&6
1c14217d 2813 else
f321ab7f
VS
2814 echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6
1c14217d
VZ
2816 fi
2817
2818
a848cd7e
SC
2819if test "$wxUSE_GUI" = "yes"; then
2820
2821
077c7880 2822 enablestring=
f321ab7f
VS
2823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2824echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
a848cd7e 2825 no_cache=0
f321ab7f 2826 # Check whether --enable-universal or --disable-universal was given.
a848cd7e 2827if test "${enable_universal+set}" = set; then
f321ab7f
VS
2828 enableval="$enable_universal"
2829
a848cd7e
SC
2830 if test "$enableval" = yes; then
2831 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2832 else
2833 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2834 fi
2835
2836else
2837
2838 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2839 if test "x$LINE" != x ; then
2840 eval "DEFAULT_$LINE"
2841 else
2842 no_cache=1
2843 fi
2844
2845 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2846
f321ab7f 2847fi;
a848cd7e
SC
2848
2849 eval "$ac_cv_use_universal"
2850 if test "$no_cache" != 1; then
2851 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2852 fi
2853
2854 if test "$wxUSE_UNIVERSAL" = yes; then
f321ab7f
VS
2855 echo "$as_me:$LINENO: result: yes" >&5
2856echo "${ECHO_T}yes" >&6
a848cd7e 2857 else
f321ab7f
VS
2858 echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6
a848cd7e
SC
2860 fi
2861
2862
f321ab7f 2863# Check whether --with-gtk or --without-gtk was given.
a848cd7e 2864if test "${with_gtk+set}" = set; then
f321ab7f
VS
2865 withval="$with_gtk"
2866 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2867fi;
a848cd7e 2868
f321ab7f 2869# Check whether --with-motif or --without-motif was given.
a848cd7e 2870if test "${with_motif+set}" = set; then
f321ab7f
VS
2871 withval="$with_motif"
2872 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2873fi;
a848cd7e 2874
f321ab7f 2875# Check whether --with-mac or --without-mac was given.
a848cd7e 2876if test "${with_mac+set}" = set; then
f321ab7f
VS
2877 withval="$with_mac"
2878 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2879fi;
a848cd7e 2880
f321ab7f 2881# Check whether --with-cocoa or --without-cocoa was given.
a848cd7e 2882if test "${with_cocoa+set}" = set; then
f321ab7f
VS
2883 withval="$with_cocoa"
2884 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2885fi;
a848cd7e 2886
f321ab7f 2887# Check whether --with-wine or --without-wine was given.
a848cd7e 2888if test "${with_wine+set}" = set; then
f321ab7f
VS
2889 withval="$with_wine"
2890 wxUSE_WINE="$withval" CACHE_WINE=1
2891fi;
a848cd7e 2892
f321ab7f 2893# Check whether --with-msw or --without-msw was given.
a848cd7e 2894if test "${with_msw+set}" = set; then
f321ab7f
VS
2895 withval="$with_msw"
2896 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2897fi;
a848cd7e 2898
f321ab7f 2899# Check whether --with-pm or --without-pm was given.
a848cd7e 2900if test "${with_pm+set}" = set; then
f321ab7f
VS
2901 withval="$with_pm"
2902 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2903fi;
a848cd7e 2904
f321ab7f 2905# Check whether --with-mgl or --without-mgl was given.
a848cd7e 2906if test "${with_mgl+set}" = set; then
f321ab7f
VS
2907 withval="$with_mgl"
2908 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2909fi;
a848cd7e 2910
f321ab7f 2911# Check whether --with-directfb or --without-directfb was given.
b3c86150 2912if test "${with_directfb+set}" = set; then
f321ab7f
VS
2913 withval="$with_directfb"
2914 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2915fi;
b3c86150 2916
f321ab7f 2917# Check whether --with-microwin or --without-microwin was given.
a848cd7e 2918if test "${with_microwin+set}" = set; then
f321ab7f
VS
2919 withval="$with_microwin"
2920 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2921fi;
a848cd7e 2922
f321ab7f 2923# Check whether --with-x11 or --without-x11 was given.
a848cd7e 2924if test "${with_x11+set}" = set; then
f321ab7f
VS
2925 withval="$with_x11"
2926 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2927fi;
a848cd7e 2928
077c7880 2929 enablestring=
f321ab7f
VS
2930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2931echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
a848cd7e 2932 no_cache=0
f321ab7f 2933 # Check whether --enable-nanox or --disable-nanox was given.
a848cd7e 2934if test "${enable_nanox+set}" = set; then
f321ab7f
VS
2935 enableval="$enable_nanox"
2936
a848cd7e
SC
2937 if test "$enableval" = yes; then
2938 ac_cv_use_nanox='wxUSE_NANOX=yes'
2939 else
2940 ac_cv_use_nanox='wxUSE_NANOX=no'
2941 fi
2942
2943else
2944
2945 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2953
f321ab7f 2954fi;
a848cd7e
SC
2955
2956 eval "$ac_cv_use_nanox"
2957 if test "$no_cache" != 1; then
2958 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2959 fi
2960
2961 if test "$wxUSE_NANOX" = yes; then
f321ab7f
VS
2962 echo "$as_me:$LINENO: result: yes" >&5
2963echo "${ECHO_T}yes" >&6
a848cd7e 2964 else
f321ab7f
VS
2965 echo "$as_me:$LINENO: result: no" >&5
2966echo "${ECHO_T}no" >&6
a848cd7e
SC
2967 fi
2968
2969
f321ab7f 2970# Check whether --enable-gtk2 or --disable-gtk2 was given.
f34ca037 2971if test "${enable_gtk2+set}" = set; then
f321ab7f
VS
2972 enableval="$enable_gtk2"
2973 wxUSE_GTK2="$enableval"
2974fi;
a848cd7e 2975
077c7880 2976 enablestring=
f321ab7f
VS
2977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2978echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
a848cd7e 2979 no_cache=0
f321ab7f 2980 # Check whether --enable-gpe or --disable-gpe was given.
a848cd7e 2981if test "${enable_gpe+set}" = set; then
f321ab7f
VS
2982 enableval="$enable_gpe"
2983
a848cd7e
SC
2984 if test "$enableval" = yes; then
2985 ac_cv_use_gpe='wxUSE_GPE=yes'
2986 else
2987 ac_cv_use_gpe='wxUSE_GPE=no'
2988 fi
2989
2990else
2991
2992 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2993 if test "x$LINE" != x ; then
2994 eval "DEFAULT_$LINE"
2995 else
2996 no_cache=1
2997 fi
2998
2999 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
3000
f321ab7f 3001fi;
a848cd7e
SC
3002
3003 eval "$ac_cv_use_gpe"
3004 if test "$no_cache" != 1; then
3005 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3006 fi
3007
3008 if test "$wxUSE_GPE" = yes; then
f321ab7f
VS
3009 echo "$as_me:$LINENO: result: yes" >&5
3010echo "${ECHO_T}yes" >&6
a848cd7e 3011 else
f321ab7f
VS
3012 echo "$as_me:$LINENO: result: no" >&5
3013echo "${ECHO_T}no" >&6
a848cd7e
SC
3014 fi
3015
3016
3017
f321ab7f
VS
3018 echo "$as_me:$LINENO: checking for --with-libpng" >&5
3019echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
a848cd7e
SC
3020 no_cache=0
3021
f321ab7f 3022# Check whether --with-libpng or --without-libpng was given.
a848cd7e 3023if test "${with_libpng+set}" = set; then
f321ab7f
VS
3024 withval="$with_libpng"
3025
a848cd7e
SC
3026 if test "$withval" = yes; then
3027 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3028 elif test "$withval" = no; then
3029 ac_cv_use_libpng='wxUSE_LIBPNG=no'
3030 elif test "$withval" = sys; then
3031 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3032 elif test "$withval" = builtin; then
3033 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3034 else
3035 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3036echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3037 { (exit 1); exit 1; }; }
3038 fi
3039
3040else
3041
3042 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3043 if test "x$LINE" != x ; then
3044 eval "DEFAULT_$LINE"
3045 else
3046 no_cache=1
3047 fi
3048
3049 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3050
f321ab7f 3051fi;
a848cd7e
SC
3052
3053 eval "$ac_cv_use_libpng"
3054 if test "$no_cache" != 1; then
3055 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3056 fi
3057
3058 if test "$wxUSE_LIBPNG" = yes; then
f321ab7f
VS
3059 echo "$as_me:$LINENO: result: yes" >&5
3060echo "${ECHO_T}yes" >&6
a848cd7e 3061 elif test "$wxUSE_LIBPNG" = no; then
f321ab7f
VS
3062 echo "$as_me:$LINENO: result: no" >&5
3063echo "${ECHO_T}no" >&6
a848cd7e 3064 elif test "$wxUSE_LIBPNG" = sys; then
f321ab7f
VS
3065 echo "$as_me:$LINENO: result: system version" >&5
3066echo "${ECHO_T}system version" >&6
a848cd7e 3067 elif test "$wxUSE_LIBPNG" = builtin; then
f321ab7f
VS
3068 echo "$as_me:$LINENO: result: builtin version" >&5
3069echo "${ECHO_T}builtin version" >&6
a848cd7e
SC
3070 else
3071 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3072echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3073 { (exit 1); exit 1; }; }
3074 fi
3075
3076
f321ab7f
VS
3077 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3078echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
a848cd7e
SC
3079 no_cache=0
3080
f321ab7f 3081# Check whether --with-libjpeg or --without-libjpeg was given.
a848cd7e 3082if test "${with_libjpeg+set}" = set; then
f321ab7f
VS
3083 withval="$with_libjpeg"
3084
a848cd7e
SC
3085 if test "$withval" = yes; then
3086 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3087 elif test "$withval" = no; then
3088 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3089 elif test "$withval" = sys; then
3090 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3091 elif test "$withval" = builtin; then
3092 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3093 else
3094 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3095echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3096 { (exit 1); exit 1; }; }
3097 fi
3098
3099else
3100
3101 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3109
f321ab7f 3110fi;
a848cd7e
SC
3111
3112 eval "$ac_cv_use_libjpeg"
3113 if test "$no_cache" != 1; then
3114 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3115 fi
3116
3117 if test "$wxUSE_LIBJPEG" = yes; then
f321ab7f
VS
3118 echo "$as_me:$LINENO: result: yes" >&5
3119echo "${ECHO_T}yes" >&6
a848cd7e 3120 elif test "$wxUSE_LIBJPEG" = no; then
f321ab7f
VS
3121 echo "$as_me:$LINENO: result: no" >&5
3122echo "${ECHO_T}no" >&6
a848cd7e 3123 elif test "$wxUSE_LIBJPEG" = sys; then
f321ab7f
VS
3124 echo "$as_me:$LINENO: result: system version" >&5
3125echo "${ECHO_T}system version" >&6
a848cd7e 3126 elif test "$wxUSE_LIBJPEG" = builtin; then
f321ab7f
VS
3127 echo "$as_me:$LINENO: result: builtin version" >&5
3128echo "${ECHO_T}builtin version" >&6
a848cd7e
SC
3129 else
3130 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3131echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3132 { (exit 1); exit 1; }; }
3133 fi
3134
3135
f321ab7f
VS
3136 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3137echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
a848cd7e
SC
3138 no_cache=0
3139
f321ab7f 3140# Check whether --with-libtiff or --without-libtiff was given.
a848cd7e 3141if test "${with_libtiff+set}" = set; then
f321ab7f
VS
3142 withval="$with_libtiff"
3143
a848cd7e
SC
3144 if test "$withval" = yes; then
3145 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3146 elif test "$withval" = no; then
3147 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3148 elif test "$withval" = sys; then
3149 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3150 elif test "$withval" = builtin; then
3151 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3152 else
3153 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3154echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3155 { (exit 1); exit 1; }; }
3156 fi
3157
3158else
3159
3160 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3161 if test "x$LINE" != x ; then
3162 eval "DEFAULT_$LINE"
3163 else
3164 no_cache=1
3165 fi
3166
3167 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3168
f321ab7f 3169fi;
a848cd7e
SC
3170
3171 eval "$ac_cv_use_libtiff"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_LIBTIFF" = yes; then
f321ab7f
VS
3177 echo "$as_me:$LINENO: result: yes" >&5
3178echo "${ECHO_T}yes" >&6
a848cd7e 3179 elif test "$wxUSE_LIBTIFF" = no; then
f321ab7f
VS
3180 echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
a848cd7e 3182 elif test "$wxUSE_LIBTIFF" = sys; then
f321ab7f
VS
3183 echo "$as_me:$LINENO: result: system version" >&5
3184echo "${ECHO_T}system version" >&6
a848cd7e 3185 elif test "$wxUSE_LIBTIFF" = builtin; then
f321ab7f
VS
3186 echo "$as_me:$LINENO: result: builtin version" >&5
3187echo "${ECHO_T}builtin version" >&6
a848cd7e
SC
3188 else
3189 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3190echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3191 { (exit 1); exit 1; }; }
3192 fi
3193
3194
f321ab7f
VS
3195 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3196echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
a848cd7e
SC
3197 no_cache=0
3198
f321ab7f 3199# Check whether --with-libxpm or --without-libxpm was given.
a848cd7e 3200if test "${with_libxpm+set}" = set; then
f321ab7f
VS
3201 withval="$with_libxpm"
3202
a848cd7e
SC
3203 if test "$withval" = yes; then
3204 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3205 elif test "$withval" = no; then
3206 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3207 elif test "$withval" = sys; then
3208 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3209 elif test "$withval" = builtin; then
3210 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3211 else
3212 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3213echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3214 { (exit 1); exit 1; }; }
3215 fi
3216
3217else
3218
3219 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3220 if test "x$LINE" != x ; then
3221 eval "DEFAULT_$LINE"
3222 else
3223 no_cache=1
3224 fi
3225
3226 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3227
f321ab7f 3228fi;
a848cd7e
SC
3229
3230 eval "$ac_cv_use_libxpm"
3231 if test "$no_cache" != 1; then
3232 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3233 fi
3234
3235 if test "$wxUSE_LIBXPM" = yes; then
f321ab7f
VS
3236 echo "$as_me:$LINENO: result: yes" >&5
3237echo "${ECHO_T}yes" >&6
a848cd7e 3238 elif test "$wxUSE_LIBXPM" = no; then
f321ab7f
VS
3239 echo "$as_me:$LINENO: result: no" >&5
3240echo "${ECHO_T}no" >&6
a848cd7e 3241 elif test "$wxUSE_LIBXPM" = sys; then
f321ab7f
VS
3242 echo "$as_me:$LINENO: result: system version" >&5
3243echo "${ECHO_T}system version" >&6
a848cd7e 3244 elif test "$wxUSE_LIBXPM" = builtin; then
f321ab7f
VS
3245 echo "$as_me:$LINENO: result: builtin version" >&5
3246echo "${ECHO_T}builtin version" >&6
a848cd7e
SC
3247 else
3248 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3249echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3250 { (exit 1); exit 1; }; }
3251 fi
3252
3253
077c7880 3254 withstring=
f321ab7f
VS
3255 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3256echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3257 no_cache=0
3258
f321ab7f 3259# Check whether --with-libmspack or --without-libmspack was given.
a848cd7e 3260if test "${with_libmspack+set}" = set; then
f321ab7f
VS
3261 withval="$with_libmspack"
3262
a848cd7e
SC
3263 if test "$withval" = yes; then
3264 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3265 else
3266 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3267 fi
3268
3269else
3270
3271 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3272 if test "x$LINE" != x ; then
3273 eval "DEFAULT_$LINE"
3274 else
3275 no_cache=1
3276 fi
3277
3278 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3279
f321ab7f 3280fi;
a848cd7e
SC
3281
3282 eval "$ac_cv_use_libmspack"
3283 if test "$no_cache" != 1; then
3284 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3285 fi
3286
3287 if test "$wxUSE_LIBMSPACK" = yes; then
f321ab7f
VS
3288 echo "$as_me:$LINENO: result: yes" >&5
3289echo "${ECHO_T}yes" >&6
a848cd7e 3290 else
f321ab7f
VS
3291 echo "$as_me:$LINENO: result: no" >&5
3292echo "${ECHO_T}no" >&6
a848cd7e
SC
3293 fi
3294
3295
077c7880 3296 withstring=
f321ab7f
VS
3297 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3298echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3299 no_cache=0
3300
f321ab7f 3301# Check whether --with-sdl or --without-sdl was given.
a848cd7e 3302if test "${with_sdl+set}" = set; then
f321ab7f
VS
3303 withval="$with_sdl"
3304
a848cd7e
SC
3305 if test "$withval" = yes; then
3306 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3307 else
3308 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3309 fi
3310
3311else
3312
3313 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3314 if test "x$LINE" != x ; then
3315 eval "DEFAULT_$LINE"
3316 else
3317 no_cache=1
3318 fi
3319
3320 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3321
f321ab7f 3322fi;
a848cd7e
SC
3323
3324 eval "$ac_cv_use_sdl"
3325 if test "$no_cache" != 1; then
3326 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3327 fi
3328
3329 if test "$wxUSE_LIBSDL" = yes; then
f321ab7f
VS
3330 echo "$as_me:$LINENO: result: yes" >&5
3331echo "${ECHO_T}yes" >&6
a848cd7e 3332 else
f321ab7f
VS
3333 echo "$as_me:$LINENO: result: no" >&5
3334echo "${ECHO_T}no" >&6
a848cd7e
SC
3335 fi
3336
3337
077c7880 3338 withstring=
f321ab7f
VS
3339 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3340echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3341 no_cache=0
3342
f321ab7f 3343# Check whether --with-gnomeprint or --without-gnomeprint was given.
d1c38808 3344if test "${with_gnomeprint+set}" = set; then
f321ab7f
VS
3345 withval="$with_gnomeprint"
3346
d1c38808
VZ
3347 if test "$withval" = yes; then
3348 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3349 else
3350 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3351 fi
3352
3353else
3354
3355 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3356 if test "x$LINE" != x ; then
3357 eval "DEFAULT_$LINE"
3358 else
3359 no_cache=1
3360 fi
3361
3362 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3363
f321ab7f 3364fi;
d1c38808
VZ
3365
3366 eval "$ac_cv_use_gnomeprint"
3367 if test "$no_cache" != 1; then
3368 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3369 fi
3370
3371 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
f321ab7f
VS
3372 echo "$as_me:$LINENO: result: yes" >&5
3373echo "${ECHO_T}yes" >&6
d1c38808 3374 else
f321ab7f
VS
3375 echo "$as_me:$LINENO: result: no" >&5
3376echo "${ECHO_T}no" >&6
d1c38808
VZ
3377 fi
3378
3379
077c7880 3380 withstring=
f321ab7f
VS
3381 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3382echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
2b850ae1
RR
3383 no_cache=0
3384
f321ab7f 3385# Check whether --with-gnomevfs or --without-gnomevfs was given.
2b850ae1 3386if test "${with_gnomevfs+set}" = set; then
f321ab7f
VS
3387 withval="$with_gnomevfs"
3388
2b850ae1
RR
3389 if test "$withval" = yes; then
3390 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3391 else
3392 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3393 fi
3394
3395else
3396
3397 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3398 if test "x$LINE" != x ; then
3399 eval "DEFAULT_$LINE"
3400 else
3401 no_cache=1
3402 fi
3403
3404 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3405
f321ab7f 3406fi;
2b850ae1
RR
3407
3408 eval "$ac_cv_use_gnomevfs"
3409 if test "$no_cache" != 1; then
3410 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3411 fi
3412
3413 if test "$wxUSE_LIBGNOMEVFS" = yes; then
f321ab7f
VS
3414 echo "$as_me:$LINENO: result: yes" >&5
3415echo "${ECHO_T}yes" >&6
2b850ae1 3416 else
f321ab7f
VS
3417 echo "$as_me:$LINENO: result: no" >&5
3418echo "${ECHO_T}no" >&6
2b850ae1
RR
3419 fi
3420
3421
077c7880 3422 withstring=
f321ab7f
VS
3423 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3424echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3565d135
RR
3425 no_cache=0
3426
f321ab7f 3427# Check whether --with-hildon or --without-hildon was given.
3565d135 3428if test "${with_hildon+set}" = set; then
f321ab7f
VS
3429 withval="$with_hildon"
3430
3565d135
RR
3431 if test "$withval" = yes; then
3432 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3433 else
3434 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3435 fi
3436
3437else
3438
3439 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3447
f321ab7f 3448fi;
3565d135
RR
3449
3450 eval "$ac_cv_use_hildon"
3451 if test "$no_cache" != 1; then
3452 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3453 fi
3454
3455 if test "$wxUSE_LIBHILDON" = yes; then
f321ab7f
VS
3456 echo "$as_me:$LINENO: result: yes" >&5
3457echo "${ECHO_T}yes" >&6
3565d135 3458 else
f321ab7f
VS
3459 echo "$as_me:$LINENO: result: no" >&5
3460echo "${ECHO_T}no" >&6
3565d135
RR
3461 fi
3462
3463
077c7880 3464 withstring=
f321ab7f
VS
3465 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3466echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3467 no_cache=0
3468
f321ab7f 3469# Check whether --with-opengl or --without-opengl was given.
a848cd7e 3470if test "${with_opengl+set}" = set; then
f321ab7f
VS
3471 withval="$with_opengl"
3472
a848cd7e
SC
3473 if test "$withval" = yes; then
3474 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3475 else
3476 ac_cv_use_opengl='wxUSE_OPENGL=no'
3477 fi
3478
3479else
3480
3481 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3482 if test "x$LINE" != x ; then
3483 eval "DEFAULT_$LINE"
3484 else
3485 no_cache=1
3486 fi
3487
3488 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3489
f321ab7f 3490fi;
a848cd7e
SC
3491
3492 eval "$ac_cv_use_opengl"
3493 if test "$no_cache" != 1; then
3494 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3495 fi
3496
3497 if test "$wxUSE_OPENGL" = yes; then
f321ab7f
VS
3498 echo "$as_me:$LINENO: result: yes" >&5
3499echo "${ECHO_T}yes" >&6
a848cd7e 3500 else
f321ab7f
VS
3501 echo "$as_me:$LINENO: result: no" >&5
3502echo "${ECHO_T}no" >&6
a848cd7e
SC
3503 fi
3504
3505
4353a8df
VZ
3506if test "$wxUSE_UNIVERSAL" = "yes"; then
3507
f321ab7f 3508# Check whether --with-themes or --without-themes was given.
4353a8df 3509if test "${with_themes+set}" = set; then
f321ab7f
VS
3510 withval="$with_themes"
3511 wxUNIV_THEMES="$withval"
3512fi;
4353a8df
VZ
3513fi
3514
a848cd7e
SC
3515fi
3516
3517
077c7880 3518 withstring=
f321ab7f
VS
3519 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3520echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3521 no_cache=0
3522
f321ab7f 3523# Check whether --with-dmalloc or --without-dmalloc was given.
a848cd7e 3524if test "${with_dmalloc+set}" = set; then
f321ab7f
VS
3525 withval="$with_dmalloc"
3526
a848cd7e
SC
3527 if test "$withval" = yes; then
3528 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3529 else
3530 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3531 fi
3532
3533else
3534
3535 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3536 if test "x$LINE" != x ; then
3537 eval "DEFAULT_$LINE"
3538 else
3539 no_cache=1
3540 fi
3541
3542 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3543
f321ab7f 3544fi;
a848cd7e
SC
3545
3546 eval "$ac_cv_use_dmalloc"
3547 if test "$no_cache" != 1; then
3548 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3549 fi
3550
3551 if test "$wxUSE_DMALLOC" = yes; then
f321ab7f
VS
3552 echo "$as_me:$LINENO: result: yes" >&5
3553echo "${ECHO_T}yes" >&6
a848cd7e 3554 else
f321ab7f
VS
3555 echo "$as_me:$LINENO: result: no" >&5
3556echo "${ECHO_T}no" >&6
a848cd7e
SC
3557 fi
3558
3559
f321ab7f
VS
3560 echo "$as_me:$LINENO: checking for --with-regex" >&5
3561echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
a848cd7e
SC
3562 no_cache=0
3563
f321ab7f 3564# Check whether --with-regex or --without-regex was given.
a848cd7e 3565if test "${with_regex+set}" = set; then
f321ab7f
VS
3566 withval="$with_regex"
3567
a848cd7e
SC
3568 if test "$withval" = yes; then
3569 ac_cv_use_regex='wxUSE_REGEX=yes'
3570 elif test "$withval" = no; then
3571 ac_cv_use_regex='wxUSE_REGEX=no'
3572 elif test "$withval" = sys; then
3573 ac_cv_use_regex='wxUSE_REGEX=sys'
3574 elif test "$withval" = builtin; then
3575 ac_cv_use_regex='wxUSE_REGEX=builtin'
3576 else
3577 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3578echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3579 { (exit 1); exit 1; }; }
3580 fi
3581
3582else
3583
3584 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3585 if test "x$LINE" != x ; then
3586 eval "DEFAULT_$LINE"
3587 else
3588 no_cache=1
3589 fi
3590
3591 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3592
f321ab7f 3593fi;
a848cd7e
SC
3594
3595 eval "$ac_cv_use_regex"
3596 if test "$no_cache" != 1; then
3597 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3598 fi
3599
3600 if test "$wxUSE_REGEX" = yes; then
f321ab7f
VS
3601 echo "$as_me:$LINENO: result: yes" >&5
3602echo "${ECHO_T}yes" >&6
a848cd7e 3603 elif test "$wxUSE_REGEX" = no; then
f321ab7f
VS
3604 echo "$as_me:$LINENO: result: no" >&5
3605echo "${ECHO_T}no" >&6
a848cd7e 3606 elif test "$wxUSE_REGEX" = sys; then
f321ab7f
VS
3607 echo "$as_me:$LINENO: result: system version" >&5
3608echo "${ECHO_T}system version" >&6
a848cd7e 3609 elif test "$wxUSE_REGEX" = builtin; then
f321ab7f
VS
3610 echo "$as_me:$LINENO: result: builtin version" >&5
3611echo "${ECHO_T}builtin version" >&6
a848cd7e
SC
3612 else
3613 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3614echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3615 { (exit 1); exit 1; }; }
3616 fi
3617
3618
f321ab7f
VS
3619 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3620echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
a848cd7e
SC
3621 no_cache=0
3622
f321ab7f 3623# Check whether --with-zlib or --without-zlib was given.
a848cd7e 3624if test "${with_zlib+set}" = set; then
f321ab7f
VS
3625 withval="$with_zlib"
3626
a848cd7e
SC
3627 if test "$withval" = yes; then
3628 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3629 elif test "$withval" = no; then
3630 ac_cv_use_zlib='wxUSE_ZLIB=no'
3631 elif test "$withval" = sys; then
3632 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3633 elif test "$withval" = builtin; then
3634 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3635 else
3636 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3637echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3638 { (exit 1); exit 1; }; }
3639 fi
3640
3641else
3642
3643 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3651
f321ab7f 3652fi;
a848cd7e
SC
3653
3654 eval "$ac_cv_use_zlib"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_ZLIB" = yes; then
f321ab7f
VS
3660 echo "$as_me:$LINENO: result: yes" >&5
3661echo "${ECHO_T}yes" >&6
a848cd7e 3662 elif test "$wxUSE_ZLIB" = no; then
f321ab7f
VS
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
a848cd7e 3665 elif test "$wxUSE_ZLIB" = sys; then
f321ab7f
VS
3666 echo "$as_me:$LINENO: result: system version" >&5
3667echo "${ECHO_T}system version" >&6
a848cd7e 3668 elif test "$wxUSE_ZLIB" = builtin; then
f321ab7f
VS
3669 echo "$as_me:$LINENO: result: builtin version" >&5
3670echo "${ECHO_T}builtin version" >&6
a848cd7e
SC
3671 else
3672 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3673echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3674 { (exit 1); exit 1; }; }
3675 fi
3676
3677
f321ab7f
VS
3678 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3679echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
a848cd7e
SC
3680 no_cache=0
3681
f321ab7f 3682# Check whether --with-odbc or --without-odbc was given.
a848cd7e 3683if test "${with_odbc+set}" = set; then
f321ab7f
VS
3684 withval="$with_odbc"
3685
a848cd7e
SC
3686 if test "$withval" = yes; then
3687 ac_cv_use_odbc='wxUSE_ODBC=yes'
3688 elif test "$withval" = no; then
3689 ac_cv_use_odbc='wxUSE_ODBC=no'
3690 elif test "$withval" = sys; then
3691 ac_cv_use_odbc='wxUSE_ODBC=sys'
3692 elif test "$withval" = builtin; then
3693 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3694 else
3695 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3696echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3697 { (exit 1); exit 1; }; }
3698 fi
3699
3700else
3701
3702 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3703 if test "x$LINE" != x ; then
3704 eval "DEFAULT_$LINE"
3705 else
3706 no_cache=1
3707 fi
3708
3709 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3710
f321ab7f 3711fi;
a848cd7e
SC
3712
3713 eval "$ac_cv_use_odbc"
3714 if test "$no_cache" != 1; then
3715 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3716 fi
3717
3718 if test "$wxUSE_ODBC" = yes; then
f321ab7f
VS
3719 echo "$as_me:$LINENO: result: yes" >&5
3720echo "${ECHO_T}yes" >&6
a848cd7e 3721 elif test "$wxUSE_ODBC" = no; then
f321ab7f
VS
3722 echo "$as_me:$LINENO: result: no" >&5
3723echo "${ECHO_T}no" >&6
a848cd7e 3724 elif test "$wxUSE_ODBC" = sys; then
f321ab7f
VS
3725 echo "$as_me:$LINENO: result: system version" >&5
3726echo "${ECHO_T}system version" >&6
a848cd7e 3727 elif test "$wxUSE_ODBC" = builtin; then
f321ab7f
VS
3728 echo "$as_me:$LINENO: result: builtin version" >&5
3729echo "${ECHO_T}builtin version" >&6
a848cd7e
SC
3730 else
3731 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3732echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3733 { (exit 1); exit 1; }; }
3734 fi
3735
3736
f321ab7f
VS
3737 echo "$as_me:$LINENO: checking for --with-expat" >&5
3738echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
a848cd7e
SC
3739 no_cache=0
3740
f321ab7f 3741# Check whether --with-expat or --without-expat was given.
a848cd7e 3742if test "${with_expat+set}" = set; then
f321ab7f
VS
3743 withval="$with_expat"
3744
a848cd7e
SC
3745 if test "$withval" = yes; then
3746 ac_cv_use_expat='wxUSE_EXPAT=yes'
3747 elif test "$withval" = no; then
3748 ac_cv_use_expat='wxUSE_EXPAT=no'
3749 elif test "$withval" = sys; then
3750 ac_cv_use_expat='wxUSE_EXPAT=sys'
3751 elif test "$withval" = builtin; then
3752 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3753 else
3754 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3755echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3756 { (exit 1); exit 1; }; }
3757 fi
3758
3759else
3760
3761 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3769
f321ab7f 3770fi;
a848cd7e
SC
3771
3772 eval "$ac_cv_use_expat"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_EXPAT" = yes; then
f321ab7f
VS
3778 echo "$as_me:$LINENO: result: yes" >&5
3779echo "${ECHO_T}yes" >&6
a848cd7e 3780 elif test "$wxUSE_EXPAT" = no; then
f321ab7f
VS
3781 echo "$as_me:$LINENO: result: no" >&5
3782echo "${ECHO_T}no" >&6
a848cd7e 3783 elif test "$wxUSE_EXPAT" = sys; then
f321ab7f
VS
3784 echo "$as_me:$LINENO: result: system version" >&5
3785echo "${ECHO_T}system version" >&6
a848cd7e 3786 elif test "$wxUSE_EXPAT" = builtin; then
f321ab7f
VS
3787 echo "$as_me:$LINENO: result: builtin version" >&5
3788echo "${ECHO_T}builtin version" >&6
a848cd7e
SC
3789 else
3790 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3791echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3792 { (exit 1); exit 1; }; }
3793 fi
3794
3795
3796
3797
077c7880 3798 enablestring=
f321ab7f
VS
3799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3800echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
a848cd7e 3801 no_cache=0
f321ab7f 3802 # Check whether --enable-shared or --disable-shared was given.
a848cd7e 3803if test "${enable_shared+set}" = set; then
f321ab7f
VS
3804 enableval="$enable_shared"
3805
a848cd7e
SC
3806 if test "$enableval" = yes; then
3807 ac_cv_use_shared='wxUSE_SHARED=yes'
3808 else
3809 ac_cv_use_shared='wxUSE_SHARED=no'
3810 fi
3811
3812else
3813
3814 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3815 if test "x$LINE" != x ; then
3816 eval "DEFAULT_$LINE"
3817 else
3818 no_cache=1
3819 fi
3820
3821 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3822
f321ab7f 3823fi;
a848cd7e
SC
3824
3825 eval "$ac_cv_use_shared"
3826 if test "$no_cache" != 1; then
3827 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3828 fi
3829
3830 if test "$wxUSE_SHARED" = yes; then
f321ab7f
VS
3831 echo "$as_me:$LINENO: result: yes" >&5
3832echo "${ECHO_T}yes" >&6
a848cd7e 3833 else
f321ab7f
VS
3834 echo "$as_me:$LINENO: result: no" >&5
3835echo "${ECHO_T}no" >&6
a848cd7e
SC
3836 fi
3837
3838
077c7880 3839 enablestring=
f321ab7f
VS
3840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3841echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
a848cd7e 3842 no_cache=0
f321ab7f 3843 # Check whether --enable-optimise or --disable-optimise was given.
a848cd7e 3844if test "${enable_optimise+set}" = set; then
f321ab7f
VS
3845 enableval="$enable_optimise"
3846
a848cd7e
SC
3847 if test "$enableval" = yes; then
3848 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3849 else
3850 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3851 fi
3852
3853else
3854
3855 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3856 if test "x$LINE" != x ; then
3857 eval "DEFAULT_$LINE"
3858 else
3859 no_cache=1
3860 fi
3861
3862 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3863
f321ab7f 3864fi;
a848cd7e
SC
3865
3866 eval "$ac_cv_use_optimise"
3867 if test "$no_cache" != 1; then
3868 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3869 fi
3870
3871 if test "$wxUSE_OPTIMISE" = yes; then
f321ab7f
VS
3872 echo "$as_me:$LINENO: result: yes" >&5
3873echo "${ECHO_T}yes" >&6
a848cd7e 3874 else
f321ab7f
VS
3875 echo "$as_me:$LINENO: result: no" >&5
3876echo "${ECHO_T}no" >&6
a848cd7e
SC
3877 fi
3878
3879
077c7880 3880 enablestring=
f321ab7f
VS
3881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3882echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
a848cd7e 3883 no_cache=0
f321ab7f 3884 # Check whether --enable-debug or --disable-debug was given.
a848cd7e 3885if test "${enable_debug+set}" = set; then
f321ab7f
VS
3886 enableval="$enable_debug"
3887
a848cd7e
SC
3888 if test "$enableval" = yes; then
3889 ac_cv_use_debug='wxUSE_DEBUG=yes'
3890 else
3891 ac_cv_use_debug='wxUSE_DEBUG=no'
3892 fi
3893
3894else
3895
3896 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3897 if test "x$LINE" != x ; then
3898 eval "DEFAULT_$LINE"
3899 else
3900 no_cache=1
3901 fi
3902
3903 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3904
f321ab7f 3905fi;
a848cd7e
SC
3906
3907 eval "$ac_cv_use_debug"
3908 if test "$no_cache" != 1; then
3909 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3910 fi
3911
3912 if test "$wxUSE_DEBUG" = yes; then
f321ab7f
VS
3913 echo "$as_me:$LINENO: result: yes" >&5
3914echo "${ECHO_T}yes" >&6
a848cd7e 3915 else
f321ab7f
VS
3916 echo "$as_me:$LINENO: result: no" >&5
3917echo "${ECHO_T}no" >&6
a848cd7e
SC
3918 fi
3919
3920
077c7880 3921 enablestring=
f321ab7f
VS
3922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3923echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
a848cd7e 3924 no_cache=0
f321ab7f 3925 # Check whether --enable-stl or --disable-stl was given.
a848cd7e 3926if test "${enable_stl+set}" = set; then
f321ab7f
VS
3927 enableval="$enable_stl"
3928
a848cd7e
SC
3929 if test "$enableval" = yes; then
3930 ac_cv_use_stl='wxUSE_STL=yes'
3931 else
3932 ac_cv_use_stl='wxUSE_STL=no'
3933 fi
3934
3935else
3936
3937 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3938 if test "x$LINE" != x ; then
3939 eval "DEFAULT_$LINE"
3940 else
3941 no_cache=1
3942 fi
3943
3944 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3945
f321ab7f 3946fi;
a848cd7e
SC
3947
3948 eval "$ac_cv_use_stl"
3949 if test "$no_cache" != 1; then
3950 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3951 fi
3952
3953 if test "$wxUSE_STL" = yes; then
f321ab7f
VS
3954 echo "$as_me:$LINENO: result: yes" >&5
3955echo "${ECHO_T}yes" >&6
a848cd7e 3956 else
f321ab7f
VS
3957 echo "$as_me:$LINENO: result: no" >&5
3958echo "${ECHO_T}no" >&6
a848cd7e
SC
3959 fi
3960
3961if test "$USE_OS2" = "1"; then
69120ee4 3962 DEFAULT_wxUSE_OMF=no
a848cd7e 3963
077c7880 3964 enablestring=
f321ab7f
VS
3965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3966echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
a848cd7e 3967 no_cache=0
f321ab7f 3968 # Check whether --enable-omf or --disable-omf was given.
a848cd7e 3969if test "${enable_omf+set}" = set; then
f321ab7f
VS
3970 enableval="$enable_omf"
3971
a848cd7e
SC
3972 if test "$enableval" = yes; then
3973 ac_cv_use_omf='wxUSE_OMF=yes'
3974 else
3975 ac_cv_use_omf='wxUSE_OMF=no'
3976 fi
3977
3978else
3979
3980 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3981 if test "x$LINE" != x ; then
3982 eval "DEFAULT_$LINE"
3983 else
3984 no_cache=1
3985 fi
3986
3987 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3988
f321ab7f 3989fi;
a848cd7e
SC
3990
3991 eval "$ac_cv_use_omf"
3992 if test "$no_cache" != 1; then
3993 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3994 fi
3995
3996 if test "$wxUSE_OMF" = yes; then
f321ab7f
VS
3997 echo "$as_me:$LINENO: result: yes" >&5
3998echo "${ECHO_T}yes" >&6
a848cd7e 3999 else
f321ab7f
VS
4000 echo "$as_me:$LINENO: result: no" >&5
4001echo "${ECHO_T}no" >&6
a848cd7e
SC
4002 fi
4003
4004fi
4005
4006if test "$wxUSE_DEBUG" = "yes"; then
4007 DEFAULT_wxUSE_DEBUG_FLAG=yes
4008 DEFAULT_wxUSE_DEBUG_INFO=yes
4009 BUILD=debug
4010elif test "$wxUSE_DEBUG" = "no"; then
4011 DEFAULT_wxUSE_DEBUG_FLAG=no
4012 DEFAULT_wxUSE_DEBUG_INFO=no
4013 BUILD=release
4014fi
4015
4016
077c7880 4017 enablestring=
f321ab7f
VS
4018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4019echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
a848cd7e 4020 no_cache=0
f321ab7f 4021 # Check whether --enable-debug_flag or --disable-debug_flag was given.
a848cd7e 4022if test "${enable_debug_flag+set}" = set; then
f321ab7f
VS
4023 enableval="$enable_debug_flag"
4024
a848cd7e
SC
4025 if test "$enableval" = yes; then
4026 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4027 else
4028 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4029 fi
4030
4031else
4032
4033 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4041
f321ab7f 4042fi;
a848cd7e
SC
4043
4044 eval "$ac_cv_use_debug_flag"
4045 if test "$no_cache" != 1; then
4046 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4047 fi
4048
4049 if test "$wxUSE_DEBUG_FLAG" = yes; then
f321ab7f
VS
4050 echo "$as_me:$LINENO: result: yes" >&5
4051echo "${ECHO_T}yes" >&6
a848cd7e 4052 else
f321ab7f
VS
4053 echo "$as_me:$LINENO: result: no" >&5
4054echo "${ECHO_T}no" >&6
a848cd7e
SC
4055 fi
4056
4057
077c7880 4058 enablestring=
f321ab7f
VS
4059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4060echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
a848cd7e 4061 no_cache=0
f321ab7f 4062 # Check whether --enable-debug_info or --disable-debug_info was given.
a848cd7e 4063if test "${enable_debug_info+set}" = set; then
f321ab7f
VS
4064 enableval="$enable_debug_info"
4065
a848cd7e
SC
4066 if test "$enableval" = yes; then
4067 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4068 else
4069 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4070 fi
4071
4072else
4073
4074 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4075 if test "x$LINE" != x ; then
4076 eval "DEFAULT_$LINE"
4077 else
4078 no_cache=1
4079 fi
4080
4081 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4082
f321ab7f 4083fi;
a848cd7e
SC
4084
4085 eval "$ac_cv_use_debug_info"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_DEBUG_INFO" = yes; then
f321ab7f
VS
4091 echo "$as_me:$LINENO: result: yes" >&5
4092echo "${ECHO_T}yes" >&6
a848cd7e 4093 else
f321ab7f
VS
4094 echo "$as_me:$LINENO: result: no" >&5
4095echo "${ECHO_T}no" >&6
a848cd7e
SC
4096 fi
4097
4098
077c7880 4099 enablestring=
f321ab7f
VS
4100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4101echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
a848cd7e 4102 no_cache=0
f321ab7f 4103 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
a848cd7e 4104if test "${enable_debug_gdb+set}" = set; then
f321ab7f
VS
4105 enableval="$enable_debug_gdb"
4106
a848cd7e
SC
4107 if test "$enableval" = yes; then
4108 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4109 else
4110 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4111 fi
4112
4113else
4114
4115 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4116 if test "x$LINE" != x ; then
4117 eval "DEFAULT_$LINE"
4118 else
4119 no_cache=1
4120 fi
4121
4122 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4123
f321ab7f 4124fi;
a848cd7e
SC
4125
4126 eval "$ac_cv_use_debug_gdb"
4127 if test "$no_cache" != 1; then
4128 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4129 fi
4130
4131 if test "$wxUSE_DEBUG_GDB" = yes; then
f321ab7f
VS
4132 echo "$as_me:$LINENO: result: yes" >&5
4133echo "${ECHO_T}yes" >&6
a848cd7e 4134 else
f321ab7f
VS
4135 echo "$as_me:$LINENO: result: no" >&5
4136echo "${ECHO_T}no" >&6
a848cd7e
SC
4137 fi
4138
4139
077c7880 4140 enablestring=
f321ab7f
VS
4141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4142echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
a848cd7e 4143 no_cache=0
f321ab7f 4144 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
a848cd7e 4145if test "${enable_debug_cntxt+set}" = set; then
f321ab7f
VS
4146 enableval="$enable_debug_cntxt"
4147
a848cd7e
SC
4148 if test "$enableval" = yes; then
4149 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4150 else
4151 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4152 fi
4153
4154else
4155
4156 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4157 if test "x$LINE" != x ; then
4158 eval "DEFAULT_$LINE"
4159 else
4160 no_cache=1
4161 fi
4162
4163 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4164
f321ab7f 4165fi;
a848cd7e
SC
4166
4167 eval "$ac_cv_use_debug_cntxt"
4168 if test "$no_cache" != 1; then
4169 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4170 fi
4171
4172 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
f321ab7f
VS
4173 echo "$as_me:$LINENO: result: yes" >&5
4174echo "${ECHO_T}yes" >&6
a848cd7e 4175 else
f321ab7f
VS
4176 echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
a848cd7e
SC
4178 fi
4179
4180
077c7880 4181 enablestring=
f321ab7f
VS
4182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4183echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
a848cd7e 4184 no_cache=0
f321ab7f 4185 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
a848cd7e 4186if test "${enable_mem_tracing+set}" = set; then
f321ab7f
VS
4187 enableval="$enable_mem_tracing"
4188
a848cd7e
SC
4189 if test "$enableval" = yes; then
4190 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4191 else
4192 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4193 fi
4194
4195else
4196
4197 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4205
f321ab7f 4206fi;
a848cd7e
SC
4207
4208 eval "$ac_cv_use_mem_tracing"
4209 if test "$no_cache" != 1; then
4210 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4211 fi
4212
4213 if test "$wxUSE_MEM_TRACING" = yes; then
f321ab7f
VS
4214 echo "$as_me:$LINENO: result: yes" >&5
4215echo "${ECHO_T}yes" >&6
a848cd7e 4216 else
f321ab7f
VS
4217 echo "$as_me:$LINENO: result: no" >&5
4218echo "${ECHO_T}no" >&6
a848cd7e
SC
4219 fi
4220
4221
077c7880 4222 enablestring=
f321ab7f
VS
4223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4224echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
a848cd7e 4225 no_cache=0
f321ab7f 4226 # Check whether --enable-profile or --disable-profile was given.
a848cd7e 4227if test "${enable_profile+set}" = set; then
f321ab7f
VS
4228 enableval="$enable_profile"
4229
a848cd7e
SC
4230 if test "$enableval" = yes; then
4231 ac_cv_use_profile='wxUSE_PROFILE=yes'
4232 else
4233 ac_cv_use_profile='wxUSE_PROFILE=no'
4234 fi
4235
4236else
4237
4238 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4239 if test "x$LINE" != x ; then
4240 eval "DEFAULT_$LINE"
4241 else
4242 no_cache=1
4243 fi
4244
4245 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4246
f321ab7f 4247fi;
a848cd7e
SC
4248
4249 eval "$ac_cv_use_profile"
4250 if test "$no_cache" != 1; then
4251 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4252 fi
4253
4254 if test "$wxUSE_PROFILE" = yes; then
f321ab7f
VS
4255 echo "$as_me:$LINENO: result: yes" >&5
4256echo "${ECHO_T}yes" >&6
a848cd7e 4257 else
f321ab7f
VS
4258 echo "$as_me:$LINENO: result: no" >&5
4259echo "${ECHO_T}no" >&6
a848cd7e
SC
4260 fi
4261
4262
077c7880 4263 enablestring=
f321ab7f
VS
4264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4265echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
a848cd7e 4266 no_cache=0
f321ab7f 4267 # Check whether --enable-no_rtti or --disable-no_rtti was given.
a848cd7e 4268if test "${enable_no_rtti+set}" = set; then
f321ab7f
VS
4269 enableval="$enable_no_rtti"
4270
a848cd7e
SC
4271 if test "$enableval" = yes; then
4272 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4273 else
4274 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4275 fi
4276
4277else
4278
4279 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4280 if test "x$LINE" != x ; then
4281 eval "DEFAULT_$LINE"
4282 else
4283 no_cache=1
4284 fi
4285
4286 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4287
f321ab7f 4288fi;
a848cd7e
SC
4289
4290 eval "$ac_cv_use_no_rtti"
4291 if test "$no_cache" != 1; then
4292 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4293 fi
4294
4295 if test "$wxUSE_NO_RTTI" = yes; then
f321ab7f
VS
4296 echo "$as_me:$LINENO: result: yes" >&5
4297echo "${ECHO_T}yes" >&6
a848cd7e 4298 else
f321ab7f
VS
4299 echo "$as_me:$LINENO: result: no" >&5
4300echo "${ECHO_T}no" >&6
a848cd7e
SC
4301 fi
4302
4303
077c7880 4304 enablestring=
f321ab7f
VS
4305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4306echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
a848cd7e 4307 no_cache=0
f321ab7f 4308 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
a848cd7e 4309if test "${enable_no_exceptions+set}" = set; then
f321ab7f
VS
4310 enableval="$enable_no_exceptions"
4311
a848cd7e
SC
4312 if test "$enableval" = yes; then
4313 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4314 else
4315 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4316 fi
4317
4318else
4319
4320 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4328
f321ab7f 4329fi;
a848cd7e
SC
4330
4331 eval "$ac_cv_use_no_exceptions"
4332 if test "$no_cache" != 1; then
4333 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4334 fi
4335
4336 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
f321ab7f
VS
4337 echo "$as_me:$LINENO: result: yes" >&5
4338echo "${ECHO_T}yes" >&6
a848cd7e 4339 else
f321ab7f
VS
4340 echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
a848cd7e
SC
4342 fi
4343
4344
077c7880 4345 enablestring=
f321ab7f
VS
4346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4347echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
a848cd7e 4348 no_cache=0
f321ab7f 4349 # Check whether --enable-permissive or --disable-permissive was given.
a848cd7e 4350if test "${enable_permissive+set}" = set; then
f321ab7f
VS
4351 enableval="$enable_permissive"
4352
a848cd7e
SC
4353 if test "$enableval" = yes; then
4354 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4355 else
4356 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4357 fi
4358
4359else
4360
4361 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4362 if test "x$LINE" != x ; then
4363 eval "DEFAULT_$LINE"
4364 else
4365 no_cache=1
4366 fi
4367
4368 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4369
f321ab7f 4370fi;
a848cd7e
SC
4371
4372 eval "$ac_cv_use_permissive"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_PERMISSIVE" = yes; then
f321ab7f
VS
4378 echo "$as_me:$LINENO: result: yes" >&5
4379echo "${ECHO_T}yes" >&6
a848cd7e 4380 else
f321ab7f
VS
4381 echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
a848cd7e
SC
4383 fi
4384
4385
077c7880 4386 enablestring=
f321ab7f
VS
4387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4388echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
a848cd7e 4389 no_cache=0
f321ab7f 4390 # Check whether --enable-no_deps or --disable-no_deps was given.
a848cd7e 4391if test "${enable_no_deps+set}" = set; then
f321ab7f
VS
4392 enableval="$enable_no_deps"
4393
a848cd7e
SC
4394 if test "$enableval" = yes; then
4395 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4396 else
4397 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4398 fi
4399
4400else
4401
4402 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4403 if test "x$LINE" != x ; then
4404 eval "DEFAULT_$LINE"
4405 else
4406 no_cache=1
4407 fi
4408
4409 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4410
f321ab7f 4411fi;
a848cd7e
SC
4412
4413 eval "$ac_cv_use_no_deps"
4414 if test "$no_cache" != 1; then
4415 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4416 fi
4417
4418 if test "$wxUSE_NO_DEPS" = yes; then
f321ab7f
VS
4419 echo "$as_me:$LINENO: result: yes" >&5
4420echo "${ECHO_T}yes" >&6
a848cd7e 4421 else
f321ab7f
VS
4422 echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6
a848cd7e
SC
4424 fi
4425
4426
70c536f3 4427 enablestring=
f321ab7f
VS
4428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
4429echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6
70c536f3 4430 no_cache=0
f321ab7f 4431 # Check whether --enable-vararg_macros or --disable-vararg_macros was given.
70c536f3 4432if test "${enable_vararg_macros+set}" = set; then
f321ab7f
VS
4433 enableval="$enable_vararg_macros"
4434
70c536f3
VZ
4435 if test "$enableval" = yes; then
4436 ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
4437 else
4438 ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
4439 fi
4440
4441else
4442
4443 LINE=`grep "wxUSE_VARARG_MACROS" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS='$DEFAULT_wxUSE_VARARG_MACROS
4451
f321ab7f 4452fi;
70c536f3
VZ
4453
4454 eval "$ac_cv_use_vararg_macros"
4455 if test "$no_cache" != 1; then
4456 echo $ac_cv_use_vararg_macros >> ${wx_arg_cache_file}.tmp
4457 fi
4458
4459 if test "$wxUSE_VARARG_MACROS" = yes; then
f321ab7f
VS
4460 echo "$as_me:$LINENO: result: yes" >&5
4461echo "${ECHO_T}yes" >&6
70c536f3 4462 else
f321ab7f
VS
4463 echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
70c536f3
VZ
4465 fi
4466
4467
95768535 4468 enablestring=
f321ab7f
VS
4469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4470echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
7afc46ab 4471 no_cache=0
f321ab7f 4472 # Check whether --enable-universal_binary or --disable-universal_binary was given.
7afc46ab 4473if test "${enable_universal_binary+set}" = set; then
f321ab7f
VS
4474 enableval="$enable_universal_binary"
4475
95768535 4476 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4477
4478else
4479
4480 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
95768535 4483 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4484 else
4485 no_cache=1
95768535 4486 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4487 fi
4488
f321ab7f 4489fi;
7afc46ab 4490
95768535 4491 eval "$wx_cv_use_universal_binary"
7afc46ab 4492 if test "$no_cache" != 1; then
95768535 4493 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4494 fi
4495
f321ab7f
VS
4496 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4497echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4498
4499
a848cd7e 4500
077c7880 4501 enablestring=enable
f321ab7f
VS
4502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4503echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4504 no_cache=0
f321ab7f 4505 # Check whether --enable-compat24 or --disable-compat24 was given.
dee1a63f 4506if test "${enable_compat24+set}" = set; then
f321ab7f
VS
4507 enableval="$enable_compat24"
4508
a848cd7e 4509 if test "$enableval" = yes; then
dee1a63f 4510 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4511 else
dee1a63f 4512 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4513 fi
4514
4515else
4516
dee1a63f 4517 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4518 if test "x$LINE" != x ; then
4519 eval "DEFAULT_$LINE"
4520 else
4521 no_cache=1
4522 fi
4523
dee1a63f 4524 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e 4525
f321ab7f 4526fi;
a848cd7e 4527
dee1a63f 4528 eval "$ac_cv_use_compat24"
a848cd7e 4529 if test "$no_cache" != 1; then
dee1a63f 4530 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4531 fi
4532
dee1a63f 4533 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
f321ab7f
VS
4534 echo "$as_me:$LINENO: result: yes" >&5
4535echo "${ECHO_T}yes" >&6
a848cd7e 4536 else
f321ab7f
VS
4537 echo "$as_me:$LINENO: result: no" >&5
4538echo "${ECHO_T}no" >&6
a848cd7e
SC
4539 fi
4540
4541
077c7880 4542 enablestring=disable
f321ab7f
VS
4543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4544echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4545 no_cache=0
f321ab7f 4546 # Check whether --enable-compat26 or --disable-compat26 was given.
dee1a63f 4547if test "${enable_compat26+set}" = set; then
f321ab7f
VS
4548 enableval="$enable_compat26"
4549
a848cd7e 4550 if test "$enableval" = yes; then
dee1a63f 4551 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4552 else
dee1a63f 4553 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4554 fi
4555
4556else
4557
dee1a63f 4558 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4559 if test "x$LINE" != x ; then
4560 eval "DEFAULT_$LINE"
4561 else
4562 no_cache=1
4563 fi
4564
dee1a63f 4565 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e 4566
f321ab7f 4567fi;
a848cd7e 4568
dee1a63f 4569 eval "$ac_cv_use_compat26"
a848cd7e 4570 if test "$no_cache" != 1; then
dee1a63f 4571 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4572 fi
4573
dee1a63f 4574 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
f321ab7f
VS
4575 echo "$as_me:$LINENO: result: yes" >&5
4576echo "${ECHO_T}yes" >&6
a848cd7e 4577 else
f321ab7f
VS
4578 echo "$as_me:$LINENO: result: no" >&5
4579echo "${ECHO_T}no" >&6
a848cd7e
SC
4580 fi
4581
4582
ffa0583f 4583
077c7880 4584 enablestring=
f321ab7f
VS
4585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4586echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
ffa0583f 4587 no_cache=0
f321ab7f 4588 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e 4589if test "${enable_rpath+set}" = set; then
f321ab7f
VS
4590 enableval="$enable_rpath"
4591
ffa0583f
RL
4592 if test "$enableval" = yes; then
4593 ac_cv_use_rpath='wxUSE_RPATH=yes'
4594 else
4595 ac_cv_use_rpath='wxUSE_RPATH=no'
4596 fi
4597
4598else
4599
4600 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4601 if test "x$LINE" != x ; then
4602 eval "DEFAULT_$LINE"
4603 else
4604 no_cache=1
4605 fi
4606
4607 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4608
f321ab7f 4609fi;
a848cd7e 4610
ffa0583f
RL
4611 eval "$ac_cv_use_rpath"
4612 if test "$no_cache" != 1; then
4613 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4614 fi
4615
4616 if test "$wxUSE_RPATH" = yes; then
f321ab7f
VS
4617 echo "$as_me:$LINENO: result: yes" >&5
4618echo "${ECHO_T}yes" >&6
ffa0583f 4619 else
f321ab7f
VS
4620 echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6
ffa0583f
RL
4622 fi
4623
a848cd7e
SC
4624
4625
4626
4627
077c7880 4628 enablestring=
f321ab7f
VS
4629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4630echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
a848cd7e 4631 no_cache=0
f321ab7f 4632 # Check whether --enable-intl or --disable-intl was given.
a848cd7e 4633if test "${enable_intl+set}" = set; then
f321ab7f
VS
4634 enableval="$enable_intl"
4635
a848cd7e
SC
4636 if test "$enableval" = yes; then
4637 ac_cv_use_intl='wxUSE_INTL=yes'
4638 else
4639 ac_cv_use_intl='wxUSE_INTL=no'
4640 fi
4641
4642else
4643
4644 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4652
f321ab7f 4653fi;
a848cd7e
SC
4654
4655 eval "$ac_cv_use_intl"
4656 if test "$no_cache" != 1; then
4657 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4658 fi
4659
4660 if test "$wxUSE_INTL" = yes; then
f321ab7f
VS
4661 echo "$as_me:$LINENO: result: yes" >&5
4662echo "${ECHO_T}yes" >&6
a848cd7e 4663 else
f321ab7f
VS
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
a848cd7e
SC
4666 fi
4667
4668
077c7880 4669 enablestring=
f321ab7f
VS
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
a848cd7e 4672 no_cache=0
f321ab7f 4673 # Check whether --enable-config or --disable-config was given.
a848cd7e 4674if test "${enable_config+set}" = set; then
f321ab7f
VS
4675 enableval="$enable_config"
4676
a848cd7e
SC
4677 if test "$enableval" = yes; then
4678 ac_cv_use_config='wxUSE_CONFIG=yes'
4679 else
4680 ac_cv_use_config='wxUSE_CONFIG=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4693
f321ab7f 4694fi;
a848cd7e
SC
4695
4696 eval "$ac_cv_use_config"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_CONFIG" = yes; then
f321ab7f
VS
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
a848cd7e 4704 else
f321ab7f
VS
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
a848cd7e
SC
4707 fi
4708
4709
4710
077c7880 4711 enablestring=
f321ab7f
VS
4712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4713echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a848cd7e 4714 no_cache=0
f321ab7f 4715 # Check whether --enable-protocols or --disable-protocols was given.
a848cd7e 4716if test "${enable_protocols+set}" = set; then
f321ab7f
VS
4717 enableval="$enable_protocols"
4718
a848cd7e
SC
4719 if test "$enableval" = yes; then
4720 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4721 else
4722 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4723 fi
4724
4725else
4726
4727 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4728 if test "x$LINE" != x ; then
4729 eval "DEFAULT_$LINE"
4730 else
4731 no_cache=1
4732 fi
4733
4734 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4735
f321ab7f 4736fi;
a848cd7e
SC
4737
4738 eval "$ac_cv_use_protocols"
4739 if test "$no_cache" != 1; then
4740 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4741 fi
4742
4743 if test "$wxUSE_PROTOCOL" = yes; then
f321ab7f
VS
4744 echo "$as_me:$LINENO: result: yes" >&5
4745echo "${ECHO_T}yes" >&6
a848cd7e 4746 else
f321ab7f
VS
4747 echo "$as_me:$LINENO: result: no" >&5
4748echo "${ECHO_T}no" >&6
a848cd7e
SC
4749 fi
4750
4751
077c7880 4752 enablestring=
f321ab7f
VS
4753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4754echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a848cd7e 4755 no_cache=0
f321ab7f 4756 # Check whether --enable-ftp or --disable-ftp was given.
a848cd7e 4757if test "${enable_ftp+set}" = set; then
f321ab7f
VS
4758 enableval="$enable_ftp"
4759
a848cd7e
SC
4760 if test "$enableval" = yes; then
4761 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4762 else
4763 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4764 fi
4765
4766else
4767
4768 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4769 if test "x$LINE" != x ; then
4770 eval "DEFAULT_$LINE"
4771 else
4772 no_cache=1
4773 fi
4774
4775 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4776
f321ab7f 4777fi;
a848cd7e
SC
4778
4779 eval "$ac_cv_use_ftp"
4780 if test "$no_cache" != 1; then
4781 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4782 fi
4783
4784 if test "$wxUSE_PROTOCOL_FTP" = yes; then
f321ab7f
VS
4785 echo "$as_me:$LINENO: result: yes" >&5
4786echo "${ECHO_T}yes" >&6
a848cd7e 4787 else
f321ab7f
VS
4788 echo "$as_me:$LINENO: result: no" >&5
4789echo "${ECHO_T}no" >&6
a848cd7e
SC
4790 fi
4791
4792
077c7880 4793 enablestring=
f321ab7f
VS
4794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4795echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a848cd7e 4796 no_cache=0
f321ab7f 4797 # Check whether --enable-http or --disable-http was given.
a848cd7e 4798if test "${enable_http+set}" = set; then
f321ab7f
VS
4799 enableval="$enable_http"
4800
a848cd7e
SC
4801 if test "$enableval" = yes; then
4802 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4803 else
4804 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4805 fi
4806
4807else
4808
4809 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4810 if test "x$LINE" != x ; then
4811 eval "DEFAULT_$LINE"
4812 else
4813 no_cache=1
4814 fi
4815
4816 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4817
f321ab7f 4818fi;
a848cd7e
SC
4819
4820 eval "$ac_cv_use_http"
4821 if test "$no_cache" != 1; then
4822 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4823 fi
4824
4825 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
f321ab7f
VS
4826 echo "$as_me:$LINENO: result: yes" >&5
4827echo "${ECHO_T}yes" >&6
a848cd7e 4828 else
f321ab7f
VS
4829 echo "$as_me:$LINENO: result: no" >&5
4830echo "${ECHO_T}no" >&6
a848cd7e
SC
4831 fi
4832
4833
077c7880 4834 enablestring=
f321ab7f
VS
4835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4836echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a848cd7e 4837 no_cache=0
f321ab7f 4838 # Check whether --enable-fileproto or --disable-fileproto was given.
a848cd7e 4839if test "${enable_fileproto+set}" = set; then
f321ab7f
VS
4840 enableval="$enable_fileproto"
4841
a848cd7e
SC
4842 if test "$enableval" = yes; then
4843 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4844 else
4845 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4846 fi
4847
4848else
4849
4850 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4851 if test "x$LINE" != x ; then
4852 eval "DEFAULT_$LINE"
4853 else
4854 no_cache=1
4855 fi
4856
4857 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4858
f321ab7f 4859fi;
a848cd7e
SC
4860
4861 eval "$ac_cv_use_fileproto"
4862 if test "$no_cache" != 1; then
4863 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4864 fi
4865
4866 if test "$wxUSE_PROTOCOL_FILE" = yes; then
f321ab7f
VS
4867 echo "$as_me:$LINENO: result: yes" >&5
4868echo "${ECHO_T}yes" >&6
a848cd7e 4869 else
f321ab7f
VS
4870 echo "$as_me:$LINENO: result: no" >&5
4871echo "${ECHO_T}no" >&6
a848cd7e
SC
4872 fi
4873
4874
077c7880 4875 enablestring=
f321ab7f
VS
4876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4877echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
a848cd7e 4878 no_cache=0
f321ab7f 4879 # Check whether --enable-sockets or --disable-sockets was given.
a848cd7e 4880if test "${enable_sockets+set}" = set; then
f321ab7f
VS
4881 enableval="$enable_sockets"
4882
a848cd7e
SC
4883 if test "$enableval" = yes; then
4884 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4885 else
4886 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4887 fi
4888
4889else
4890
4891 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4892 if test "x$LINE" != x ; then
4893 eval "DEFAULT_$LINE"
4894 else
4895 no_cache=1
4896 fi
4897
4898 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4899
f321ab7f 4900fi;
a848cd7e
SC
4901
4902 eval "$ac_cv_use_sockets"
4903 if test "$no_cache" != 1; then
4904 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4905 fi
4906
4907 if test "$wxUSE_SOCKETS" = yes; then
f321ab7f
VS
4908 echo "$as_me:$LINENO: result: yes" >&5
4909echo "${ECHO_T}yes" >&6
a848cd7e 4910 else
f321ab7f
VS
4911 echo "$as_me:$LINENO: result: no" >&5
4912echo "${ECHO_T}no" >&6
a848cd7e
SC
4913 fi
4914
4915
077c7880 4916 enablestring=
f321ab7f
VS
4917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4918echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
a848cd7e 4919 no_cache=0
f321ab7f 4920 # Check whether --enable-ole or --disable-ole was given.
a848cd7e 4921if test "${enable_ole+set}" = set; then
f321ab7f
VS
4922 enableval="$enable_ole"
4923
a848cd7e
SC
4924 if test "$enableval" = yes; then
4925 ac_cv_use_ole='wxUSE_OLE=yes'
4926 else
4927 ac_cv_use_ole='wxUSE_OLE=no'
4928 fi
4929
4930else
4931
4932 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4933 if test "x$LINE" != x ; then
4934 eval "DEFAULT_$LINE"
4935 else
4936 no_cache=1
4937 fi
4938
4939 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4940
f321ab7f 4941fi;
a848cd7e
SC
4942
4943 eval "$ac_cv_use_ole"
4944 if test "$no_cache" != 1; then
4945 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4946 fi
4947
4948 if test "$wxUSE_OLE" = yes; then
f321ab7f
VS
4949 echo "$as_me:$LINENO: result: yes" >&5
4950echo "${ECHO_T}yes" >&6
a848cd7e 4951 else
f321ab7f
VS
4952 echo "$as_me:$LINENO: result: no" >&5
4953echo "${ECHO_T}no" >&6
a848cd7e
SC
4954 fi
4955
4956
077c7880 4957 enablestring=
f321ab7f
VS
4958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4959echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
a848cd7e 4960 no_cache=0
f321ab7f 4961 # Check whether --enable-dataobj or --disable-dataobj was given.
a848cd7e 4962if test "${enable_dataobj+set}" = set; then
f321ab7f
VS
4963 enableval="$enable_dataobj"
4964
a848cd7e
SC
4965 if test "$enableval" = yes; then
4966 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4967 else
4968 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4969 fi
4970
4971else
4972
4973 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4974 if test "x$LINE" != x ; then
4975 eval "DEFAULT_$LINE"
4976 else
4977 no_cache=1
4978 fi
4979
4980 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4981
f321ab7f 4982fi;
a848cd7e
SC
4983
4984 eval "$ac_cv_use_dataobj"
4985 if test "$no_cache" != 1; then
4986 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4987 fi
4988
4989 if test "$wxUSE_DATAOBJ" = yes; then
f321ab7f
VS
4990 echo "$as_me:$LINENO: result: yes" >&5
4991echo "${ECHO_T}yes" >&6
a848cd7e 4992 else
f321ab7f
VS
4993 echo "$as_me:$LINENO: result: no" >&5
4994echo "${ECHO_T}no" >&6
a848cd7e
SC
4995 fi
4996
4997
4998
077c7880 4999 enablestring=
f321ab7f
VS
5000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
5001echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
a848cd7e 5002 no_cache=0
f321ab7f 5003 # Check whether --enable-ipc or --disable-ipc was given.
a848cd7e 5004if test "${enable_ipc+set}" = set; then
f321ab7f
VS
5005 enableval="$enable_ipc"
5006
a848cd7e
SC
5007 if test "$enableval" = yes; then
5008 ac_cv_use_ipc='wxUSE_IPC=yes'
5009 else
5010 ac_cv_use_ipc='wxUSE_IPC=no'
5011 fi
5012
5013else
5014
5015 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
5016 if test "x$LINE" != x ; then
5017 eval "DEFAULT_$LINE"
5018 else
5019 no_cache=1
5020 fi
5021
5022 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5023
f321ab7f 5024fi;
a848cd7e
SC
5025
5026 eval "$ac_cv_use_ipc"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_IPC" = yes; then
f321ab7f
VS
5032 echo "$as_me:$LINENO: result: yes" >&5
5033echo "${ECHO_T}yes" >&6
a848cd7e 5034 else
f321ab7f
VS
5035 echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6
a848cd7e
SC
5037 fi
5038
5039
5040
077c7880 5041 enablestring=
f321ab7f
VS
5042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
5043echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
a848cd7e 5044 no_cache=0
f321ab7f 5045 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
a848cd7e 5046if test "${enable_apple_ieee+set}" = set; then
f321ab7f
VS
5047 enableval="$enable_apple_ieee"
5048
a848cd7e
SC
5049 if test "$enableval" = yes; then
5050 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5051 else
5052 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5053 fi
5054
5055else
5056
5057 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5065
f321ab7f 5066fi;
a848cd7e
SC
5067
5068 eval "$ac_cv_use_apple_ieee"
5069 if test "$no_cache" != 1; then
5070 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5071 fi
5072
5073 if test "$wxUSE_APPLE_IEEE" = yes; then
f321ab7f
VS
5074 echo "$as_me:$LINENO: result: yes" >&5
5075echo "${ECHO_T}yes" >&6
a848cd7e 5076 else
f321ab7f
VS
5077 echo "$as_me:$LINENO: result: no" >&5
5078echo "${ECHO_T}no" >&6
a848cd7e
SC
5079 fi
5080
5081
077c7880 5082 enablestring=
f321ab7f
VS
5083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5084echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
81f90336 5085 no_cache=0
f321ab7f 5086 # Check whether --enable-arcstream or --disable-arcstream was given.
81f90336 5087if test "${enable_arcstream+set}" = set; then
f321ab7f
VS
5088 enableval="$enable_arcstream"
5089
81f90336 5090 if test "$enableval" = yes; then
9e8e867f 5091 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5092 else
9e8e867f 5093 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5094 fi
5095
5096else
5097
9e8e867f 5098 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5099 if test "x$LINE" != x ; then
5100 eval "DEFAULT_$LINE"
5101 else
5102 no_cache=1
5103 fi
5104
9e8e867f 5105 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336 5106
f321ab7f 5107fi;
81f90336
MW
5108
5109 eval "$ac_cv_use_arcstream"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5112 fi
5113
9e8e867f 5114 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
f321ab7f
VS
5115 echo "$as_me:$LINENO: result: yes" >&5
5116echo "${ECHO_T}yes" >&6
81f90336 5117 else
f321ab7f
VS
5118 echo "$as_me:$LINENO: result: no" >&5
5119echo "${ECHO_T}no" >&6
81f90336
MW
5120 fi
5121
5122
077c7880 5123 enablestring=
f321ab7f
VS
5124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5125echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5126 no_cache=0
f321ab7f 5127 # Check whether --enable-backtrace or --disable-backtrace was given.
36b6448c 5128if test "${enable_backtrace+set}" = set; then
f321ab7f
VS
5129 enableval="$enable_backtrace"
5130
a848cd7e 5131 if test "$enableval" = yes; then
36b6448c 5132 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5133 else
36b6448c 5134 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5135 fi
5136
5137else
5138
36b6448c 5139 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5140 if test "x$LINE" != x ; then
5141 eval "DEFAULT_$LINE"
5142 else
5143 no_cache=1
5144 fi
5145
36b6448c 5146 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e 5147
f321ab7f 5148fi;
a848cd7e 5149
36b6448c 5150 eval "$ac_cv_use_backtrace"
a848cd7e 5151 if test "$no_cache" != 1; then
36b6448c 5152 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5153 fi
5154
36b6448c 5155 if test "$wxUSE_STACKWALKER" = yes; then
f321ab7f
VS
5156 echo "$as_me:$LINENO: result: yes" >&5
5157echo "${ECHO_T}yes" >&6
a848cd7e 5158 else
f321ab7f
VS
5159 echo "$as_me:$LINENO: result: no" >&5
5160echo "${ECHO_T}no" >&6
a848cd7e
SC
5161 fi
5162
5163
077c7880 5164 enablestring=
f321ab7f
VS
5165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5166echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5167 no_cache=0
f321ab7f 5168 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
36b6448c 5169if test "${enable_catch_segvs+set}" = set; then
f321ab7f
VS
5170 enableval="$enable_catch_segvs"
5171
eaff0f0d 5172 if test "$enableval" = yes; then
36b6448c 5173 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5174 else
36b6448c 5175 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5176 fi
5177
5178else
5179
36b6448c 5180 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
36b6448c 5187 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d 5188
f321ab7f 5189fi;
eaff0f0d 5190
36b6448c 5191 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5192 if test "$no_cache" != 1; then
36b6448c 5193 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5194 fi
5195
36b6448c 5196 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
f321ab7f
VS
5197 echo "$as_me:$LINENO: result: yes" >&5
5198echo "${ECHO_T}yes" >&6
eaff0f0d 5199 else
f321ab7f
VS
5200 echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
eaff0f0d
VZ
5202 fi
5203
5204
077c7880 5205 enablestring=
f321ab7f
VS
5206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5207echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
a848cd7e 5208 no_cache=0
f321ab7f 5209 # Check whether --enable-cmdline or --disable-cmdline was given.
a848cd7e 5210if test "${enable_cmdline+set}" = set; then
f321ab7f
VS
5211 enableval="$enable_cmdline"
5212
a848cd7e
SC
5213 if test "$enableval" = yes; then
5214 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5215 else
5216 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5217 fi
5218
5219else
5220
5221 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5222 if test "x$LINE" != x ; then
5223 eval "DEFAULT_$LINE"
5224 else
5225 no_cache=1
5226 fi
5227
5228 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5229
f321ab7f 5230fi;
a848cd7e
SC
5231
5232 eval "$ac_cv_use_cmdline"
5233 if test "$no_cache" != 1; then
5234 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5235 fi
5236
5237 if test "$wxUSE_CMDLINE_PARSER" = yes; then
f321ab7f
VS
5238 echo "$as_me:$LINENO: result: yes" >&5
5239echo "${ECHO_T}yes" >&6
a848cd7e 5240 else
f321ab7f
VS
5241 echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6
a848cd7e
SC
5243 fi
5244
5245
077c7880 5246 enablestring=
f321ab7f
VS
5247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5248echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
a848cd7e 5249 no_cache=0
f321ab7f 5250 # Check whether --enable-datetime or --disable-datetime was given.
a848cd7e 5251if test "${enable_datetime+set}" = set; then
f321ab7f
VS
5252 enableval="$enable_datetime"
5253
a848cd7e
SC
5254 if test "$enableval" = yes; then
5255 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5256 else
5257 ac_cv_use_datetime='wxUSE_DATETIME=no'
5258 fi
5259
5260else
5261
5262 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
5269 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5270
f321ab7f 5271fi;
a848cd7e
SC
5272
5273 eval "$ac_cv_use_datetime"
5274 if test "$no_cache" != 1; then
5275 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5276 fi
5277
5278 if test "$wxUSE_DATETIME" = yes; then
f321ab7f
VS
5279 echo "$as_me:$LINENO: result: yes" >&5
5280echo "${ECHO_T}yes" >&6
a848cd7e 5281 else
f321ab7f
VS
5282 echo "$as_me:$LINENO: result: no" >&5
5283echo "${ECHO_T}no" >&6
a848cd7e
SC
5284 fi
5285
5286
077c7880 5287 enablestring=
f321ab7f
VS
5288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5289echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
36b6448c 5290 no_cache=0
f321ab7f 5291 # Check whether --enable-debugreport or --disable-debugreport was given.
36b6448c 5292if test "${enable_debugreport+set}" = set; then
f321ab7f
VS
5293 enableval="$enable_debugreport"
5294
36b6448c
VZ
5295 if test "$enableval" = yes; then
5296 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5297 else
5298 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5299 fi
5300
5301else
5302
5303 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5304 if test "x$LINE" != x ; then
5305 eval "DEFAULT_$LINE"
5306 else
5307 no_cache=1
5308 fi
5309
5310 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5311
f321ab7f 5312fi;
36b6448c
VZ
5313
5314 eval "$ac_cv_use_debugreport"
5315 if test "$no_cache" != 1; then
5316 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5317 fi
5318
5319 if test "$wxUSE_DEBUGREPORT" = yes; then
f321ab7f
VS
5320 echo "$as_me:$LINENO: result: yes" >&5
5321echo "${ECHO_T}yes" >&6
36b6448c 5322 else
f321ab7f
VS
5323 echo "$as_me:$LINENO: result: no" >&5
5324echo "${ECHO_T}no" >&6
36b6448c
VZ
5325 fi
5326
5327
077c7880 5328 enablestring=
f321ab7f
VS
5329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5330echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
a848cd7e 5331 no_cache=0
f321ab7f 5332 # Check whether --enable-dialupman or --disable-dialupman was given.
a848cd7e 5333if test "${enable_dialupman+set}" = set; then
f321ab7f
VS
5334 enableval="$enable_dialupman"
5335
a848cd7e
SC
5336 if test "$enableval" = yes; then
5337 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5338 else
5339 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5340 fi
5341
5342else
5343
5344 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 else
5348 no_cache=1
5349 fi
5350
5351 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5352
f321ab7f 5353fi;
a848cd7e
SC
5354
5355 eval "$ac_cv_use_dialupman"
5356 if test "$no_cache" != 1; then
5357 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5358 fi
5359
5360 if test "$wxUSE_DIALUP_MANAGER" = yes; then
f321ab7f
VS
5361 echo "$as_me:$LINENO: result: yes" >&5
5362echo "${ECHO_T}yes" >&6
a848cd7e 5363 else
f321ab7f
VS
5364 echo "$as_me:$LINENO: result: no" >&5
5365echo "${ECHO_T}no" >&6
a848cd7e
SC
5366 fi
5367
5368
077c7880 5369 enablestring=
f321ab7f
VS
5370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5371echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
a848cd7e 5372 no_cache=0
f321ab7f 5373 # Check whether --enable-dynlib or --disable-dynlib was given.
a848cd7e 5374if test "${enable_dynlib+set}" = set; then
f321ab7f
VS
5375 enableval="$enable_dynlib"
5376
a848cd7e
SC
5377 if test "$enableval" = yes; then
5378 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5379 else
5380 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5381 fi
5382
5383else
5384
5385 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5393
f321ab7f 5394fi;
a848cd7e
SC
5395
5396 eval "$ac_cv_use_dynlib"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_DYNLIB_CLASS" = yes; then
f321ab7f
VS
5402 echo "$as_me:$LINENO: result: yes" >&5
5403echo "${ECHO_T}yes" >&6
a848cd7e 5404 else
f321ab7f
VS
5405 echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6
a848cd7e
SC
5407 fi
5408
5409
077c7880 5410 enablestring=
f321ab7f
VS
5411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5412echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
a848cd7e 5413 no_cache=0
f321ab7f 5414 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
a848cd7e 5415if test "${enable_dynamicloader+set}" = set; then
f321ab7f
VS
5416 enableval="$enable_dynamicloader"
5417
a848cd7e
SC
5418 if test "$enableval" = yes; then
5419 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5420 else
5421 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5422 fi
5423
5424else
5425
5426 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5434
f321ab7f 5435fi;
a848cd7e
SC
5436
5437 eval "$ac_cv_use_dynamicloader"
5438 if test "$no_cache" != 1; then
5439 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5440 fi
5441
5442 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
f321ab7f
VS
5443 echo "$as_me:$LINENO: result: yes" >&5
5444echo "${ECHO_T}yes" >&6
a848cd7e 5445 else
f321ab7f
VS
5446 echo "$as_me:$LINENO: result: no" >&5
5447echo "${ECHO_T}no" >&6
a848cd7e
SC
5448 fi
5449
5450
077c7880 5451 enablestring=
f321ab7f
VS
5452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5453echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
a848cd7e 5454 no_cache=0
f321ab7f 5455 # Check whether --enable-exceptions or --disable-exceptions was given.
a848cd7e 5456if test "${enable_exceptions+set}" = set; then
f321ab7f
VS
5457 enableval="$enable_exceptions"
5458
a848cd7e
SC
5459 if test "$enableval" = yes; then
5460 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5461 else
5462 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5463 fi
5464
5465else
5466
5467 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
5474 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5475
f321ab7f 5476fi;
a848cd7e
SC
5477
5478 eval "$ac_cv_use_exceptions"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_EXCEPTIONS" = yes; then
f321ab7f
VS
5484 echo "$as_me:$LINENO: result: yes" >&5
5485echo "${ECHO_T}yes" >&6
a848cd7e 5486 else
f321ab7f
VS
5487 echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
a848cd7e
SC
5489 fi
5490
5491
077c7880 5492 enablestring=
f321ab7f
VS
5493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5494echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
a848cd7e 5495 no_cache=0
f321ab7f 5496 # Check whether --enable-ffile or --disable-ffile was given.
a848cd7e 5497if test "${enable_ffile+set}" = set; then
f321ab7f
VS
5498 enableval="$enable_ffile"
5499
a848cd7e
SC
5500 if test "$enableval" = yes; then
5501 ac_cv_use_ffile='wxUSE_FFILE=yes'
5502 else
5503 ac_cv_use_ffile='wxUSE_FFILE=no'
5504 fi
5505
5506else
5507
5508 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5516
f321ab7f 5517fi;
a848cd7e
SC
5518
5519 eval "$ac_cv_use_ffile"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_FFILE" = yes; then
f321ab7f
VS
5525 echo "$as_me:$LINENO: result: yes" >&5
5526echo "${ECHO_T}yes" >&6
a848cd7e 5527 else
f321ab7f
VS
5528 echo "$as_me:$LINENO: result: no" >&5
5529echo "${ECHO_T}no" >&6
a848cd7e
SC
5530 fi
5531
5532
077c7880 5533 enablestring=
f321ab7f
VS
5534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5535echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
a848cd7e 5536 no_cache=0
f321ab7f 5537 # Check whether --enable-file or --disable-file was given.
a848cd7e 5538if test "${enable_file+set}" = set; then
f321ab7f
VS
5539 enableval="$enable_file"
5540
a848cd7e
SC
5541 if test "$enableval" = yes; then
5542 ac_cv_use_file='wxUSE_FILE=yes'
5543 else
5544 ac_cv_use_file='wxUSE_FILE=no'
5545 fi
5546
5547else
5548
5549 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5550 if test "x$LINE" != x ; then
5551 eval "DEFAULT_$LINE"
5552 else
5553 no_cache=1
5554 fi
5555
5556 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5557
f321ab7f 5558fi;
a848cd7e
SC
5559
5560 eval "$ac_cv_use_file"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_FILE" = yes; then
f321ab7f
VS
5566 echo "$as_me:$LINENO: result: yes" >&5
5567echo "${ECHO_T}yes" >&6
a848cd7e 5568 else
f321ab7f
VS
5569 echo "$as_me:$LINENO: result: no" >&5
5570echo "${ECHO_T}no" >&6
a848cd7e
SC
5571 fi
5572
5573
077c7880 5574 enablestring=
f321ab7f
VS
5575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5576echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
a848cd7e 5577 no_cache=0
f321ab7f 5578 # Check whether --enable-filesystem or --disable-filesystem was given.
a848cd7e 5579if test "${enable_filesystem+set}" = set; then
f321ab7f
VS
5580 enableval="$enable_filesystem"
5581
a848cd7e
SC
5582 if test "$enableval" = yes; then
5583 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5584 else
5585 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5586 fi
5587
5588else
5589
5590 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5591 if test "x$LINE" != x ; then
5592 eval "DEFAULT_$LINE"
5593 else
5594 no_cache=1
5595 fi
5596
5597 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5598
f321ab7f 5599fi;
a848cd7e
SC
5600
5601 eval "$ac_cv_use_filesystem"
5602 if test "$no_cache" != 1; then
5603 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5604 fi
5605
5606 if test "$wxUSE_FILESYSTEM" = yes; then
f321ab7f
VS
5607 echo "$as_me:$LINENO: result: yes" >&5
5608echo "${ECHO_T}yes" >&6
a848cd7e 5609 else
f321ab7f
VS
5610 echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
a848cd7e
SC
5612 fi
5613
5614
077c7880 5615 enablestring=
f321ab7f
VS
5616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5617echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
a848cd7e 5618 no_cache=0
f321ab7f 5619 # Check whether --enable-fontmap or --disable-fontmap was given.
a848cd7e 5620if test "${enable_fontmap+set}" = set; then
f321ab7f
VS
5621 enableval="$enable_fontmap"
5622
a848cd7e
SC
5623 if test "$enableval" = yes; then
5624 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5625 else
5626 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5627 fi
5628
5629else
5630
5631 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5632 if test "x$LINE" != x ; then
5633 eval "DEFAULT_$LINE"
5634 else
5635 no_cache=1
5636 fi
5637
5638 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5639
f321ab7f 5640fi;
a848cd7e
SC
5641
5642 eval "$ac_cv_use_fontmap"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_FONTMAP" = yes; then
f321ab7f
VS
5648 echo "$as_me:$LINENO: result: yes" >&5
5649echo "${ECHO_T}yes" >&6
a848cd7e 5650 else
f321ab7f
VS
5651 echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
a848cd7e
SC
5653 fi
5654
5655
077c7880 5656 enablestring=
f321ab7f
VS
5657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
5658echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6
26e422a9 5659 no_cache=0
f321ab7f 5660 # Check whether --enable-fs_archive or --disable-fs_archive was given.
26e422a9 5661if test "${enable_fs_archive+set}" = set; then
f321ab7f
VS
5662 enableval="$enable_fs_archive"
5663
26e422a9
MW
5664 if test "$enableval" = yes; then
5665 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
5666 else
5667 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
5668 fi
5669
5670else
5671
5672 LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
5673 if test "x$LINE" != x ; then
5674 eval "DEFAULT_$LINE"
5675 else
5676 no_cache=1
5677 fi
5678
5679 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
5680
f321ab7f 5681fi;
26e422a9
MW
5682
5683 eval "$ac_cv_use_fs_archive"
5684 if test "$no_cache" != 1; then
5685 echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
5686 fi
5687
5688 if test "$wxUSE_FS_ARCHIVE" = yes; then
f321ab7f
VS
5689 echo "$as_me:$LINENO: result: yes" >&5
5690echo "${ECHO_T}yes" >&6
26e422a9 5691 else
f321ab7f
VS
5692 echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6
26e422a9
MW
5694 fi
5695
5696
077c7880 5697 enablestring=
f321ab7f
VS
5698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5699echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
a848cd7e 5700 no_cache=0
f321ab7f 5701 # Check whether --enable-fs_inet or --disable-fs_inet was given.
a848cd7e 5702if test "${enable_fs_inet+set}" = set; then
f321ab7f
VS
5703 enableval="$enable_fs_inet"
5704
a848cd7e
SC
5705 if test "$enableval" = yes; then
5706 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5707 else
5708 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5709 fi
5710
5711else
5712
5713 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5714 if test "x$LINE" != x ; then
5715 eval "DEFAULT_$LINE"
5716 else
5717 no_cache=1
5718 fi
5719
5720 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5721
f321ab7f 5722fi;
a848cd7e
SC
5723
5724 eval "$ac_cv_use_fs_inet"
5725 if test "$no_cache" != 1; then
5726 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5727 fi
5728
5729 if test "$wxUSE_FS_INET" = yes; then
f321ab7f
VS
5730 echo "$as_me:$LINENO: result: yes" >&5
5731echo "${ECHO_T}yes" >&6
a848cd7e 5732 else
f321ab7f
VS
5733 echo "$as_me:$LINENO: result: no" >&5
5734echo "${ECHO_T}no" >&6
a848cd7e
SC
5735 fi
5736
5737
077c7880 5738 enablestring=
f321ab7f
VS
5739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5740echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a848cd7e 5741 no_cache=0
f321ab7f 5742 # Check whether --enable-fs_zip or --disable-fs_zip was given.
a848cd7e 5743if test "${enable_fs_zip+set}" = set; then
f321ab7f
VS
5744 enableval="$enable_fs_zip"
5745
a848cd7e
SC
5746 if test "$enableval" = yes; then
5747 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5748 else
5749 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5750 fi
5751
5752else
5753
5754 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5755 if test "x$LINE" != x ; then
5756 eval "DEFAULT_$LINE"
5757 else
5758 no_cache=1
5759 fi
5760
5761 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5762
f321ab7f 5763fi;
a848cd7e
SC
5764
5765 eval "$ac_cv_use_fs_zip"
5766 if test "$no_cache" != 1; then
5767 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5768 fi
5769
5770 if test "$wxUSE_FS_ZIP" = yes; then
f321ab7f
VS
5771 echo "$as_me:$LINENO: result: yes" >&5
5772echo "${ECHO_T}yes" >&6
a848cd7e 5773 else
f321ab7f
VS
5774 echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6
a848cd7e
SC
5776 fi
5777
5778
077c7880 5779 enablestring=
f321ab7f
VS
5780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5781echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
a848cd7e 5782 no_cache=0
f321ab7f 5783 # Check whether --enable-geometry or --disable-geometry was given.
a848cd7e 5784if test "${enable_geometry+set}" = set; then
f321ab7f
VS
5785 enableval="$enable_geometry"
5786
a848cd7e
SC
5787 if test "$enableval" = yes; then
5788 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5789 else
5790 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5791 fi
5792
5793else
5794
5795 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5796 if test "x$LINE" != x ; then
5797 eval "DEFAULT_$LINE"
5798 else
5799 no_cache=1
5800 fi
5801
5802 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5803
f321ab7f 5804fi;
a848cd7e
SC
5805
5806 eval "$ac_cv_use_geometry"
5807 if test "$no_cache" != 1; then
5808 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5809 fi
5810
5811 if test "$wxUSE_GEOMETRY" = yes; then
f321ab7f
VS
5812 echo "$as_me:$LINENO: result: yes" >&5
5813echo "${ECHO_T}yes" >&6
a848cd7e 5814 else
f321ab7f
VS
5815 echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6
a848cd7e
SC
5817 fi
5818
5819
077c7880 5820 enablestring=
f321ab7f
VS
5821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5822echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
a848cd7e 5823 no_cache=0
f321ab7f 5824 # Check whether --enable-log or --disable-log was given.
a848cd7e 5825if test "${enable_log+set}" = set; then
f321ab7f
VS
5826 enableval="$enable_log"
5827
a848cd7e
SC
5828 if test "$enableval" = yes; then
5829 ac_cv_use_log='wxUSE_LOG=yes'
5830 else
5831 ac_cv_use_log='wxUSE_LOG=no'
5832 fi
5833
5834else
5835
5836 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5837 if test "x$LINE" != x ; then
5838 eval "DEFAULT_$LINE"
5839 else
5840 no_cache=1
5841 fi
5842
5843 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5844
f321ab7f 5845fi;
a848cd7e
SC
5846
5847 eval "$ac_cv_use_log"
5848 if test "$no_cache" != 1; then
5849 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5850 fi
5851
5852 if test "$wxUSE_LOG" = yes; then
f321ab7f
VS
5853 echo "$as_me:$LINENO: result: yes" >&5
5854echo "${ECHO_T}yes" >&6
a848cd7e 5855 else
f321ab7f
VS
5856 echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6
a848cd7e
SC
5858 fi
5859
5860
077c7880 5861 enablestring=
f321ab7f
VS
5862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5863echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
a848cd7e 5864 no_cache=0
f321ab7f 5865 # Check whether --enable-longlong or --disable-longlong was given.
a848cd7e 5866if test "${enable_longlong+set}" = set; then
f321ab7f
VS
5867 enableval="$enable_longlong"
5868
a848cd7e
SC
5869 if test "$enableval" = yes; then
5870 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5871 else
5872 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5873 fi
5874
5875else
5876
5877 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5878 if test "x$LINE" != x ; then
5879 eval "DEFAULT_$LINE"
5880 else
5881 no_cache=1
5882 fi
5883
5884 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5885
f321ab7f 5886fi;
a848cd7e
SC
5887
5888 eval "$ac_cv_use_longlong"
5889 if test "$no_cache" != 1; then
5890 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5891 fi
5892
5893 if test "$wxUSE_LONGLONG" = yes; then
f321ab7f
VS
5894 echo "$as_me:$LINENO: result: yes" >&5
5895echo "${ECHO_T}yes" >&6
a848cd7e 5896 else
f321ab7f
VS
5897 echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6
a848cd7e
SC
5899 fi
5900
5901
077c7880 5902 enablestring=
f321ab7f
VS
5903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5904echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
a848cd7e 5905 no_cache=0
f321ab7f 5906 # Check whether --enable-mimetype or --disable-mimetype was given.
a848cd7e 5907if test "${enable_mimetype+set}" = set; then
f321ab7f
VS
5908 enableval="$enable_mimetype"
5909
a848cd7e
SC
5910 if test "$enableval" = yes; then
5911 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5912 else
5913 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5914 fi
5915
5916else
5917
5918 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5919 if test "x$LINE" != x ; then
5920 eval "DEFAULT_$LINE"
5921 else
5922 no_cache=1
5923 fi
5924
5925 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5926
f321ab7f 5927fi;
a848cd7e
SC
5928
5929 eval "$ac_cv_use_mimetype"
5930 if test "$no_cache" != 1; then
5931 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5932 fi
5933
5934 if test "$wxUSE_MIMETYPE" = yes; then
f321ab7f
VS
5935 echo "$as_me:$LINENO: result: yes" >&5
5936echo "${ECHO_T}yes" >&6
a848cd7e 5937 else
f321ab7f
VS
5938 echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6
a848cd7e
SC
5940 fi
5941
5942
077c7880 5943 enablestring=
f321ab7f
VS
5944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5945echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a848cd7e 5946 no_cache=0
f321ab7f 5947 # Check whether --enable-mslu or --disable-mslu was given.
a848cd7e 5948if test "${enable_mslu+set}" = set; then
f321ab7f
VS
5949 enableval="$enable_mslu"
5950
a848cd7e
SC
5951 if test "$enableval" = yes; then
5952 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5953 else
5954 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5955 fi
5956
5957else
5958
5959 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5967
f321ab7f 5968fi;
a848cd7e
SC
5969
5970 eval "$ac_cv_use_mslu"
5971 if test "$no_cache" != 1; then
5972 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5973 fi
5974
5975 if test "$wxUSE_UNICODE_MSLU" = yes; then
f321ab7f
VS
5976 echo "$as_me:$LINENO: result: yes" >&5
5977echo "${ECHO_T}yes" >&6
a848cd7e 5978 else
f321ab7f
VS
5979 echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6
a848cd7e
SC
5981 fi
5982
5983
077c7880 5984 enablestring=
f321ab7f
VS
5985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5986echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
a848cd7e 5987 no_cache=0
f321ab7f 5988 # Check whether --enable-snglinst or --disable-snglinst was given.
a848cd7e 5989if test "${enable_snglinst+set}" = set; then
f321ab7f
VS
5990 enableval="$enable_snglinst"
5991
a848cd7e
SC
5992 if test "$enableval" = yes; then
5993 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5994 else
5995 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5996 fi
5997
5998else
5999
6000 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
6001 if test "x$LINE" != x ; then
6002 eval "DEFAULT_$LINE"
6003 else
6004 no_cache=1
6005 fi
6006
6007 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
6008
f321ab7f 6009fi;
a848cd7e
SC
6010
6011 eval "$ac_cv_use_snglinst"
6012 if test "$no_cache" != 1; then
6013 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
6014 fi
6015
6016 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
f321ab7f
VS
6017 echo "$as_me:$LINENO: result: yes" >&5
6018echo "${ECHO_T}yes" >&6
a848cd7e 6019 else
f321ab7f
VS
6020 echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6
a848cd7e
SC
6022 fi
6023
6024
077c7880 6025 enablestring=
f321ab7f
VS
6026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
6027echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 6028 no_cache=0
f321ab7f 6029 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
07158944 6030if test "${enable_std_iostreams+set}" = set; then
f321ab7f
VS
6031 enableval="$enable_std_iostreams"
6032
a848cd7e 6033 if test "$enableval" = yes; then
07158944 6034 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 6035 else
07158944 6036 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
6037 fi
6038
6039else
6040
07158944 6041 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
07158944 6048 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e 6049
f321ab7f 6050fi;
a848cd7e 6051
07158944 6052 eval "$ac_cv_use_std_iostreams"
a848cd7e 6053 if test "$no_cache" != 1; then
07158944 6054 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6055 fi
6056
07158944 6057 if test "$wxUSE_STD_IOSTREAM" = yes; then
f321ab7f
VS
6058 echo "$as_me:$LINENO: result: yes" >&5
6059echo "${ECHO_T}yes" >&6
a848cd7e 6060 else
f321ab7f
VS
6061 echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6
a848cd7e
SC
6063 fi
6064
6065
077c7880 6066 enablestring=
f321ab7f
VS
6067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6068echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
59746b65 6069 no_cache=0
f321ab7f 6070 # Check whether --enable-std_string or --disable-std_string was given.
59746b65 6071if test "${enable_std_string+set}" = set; then
f321ab7f
VS
6072 enableval="$enable_std_string"
6073
59746b65
MW
6074 if test "$enableval" = yes; then
6075 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6076 else
6077 ac_cv_use_std_string='wxUSE_STD_STRING=no'
6078 fi
6079
6080else
6081
6082 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6083 if test "x$LINE" != x ; then
6084 eval "DEFAULT_$LINE"
6085 else
6086 no_cache=1
6087 fi
6088
6089 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6090
f321ab7f 6091fi;
59746b65
MW
6092
6093 eval "$ac_cv_use_std_string"
6094 if test "$no_cache" != 1; then
6095 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6096 fi
6097
6098 if test "$wxUSE_STD_STRING" = yes; then
f321ab7f
VS
6099 echo "$as_me:$LINENO: result: yes" >&5
6100echo "${ECHO_T}yes" >&6
59746b65 6101 else
f321ab7f
VS
6102 echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6
59746b65
MW
6104 fi
6105
6106
077c7880 6107 enablestring=
f321ab7f
VS
6108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6109echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 6110 no_cache=0
f321ab7f 6111 # Check whether --enable-stdpaths or --disable-stdpaths was given.
07158944 6112if test "${enable_stdpaths+set}" = set; then
f321ab7f
VS
6113 enableval="$enable_stdpaths"
6114
a848cd7e 6115 if test "$enableval" = yes; then
07158944 6116 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6117 else
07158944 6118 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6119 fi
6120
6121else
6122
07158944 6123 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
07158944 6130 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e 6131
f321ab7f 6132fi;
a848cd7e 6133
07158944 6134 eval "$ac_cv_use_stdpaths"
a848cd7e 6135 if test "$no_cache" != 1; then
07158944 6136 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6137 fi
6138
07158944 6139 if test "$wxUSE_STDPATHS" = yes; then
f321ab7f
VS
6140 echo "$as_me:$LINENO: result: yes" >&5
6141echo "${ECHO_T}yes" >&6
a848cd7e 6142 else
f321ab7f
VS
6143 echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
a848cd7e
SC
6145 fi
6146
6147
077c7880 6148 enablestring=
f321ab7f
VS
6149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6150echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
a848cd7e 6151 no_cache=0
f321ab7f 6152 # Check whether --enable-stopwatch or --disable-stopwatch was given.
a848cd7e 6153if test "${enable_stopwatch+set}" = set; then
f321ab7f
VS
6154 enableval="$enable_stopwatch"
6155
a848cd7e
SC
6156 if test "$enableval" = yes; then
6157 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6158 else
6159 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6160 fi
6161
6162else
6163
6164 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6165 if test "x$LINE" != x ; then
6166 eval "DEFAULT_$LINE"
6167 else
6168 no_cache=1
6169 fi
6170
6171 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6172
f321ab7f 6173fi;
a848cd7e
SC
6174
6175 eval "$ac_cv_use_stopwatch"
6176 if test "$no_cache" != 1; then
6177 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6178 fi
6179
6180 if test "$wxUSE_STOPWATCH" = yes; then
f321ab7f
VS
6181 echo "$as_me:$LINENO: result: yes" >&5
6182echo "${ECHO_T}yes" >&6
a848cd7e 6183 else
f321ab7f
VS
6184 echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6
a848cd7e
SC
6186 fi
6187
6188
077c7880 6189 enablestring=
f321ab7f
VS
6190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6191echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
07158944 6192 no_cache=0
f321ab7f 6193 # Check whether --enable-streams or --disable-streams was given.
07158944 6194if test "${enable_streams+set}" = set; then
f321ab7f
VS
6195 enableval="$enable_streams"
6196
07158944
VZ
6197 if test "$enableval" = yes; then
6198 ac_cv_use_streams='wxUSE_STREAMS=yes'
6199 else
6200 ac_cv_use_streams='wxUSE_STREAMS=no'
6201 fi
6202
6203else
6204
6205 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6206 if test "x$LINE" != x ; then
6207 eval "DEFAULT_$LINE"
6208 else
6209 no_cache=1
6210 fi
6211
6212 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6213
f321ab7f 6214fi;
07158944
VZ
6215
6216 eval "$ac_cv_use_streams"
6217 if test "$no_cache" != 1; then
6218 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6219 fi
6220
6221 if test "$wxUSE_STREAMS" = yes; then
f321ab7f
VS
6222 echo "$as_me:$LINENO: result: yes" >&5
6223echo "${ECHO_T}yes" >&6
07158944 6224 else
f321ab7f
VS
6225 echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6
07158944
VZ
6227 fi
6228
6229
077c7880 6230 enablestring=
f321ab7f
VS
6231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6232echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
a848cd7e 6233 no_cache=0
f321ab7f 6234 # Check whether --enable-system_options or --disable-system_options was given.
a848cd7e 6235if test "${enable_system_options+set}" = set; then
f321ab7f
VS
6236 enableval="$enable_system_options"
6237
a848cd7e
SC
6238 if test "$enableval" = yes; then
6239 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6240 else
6241 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6242 fi
6243
6244else
6245
6246 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6247 if test "x$LINE" != x ; then
6248 eval "DEFAULT_$LINE"
6249 else
6250 no_cache=1
6251 fi
6252
6253 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6254
f321ab7f 6255fi;
a848cd7e
SC
6256
6257 eval "$ac_cv_use_system_options"
6258 if test "$no_cache" != 1; then
6259 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6260 fi
6261
6262 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
f321ab7f
VS
6263 echo "$as_me:$LINENO: result: yes" >&5
6264echo "${ECHO_T}yes" >&6
a848cd7e 6265 else
f321ab7f
VS
6266 echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6
a848cd7e
SC
6268 fi
6269
6270
077c7880 6271 enablestring=
f321ab7f
VS
6272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
6273echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6
26e422a9 6274 no_cache=0
f321ab7f 6275 # Check whether --enable-tarstream or --disable-tarstream was given.
26e422a9 6276if test "${enable_tarstream+set}" = set; then
f321ab7f
VS
6277 enableval="$enable_tarstream"
6278
26e422a9
MW
6279 if test "$enableval" = yes; then
6280 ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
6281 else
6282 ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
6283 fi
6284
6285else
6286
6287 LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
6288 if test "x$LINE" != x ; then
6289 eval "DEFAULT_$LINE"
6290 else
6291 no_cache=1
6292 fi
6293
6294 ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
6295
f321ab7f 6296fi;
26e422a9
MW
6297
6298 eval "$ac_cv_use_tarstream"
6299 if test "$no_cache" != 1; then
6300 echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
6301 fi
6302
6303 if test "$wxUSE_TARSTREAM" = yes; then
f321ab7f
VS
6304 echo "$as_me:$LINENO: result: yes" >&5
6305echo "${ECHO_T}yes" >&6
26e422a9 6306 else
f321ab7f
VS
6307 echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6
26e422a9
MW
6309 fi
6310
6311
077c7880 6312 enablestring=
f321ab7f
VS
6313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6314echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a848cd7e 6315 no_cache=0
f321ab7f 6316 # Check whether --enable-textbuf or --disable-textbuf was given.
a848cd7e 6317if test "${enable_textbuf+set}" = set; then
f321ab7f
VS
6318 enableval="$enable_textbuf"
6319
a848cd7e
SC
6320 if test "$enableval" = yes; then
6321 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6322 else
6323 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6324 fi
6325
6326else
6327
6328 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6329 if test "x$LINE" != x ; then
6330 eval "DEFAULT_$LINE"
6331 else
6332 no_cache=1
6333 fi
6334
6335 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6336
f321ab7f 6337fi;
a848cd7e
SC
6338
6339 eval "$ac_cv_use_textbuf"
6340 if test "$no_cache" != 1; then
6341 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6342 fi
6343
6344 if test "$wxUSE_TEXTBUFFER" = yes; then
f321ab7f
VS
6345 echo "$as_me:$LINENO: result: yes" >&5
6346echo "${ECHO_T}yes" >&6
a848cd7e 6347 else
f321ab7f
VS
6348 echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6
a848cd7e
SC
6350 fi
6351
6352
077c7880 6353 enablestring=
f321ab7f
VS
6354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6355echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
a848cd7e 6356 no_cache=0
f321ab7f 6357 # Check whether --enable-textfile or --disable-textfile was given.
a848cd7e 6358if test "${enable_textfile+set}" = set; then
f321ab7f
VS
6359 enableval="$enable_textfile"
6360
a848cd7e
SC
6361 if test "$enableval" = yes; then
6362 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6363 else
6364 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6365 fi
6366
6367else
6368
6369 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6370 if test "x$LINE" != x ; then
6371 eval "DEFAULT_$LINE"
6372 else
6373 no_cache=1
6374 fi
6375
6376 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6377
f321ab7f 6378fi;
a848cd7e
SC
6379
6380 eval "$ac_cv_use_textfile"
6381 if test "$no_cache" != 1; then
6382 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6383 fi
6384
6385 if test "$wxUSE_TEXTFILE" = yes; then
f321ab7f
VS
6386 echo "$as_me:$LINENO: result: yes" >&5
6387echo "${ECHO_T}yes" >&6
a848cd7e 6388 else
f321ab7f
VS
6389 echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6
a848cd7e
SC
6391 fi
6392
6393
077c7880 6394 enablestring=
f321ab7f
VS
6395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6396echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
a848cd7e 6397 no_cache=0
f321ab7f 6398 # Check whether --enable-timer or --disable-timer was given.
a848cd7e 6399if test "${enable_timer+set}" = set; then
f321ab7f
VS
6400 enableval="$enable_timer"
6401
a848cd7e
SC
6402 if test "$enableval" = yes; then
6403 ac_cv_use_timer='wxUSE_TIMER=yes'
6404 else
6405 ac_cv_use_timer='wxUSE_TIMER=no'
6406 fi
6407
6408else
6409
6410 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6411 if test "x$LINE" != x ; then
6412 eval "DEFAULT_$LINE"
6413 else
6414 no_cache=1
6415 fi
6416
6417 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6418
f321ab7f 6419fi;
a848cd7e
SC
6420
6421 eval "$ac_cv_use_timer"
6422 if test "$no_cache" != 1; then
6423 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6424 fi
6425
6426 if test "$wxUSE_TIMER" = yes; then
f321ab7f
VS
6427 echo "$as_me:$LINENO: result: yes" >&5
6428echo "${ECHO_T}yes" >&6
a848cd7e 6429 else
f321ab7f
VS
6430 echo "$as_me:$LINENO: result: no" >&5
6431echo "${ECHO_T}no" >&6
a848cd7e
SC
6432 fi
6433
6434
077c7880 6435 enablestring=
f321ab7f
VS
6436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6437echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
a848cd7e 6438 no_cache=0
f321ab7f 6439 # Check whether --enable-unicode or --disable-unicode was given.
a848cd7e 6440if test "${enable_unicode+set}" = set; then
f321ab7f
VS
6441 enableval="$enable_unicode"
6442
a848cd7e
SC
6443 if test "$enableval" = yes; then
6444 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6445 else
6446 ac_cv_use_unicode='wxUSE_UNICODE=no'
6447 fi
6448
6449else
6450
6451 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6452 if test "x$LINE" != x ; then
6453 eval "DEFAULT_$LINE"
6454 else
6455 no_cache=1
6456 fi
6457
6458 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6459
f321ab7f 6460fi;
a848cd7e
SC
6461
6462 eval "$ac_cv_use_unicode"
6463 if test "$no_cache" != 1; then
6464 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6465 fi
6466
6467 if test "$wxUSE_UNICODE" = yes; then
f321ab7f
VS
6468 echo "$as_me:$LINENO: result: yes" >&5
6469echo "${ECHO_T}yes" >&6
a848cd7e 6470 else
f321ab7f
VS
6471 echo "$as_me:$LINENO: result: no" >&5
6472echo "${ECHO_T}no" >&6
a848cd7e
SC
6473 fi
6474
6475
077c7880 6476 enablestring=
f321ab7f
VS
6477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6478echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
a848cd7e 6479 no_cache=0
f321ab7f 6480 # Check whether --enable-sound or --disable-sound was given.
a848cd7e 6481if test "${enable_sound+set}" = set; then
f321ab7f
VS
6482 enableval="$enable_sound"
6483
a848cd7e
SC
6484 if test "$enableval" = yes; then
6485 ac_cv_use_sound='wxUSE_SOUND=yes'
6486 else
6487 ac_cv_use_sound='wxUSE_SOUND=no'
6488 fi
6489
6490else
6491
6492 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6493 if test "x$LINE" != x ; then
6494 eval "DEFAULT_$LINE"
6495 else
6496 no_cache=1
6497 fi
6498
6499 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6500
f321ab7f 6501fi;
a848cd7e
SC
6502
6503 eval "$ac_cv_use_sound"
6504 if test "$no_cache" != 1; then
6505 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6506 fi
6507
6508 if test "$wxUSE_SOUND" = yes; then
f321ab7f
VS
6509 echo "$as_me:$LINENO: result: yes" >&5
6510echo "${ECHO_T}yes" >&6
a848cd7e 6511 else
f321ab7f
VS
6512 echo "$as_me:$LINENO: result: no" >&5
6513echo "${ECHO_T}no" >&6
a848cd7e
SC
6514 fi
6515
6516
077c7880 6517 enablestring=
f321ab7f
VS
6518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6519echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
3b57de8b 6520 no_cache=0
f321ab7f 6521 # Check whether --enable-mediactrl or --disable-mediactrl was given.
3b57de8b 6522if test "${enable_mediactrl+set}" = set; then
f321ab7f
VS
6523 enableval="$enable_mediactrl"
6524
3b57de8b
RL
6525 if test "$enableval" = yes; then
6526 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6527 else
6528 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6529 fi
6530
6531else
6532
6533 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6534 if test "x$LINE" != x ; then
6535 eval "DEFAULT_$LINE"
6536 else
6537 no_cache=1
6538 fi
6539
6540 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6541
f321ab7f 6542fi;
3b57de8b
RL
6543
6544 eval "$ac_cv_use_mediactrl"
6545 if test "$no_cache" != 1; then
6546 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6547 fi
6548
6549 if test "$wxUSE_MEDIACTRL" = yes; then
f321ab7f
VS
6550 echo "$as_me:$LINENO: result: yes" >&5
6551echo "${ECHO_T}yes" >&6
3b57de8b 6552 else
f321ab7f
VS
6553 echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6
3b57de8b
RL
6555 fi
6556
6557
077c7880 6558 enablestring=
f321ab7f
VS
6559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6560echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
f10e38c4 6561 no_cache=0
f321ab7f 6562 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
f10e38c4 6563if test "${enable_gstreamer8+set}" = set; then
f321ab7f
VS
6564 enableval="$enable_gstreamer8"
6565
f10e38c4
VZ
6566 if test "$enableval" = yes; then
6567 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6568 else
6569 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6570 fi
6571
6572else
6573
6574 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6575 if test "x$LINE" != x ; then
6576 eval "DEFAULT_$LINE"
6577 else
6578 no_cache=1
6579 fi
6580
6581 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6582
f321ab7f 6583fi;
f10e38c4
VZ
6584
6585 eval "$ac_cv_use_gstreamer8"
6586 if test "$no_cache" != 1; then
6587 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6588 fi
6589
6590 if test "$wxUSE_GSTREAMER8" = yes; then
f321ab7f
VS
6591 echo "$as_me:$LINENO: result: yes" >&5
6592echo "${ECHO_T}yes" >&6
f10e38c4 6593 else
f321ab7f
VS
6594 echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
f10e38c4
VZ
6596 fi
6597
6598
077c7880 6599 enablestring=
f321ab7f
VS
6600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6601echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6602 no_cache=0
f321ab7f 6603 # Check whether --enable-printfposparam or --disable-printfposparam was given.
8b6682b9 6604if test "${enable_printfposparam+set}" = set; then
f321ab7f
VS
6605 enableval="$enable_printfposparam"
6606
a848cd7e 6607 if test "$enableval" = yes; then
8b6682b9 6608 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6609 else
8b6682b9 6610 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6611 fi
6612
6613else
6614
8b6682b9 6615 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6616 if test "x$LINE" != x ; then
6617 eval "DEFAULT_$LINE"
6618 else
6619 no_cache=1
6620 fi
6621
8b6682b9 6622 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e 6623
f321ab7f 6624fi;
a848cd7e 6625
8b6682b9 6626 eval "$ac_cv_use_printfposparam"
a848cd7e 6627 if test "$no_cache" != 1; then
8b6682b9 6628 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6629 fi
6630
8b6682b9 6631 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
f321ab7f
VS
6632 echo "$as_me:$LINENO: result: yes" >&5
6633echo "${ECHO_T}yes" >&6
a848cd7e 6634 else
f321ab7f
VS
6635 echo "$as_me:$LINENO: result: no" >&5
6636echo "${ECHO_T}no" >&6
a848cd7e
SC
6637 fi
6638
6639
077c7880 6640 enablestring=
f321ab7f
VS
6641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6642echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
a848cd7e 6643 no_cache=0
f321ab7f 6644 # Check whether --enable-zipstream or --disable-zipstream was given.
a848cd7e 6645if test "${enable_zipstream+set}" = set; then
f321ab7f
VS
6646 enableval="$enable_zipstream"
6647
a848cd7e
SC
6648 if test "$enableval" = yes; then
6649 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6650 else
6651 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6652 fi
6653
6654else
6655
6656 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6657 if test "x$LINE" != x ; then
6658 eval "DEFAULT_$LINE"
6659 else
6660 no_cache=1
6661 fi
6662
6663 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6664
f321ab7f 6665fi;
a848cd7e
SC
6666
6667 eval "$ac_cv_use_zipstream"
6668 if test "$no_cache" != 1; then
6669 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6670 fi
6671
6672 if test "$wxUSE_ZIPSTREAM" = yes; then
f321ab7f
VS
6673 echo "$as_me:$LINENO: result: yes" >&5
6674echo "${ECHO_T}yes" >&6
a848cd7e 6675 else
f321ab7f
VS
6676 echo "$as_me:$LINENO: result: no" >&5
6677echo "${ECHO_T}no" >&6
a848cd7e
SC
6678 fi
6679
6680
a848cd7e 6681
077c7880 6682 enablestring=
f321ab7f
VS
6683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6684echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
a848cd7e 6685 no_cache=0
f321ab7f 6686 # Check whether --enable-url or --disable-url was given.
a848cd7e 6687if test "${enable_url+set}" = set; then
f321ab7f
VS
6688 enableval="$enable_url"
6689
a848cd7e
SC
6690 if test "$enableval" = yes; then
6691 ac_cv_use_url='wxUSE_URL=yes'
6692 else
6693 ac_cv_use_url='wxUSE_URL=no'
6694 fi
6695
6696else
6697
6698 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6699 if test "x$LINE" != x ; then
6700 eval "DEFAULT_$LINE"
6701 else
6702 no_cache=1
6703 fi
6704
6705 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6706
f321ab7f 6707fi;
a848cd7e
SC
6708
6709 eval "$ac_cv_use_url"
6710 if test "$no_cache" != 1; then
6711 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6712 fi
6713
6714 if test "$wxUSE_URL" = yes; then
f321ab7f
VS
6715 echo "$as_me:$LINENO: result: yes" >&5
6716echo "${ECHO_T}yes" >&6
a848cd7e 6717 else
f321ab7f
VS
6718 echo "$as_me:$LINENO: result: no" >&5
6719echo "${ECHO_T}no" >&6
a848cd7e
SC
6720 fi
6721
6722
077c7880 6723 enablestring=
f321ab7f
VS
6724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6725echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
ca5c6ac3 6726 no_cache=0
f321ab7f 6727 # Check whether --enable-variant or --disable-variant was given.
ca5c6ac3 6728if test "${enable_variant+set}" = set; then
f321ab7f
VS
6729 enableval="$enable_variant"
6730
ca5c6ac3
VZ
6731 if test "$enableval" = yes; then
6732 ac_cv_use_variant='wxUSE_VARIANT=yes'
6733 else
6734 ac_cv_use_variant='wxUSE_VARIANT=no'
6735 fi
6736
6737else
6738
6739 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6740 if test "x$LINE" != x ; then
6741 eval "DEFAULT_$LINE"
6742 else
6743 no_cache=1
6744 fi
6745
6746 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6747
f321ab7f 6748fi;
ca5c6ac3
VZ
6749
6750 eval "$ac_cv_use_variant"
6751 if test "$no_cache" != 1; then
6752 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6753 fi
6754
6755 if test "$wxUSE_VARIANT" = yes; then
f321ab7f
VS
6756 echo "$as_me:$LINENO: result: yes" >&5
6757echo "${ECHO_T}yes" >&6
ca5c6ac3 6758 else
f321ab7f
VS
6759 echo "$as_me:$LINENO: result: no" >&5
6760echo "${ECHO_T}no" >&6
ca5c6ac3
VZ
6761 fi
6762
6763
077c7880 6764 enablestring=
f321ab7f
VS
6765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6766echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
a848cd7e 6767 no_cache=0
f321ab7f 6768 # Check whether --enable-protocol or --disable-protocol was given.
a848cd7e 6769if test "${enable_protocol+set}" = set; then
f321ab7f
VS
6770 enableval="$enable_protocol"
6771
a848cd7e
SC
6772 if test "$enableval" = yes; then
6773 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6774 else
6775 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6776 fi
6777
6778else
6779
6780 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6781 if test "x$LINE" != x ; then
6782 eval "DEFAULT_$LINE"
6783 else
6784 no_cache=1
6785 fi
6786
6787 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6788
f321ab7f 6789fi;
a848cd7e
SC
6790
6791 eval "$ac_cv_use_protocol"
6792 if test "$no_cache" != 1; then
6793 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6794 fi
6795
6796 if test "$wxUSE_PROTOCOL" = yes; then
f321ab7f
VS
6797 echo "$as_me:$LINENO: result: yes" >&5
6798echo "${ECHO_T}yes" >&6
a848cd7e 6799 else
f321ab7f
VS
6800 echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6
a848cd7e
SC
6802 fi
6803
6804
077c7880 6805 enablestring=
f321ab7f
VS
6806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6807echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
a848cd7e 6808 no_cache=0
f321ab7f 6809 # Check whether --enable-protocol_http or --disable-protocol_http was given.
a848cd7e 6810if test "${enable_protocol_http+set}" = set; then
f321ab7f
VS
6811 enableval="$enable_protocol_http"
6812
a848cd7e
SC
6813 if test "$enableval" = yes; then
6814 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6815 else
6816 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6817 fi
6818
6819else
6820
6821 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6829
f321ab7f 6830fi;
a848cd7e
SC
6831
6832 eval "$ac_cv_use_protocol_http"
6833 if test "$no_cache" != 1; then
6834 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6835 fi
6836
6837 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
f321ab7f
VS
6838 echo "$as_me:$LINENO: result: yes" >&5
6839echo "${ECHO_T}yes" >&6
a848cd7e 6840 else
f321ab7f
VS
6841 echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6
a848cd7e
SC
6843 fi
6844
6845
077c7880 6846 enablestring=
f321ab7f
VS
6847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6848echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
a848cd7e 6849 no_cache=0
f321ab7f 6850 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
a848cd7e 6851if test "${enable_protocol_ftp+set}" = set; then
f321ab7f
VS
6852 enableval="$enable_protocol_ftp"
6853
a848cd7e
SC
6854 if test "$enableval" = yes; then
6855 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6856 else
6857 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6858 fi
6859
6860else
6861
6862 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6863 if test "x$LINE" != x ; then
6864 eval "DEFAULT_$LINE"
6865 else
6866 no_cache=1
6867 fi
6868
6869 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6870
f321ab7f 6871fi;
a848cd7e
SC
6872
6873 eval "$ac_cv_use_protocol_ftp"
6874 if test "$no_cache" != 1; then
6875 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6876 fi
6877
6878 if test "$wxUSE_PROTOCOL_FTP" = yes; then
f321ab7f
VS
6879 echo "$as_me:$LINENO: result: yes" >&5
6880echo "${ECHO_T}yes" >&6
a848cd7e 6881 else
f321ab7f
VS
6882 echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6
a848cd7e
SC
6884 fi
6885
6886
077c7880 6887 enablestring=
f321ab7f
VS
6888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6889echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
a848cd7e 6890 no_cache=0
f321ab7f 6891 # Check whether --enable-protocol_file or --disable-protocol_file was given.
a848cd7e 6892if test "${enable_protocol_file+set}" = set; then
f321ab7f
VS
6893 enableval="$enable_protocol_file"
6894
a848cd7e
SC
6895 if test "$enableval" = yes; then
6896 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6897 else
6898 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6899 fi
6900
6901else
6902
6903 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6904 if test "x$LINE" != x ; then
6905 eval "DEFAULT_$LINE"
6906 else
6907 no_cache=1
6908 fi
6909
6910 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6911
f321ab7f 6912fi;
a848cd7e
SC
6913
6914 eval "$ac_cv_use_protocol_file"
6915 if test "$no_cache" != 1; then
6916 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6917 fi
6918
6919 if test "$wxUSE_PROTOCOL_FILE" = yes; then
f321ab7f
VS
6920 echo "$as_me:$LINENO: result: yes" >&5
6921echo "${ECHO_T}yes" >&6
a848cd7e 6922 else
f321ab7f
VS
6923 echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6
a848cd7e
SC
6925 fi
6926
6927
6928
6929
6930
077c7880 6931 enablestring=
f321ab7f
VS
6932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6933echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
a848cd7e 6934 no_cache=0
f321ab7f 6935 # Check whether --enable-threads or --disable-threads was given.
a848cd7e 6936if test "${enable_threads+set}" = set; then
f321ab7f
VS
6937 enableval="$enable_threads"
6938
a848cd7e
SC
6939 if test "$enableval" = yes; then
6940 ac_cv_use_threads='wxUSE_THREADS=yes'
6941 else
6942 ac_cv_use_threads='wxUSE_THREADS=no'
6943 fi
6944
6945else
6946
6947 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6948 if test "x$LINE" != x ; then
6949 eval "DEFAULT_$LINE"
6950 else
6951 no_cache=1
6952 fi
6953
6954 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6955
f321ab7f 6956fi;
a848cd7e
SC
6957
6958 eval "$ac_cv_use_threads"
6959 if test "$no_cache" != 1; then
6960 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6961 fi
6962
6963 if test "$wxUSE_THREADS" = yes; then
f321ab7f
VS
6964 echo "$as_me:$LINENO: result: yes" >&5
6965echo "${ECHO_T}yes" >&6
a848cd7e 6966 else
f321ab7f
VS
6967 echo "$as_me:$LINENO: result: no" >&5
6968echo "${ECHO_T}no" >&6
a848cd7e
SC
6969 fi
6970
6971
6972if test "$wxUSE_GUI" = "yes"; then
6973
6974
6975
077c7880 6976 enablestring=
f321ab7f
VS
6977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6978echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
a848cd7e 6979 no_cache=0
f321ab7f 6980 # Check whether --enable-docview or --disable-docview was given.
a848cd7e 6981if test "${enable_docview+set}" = set; then
f321ab7f
VS
6982 enableval="$enable_docview"
6983
a848cd7e
SC
6984 if test "$enableval" = yes; then
6985 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6986 else
6987 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6988 fi
6989
6990else
6991
6992 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6993 if test "x$LINE" != x ; then
6994 eval "DEFAULT_$LINE"
6995 else
6996 no_cache=1
6997 fi
6998
6999 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
7000
f321ab7f 7001fi;
a848cd7e
SC
7002
7003 eval "$ac_cv_use_docview"
7004 if test "$no_cache" != 1; then
7005 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
7006 fi
7007
7008 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
f321ab7f
VS
7009 echo "$as_me:$LINENO: result: yes" >&5
7010echo "${ECHO_T}yes" >&6
a848cd7e 7011 else
f321ab7f
VS
7012 echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6
a848cd7e
SC
7014 fi
7015
7016
077c7880 7017 enablestring=
f321ab7f
VS
7018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
7019echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
a848cd7e 7020 no_cache=0
f321ab7f 7021 # Check whether --enable-help or --disable-help was given.
a848cd7e 7022if test "${enable_help+set}" = set; then
f321ab7f
VS
7023 enableval="$enable_help"
7024
a848cd7e
SC
7025 if test "$enableval" = yes; then
7026 ac_cv_use_help='wxUSE_HELP=yes'
7027 else
7028 ac_cv_use_help='wxUSE_HELP=no'
7029 fi
7030
7031else
7032
7033 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
7034 if test "x$LINE" != x ; then
7035 eval "DEFAULT_$LINE"
7036 else
7037 no_cache=1
7038 fi
7039
7040 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
7041
f321ab7f 7042fi;
a848cd7e
SC
7043
7044 eval "$ac_cv_use_help"
7045 if test "$no_cache" != 1; then
7046 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
7047 fi
7048
7049 if test "$wxUSE_HELP" = yes; then
f321ab7f
VS
7050 echo "$as_me:$LINENO: result: yes" >&5
7051echo "${ECHO_T}yes" >&6
a848cd7e 7052 else
f321ab7f
VS
7053 echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6
a848cd7e
SC
7055 fi
7056
7057
077c7880 7058 enablestring=
f321ab7f
VS
7059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7060echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
a848cd7e 7061 no_cache=0
f321ab7f 7062 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
a848cd7e 7063if test "${enable_mshtmlhelp+set}" = set; then
f321ab7f
VS
7064 enableval="$enable_mshtmlhelp"
7065
a848cd7e
SC
7066 if test "$enableval" = yes; then
7067 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7068 else
7069 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7070 fi
7071
7072else
7073
7074 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7075 if test "x$LINE" != x ; then
7076 eval "DEFAULT_$LINE"
7077 else
7078 no_cache=1
7079 fi
7080
7081 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7082
f321ab7f 7083fi;
a848cd7e
SC
7084
7085 eval "$ac_cv_use_mshtmlhelp"
7086 if test "$no_cache" != 1; then
7087 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7088 fi
7089
7090 if test "$wxUSE_MS_HTML_HELP" = yes; then
f321ab7f
VS
7091 echo "$as_me:$LINENO: result: yes" >&5
7092echo "${ECHO_T}yes" >&6
a848cd7e 7093 else
f321ab7f
VS
7094 echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6
a848cd7e
SC
7096 fi
7097
7098
077c7880 7099 enablestring=
f321ab7f
VS
7100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7101echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
a848cd7e 7102 no_cache=0
f321ab7f 7103 # Check whether --enable-html or --disable-html was given.
a848cd7e 7104if test "${enable_html+set}" = set; then
f321ab7f
VS
7105 enableval="$enable_html"
7106
a848cd7e
SC
7107 if test "$enableval" = yes; then
7108 ac_cv_use_html='wxUSE_HTML=yes'
7109 else
7110 ac_cv_use_html='wxUSE_HTML=no'
7111 fi
7112
7113else
7114
7115 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7116 if test "x$LINE" != x ; then
7117 eval "DEFAULT_$LINE"
7118 else
7119 no_cache=1
7120 fi
7121
7122 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7123
f321ab7f 7124fi;
a848cd7e
SC
7125
7126 eval "$ac_cv_use_html"
7127 if test "$no_cache" != 1; then
7128 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7129 fi
7130
7131 if test "$wxUSE_HTML" = yes; then
f321ab7f
VS
7132 echo "$as_me:$LINENO: result: yes" >&5
7133echo "${ECHO_T}yes" >&6
a848cd7e 7134 else
f321ab7f
VS
7135 echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6
a848cd7e
SC
7137 fi
7138
7139
077c7880 7140 enablestring=
f321ab7f
VS
7141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7142echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
a848cd7e 7143 no_cache=0
f321ab7f 7144 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
a848cd7e 7145if test "${enable_htmlhelp+set}" = set; then
f321ab7f
VS
7146 enableval="$enable_htmlhelp"
7147
a848cd7e
SC
7148 if test "$enableval" = yes; then
7149 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7150 else
7151 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7152 fi
7153
7154else
7155
7156 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7157 if test "x$LINE" != x ; then
7158 eval "DEFAULT_$LINE"
7159 else
7160 no_cache=1
7161 fi
7162
7163 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7164
f321ab7f 7165fi;
a848cd7e
SC
7166
7167 eval "$ac_cv_use_htmlhelp"
7168 if test "$no_cache" != 1; then
7169 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7170 fi
7171
7172 if test "$wxUSE_WXHTML_HELP" = yes; then
f321ab7f
VS
7173 echo "$as_me:$LINENO: result: yes" >&5
7174echo "${ECHO_T}yes" >&6
a848cd7e 7175 else
f321ab7f
VS
7176 echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
a848cd7e
SC
7178 fi
7179
7180
077c7880 7181 enablestring=
f321ab7f
VS
7182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7183echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
9a8f0513 7184 no_cache=0
f321ab7f 7185 # Check whether --enable-xrc or --disable-xrc was given.
9a8f0513 7186if test "${enable_xrc+set}" = set; then
f321ab7f
VS
7187 enableval="$enable_xrc"
7188
9a8f0513
VS
7189 if test "$enableval" = yes; then
7190 ac_cv_use_xrc='wxUSE_XRC=yes'
7191 else
7192 ac_cv_use_xrc='wxUSE_XRC=no'
7193 fi
7194
7195else
7196
7197 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7198 if test "x$LINE" != x ; then
7199 eval "DEFAULT_$LINE"
7200 else
7201 no_cache=1
7202 fi
7203
7204 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7205
f321ab7f 7206fi;
9a8f0513
VS
7207
7208 eval "$ac_cv_use_xrc"
7209 if test "$no_cache" != 1; then
7210 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7211 fi
7212
7213 if test "$wxUSE_XRC" = yes; then
f321ab7f
VS
7214 echo "$as_me:$LINENO: result: yes" >&5
7215echo "${ECHO_T}yes" >&6
9a8f0513 7216 else
f321ab7f
VS
7217 echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6
9a8f0513
VS
7219 fi
7220
7221
077c7880 7222 enablestring=
f321ab7f
VS
7223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7224echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
3f60522a 7225 no_cache=0
f321ab7f 7226 # Check whether --enable-aui or --disable-aui was given.
3f60522a 7227if test "${enable_aui+set}" = set; then
f321ab7f
VS
7228 enableval="$enable_aui"
7229
3f60522a
JS
7230 if test "$enableval" = yes; then
7231 ac_cv_use_aui='wxUSE_AUI=yes'
7232 else
7233 ac_cv_use_aui='wxUSE_AUI=no'
7234 fi
7235
7236else
7237
7238 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7239 if test "x$LINE" != x ; then
7240 eval "DEFAULT_$LINE"
7241 else
7242 no_cache=1
7243 fi
7244
7245 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7246
f321ab7f 7247fi;
3f60522a
JS
7248
7249 eval "$ac_cv_use_aui"
7250 if test "$no_cache" != 1; then
7251 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7252 fi
7253
7254 if test "$wxUSE_AUI" = yes; then
f321ab7f
VS
7255 echo "$as_me:$LINENO: result: yes" >&5
7256echo "${ECHO_T}yes" >&6
3f60522a 7257 else
f321ab7f
VS
7258 echo "$as_me:$LINENO: result: no" >&5
7259echo "${ECHO_T}no" >&6
3f60522a
JS
7260 fi
7261
7262
077c7880 7263 enablestring=
f321ab7f
VS
7264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7265echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
a848cd7e 7266 no_cache=0
f321ab7f 7267 # Check whether --enable-constraints or --disable-constraints was given.
a848cd7e 7268if test "${enable_constraints+set}" = set; then
f321ab7f
VS
7269 enableval="$enable_constraints"
7270
a848cd7e
SC
7271 if test "$enableval" = yes; then
7272 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7273 else
7274 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7275 fi
7276
7277else
7278
7279 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7280 if test "x$LINE" != x ; then
7281 eval "DEFAULT_$LINE"
7282 else
7283 no_cache=1
7284 fi
7285
7286 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7287
f321ab7f 7288fi;
a848cd7e
SC
7289
7290 eval "$ac_cv_use_constraints"
7291 if test "$no_cache" != 1; then
7292 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7293 fi
7294
7295 if test "$wxUSE_CONSTRAINTS" = yes; then
f321ab7f
VS
7296 echo "$as_me:$LINENO: result: yes" >&5
7297echo "${ECHO_T}yes" >&6
a848cd7e 7298 else
f321ab7f
VS
7299 echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6
a848cd7e
SC
7301 fi
7302
7303
077c7880 7304 enablestring=
f321ab7f
VS
7305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7306echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
a848cd7e 7307 no_cache=0
f321ab7f 7308 # Check whether --enable-printarch or --disable-printarch was given.
a848cd7e 7309if test "${enable_printarch+set}" = set; then
f321ab7f
VS
7310 enableval="$enable_printarch"
7311
a848cd7e
SC
7312 if test "$enableval" = yes; then
7313 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7314 else
7315 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7316 fi
7317
7318else
7319
7320 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7321 if test "x$LINE" != x ; then
7322 eval "DEFAULT_$LINE"
7323 else
7324 no_cache=1
7325 fi
7326
7327 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7328
f321ab7f 7329fi;
a848cd7e
SC
7330
7331 eval "$ac_cv_use_printarch"
7332 if test "$no_cache" != 1; then
7333 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7334 fi
7335
7336 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
f321ab7f
VS
7337 echo "$as_me:$LINENO: result: yes" >&5
7338echo "${ECHO_T}yes" >&6
a848cd7e 7339 else
f321ab7f
VS
7340 echo "$as_me:$LINENO: result: no" >&5
7341echo "${ECHO_T}no" >&6
a848cd7e
SC
7342 fi
7343
7344
077c7880 7345 enablestring=
f321ab7f
VS
7346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7347echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
a848cd7e 7348 no_cache=0
f321ab7f 7349 # Check whether --enable-mdi or --disable-mdi was given.
a848cd7e 7350if test "${enable_mdi+set}" = set; then
f321ab7f
VS
7351 enableval="$enable_mdi"
7352
a848cd7e 7353 if test "$enableval" = yes; then
8a7b1113 7354 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7355 else
8a7b1113 7356 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7357 fi
7358
7359else
7360
8a7b1113 7361 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7362 if test "x$LINE" != x ; then
7363 eval "DEFAULT_$LINE"
7364 else
7365 no_cache=1
7366 fi
7367
8a7b1113 7368 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e 7369
f321ab7f 7370fi;
a848cd7e
SC
7371
7372 eval "$ac_cv_use_mdi"
7373 if test "$no_cache" != 1; then
7374 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7375 fi
7376
8a7b1113 7377 if test "$wxUSE_MDI" = yes; then
f321ab7f
VS
7378 echo "$as_me:$LINENO: result: yes" >&5
7379echo "${ECHO_T}yes" >&6
8a7b1113 7380 else
f321ab7f
VS
7381 echo "$as_me:$LINENO: result: no" >&5
7382echo "${ECHO_T}no" >&6
8a7b1113
VZ
7383 fi
7384
7385
077c7880 7386 enablestring=
f321ab7f
VS
7387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7388echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
8a7b1113 7389 no_cache=0
f321ab7f 7390 # Check whether --enable-mdidoc or --disable-mdidoc was given.
8a7b1113 7391if test "${enable_mdidoc+set}" = set; then
f321ab7f
VS
7392 enableval="$enable_mdidoc"
7393
8a7b1113
VZ
7394 if test "$enableval" = yes; then
7395 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7396 else
7397 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7398 fi
7399
7400else
7401
7402 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7403 if test "x$LINE" != x ; then
7404 eval "DEFAULT_$LINE"
7405 else
7406 no_cache=1
7407 fi
7408
7409 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7410
f321ab7f 7411fi;
8a7b1113
VZ
7412
7413 eval "$ac_cv_use_mdidoc"
7414 if test "$no_cache" != 1; then
7415 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7416 fi
7417
a848cd7e 7418 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
f321ab7f
VS
7419 echo "$as_me:$LINENO: result: yes" >&5
7420echo "${ECHO_T}yes" >&6
a848cd7e 7421 else
f321ab7f
VS
7422 echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6
a848cd7e
SC
7424 fi
7425
7426
077c7880 7427 enablestring=
f321ab7f
VS
7428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7429echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
a848cd7e 7430 no_cache=0
f321ab7f 7431 # Check whether --enable-loggui or --disable-loggui was given.
a848cd7e 7432if test "${enable_loggui+set}" = set; then
f321ab7f
VS
7433 enableval="$enable_loggui"
7434
a848cd7e
SC
7435 if test "$enableval" = yes; then
7436 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7437 else
7438 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7439 fi
7440
7441else
7442
7443 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7444 if test "x$LINE" != x ; then
7445 eval "DEFAULT_$LINE"
7446 else
7447 no_cache=1
7448 fi
7449
7450 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7451
f321ab7f 7452fi;
a848cd7e
SC
7453
7454 eval "$ac_cv_use_loggui"
7455 if test "$no_cache" != 1; then
7456 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7457 fi
7458
7459 if test "$wxUSE_LOGGUI" = yes; then
f321ab7f
VS
7460 echo "$as_me:$LINENO: result: yes" >&5
7461echo "${ECHO_T}yes" >&6
a848cd7e 7462 else
f321ab7f
VS
7463 echo "$as_me:$LINENO: result: no" >&5
7464echo "${ECHO_T}no" >&6
a848cd7e
SC
7465 fi
7466
7467
077c7880 7468 enablestring=
f321ab7f
VS
7469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7470echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
a848cd7e 7471 no_cache=0
f321ab7f 7472 # Check whether --enable-logwin or --disable-logwin was given.
a848cd7e 7473if test "${enable_logwin+set}" = set; then
f321ab7f
VS
7474 enableval="$enable_logwin"
7475
a848cd7e
SC
7476 if test "$enableval" = yes; then
7477 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7478 else
7479 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7480 fi
7481
7482else
7483
7484 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7485 if test "x$LINE" != x ; then
7486 eval "DEFAULT_$LINE"
7487 else
7488 no_cache=1
7489 fi
7490
7491 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7492
f321ab7f 7493fi;
a848cd7e
SC
7494
7495 eval "$ac_cv_use_logwin"
7496 if test "$no_cache" != 1; then
7497 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7498 fi
7499
7500 if test "$wxUSE_LOGWINDOW" = yes; then
f321ab7f
VS
7501 echo "$as_me:$LINENO: result: yes" >&5
7502echo "${ECHO_T}yes" >&6
a848cd7e 7503 else
f321ab7f
VS
7504 echo "$as_me:$LINENO: result: no" >&5
7505echo "${ECHO_T}no" >&6
a848cd7e
SC
7506 fi
7507
7508
077c7880 7509 enablestring=
f321ab7f
VS
7510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7511echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
a848cd7e 7512 no_cache=0
f321ab7f 7513 # Check whether --enable-logdialog or --disable-logdialog was given.
a848cd7e 7514if test "${enable_logdialog+set}" = set; then
f321ab7f
VS
7515 enableval="$enable_logdialog"
7516
a848cd7e
SC
7517 if test "$enableval" = yes; then
7518 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7519 else
7520 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7521 fi
7522
7523else
7524
7525 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7526 if test "x$LINE" != x ; then
7527 eval "DEFAULT_$LINE"
7528 else
7529 no_cache=1
7530 fi
7531
7532 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7533
f321ab7f 7534fi;
a848cd7e
SC
7535
7536 eval "$ac_cv_use_logdialog"
7537 if test "$no_cache" != 1; then
7538 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7539 fi
7540
7541 if test "$wxUSE_LOGDIALOG" = yes; then
f321ab7f
VS
7542 echo "$as_me:$LINENO: result: yes" >&5
7543echo "${ECHO_T}yes" >&6
a848cd7e 7544 else
f321ab7f
VS
7545 echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6
a848cd7e
SC
7547 fi
7548
7549
077c7880 7550 enablestring=
f321ab7f
VS
7551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7552echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
646b6ec1 7553 no_cache=0
f321ab7f 7554 # Check whether --enable-webkit or --disable-webkit was given.
646b6ec1 7555if test "${enable_webkit+set}" = set; then
f321ab7f
VS
7556 enableval="$enable_webkit"
7557
646b6ec1
VS
7558 if test "$enableval" = yes; then
7559 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7560 else
7561 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7562 fi
7563
7564else
7565
7566 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7567 if test "x$LINE" != x ; then
7568 eval "DEFAULT_$LINE"
7569 else
7570 no_cache=1
7571 fi
7572
7573 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7574
f321ab7f 7575fi;
646b6ec1
VS
7576
7577 eval "$ac_cv_use_webkit"
7578 if test "$no_cache" != 1; then
7579 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7580 fi
7581
7582 if test "$wxUSE_WEBKIT" = yes; then
f321ab7f
VS
7583 echo "$as_me:$LINENO: result: yes" >&5
7584echo "${ECHO_T}yes" >&6
646b6ec1 7585 else
f321ab7f
VS
7586 echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6
646b6ec1
VS
7588 fi
7589
7590
077c7880 7591 enablestring=
f321ab7f
VS
7592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
7593echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6
91dea314 7594 no_cache=0
f321ab7f 7595 # Check whether --enable-richtext or --disable-richtext was given.
6da4ac91 7596if test "${enable_richtext+set}" = set; then
f321ab7f
VS
7597 enableval="$enable_richtext"
7598
91dea314 7599 if test "$enableval" = yes; then
6da4ac91 7600 ac_cv_use_richtext='wxUSE_RICHTEXT=yes'
91dea314 7601 else
6da4ac91 7602 ac_cv_use_richtext='wxUSE_RICHTEXT=no'
91dea314
MW
7603 fi
7604
7605else
7606
7607 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7608 if test "x$LINE" != x ; then
7609 eval "DEFAULT_$LINE"
7610 else
7611 no_cache=1
7612 fi
7613
6da4ac91 7614 ac_cv_use_richtext='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
91dea314 7615
f321ab7f 7616fi;
91dea314 7617
6da4ac91 7618 eval "$ac_cv_use_richtext"
91dea314 7619 if test "$no_cache" != 1; then
6da4ac91 7620 echo $ac_cv_use_richtext >> ${wx_arg_cache_file}.tmp
91dea314
MW
7621 fi
7622
7623 if test "$wxUSE_RICHTEXT" = yes; then
f321ab7f
VS
7624 echo "$as_me:$LINENO: result: yes" >&5
7625echo "${ECHO_T}yes" >&6
91dea314 7626 else
f321ab7f
VS
7627 echo "$as_me:$LINENO: result: no" >&5
7628echo "${ECHO_T}no" >&6
91dea314
MW
7629 fi
7630
7631
077c7880 7632 enablestring=
f321ab7f
VS
7633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7634echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
f43426c1 7635 no_cache=0
f321ab7f 7636 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
f43426c1 7637if test "${enable_graphics_ctx+set}" = set; then
f321ab7f
VS
7638 enableval="$enable_graphics_ctx"
7639
f43426c1
RD
7640 if test "$enableval" = yes; then
7641 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7642 else
7643 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7644 fi
7645
7646else
7647
7648 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7649 if test "x$LINE" != x ; then
7650 eval "DEFAULT_$LINE"
7651 else
7652 no_cache=1
7653 fi
7654
7655 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7656
f321ab7f 7657fi;
f43426c1
RD
7658
7659 eval "$ac_cv_use_graphics_ctx"
7660 if test "$no_cache" != 1; then
7661 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7662 fi
7663
7664 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
f321ab7f
VS
7665 echo "$as_me:$LINENO: result: yes" >&5
7666echo "${ECHO_T}yes" >&6
f43426c1 7667 else
f321ab7f
VS
7668 echo "$as_me:$LINENO: result: no" >&5
7669echo "${ECHO_T}no" >&6
f43426c1
RD
7670 fi
7671
7672
a848cd7e 7673
077c7880 7674 enablestring=
f321ab7f
VS
7675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7676echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
a848cd7e 7677 no_cache=0
f321ab7f 7678 # Check whether --enable-postscript or --disable-postscript was given.
a848cd7e 7679if test "${enable_postscript+set}" = set; then
f321ab7f
VS
7680 enableval="$enable_postscript"
7681
a848cd7e
SC
7682 if test "$enableval" = yes; then
7683 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7684 else
7685 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7686 fi
7687
7688else
7689
7690 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7691 if test "x$LINE" != x ; then
7692 eval "DEFAULT_$LINE"
7693 else
7694 no_cache=1
7695 fi
7696
7697 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7698
f321ab7f 7699fi;
a848cd7e
SC
7700
7701 eval "$ac_cv_use_postscript"
7702 if test "$no_cache" != 1; then
7703 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7704 fi
7705
7706 if test "$wxUSE_POSTSCRIPT" = yes; then
f321ab7f
VS
7707 echo "$as_me:$LINENO: result: yes" >&5
7708echo "${ECHO_T}yes" >&6
a848cd7e 7709 else
f321ab7f
VS
7710 echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
a848cd7e
SC
7712 fi
7713
7714
7715
7716
7717
077c7880 7718 enablestring=
f321ab7f
VS
7719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7720echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
a848cd7e 7721 no_cache=0
f321ab7f 7722 # Check whether --enable-prologio or --disable-prologio was given.
a848cd7e 7723if test "${enable_prologio+set}" = set; then
f321ab7f
VS
7724 enableval="$enable_prologio"
7725
a848cd7e
SC
7726 if test "$enableval" = yes; then
7727 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7728 else
7729 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7730 fi
7731
7732else
7733
7734 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7735 if test "x$LINE" != x ; then
7736 eval "DEFAULT_$LINE"
7737 else
7738 no_cache=1
7739 fi
7740
7741 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7742
f321ab7f 7743fi;
a848cd7e
SC
7744
7745 eval "$ac_cv_use_prologio"
7746 if test "$no_cache" != 1; then
7747 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7748 fi
7749
7750 if test "$wxUSE_PROLOGIO" = yes; then
f321ab7f
VS
7751 echo "$as_me:$LINENO: result: yes" >&5
7752echo "${ECHO_T}yes" >&6
a848cd7e 7753 else
f321ab7f
VS
7754 echo "$as_me:$LINENO: result: no" >&5
7755echo "${ECHO_T}no" >&6
a848cd7e
SC
7756 fi
7757
7758
077c7880 7759 enablestring=
f321ab7f
VS
7760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7761echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
a848cd7e 7762 no_cache=0
f321ab7f 7763 # Check whether --enable-resources or --disable-resources was given.
a848cd7e 7764if test "${enable_resources+set}" = set; then
f321ab7f
VS
7765 enableval="$enable_resources"
7766
a848cd7e
SC
7767 if test "$enableval" = yes; then
7768 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7769 else
7770 ac_cv_use_resources='wxUSE_RESOURCES=no'
7771 fi
7772
7773else
7774
7775 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7776 if test "x$LINE" != x ; then
7777 eval "DEFAULT_$LINE"
7778 else
7779 no_cache=1
7780 fi
7781
7782 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7783
f321ab7f 7784fi;
a848cd7e
SC
7785
7786 eval "$ac_cv_use_resources"
7787 if test "$no_cache" != 1; then
7788 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7789 fi
7790
7791 if test "$wxUSE_RESOURCES" = yes; then
f321ab7f
VS
7792 echo "$as_me:$LINENO: result: yes" >&5
7793echo "${ECHO_T}yes" >&6
a848cd7e 7794 else
f321ab7f
VS
7795 echo "$as_me:$LINENO: result: no" >&5
7796echo "${ECHO_T}no" >&6
a848cd7e
SC
7797 fi
7798
7799
7800
7801
077c7880 7802 enablestring=
f321ab7f
VS
7803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7804echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
a848cd7e 7805 no_cache=0
f321ab7f 7806 # Check whether --enable-clipboard or --disable-clipboard was given.
a848cd7e 7807if test "${enable_clipboard+set}" = set; then
f321ab7f
VS
7808 enableval="$enable_clipboard"
7809
a848cd7e
SC
7810 if test "$enableval" = yes; then
7811 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7812 else
7813 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7814 fi
7815
7816else
7817
7818 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7819 if test "x$LINE" != x ; then
7820 eval "DEFAULT_$LINE"
7821 else
7822 no_cache=1
7823 fi
7824
7825 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7826
f321ab7f 7827fi;
a848cd7e
SC
7828
7829 eval "$ac_cv_use_clipboard"
7830 if test "$no_cache" != 1; then
7831 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7832 fi
7833
7834 if test "$wxUSE_CLIPBOARD" = yes; then
f321ab7f
VS
7835 echo "$as_me:$LINENO: result: yes" >&5
7836echo "${ECHO_T}yes" >&6
a848cd7e 7837 else
f321ab7f
VS
7838 echo "$as_me:$LINENO: result: no" >&5
7839echo "${ECHO_T}no" >&6
a848cd7e
SC
7840 fi
7841
7842
077c7880 7843 enablestring=
f321ab7f
VS
7844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7845echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
a848cd7e 7846 no_cache=0
f321ab7f 7847 # Check whether --enable-dnd or --disable-dnd was given.
a848cd7e 7848if test "${enable_dnd+set}" = set; then
f321ab7f
VS
7849 enableval="$enable_dnd"
7850
a848cd7e
SC
7851 if test "$enableval" = yes; then
7852 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7853 else
7854 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7855 fi
7856
7857else
7858
7859 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7860 if test "x$LINE" != x ; then
7861 eval "DEFAULT_$LINE"
7862 else
7863 no_cache=1
7864 fi
7865
7866 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7867
f321ab7f 7868fi;
a848cd7e
SC
7869
7870 eval "$ac_cv_use_dnd"
7871 if test "$no_cache" != 1; then
7872 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7873 fi
7874
7875 if test "$wxUSE_DRAG_AND_DROP" = yes; then
f321ab7f
VS
7876 echo "$as_me:$LINENO: result: yes" >&5
7877echo "${ECHO_T}yes" >&6
a848cd7e 7878 else
f321ab7f
VS
7879 echo "$as_me:$LINENO: result: no" >&5
7880echo "${ECHO_T}no" >&6
a848cd7e
SC
7881 fi
7882
7883
077c7880 7884 enablestring=
f321ab7f
VS
7885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7886echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
a848cd7e 7887 no_cache=0
f321ab7f 7888 # Check whether --enable-metafile or --disable-metafile was given.
a848cd7e 7889if test "${enable_metafile+set}" = set; then
f321ab7f
VS
7890 enableval="$enable_metafile"
7891
a848cd7e
SC
7892 if test "$enableval" = yes; then
7893 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7894 else
7895 ac_cv_use_metafile='wxUSE_METAFILE=no'
7896 fi
7897
7898else
7899
7900 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7901 if test "x$LINE" != x ; then
7902 eval "DEFAULT_$LINE"
7903 else
7904 no_cache=1
7905 fi
7906
7907 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7908
f321ab7f 7909fi;
a848cd7e
SC
7910
7911 eval "$ac_cv_use_metafile"
7912 if test "$no_cache" != 1; then
7913 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7914 fi
7915
7916 if test "$wxUSE_METAFILE" = yes; then
f321ab7f
VS
7917 echo "$as_me:$LINENO: result: yes" >&5
7918echo "${ECHO_T}yes" >&6
a848cd7e 7919 else
f321ab7f
VS
7920 echo "$as_me:$LINENO: result: no" >&5
7921echo "${ECHO_T}no" >&6
a848cd7e
SC
7922 fi
7923
7924
7925
7926
7927
077c7880 7928 enablestring=
f321ab7f
VS
7929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7930echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
a848cd7e 7931 no_cache=0
f321ab7f 7932 # Check whether --enable-controls or --disable-controls was given.
a848cd7e 7933if test "${enable_controls+set}" = set; then
f321ab7f
VS
7934 enableval="$enable_controls"
7935
a848cd7e
SC
7936 if test "$enableval" = yes; then
7937 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7938 else
7939 ac_cv_use_controls='wxUSE_CONTROLS=no'
7940 fi
7941
7942else
7943
7944 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7945 if test "x$LINE" != x ; then
7946 eval "DEFAULT_$LINE"
7947 else
7948 no_cache=1
7949 fi
7950
7951 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7952
f321ab7f 7953fi;
a848cd7e
SC
7954
7955 eval "$ac_cv_use_controls"
7956 if test "$no_cache" != 1; then
7957 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7958 fi
7959
7960 if test "$wxUSE_CONTROLS" = yes; then
f321ab7f
VS
7961 echo "$as_me:$LINENO: result: yes" >&5
7962echo "${ECHO_T}yes" >&6
a848cd7e 7963 else
f321ab7f
VS
7964 echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6
a848cd7e
SC
7966 fi
7967
7968
7969if test "$wxUSE_CONTROLS" = "yes"; then
7970 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7971 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7972 DEFAULT_wxUSE_BMPBUTTON=yes
7973 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7974 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7975 DEFAULT_wxUSE_CARET=yes
7976 DEFAULT_wxUSE_COMBOBOX=yes
7977 DEFAULT_wxUSE_CHECKBOX=yes
7978 DEFAULT_wxUSE_CHECKLISTBOX=yes
7979 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7980 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 7981 DEFAULT_wxUSE_COLLPANE=yes
e9263684
VZ
7982 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7983 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7984 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684 7985 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 7986 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
7987 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7988 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7989 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7990 DEFAULT_wxUSE_GAUGE=yes
7991 DEFAULT_wxUSE_GRID=yes
6954625c 7992 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7993 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7994 DEFAULT_wxUSE_IMAGLIST=yes
7995 DEFAULT_wxUSE_LISTBOOK=yes
7996 DEFAULT_wxUSE_LISTBOX=yes
7997 DEFAULT_wxUSE_LISTCTRL=yes
7998 DEFAULT_wxUSE_NOTEBOOK=yes
7999 DEFAULT_wxUSE_RADIOBOX=yes
8000 DEFAULT_wxUSE_RADIOBTN=yes
8001 DEFAULT_wxUSE_SASH=yes
8002 DEFAULT_wxUSE_SCROLLBAR=yes
3f7f284d 8003 DEFAULT_wxUSE_SEARCHCTRL=yes
a848cd7e
SC
8004 DEFAULT_wxUSE_SLIDER=yes
8005 DEFAULT_wxUSE_SPINBTN=yes
8006 DEFAULT_wxUSE_SPINCTRL=yes
8007 DEFAULT_wxUSE_SPLITTER=yes
8008 DEFAULT_wxUSE_STATBMP=yes
8009 DEFAULT_wxUSE_STATBOX=yes
8010 DEFAULT_wxUSE_STATLINE=yes
8011 DEFAULT_wxUSE_STATUSBAR=yes
8012 DEFAULT_wxUSE_TAB_DIALOG=yes
8013 DEFAULT_wxUSE_TOGGLEBTN=yes
8014 DEFAULT_wxUSE_TOOLBAR=yes
8015 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 8016 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 8017 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 8018 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
8019 DEFAULT_wxUSE_TREECTRL=yes
8020 DEFAULT_wxUSE_POPUPWIN=yes
8021 DEFAULT_wxUSE_TIPWINDOW=yes
8022elif test "$wxUSE_CONTROLS" = "no"; then
8023 DEFAULT_wxUSE_ACCEL=no
3ea50042 8024 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
8025 DEFAULT_wxUSE_BMPBUTTON=no
8026 DEFAULT_wxUSE_BUTTON=no
8027 DEFAULT_wxUSE_CALCTRL=no
8028 DEFAULT_wxUSE_CARET=no
bd915ace 8029 DEFAULT_wxUSE_COLLPANE=no
a848cd7e
SC
8030 DEFAULT_wxUSE_COMBOBOX=no
8031 DEFAULT_wxUSE_CHECKBOX=no
8032 DEFAULT_wxUSE_CHECKLISTBOX=no
8033 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 8034 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
8035 DEFAULT_wxUSE_COLOURPICKERCTRL=no
8036 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 8037 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684 8038 DEFAULT_wxUSE_DISPLAY=no
88bbc332 8039 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
8040 DEFAULT_wxUSE_DIRPICKERCTRL=no
8041 DEFAULT_wxUSE_FILEPICKERCTRL=no
8042 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
8043 DEFAULT_wxUSE_GAUGE=no
8044 DEFAULT_wxUSE_GRID=no
6954625c 8045 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 8046 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
8047 DEFAULT_wxUSE_IMAGLIST=no
8048 DEFAULT_wxUSE_LISTBOOK=no
8049 DEFAULT_wxUSE_LISTBOX=no
8050 DEFAULT_wxUSE_LISTCTRL=no
8051 DEFAULT_wxUSE_NOTEBOOK=no
8052 DEFAULT_wxUSE_RADIOBOX=no
8053 DEFAULT_wxUSE_RADIOBTN=no
8054 DEFAULT_wxUSE_SASH=no
8055 DEFAULT_wxUSE_SCROLLBAR=no
3f7f284d 8056 DEFAULT_wxUSE_SEARCHCTRL=no
a848cd7e
SC
8057 DEFAULT_wxUSE_SLIDER=no
8058 DEFAULT_wxUSE_SPINBTN=no
8059 DEFAULT_wxUSE_SPINCTRL=no
8060 DEFAULT_wxUSE_SPLITTER=no
8061 DEFAULT_wxUSE_STATBMP=no
8062 DEFAULT_wxUSE_STATBOX=no
8063 DEFAULT_wxUSE_STATLINE=no
8064 DEFAULT_wxUSE_STATUSBAR=no
8065 DEFAULT_wxUSE_TAB_DIALOG=no
8066 DEFAULT_wxUSE_TOGGLEBTN=no
8067 DEFAULT_wxUSE_TOOLBAR=no
8068 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 8069 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 8070 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 8071 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
8072 DEFAULT_wxUSE_TREECTRL=no
8073 DEFAULT_wxUSE_POPUPWIN=no
8074 DEFAULT_wxUSE_TIPWINDOW=no
8075fi
8076
a848cd7e 8077
077c7880 8078 enablestring=
f321ab7f
VS
8079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8080echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
a848cd7e 8081 no_cache=0
f321ab7f 8082 # Check whether --enable-accel or --disable-accel was given.
a848cd7e 8083if test "${enable_accel+set}" = set; then
f321ab7f
VS
8084 enableval="$enable_accel"
8085
a848cd7e
SC
8086 if test "$enableval" = yes; then
8087 ac_cv_use_accel='wxUSE_ACCEL=yes'
8088 else
8089 ac_cv_use_accel='wxUSE_ACCEL=no'
8090 fi
8091
8092else
8093
8094 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8095 if test "x$LINE" != x ; then
8096 eval "DEFAULT_$LINE"
8097 else
8098 no_cache=1
8099 fi
8100
8101 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8102
f321ab7f 8103fi;
a848cd7e
SC
8104
8105 eval "$ac_cv_use_accel"
8106 if test "$no_cache" != 1; then
8107 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8108 fi
8109
8110 if test "$wxUSE_ACCEL" = yes; then
f321ab7f
VS
8111 echo "$as_me:$LINENO: result: yes" >&5
8112echo "${ECHO_T}yes" >&6
a848cd7e 8113 else
f321ab7f
VS
8114 echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
a848cd7e
SC
8116 fi
8117
8118
077c7880 8119 enablestring=
f321ab7f
VS
8120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8121echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
3ea50042 8122 no_cache=0
f321ab7f 8123 # Check whether --enable-animatectrl or --disable-animatectrl was given.
3ea50042 8124if test "${enable_animatectrl+set}" = set; then
f321ab7f
VS
8125 enableval="$enable_animatectrl"
8126
3ea50042
VZ
8127 if test "$enableval" = yes; then
8128 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8129 else
8130 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8131 fi
8132
8133else
8134
8135 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8136 if test "x$LINE" != x ; then
8137 eval "DEFAULT_$LINE"
8138 else
8139 no_cache=1
8140 fi
8141
8142 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8143
f321ab7f 8144fi;
3ea50042
VZ
8145
8146 eval "$ac_cv_use_animatectrl"
8147 if test "$no_cache" != 1; then
8148 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8149 fi
8150
8151 if test "$wxUSE_ANIMATIONCTRL" = yes; then
f321ab7f
VS
8152 echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
3ea50042 8154 else
f321ab7f
VS
8155 echo "$as_me:$LINENO: result: no" >&5
8156echo "${ECHO_T}no" >&6
3ea50042
VZ
8157 fi
8158
8159
077c7880 8160 enablestring=
f321ab7f
VS
8161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8162echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
a848cd7e 8163 no_cache=0
f321ab7f 8164 # Check whether --enable-button or --disable-button was given.
a848cd7e 8165if test "${enable_button+set}" = set; then
f321ab7f
VS
8166 enableval="$enable_button"
8167
a848cd7e
SC
8168 if test "$enableval" = yes; then
8169 ac_cv_use_button='wxUSE_BUTTON=yes'
8170 else
8171 ac_cv_use_button='wxUSE_BUTTON=no'
8172 fi
8173
8174else
8175
8176 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8177 if test "x$LINE" != x ; then
8178 eval "DEFAULT_$LINE"
8179 else
8180 no_cache=1
8181 fi
8182
8183 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8184
f321ab7f 8185fi;
a848cd7e
SC
8186
8187 eval "$ac_cv_use_button"
8188 if test "$no_cache" != 1; then
8189 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8190 fi
8191
8192 if test "$wxUSE_BUTTON" = yes; then
f321ab7f
VS
8193 echo "$as_me:$LINENO: result: yes" >&5
8194echo "${ECHO_T}yes" >&6
a848cd7e 8195 else
f321ab7f
VS
8196 echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
a848cd7e
SC
8198 fi
8199
8200
077c7880 8201 enablestring=
f321ab7f
VS
8202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8203echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
a848cd7e 8204 no_cache=0
f321ab7f 8205 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
a848cd7e 8206if test "${enable_bmpbutton+set}" = set; then
f321ab7f
VS
8207 enableval="$enable_bmpbutton"
8208
a848cd7e
SC
8209 if test "$enableval" = yes; then
8210 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8211 else
8212 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8213 fi
8214
8215else
8216
8217 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8218 if test "x$LINE" != x ; then
8219 eval "DEFAULT_$LINE"
8220 else
8221 no_cache=1
8222 fi
8223
8224 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8225
f321ab7f 8226fi;
a848cd7e
SC
8227
8228 eval "$ac_cv_use_bmpbutton"
8229 if test "$no_cache" != 1; then
8230 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8231 fi
8232
8233 if test "$wxUSE_BMPBUTTON" = yes; then
f321ab7f
VS
8234 echo "$as_me:$LINENO: result: yes" >&5
8235echo "${ECHO_T}yes" >&6
a848cd7e 8236 else
f321ab7f
VS
8237 echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6
a848cd7e
SC
8239 fi
8240
8241
077c7880 8242 enablestring=
f321ab7f
VS
8243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8244echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
95a46303 8245 no_cache=0
f321ab7f 8246 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
95a46303 8247if test "${enable_bmpcombobox+set}" = set; then
f321ab7f
VS
8248 enableval="$enable_bmpcombobox"
8249
95a46303
RR
8250 if test "$enableval" = yes; then
8251 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8252 else
8253 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8254 fi
8255
8256else
8257
8258 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8259 if test "x$LINE" != x ; then
8260 eval "DEFAULT_$LINE"
8261 else
8262 no_cache=1
8263 fi
8264
8265 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8266
f321ab7f 8267fi;
95a46303
RR
8268
8269 eval "$ac_cv_use_bmpcombobox"
8270 if test "$no_cache" != 1; then
8271 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8272 fi
8273
8274 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
f321ab7f
VS
8275 echo "$as_me:$LINENO: result: yes" >&5
8276echo "${ECHO_T}yes" >&6
95a46303 8277 else
f321ab7f
VS
8278 echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
95a46303
RR
8280 fi
8281
8282
077c7880 8283 enablestring=
f321ab7f
VS
8284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8285echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
a848cd7e 8286 no_cache=0
f321ab7f 8287 # Check whether --enable-calendar or --disable-calendar was given.
a848cd7e 8288if test "${enable_calendar+set}" = set; then
f321ab7f
VS
8289 enableval="$enable_calendar"
8290
a848cd7e
SC
8291 if test "$enableval" = yes; then
8292 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8293 else
8294 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8295 fi
8296
8297else
8298
8299 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8300 if test "x$LINE" != x ; then
8301 eval "DEFAULT_$LINE"
8302 else
8303 no_cache=1
8304 fi
8305
8306 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8307
f321ab7f 8308fi;
a848cd7e
SC
8309
8310 eval "$ac_cv_use_calendar"
8311 if test "$no_cache" != 1; then
8312 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8313 fi
8314
8315 if test "$wxUSE_CALCTRL" = yes; then
f321ab7f
VS
8316 echo "$as_me:$LINENO: result: yes" >&5
8317echo "${ECHO_T}yes" >&6
a848cd7e 8318 else
f321ab7f
VS
8319 echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
a848cd7e
SC
8321 fi
8322
8323
077c7880 8324 enablestring=
f321ab7f
VS
8325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8326echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
a848cd7e 8327 no_cache=0
f321ab7f 8328 # Check whether --enable-caret or --disable-caret was given.
a848cd7e 8329if test "${enable_caret+set}" = set; then
f321ab7f
VS
8330 enableval="$enable_caret"
8331
a848cd7e
SC
8332 if test "$enableval" = yes; then
8333 ac_cv_use_caret='wxUSE_CARET=yes'
8334 else
8335 ac_cv_use_caret='wxUSE_CARET=no'
8336 fi
8337
8338else
8339
8340 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8341 if test "x$LINE" != x ; then
8342 eval "DEFAULT_$LINE"
8343 else
8344 no_cache=1
8345 fi
8346
8347 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8348
f321ab7f 8349fi;
a848cd7e
SC
8350
8351 eval "$ac_cv_use_caret"
8352 if test "$no_cache" != 1; then
8353 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8354 fi
8355
8356 if test "$wxUSE_CARET" = yes; then
f321ab7f
VS
8357 echo "$as_me:$LINENO: result: yes" >&5
8358echo "${ECHO_T}yes" >&6
a848cd7e 8359 else
f321ab7f
VS
8360 echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6
a848cd7e
SC
8362 fi
8363
8364
077c7880 8365 enablestring=
f321ab7f
VS
8366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8367echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
a848cd7e 8368 no_cache=0
f321ab7f 8369 # Check whether --enable-checkbox or --disable-checkbox was given.
a848cd7e 8370if test "${enable_checkbox+set}" = set; then
f321ab7f
VS
8371 enableval="$enable_checkbox"
8372
a848cd7e
SC
8373 if test "$enableval" = yes; then
8374 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8375 else
8376 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8377 fi
8378
8379else
8380
8381 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8382 if test "x$LINE" != x ; then
8383 eval "DEFAULT_$LINE"
8384 else
8385 no_cache=1
8386 fi
8387
8388 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8389
f321ab7f 8390fi;
a848cd7e
SC
8391
8392 eval "$ac_cv_use_checkbox"
8393 if test "$no_cache" != 1; then
8394 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8395 fi
8396
8397 if test "$wxUSE_CHECKBOX" = yes; then
f321ab7f
VS
8398 echo "$as_me:$LINENO: result: yes" >&5
8399echo "${ECHO_T}yes" >&6
a848cd7e 8400 else
f321ab7f
VS
8401 echo "$as_me:$LINENO: result: no" >&5
8402echo "${ECHO_T}no" >&6
a848cd7e
SC
8403 fi
8404
8405
077c7880 8406 enablestring=
f321ab7f
VS
8407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8408echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
a848cd7e 8409 no_cache=0
f321ab7f 8410 # Check whether --enable-checklst or --disable-checklst was given.
a848cd7e 8411if test "${enable_checklst+set}" = set; then
f321ab7f
VS
8412 enableval="$enable_checklst"
8413
a848cd7e
SC
8414 if test "$enableval" = yes; then
8415 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8416 else
8417 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8418 fi
8419
8420else
8421
8422 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8423 if test "x$LINE" != x ; then
8424 eval "DEFAULT_$LINE"
8425 else
8426 no_cache=1
8427 fi
8428
8429 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8430
f321ab7f 8431fi;
a848cd7e
SC
8432
8433 eval "$ac_cv_use_checklst"
8434 if test "$no_cache" != 1; then
8435 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8436 fi
8437
8438 if test "$wxUSE_CHECKLST" = yes; then
f321ab7f
VS
8439 echo "$as_me:$LINENO: result: yes" >&5
8440echo "${ECHO_T}yes" >&6
a848cd7e 8441 else
f321ab7f
VS
8442 echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6
a848cd7e
SC
8444 fi
8445
8446
077c7880 8447 enablestring=
f321ab7f
VS
8448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8449echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
a848cd7e 8450 no_cache=0
f321ab7f 8451 # Check whether --enable-choice or --disable-choice was given.
a848cd7e 8452if test "${enable_choice+set}" = set; then
f321ab7f
VS
8453 enableval="$enable_choice"
8454
a848cd7e
SC
8455 if test "$enableval" = yes; then
8456 ac_cv_use_choice='wxUSE_CHOICE=yes'
8457 else
8458 ac_cv_use_choice='wxUSE_CHOICE=no'
8459 fi
8460
8461else
8462
8463 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8464 if test "x$LINE" != x ; then
8465 eval "DEFAULT_$LINE"
8466 else
8467 no_cache=1
8468 fi
8469
8470 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8471
f321ab7f 8472fi;
a848cd7e
SC
8473
8474 eval "$ac_cv_use_choice"
8475 if test "$no_cache" != 1; then
8476 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8477 fi
8478
8479 if test "$wxUSE_CHOICE" = yes; then
f321ab7f
VS
8480 echo "$as_me:$LINENO: result: yes" >&5
8481echo "${ECHO_T}yes" >&6
a848cd7e 8482 else
f321ab7f
VS
8483 echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6
a848cd7e
SC
8485 fi
8486
8487
077c7880 8488 enablestring=
f321ab7f
VS
8489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8490echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
92bbdbcd 8491 no_cache=0
f321ab7f 8492 # Check whether --enable-choicebook or --disable-choicebook was given.
92bbdbcd 8493if test "${enable_choicebook+set}" = set; then
f321ab7f
VS
8494 enableval="$enable_choicebook"
8495
92bbdbcd
WS
8496 if test "$enableval" = yes; then
8497 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8498 else
8499 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8500 fi
8501
8502else
8503
8504 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8505 if test "x$LINE" != x ; then
8506 eval "DEFAULT_$LINE"
8507 else
8508 no_cache=1
8509 fi
8510
8511 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8512
f321ab7f 8513fi;
92bbdbcd
WS
8514
8515 eval "$ac_cv_use_choicebook"
8516 if test "$no_cache" != 1; then
8517 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8518 fi
8519
8520 if test "$wxUSE_CHOICEBOOK" = yes; then
f321ab7f
VS
8521 echo "$as_me:$LINENO: result: yes" >&5
8522echo "${ECHO_T}yes" >&6
92bbdbcd 8523 else
f321ab7f
VS
8524 echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
92bbdbcd
WS
8526 fi
8527
8528
077c7880 8529 enablestring=
f321ab7f
VS
8530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
8531echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6
bd915ace 8532 no_cache=0
f321ab7f 8533 # Check whether --enable-collpane or --disable-collpane was given.
bd915ace 8534if test "${enable_collpane+set}" = set; then
f321ab7f
VS
8535 enableval="$enable_collpane"
8536
bd915ace
RR
8537 if test "$enableval" = yes; then
8538 ac_cv_use_collpane='wxUSE_COLLPANE=yes'
8539 else
8540 ac_cv_use_collpane='wxUSE_COLLPANE=no'
8541 fi
8542
8543else
8544
8545 LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}`
8546 if test "x$LINE" != x ; then
8547 eval "DEFAULT_$LINE"
8548 else
8549 no_cache=1
8550 fi
8551
8552 ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
8553
f321ab7f 8554fi;
bd915ace
RR
8555
8556 eval "$ac_cv_use_collpane"
8557 if test "$no_cache" != 1; then
8558 echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
8559 fi
8560
8561 if test "$wxUSE_COLLPANE" = yes; then
f321ab7f
VS
8562 echo "$as_me:$LINENO: result: yes" >&5
8563echo "${ECHO_T}yes" >&6
bd915ace 8564 else
f321ab7f
VS
8565 echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6
bd915ace
RR
8567 fi
8568
8569
077c7880 8570 enablestring=
f321ab7f
VS
8571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8572echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
e9263684 8573 no_cache=0
f321ab7f 8574 # Check whether --enable-colourpicker or --disable-colourpicker was given.
e9263684 8575if test "${enable_colourpicker+set}" = set; then
f321ab7f
VS
8576 enableval="$enable_colourpicker"
8577
e9263684
VZ
8578 if test "$enableval" = yes; then
8579 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8580 else
8581 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8582 fi
8583
8584else
8585
8586 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8587 if test "x$LINE" != x ; then
8588 eval "DEFAULT_$LINE"
8589 else
8590 no_cache=1
8591 fi
8592
8593 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8594
f321ab7f 8595fi;
e9263684
VZ
8596
8597 eval "$ac_cv_use_colourpicker"
8598 if test "$no_cache" != 1; then
8599 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8600 fi
8601
8602 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
f321ab7f
VS
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
e9263684 8605 else
f321ab7f
VS
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
e9263684
VZ
8608 fi
8609
8610
077c7880 8611 enablestring=
f321ab7f
VS
8612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8613echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
a848cd7e 8614 no_cache=0
f321ab7f 8615 # Check whether --enable-combobox or --disable-combobox was given.
a848cd7e 8616if test "${enable_combobox+set}" = set; then
f321ab7f
VS
8617 enableval="$enable_combobox"
8618
a848cd7e
SC
8619 if test "$enableval" = yes; then
8620 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8621 else
8622 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8623 fi
8624
8625else
8626
8627 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8628 if test "x$LINE" != x ; then
8629 eval "DEFAULT_$LINE"
8630 else
8631 no_cache=1
8632 fi
8633
8634 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8635
f321ab7f 8636fi;
a848cd7e
SC
8637
8638 eval "$ac_cv_use_combobox"
8639 if test "$no_cache" != 1; then
8640 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8641 fi
8642
8643 if test "$wxUSE_COMBOBOX" = yes; then
f321ab7f
VS
8644 echo "$as_me:$LINENO: result: yes" >&5
8645echo "${ECHO_T}yes" >&6
a848cd7e 8646 else
f321ab7f
VS
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
a848cd7e
SC
8649 fi
8650
8651
077c7880 8652 enablestring=
f321ab7f
VS
8653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8654echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8655 no_cache=0
f321ab7f 8656 # Check whether --enable-comboctrl or --disable-comboctrl was given.
a57d600f 8657if test "${enable_comboctrl+set}" = set; then
f321ab7f
VS
8658 enableval="$enable_comboctrl"
8659
642bcba9 8660 if test "$enableval" = yes; then
a57d600f 8661 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8662 else
a57d600f 8663 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8664 fi
8665
8666else
8667
a57d600f 8668 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8669 if test "x$LINE" != x ; then
8670 eval "DEFAULT_$LINE"
8671 else
8672 no_cache=1
8673 fi
8674
a57d600f 8675 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9 8676
f321ab7f 8677fi;
642bcba9 8678
a57d600f 8679 eval "$ac_cv_use_comboctrl"
642bcba9 8680 if test "$no_cache" != 1; then
a57d600f 8681 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8682 fi
8683
a57d600f 8684 if test "$wxUSE_COMBOCTRL" = yes; then
f321ab7f
VS
8685 echo "$as_me:$LINENO: result: yes" >&5
8686echo "${ECHO_T}yes" >&6
642bcba9 8687 else
f321ab7f
VS
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
642bcba9
VZ
8690 fi
8691
8692
077c7880 8693 enablestring=
f321ab7f
VS
8694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8695echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
da98e9be 8696 no_cache=0
f321ab7f 8697 # Check whether --enable-datepick or --disable-datepick was given.
da98e9be 8698if test "${enable_datepick+set}" = set; then
f321ab7f
VS
8699 enableval="$enable_datepick"
8700
da98e9be
VZ
8701 if test "$enableval" = yes; then
8702 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8703 else
8704 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8705 fi
8706
8707else
8708
8709 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8710 if test "x$LINE" != x ; then
8711 eval "DEFAULT_$LINE"
8712 else
8713 no_cache=1
8714 fi
8715
8716 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8717
f321ab7f 8718fi;
da98e9be
VZ
8719
8720 eval "$ac_cv_use_datepick"
8721 if test "$no_cache" != 1; then
8722 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8723 fi
8724
8725 if test "$wxUSE_DATEPICKCTRL" = yes; then
f321ab7f
VS
8726 echo "$as_me:$LINENO: result: yes" >&5
8727echo "${ECHO_T}yes" >&6
da98e9be 8728 else
f321ab7f
VS
8729 echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
da98e9be
VZ
8731 fi
8732
8733
077c7880 8734 enablestring=
f321ab7f
VS
8735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8736echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
e9263684 8737 no_cache=0
f321ab7f 8738 # Check whether --enable-dirpicker or --disable-dirpicker was given.
e9263684 8739if test "${enable_dirpicker+set}" = set; then
f321ab7f
VS
8740 enableval="$enable_dirpicker"
8741
e9263684
VZ
8742 if test "$enableval" = yes; then
8743 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8744 else
8745 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8746 fi
8747
8748else
8749
8750 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8751 if test "x$LINE" != x ; then
8752 eval "DEFAULT_$LINE"
8753 else
8754 no_cache=1
8755 fi
8756
8757 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8758
f321ab7f 8759fi;
e9263684
VZ
8760
8761 eval "$ac_cv_use_dirpicker"
8762 if test "$no_cache" != 1; then
8763 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8764 fi
8765
8766 if test "$wxUSE_DIRPICKERCTRL" = yes; then
f321ab7f
VS
8767 echo "$as_me:$LINENO: result: yes" >&5
8768echo "${ECHO_T}yes" >&6
e9263684 8769 else
f321ab7f
VS
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
e9263684
VZ
8772 fi
8773
8774
077c7880 8775 enablestring=
f321ab7f
VS
8776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8777echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
a848cd7e 8778 no_cache=0
f321ab7f 8779 # Check whether --enable-display or --disable-display was given.
a848cd7e 8780if test "${enable_display+set}" = set; then
f321ab7f
VS
8781 enableval="$enable_display"
8782
a848cd7e
SC
8783 if test "$enableval" = yes; then
8784 ac_cv_use_display='wxUSE_DISPLAY=yes'
8785 else
8786 ac_cv_use_display='wxUSE_DISPLAY=no'
8787 fi
8788
8789else
8790
8791 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8792 if test "x$LINE" != x ; then
8793 eval "DEFAULT_$LINE"
8794 else
8795 no_cache=1
8796 fi
8797
8798 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8799
f321ab7f 8800fi;
a848cd7e
SC
8801
8802 eval "$ac_cv_use_display"
8803 if test "$no_cache" != 1; then
8804 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8805 fi
8806
8807 if test "$wxUSE_DISPLAY" = yes; then
f321ab7f
VS
8808 echo "$as_me:$LINENO: result: yes" >&5
8809echo "${ECHO_T}yes" >&6
a848cd7e 8810 else
f321ab7f
VS
8811 echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
a848cd7e
SC
8813 fi
8814
8815
077c7880 8816 enablestring=
f321ab7f
VS
8817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8818echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
88bbc332 8819 no_cache=0
f321ab7f 8820 # Check whether --enable-detect_sm or --disable-detect_sm was given.
88bbc332 8821if test "${enable_detect_sm+set}" = set; then
f321ab7f
VS
8822 enableval="$enable_detect_sm"
8823
88bbc332
RR
8824 if test "$enableval" = yes; then
8825 ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8826 else
8827 ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8828 fi
8829
8830else
8831
8832 LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8833 if test "x$LINE" != x ; then
8834 eval "DEFAULT_$LINE"
8835 else
8836 no_cache=1
8837 fi
8838
8839 ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8840
f321ab7f 8841fi;
88bbc332
RR
8842
8843 eval "$ac_cv_use_detect_sm"
8844 if test "$no_cache" != 1; then
8845 echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8846 fi
8847
8848 if test "$wxUSE_DETECT_SM" = yes; then
f321ab7f
VS
8849 echo "$as_me:$LINENO: result: yes" >&5
8850echo "${ECHO_T}yes" >&6
88bbc332 8851 else
f321ab7f
VS
8852 echo "$as_me:$LINENO: result: no" >&5
8853echo "${ECHO_T}no" >&6
88bbc332
RR
8854 fi
8855
8856
077c7880 8857 enablestring=
f321ab7f
VS
8858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8859echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
e9263684 8860 no_cache=0
f321ab7f 8861 # Check whether --enable-filepicker or --disable-filepicker was given.
e9263684 8862if test "${enable_filepicker+set}" = set; then
f321ab7f
VS
8863 enableval="$enable_filepicker"
8864
e9263684
VZ
8865 if test "$enableval" = yes; then
8866 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8867 else
8868 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8869 fi
8870
8871else
8872
8873 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8874 if test "x$LINE" != x ; then
8875 eval "DEFAULT_$LINE"
8876 else
8877 no_cache=1
8878 fi
8879
8880 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8881
f321ab7f 8882fi;
e9263684
VZ
8883
8884 eval "$ac_cv_use_filepicker"
8885 if test "$no_cache" != 1; then
8886 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8887 fi
8888
8889 if test "$wxUSE_FILEPICKERCTRL" = yes; then
f321ab7f
VS
8890 echo "$as_me:$LINENO: result: yes" >&5
8891echo "${ECHO_T}yes" >&6
e9263684 8892 else
f321ab7f
VS
8893 echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6
e9263684
VZ
8895 fi
8896
8897
077c7880 8898 enablestring=
f321ab7f
VS
8899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8900echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
e9263684 8901 no_cache=0
f321ab7f 8902 # Check whether --enable-fontpicker or --disable-fontpicker was given.
e9263684 8903if test "${enable_fontpicker+set}" = set; then
f321ab7f
VS
8904 enableval="$enable_fontpicker"
8905
e9263684
VZ
8906 if test "$enableval" = yes; then
8907 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8908 else
8909 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8910 fi
8911
8912else
8913
8914 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8915 if test "x$LINE" != x ; then
8916 eval "DEFAULT_$LINE"
8917 else
8918 no_cache=1
8919 fi
8920
8921 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8922
f321ab7f 8923fi;
e9263684
VZ
8924
8925 eval "$ac_cv_use_fontpicker"
8926 if test "$no_cache" != 1; then
8927 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8928 fi
8929
8930 if test "$wxUSE_FONTPICKERCTRL" = yes; then
f321ab7f
VS
8931 echo "$as_me:$LINENO: result: yes" >&5
8932echo "${ECHO_T}yes" >&6
e9263684 8933 else
f321ab7f
VS
8934 echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
e9263684
VZ
8936 fi
8937
8938
077c7880 8939 enablestring=
f321ab7f
VS
8940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8941echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
a848cd7e 8942 no_cache=0
f321ab7f 8943 # Check whether --enable-gauge or --disable-gauge was given.
a848cd7e 8944if test "${enable_gauge+set}" = set; then
f321ab7f
VS
8945 enableval="$enable_gauge"
8946
a848cd7e
SC
8947 if test "$enableval" = yes; then
8948 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8949 else
8950 ac_cv_use_gauge='wxUSE_GAUGE=no'
8951 fi
8952
8953else
8954
8955 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8956 if test "x$LINE" != x ; then
8957 eval "DEFAULT_$LINE"
8958 else
8959 no_cache=1
8960 fi
8961
8962 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8963
f321ab7f 8964fi;
a848cd7e
SC
8965
8966 eval "$ac_cv_use_gauge"
8967 if test "$no_cache" != 1; then
8968 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8969 fi
8970
8971 if test "$wxUSE_GAUGE" = yes; then
f321ab7f
VS
8972 echo "$as_me:$LINENO: result: yes" >&5
8973echo "${ECHO_T}yes" >&6
a848cd7e 8974 else
f321ab7f
VS
8975 echo "$as_me:$LINENO: result: no" >&5
8976echo "${ECHO_T}no" >&6
a848cd7e
SC
8977 fi
8978
8979
077c7880 8980 enablestring=
f321ab7f
VS
8981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8982echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
a848cd7e 8983 no_cache=0
f321ab7f 8984 # Check whether --enable-grid or --disable-grid was given.
a848cd7e 8985if test "${enable_grid+set}" = set; then
f321ab7f
VS
8986 enableval="$enable_grid"
8987
a848cd7e
SC
8988 if test "$enableval" = yes; then
8989 ac_cv_use_grid='wxUSE_GRID=yes'
8990 else
8991 ac_cv_use_grid='wxUSE_GRID=no'
8992 fi
8993
8994else
8995
8996 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8997 if test "x$LINE" != x ; then
8998 eval "DEFAULT_$LINE"
8999 else
9000 no_cache=1
9001 fi
9002
9003 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
9004
f321ab7f 9005fi;
a848cd7e
SC
9006
9007 eval "$ac_cv_use_grid"
9008 if test "$no_cache" != 1; then
9009 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
9010 fi
9011
9012 if test "$wxUSE_GRID" = yes; then
f321ab7f
VS
9013 echo "$as_me:$LINENO: result: yes" >&5
9014echo "${ECHO_T}yes" >&6
a848cd7e 9015 else
f321ab7f
VS
9016 echo "$as_me:$LINENO: result: no" >&5
9017echo "${ECHO_T}no" >&6
a848cd7e
SC
9018 fi
9019
9020
077c7880 9021 enablestring=
f321ab7f
VS
9022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
9023echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
20e34ecc 9024 no_cache=0
f321ab7f 9025 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
20e34ecc 9026if test "${enable_dataviewctrl+set}" = set; then
f321ab7f
VS
9027 enableval="$enable_dataviewctrl"
9028
20e34ecc
RR
9029 if test "$enableval" = yes; then
9030 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
9031 else
9032 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
9033 fi
9034
9035else
9036
9037 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
9038 if test "x$LINE" != x ; then
9039 eval "DEFAULT_$LINE"
9040 else
9041 no_cache=1
9042 fi
9043
9044 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
9045
f321ab7f 9046fi;
20e34ecc
RR
9047
9048 eval "$ac_cv_use_dataviewctrl"
9049 if test "$no_cache" != 1; then
9050 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
9051 fi
9052
9053 if test "$wxUSE_DATAVIEWCTRL" = yes; then
f321ab7f
VS
9054 echo "$as_me:$LINENO: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
20e34ecc 9056 else
f321ab7f
VS
9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
20e34ecc
RR
9059 fi
9060
9061
077c7880 9062 enablestring=
f321ab7f
VS
9063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9064echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
6954625c 9065 no_cache=0
f321ab7f 9066 # Check whether --enable-hyperlink or --disable-hyperlink was given.
6954625c 9067if test "${enable_hyperlink+set}" = set; then
f321ab7f
VS
9068 enableval="$enable_hyperlink"
9069
6954625c
VZ
9070 if test "$enableval" = yes; then
9071 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9072 else
9073 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9074 fi
9075
9076else
9077
9078 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9079 if test "x$LINE" != x ; then
9080 eval "DEFAULT_$LINE"
9081 else
9082 no_cache=1
9083 fi
9084
9085 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9086
f321ab7f 9087fi;
6954625c
VZ
9088
9089 eval "$ac_cv_use_hyperlink"
9090 if test "$no_cache" != 1; then
9091 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9092 fi
9093
9094 if test "$wxUSE_HYPERLINKCTRL" = yes; then
f321ab7f
VS
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
6954625c 9097 else
f321ab7f
VS
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
6954625c
VZ
9100 fi
9101
9102
077c7880 9103 enablestring=
f321ab7f
VS
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
a848cd7e 9106 no_cache=0
f321ab7f 9107 # Check whether --enable-imaglist or --disable-imaglist was given.
a848cd7e 9108if test "${enable_imaglist+set}" = set; then
f321ab7f
VS
9109 enableval="$enable_imaglist"
9110
a848cd7e
SC
9111 if test "$enableval" = yes; then
9112 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9113 else
9114 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
9115 fi
9116
9117else
9118
9119 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9127
f321ab7f 9128fi;
a848cd7e
SC
9129
9130 eval "$ac_cv_use_imaglist"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_IMAGLIST" = yes; then
f321ab7f
VS
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
a848cd7e 9138 else
f321ab7f
VS
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
a848cd7e
SC
9141 fi
9142
9143
077c7880 9144 enablestring=
f321ab7f
VS
9145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9146echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
a848cd7e 9147 no_cache=0
f321ab7f 9148 # Check whether --enable-listbook or --disable-listbook was given.
a848cd7e 9149if test "${enable_listbook+set}" = set; then
f321ab7f
VS
9150 enableval="$enable_listbook"
9151
a848cd7e
SC
9152 if test "$enableval" = yes; then
9153 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9154 else
9155 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9156 fi
9157
9158else
9159
9160 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9161 if test "x$LINE" != x ; then
9162 eval "DEFAULT_$LINE"
9163 else
9164 no_cache=1
9165 fi
9166
9167 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9168
f321ab7f 9169fi;
a848cd7e
SC
9170
9171 eval "$ac_cv_use_listbook"
9172 if test "$no_cache" != 1; then
9173 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9174 fi
9175
9176 if test "$wxUSE_LISTBOOK" = yes; then
f321ab7f
VS
9177 echo "$as_me:$LINENO: result: yes" >&5
9178echo "${ECHO_T}yes" >&6
a848cd7e 9179 else
f321ab7f
VS
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
a848cd7e
SC
9182 fi
9183
9184
077c7880 9185 enablestring=
f321ab7f
VS
9186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9187echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
a848cd7e 9188 no_cache=0
f321ab7f 9189 # Check whether --enable-listbox or --disable-listbox was given.
a848cd7e 9190if test "${enable_listbox+set}" = set; then
f321ab7f
VS
9191 enableval="$enable_listbox"
9192
a848cd7e
SC
9193 if test "$enableval" = yes; then
9194 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9195 else
9196 ac_cv_use_listbox='wxUSE_LISTBOX=no'
9197 fi
9198
9199else
9200
9201 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9202 if test "x$LINE" != x ; then
9203 eval "DEFAULT_$LINE"
9204 else
9205 no_cache=1
9206 fi
9207
9208 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9209
f321ab7f 9210fi;
a848cd7e
SC
9211
9212 eval "$ac_cv_use_listbox"
9213 if test "$no_cache" != 1; then
9214 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9215 fi
9216
9217 if test "$wxUSE_LISTBOX" = yes; then
f321ab7f
VS
9218 echo "$as_me:$LINENO: result: yes" >&5
9219echo "${ECHO_T}yes" >&6
a848cd7e 9220 else
f321ab7f
VS
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
a848cd7e
SC
9223 fi
9224
9225
077c7880 9226 enablestring=
f321ab7f
VS
9227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9228echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
a848cd7e 9229 no_cache=0
f321ab7f 9230 # Check whether --enable-listctrl or --disable-listctrl was given.
a848cd7e 9231if test "${enable_listctrl+set}" = set; then
f321ab7f
VS
9232 enableval="$enable_listctrl"
9233
a848cd7e
SC
9234 if test "$enableval" = yes; then
9235 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9236 else
9237 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9238 fi
9239
9240else
9241
9242 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9243 if test "x$LINE" != x ; then
9244 eval "DEFAULT_$LINE"
9245 else
9246 no_cache=1
9247 fi
9248
9249 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9250
f321ab7f 9251fi;
a848cd7e
SC
9252
9253 eval "$ac_cv_use_listctrl"
9254 if test "$no_cache" != 1; then
9255 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9256 fi
9257
9258 if test "$wxUSE_LISTCTRL" = yes; then
f321ab7f
VS
9259 echo "$as_me:$LINENO: result: yes" >&5
9260echo "${ECHO_T}yes" >&6
a848cd7e 9261 else
f321ab7f
VS
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
a848cd7e
SC
9264 fi
9265
9266
077c7880 9267 enablestring=
f321ab7f
VS
9268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9269echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
a848cd7e 9270 no_cache=0
f321ab7f 9271 # Check whether --enable-notebook or --disable-notebook was given.
a848cd7e 9272if test "${enable_notebook+set}" = set; then
f321ab7f
VS
9273 enableval="$enable_notebook"
9274
a848cd7e
SC
9275 if test "$enableval" = yes; then
9276 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9277 else
9278 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9279 fi
9280
9281else
9282
9283 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9284 if test "x$LINE" != x ; then
9285 eval "DEFAULT_$LINE"
9286 else
9287 no_cache=1
9288 fi
9289
9290 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9291
f321ab7f 9292fi;
a848cd7e
SC
9293
9294 eval "$ac_cv_use_notebook"
9295 if test "$no_cache" != 1; then
9296 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9297 fi
9298
9299 if test "$wxUSE_NOTEBOOK" = yes; then
f321ab7f
VS
9300 echo "$as_me:$LINENO: result: yes" >&5
9301echo "${ECHO_T}yes" >&6
a848cd7e 9302 else
f321ab7f
VS
9303 echo "$as_me:$LINENO: result: no" >&5
9304echo "${ECHO_T}no" >&6
a848cd7e
SC
9305 fi
9306
9307
077c7880 9308 enablestring=
f321ab7f
VS
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9311 no_cache=0
f321ab7f 9312 # Check whether --enable-odcombobox or --disable-odcombobox was given.
a57d600f 9313if test "${enable_odcombobox+set}" = set; then
f321ab7f
VS
9314 enableval="$enable_odcombobox"
9315
642bcba9 9316 if test "$enableval" = yes; then
a57d600f 9317 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9318 else
a57d600f 9319 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9320 fi
9321
9322else
9323
a57d600f 9324 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
a57d600f 9331 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9 9332
f321ab7f 9333fi;
642bcba9 9334
a57d600f 9335 eval "$ac_cv_use_odcombobox"
642bcba9 9336 if test "$no_cache" != 1; then
a57d600f 9337 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9338 fi
9339
a57d600f 9340 if test "$wxUSE_ODCOMBOBOX" = yes; then
f321ab7f
VS
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
642bcba9 9343 else
f321ab7f
VS
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
642bcba9
VZ
9346 fi
9347
9348
077c7880 9349 enablestring=
f321ab7f
VS
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
a848cd7e 9352 no_cache=0
f321ab7f 9353 # Check whether --enable-radiobox or --disable-radiobox was given.
a848cd7e 9354if test "${enable_radiobox+set}" = set; then
f321ab7f
VS
9355 enableval="$enable_radiobox"
9356
a848cd7e
SC
9357 if test "$enableval" = yes; then
9358 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9359 else
9360 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9361 fi
9362
9363else
9364
9365 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
9372 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9373
f321ab7f 9374fi;
a848cd7e
SC
9375
9376 eval "$ac_cv_use_radiobox"
9377 if test "$no_cache" != 1; then
9378 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9379 fi
9380
9381 if test "$wxUSE_RADIOBOX" = yes; then
f321ab7f
VS
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
a848cd7e 9384 else
f321ab7f
VS
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
a848cd7e
SC
9387 fi
9388
9389
077c7880 9390 enablestring=
f321ab7f
VS
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
a848cd7e 9393 no_cache=0
f321ab7f 9394 # Check whether --enable-radiobtn or --disable-radiobtn was given.
a848cd7e 9395if test "${enable_radiobtn+set}" = set; then
f321ab7f
VS
9396 enableval="$enable_radiobtn"
9397
a848cd7e
SC
9398 if test "$enableval" = yes; then
9399 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9400 else
9401 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9402 fi
9403
9404else
9405
9406 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
9413 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9414
f321ab7f 9415fi;
a848cd7e
SC
9416
9417 eval "$ac_cv_use_radiobtn"
9418 if test "$no_cache" != 1; then
9419 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9420 fi
9421
9422 if test "$wxUSE_RADIOBTN" = yes; then
f321ab7f
VS
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
a848cd7e 9425 else
f321ab7f
VS
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
a848cd7e
SC
9428 fi
9429
9430
077c7880 9431 enablestring=
f321ab7f
VS
9432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9433echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
a848cd7e 9434 no_cache=0
f321ab7f 9435 # Check whether --enable-sash or --disable-sash was given.
a848cd7e 9436if test "${enable_sash+set}" = set; then
f321ab7f
VS
9437 enableval="$enable_sash"
9438
a848cd7e
SC
9439 if test "$enableval" = yes; then
9440 ac_cv_use_sash='wxUSE_SASH=yes'
9441 else
9442 ac_cv_use_sash='wxUSE_SASH=no'
9443 fi
9444
9445else
9446
9447 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9448 if test "x$LINE" != x ; then
9449 eval "DEFAULT_$LINE"
9450 else
9451 no_cache=1
9452 fi
9453
9454 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9455
f321ab7f 9456fi;
a848cd7e
SC
9457
9458 eval "$ac_cv_use_sash"
9459 if test "$no_cache" != 1; then
9460 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9461 fi
9462
9463 if test "$wxUSE_SASH" = yes; then
f321ab7f
VS
9464 echo "$as_me:$LINENO: result: yes" >&5
9465echo "${ECHO_T}yes" >&6
a848cd7e 9466 else
f321ab7f
VS
9467 echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6
a848cd7e
SC
9469 fi
9470
9471
077c7880 9472 enablestring=
f321ab7f
VS
9473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9474echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
a848cd7e 9475 no_cache=0
f321ab7f 9476 # Check whether --enable-scrollbar or --disable-scrollbar was given.
a848cd7e 9477if test "${enable_scrollbar+set}" = set; then
f321ab7f
VS
9478 enableval="$enable_scrollbar"
9479
a848cd7e
SC
9480 if test "$enableval" = yes; then
9481 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9482 else
9483 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9484 fi
9485
9486else
9487
9488 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9489 if test "x$LINE" != x ; then
9490 eval "DEFAULT_$LINE"
9491 else
9492 no_cache=1
9493 fi
9494
9495 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9496
f321ab7f 9497fi;
a848cd7e
SC
9498
9499 eval "$ac_cv_use_scrollbar"
9500 if test "$no_cache" != 1; then
9501 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9502 fi
9503
9504 if test "$wxUSE_SCROLLBAR" = yes; then
f321ab7f
VS
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
a848cd7e 9507 else
f321ab7f
VS
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
a848cd7e
SC
9510 fi
9511
9512
077c7880 9513 enablestring=
f321ab7f
VS
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6
a848cd7e 9516 no_cache=0
f321ab7f 9517 # Check whether --enable-searchctrl or --disable-searchctrl was given.
3f7f284d 9518if test "${enable_searchctrl+set}" = set; then
f321ab7f
VS
9519 enableval="$enable_searchctrl"
9520
3f7f284d
RD
9521 if test "$enableval" = yes; then
9522 ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
9523 else
9524 ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
9525 fi
a848cd7e 9526
3f7f284d
RD
9527else
9528
9529 LINE=`grep "wxUSE_SEARCHCTRL" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_searchctrl='wxUSE_SEARCHCTRL='$DEFAULT_wxUSE_SEARCHCTRL
9537
f321ab7f 9538fi;
3f7f284d
RD
9539
9540 eval "$ac_cv_use_searchctrl"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_searchctrl >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_SEARCHCTRL" = yes; then
f321ab7f
VS
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
3f7f284d 9548 else
f321ab7f
VS
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
3f7f284d
RD
9551 fi
9552
9553
9554 enablestring=
f321ab7f
VS
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
3f7f284d 9557 no_cache=0
f321ab7f 9558 # Check whether --enable-slider or --disable-slider was given.
3f7f284d 9559if test "${enable_slider+set}" = set; then
f321ab7f
VS
9560 enableval="$enable_slider"
9561
a848cd7e
SC
9562 if test "$enableval" = yes; then
9563 ac_cv_use_slider='wxUSE_SLIDER=yes'
9564 else
9565 ac_cv_use_slider='wxUSE_SLIDER=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9578
f321ab7f 9579fi;
a848cd7e
SC
9580
9581 eval "$ac_cv_use_slider"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_SLIDER" = yes; then
f321ab7f
VS
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
a848cd7e 9589 else
f321ab7f
VS
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
a848cd7e
SC
9592 fi
9593
9594
077c7880 9595 enablestring=
f321ab7f
VS
9596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9597echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
a848cd7e 9598 no_cache=0
f321ab7f 9599 # Check whether --enable-spinbtn or --disable-spinbtn was given.
a848cd7e 9600if test "${enable_spinbtn+set}" = set; then
f321ab7f
VS
9601 enableval="$enable_spinbtn"
9602
a848cd7e
SC
9603 if test "$enableval" = yes; then
9604 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9605 else
9606 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9607 fi
9608
9609else
9610
9611 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9612 if test "x$LINE" != x ; then
9613 eval "DEFAULT_$LINE"
9614 else
9615 no_cache=1
9616 fi
9617
9618 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9619
f321ab7f 9620fi;
a848cd7e
SC
9621
9622 eval "$ac_cv_use_spinbtn"
9623 if test "$no_cache" != 1; then
9624 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9625 fi
9626
9627 if test "$wxUSE_SPINBTN" = yes; then
f321ab7f
VS
9628 echo "$as_me:$LINENO: result: yes" >&5
9629echo "${ECHO_T}yes" >&6
a848cd7e 9630 else
f321ab7f
VS
9631 echo "$as_me:$LINENO: result: no" >&5
9632echo "${ECHO_T}no" >&6
a848cd7e
SC
9633 fi
9634
9635
077c7880 9636 enablestring=
f321ab7f
VS
9637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9638echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
a848cd7e 9639 no_cache=0
f321ab7f 9640 # Check whether --enable-spinctrl or --disable-spinctrl was given.
a848cd7e 9641if test "${enable_spinctrl+set}" = set; then
f321ab7f
VS
9642 enableval="$enable_spinctrl"
9643
a848cd7e
SC
9644 if test "$enableval" = yes; then
9645 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9646 else
9647 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9648 fi
9649
9650else
9651
9652 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9653 if test "x$LINE" != x ; then
9654 eval "DEFAULT_$LINE"
9655 else
9656 no_cache=1
9657 fi
9658
9659 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9660
f321ab7f 9661fi;
a848cd7e
SC
9662
9663 eval "$ac_cv_use_spinctrl"
9664 if test "$no_cache" != 1; then
9665 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9666 fi
9667
9668 if test "$wxUSE_SPINCTRL" = yes; then
f321ab7f
VS
9669 echo "$as_me:$LINENO: result: yes" >&5
9670echo "${ECHO_T}yes" >&6
a848cd7e 9671 else
f321ab7f
VS
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
a848cd7e
SC
9674 fi
9675
9676
077c7880 9677 enablestring=
f321ab7f
VS
9678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9679echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
a848cd7e 9680 no_cache=0
f321ab7f 9681 # Check whether --enable-splitter or --disable-splitter was given.
a848cd7e 9682if test "${enable_splitter+set}" = set; then
f321ab7f
VS
9683 enableval="$enable_splitter"
9684
a848cd7e
SC
9685 if test "$enableval" = yes; then
9686 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9687 else
9688 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9689 fi
9690
9691else
9692
9693 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9694 if test "x$LINE" != x ; then
9695 eval "DEFAULT_$LINE"
9696 else
9697 no_cache=1
9698 fi
9699
9700 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9701
f321ab7f 9702fi;
a848cd7e
SC
9703
9704 eval "$ac_cv_use_splitter"
9705 if test "$no_cache" != 1; then
9706 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9707 fi
9708
9709 if test "$wxUSE_SPLITTER" = yes; then
f321ab7f
VS
9710 echo "$as_me:$LINENO: result: yes" >&5
9711echo "${ECHO_T}yes" >&6
a848cd7e 9712 else
f321ab7f
VS
9713 echo "$as_me:$LINENO: result: no" >&5
9714echo "${ECHO_T}no" >&6
a848cd7e
SC
9715 fi
9716
9717
077c7880 9718 enablestring=
f321ab7f
VS
9719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9720echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
a848cd7e 9721 no_cache=0
f321ab7f 9722 # Check whether --enable-statbmp or --disable-statbmp was given.
a848cd7e 9723if test "${enable_statbmp+set}" = set; then
f321ab7f
VS
9724 enableval="$enable_statbmp"
9725
a848cd7e
SC
9726 if test "$enableval" = yes; then
9727 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9728 else
9729 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9730 fi
9731
9732else
9733
9734 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9735 if test "x$LINE" != x ; then
9736 eval "DEFAULT_$LINE"
9737 else
9738 no_cache=1
9739 fi
9740
9741 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9742
f321ab7f 9743fi;
a848cd7e
SC
9744
9745 eval "$ac_cv_use_statbmp"
9746 if test "$no_cache" != 1; then
9747 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9748 fi
9749
9750 if test "$wxUSE_STATBMP" = yes; then
f321ab7f
VS
9751 echo "$as_me:$LINENO: result: yes" >&5
9752echo "${ECHO_T}yes" >&6
a848cd7e 9753 else
f321ab7f
VS
9754 echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
a848cd7e
SC
9756 fi
9757
9758
077c7880 9759 enablestring=
f321ab7f
VS
9760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9761echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
a848cd7e 9762 no_cache=0
f321ab7f 9763 # Check whether --enable-statbox or --disable-statbox was given.
a848cd7e 9764if test "${enable_statbox+set}" = set; then
f321ab7f
VS
9765 enableval="$enable_statbox"
9766
a848cd7e
SC
9767 if test "$enableval" = yes; then
9768 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9769 else
9770 ac_cv_use_statbox='wxUSE_STATBOX=no'
9771 fi
9772
9773else
9774
9775 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9776 if test "x$LINE" != x ; then
9777 eval "DEFAULT_$LINE"
9778 else
9779 no_cache=1
9780 fi
9781
9782 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9783
f321ab7f 9784fi;
a848cd7e
SC
9785
9786 eval "$ac_cv_use_statbox"
9787 if test "$no_cache" != 1; then
9788 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9789 fi
9790
9791 if test "$wxUSE_STATBOX" = yes; then
f321ab7f
VS
9792 echo "$as_me:$LINENO: result: yes" >&5
9793echo "${ECHO_T}yes" >&6
a848cd7e 9794 else
f321ab7f
VS
9795 echo "$as_me:$LINENO: result: no" >&5
9796echo "${ECHO_T}no" >&6
a848cd7e
SC
9797 fi
9798
9799
077c7880 9800 enablestring=
f321ab7f
VS
9801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9802echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
a848cd7e 9803 no_cache=0
f321ab7f 9804 # Check whether --enable-statline or --disable-statline was given.
a848cd7e 9805if test "${enable_statline+set}" = set; then
f321ab7f
VS
9806 enableval="$enable_statline"
9807
a848cd7e
SC
9808 if test "$enableval" = yes; then
9809 ac_cv_use_statline='wxUSE_STATLINE=yes'
9810 else
9811 ac_cv_use_statline='wxUSE_STATLINE=no'
9812 fi
9813
9814else
9815
9816 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9817 if test "x$LINE" != x ; then
9818 eval "DEFAULT_$LINE"
9819 else
9820 no_cache=1
9821 fi
9822
9823 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9824
f321ab7f 9825fi;
a848cd7e
SC
9826
9827 eval "$ac_cv_use_statline"
9828 if test "$no_cache" != 1; then
9829 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9830 fi
9831
9832 if test "$wxUSE_STATLINE" = yes; then
f321ab7f
VS
9833 echo "$as_me:$LINENO: result: yes" >&5
9834echo "${ECHO_T}yes" >&6
a848cd7e 9835 else
f321ab7f
VS
9836 echo "$as_me:$LINENO: result: no" >&5
9837echo "${ECHO_T}no" >&6
a848cd7e
SC
9838 fi
9839
9840
077c7880 9841 enablestring=
f321ab7f
VS
9842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9843echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
a848cd7e 9844 no_cache=0
f321ab7f 9845 # Check whether --enable-stattext or --disable-stattext was given.
a848cd7e 9846if test "${enable_stattext+set}" = set; then
f321ab7f
VS
9847 enableval="$enable_stattext"
9848
a848cd7e
SC
9849 if test "$enableval" = yes; then
9850 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9851 else
9852 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9853 fi
9854
9855else
9856
9857 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9858 if test "x$LINE" != x ; then
9859 eval "DEFAULT_$LINE"
9860 else
9861 no_cache=1
9862 fi
9863
9864 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9865
f321ab7f 9866fi;
a848cd7e
SC
9867
9868 eval "$ac_cv_use_stattext"
9869 if test "$no_cache" != 1; then
9870 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9871 fi
9872
9873 if test "$wxUSE_STATTEXT" = yes; then
f321ab7f
VS
9874 echo "$as_me:$LINENO: result: yes" >&5
9875echo "${ECHO_T}yes" >&6
a848cd7e 9876 else
f321ab7f
VS
9877 echo "$as_me:$LINENO: result: no" >&5
9878echo "${ECHO_T}no" >&6
a848cd7e
SC
9879 fi
9880
9881
077c7880 9882 enablestring=
f321ab7f
VS
9883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9884echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
a848cd7e 9885 no_cache=0
f321ab7f 9886 # Check whether --enable-statusbar or --disable-statusbar was given.
a848cd7e 9887if test "${enable_statusbar+set}" = set; then
f321ab7f
VS
9888 enableval="$enable_statusbar"
9889
a848cd7e
SC
9890 if test "$enableval" = yes; then
9891 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9892 else
9893 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9894 fi
9895
9896else
9897
9898 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9899 if test "x$LINE" != x ; then
9900 eval "DEFAULT_$LINE"
9901 else
9902 no_cache=1
9903 fi
9904
9905 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9906
f321ab7f 9907fi;
a848cd7e
SC
9908
9909 eval "$ac_cv_use_statusbar"
9910 if test "$no_cache" != 1; then
9911 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9912 fi
9913
9914 if test "$wxUSE_STATUSBAR" = yes; then
f321ab7f
VS
9915 echo "$as_me:$LINENO: result: yes" >&5
9916echo "${ECHO_T}yes" >&6
a848cd7e 9917 else
f321ab7f
VS
9918 echo "$as_me:$LINENO: result: no" >&5
9919echo "${ECHO_T}no" >&6
a848cd7e
SC
9920 fi
9921
9922
077c7880 9923 enablestring=
f321ab7f
VS
9924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9925echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
a848cd7e 9926 no_cache=0
f321ab7f 9927 # Check whether --enable-tabdialog or --disable-tabdialog was given.
a848cd7e 9928if test "${enable_tabdialog+set}" = set; then
f321ab7f
VS
9929 enableval="$enable_tabdialog"
9930
a848cd7e 9931 if test "$enableval" = yes; then
f10e38c4 9932 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9933 else
f10e38c4 9934 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9935 fi
9936
9937else
9938
f10e38c4 9939 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9940 if test "x$LINE" != x ; then
9941 eval "DEFAULT_$LINE"
9942 else
9943 no_cache=1
9944 fi
9945
f10e38c4 9946 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e 9947
f321ab7f 9948fi;
a848cd7e
SC
9949
9950 eval "$ac_cv_use_tabdialog"
9951 if test "$no_cache" != 1; then
9952 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9953 fi
9954
f10e38c4 9955 if test "$wxUSE_TAB_DIALOG" = yes; then
f321ab7f
VS
9956 echo "$as_me:$LINENO: result: yes" >&5
9957echo "${ECHO_T}yes" >&6
a848cd7e 9958 else
f321ab7f
VS
9959 echo "$as_me:$LINENO: result: no" >&5
9960echo "${ECHO_T}no" >&6
a848cd7e
SC
9961 fi
9962
9963
077c7880 9964 enablestring=
f321ab7f
VS
9965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9966echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
a848cd7e 9967 no_cache=0
f321ab7f 9968 # Check whether --enable-textctrl or --disable-textctrl was given.
a848cd7e 9969if test "${enable_textctrl+set}" = set; then
f321ab7f
VS
9970 enableval="$enable_textctrl"
9971
a848cd7e
SC
9972 if test "$enableval" = yes; then
9973 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9974 else
9975 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9976 fi
9977
9978else
9979
9980 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9981 if test "x$LINE" != x ; then
9982 eval "DEFAULT_$LINE"
9983 else
9984 no_cache=1
9985 fi
9986
9987 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9988
f321ab7f 9989fi;
a848cd7e
SC
9990
9991 eval "$ac_cv_use_textctrl"
9992 if test "$no_cache" != 1; then
9993 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9994 fi
9995
9996 if test "$wxUSE_TEXTCTRL" = yes; then
f321ab7f
VS
9997 echo "$as_me:$LINENO: result: yes" >&5
9998echo "${ECHO_T}yes" >&6
a848cd7e 9999 else
f321ab7f
VS
10000 echo "$as_me:$LINENO: result: no" >&5
10001echo "${ECHO_T}no" >&6
a848cd7e
SC
10002 fi
10003
10004
077c7880 10005 enablestring=
f321ab7f
VS
10006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
10007echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
a848cd7e 10008 no_cache=0
f321ab7f 10009 # Check whether --enable-togglebtn or --disable-togglebtn was given.
a848cd7e 10010if test "${enable_togglebtn+set}" = set; then
f321ab7f
VS
10011 enableval="$enable_togglebtn"
10012
a848cd7e
SC
10013 if test "$enableval" = yes; then
10014 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
10015 else
10016 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
10017 fi
10018
10019else
10020
10021 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
10022 if test "x$LINE" != x ; then
10023 eval "DEFAULT_$LINE"
10024 else
10025 no_cache=1
10026 fi
10027
10028 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
10029
f321ab7f 10030fi;
a848cd7e
SC
10031
10032 eval "$ac_cv_use_togglebtn"
10033 if test "$no_cache" != 1; then
10034 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
10035 fi
10036
10037 if test "$wxUSE_TOGGLEBTN" = yes; then
f321ab7f
VS
10038 echo "$as_me:$LINENO: result: yes" >&5
10039echo "${ECHO_T}yes" >&6
a848cd7e 10040 else
f321ab7f
VS
10041 echo "$as_me:$LINENO: result: no" >&5
10042echo "${ECHO_T}no" >&6
a848cd7e
SC
10043 fi
10044
10045
077c7880 10046 enablestring=
f321ab7f
VS
10047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
10048echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
a848cd7e 10049 no_cache=0
f321ab7f 10050 # Check whether --enable-toolbar or --disable-toolbar was given.
a848cd7e 10051if test "${enable_toolbar+set}" = set; then
f321ab7f
VS
10052 enableval="$enable_toolbar"
10053
a848cd7e
SC
10054 if test "$enableval" = yes; then
10055 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
10056 else
10057 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
10058 fi
10059
10060else
10061
10062 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
10063 if test "x$LINE" != x ; then
10064 eval "DEFAULT_$LINE"
10065 else
10066 no_cache=1
10067 fi
10068
10069 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10070
f321ab7f 10071fi;
a848cd7e
SC
10072
10073 eval "$ac_cv_use_toolbar"
10074 if test "$no_cache" != 1; then
10075 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
10076 fi
10077
10078 if test "$wxUSE_TOOLBAR" = yes; then
f321ab7f
VS
10079 echo "$as_me:$LINENO: result: yes" >&5
10080echo "${ECHO_T}yes" >&6
a848cd7e 10081 else
f321ab7f
VS
10082 echo "$as_me:$LINENO: result: no" >&5
10083echo "${ECHO_T}no" >&6
a848cd7e
SC
10084 fi
10085
10086
077c7880 10087 enablestring=
f321ab7f
VS
10088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
10089echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
a848cd7e 10090 no_cache=0
f321ab7f 10091 # Check whether --enable-tbarnative or --disable-tbarnative was given.
a848cd7e 10092if test "${enable_tbarnative+set}" = set; then
f321ab7f
VS
10093 enableval="$enable_tbarnative"
10094
a848cd7e
SC
10095 if test "$enableval" = yes; then
10096 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10097 else
10098 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10099 fi
10100
10101else
10102
10103 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10104 if test "x$LINE" != x ; then
10105 eval "DEFAULT_$LINE"
10106 else
10107 no_cache=1
10108 fi
10109
10110 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10111
f321ab7f 10112fi;
a848cd7e
SC
10113
10114 eval "$ac_cv_use_tbarnative"
10115 if test "$no_cache" != 1; then
10116 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10117 fi
10118
10119 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
f321ab7f
VS
10120 echo "$as_me:$LINENO: result: yes" >&5
10121echo "${ECHO_T}yes" >&6
a848cd7e 10122 else
f321ab7f
VS
10123 echo "$as_me:$LINENO: result: no" >&5
10124echo "${ECHO_T}no" >&6
a848cd7e
SC
10125 fi
10126
10127
077c7880 10128 enablestring=
f321ab7f
VS
10129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10130echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
0093c2fc 10131 no_cache=0
f321ab7f 10132 # Check whether --enable-treebook or --disable-treebook was given.
0093c2fc 10133if test "${enable_treebook+set}" = set; then
f321ab7f
VS
10134 enableval="$enable_treebook"
10135
0093c2fc
VZ
10136 if test "$enableval" = yes; then
10137 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
10138 else
10139 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
10140 fi
10141
10142else
10143
10144 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10145 if test "x$LINE" != x ; then
10146 eval "DEFAULT_$LINE"
10147 else
10148 no_cache=1
10149 fi
10150
10151 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10152
f321ab7f 10153fi;
0093c2fc
VZ
10154
10155 eval "$ac_cv_use_treebook"
10156 if test "$no_cache" != 1; then
10157 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10158 fi
10159
10160 if test "$wxUSE_TREEBOOK" = yes; then
f321ab7f
VS
10161 echo "$as_me:$LINENO: result: yes" >&5
10162echo "${ECHO_T}yes" >&6
0093c2fc 10163 else
f321ab7f
VS
10164 echo "$as_me:$LINENO: result: no" >&5
10165echo "${ECHO_T}no" >&6
0093c2fc
VZ
10166 fi
10167
10168
077c7880 10169 enablestring=
f321ab7f
VS
10170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10171echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
5ec3bc43 10172 no_cache=0
f321ab7f 10173 # Check whether --enable-toolbook or --disable-toolbook was given.
5ec3bc43 10174if test "${enable_toolbook+set}" = set; then
f321ab7f
VS
10175 enableval="$enable_toolbook"
10176
5ec3bc43
JS
10177 if test "$enableval" = yes; then
10178 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10179 else
10180 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10181 fi
10182
10183else
10184
10185 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10186 if test "x$LINE" != x ; then
10187 eval "DEFAULT_$LINE"
10188 else
10189 no_cache=1
10190 fi
10191
10192 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10193
f321ab7f 10194fi;
5ec3bc43
JS
10195
10196 eval "$ac_cv_use_toolbook"
10197 if test "$no_cache" != 1; then
10198 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10199 fi
10200
10201 if test "$wxUSE_TOOLBOOK" = yes; then
f321ab7f
VS
10202 echo "$as_me:$LINENO: result: yes" >&5
10203echo "${ECHO_T}yes" >&6
5ec3bc43 10204 else
f321ab7f
VS
10205 echo "$as_me:$LINENO: result: no" >&5
10206echo "${ECHO_T}no" >&6
5ec3bc43
JS
10207 fi
10208
10209
077c7880 10210 enablestring=
f321ab7f
VS
10211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10212echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
a848cd7e 10213 no_cache=0
f321ab7f 10214 # Check whether --enable-treectrl or --disable-treectrl was given.
a848cd7e 10215if test "${enable_treectrl+set}" = set; then
f321ab7f
VS
10216 enableval="$enable_treectrl"
10217
a848cd7e
SC
10218 if test "$enableval" = yes; then
10219 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10220 else
10221 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10222 fi
10223
10224else
10225
10226 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10227 if test "x$LINE" != x ; then
10228 eval "DEFAULT_$LINE"
10229 else
10230 no_cache=1
10231 fi
10232
10233 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10234
f321ab7f 10235fi;
a848cd7e
SC
10236
10237 eval "$ac_cv_use_treectrl"
10238 if test "$no_cache" != 1; then
10239 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10240 fi
10241
10242 if test "$wxUSE_TREECTRL" = yes; then
f321ab7f
VS
10243 echo "$as_me:$LINENO: result: yes" >&5
10244echo "${ECHO_T}yes" >&6
a848cd7e 10245 else
f321ab7f
VS
10246 echo "$as_me:$LINENO: result: no" >&5
10247echo "${ECHO_T}no" >&6
a848cd7e
SC
10248 fi
10249
10250
077c7880 10251 enablestring=
f321ab7f
VS
10252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10253echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
a848cd7e 10254 no_cache=0
f321ab7f 10255 # Check whether --enable-tipwindow or --disable-tipwindow was given.
a848cd7e 10256if test "${enable_tipwindow+set}" = set; then
f321ab7f
VS
10257 enableval="$enable_tipwindow"
10258
a848cd7e
SC
10259 if test "$enableval" = yes; then
10260 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10261 else
10262 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10263 fi
10264
10265else
10266
10267 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10268 if test "x$LINE" != x ; then
10269 eval "DEFAULT_$LINE"
10270 else
10271 no_cache=1
10272 fi
10273
10274 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10275
f321ab7f 10276fi;
a848cd7e
SC
10277
10278 eval "$ac_cv_use_tipwindow"
10279 if test "$no_cache" != 1; then
10280 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10281 fi
10282
10283 if test "$wxUSE_TIPWINDOW" = yes; then
f321ab7f
VS
10284 echo "$as_me:$LINENO: result: yes" >&5
10285echo "${ECHO_T}yes" >&6
a848cd7e 10286 else
f321ab7f
VS
10287 echo "$as_me:$LINENO: result: no" >&5
10288echo "${ECHO_T}no" >&6
a848cd7e
SC
10289 fi
10290
10291
077c7880 10292 enablestring=
f321ab7f
VS
10293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10294echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
a848cd7e 10295 no_cache=0
f321ab7f 10296 # Check whether --enable-popupwin or --disable-popupwin was given.
a848cd7e 10297if test "${enable_popupwin+set}" = set; then
f321ab7f
VS
10298 enableval="$enable_popupwin"
10299
a848cd7e
SC
10300 if test "$enableval" = yes; then
10301 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10302 else
10303 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10304 fi
10305
10306else
10307
10308 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10309 if test "x$LINE" != x ; then
10310 eval "DEFAULT_$LINE"
10311 else
10312 no_cache=1
10313 fi
10314
10315 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10316
f321ab7f 10317fi;
a848cd7e
SC
10318
10319 eval "$ac_cv_use_popupwin"
10320 if test "$no_cache" != 1; then
10321 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10322 fi
10323
10324 if test "$wxUSE_POPUPWIN" = yes; then
f321ab7f
VS
10325 echo "$as_me:$LINENO: result: yes" >&5
10326echo "${ECHO_T}yes" >&6
a848cd7e 10327 else
f321ab7f
VS
10328 echo "$as_me:$LINENO: result: no" >&5
10329echo "${ECHO_T}no" >&6
a848cd7e
SC
10330 fi
10331
10332
10333
10334
077c7880 10335 enablestring=
f321ab7f
VS
10336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10337echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
a848cd7e 10338 no_cache=0
f321ab7f 10339 # Check whether --enable-commondlg or --disable-commondlg was given.
a848cd7e 10340if test "${enable_commondlg+set}" = set; then
f321ab7f
VS
10341 enableval="$enable_commondlg"
10342
a848cd7e
SC
10343 if test "$enableval" = yes; then
10344 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10345 else
10346 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10347 fi
10348
10349else
10350
10351 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10352 if test "x$LINE" != x ; then
10353 eval "DEFAULT_$LINE"
10354 else
10355 no_cache=1
10356 fi
10357
10358 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10359
f321ab7f 10360fi;
a848cd7e
SC
10361
10362 eval "$ac_cv_use_commondlg"
10363 if test "$no_cache" != 1; then
10364 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10365 fi
10366
10367 if test "$wxUSE_COMMONDLGS" = yes; then
f321ab7f
VS
10368 echo "$as_me:$LINENO: result: yes" >&5
10369echo "${ECHO_T}yes" >&6
a848cd7e 10370 else
f321ab7f
VS
10371 echo "$as_me:$LINENO: result: no" >&5
10372echo "${ECHO_T}no" >&6
a848cd7e
SC
10373 fi
10374
10375
077c7880 10376 enablestring=
f321ab7f
VS
10377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10378echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
319c5ed4 10379 no_cache=0
f321ab7f 10380 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
319c5ed4 10381if test "${enable_aboutdlg+set}" = set; then
f321ab7f
VS
10382 enableval="$enable_aboutdlg"
10383
319c5ed4
VZ
10384 if test "$enableval" = yes; then
10385 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10386 else
10387 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10388 fi
10389
10390else
10391
10392 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10393 if test "x$LINE" != x ; then
10394 eval "DEFAULT_$LINE"
10395 else
10396 no_cache=1
10397 fi
10398
10399 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10400
f321ab7f 10401fi;
319c5ed4
VZ
10402
10403 eval "$ac_cv_use_aboutdlg"
10404 if test "$no_cache" != 1; then
10405 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10406 fi
10407
10408 if test "$wxUSE_ABOUTDLG" = yes; then
f321ab7f
VS
10409 echo "$as_me:$LINENO: result: yes" >&5
10410echo "${ECHO_T}yes" >&6
319c5ed4 10411 else
f321ab7f
VS
10412 echo "$as_me:$LINENO: result: no" >&5
10413echo "${ECHO_T}no" >&6
319c5ed4
VZ
10414 fi
10415
10416
077c7880 10417 enablestring=
f321ab7f
VS
10418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10419echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
a848cd7e 10420 no_cache=0
f321ab7f 10421 # Check whether --enable-choicedlg or --disable-choicedlg was given.
a848cd7e 10422if test "${enable_choicedlg+set}" = set; then
f321ab7f
VS
10423 enableval="$enable_choicedlg"
10424
a848cd7e
SC
10425 if test "$enableval" = yes; then
10426 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10427 else
10428 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10429 fi
10430
10431else
10432
10433 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10434 if test "x$LINE" != x ; then
10435 eval "DEFAULT_$LINE"
10436 else
10437 no_cache=1
10438 fi
10439
10440 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10441
f321ab7f 10442fi;
a848cd7e
SC
10443
10444 eval "$ac_cv_use_choicedlg"
10445 if test "$no_cache" != 1; then
10446 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10447 fi
10448
10449 if test "$wxUSE_CHOICEDLG" = yes; then
f321ab7f
VS
10450 echo "$as_me:$LINENO: result: yes" >&5
10451echo "${ECHO_T}yes" >&6
a848cd7e 10452 else
f321ab7f
VS
10453 echo "$as_me:$LINENO: result: no" >&5
10454echo "${ECHO_T}no" >&6
a848cd7e
SC
10455 fi
10456
10457
077c7880 10458 enablestring=
f321ab7f
VS
10459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10460echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
a848cd7e 10461 no_cache=0
f321ab7f 10462 # Check whether --enable-coldlg or --disable-coldlg was given.
a848cd7e 10463if test "${enable_coldlg+set}" = set; then
f321ab7f
VS
10464 enableval="$enable_coldlg"
10465
a848cd7e
SC
10466 if test "$enableval" = yes; then
10467 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10468 else
10469 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10470 fi
10471
10472else
10473
10474 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10475 if test "x$LINE" != x ; then
10476 eval "DEFAULT_$LINE"
10477 else
10478 no_cache=1
10479 fi
10480
10481 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10482
f321ab7f 10483fi;
a848cd7e
SC
10484
10485 eval "$ac_cv_use_coldlg"
10486 if test "$no_cache" != 1; then
10487 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10488 fi
10489
10490 if test "$wxUSE_COLOURDLG" = yes; then
f321ab7f
VS
10491 echo "$as_me:$LINENO: result: yes" >&5
10492echo "${ECHO_T}yes" >&6
a848cd7e 10493 else
f321ab7f
VS
10494 echo "$as_me:$LINENO: result: no" >&5
10495echo "${ECHO_T}no" >&6
a848cd7e
SC
10496 fi
10497
10498
077c7880 10499 enablestring=
f321ab7f
VS
10500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10501echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
a848cd7e 10502 no_cache=0
f321ab7f 10503 # Check whether --enable-filedlg or --disable-filedlg was given.
a848cd7e 10504if test "${enable_filedlg+set}" = set; then
f321ab7f
VS
10505 enableval="$enable_filedlg"
10506
a848cd7e
SC
10507 if test "$enableval" = yes; then
10508 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10509 else
10510 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10511 fi
10512
10513else
10514
10515 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10516 if test "x$LINE" != x ; then
10517 eval "DEFAULT_$LINE"
10518 else
10519 no_cache=1
10520 fi
10521
10522 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10523
f321ab7f 10524fi;
a848cd7e
SC
10525
10526 eval "$ac_cv_use_filedlg"
10527 if test "$no_cache" != 1; then
10528 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10529 fi
10530
10531 if test "$wxUSE_FILEDLG" = yes; then
f321ab7f
VS
10532 echo "$as_me:$LINENO: result: yes" >&5
10533echo "${ECHO_T}yes" >&6
a848cd7e 10534 else
f321ab7f
VS
10535 echo "$as_me:$LINENO: result: no" >&5
10536echo "${ECHO_T}no" >&6
a848cd7e
SC
10537 fi
10538
10539
077c7880 10540 enablestring=
f321ab7f
VS
10541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10542echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
a848cd7e 10543 no_cache=0
f321ab7f 10544 # Check whether --enable-finddlg or --disable-finddlg was given.
a848cd7e 10545if test "${enable_finddlg+set}" = set; then
f321ab7f
VS
10546 enableval="$enable_finddlg"
10547
a848cd7e
SC
10548 if test "$enableval" = yes; then
10549 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10550 else
10551 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10552 fi
10553
10554else
10555
10556 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10557 if test "x$LINE" != x ; then
10558 eval "DEFAULT_$LINE"
10559 else
10560 no_cache=1
10561 fi
10562
10563 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10564
f321ab7f 10565fi;
a848cd7e
SC
10566
10567 eval "$ac_cv_use_finddlg"
10568 if test "$no_cache" != 1; then
10569 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10570 fi
10571
10572 if test "$wxUSE_FINDREPLDLG" = yes; then
f321ab7f
VS
10573 echo "$as_me:$LINENO: result: yes" >&5
10574echo "${ECHO_T}yes" >&6
a848cd7e 10575 else
f321ab7f
VS
10576 echo "$as_me:$LINENO: result: no" >&5
10577echo "${ECHO_T}no" >&6
a848cd7e
SC
10578 fi
10579
10580
077c7880 10581 enablestring=
f321ab7f
VS
10582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10583echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
a848cd7e 10584 no_cache=0
f321ab7f 10585 # Check whether --enable-fontdlg or --disable-fontdlg was given.
a848cd7e 10586if test "${enable_fontdlg+set}" = set; then
f321ab7f
VS
10587 enableval="$enable_fontdlg"
10588
a848cd7e
SC
10589 if test "$enableval" = yes; then
10590 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10591 else
10592 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10593 fi
10594
10595else
10596
10597 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10598 if test "x$LINE" != x ; then
10599 eval "DEFAULT_$LINE"
10600 else
10601 no_cache=1
10602 fi
10603
10604 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10605
f321ab7f 10606fi;
a848cd7e
SC
10607
10608 eval "$ac_cv_use_fontdlg"
10609 if test "$no_cache" != 1; then
10610 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10611 fi
10612
10613 if test "$wxUSE_FONTDLG" = yes; then
f321ab7f
VS
10614 echo "$as_me:$LINENO: result: yes" >&5
10615echo "${ECHO_T}yes" >&6
a848cd7e 10616 else
f321ab7f
VS
10617 echo "$as_me:$LINENO: result: no" >&5
10618echo "${ECHO_T}no" >&6
a848cd7e
SC
10619 fi
10620
10621
077c7880 10622 enablestring=
f321ab7f
VS
10623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10624echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
a848cd7e 10625 no_cache=0
f321ab7f 10626 # Check whether --enable-dirdlg or --disable-dirdlg was given.
a848cd7e 10627if test "${enable_dirdlg+set}" = set; then
f321ab7f
VS
10628 enableval="$enable_dirdlg"
10629
a848cd7e
SC
10630 if test "$enableval" = yes; then
10631 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10632 else
10633 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10634 fi
10635
10636else
10637
10638 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10639 if test "x$LINE" != x ; then
10640 eval "DEFAULT_$LINE"
10641 else
10642 no_cache=1
10643 fi
10644
10645 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10646
f321ab7f 10647fi;
a848cd7e
SC
10648
10649 eval "$ac_cv_use_dirdlg"
10650 if test "$no_cache" != 1; then
10651 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10652 fi
10653
10654 if test "$wxUSE_DIRDLG" = yes; then
f321ab7f
VS
10655 echo "$as_me:$LINENO: result: yes" >&5
10656echo "${ECHO_T}yes" >&6
a848cd7e 10657 else
f321ab7f
VS
10658 echo "$as_me:$LINENO: result: no" >&5
10659echo "${ECHO_T}no" >&6
a848cd7e
SC
10660 fi
10661
10662
077c7880 10663 enablestring=
f321ab7f
VS
10664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10665echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
a848cd7e 10666 no_cache=0
f321ab7f 10667 # Check whether --enable-msgdlg or --disable-msgdlg was given.
a848cd7e 10668if test "${enable_msgdlg+set}" = set; then
f321ab7f
VS
10669 enableval="$enable_msgdlg"
10670
a848cd7e
SC
10671 if test "$enableval" = yes; then
10672 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10673 else
10674 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10675 fi
10676
10677else
10678
10679 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10680 if test "x$LINE" != x ; then
10681 eval "DEFAULT_$LINE"
10682 else
10683 no_cache=1
10684 fi
10685
10686 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10687
f321ab7f 10688fi;
a848cd7e
SC
10689
10690 eval "$ac_cv_use_msgdlg"
10691 if test "$no_cache" != 1; then
10692 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10693 fi
10694
10695 if test "$wxUSE_MSGDLG" = yes; then
f321ab7f
VS
10696 echo "$as_me:$LINENO: result: yes" >&5
10697echo "${ECHO_T}yes" >&6
a848cd7e 10698 else
f321ab7f
VS
10699 echo "$as_me:$LINENO: result: no" >&5
10700echo "${ECHO_T}no" >&6
a848cd7e
SC
10701 fi
10702
10703
077c7880 10704 enablestring=
f321ab7f
VS
10705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10706echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
a848cd7e 10707 no_cache=0
f321ab7f 10708 # Check whether --enable-numberdlg or --disable-numberdlg was given.
a848cd7e 10709if test "${enable_numberdlg+set}" = set; then
f321ab7f
VS
10710 enableval="$enable_numberdlg"
10711
a848cd7e
SC
10712 if test "$enableval" = yes; then
10713 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10714 else
10715 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10716 fi
10717
10718else
10719
10720 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10721 if test "x$LINE" != x ; then
10722 eval "DEFAULT_$LINE"
10723 else
10724 no_cache=1
10725 fi
10726
10727 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10728
f321ab7f 10729fi;
a848cd7e
SC
10730
10731 eval "$ac_cv_use_numberdlg"
10732 if test "$no_cache" != 1; then
10733 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10734 fi
10735
10736 if test "$wxUSE_NUMBERDLG" = yes; then
f321ab7f
VS
10737 echo "$as_me:$LINENO: result: yes" >&5
10738echo "${ECHO_T}yes" >&6
a848cd7e 10739 else
f321ab7f
VS
10740 echo "$as_me:$LINENO: result: no" >&5
10741echo "${ECHO_T}no" >&6
a848cd7e
SC
10742 fi
10743
10744
077c7880 10745 enablestring=
f321ab7f
VS
10746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10747echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
a848cd7e 10748 no_cache=0
f321ab7f 10749 # Check whether --enable-splash or --disable-splash was given.
a848cd7e 10750if test "${enable_splash+set}" = set; then
f321ab7f
VS
10751 enableval="$enable_splash"
10752
a848cd7e
SC
10753 if test "$enableval" = yes; then
10754 ac_cv_use_splash='wxUSE_SPLASH=yes'
10755 else
10756 ac_cv_use_splash='wxUSE_SPLASH=no'
10757 fi
10758
10759else
10760
10761 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10762 if test "x$LINE" != x ; then
10763 eval "DEFAULT_$LINE"
10764 else
10765 no_cache=1
10766 fi
10767
10768 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10769
f321ab7f 10770fi;
a848cd7e
SC
10771
10772 eval "$ac_cv_use_splash"
10773 if test "$no_cache" != 1; then
10774 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10775 fi
10776
10777 if test "$wxUSE_SPLASH" = yes; then
f321ab7f
VS
10778 echo "$as_me:$LINENO: result: yes" >&5
10779echo "${ECHO_T}yes" >&6
a848cd7e 10780 else
f321ab7f
VS
10781 echo "$as_me:$LINENO: result: no" >&5
10782echo "${ECHO_T}no" >&6
a848cd7e
SC
10783 fi
10784
10785
077c7880 10786 enablestring=
f321ab7f
VS
10787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10788echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
a848cd7e 10789 no_cache=0
f321ab7f 10790 # Check whether --enable-textdlg or --disable-textdlg was given.
a848cd7e 10791if test "${enable_textdlg+set}" = set; then
f321ab7f
VS
10792 enableval="$enable_textdlg"
10793
a848cd7e
SC
10794 if test "$enableval" = yes; then
10795 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10796 else
10797 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10798 fi
10799
10800else
10801
10802 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10803 if test "x$LINE" != x ; then
10804 eval "DEFAULT_$LINE"
10805 else
10806 no_cache=1
10807 fi
10808
10809 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10810
f321ab7f 10811fi;
a848cd7e
SC
10812
10813 eval "$ac_cv_use_textdlg"
10814 if test "$no_cache" != 1; then
10815 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10816 fi
10817
10818 if test "$wxUSE_TEXTDLG" = yes; then
f321ab7f
VS
10819 echo "$as_me:$LINENO: result: yes" >&5
10820echo "${ECHO_T}yes" >&6
a848cd7e 10821 else
f321ab7f
VS
10822 echo "$as_me:$LINENO: result: no" >&5
10823echo "${ECHO_T}no" >&6
a848cd7e
SC
10824 fi
10825
10826
077c7880 10827 enablestring=
f321ab7f
VS
10828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10829echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
a848cd7e 10830 no_cache=0
f321ab7f 10831 # Check whether --enable-tipdlg or --disable-tipdlg was given.
a848cd7e 10832if test "${enable_tipdlg+set}" = set; then
f321ab7f
VS
10833 enableval="$enable_tipdlg"
10834
a848cd7e
SC
10835 if test "$enableval" = yes; then
10836 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10837 else
10838 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10839 fi
10840
10841else
10842
10843 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10844 if test "x$LINE" != x ; then
10845 eval "DEFAULT_$LINE"
10846 else
10847 no_cache=1
10848 fi
10849
10850 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10851
f321ab7f 10852fi;
a848cd7e
SC
10853
10854 eval "$ac_cv_use_tipdlg"
10855 if test "$no_cache" != 1; then
10856 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10857 fi
10858
10859 if test "$wxUSE_STARTUP_TIPS" = yes; then
f321ab7f
VS
10860 echo "$as_me:$LINENO: result: yes" >&5
10861echo "${ECHO_T}yes" >&6
a848cd7e 10862 else
f321ab7f
VS
10863 echo "$as_me:$LINENO: result: no" >&5
10864echo "${ECHO_T}no" >&6
a848cd7e
SC
10865 fi
10866
10867
077c7880 10868 enablestring=
f321ab7f
VS
10869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10870echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
a848cd7e 10871 no_cache=0
f321ab7f 10872 # Check whether --enable-progressdlg or --disable-progressdlg was given.
a848cd7e 10873if test "${enable_progressdlg+set}" = set; then
f321ab7f
VS
10874 enableval="$enable_progressdlg"
10875
a848cd7e
SC
10876 if test "$enableval" = yes; then
10877 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10878 else
10879 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10880 fi
10881
10882else
10883
10884 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10885 if test "x$LINE" != x ; then
10886 eval "DEFAULT_$LINE"
10887 else
10888 no_cache=1
10889 fi
10890
10891 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10892
f321ab7f 10893fi;
a848cd7e
SC
10894
10895 eval "$ac_cv_use_progressdlg"
10896 if test "$no_cache" != 1; then
10897 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10898 fi
10899
10900 if test "$wxUSE_PROGRESSDLG" = yes; then
f321ab7f
VS
10901 echo "$as_me:$LINENO: result: yes" >&5
10902echo "${ECHO_T}yes" >&6
a848cd7e 10903 else
f321ab7f
VS
10904 echo "$as_me:$LINENO: result: no" >&5
10905echo "${ECHO_T}no" >&6
a848cd7e
SC
10906 fi
10907
10908
077c7880 10909 enablestring=
f321ab7f
VS
10910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10911echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
a848cd7e 10912 no_cache=0
f321ab7f 10913 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
a848cd7e 10914if test "${enable_wizarddlg+set}" = set; then
f321ab7f
VS
10915 enableval="$enable_wizarddlg"
10916
a848cd7e
SC
10917 if test "$enableval" = yes; then
10918 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10919 else
10920 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10921 fi
10922
10923else
10924
10925 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10926 if test "x$LINE" != x ; then
10927 eval "DEFAULT_$LINE"
10928 else
10929 no_cache=1
10930 fi
10931
10932 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10933
f321ab7f 10934fi;
a848cd7e
SC
10935
10936 eval "$ac_cv_use_wizarddlg"
10937 if test "$no_cache" != 1; then
10938 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10939 fi
10940
10941 if test "$wxUSE_WIZARDDLG" = yes; then
f321ab7f
VS
10942 echo "$as_me:$LINENO: result: yes" >&5
10943echo "${ECHO_T}yes" >&6
a848cd7e 10944 else
f321ab7f
VS
10945 echo "$as_me:$LINENO: result: no" >&5
10946echo "${ECHO_T}no" >&6
a848cd7e
SC
10947 fi
10948
10949
10950
10951
077c7880 10952 enablestring=
f321ab7f
VS
10953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10954echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
a848cd7e 10955 no_cache=0
f321ab7f 10956 # Check whether --enable-menus or --disable-menus was given.
a848cd7e 10957if test "${enable_menus+set}" = set; then
f321ab7f
VS
10958 enableval="$enable_menus"
10959
a848cd7e
SC
10960 if test "$enableval" = yes; then
10961 ac_cv_use_menus='wxUSE_MENUS=yes'
10962 else
10963 ac_cv_use_menus='wxUSE_MENUS=no'
10964 fi
10965
10966else
10967
10968 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10969 if test "x$LINE" != x ; then
10970 eval "DEFAULT_$LINE"
10971 else
10972 no_cache=1
10973 fi
10974
10975 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10976
f321ab7f 10977fi;
a848cd7e
SC
10978
10979 eval "$ac_cv_use_menus"
10980 if test "$no_cache" != 1; then
10981 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10982 fi
10983
10984 if test "$wxUSE_MENUS" = yes; then
f321ab7f
VS
10985 echo "$as_me:$LINENO: result: yes" >&5
10986echo "${ECHO_T}yes" >&6
a848cd7e 10987 else
f321ab7f
VS
10988 echo "$as_me:$LINENO: result: no" >&5
10989echo "${ECHO_T}no" >&6
a848cd7e
SC
10990 fi
10991
10992
077c7880 10993 enablestring=
f321ab7f
VS
10994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10995echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
a848cd7e 10996 no_cache=0
f321ab7f 10997 # Check whether --enable-miniframe or --disable-miniframe was given.
a848cd7e 10998if test "${enable_miniframe+set}" = set; then
f321ab7f
VS
10999 enableval="$enable_miniframe"
11000
a848cd7e
SC
11001 if test "$enableval" = yes; then
11002 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
11003 else
11004 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
11005 fi
11006
11007else
11008
11009 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
11010 if test "x$LINE" != x ; then
11011 eval "DEFAULT_$LINE"
11012 else
11013 no_cache=1
11014 fi
11015
11016 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
11017
f321ab7f 11018fi;
a848cd7e
SC
11019
11020 eval "$ac_cv_use_miniframe"
11021 if test "$no_cache" != 1; then
11022 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
11023 fi
11024
11025 if test "$wxUSE_MINIFRAME" = yes; then
f321ab7f
VS
11026 echo "$as_me:$LINENO: result: yes" >&5
11027echo "${ECHO_T}yes" >&6
a848cd7e 11028 else
f321ab7f
VS
11029 echo "$as_me:$LINENO: result: no" >&5
11030echo "${ECHO_T}no" >&6
a848cd7e
SC
11031 fi
11032
11033
077c7880 11034 enablestring=
f321ab7f
VS
11035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
11036echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
a848cd7e 11037 no_cache=0
f321ab7f 11038 # Check whether --enable-tooltips or --disable-tooltips was given.
a848cd7e 11039if test "${enable_tooltips+set}" = set; then
f321ab7f
VS
11040 enableval="$enable_tooltips"
11041
a848cd7e
SC
11042 if test "$enableval" = yes; then
11043 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
11044 else
11045 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
11046 fi
11047
11048else
11049
11050 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
11051 if test "x$LINE" != x ; then
11052 eval "DEFAULT_$LINE"
11053 else
11054 no_cache=1
11055 fi
11056
11057 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
11058
f321ab7f 11059fi;
a848cd7e
SC
11060
11061 eval "$ac_cv_use_tooltips"
11062 if test "$no_cache" != 1; then
11063 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
11064 fi
11065
11066 if test "$wxUSE_TOOLTIPS" = yes; then
f321ab7f
VS
11067 echo "$as_me:$LINENO: result: yes" >&5
11068echo "${ECHO_T}yes" >&6
a848cd7e 11069 else
f321ab7f
VS
11070 echo "$as_me:$LINENO: result: no" >&5
11071echo "${ECHO_T}no" >&6
a848cd7e
SC
11072 fi
11073
11074
077c7880 11075 enablestring=
f321ab7f
VS
11076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
11077echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
a848cd7e 11078 no_cache=0
f321ab7f 11079 # Check whether --enable-splines or --disable-splines was given.
a848cd7e 11080if test "${enable_splines+set}" = set; then
f321ab7f
VS
11081 enableval="$enable_splines"
11082
a848cd7e
SC
11083 if test "$enableval" = yes; then
11084 ac_cv_use_splines='wxUSE_SPLINES=yes'
11085 else
11086 ac_cv_use_splines='wxUSE_SPLINES=no'
11087 fi
11088
11089else
11090
11091 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
11092 if test "x$LINE" != x ; then
11093 eval "DEFAULT_$LINE"
11094 else
11095 no_cache=1
11096 fi
11097
11098 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11099
f321ab7f 11100fi;
a848cd7e
SC
11101
11102 eval "$ac_cv_use_splines"
11103 if test "$no_cache" != 1; then
11104 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11105 fi
11106
11107 if test "$wxUSE_SPLINES" = yes; then
f321ab7f
VS
11108 echo "$as_me:$LINENO: result: yes" >&5
11109echo "${ECHO_T}yes" >&6
a848cd7e 11110 else
f321ab7f
VS
11111 echo "$as_me:$LINENO: result: no" >&5
11112echo "${ECHO_T}no" >&6
a848cd7e
SC
11113 fi
11114
11115
077c7880 11116 enablestring=
f321ab7f
VS
11117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11118echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
fbe2ca43 11119 no_cache=0
f321ab7f 11120 # Check whether --enable-mousewheel or --disable-mousewheel was given.
fbe2ca43 11121if test "${enable_mousewheel+set}" = set; then
f321ab7f
VS
11122 enableval="$enable_mousewheel"
11123
fbe2ca43
SN
11124 if test "$enableval" = yes; then
11125 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11126 else
11127 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11128 fi
11129
11130else
11131
11132 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11133 if test "x$LINE" != x ; then
11134 eval "DEFAULT_$LINE"
11135 else
11136 no_cache=1
11137 fi
11138
11139 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11140
f321ab7f 11141fi;
fbe2ca43
SN
11142
11143 eval "$ac_cv_use_mousewheel"
11144 if test "$no_cache" != 1; then
11145 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11146 fi
11147
11148 if test "$wxUSE_MOUSEWHEEL" = yes; then
f321ab7f
VS
11149 echo "$as_me:$LINENO: result: yes" >&5
11150echo "${ECHO_T}yes" >&6
fbe2ca43 11151 else
f321ab7f
VS
11152 echo "$as_me:$LINENO: result: no" >&5
11153echo "${ECHO_T}no" >&6
fbe2ca43
SN
11154 fi
11155
11156
077c7880 11157 enablestring=
f321ab7f
VS
11158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11159echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
a848cd7e 11160 no_cache=0
f321ab7f 11161 # Check whether --enable-validators or --disable-validators was given.
a848cd7e 11162if test "${enable_validators+set}" = set; then
f321ab7f
VS
11163 enableval="$enable_validators"
11164
a848cd7e
SC
11165 if test "$enableval" = yes; then
11166 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
11167 else
11168 ac_cv_use_validators='wxUSE_VALIDATORS=no'
11169 fi
11170
11171else
11172
11173 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11174 if test "x$LINE" != x ; then
11175 eval "DEFAULT_$LINE"
11176 else
11177 no_cache=1
11178 fi
11179
11180 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11181
f321ab7f 11182fi;
a848cd7e
SC
11183
11184 eval "$ac_cv_use_validators"
11185 if test "$no_cache" != 1; then
11186 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11187 fi
11188
11189 if test "$wxUSE_VALIDATORS" = yes; then
f321ab7f
VS
11190 echo "$as_me:$LINENO: result: yes" >&5
11191echo "${ECHO_T}yes" >&6
a848cd7e 11192 else
f321ab7f
VS
11193 echo "$as_me:$LINENO: result: no" >&5
11194echo "${ECHO_T}no" >&6
a848cd7e
SC
11195 fi
11196
11197
077c7880 11198 enablestring=
f321ab7f
VS
11199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11200echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
a848cd7e 11201 no_cache=0
f321ab7f 11202 # Check whether --enable-busyinfo or --disable-busyinfo was given.
a848cd7e 11203if test "${enable_busyinfo+set}" = set; then
f321ab7f
VS
11204 enableval="$enable_busyinfo"
11205
a848cd7e
SC
11206 if test "$enableval" = yes; then
11207 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11208 else
11209 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11210 fi
11211
11212else
11213
11214 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11215 if test "x$LINE" != x ; then
11216 eval "DEFAULT_$LINE"
11217 else
11218 no_cache=1
11219 fi
11220
11221 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11222
f321ab7f 11223fi;
a848cd7e
SC
11224
11225 eval "$ac_cv_use_busyinfo"
11226 if test "$no_cache" != 1; then
11227 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11228 fi
11229
11230 if test "$wxUSE_BUSYINFO" = yes; then
f321ab7f
VS
11231 echo "$as_me:$LINENO: result: yes" >&5
11232echo "${ECHO_T}yes" >&6
a848cd7e 11233 else
f321ab7f
VS
11234 echo "$as_me:$LINENO: result: no" >&5
11235echo "${ECHO_T}no" >&6
a848cd7e
SC
11236 fi
11237
11238
077c7880 11239 enablestring=
f321ab7f
VS
11240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11241echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
a848cd7e 11242 no_cache=0
f321ab7f 11243 # Check whether --enable-joystick or --disable-joystick was given.
a848cd7e 11244if test "${enable_joystick+set}" = set; then
f321ab7f
VS
11245 enableval="$enable_joystick"
11246
a848cd7e
SC
11247 if test "$enableval" = yes; then
11248 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11249 else
11250 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11251 fi
11252
11253else
11254
11255 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11256 if test "x$LINE" != x ; then
11257 eval "DEFAULT_$LINE"
11258 else
11259 no_cache=1
11260 fi
11261
11262 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11263
f321ab7f 11264fi;
a848cd7e
SC
11265
11266 eval "$ac_cv_use_joystick"
11267 if test "$no_cache" != 1; then
11268 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11269 fi
11270
11271 if test "$wxUSE_JOYSTICK" = yes; then
f321ab7f
VS
11272 echo "$as_me:$LINENO: result: yes" >&5
11273echo "${ECHO_T}yes" >&6
a848cd7e 11274 else
f321ab7f
VS
11275 echo "$as_me:$LINENO: result: no" >&5
11276echo "${ECHO_T}no" >&6
a848cd7e
SC
11277 fi
11278
11279
077c7880 11280 enablestring=
f321ab7f
VS
11281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11282echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
a848cd7e 11283 no_cache=0
f321ab7f 11284 # Check whether --enable-metafile or --disable-metafile was given.
a848cd7e 11285if test "${enable_metafile+set}" = set; then
f321ab7f
VS
11286 enableval="$enable_metafile"
11287
a848cd7e
SC
11288 if test "$enableval" = yes; then
11289 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11290 else
11291 ac_cv_use_metafile='wxUSE_METAFILE=no'
11292 fi
11293
11294else
11295
11296 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11297 if test "x$LINE" != x ; then
11298 eval "DEFAULT_$LINE"
11299 else
11300 no_cache=1
11301 fi
11302
11303 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11304
f321ab7f 11305fi;
a848cd7e
SC
11306
11307 eval "$ac_cv_use_metafile"
11308 if test "$no_cache" != 1; then
11309 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11310 fi
11311
11312 if test "$wxUSE_METAFILE" = yes; then
f321ab7f
VS
11313 echo "$as_me:$LINENO: result: yes" >&5
11314echo "${ECHO_T}yes" >&6
a848cd7e 11315 else
f321ab7f
VS
11316 echo "$as_me:$LINENO: result: no" >&5
11317echo "${ECHO_T}no" >&6
a848cd7e
SC
11318 fi
11319
11320
077c7880 11321 enablestring=
f321ab7f
VS
11322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11323echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
a848cd7e 11324 no_cache=0
f321ab7f 11325 # Check whether --enable-dragimage or --disable-dragimage was given.
a848cd7e 11326if test "${enable_dragimage+set}" = set; then
f321ab7f
VS
11327 enableval="$enable_dragimage"
11328
a848cd7e
SC
11329 if test "$enableval" = yes; then
11330 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11331 else
11332 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11333 fi
11334
11335else
11336
11337 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11338 if test "x$LINE" != x ; then
11339 eval "DEFAULT_$LINE"
11340 else
11341 no_cache=1
11342 fi
11343
11344 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11345
f321ab7f 11346fi;
a848cd7e
SC
11347
11348 eval "$ac_cv_use_dragimage"
11349 if test "$no_cache" != 1; then
11350 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11351 fi
11352
11353 if test "$wxUSE_DRAGIMAGE" = yes; then
f321ab7f
VS
11354 echo "$as_me:$LINENO: result: yes" >&5
11355echo "${ECHO_T}yes" >&6
a848cd7e 11356 else
f321ab7f
VS
11357 echo "$as_me:$LINENO: result: no" >&5
11358echo "${ECHO_T}no" >&6
a848cd7e
SC
11359 fi
11360
11361
077c7880 11362 enablestring=
f321ab7f
VS
11363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11364echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
a848cd7e 11365 no_cache=0
f321ab7f 11366 # Check whether --enable-accessibility or --disable-accessibility was given.
a848cd7e 11367if test "${enable_accessibility+set}" = set; then
f321ab7f
VS
11368 enableval="$enable_accessibility"
11369
a848cd7e
SC
11370 if test "$enableval" = yes; then
11371 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11372 else
11373 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11374 fi
11375
11376else
11377
11378 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11379 if test "x$LINE" != x ; then
11380 eval "DEFAULT_$LINE"
11381 else
11382 no_cache=1
11383 fi
11384
11385 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11386
f321ab7f 11387fi;
a848cd7e
SC
11388
11389 eval "$ac_cv_use_accessibility"
11390 if test "$no_cache" != 1; then
11391 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11392 fi
11393
11394 if test "$wxUSE_ACCESSIBILITY" = yes; then
f321ab7f
VS
11395 echo "$as_me:$LINENO: result: yes" >&5
11396echo "${ECHO_T}yes" >&6
a848cd7e 11397 else
f321ab7f
VS
11398 echo "$as_me:$LINENO: result: no" >&5
11399echo "${ECHO_T}no" >&6
a848cd7e
SC
11400 fi
11401
11402
38b4a946
VZ
11403if test "$wxUSE_MSW" = "1"; then
11404
077c7880 11405 enablestring=
f321ab7f
VS
11406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11407echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
38b4a946 11408 no_cache=0
f321ab7f 11409 # Check whether --enable-dccache or --disable-dccache was given.
38b4a946 11410if test "${enable_dccache+set}" = set; then
f321ab7f
VS
11411 enableval="$enable_dccache"
11412
38b4a946
VZ
11413 if test "$enableval" = yes; then
11414 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11415 else
11416 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11417 fi
11418
11419else
11420
11421 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11422 if test "x$LINE" != x ; then
11423 eval "DEFAULT_$LINE"
11424 else
11425 no_cache=1
11426 fi
11427
11428 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11429
f321ab7f 11430fi;
38b4a946
VZ
11431
11432 eval "$ac_cv_use_dccache"
11433 if test "$no_cache" != 1; then
11434 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11435 fi
11436
11437 if test "$wxUSE_DC_CACHEING" = yes; then
f321ab7f
VS
11438 echo "$as_me:$LINENO: result: yes" >&5
11439echo "${ECHO_T}yes" >&6
38b4a946 11440 else
f321ab7f
VS
11441 echo "$as_me:$LINENO: result: no" >&5
11442echo "${ECHO_T}no" >&6
38b4a946
VZ
11443 fi
11444
11445fi
11446
a848cd7e
SC
11447
11448
077c7880 11449 enablestring=
f321ab7f
VS
11450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11451echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
a848cd7e 11452 no_cache=0
f321ab7f 11453 # Check whether --enable-palette or --disable-palette was given.
a848cd7e 11454if test "${enable_palette+set}" = set; then
f321ab7f
VS
11455 enableval="$enable_palette"
11456
a848cd7e
SC
11457 if test "$enableval" = yes; then
11458 ac_cv_use_palette='wxUSE_PALETTE=yes'
11459 else
11460 ac_cv_use_palette='wxUSE_PALETTE=no'
11461 fi
11462
11463else
11464
11465 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11466 if test "x$LINE" != x ; then
11467 eval "DEFAULT_$LINE"
11468 else
11469 no_cache=1
11470 fi
11471
11472 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11473
f321ab7f 11474fi;
a848cd7e
SC
11475
11476 eval "$ac_cv_use_palette"
11477 if test "$no_cache" != 1; then
11478 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11479 fi
11480
11481 if test "$wxUSE_PALETTE" = yes; then
f321ab7f
VS
11482 echo "$as_me:$LINENO: result: yes" >&5
11483echo "${ECHO_T}yes" >&6
a848cd7e 11484 else
f321ab7f
VS
11485 echo "$as_me:$LINENO: result: no" >&5
11486echo "${ECHO_T}no" >&6
a848cd7e
SC
11487 fi
11488
11489
077c7880 11490 enablestring=
f321ab7f
VS
11491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11492echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
a848cd7e 11493 no_cache=0
f321ab7f 11494 # Check whether --enable-image or --disable-image was given.
a848cd7e 11495if test "${enable_image+set}" = set; then
f321ab7f
VS
11496 enableval="$enable_image"
11497
a848cd7e
SC
11498 if test "$enableval" = yes; then
11499 ac_cv_use_image='wxUSE_IMAGE=yes'
11500 else
11501 ac_cv_use_image='wxUSE_IMAGE=no'
11502 fi
11503
11504else
11505
11506 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11507 if test "x$LINE" != x ; then
11508 eval "DEFAULT_$LINE"
11509 else
11510 no_cache=1
11511 fi
11512
11513 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11514
f321ab7f 11515fi;
a848cd7e
SC
11516
11517 eval "$ac_cv_use_image"
11518 if test "$no_cache" != 1; then
11519 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11520 fi
11521
11522 if test "$wxUSE_IMAGE" = yes; then
f321ab7f
VS
11523 echo "$as_me:$LINENO: result: yes" >&5
11524echo "${ECHO_T}yes" >&6
a848cd7e 11525 else
f321ab7f
VS
11526 echo "$as_me:$LINENO: result: no" >&5
11527echo "${ECHO_T}no" >&6
a848cd7e
SC
11528 fi
11529
11530
077c7880 11531 enablestring=
f321ab7f
VS
11532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11533echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
a848cd7e 11534 no_cache=0
f321ab7f 11535 # Check whether --enable-gif or --disable-gif was given.
a848cd7e 11536if test "${enable_gif+set}" = set; then
f321ab7f
VS
11537 enableval="$enable_gif"
11538
a848cd7e
SC
11539 if test "$enableval" = yes; then
11540 ac_cv_use_gif='wxUSE_GIF=yes'
11541 else
11542 ac_cv_use_gif='wxUSE_GIF=no'
11543 fi
11544
11545else
11546
11547 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11548 if test "x$LINE" != x ; then
11549 eval "DEFAULT_$LINE"
11550 else
11551 no_cache=1
11552 fi
11553
11554 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11555
f321ab7f 11556fi;
a848cd7e
SC
11557
11558 eval "$ac_cv_use_gif"
11559 if test "$no_cache" != 1; then
11560 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11561 fi
11562
11563 if test "$wxUSE_GIF" = yes; then
f321ab7f
VS
11564 echo "$as_me:$LINENO: result: yes" >&5
11565echo "${ECHO_T}yes" >&6
a848cd7e 11566 else
f321ab7f
VS
11567 echo "$as_me:$LINENO: result: no" >&5
11568echo "${ECHO_T}no" >&6
a848cd7e
SC
11569 fi
11570
11571
077c7880 11572 enablestring=
f321ab7f
VS
11573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11574echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
a848cd7e 11575 no_cache=0
f321ab7f 11576 # Check whether --enable-pcx or --disable-pcx was given.
a848cd7e 11577if test "${enable_pcx+set}" = set; then
f321ab7f
VS
11578 enableval="$enable_pcx"
11579
a848cd7e
SC
11580 if test "$enableval" = yes; then
11581 ac_cv_use_pcx='wxUSE_PCX=yes'
11582 else
11583 ac_cv_use_pcx='wxUSE_PCX=no'
11584 fi
11585
11586else
11587
11588 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11589 if test "x$LINE" != x ; then
11590 eval "DEFAULT_$LINE"
11591 else
11592 no_cache=1
11593 fi
11594
11595 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11596
f321ab7f 11597fi;
a848cd7e
SC
11598
11599 eval "$ac_cv_use_pcx"
11600 if test "$no_cache" != 1; then
11601 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11602 fi
11603
11604 if test "$wxUSE_PCX" = yes; then
f321ab7f
VS
11605 echo "$as_me:$LINENO: result: yes" >&5
11606echo "${ECHO_T}yes" >&6
a848cd7e 11607 else
f321ab7f
VS
11608 echo "$as_me:$LINENO: result: no" >&5
11609echo "${ECHO_T}no" >&6
a848cd7e
SC
11610 fi
11611
11612
077c7880 11613 enablestring=
f321ab7f
VS
11614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
11615echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6
bb9e79c0 11616 no_cache=0
f321ab7f 11617 # Check whether --enable-tga or --disable-tga was given.
bb9e79c0 11618if test "${enable_tga+set}" = set; then
f321ab7f
VS
11619 enableval="$enable_tga"
11620
bb9e79c0
VZ
11621 if test "$enableval" = yes; then
11622 ac_cv_use_tga='wxUSE_TGA=yes'
11623 else
11624 ac_cv_use_tga='wxUSE_TGA=no'
11625 fi
11626
11627else
11628
11629 LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}`
11630 if test "x$LINE" != x ; then
11631 eval "DEFAULT_$LINE"
11632 else
11633 no_cache=1
11634 fi
11635
11636 ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
11637
f321ab7f 11638fi;
bb9e79c0
VZ
11639
11640 eval "$ac_cv_use_tga"
11641 if test "$no_cache" != 1; then
11642 echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
11643 fi
11644
11645 if test "$wxUSE_TGA" = yes; then
f321ab7f
VS
11646 echo "$as_me:$LINENO: result: yes" >&5
11647echo "${ECHO_T}yes" >&6
bb9e79c0 11648 else
f321ab7f
VS
11649 echo "$as_me:$LINENO: result: no" >&5
11650echo "${ECHO_T}no" >&6
bb9e79c0
VZ
11651 fi
11652
11653
077c7880 11654 enablestring=
f321ab7f
VS
11655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11656echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
a848cd7e 11657 no_cache=0
f321ab7f 11658 # Check whether --enable-iff or --disable-iff was given.
a848cd7e 11659if test "${enable_iff+set}" = set; then
f321ab7f
VS
11660 enableval="$enable_iff"
11661
a848cd7e
SC
11662 if test "$enableval" = yes; then
11663 ac_cv_use_iff='wxUSE_IFF=yes'
11664 else
11665 ac_cv_use_iff='wxUSE_IFF=no'
11666 fi
11667
11668else
11669
11670 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11671 if test "x$LINE" != x ; then
11672 eval "DEFAULT_$LINE"
11673 else
11674 no_cache=1
11675 fi
11676
11677 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11678
f321ab7f 11679fi;
a848cd7e
SC
11680
11681 eval "$ac_cv_use_iff"
11682 if test "$no_cache" != 1; then
11683 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11684 fi
11685
11686 if test "$wxUSE_IFF" = yes; then
f321ab7f
VS
11687 echo "$as_me:$LINENO: result: yes" >&5
11688echo "${ECHO_T}yes" >&6
a848cd7e 11689 else
f321ab7f
VS
11690 echo "$as_me:$LINENO: result: no" >&5
11691echo "${ECHO_T}no" >&6
a848cd7e
SC
11692 fi
11693
11694
077c7880 11695 enablestring=
f321ab7f
VS
11696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11697echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
a848cd7e 11698 no_cache=0
f321ab7f 11699 # Check whether --enable-pnm or --disable-pnm was given.
a848cd7e 11700if test "${enable_pnm+set}" = set; then
f321ab7f
VS
11701 enableval="$enable_pnm"
11702
a848cd7e
SC
11703 if test "$enableval" = yes; then
11704 ac_cv_use_pnm='wxUSE_PNM=yes'
11705 else
11706 ac_cv_use_pnm='wxUSE_PNM=no'
11707 fi
11708
11709else
11710
11711 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11712 if test "x$LINE" != x ; then
11713 eval "DEFAULT_$LINE"
11714 else
11715 no_cache=1
11716 fi
11717
11718 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11719
f321ab7f 11720fi;
a848cd7e
SC
11721
11722 eval "$ac_cv_use_pnm"
11723 if test "$no_cache" != 1; then
11724 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11725 fi
11726
11727 if test "$wxUSE_PNM" = yes; then
f321ab7f
VS
11728 echo "$as_me:$LINENO: result: yes" >&5
11729echo "${ECHO_T}yes" >&6
a848cd7e 11730 else
f321ab7f
VS
11731 echo "$as_me:$LINENO: result: no" >&5
11732echo "${ECHO_T}no" >&6
a848cd7e
SC
11733 fi
11734
11735
077c7880 11736 enablestring=
f321ab7f
VS
11737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11738echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
a848cd7e 11739 no_cache=0
f321ab7f 11740 # Check whether --enable-xpm or --disable-xpm was given.
a848cd7e 11741if test "${enable_xpm+set}" = set; then
f321ab7f
VS
11742 enableval="$enable_xpm"
11743
a848cd7e
SC
11744 if test "$enableval" = yes; then
11745 ac_cv_use_xpm='wxUSE_XPM=yes'
11746 else
11747 ac_cv_use_xpm='wxUSE_XPM=no'
11748 fi
11749
11750else
11751
11752 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11753 if test "x$LINE" != x ; then
11754 eval "DEFAULT_$LINE"
11755 else
11756 no_cache=1
11757 fi
11758
11759 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11760
f321ab7f 11761fi;
a848cd7e
SC
11762
11763 eval "$ac_cv_use_xpm"
11764 if test "$no_cache" != 1; then
11765 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11766 fi
11767
11768 if test "$wxUSE_XPM" = yes; then
f321ab7f
VS
11769 echo "$as_me:$LINENO: result: yes" >&5
11770echo "${ECHO_T}yes" >&6
a848cd7e 11771 else
f321ab7f
VS
11772 echo "$as_me:$LINENO: result: no" >&5
11773echo "${ECHO_T}no" >&6
a848cd7e
SC
11774 fi
11775
11776
077c7880 11777 enablestring=
f321ab7f
VS
11778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11779echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
a848cd7e 11780 no_cache=0
f321ab7f 11781 # Check whether --enable-ico_cur or --disable-ico_cur was given.
a848cd7e 11782if test "${enable_ico_cur+set}" = set; then
f321ab7f
VS
11783 enableval="$enable_ico_cur"
11784
a848cd7e
SC
11785 if test "$enableval" = yes; then
11786 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11787 else
11788 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11789 fi
11790
11791else
11792
11793 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11794 if test "x$LINE" != x ; then
11795 eval "DEFAULT_$LINE"
11796 else
11797 no_cache=1
11798 fi
11799
11800 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11801
f321ab7f 11802fi;
a848cd7e
SC
11803
11804 eval "$ac_cv_use_ico_cur"
11805 if test "$no_cache" != 1; then
11806 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11807 fi
11808
11809 if test "$wxUSE_ICO_CUR" = yes; then
f321ab7f
VS
11810 echo "$as_me:$LINENO: result: yes" >&5
11811echo "${ECHO_T}yes" >&6
a848cd7e 11812 else
f321ab7f
VS
11813 echo "$as_me:$LINENO: result: no" >&5
11814echo "${ECHO_T}no" >&6
a848cd7e
SC
11815 fi
11816
11817
11818fi
11819
11820
11821
f321ab7f 11822# Check whether --with-flavour or --without-flavour was given.
ceec2216 11823if test "${with_flavour+set}" = set; then
f321ab7f
VS
11824 withval="$with_flavour"
11825 WX_FLAVOUR="$withval"
11826fi;
ceec2216
RL
11827
11828
11829
077c7880 11830 enablestring=
f321ab7f
VS
11831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11832echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
a848cd7e 11833 no_cache=0
f321ab7f 11834 # Check whether --enable-official_build or --disable-official_build was given.
a848cd7e 11835if test "${enable_official_build+set}" = set; then
f321ab7f
VS
11836 enableval="$enable_official_build"
11837
a848cd7e
SC
11838 if test "$enableval" = yes; then
11839 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11840 else
11841 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11842 fi
11843
11844else
11845
11846 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11847 if test "x$LINE" != x ; then
11848 eval "DEFAULT_$LINE"
11849 else
11850 no_cache=1
11851 fi
11852
11853 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11854
f321ab7f 11855fi;
a848cd7e
SC
11856
11857 eval "$ac_cv_use_official_build"
11858 if test "$no_cache" != 1; then
11859 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11860 fi
11861
11862 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
f321ab7f
VS
11863 echo "$as_me:$LINENO: result: yes" >&5
11864echo "${ECHO_T}yes" >&6
a848cd7e 11865 else
f321ab7f
VS
11866 echo "$as_me:$LINENO: result: no" >&5
11867echo "${ECHO_T}no" >&6
a848cd7e
SC
11868 fi
11869
f321ab7f 11870# Check whether --enable-vendor or --disable-vendor was given.
a848cd7e 11871if test "${enable_vendor+set}" = set; then
f321ab7f
VS
11872 enableval="$enable_vendor"
11873 VENDOR="$enableval"
11874fi;
a848cd7e
SC
11875if test "x$VENDOR" = "x"; then
11876 VENDOR="custom"
11877fi
11878
a848cd7e
SC
11879
11880
11881
11882 echo "saving argument cache $wx_arg_cache_file"
11883 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11884
11885
11886
f321ab7f
VS
11887echo "$as_me:$LINENO: checking for toolkit" >&5
11888echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
a848cd7e
SC
11889
11890# In Wine, we need to default to MSW, not GTK or MOTIF
11891if test "$wxUSE_WINE" = "yes"; then
11892 DEFAULT_DEFAULT_wxUSE_GTK=0
11893 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11894 DEFAULT_DEFAULT_wxUSE_MSW=1
11895 wxUSE_SHARED=no
e604ac79
MW
11896 CC=${CC:-winegcc}
11897 CXX=${CXX:-wineg++}
a848cd7e
SC
11898fi
11899
f597b41c 11900
a848cd7e
SC
11901if test "$wxUSE_GUI" = "yes"; then
11902
11903 if test "$USE_BEOS" = 1; then
11904 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11905echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11906 { (exit 1); exit 1; }; }
11907 fi
11908
11909 if test "$TOOLKIT_GIVEN" = 1; then
11910 for toolkit in `echo $ALL_TOOLKITS`; do
11911 var=wxUSE_$toolkit
11912 eval "value=\$${var}"
f34ca037
MW
11913 if test "x$value" = "xno"; then
11914 eval "$var=0"
11915 elif test "x$value" != "x"; then
11916 eval "$var=1"
11917 fi
11918
11919 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11920 eval "wx${toolkit}_VERSION=$value"
11921 fi
a848cd7e
SC
11922 done
11923 else
11924 for toolkit in `echo $ALL_TOOLKITS`; do
11925 if test "$has_toolkit_in_cache" != 1; then
11926 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11927 else
11928 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11929
11930 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11931 if test "x$version" != "x"; then
11932 eval "wx${toolkit}_VERSION=$version"
11933 fi
a848cd7e
SC
11934 fi
11935 eval "wxUSE_$toolkit=\$${var}"
11936 done
11937 fi
11938
11939 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11940 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11941 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11942
11943 case "${host}" in
11944 *-pc-os2_emx | *-pc-os2-emx )
11945 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11946 esac
11947
11948 case "$NUM_TOOLKITS" in
11949 1)
11950 ;;
11951 0)
11952 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11953echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11954 { (exit 1); exit 1; }; }
11955 ;;
11956 *)
11957 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11958echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11959 { (exit 1); exit 1; }; }
11960 esac
11961
f34ca037
MW
11962 # to be removed when --disable-gtk2 isn't needed
11963 if test "x$wxUSE_GTK2" = "xyes"; then
11964 wxGTK_VERSION=2
11965 elif test "x$wxUSE_GTK2" = "xno"; then
11966 wxGTK_VERSION=1
11967 fi
11968
a848cd7e
SC
11969 for toolkit in `echo $ALL_TOOLKITS`; do
11970 var=wxUSE_$toolkit
11971 eval "value=\$${var}"
11972 if test "x$value" != x; then
11973 cache_var=CACHE_$toolkit
11974 eval "cache=\$${cache_var}"
11975 if test "$cache" = 1; then
11976 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11977 eval "version=\$wx${toolkit}_VERSION"
11978 if test "x$version" != "x"; then
11979 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11980 fi
a848cd7e
SC
11981 fi
11982 if test "$value" = 1; then
11983 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
f321ab7f
VS
11984 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11985echo "${ECHO_T}$toolkit_echo" >&6
a848cd7e
SC
11986 fi
11987 fi
11988 done
11989else
11990 if test "x$host_alias" != "x"; then
f321ab7f
VS
11991 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11992echo "${ECHO_T}base ($host_alias hosted) only" >&6
a848cd7e 11993 else
f321ab7f
VS
11994 echo "$as_me:$LINENO: result: base only" >&5
11995echo "${ECHO_T}base only" >&6
a848cd7e
SC
11996 fi
11997fi
11998
8bf7f1a9
VZ
11999
12000cat >confcache <<\_ACEOF
12001# This file is a shell script that caches the results of configure
12002# tests run on this system so they can be shared between configure
12003# scripts and configure runs, see configure's option --config-cache.
12004# It is not useful on other systems. If it contains results you don't
12005# want to keep, you may remove or edit it.
12006#
12007# config.status only pays attention to the cache file if you give it
12008# the --recheck option to rerun configure.
12009#
12010# `ac_cv_env_foo' variables (set or unset) will be overridden when
12011# loading this file, other *unset* `ac_cv_foo' will be assigned the
12012# following values.
12013
12014_ACEOF
12015
12016# The following way of writing the cache mishandles newlines in values,
12017# but we know of no workaround that is simple, portable, and efficient.
f321ab7f 12018# So, don't put newlines in cache variables' values.
8bf7f1a9
VZ
12019# Ultrix sh set writes to stderr and can't be redirected directly,
12020# and sets the high bit in the cache file unless we assign to the vars.
f321ab7f 12021{
8bf7f1a9 12022 (set) 2>&1 |
f321ab7f
VS
12023 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12024 *ac_space=\ *)
8bf7f1a9
VZ
12025 # `set' does not quote correctly, so add quotes (double-quote
12026 # substitution turns \\\\ into \\, and sed turns \\ into \).
12027 sed -n \
12028 "s/'/'\\\\''/g;
12029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
f321ab7f 12030 ;;
8bf7f1a9
VZ
12031 *)
12032 # `set' quotes correctly as required by POSIX, so do not add quotes.
f321ab7f
VS
12033 sed -n \
12034 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8bf7f1a9 12035 ;;
f321ab7f
VS
12036 esac;
12037} |
8bf7f1a9
VZ
12038 sed '
12039 t clear
f321ab7f 12040 : clear
8bf7f1a9
VZ
12041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12042 t end
f321ab7f
VS
12043 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12044 : end' >>confcache
12045if diff $cache_file confcache >/dev/null 2>&1; then :; else
12046 if test -w $cache_file; then
12047 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8bf7f1a9
VZ
12048 cat confcache >$cache_file
12049 else
f321ab7f 12050 echo "not updating unwritable cache $cache_file"
8bf7f1a9
VZ
12051 fi
12052fi
12053rm -f confcache
12054
12055CFLAGS=${CFLAGS:=}
12056
12057
12058
12059 ac_ext=c
a848cd7e
SC
12060ac_cpp='$CPP $CPPFLAGS'
12061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12063ac_compiler_gnu=$ac_cv_c_compiler_gnu
12064if test -n "$ac_tool_prefix"; then
12065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12066set dummy ${ac_tool_prefix}gcc; ac_word=$2
f321ab7f
VS
12067echo "$as_me:$LINENO: checking for $ac_word" >&5
12068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
12069if test "${ac_cv_prog_CC+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071else
12072 if test -n "$CC"; then
12073 ac_cv_prog_CC="$CC" # Let the user override the test.
12074else
12075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076for as_dir in $PATH
12077do
12078 IFS=$as_save_IFS
12079 test -z "$as_dir" && as_dir=.
12080 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 12081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
12082 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12084 break 2
12085 fi
12086done
12087done
12088
12089fi
12090fi
12091CC=$ac_cv_prog_CC
12092if test -n "$CC"; then
f321ab7f
VS
12093 echo "$as_me:$LINENO: result: $CC" >&5
12094echo "${ECHO_T}$CC" >&6
a848cd7e 12095else
f321ab7f
VS
12096 echo "$as_me:$LINENO: result: no" >&5
12097echo "${ECHO_T}no" >&6
a848cd7e
SC
12098fi
12099
12100fi
12101if test -z "$ac_cv_prog_CC"; then
12102 ac_ct_CC=$CC
12103 # Extract the first word of "gcc", so it can be a program name with args.
12104set dummy gcc; ac_word=$2
f321ab7f
VS
12105echo "$as_me:$LINENO: checking for $ac_word" >&5
12106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
12107if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109else
12110 if test -n "$ac_ct_CC"; then
12111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12112else
12113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114for as_dir in $PATH
12115do
12116 IFS=$as_save_IFS
12117 test -z "$as_dir" && as_dir=.
12118 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 12119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
12120 ac_cv_prog_ac_ct_CC="gcc"
12121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12122 break 2
12123 fi
12124done
12125done
12126
12127fi
12128fi
12129ac_ct_CC=$ac_cv_prog_ac_ct_CC
12130if test -n "$ac_ct_CC"; then
f321ab7f
VS
12131 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12132echo "${ECHO_T}$ac_ct_CC" >&6
a848cd7e 12133else
f321ab7f
VS
12134 echo "$as_me:$LINENO: result: no" >&5
12135echo "${ECHO_T}no" >&6
a848cd7e
SC
12136fi
12137
f321ab7f 12138 CC=$ac_ct_CC
a848cd7e
SC
12139else
12140 CC="$ac_cv_prog_CC"
12141fi
12142
12143if test -z "$CC"; then
f321ab7f
VS
12144 if test -n "$ac_tool_prefix"; then
12145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
a848cd7e 12146set dummy ${ac_tool_prefix}cc; ac_word=$2
f321ab7f
VS
12147echo "$as_me:$LINENO: checking for $ac_word" >&5
12148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
12149if test "${ac_cv_prog_CC+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151else
12152 if test -n "$CC"; then
12153 ac_cv_prog_CC="$CC" # Let the user override the test.
12154else
12155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156for as_dir in $PATH
12157do
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 12161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
12162 ac_cv_prog_CC="${ac_tool_prefix}cc"
12163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12165 fi
12166done
12167done
12168
12169fi
12170fi
12171CC=$ac_cv_prog_CC
12172if test -n "$CC"; then
f321ab7f
VS
12173 echo "$as_me:$LINENO: result: $CC" >&5
12174echo "${ECHO_T}$CC" >&6
a848cd7e 12175else
f321ab7f
VS
12176 echo "$as_me:$LINENO: result: no" >&5
12177echo "${ECHO_T}no" >&6
a848cd7e
SC
12178fi
12179
f321ab7f
VS
12180fi
12181if test -z "$ac_cv_prog_CC"; then
12182 ac_ct_CC=$CC
12183 # Extract the first word of "cc", so it can be a program name with args.
12184set dummy cc; ac_word=$2
12185echo "$as_me:$LINENO: checking for $ac_word" >&5
12186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
12190 if test -n "$ac_ct_CC"; then
12191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12192else
12193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194for as_dir in $PATH
12195do
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12200 ac_cv_prog_ac_ct_CC="cc"
12201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 break 2
3f7f284d 12203 fi
f321ab7f
VS
12204done
12205done
12206
12207fi
12208fi
12209ac_ct_CC=$ac_cv_prog_ac_ct_CC
12210if test -n "$ac_ct_CC"; then
12211 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12212echo "${ECHO_T}$ac_ct_CC" >&6
12213else
12214 echo "$as_me:$LINENO: result: no" >&5
12215echo "${ECHO_T}no" >&6
12216fi
12217
12218 CC=$ac_ct_CC
12219else
12220 CC="$ac_cv_prog_CC"
12221fi
12222
a848cd7e
SC
12223fi
12224if test -z "$CC"; then
12225 # Extract the first word of "cc", so it can be a program name with args.
12226set dummy cc; ac_word=$2
f321ab7f
VS
12227echo "$as_me:$LINENO: checking for $ac_word" >&5
12228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
12229if test "${ac_cv_prog_CC+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231else
12232 if test -n "$CC"; then
12233 ac_cv_prog_CC="$CC" # Let the user override the test.
12234else
12235 ac_prog_rejected=no
12236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237for as_dir in $PATH
12238do
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 12242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
12243 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12244 ac_prog_rejected=yes
12245 continue
12246 fi
12247 ac_cv_prog_CC="cc"
12248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12250 fi
12251done
12252done
12253
12254if test $ac_prog_rejected = yes; then
12255 # We found a bogon in the path, so make sure we never use it.
12256 set dummy $ac_cv_prog_CC
12257 shift
12258 if test $# != 0; then
12259 # We chose a different compiler from the bogus one.
12260 # However, it has the same basename, so the bogon will be chosen
12261 # first if we set CC to just the basename; use the full file name.
12262 shift
12263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12264 fi
12265fi
12266fi
12267fi
12268CC=$ac_cv_prog_CC
12269if test -n "$CC"; then
f321ab7f
VS
12270 echo "$as_me:$LINENO: result: $CC" >&5
12271echo "${ECHO_T}$CC" >&6
a848cd7e 12272else
f321ab7f
VS
12273 echo "$as_me:$LINENO: result: no" >&5
12274echo "${ECHO_T}no" >&6
a848cd7e
SC
12275fi
12276
12277fi
12278if test -z "$CC"; then
12279 if test -n "$ac_tool_prefix"; then
f321ab7f 12280 for ac_prog in cl
a848cd7e
SC
12281 do
12282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12283set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f321ab7f
VS
12284echo "$as_me:$LINENO: checking for $ac_word" >&5
12285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
12286if test "${ac_cv_prog_CC+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12288else
12289 if test -n "$CC"; then
12290 ac_cv_prog_CC="$CC" # Let the user override the test.
12291else
12292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293for as_dir in $PATH
12294do
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
12297 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 12298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
12299 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 break 2
12302 fi
12303done
12304done
12305
12306fi
12307fi
12308CC=$ac_cv_prog_CC
12309if test -n "$CC"; then
f321ab7f
VS
12310 echo "$as_me:$LINENO: result: $CC" >&5
12311echo "${ECHO_T}$CC" >&6
a848cd7e 12312else
f321ab7f
VS
12313 echo "$as_me:$LINENO: result: no" >&5
12314echo "${ECHO_T}no" >&6
a848cd7e
SC
12315fi
12316
12317 test -n "$CC" && break
12318 done
12319fi
12320if test -z "$CC"; then
12321 ac_ct_CC=$CC
f321ab7f 12322 for ac_prog in cl
a848cd7e
SC
12323do
12324 # Extract the first word of "$ac_prog", so it can be a program name with args.
12325set dummy $ac_prog; ac_word=$2
f321ab7f
VS
12326echo "$as_me:$LINENO: checking for $ac_word" >&5
12327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
12328if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330else
12331 if test -n "$ac_ct_CC"; then
12332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12333else
12334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335for as_dir in $PATH
12336do
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 12340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
12341 ac_cv_prog_ac_ct_CC="$ac_prog"
12342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12344 fi
12345done
12346done
12347
12348fi
12349fi
12350ac_ct_CC=$ac_cv_prog_ac_ct_CC
12351if test -n "$ac_ct_CC"; then
f321ab7f
VS
12352 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12353echo "${ECHO_T}$ac_ct_CC" >&6
a848cd7e 12354else
f321ab7f
VS
12355 echo "$as_me:$LINENO: result: no" >&5
12356echo "${ECHO_T}no" >&6
a848cd7e
SC
12357fi
12358
12359 test -n "$ac_ct_CC" && break
12360done
12361
f321ab7f 12362 CC=$ac_ct_CC
a848cd7e
SC
12363fi
12364
12365fi
12366
12367
12368test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12369See \`config.log' for more details." >&5
12370echo "$as_me: error: no acceptable C compiler found in \$PATH
12371See \`config.log' for more details." >&2;}
12372 { (exit 1); exit 1; }; }
12373
12374# Provide some information about the compiler.
f321ab7f
VS
12375echo "$as_me:$LINENO:" \
12376 "checking for C compiler version" >&5
a848cd7e 12377ac_compiler=`set X $ac_compile; echo $2`
f321ab7f
VS
12378{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12379 (eval $ac_compiler --version </dev/null >&5) 2>&5
a848cd7e
SC
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }
f321ab7f
VS
12383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12384 (eval $ac_compiler -v </dev/null >&5) 2>&5
a848cd7e
SC
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }
f321ab7f
VS
12388{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12389 (eval $ac_compiler -V </dev/null >&5) 2>&5
a848cd7e
SC
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }
12393
12394cat >conftest.$ac_ext <<_ACEOF
12395/* confdefs.h. */
12396_ACEOF
12397cat confdefs.h >>conftest.$ac_ext
12398cat >>conftest.$ac_ext <<_ACEOF
12399/* end confdefs.h. */
12400
12401int
12402main ()
12403{
12404
12405 ;
12406 return 0;
12407}
12408_ACEOF
12409ac_clean_files_save=$ac_clean_files
12410ac_clean_files="$ac_clean_files a.out a.exe b.out"
12411# Try to create an executable without -o first, disregard a.out.
12412# It will help us diagnose broken compilers, and finding out an intuition
12413# of exeext.
f321ab7f
VS
12414echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12415echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e 12416ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
f321ab7f
VS
12417if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12418 (eval $ac_link_default) 2>&5
a848cd7e
SC
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; then
f321ab7f
VS
12422 # Find the output, starting from the most likely. This scheme is
12423# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12424# resort.
12425
12426# Be careful to initialize this variable, since it used to be cached.
12427# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12428ac_cv_exeext=
12429# b.out is created by i960 compilers.
12430for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
a848cd7e
SC
12431do
12432 test -f "$ac_file" || continue
12433 case $ac_file in
f321ab7f
VS
12434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12435 ;;
12436 conftest.$ac_ext )
12437 # This is the source file.
ac1cb8d3 12438 ;;
a848cd7e 12439 [ab].out )
ac1cb8d3
VS
12440 # We found the default executable, but exeext='' is most
12441 # certainly right.
12442 break;;
a848cd7e 12443 *.* )
f321ab7f
VS
12444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12445 # FIXME: I believe we export ac_cv_exeext for Libtool,
12446 # but it would be cool to find out if it's true. Does anybody
12447 # maintain Libtool? --akim.
12448 export ac_cv_exeext
ac1cb8d3 12449 break;;
a848cd7e 12450 * )
ac1cb8d3 12451 break;;
a848cd7e
SC
12452 esac
12453done
12454else
12455 echo "$as_me: failed program was:" >&5
12456sed 's/^/| /' conftest.$ac_ext >&5
12457
12458{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12459See \`config.log' for more details." >&5
12460echo "$as_me: error: C compiler cannot create executables
12461See \`config.log' for more details." >&2;}
12462 { (exit 77); exit 77; }; }
12463fi
12464
12465ac_exeext=$ac_cv_exeext
f321ab7f
VS
12466echo "$as_me:$LINENO: result: $ac_file" >&5
12467echo "${ECHO_T}$ac_file" >&6
a848cd7e 12468
f321ab7f 12469# Check the compiler produces executables we can run. If not, either
a848cd7e 12470# the compiler is broken, or we cross compile.
f321ab7f
VS
12471echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12472echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
a848cd7e
SC
12473# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12474# If not cross compiling, check that we can run a simple program.
12475if test "$cross_compiling" != yes; then
12476 if { ac_try='./$ac_file'
f321ab7f
VS
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
a848cd7e
SC
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 cross_compiling=no
12483 else
12484 if test "$cross_compiling" = maybe; then
12485 cross_compiling=yes
12486 else
12487 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12488If you meant to cross compile, use \`--host'.
12489See \`config.log' for more details." >&5
12490echo "$as_me: error: cannot run C compiled programs.
12491If you meant to cross compile, use \`--host'.
12492See \`config.log' for more details." >&2;}
12493 { (exit 1); exit 1; }; }
12494 fi
12495 fi
12496fi
f321ab7f
VS
12497echo "$as_me:$LINENO: result: yes" >&5
12498echo "${ECHO_T}yes" >&6
a848cd7e
SC
12499
12500rm -f a.out a.exe conftest$ac_cv_exeext b.out
12501ac_clean_files=$ac_clean_files_save
f321ab7f 12502# Check the compiler produces executables we can run. If not, either
a848cd7e 12503# the compiler is broken, or we cross compile.
f321ab7f
VS
12504echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12505echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12506echo "$as_me:$LINENO: result: $cross_compiling" >&5
12507echo "${ECHO_T}$cross_compiling" >&6
12508
12509echo "$as_me:$LINENO: checking for suffix of executables" >&5
12510echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512 (eval $ac_link) 2>&5
a848cd7e
SC
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; then
12516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12517# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12518# work properly (i.e., refer to `conftest.exe'), while it won't with
12519# `rm'.
12520for ac_file in conftest.exe conftest conftest.*; do
12521 test -f "$ac_file" || continue
12522 case $ac_file in
f321ab7f 12523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
a848cd7e 12524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
f321ab7f 12525 export ac_cv_exeext
ac1cb8d3 12526 break;;
8bf7f1a9
VZ
12527 * ) break;;
12528 esac
6da4ac91 12529done
6da4ac91 12530else
8bf7f1a9
VZ
12531 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12532See \`config.log' for more details." >&5
12533echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12534See \`config.log' for more details." >&2;}
12535 { (exit 1); exit 1; }; }
6da4ac91
VZ
12536fi
12537
8bf7f1a9 12538rm -f conftest$ac_cv_exeext
f321ab7f
VS
12539echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12540echo "${ECHO_T}$ac_cv_exeext" >&6
8bf7f1a9
VZ
12541
12542rm -f conftest.$ac_ext
12543EXEEXT=$ac_cv_exeext
12544ac_exeext=$EXEEXT
f321ab7f
VS
12545echo "$as_me:$LINENO: checking for suffix of object files" >&5
12546echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
8bf7f1a9 12547if test "${ac_cv_objext+set}" = set; then
6da4ac91
VZ
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549else
8bf7f1a9
VZ
12550 cat >conftest.$ac_ext <<_ACEOF
12551/* confdefs.h. */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h. */
6da4ac91 12556
8bf7f1a9
VZ
12557int
12558main ()
12559{
6da4ac91 12560
8bf7f1a9
VZ
12561 ;
12562 return 0;
12563}
12564_ACEOF
12565rm -f conftest.o conftest.obj
f321ab7f
VS
12566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567 (eval $ac_compile) 2>&5
8bf7f1a9
VZ
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; then
f321ab7f 12571 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
8bf7f1a9 12572 case $ac_file in
f321ab7f 12573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
8bf7f1a9
VZ
12574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12575 break;;
12576 esac
6da4ac91 12577done
8bf7f1a9
VZ
12578else
12579 echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
6da4ac91 12581
8bf7f1a9 12582{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
6da4ac91 12583See \`config.log' for more details." >&5
8bf7f1a9 12584echo "$as_me: error: cannot compute suffix of object files: cannot compile
6da4ac91
VZ
12585See \`config.log' for more details." >&2;}
12586 { (exit 1); exit 1; }; }
8bf7f1a9 12587fi
6da4ac91 12588
8bf7f1a9
VZ
12589rm -f conftest.$ac_cv_objext conftest.$ac_ext
12590fi
f321ab7f
VS
12591echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12592echo "${ECHO_T}$ac_cv_objext" >&6
8bf7f1a9
VZ
12593OBJEXT=$ac_cv_objext
12594ac_objext=$OBJEXT
f321ab7f
VS
12595echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12596echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6da4ac91
VZ
12597if test "${ac_cv_c_compiler_gnu+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599else
12600 cat >conftest.$ac_ext <<_ACEOF
12601/* confdefs.h. */
12602_ACEOF
12603cat confdefs.h >>conftest.$ac_ext
12604cat >>conftest.$ac_ext <<_ACEOF
12605/* end confdefs.h. */
12606
12607int
12608main ()
12609{
12610#ifndef __GNUC__
12611 choke me
12612#endif
12613
12614 ;
12615 return 0;
12616}
12617_ACEOF
12618rm -f conftest.$ac_objext
f321ab7f
VS
12619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>conftest.er1
6da4ac91
VZ
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
f321ab7f
VS
12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
6da4ac91
VZ
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; } &&
12633 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
6da4ac91
VZ
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
12639 ac_compiler_gnu=yes
12640else
12641 echo "$as_me: failed program was:" >&5
12642sed 's/^/| /' conftest.$ac_ext >&5
12643
f321ab7f 12644ac_compiler_gnu=no
6da4ac91 12645fi
f321ab7f 12646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6da4ac91
VZ
12647ac_cv_c_compiler_gnu=$ac_compiler_gnu
12648
12649fi
f321ab7f
VS
12650echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12651echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
6da4ac91
VZ
12652GCC=`test $ac_compiler_gnu = yes && echo yes`
12653ac_test_CFLAGS=${CFLAGS+set}
12654ac_save_CFLAGS=$CFLAGS
4fd169bd 12655CFLAGS="-g"
f321ab7f
VS
12656echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12657echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
6da4ac91
VZ
12658if test "${ac_cv_prog_cc_g+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660else
f321ab7f 12661 cat >conftest.$ac_ext <<_ACEOF
3f7f284d
RD
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
12667
12668int
12669main ()
12670{
12671
12672 ;
12673 return 0;
12674}
12675_ACEOF
12676rm -f conftest.$ac_objext
f321ab7f
VS
12677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12678 (eval $ac_compile) 2>conftest.er1
3f7f284d
RD
12679 ac_status=$?
12680 grep -v '^ *+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } &&
f321ab7f
VS
12685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
3f7f284d
RD
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } &&
12691 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
3f7f284d
RD
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12697 ac_cv_prog_cc_g=yes
12698else
12699 echo "$as_me: failed program was:" >&5
12700sed 's/^/| /' conftest.$ac_ext >&5
12701
f321ab7f 12702ac_cv_prog_cc_g=no
6da4ac91 12703fi
f321ab7f 12704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6da4ac91 12705fi
f321ab7f
VS
12706echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12707echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
6da4ac91
VZ
12708if test "$ac_test_CFLAGS" = set; then
12709 CFLAGS=$ac_save_CFLAGS
12710elif test $ac_cv_prog_cc_g = yes; then
12711 if test "$GCC" = yes; then
12712 CFLAGS="-g -O2"
12713 else
12714 CFLAGS="-g"
12715 fi
12716else
12717 if test "$GCC" = yes; then
12718 CFLAGS="-O2"
12719 else
12720 CFLAGS=
12721 fi
12722fi
f321ab7f
VS
12723echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12724echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12725if test "${ac_cv_prog_cc_stdc+set}" = set; then
6da4ac91
VZ
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727else
f321ab7f 12728 ac_cv_prog_cc_stdc=no
6da4ac91
VZ
12729ac_save_CC=$CC
12730cat >conftest.$ac_ext <<_ACEOF
12731/* confdefs.h. */
12732_ACEOF
12733cat confdefs.h >>conftest.$ac_ext
12734cat >>conftest.$ac_ext <<_ACEOF
12735/* end confdefs.h. */
12736#include <stdarg.h>
12737#include <stdio.h>
12738#include <sys/types.h>
12739#include <sys/stat.h>
12740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12741struct buf { int x; };
12742FILE * (*rcsopen) (struct buf *, struct stat *, int);
12743static char *e (p, i)
12744 char **p;
12745 int i;
12746{
12747 return p[i];
12748}
12749static char *f (char * (*g) (char **, int), char **p, ...)
12750{
12751 char *s;
12752 va_list v;
12753 va_start (v,p);
12754 s = g (p, va_arg (v,int));
12755 va_end (v);
12756 return s;
12757}
12758
12759/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12760 function prototypes and stuff, but not '\xHH' hex character constants.
12761 These don't provoke an error unfortunately, instead are silently treated
f321ab7f 12762 as 'x'. The following induces an error, until -std1 is added to get
6da4ac91
VZ
12763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12764 array size at least. It's necessary to write '\x00'==0 to get something
f321ab7f 12765 that's true only with -std1. */
6da4ac91
VZ
12766int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12767
12768int test (int i, double x);
12769struct s1 {int (*f) (int a);};
12770struct s2 {int (*f) (double a);};
12771int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12772int argc;
12773char **argv;
12774int
12775main ()
12776{
12777return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12778 ;
12779 return 0;
12780}
12781_ACEOF
f321ab7f
VS
12782# Don't try gcc -ansi; that turns off useful extensions and
12783# breaks some systems' header files.
12784# AIX -qlanglvl=ansi
12785# Ultrix and OSF/1 -std1
12786# HP-UX 10.20 and later -Ae
12787# HP-UX older versions -Aa -D_HPUX_SOURCE
12788# SVR4 -Xc -D__EXTENSIONS__
12789for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6da4ac91
VZ
12790do
12791 CC="$ac_save_CC $ac_arg"
12792 rm -f conftest.$ac_objext
f321ab7f
VS
12793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12794 (eval $ac_compile) 2>conftest.er1
6da4ac91
VZ
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
f321ab7f
VS
12801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
6da4ac91
VZ
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; } &&
12807 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
6da4ac91
VZ
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
f321ab7f
VS
12813 ac_cv_prog_cc_stdc=$ac_arg
12814break
6da4ac91
VZ
12815else
12816 echo "$as_me: failed program was:" >&5
12817sed 's/^/| /' conftest.$ac_ext >&5
12818
12819fi
f321ab7f 12820rm -f conftest.err conftest.$ac_objext
6da4ac91 12821done
f321ab7f 12822rm -f conftest.$ac_ext conftest.$ac_objext
6da4ac91
VZ
12823CC=$ac_save_CC
12824
12825fi
f321ab7f
VS
12826
12827case "x$ac_cv_prog_cc_stdc" in
12828 x|xno)
12829 echo "$as_me:$LINENO: result: none needed" >&5
12830echo "${ECHO_T}none needed" >&6 ;;
6da4ac91 12831 *)
f321ab7f
VS
12832 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12833echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12834 CC="$CC $ac_cv_prog_cc_stdc" ;;
6da4ac91
VZ
12835esac
12836
f321ab7f
VS
12837# Some people use a C++ compiler to compile C. Since we use `exit',
12838# in C++ we need to declare it. In case someone uses the same compiler
12839# for both compiling C and C++ we need to have the C++ compiler decide
12840# the declaration of exit, since it's the most demanding environment.
12841cat >conftest.$ac_ext <<_ACEOF
12842#ifndef __cplusplus
12843 choke me
12844#endif
12845_ACEOF
12846rm -f conftest.$ac_objext
12847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12848 (eval $ac_compile) 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; } &&
12861 { ac_try='test -s conftest.$ac_objext'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 for ac_declaration in \
12868 '' \
12869 'extern "C" void std::exit (int) throw (); using std::exit;' \
12870 'extern "C" void std::exit (int); using std::exit;' \
12871 'extern "C" void exit (int) throw ();' \
12872 'extern "C" void exit (int);' \
12873 'void exit (int);'
12874do
12875 cat >conftest.$ac_ext <<_ACEOF
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881$ac_declaration
12882#include <stdlib.h>
12883int
12884main ()
12885{
12886exit (42);
12887 ;
12888 return 0;
12889}
12890_ACEOF
12891rm -f conftest.$ac_objext
12892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893 (eval $ac_compile) 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest.$ac_objext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 :
12913else
12914 echo "$as_me: failed program was:" >&5
12915sed 's/^/| /' conftest.$ac_ext >&5
6da4ac91 12916
f321ab7f
VS
12917continue
12918fi
12919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12920 cat >conftest.$ac_ext <<_ACEOF
12921/* confdefs.h. */
12922_ACEOF
12923cat confdefs.h >>conftest.$ac_ext
12924cat >>conftest.$ac_ext <<_ACEOF
12925/* end confdefs.h. */
12926$ac_declaration
12927int
12928main ()
12929{
12930exit (42);
12931 ;
12932 return 0;
12933}
12934_ACEOF
12935rm -f conftest.$ac_objext
12936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937 (eval $ac_compile) 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; } &&
12950 { ac_try='test -s conftest.$ac_objext'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; }; then
12956 break
12957else
12958 echo "$as_me: failed program was:" >&5
12959sed 's/^/| /' conftest.$ac_ext >&5
12960
12961fi
12962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12963done
12964rm -f conftest*
12965if test -n "$ac_declaration"; then
12966 echo '#ifdef __cplusplus' >>confdefs.h
12967 echo $ac_declaration >>confdefs.h
12968 echo '#endif' >>confdefs.h
12969fi
12970
12971else
12972 echo "$as_me: failed program was:" >&5
12973sed 's/^/| /' conftest.$ac_ext >&5
12974
12975fi
12976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6da4ac91
VZ
12977ac_ext=c
12978ac_cpp='$CPP $CPPFLAGS'
12979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12981ac_compiler_gnu=$ac_cv_c_compiler_gnu
12982
12983
ab0ad5f1
VZ
12984
12985 ac_ext=c
12986ac_cpp='$CPP $CPPFLAGS'
12987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12989ac_compiler_gnu=$ac_cv_c_compiler_gnu
12990
f321ab7f
VS
12991 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12992echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
ab0ad5f1
VZ
12993if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12995else
12996 cat >conftest.$ac_ext <<_ACEOF
12997/* confdefs.h. */
12998_ACEOF
12999cat confdefs.h >>conftest.$ac_ext
13000cat >>conftest.$ac_ext <<_ACEOF
13001/* end confdefs.h. */
13002
13003int
13004main ()
13005{
13006
13007 #ifndef __INTEL_COMPILER
13008 choke me
13009 #endif
13010
13011 ;
13012 return 0;
13013}
13014_ACEOF
13015rm -f conftest.$ac_objext
f321ab7f
VS
13016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13017 (eval $ac_compile) 2>conftest.er1
ab0ad5f1
VZ
13018 ac_status=$?
13019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
f321ab7f
VS
13024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
ab0ad5f1
VZ
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } &&
13030 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
ab0ad5f1
VZ
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 bakefile_cv_c_compiler___INTEL_COMPILER=yes
13037else
13038 echo "$as_me: failed program was:" >&5
13039sed 's/^/| /' conftest.$ac_ext >&5
13040
f321ab7f 13041bakefile_cv_c_compiler___INTEL_COMPILER=no
ab0ad5f1
VZ
13042
13043fi
f321ab7f 13044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ab0ad5f1
VZ
13045
13046
13047fi
f321ab7f
VS
13048echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
13049echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
323d1f29
MW
13050 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
13051 :; INTELCC=yes
13052 else
13053 :;
13054 fi
ab0ad5f1
VZ
13055 ac_ext=c
13056ac_cpp='$CPP $CPPFLAGS'
13057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13059ac_compiler_gnu=$ac_cv_c_compiler_gnu
13060
ab0ad5f1
VZ
13061
13062
13063 if test "x$GCC" != "xyes"; then
3006edc0 13064 if test "xCC" = "xC"; then
f321ab7f
VS
13065 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
13066echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13067if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13069else
13070 cat >conftest.$ac_ext <<_ACEOF
13071/* confdefs.h. */
13072_ACEOF
13073cat confdefs.h >>conftest.$ac_ext
13074cat >>conftest.$ac_ext <<_ACEOF
13075/* end confdefs.h. */
13076
13077int
13078main ()
13079{
13080
13081 ;
13082 return 0;
13083}
13084_ACEOF
13085rm -f conftest.$ac_objext conftest.$ac_ext.o
13086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13087 (eval $ac_compile) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; then
13091 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13092 case $ac_file in
13093 conftest.$ac_ext.o)
0093c2fc 13094 bakefile_cv_c_exto="-ext o"
480ccd21
DE
13095 ;;
13096 *)
13097 ;;
13098 esac
13099done
13100else
13101 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13102See \`config.log' for more details." >&5
13103echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13104See \`config.log' for more details." >&2;}
13105 { (exit 1); exit 1; }; }
13106
13107fi
13108
13109rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13110
13111fi
f321ab7f
VS
13112echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13113echo "${ECHO_T}$bakefile_cv_c_exto" >&6
0093c2fc 13114if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 13115 if test "c" = "c"; then
0093c2fc 13116 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
13117 fi
13118 if test "c" = "cxx"; then
0093c2fc 13119 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
13120 fi
13121fi
13122
0093c2fc 13123 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13124 unset ac_cv_prog_cc_g
13125 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 13126ac_save_CFLAGS=$CFLAGS
4fd169bd 13127CFLAGS="-g"
f321ab7f
VS
13128echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13129echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
480ccd21
DE
13130if test "${ac_cv_prog_cc_g+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13132else
f321ab7f 13133 cat >conftest.$ac_ext <<_ACEOF
3f7f284d
RD
13134/* confdefs.h. */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h. */
13139
13140int
13141main ()
13142{
13143
13144 ;
13145 return 0;
13146}
13147_ACEOF
13148rm -f conftest.$ac_objext
f321ab7f
VS
13149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>conftest.er1
3f7f284d
RD
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
f321ab7f
VS
13157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
3f7f284d
RD
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; } &&
13163 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
480ccd21
DE
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; }; then
13169 ac_cv_prog_cc_g=yes
13170else
13171 echo "$as_me: failed program was:" >&5
13172sed 's/^/| /' conftest.$ac_ext >&5
13173
f321ab7f 13174ac_cv_prog_cc_g=no
480ccd21 13175fi
f321ab7f 13176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
480ccd21 13177fi
f321ab7f
VS
13178echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13179echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
480ccd21
DE
13180if test "$ac_test_CFLAGS" = set; then
13181 CFLAGS=$ac_save_CFLAGS
13182elif test $ac_cv_prog_cc_g = yes; then
13183 if test "$GCC" = yes; then
13184 CFLAGS="-g -O2"
13185 else
13186 CFLAGS="-g"
13187 fi
13188else
13189 if test "$GCC" = yes; then
13190 CFLAGS="-O2"
13191 else
13192 CFLAGS=
13193 fi
13194fi
3006edc0 13195 fi
ab0ad5f1 13196 fi
3006edc0
VZ
13197
13198 case `uname -s` in
13199 AIX*)
13200 ac_ext=c
13201ac_cpp='$CPP $CPPFLAGS'
13202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13204ac_compiler_gnu=$ac_cv_c_compiler_gnu
13205
f321ab7f
VS
13206echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13207echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13208if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13210else
13211 cat >conftest.$ac_ext <<_ACEOF
13212/* confdefs.h. */
13213_ACEOF
13214cat confdefs.h >>conftest.$ac_ext
13215cat >>conftest.$ac_ext <<_ACEOF
13216/* end confdefs.h. */
13217
13218int
13219main ()
13220{
13221#ifndef __xlC__
13222 choke me
13223#endif
13224
13225 ;
13226 return 0;
13227}
13228_ACEOF
13229rm -f conftest.$ac_objext
f321ab7f
VS
13230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13231 (eval $ac_compile) 2>conftest.er1
3006edc0
VZ
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
f321ab7f
VS
13238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
3006edc0
VZ
13241 ac_status=$?
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
3006edc0
VZ
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
0093c2fc 13250 bakefile_compiler_xlc=yes
3006edc0
VZ
13251else
13252 echo "$as_me: failed program was:" >&5
13253sed 's/^/| /' conftest.$ac_ext >&5
13254
f321ab7f 13255bakefile_compiler_xlc=no
3006edc0 13256fi
f321ab7f
VS
13257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13258 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
13259
13260fi
13261echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13262echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
13263
13264XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
13265ac_ext=c
13266ac_cpp='$CPP $CPPFLAGS'
13267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13269ac_compiler_gnu=$ac_cv_c_compiler_gnu
13270
13271
13272 ;;
13273
13274 Darwin)
13275 ac_ext=c
13276ac_cpp='$CPP $CPPFLAGS'
13277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13279ac_compiler_gnu=$ac_cv_c_compiler_gnu
13280
13281echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13282echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13283if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13285else
13286 cat >conftest.$ac_ext <<_ACEOF
13287/* confdefs.h. */
13288_ACEOF
13289cat confdefs.h >>conftest.$ac_ext
13290cat >>conftest.$ac_ext <<_ACEOF
13291/* end confdefs.h. */
95986553 13292
f321ab7f
VS
13293int
13294main ()
13295{
13296#ifndef __MWERKS__
13297 choke me
13298#endif
13299
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304rm -f conftest.$ac_objext
13305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest.$ac_objext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 bakefile_compiler_mwerks=yes
13326else
13327 echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330bakefile_compiler_mwerks=no
13331fi
13332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13333 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13334
13335fi
13336echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13337echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13338
13339MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
13340ac_ext=c
13341ac_cpp='$CPP $CPPFLAGS'
13342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13344ac_compiler_gnu=$ac_cv_c_compiler_gnu
13345
13346
13347 ac_ext=c
13348ac_cpp='$CPP $CPPFLAGS'
13349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13351ac_compiler_gnu=$ac_cv_c_compiler_gnu
13352
13353echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13354echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
13355if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13357else
13358 cat >conftest.$ac_ext <<_ACEOF
13359/* confdefs.h. */
13360_ACEOF
13361cat confdefs.h >>conftest.$ac_ext
13362cat >>conftest.$ac_ext <<_ACEOF
13363/* end confdefs.h. */
13364
13365int
13366main ()
13367{
13368#ifndef __xlC__
13369 choke me
13370#endif
13371
13372 ;
13373 return 0;
13374}
13375_ACEOF
13376rm -f conftest.$ac_objext
13377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13378 (eval $ac_compile) 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest.$ac_objext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 bakefile_compiler_xlc=yes
13398else
13399 echo "$as_me: failed program was:" >&5
13400sed 's/^/| /' conftest.$ac_ext >&5
13401
13402bakefile_compiler_xlc=no
13403fi
13404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13405 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13406
13407fi
f321ab7f
VS
13408echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13409echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13410
0093c2fc 13411XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13412ac_ext=c
13413ac_cpp='$CPP $CPPFLAGS'
13414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416ac_compiler_gnu=$ac_cv_c_compiler_gnu
13417
13418
3006edc0
VZ
13419 ;;
13420
13421 IRIX*)
a848cd7e 13422
6dcfc289 13423
0ad5d837
VZ
13424 ac_ext=c
13425ac_cpp='$CPP $CPPFLAGS'
13426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13428ac_compiler_gnu=$ac_cv_c_compiler_gnu
13429
f321ab7f
VS
13430 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13431echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
0ad5d837
VZ
13432if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13434else
13435 cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h. */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
13440/* end confdefs.h. */
13441
13442int
13443main ()
13444{
13445
13446 #ifndef _SGI_COMPILER_VERSION
13447 choke me
13448 #endif
13449
13450 ;
13451 return 0;
13452}
13453_ACEOF
13454rm -f conftest.$ac_objext
f321ab7f
VS
13455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456 (eval $ac_compile) 2>conftest.er1
0ad5d837
VZ
13457 ac_status=$?
13458 grep -v '^ *+' conftest.er1 >conftest.err
13459 rm -f conftest.er1
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
f321ab7f
VS
13463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
0ad5d837
VZ
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
0ad5d837
VZ
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13476else
13477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
f321ab7f 13480bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
0ad5d837
VZ
13481
13482fi
f321ab7f 13483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0ad5d837
VZ
13484
13485
13486fi
f321ab7f
VS
13487echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13488echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
323d1f29
MW
13489 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13490 :; SGICC=yes
13491 else
13492 :;
13493 fi
0ad5d837
VZ
13494 ac_ext=c
13495ac_cpp='$CPP $CPPFLAGS'
13496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13498ac_compiler_gnu=$ac_cv_c_compiler_gnu
13499
0ad5d837
VZ
13500
13501
3006edc0
VZ
13502 ;;
13503
0093c2fc 13504 HP-UX*)
3006edc0
VZ
13505
13506
13507 ac_ext=c
13508ac_cpp='$CPP $CPPFLAGS'
13509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13511ac_compiler_gnu=$ac_cv_c_compiler_gnu
13512
f321ab7f
VS
13513 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13514echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
0093c2fc 13515if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517else
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
13525int
13526main ()
13527{
13528
0093c2fc 13529 #ifndef __HP_cc
3006edc0
VZ
13530 choke me
13531 #endif
13532
13533 ;
13534 return 0;
13535}
13536_ACEOF
13537rm -f conftest.$ac_objext
f321ab7f
VS
13538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13539 (eval $ac_compile) 2>conftest.er1
3006edc0
VZ
13540 ac_status=$?
13541 grep -v '^ *+' conftest.er1 >conftest.err
13542 rm -f conftest.er1
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
f321ab7f
VS
13546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
3006edc0
VZ
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
3006edc0
VZ
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
0093c2fc 13558 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13559else
13560 echo "$as_me: failed program was:" >&5
13561sed 's/^/| /' conftest.$ac_ext >&5
13562
f321ab7f 13563bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13564
13565fi
f321ab7f 13566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006edc0
VZ
13567
13568
13569fi
f321ab7f
VS
13570echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13571echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
323d1f29
MW
13572 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13573 :; HPCC=yes
13574 else
13575 :;
13576 fi
3006edc0
VZ
13577 ac_ext=c
13578ac_cpp='$CPP $CPPFLAGS'
13579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13581ac_compiler_gnu=$ac_cv_c_compiler_gnu
13582
a1aa0349
VZ
13583
13584
13585 ;;
13586
0093c2fc 13587 OSF1)
a1aa0349
VZ
13588
13589
13590 ac_ext=c
13591ac_cpp='$CPP $CPPFLAGS'
13592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13594ac_compiler_gnu=$ac_cv_c_compiler_gnu
13595
f321ab7f
VS
13596 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13597echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
0093c2fc 13598if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13600else
13601 cat >conftest.$ac_ext <<_ACEOF
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607
13608int
13609main ()
13610{
13611
0093c2fc 13612 #ifndef __DECC
a1aa0349
VZ
13613 choke me
13614 #endif
13615
13616 ;
13617 return 0;
13618}
13619_ACEOF
13620rm -f conftest.$ac_objext
f321ab7f
VS
13621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>conftest.er1
a1aa0349
VZ
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
f321ab7f
VS
13629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
a1aa0349
VZ
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; } &&
13635 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
a1aa0349
VZ
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
0093c2fc 13641 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13642else
13643 echo "$as_me: failed program was:" >&5
13644sed 's/^/| /' conftest.$ac_ext >&5
13645
f321ab7f 13646bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13647
13648fi
f321ab7f 13649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a1aa0349
VZ
13650
13651
13652fi
f321ab7f
VS
13653echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13654echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
323d1f29
MW
13655 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13656 :; COMPAQCC=yes
13657 else
13658 :;
13659 fi
a1aa0349
VZ
13660 ac_ext=c
13661ac_cpp='$CPP $CPPFLAGS'
13662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664ac_compiler_gnu=$ac_cv_c_compiler_gnu
13665
0093c2fc
VZ
13666
13667
13668 ;;
13669
13670 SunOS)
13671
13672
13673 ac_ext=c
13674ac_cpp='$CPP $CPPFLAGS'
13675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678
f321ab7f
VS
13679 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13680echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
0093c2fc
VZ
13681if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684 cat >conftest.$ac_ext <<_ACEOF
13685/* confdefs.h. */
13686_ACEOF
13687cat confdefs.h >>conftest.$ac_ext
13688cat >>conftest.$ac_ext <<_ACEOF
13689/* end confdefs.h. */
13690
13691int
13692main ()
13693{
13694
13695 #ifndef __SUNPRO_C
13696 choke me
13697 #endif
13698
13699 ;
13700 return 0;
13701}
13702_ACEOF
13703rm -f conftest.$ac_objext
f321ab7f
VS
13704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705 (eval $ac_compile) 2>conftest.er1
0093c2fc
VZ
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
f321ab7f
VS
13712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
0093c2fc
VZ
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; } &&
13718 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
0093c2fc
VZ
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 bakefile_cv_c_compiler___SUNPRO_C=yes
13725else
13726 echo "$as_me: failed program was:" >&5
13727sed 's/^/| /' conftest.$ac_ext >&5
13728
f321ab7f 13729bakefile_cv_c_compiler___SUNPRO_C=no
0093c2fc
VZ
13730
13731fi
f321ab7f 13732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc
VZ
13733
13734
13735fi
f321ab7f
VS
13736echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13737echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
323d1f29
MW
13738 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13739 :; SUNCC=yes
13740 else
13741 :;
13742 fi
0093c2fc
VZ
13743 ac_ext=c
13744ac_cpp='$CPP $CPPFLAGS'
13745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13747ac_compiler_gnu=$ac_cv_c_compiler_gnu
13748
3006edc0
VZ
13749
13750
13751 ;;
13752 esac
ab0ad5f1 13753 fi
a9e5b1f0
MW
13754
13755
3006edc0 13756
a848cd7e
SC
13757ac_ext=c
13758ac_cpp='$CPP $CPPFLAGS'
13759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761ac_compiler_gnu=$ac_cv_c_compiler_gnu
f321ab7f
VS
13762echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13763echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
a848cd7e
SC
13764# On Suns, sometimes $CPP names a directory.
13765if test -n "$CPP" && test -d "$CPP"; then
13766 CPP=
13767fi
13768if test -z "$CPP"; then
13769 if test "${ac_cv_prog_CPP+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
13772 # Double quotes because CPP needs to be expanded
13773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13774 do
13775 ac_preproc_ok=false
13776for ac_c_preproc_warn_flag in '' yes
13777do
13778 # Use a header file that comes with gcc, so configuring glibc
13779 # with a fresh cross-compiler works.
13780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13781 # <limits.h> exists even on freestanding compilers.
13782 # On the NeXT, cc -E runs the code through the compiler's parser,
13783 # not just through cpp. "Syntax error" is here to catch this case.
13784 cat >conftest.$ac_ext <<_ACEOF
13785/* confdefs.h. */
13786_ACEOF
13787cat confdefs.h >>conftest.$ac_ext
13788cat >>conftest.$ac_ext <<_ACEOF
13789/* end confdefs.h. */
13790#ifdef __STDC__
13791# include <limits.h>
13792#else
13793# include <assert.h>
13794#endif
ac1cb8d3 13795 Syntax error
a848cd7e 13796_ACEOF
f321ab7f
VS
13797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
13799 ac_status=$?
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } >/dev/null; then
13805 if test -s conftest.err; then
13806 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13808 else
13809 ac_cpp_err=
13810 fi
13811else
13812 ac_cpp_err=yes
13813fi
13814if test -z "$ac_cpp_err"; then
13815 :
13816else
13817 echo "$as_me: failed program was:" >&5
13818sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 # Broken: fails on valid input.
13821continue
13822fi
13823rm -f conftest.err conftest.$ac_ext
13824
f321ab7f 13825 # OK, works on sane cases. Now check whether non-existent headers
a848cd7e
SC
13826 # can be detected and how.
13827 cat >conftest.$ac_ext <<_ACEOF
13828/* confdefs.h. */
13829_ACEOF
13830cat confdefs.h >>conftest.$ac_ext
13831cat >>conftest.$ac_ext <<_ACEOF
13832/* end confdefs.h. */
13833#include <ac_nonexistent.h>
13834_ACEOF
f321ab7f
VS
13835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
13837 ac_status=$?
13838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } >/dev/null; then
13843 if test -s conftest.err; then
13844 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13846 else
13847 ac_cpp_err=
13848 fi
13849else
13850 ac_cpp_err=yes
13851fi
13852if test -z "$ac_cpp_err"; then
13853 # Broken: success on invalid input.
13854continue
13855else
13856 echo "$as_me: failed program was:" >&5
13857sed 's/^/| /' conftest.$ac_ext >&5
13858
13859 # Passes both tests.
13860ac_preproc_ok=:
13861break
13862fi
13863rm -f conftest.err conftest.$ac_ext
13864
13865done
13866# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13867rm -f conftest.err conftest.$ac_ext
13868if $ac_preproc_ok; then
13869 break
13870fi
13871
13872 done
13873 ac_cv_prog_CPP=$CPP
13874
13875fi
13876 CPP=$ac_cv_prog_CPP
13877else
13878 ac_cv_prog_CPP=$CPP
13879fi
f321ab7f
VS
13880echo "$as_me:$LINENO: result: $CPP" >&5
13881echo "${ECHO_T}$CPP" >&6
a848cd7e
SC
13882ac_preproc_ok=false
13883for ac_c_preproc_warn_flag in '' yes
13884do
13885 # Use a header file that comes with gcc, so configuring glibc
13886 # with a fresh cross-compiler works.
13887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888 # <limits.h> exists even on freestanding compilers.
13889 # On the NeXT, cc -E runs the code through the compiler's parser,
13890 # not just through cpp. "Syntax error" is here to catch this case.
13891 cat >conftest.$ac_ext <<_ACEOF
13892/* confdefs.h. */
13893_ACEOF
13894cat confdefs.h >>conftest.$ac_ext
13895cat >>conftest.$ac_ext <<_ACEOF
13896/* end confdefs.h. */
13897#ifdef __STDC__
13898# include <limits.h>
13899#else
13900# include <assert.h>
13901#endif
ac1cb8d3 13902 Syntax error
a848cd7e 13903_ACEOF
f321ab7f
VS
13904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } >/dev/null; then
13912 if test -s conftest.err; then
13913 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13915 else
13916 ac_cpp_err=
13917 fi
13918else
13919 ac_cpp_err=yes
13920fi
13921if test -z "$ac_cpp_err"; then
13922 :
13923else
13924 echo "$as_me: failed program was:" >&5
13925sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 # Broken: fails on valid input.
13928continue
13929fi
13930rm -f conftest.err conftest.$ac_ext
13931
f321ab7f 13932 # OK, works on sane cases. Now check whether non-existent headers
a848cd7e
SC
13933 # can be detected and how.
13934 cat >conftest.$ac_ext <<_ACEOF
13935/* confdefs.h. */
13936_ACEOF
13937cat confdefs.h >>conftest.$ac_ext
13938cat >>conftest.$ac_ext <<_ACEOF
13939/* end confdefs.h. */
13940#include <ac_nonexistent.h>
13941_ACEOF
f321ab7f
VS
13942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } >/dev/null; then
13950 if test -s conftest.err; then
13951 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13953 else
13954 ac_cpp_err=
13955 fi
13956else
13957 ac_cpp_err=yes
13958fi
13959if test -z "$ac_cpp_err"; then
13960 # Broken: success on invalid input.
13961continue
13962else
13963 echo "$as_me: failed program was:" >&5
13964sed 's/^/| /' conftest.$ac_ext >&5
13965
13966 # Passes both tests.
13967ac_preproc_ok=:
13968break
13969fi
13970rm -f conftest.err conftest.$ac_ext
13971
13972done
13973# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13974rm -f conftest.err conftest.$ac_ext
13975if $ac_preproc_ok; then
13976 :
13977else
13978 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13979See \`config.log' for more details." >&5
13980echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13981See \`config.log' for more details." >&2;}
13982 { (exit 1); exit 1; }; }
13983fi
13984
13985ac_ext=c
13986ac_cpp='$CPP $CPPFLAGS'
13987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13989ac_compiler_gnu=$ac_cv_c_compiler_gnu
13990
13991
f321ab7f
VS
13992echo "$as_me:$LINENO: checking for egrep" >&5
13993echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13994if test "${ac_cv_prog_egrep+set}" = set; then
3f7f284d
RD
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996else
f321ab7f
VS
13997 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13998 then ac_cv_prog_egrep='grep -E'
13999 else ac_cv_prog_egrep='egrep'
14000 fi
3f7f284d 14001fi
f321ab7f
VS
14002echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
14003echo "${ECHO_T}$ac_cv_prog_egrep" >&6
14004 EGREP=$ac_cv_prog_egrep
a848cd7e
SC
14005
14006
14007if test $ac_cv_c_compiler_gnu = yes; then
f321ab7f
VS
14008 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
14009echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
a848cd7e
SC
14010if test "${ac_cv_prog_gcc_traditional+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012else
14013 ac_pattern="Autoconf.*'x'"
14014 cat >conftest.$ac_ext <<_ACEOF
14015/* confdefs.h. */
14016_ACEOF
14017cat confdefs.h >>conftest.$ac_ext
14018cat >>conftest.$ac_ext <<_ACEOF
14019/* end confdefs.h. */
14020#include <sgtty.h>
14021Autoconf TIOCGETP
14022_ACEOF
14023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14024 $EGREP "$ac_pattern" >/dev/null 2>&1; then
14025 ac_cv_prog_gcc_traditional=yes
14026else
14027 ac_cv_prog_gcc_traditional=no
14028fi
14029rm -f conftest*
14030
14031
14032 if test $ac_cv_prog_gcc_traditional = no; then
14033 cat >conftest.$ac_ext <<_ACEOF
14034/* confdefs.h. */
14035_ACEOF
14036cat confdefs.h >>conftest.$ac_ext
14037cat >>conftest.$ac_ext <<_ACEOF
14038/* end confdefs.h. */
14039#include <termio.h>
14040Autoconf TCGETA
14041_ACEOF
14042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14043 $EGREP "$ac_pattern" >/dev/null 2>&1; then
14044 ac_cv_prog_gcc_traditional=yes
14045fi
14046rm -f conftest*
14047
14048 fi
14049fi
f321ab7f
VS
14050echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14051echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
a848cd7e
SC
14052 if test $ac_cv_prog_gcc_traditional = yes; then
14053 CC="$CC -traditional"
14054 fi
14055fi
14056
14057
a848cd7e 14058CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
14059
14060
3006edc0 14061
f321ab7f 14062 ac_ext=cc
a848cd7e
SC
14063ac_cpp='$CXXCPP $CPPFLAGS'
14064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
f321ab7f
VS
14067if test -n "$ac_tool_prefix"; then
14068 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
a848cd7e
SC
14069 do
14070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14071set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f321ab7f
VS
14072echo "$as_me:$LINENO: checking for $ac_word" >&5
14073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
14074if test "${ac_cv_prog_CXX+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076else
14077 if test -n "$CXX"; then
14078 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14079else
14080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14081for as_dir in $PATH
14082do
14083 IFS=$as_save_IFS
14084 test -z "$as_dir" && as_dir=.
14085 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 14086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
14087 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14089 break 2
14090 fi
14091done
14092done
14093
14094fi
14095fi
14096CXX=$ac_cv_prog_CXX
14097if test -n "$CXX"; then
f321ab7f
VS
14098 echo "$as_me:$LINENO: result: $CXX" >&5
14099echo "${ECHO_T}$CXX" >&6
a848cd7e 14100else
f321ab7f
VS
14101 echo "$as_me:$LINENO: result: no" >&5
14102echo "${ECHO_T}no" >&6
a848cd7e
SC
14103fi
14104
14105 test -n "$CXX" && break
14106 done
14107fi
14108if test -z "$CXX"; then
14109 ac_ct_CXX=$CXX
f321ab7f 14110 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
a848cd7e
SC
14111do
14112 # Extract the first word of "$ac_prog", so it can be a program name with args.
14113set dummy $ac_prog; ac_word=$2
f321ab7f
VS
14114echo "$as_me:$LINENO: checking for $ac_word" >&5
14115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
14116if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118else
14119 if test -n "$ac_ct_CXX"; then
14120 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14121else
14122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14123for as_dir in $PATH
14124do
14125 IFS=$as_save_IFS
14126 test -z "$as_dir" && as_dir=.
14127 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 14128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
14129 ac_cv_prog_ac_ct_CXX="$ac_prog"
14130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14131 break 2
14132 fi
14133done
14134done
14135
14136fi
14137fi
14138ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14139if test -n "$ac_ct_CXX"; then
f321ab7f
VS
14140 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14141echo "${ECHO_T}$ac_ct_CXX" >&6
a848cd7e 14142else
f321ab7f
VS
14143 echo "$as_me:$LINENO: result: no" >&5
14144echo "${ECHO_T}no" >&6
a848cd7e
SC
14145fi
14146
14147 test -n "$ac_ct_CXX" && break
14148done
f321ab7f 14149test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
a848cd7e 14150
f321ab7f 14151 CXX=$ac_ct_CXX
a848cd7e
SC
14152fi
14153
f321ab7f 14154
a848cd7e 14155# Provide some information about the compiler.
f321ab7f
VS
14156echo "$as_me:$LINENO:" \
14157 "checking for C++ compiler version" >&5
a848cd7e 14158ac_compiler=`set X $ac_compile; echo $2`
f321ab7f
VS
14159{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14160 (eval $ac_compiler --version </dev/null >&5) 2>&5
a848cd7e
SC
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }
f321ab7f
VS
14164{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14165 (eval $ac_compiler -v </dev/null >&5) 2>&5
a848cd7e
SC
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }
f321ab7f
VS
14169{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14170 (eval $ac_compiler -V </dev/null >&5) 2>&5
a848cd7e
SC
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }
14174
f321ab7f
VS
14175echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14176echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
a848cd7e
SC
14177if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14179else
14180 cat >conftest.$ac_ext <<_ACEOF
14181/* confdefs.h. */
14182_ACEOF
14183cat confdefs.h >>conftest.$ac_ext
14184cat >>conftest.$ac_ext <<_ACEOF
14185/* end confdefs.h. */
14186
14187int
14188main ()
14189{
14190#ifndef __GNUC__
14191 choke me
14192#endif
14193
14194 ;
14195 return 0;
14196}
14197_ACEOF
14198rm -f conftest.$ac_objext
f321ab7f
VS
14199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14200 (eval $ac_compile) 2>conftest.er1
a848cd7e 14201 ac_status=$?
ac1cb8d3
VS
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
a848cd7e
SC
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
f321ab7f
VS
14207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
ac1cb8d3
VS
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; } &&
14213 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
a848cd7e
SC
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14219 ac_compiler_gnu=yes
14220else
14221 echo "$as_me: failed program was:" >&5
14222sed 's/^/| /' conftest.$ac_ext >&5
14223
f321ab7f 14224ac_compiler_gnu=no
a848cd7e 14225fi
f321ab7f 14226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14227ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14228
14229fi
f321ab7f
VS
14230echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14231echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
a848cd7e
SC
14232GXX=`test $ac_compiler_gnu = yes && echo yes`
14233ac_test_CXXFLAGS=${CXXFLAGS+set}
14234ac_save_CXXFLAGS=$CXXFLAGS
f321ab7f
VS
14235CXXFLAGS="-g"
14236echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14237echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
a848cd7e
SC
14238if test "${ac_cv_prog_cxx_g+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14240else
f321ab7f 14241 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14242/* confdefs.h. */
14243_ACEOF
14244cat confdefs.h >>conftest.$ac_ext
14245cat >>conftest.$ac_ext <<_ACEOF
14246/* end confdefs.h. */
14247
14248int
14249main ()
14250{
14251
14252 ;
14253 return 0;
14254}
14255_ACEOF
14256rm -f conftest.$ac_objext
f321ab7f
VS
14257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14258 (eval $ac_compile) 2>conftest.er1
a848cd7e 14259 ac_status=$?
ac1cb8d3
VS
14260 grep -v '^ *+' conftest.er1 >conftest.err
14261 rm -f conftest.er1
14262 cat conftest.err >&5
a848cd7e
SC
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
f321ab7f
VS
14265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
ac1cb8d3
VS
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; } &&
14271 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
a848cd7e
SC
14274 ac_status=$?
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; }; then
14277 ac_cv_prog_cxx_g=yes
14278else
14279 echo "$as_me: failed program was:" >&5
14280sed 's/^/| /' conftest.$ac_ext >&5
14281
f321ab7f
VS
14282ac_cv_prog_cxx_g=no
14283fi
14284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14285fi
14286echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14287echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14288if test "$ac_test_CXXFLAGS" = set; then
14289 CXXFLAGS=$ac_save_CXXFLAGS
14290elif test $ac_cv_prog_cxx_g = yes; then
14291 if test "$GXX" = yes; then
4fd169bd 14292 CXXFLAGS="-g -O2"
f321ab7f 14293 else
4fd169bd 14294 CXXFLAGS="-g"
f321ab7f
VS
14295 fi
14296else
14297 if test "$GXX" = yes; then
14298 CXXFLAGS="-O2"
14299 else
14300 CXXFLAGS=
14301 fi
14302fi
14303for ac_declaration in \
14304 '' \
14305 'extern "C" void std::exit (int) throw (); using std::exit;' \
14306 'extern "C" void std::exit (int); using std::exit;' \
14307 'extern "C" void exit (int) throw ();' \
14308 'extern "C" void exit (int);' \
14309 'void exit (int);'
14310do
14311 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14312/* confdefs.h. */
14313_ACEOF
14314cat confdefs.h >>conftest.$ac_ext
14315cat >>conftest.$ac_ext <<_ACEOF
14316/* end confdefs.h. */
f321ab7f
VS
14317$ac_declaration
14318#include <stdlib.h>
a848cd7e
SC
14319int
14320main ()
14321{
f321ab7f 14322exit (42);
a848cd7e
SC
14323 ;
14324 return 0;
14325}
14326_ACEOF
14327rm -f conftest.$ac_objext
f321ab7f
VS
14328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329 (eval $ac_compile) 2>conftest.er1
a848cd7e 14330 ac_status=$?
ac1cb8d3
VS
14331 grep -v '^ *+' conftest.er1 >conftest.err
14332 rm -f conftest.er1
14333 cat conftest.err >&5
a848cd7e
SC
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } &&
f321ab7f
VS
14336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
ac1cb8d3
VS
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
a848cd7e
SC
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 :
14349else
14350 echo "$as_me: failed program was:" >&5
14351sed 's/^/| /' conftest.$ac_ext >&5
14352
f321ab7f
VS
14353continue
14354fi
14355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14356 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14357/* confdefs.h. */
14358_ACEOF
14359cat confdefs.h >>conftest.$ac_ext
14360cat >>conftest.$ac_ext <<_ACEOF
14361/* end confdefs.h. */
f321ab7f 14362$ac_declaration
a848cd7e
SC
14363int
14364main ()
14365{
f321ab7f 14366exit (42);
a848cd7e
SC
14367 ;
14368 return 0;
14369}
14370_ACEOF
14371rm -f conftest.$ac_objext
f321ab7f
VS
14372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373 (eval $ac_compile) 2>conftest.er1
a848cd7e 14374 ac_status=$?
ac1cb8d3
VS
14375 grep -v '^ *+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
a848cd7e
SC
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
f321ab7f
VS
14380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
ac1cb8d3
VS
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } &&
14386 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
a848cd7e
SC
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
f321ab7f 14392 break
a848cd7e
SC
14393else
14394 echo "$as_me: failed program was:" >&5
14395sed 's/^/| /' conftest.$ac_ext >&5
14396
3f7f284d 14397fi
f321ab7f
VS
14398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14399done
14400rm -f conftest*
14401if test -n "$ac_declaration"; then
14402 echo '#ifdef __cplusplus' >>confdefs.h
14403 echo $ac_declaration >>confdefs.h
14404 echo '#endif' >>confdefs.h
a848cd7e
SC
14405fi
14406
fd5199d6
VZ
14407ac_ext=c
14408ac_cpp='$CPP $CPPFLAGS'
14409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14411ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e 14412
ab0ad5f1
VZ
14413
14414
f321ab7f 14415 ac_ext=cc
ab0ad5f1
VZ
14416ac_cpp='$CXXCPP $CPPFLAGS'
14417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14420
f321ab7f
VS
14421 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14422echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
ab0ad5f1
VZ
14423if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425else
14426 cat >conftest.$ac_ext <<_ACEOF
14427/* confdefs.h. */
14428_ACEOF
14429cat confdefs.h >>conftest.$ac_ext
14430cat >>conftest.$ac_ext <<_ACEOF
14431/* end confdefs.h. */
14432
14433int
14434main ()
14435{
14436
14437 #ifndef __INTEL_COMPILER
14438 choke me
14439 #endif
14440
14441 ;
14442 return 0;
14443}
14444_ACEOF
14445rm -f conftest.$ac_objext
f321ab7f
VS
14446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>conftest.er1
ab0ad5f1
VZ
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
f321ab7f
VS
14454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
ab0ad5f1
VZ
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; } &&
14460 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
ab0ad5f1
VZ
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14467else
14468 echo "$as_me: failed program was:" >&5
14469sed 's/^/| /' conftest.$ac_ext >&5
14470
f321ab7f 14471bakefile_cv_cxx_compiler___INTEL_COMPILER=no
ab0ad5f1
VZ
14472
14473fi
f321ab7f 14474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ab0ad5f1
VZ
14475
14476
14477fi
f321ab7f
VS
14478echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14479echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
323d1f29
MW
14480 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14481 :; INTELCXX=yes
14482 else
14483 :;
14484 fi
fd5199d6
VZ
14485 ac_ext=c
14486ac_cpp='$CPP $CPPFLAGS'
14487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14489ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab0ad5f1 14490
ab0ad5f1
VZ
14491
14492
3006edc0
VZ
14493 if test "x$GCXX" != "xyes"; then
14494 if test "xCXX" = "xC"; then
f321ab7f
VS
14495 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
14496echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
fd5199d6 14497if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14499else
14500 cat >conftest.$ac_ext <<_ACEOF
14501/* confdefs.h. */
14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
14505/* end confdefs.h. */
14506
14507int
14508main ()
14509{
14510
14511 ;
14512 return 0;
14513}
14514_ACEOF
14515rm -f conftest.$ac_objext conftest.$ac_ext.o
14516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517 (eval $ac_compile) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; then
14521 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14522 case $ac_file in
14523 conftest.$ac_ext.o)
fd5199d6 14524 bakefile_cv_c_exto="-ext o"
480ccd21
DE
14525 ;;
14526 *)
14527 ;;
14528 esac
14529done
14530else
14531 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14532See \`config.log' for more details." >&5
14533echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14534See \`config.log' for more details." >&2;}
14535 { (exit 1); exit 1; }; }
14536
14537fi
14538
14539rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14540
14541fi
f321ab7f
VS
14542echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
14543echo "${ECHO_T}$bakefile_cv_c_exto" >&6
fd5199d6
VZ
14544if test "x$bakefile_cv_c_exto" '!=' "x"; then
14545 if test "c" = "c"; then
14546 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21 14547 fi
fd5199d6
VZ
14548 if test "c" = "cxx"; then
14549 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
14550 fi
14551fi
14552
0093c2fc 14553 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14554 unset ac_cv_prog_cc_g
14555 ac_test_CFLAGS=${CFLAGS+set}
14556ac_save_CFLAGS=$CFLAGS
4fd169bd 14557CFLAGS="-g"
f321ab7f
VS
14558echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3006edc0 14560if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562else
f321ab7f 14563 cat >conftest.$ac_ext <<_ACEOF
3f7f284d
RD
14564/* confdefs.h. */
14565_ACEOF
14566cat confdefs.h >>conftest.$ac_ext
14567cat >>conftest.$ac_ext <<_ACEOF
14568/* end confdefs.h. */
14569
14570int
14571main ()
14572{
14573
14574 ;
14575 return 0;
14576}
14577_ACEOF
14578rm -f conftest.$ac_objext
f321ab7f
VS
14579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14580 (eval $ac_compile) 2>conftest.er1
3f7f284d
RD
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
f321ab7f
VS
14587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589 (eval $ac_try) 2>&5
3f7f284d
RD
14590 ac_status=$?
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; } &&
14593 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595 (eval $ac_try) 2>&5
480ccd21
DE
14596 ac_status=$?
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; }; then
3006edc0 14599 ac_cv_prog_cc_g=yes
480ccd21
DE
14600else
14601 echo "$as_me: failed program was:" >&5
14602sed 's/^/| /' conftest.$ac_ext >&5
14603
f321ab7f 14604ac_cv_prog_cc_g=no
3f7f284d 14605fi
f321ab7f 14606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
480ccd21 14607fi
f321ab7f
VS
14608echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14609echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3006edc0
VZ
14610if test "$ac_test_CFLAGS" = set; then
14611 CFLAGS=$ac_save_CFLAGS
14612elif test $ac_cv_prog_cc_g = yes; then
14613 if test "$GCC" = yes; then
14614 CFLAGS="-g -O2"
480ccd21 14615 else
3006edc0 14616 CFLAGS="-g"
480ccd21
DE
14617 fi
14618else
3006edc0
VZ
14619 if test "$GCC" = yes; then
14620 CFLAGS="-O2"
480ccd21 14621 else
3006edc0 14622 CFLAGS=
480ccd21
DE
14623 fi
14624fi
3006edc0 14625 fi
ab0ad5f1 14626 fi
3006edc0
VZ
14627
14628 case `uname -s` in
14629 AIX*)
f321ab7f 14630 ac_ext=cc
3006edc0
VZ
14631ac_cpp='$CXXCPP $CPPFLAGS'
14632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14635
f321ab7f
VS
14636echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14637echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14638if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14640else
14641 cat >conftest.$ac_ext <<_ACEOF
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
14647
14648int
14649main ()
14650{
14651#ifndef __xlC__
14652 choke me
14653#endif
14654
14655 ;
14656 return 0;
14657}
14658_ACEOF
14659rm -f conftest.$ac_objext
f321ab7f
VS
14660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14661 (eval $ac_compile) 2>conftest.er1
3006edc0
VZ
14662 ac_status=$?
14663 grep -v '^ *+' conftest.er1 >conftest.err
14664 rm -f conftest.er1
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
f321ab7f
VS
14668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
3006edc0
VZ
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; } &&
14674 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
3006edc0
VZ
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
0093c2fc 14680 bakefile_compiler_xlc=yes
3006edc0
VZ
14681else
14682 echo "$as_me: failed program was:" >&5
14683sed 's/^/| /' conftest.$ac_ext >&5
14684
f321ab7f 14685bakefile_compiler_xlc=no
3006edc0 14686fi
f321ab7f 14687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14688 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14689
14690fi
f321ab7f
VS
14691echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14692echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14693
0093c2fc 14694XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
fd5199d6
VZ
14695ac_ext=c
14696ac_cpp='$CPP $CPPFLAGS'
14697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006edc0
VZ
14700
14701
14702 ;;
14703
14704 Darwin)
f321ab7f 14705 ac_ext=cc
95986553
DE
14706ac_cpp='$CXXCPP $CPPFLAGS'
14707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14710
f321ab7f
VS
14711echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14712echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
95986553
DE
14713if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715else
14716 cat >conftest.$ac_ext <<_ACEOF
14717/* confdefs.h. */
14718_ACEOF
14719cat confdefs.h >>conftest.$ac_ext
14720cat >>conftest.$ac_ext <<_ACEOF
14721/* end confdefs.h. */
14722
14723int
14724main ()
14725{
14726#ifndef __MWERKS__
14727 choke me
14728#endif
14729
14730 ;
14731 return 0;
14732}
14733_ACEOF
14734rm -f conftest.$ac_objext
f321ab7f
VS
14735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14736 (eval $ac_compile) 2>conftest.er1
95986553
DE
14737 ac_status=$?
14738 grep -v '^ *+' conftest.er1 >conftest.err
14739 rm -f conftest.er1
14740 cat conftest.err >&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } &&
f321ab7f
VS
14743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
95986553
DE
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; } &&
14749 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
95986553
DE
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 bakefile_compiler_mwerks=yes
14756else
14757 echo "$as_me: failed program was:" >&5
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
f321ab7f 14760bakefile_compiler_mwerks=no
95986553 14761fi
f321ab7f 14762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
95986553
DE
14763 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14764
14765fi
f321ab7f
VS
14766echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14767echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
95986553 14768
0e6fa1d9 14769MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
fd5199d6
VZ
14770ac_ext=c
14771ac_cpp='$CPP $CPPFLAGS'
14772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14774ac_compiler_gnu=$ac_cv_c_compiler_gnu
95986553
DE
14775
14776
f321ab7f 14777 ac_ext=cc
9273ffba
DE
14778ac_cpp='$CXXCPP $CPPFLAGS'
14779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14782
f321ab7f
VS
14783echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14784echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14785if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787else
14788 cat >conftest.$ac_ext <<_ACEOF
14789/* confdefs.h. */
14790_ACEOF
14791cat confdefs.h >>conftest.$ac_ext
14792cat >>conftest.$ac_ext <<_ACEOF
14793/* end confdefs.h. */
14794
14795int
14796main ()
14797{
14798#ifndef __xlC__
14799 choke me
14800#endif
14801
14802 ;
14803 return 0;
14804}
14805_ACEOF
14806rm -f conftest.$ac_objext
f321ab7f
VS
14807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14808 (eval $ac_compile) 2>conftest.er1
9273ffba
DE
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
f321ab7f
VS
14815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
9273ffba
DE
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
9273ffba
DE
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
0093c2fc 14827 bakefile_compiler_xlc=yes
9273ffba
DE
14828else
14829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
14831
f321ab7f 14832bakefile_compiler_xlc=no
9273ffba 14833fi
f321ab7f 14834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14835 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14836
14837fi
f321ab7f
VS
14838echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14839echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14840
0093c2fc 14841XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
fd5199d6
VZ
14842ac_ext=c
14843ac_cpp='$CPP $CPPFLAGS'
14844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14846ac_compiler_gnu=$ac_cv_c_compiler_gnu
9273ffba
DE
14847
14848
3006edc0
VZ
14849 ;;
14850
14851 IRIX*)
95986553 14852
6dcfc289 14853
f321ab7f 14854 ac_ext=cc
0ad5d837
VZ
14855ac_cpp='$CXXCPP $CPPFLAGS'
14856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14859
f321ab7f
VS
14860 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14861echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
0ad5d837
VZ
14862if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14864else
14865 cat >conftest.$ac_ext <<_ACEOF
14866/* confdefs.h. */
14867_ACEOF
14868cat confdefs.h >>conftest.$ac_ext
14869cat >>conftest.$ac_ext <<_ACEOF
14870/* end confdefs.h. */
14871
14872int
14873main ()
14874{
14875
14876 #ifndef _SGI_COMPILER_VERSION
14877 choke me
14878 #endif
14879
14880 ;
14881 return 0;
14882}
14883_ACEOF
14884rm -f conftest.$ac_objext
f321ab7f
VS
14885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14886 (eval $ac_compile) 2>conftest.er1
0ad5d837
VZ
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
f321ab7f
VS
14893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
0ad5d837
VZ
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; } &&
14899 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
0ad5d837
VZ
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14906else
14907 echo "$as_me: failed program was:" >&5
14908sed 's/^/| /' conftest.$ac_ext >&5
14909
f321ab7f 14910bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
0ad5d837
VZ
14911
14912fi
f321ab7f 14913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0ad5d837
VZ
14914
14915
14916fi
f321ab7f
VS
14917echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14918echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
323d1f29
MW
14919 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14920 :; SGICXX=yes
14921 else
14922 :;
14923 fi
fd5199d6
VZ
14924 ac_ext=c
14925ac_cpp='$CPP $CPPFLAGS'
14926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14928ac_compiler_gnu=$ac_cv_c_compiler_gnu
0ad5d837 14929
0ad5d837
VZ
14930
14931
3006edc0
VZ
14932 ;;
14933
0093c2fc 14934 HP-UX*)
3006edc0
VZ
14935
14936
f321ab7f 14937 ac_ext=cc
3006edc0
VZ
14938ac_cpp='$CXXCPP $CPPFLAGS'
14939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14942
f321ab7f
VS
14943 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14944echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
0093c2fc 14945if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947else
14948 cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
14953/* end confdefs.h. */
14954
14955int
14956main ()
14957{
14958
0093c2fc 14959 #ifndef __HP_aCC
3006edc0
VZ
14960 choke me
14961 #endif
14962
14963 ;
14964 return 0;
14965}
14966_ACEOF
14967rm -f conftest.$ac_objext
f321ab7f
VS
14968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14969 (eval $ac_compile) 2>conftest.er1
3006edc0
VZ
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
f321ab7f
VS
14976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
3006edc0
VZ
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
3006edc0
VZ
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
0093c2fc 14988 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14989else
14990 echo "$as_me: failed program was:" >&5
14991sed 's/^/| /' conftest.$ac_ext >&5
14992
f321ab7f 14993bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14994
14995fi
f321ab7f 14996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006edc0
VZ
14997
14998
14999fi
f321ab7f
VS
15000echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
15001echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
323d1f29
MW
15002 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
15003 :; HPCXX=yes
15004 else
15005 :;
15006 fi
fd5199d6
VZ
15007 ac_ext=c
15008ac_cpp='$CPP $CPPFLAGS'
15009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15011ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006edc0 15012
a1aa0349
VZ
15013
15014
15015 ;;
15016
0093c2fc 15017 OSF1)
a1aa0349
VZ
15018
15019
f321ab7f 15020 ac_ext=cc
a1aa0349
VZ
15021ac_cpp='$CXXCPP $CPPFLAGS'
15022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15025
f321ab7f
VS
15026 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
15027echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
0093c2fc 15028if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else
15031 cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037
15038int
15039main ()
15040{
15041
0093c2fc 15042 #ifndef __DECCXX
a1aa0349
VZ
15043 choke me
15044 #endif
15045
15046 ;
15047 return 0;
15048}
15049_ACEOF
15050rm -f conftest.$ac_objext
f321ab7f
VS
15051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15052 (eval $ac_compile) 2>conftest.er1
a1aa0349
VZ
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
f321ab7f
VS
15059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
a1aa0349
VZ
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; } &&
15065 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
a1aa0349
VZ
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
0093c2fc 15071 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
15072else
15073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
f321ab7f 15076bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
15077
15078fi
f321ab7f 15079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a1aa0349
VZ
15080
15081
15082fi
f321ab7f
VS
15083echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
15084echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
323d1f29
MW
15085 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
15086 :; COMPAQCXX=yes
15087 else
15088 :;
15089 fi
fd5199d6
VZ
15090 ac_ext=c
15091ac_cpp='$CPP $CPPFLAGS'
15092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15094ac_compiler_gnu=$ac_cv_c_compiler_gnu
a1aa0349 15095
0093c2fc
VZ
15096
15097
15098 ;;
15099
15100 SunOS)
15101
15102
f321ab7f 15103 ac_ext=cc
0093c2fc
VZ
15104ac_cpp='$CXXCPP $CPPFLAGS'
15105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15108
f321ab7f
VS
15109 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
15110echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
0093c2fc
VZ
15111if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113else
15114 cat >conftest.$ac_ext <<_ACEOF
15115/* confdefs.h. */
15116_ACEOF
15117cat confdefs.h >>conftest.$ac_ext
15118cat >>conftest.$ac_ext <<_ACEOF
15119/* end confdefs.h. */
15120
15121int
15122main ()
15123{
15124
15125 #ifndef __SUNPRO_CC
15126 choke me
15127 #endif
15128
15129 ;
15130 return 0;
15131}
15132_ACEOF
15133rm -f conftest.$ac_objext
f321ab7f
VS
15134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15135 (eval $ac_compile) 2>conftest.er1
0093c2fc
VZ
15136 ac_status=$?
15137 grep -v '^ *+' conftest.er1 >conftest.err
15138 rm -f conftest.er1
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } &&
f321ab7f
VS
15142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
0093c2fc
VZ
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
0093c2fc
VZ
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
15155else
15156 echo "$as_me: failed program was:" >&5
15157sed 's/^/| /' conftest.$ac_ext >&5
15158
f321ab7f 15159bakefile_cv_cxx_compiler___SUNPRO_CC=no
0093c2fc
VZ
15160
15161fi
f321ab7f 15162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc
VZ
15163
15164
15165fi
f321ab7f
VS
15166echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15167echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
323d1f29
MW
15168 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
15169 :; SUNCXX=yes
15170 else
15171 :;
15172 fi
fd5199d6
VZ
15173 ac_ext=c
15174ac_cpp='$CPP $CPPFLAGS'
15175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15177ac_compiler_gnu=$ac_cv_c_compiler_gnu
0093c2fc 15178
a9e5b1f0
MW
15179
15180
3006edc0
VZ
15181 ;;
15182 esac
15183 fi
15184
15185
15186
a848cd7e
SC
15187if test -n "$ac_tool_prefix"; then
15188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15189set dummy ${ac_tool_prefix}ranlib; ac_word=$2
f321ab7f
VS
15190echo "$as_me:$LINENO: checking for $ac_word" >&5
15191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
15192if test "${ac_cv_prog_RANLIB+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15194else
15195 if test -n "$RANLIB"; then
15196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15197else
15198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199for as_dir in $PATH
15200do
15201 IFS=$as_save_IFS
15202 test -z "$as_dir" && as_dir=.
15203 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
15205 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15207 break 2
15208 fi
15209done
15210done
15211
15212fi
15213fi
15214RANLIB=$ac_cv_prog_RANLIB
15215if test -n "$RANLIB"; then
f321ab7f
VS
15216 echo "$as_me:$LINENO: result: $RANLIB" >&5
15217echo "${ECHO_T}$RANLIB" >&6
a848cd7e 15218else
f321ab7f
VS
15219 echo "$as_me:$LINENO: result: no" >&5
15220echo "${ECHO_T}no" >&6
a848cd7e
SC
15221fi
15222
15223fi
15224if test -z "$ac_cv_prog_RANLIB"; then
15225 ac_ct_RANLIB=$RANLIB
15226 # Extract the first word of "ranlib", so it can be a program name with args.
15227set dummy ranlib; ac_word=$2
f321ab7f
VS
15228echo "$as_me:$LINENO: checking for $ac_word" >&5
15229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
15230if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15232else
15233 if test -n "$ac_ct_RANLIB"; then
15234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15235else
15236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15237for as_dir in $PATH
15238do
15239 IFS=$as_save_IFS
15240 test -z "$as_dir" && as_dir=.
15241 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
15243 ac_cv_prog_ac_ct_RANLIB="ranlib"
15244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15245 break 2
15246 fi
15247done
15248done
15249
f321ab7f 15250 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
a848cd7e
SC
15251fi
15252fi
15253ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15254if test -n "$ac_ct_RANLIB"; then
f321ab7f
VS
15255 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15256echo "${ECHO_T}$ac_ct_RANLIB" >&6
a848cd7e 15257else
f321ab7f
VS
15258 echo "$as_me:$LINENO: result: no" >&5
15259echo "${ECHO_T}no" >&6
a848cd7e
SC
15260fi
15261
f321ab7f 15262 RANLIB=$ac_ct_RANLIB
a848cd7e
SC
15263else
15264 RANLIB="$ac_cv_prog_RANLIB"
15265fi
15266
15267
d083d201
MW
15268if test "x$SUNCXX" != xyes; then
15269 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15271set dummy ${ac_tool_prefix}ar; ac_word=$2
f321ab7f
VS
15272echo "$as_me:$LINENO: checking for $ac_word" >&5
15273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
15274if test "${ac_cv_prog_AR+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276else
15277 if test -n "$AR"; then
15278 ac_cv_prog_AR="$AR" # Let the user override the test.
15279else
15280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281for as_dir in $PATH
15282do
15283 IFS=$as_save_IFS
15284 test -z "$as_dir" && as_dir=.
15285 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15287 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15289 break 2
15290 fi
15291done
15292done
15293
15294fi
15295fi
15296AR=$ac_cv_prog_AR
15297if test -n "$AR"; then
f321ab7f
VS
15298 echo "$as_me:$LINENO: result: $AR" >&5
15299echo "${ECHO_T}$AR" >&6
a848cd7e 15300else
f321ab7f
VS
15301 echo "$as_me:$LINENO: result: no" >&5
15302echo "${ECHO_T}no" >&6
a848cd7e
SC
15303fi
15304
8c80d384
DE
15305fi
15306if test -z "$ac_cv_prog_AR"; then
15307 ac_ct_AR=$AR
15308 # Extract the first word of "ar", so it can be a program name with args.
15309set dummy ar; ac_word=$2
f321ab7f
VS
15310echo "$as_me:$LINENO: checking for $ac_word" >&5
15311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8c80d384
DE
15312if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15314else
15315 if test -n "$ac_ct_AR"; then
15316 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15317else
15318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15319for as_dir in $PATH
15320do
15321 IFS=$as_save_IFS
15322 test -z "$as_dir" && as_dir=.
15323 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384
DE
15325 ac_cv_prog_ac_ct_AR="ar"
15326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15327 break 2
15328 fi
15329done
15330done
15331
15332fi
15333fi
15334ac_ct_AR=$ac_cv_prog_ac_ct_AR
15335if test -n "$ac_ct_AR"; then
f321ab7f
VS
15336 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15337echo "${ECHO_T}$ac_ct_AR" >&6
8c80d384 15338else
f321ab7f
VS
15339 echo "$as_me:$LINENO: result: no" >&5
15340echo "${ECHO_T}no" >&6
8c80d384
DE
15341fi
15342
f321ab7f 15343 AR=$ac_ct_AR
8c80d384
DE
15344else
15345 AR="$ac_cv_prog_AR"
15346fi
15347
d083d201
MW
15348 if test "x$AR" = "x" ; then
15349 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
77ffb593 15350echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e 15351 { (exit 1); exit 1; }; }
d083d201 15352 fi
a848cd7e
SC
15353fi
15354
15355# Find a good install program. We prefer a C program (faster),
15356# so one script is as good as another. But avoid the broken or
15357# incompatible versions:
15358# SysV /etc/install, /usr/sbin/install
15359# SunOS /usr/etc/install
15360# IRIX /sbin/install
15361# AIX /bin/install
15362# AmigaOS /C/install, which installs bootblocks on floppy discs
15363# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15364# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15365# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15366# OS/2's system install, which has a completely different semantic
a848cd7e 15367# ./install, which can be erroneously created by make from ./install.sh.
f321ab7f
VS
15368echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15369echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
a848cd7e
SC
15370if test -z "$INSTALL"; then
15371if test "${ac_cv_path_install+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373else
15374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15375for as_dir in $PATH
15376do
15377 IFS=$as_save_IFS
15378 test -z "$as_dir" && as_dir=.
15379 # Account for people who put trailing slashes in PATH elements.
15380case $as_dir/ in
15381 ./ | .// | /cC/* | \
15382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15383 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15384 /usr/ucb/* ) ;;
15385 *)
15386 # OSF1 and SCO ODT 3.0 have their own names for install.
15387 # Don't use installbsd from OSF since it installs stuff as root
15388 # by default.
15389 for ac_prog in ginstall scoinst install; do
15390 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15391 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ac1cb8d3
VS
15392 if test $ac_prog = install &&
15393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15394 # AIX install. It has an incompatible calling convention.
15395 :
15396 elif test $ac_prog = install &&
15397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15398 # program-specific install script used by HP pwplus--don't use.
15399 :
15400 else
15401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15402 break 3
15403 fi
15404 fi
a848cd7e
SC
15405 done
15406 done
15407 ;;
15408esac
15409done
15410
15411
15412fi
15413 if test "${ac_cv_path_install+set}" = set; then
15414 INSTALL=$ac_cv_path_install
15415 else
f321ab7f
VS
15416 # As a last resort, use the slow shell script. We don't cache a
15417 # path for INSTALL within a source directory, because that will
a848cd7e 15418 # break other packages using the cache if that directory is
f321ab7f 15419 # removed, or if the path is relative.
a848cd7e
SC
15420 INSTALL=$ac_install_sh
15421 fi
15422fi
f321ab7f
VS
15423echo "$as_me:$LINENO: result: $INSTALL" >&5
15424echo "${ECHO_T}$INSTALL" >&6
a848cd7e
SC
15425
15426# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15427# It thinks the first close brace ends the variable substitution.
15428test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15429
15430test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15431
15432test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15433
15434
15435case ${INSTALL} in
15436 /* ) # Absolute
15437 ;;
15438 ?:* ) # Drive letter, considered as absolute.
15439 ;;
15440 *)
15441 INSTALL=`pwd`/${INSTALL} ;;
15442esac
15443
a848cd7e
SC
15444
15445case "${host}" in
15446
cfda0ea8 15447 *-*-darwin* )
a848cd7e
SC
15448 INSTALL_PROGRAM="cp -fp"
15449 INSTALL_DATA="cp -fp"
15450 ;;
15451 *)
15452 ;;
15453esac
15454
8c80d384
DE
15455if test -n "$ac_tool_prefix"; then
15456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15457set dummy ${ac_tool_prefix}strip; ac_word=$2
f321ab7f
VS
15458echo "$as_me:$LINENO: checking for $ac_word" >&5
15459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
15460if test "${ac_cv_prog_STRIP+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462else
15463 if test -n "$STRIP"; then
15464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15465else
15466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15467for as_dir in $PATH
15468do
15469 IFS=$as_save_IFS
15470 test -z "$as_dir" && as_dir=.
15471 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15475 break 2
15476 fi
15477done
15478done
15479
a848cd7e
SC
15480fi
15481fi
15482STRIP=$ac_cv_prog_STRIP
15483if test -n "$STRIP"; then
f321ab7f
VS
15484 echo "$as_me:$LINENO: result: $STRIP" >&5
15485echo "${ECHO_T}$STRIP" >&6
a848cd7e 15486else
f321ab7f
VS
15487 echo "$as_me:$LINENO: result: no" >&5
15488echo "${ECHO_T}no" >&6
a848cd7e
SC
15489fi
15490
8c80d384
DE
15491fi
15492if test -z "$ac_cv_prog_STRIP"; then
15493 ac_ct_STRIP=$STRIP
15494 # Extract the first word of "strip", so it can be a program name with args.
15495set dummy strip; ac_word=$2
f321ab7f
VS
15496echo "$as_me:$LINENO: checking for $ac_word" >&5
15497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8c80d384
DE
15498if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500else
15501 if test -n "$ac_ct_STRIP"; then
15502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15503else
15504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15505for as_dir in $PATH
15506do
15507 IFS=$as_save_IFS
15508 test -z "$as_dir" && as_dir=.
15509 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384
DE
15511 ac_cv_prog_ac_ct_STRIP="strip"
15512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15513 break 2
15514 fi
15515done
15516done
15517
f321ab7f 15518 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
8c80d384
DE
15519fi
15520fi
15521ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15522if test -n "$ac_ct_STRIP"; then
f321ab7f
VS
15523 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15524echo "${ECHO_T}$ac_ct_STRIP" >&6
8c80d384 15525else
f321ab7f
VS
15526 echo "$as_me:$LINENO: result: no" >&5
15527echo "${ECHO_T}no" >&6
8c80d384
DE
15528fi
15529
f321ab7f 15530 STRIP=$ac_ct_STRIP
8c80d384
DE
15531else
15532 STRIP="$ac_cv_prog_STRIP"
15533fi
15534
15535
15536if test "$wxUSE_WINE" = "yes"; then
15537 if test -n "$ac_tool_prefix"; then
15538 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15539set dummy ${ac_tool_prefix}wrc; ac_word=$2
f321ab7f
VS
15540echo "$as_me:$LINENO: checking for $ac_word" >&5
15541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15542if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544else
8ced02f6
DE
15545 if test -n "$WINDRES"; then
15546 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15547else
15548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549for as_dir in $PATH
15550do
15551 IFS=$as_save_IFS
15552 test -z "$as_dir" && as_dir=.
15553 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15555 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15557 break 2
15558 fi
15559done
15560done
15561
15562fi
15563fi
8ced02f6
DE
15564WINDRES=$ac_cv_prog_WINDRES
15565if test -n "$WINDRES"; then
f321ab7f
VS
15566 echo "$as_me:$LINENO: result: $WINDRES" >&5
15567echo "${ECHO_T}$WINDRES" >&6
8c80d384 15568else
f321ab7f
VS
15569 echo "$as_me:$LINENO: result: no" >&5
15570echo "${ECHO_T}no" >&6
8c80d384
DE
15571fi
15572
15573fi
8ced02f6
DE
15574if test -z "$ac_cv_prog_WINDRES"; then
15575 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15576 # Extract the first word of "wrc", so it can be a program name with args.
15577set dummy wrc; ac_word=$2
f321ab7f
VS
15578echo "$as_me:$LINENO: checking for $ac_word" >&5
15579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15580if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15582else
8ced02f6
DE
15583 if test -n "$ac_ct_WINDRES"; then
15584 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15585else
15586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15587for as_dir in $PATH
15588do
15589 IFS=$as_save_IFS
15590 test -z "$as_dir" && as_dir=.
15591 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15593 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15595 break 2
15596 fi
15597done
15598done
15599
15600fi
15601fi
8ced02f6
DE
15602ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15603if test -n "$ac_ct_WINDRES"; then
f321ab7f
VS
15604 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15605echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384 15606else
f321ab7f
VS
15607 echo "$as_me:$LINENO: result: no" >&5
15608echo "${ECHO_T}no" >&6
8c80d384
DE
15609fi
15610
f321ab7f 15611 WINDRES=$ac_ct_WINDRES
8c80d384 15612else
8ced02f6 15613 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15614fi
15615
004ee6da 15616 RESCOMP="$WINDRES"
8c80d384
DE
15617else
15618 case "${host}" in
15619 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15620 if test -n "$ac_tool_prefix"; then
15621 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15622set dummy ${ac_tool_prefix}windres; ac_word=$2
f321ab7f
VS
15623echo "$as_me:$LINENO: checking for $ac_word" >&5
15624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
004ee6da
RL
15625if test "${ac_cv_prog_WINDRES+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15627else
15628 if test -n "$WINDRES"; then
15629 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15630else
15631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15632for as_dir in $PATH
15633do
15634 IFS=$as_save_IFS
15635 test -z "$as_dir" && as_dir=.
15636 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
004ee6da
RL
15638 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15640 break 2
15641 fi
15642done
15643done
15644
15645fi
15646fi
15647WINDRES=$ac_cv_prog_WINDRES
15648if test -n "$WINDRES"; then
f321ab7f
VS
15649 echo "$as_me:$LINENO: result: $WINDRES" >&5
15650echo "${ECHO_T}$WINDRES" >&6
004ee6da 15651else
f321ab7f
VS
15652 echo "$as_me:$LINENO: result: no" >&5
15653echo "${ECHO_T}no" >&6
004ee6da
RL
15654fi
15655
15656fi
15657if test -z "$ac_cv_prog_WINDRES"; then
15658 ac_ct_WINDRES=$WINDRES
15659 # Extract the first word of "windres", so it can be a program name with args.
15660set dummy windres; ac_word=$2
f321ab7f
VS
15661echo "$as_me:$LINENO: checking for $ac_word" >&5
15662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
004ee6da
RL
15663if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15665else
15666 if test -n "$ac_ct_WINDRES"; then
15667 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15668else
15669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15670for as_dir in $PATH
15671do
15672 IFS=$as_save_IFS
15673 test -z "$as_dir" && as_dir=.
15674 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
004ee6da
RL
15676 ac_cv_prog_ac_ct_WINDRES="windres"
15677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15678 break 2
15679 fi
15680done
15681done
15682
15683fi
15684fi
15685ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15686if test -n "$ac_ct_WINDRES"; then
f321ab7f
VS
15687 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15688echo "${ECHO_T}$ac_ct_WINDRES" >&6
004ee6da 15689else
f321ab7f
VS
15690 echo "$as_me:$LINENO: result: no" >&5
15691echo "${ECHO_T}no" >&6
004ee6da
RL
15692fi
15693
f321ab7f 15694 WINDRES=$ac_ct_WINDRES
004ee6da
RL
15695else
15696 WINDRES="$ac_cv_prog_WINDRES"
15697fi
15698
15699 RESCOMP="$WINDRES"
15700 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15701 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15702set dummy ${ac_tool_prefix}dlltool; ac_word=$2
f321ab7f
VS
15703echo "$as_me:$LINENO: checking for $ac_word" >&5
15704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8c80d384
DE
15705if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15707else
15708 if test -n "$DLLTOOL"; then
15709 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15710else
15711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15712for as_dir in $PATH
15713do
15714 IFS=$as_save_IFS
15715 test -z "$as_dir" && as_dir=.
15716 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384
DE
15718 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15720 break 2
15721 fi
15722done
15723done
15724
15725fi
15726fi
15727DLLTOOL=$ac_cv_prog_DLLTOOL
15728if test -n "$DLLTOOL"; then
f321ab7f
VS
15729 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15730echo "${ECHO_T}$DLLTOOL" >&6
8c80d384 15731else
f321ab7f
VS
15732 echo "$as_me:$LINENO: result: no" >&5
15733echo "${ECHO_T}no" >&6
8c80d384
DE
15734fi
15735
15736fi
15737if test -z "$ac_cv_prog_DLLTOOL"; then
15738 ac_ct_DLLTOOL=$DLLTOOL
15739 # Extract the first word of "dlltool", so it can be a program name with args.
15740set dummy dlltool; ac_word=$2
f321ab7f
VS
15741echo "$as_me:$LINENO: checking for $ac_word" >&5
15742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8c80d384
DE
15743if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745else
15746 if test -n "$ac_ct_DLLTOOL"; then
15747 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15748else
15749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15750for as_dir in $PATH
15751do
15752 IFS=$as_save_IFS
15753 test -z "$as_dir" && as_dir=.
15754 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 15755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384
DE
15756 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15758 break 2
15759 fi
15760done
15761done
15762
15763fi
15764fi
15765ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15766if test -n "$ac_ct_DLLTOOL"; then
f321ab7f
VS
15767 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15768echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8c80d384 15769else
f321ab7f
VS
15770 echo "$as_me:$LINENO: result: no" >&5
15771echo "${ECHO_T}no" >&6
8c80d384
DE
15772fi
15773
f321ab7f 15774 DLLTOOL=$ac_ct_DLLTOOL
8c80d384
DE
15775else
15776 DLLTOOL="$ac_cv_prog_DLLTOOL"
15777fi
15778
15779 ;;
15780 esac
15781fi
a848cd7e 15782
f321ab7f
VS
15783echo "$as_me:$LINENO: checking if make is GNU make" >&5
15784echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
a848cd7e
SC
15785if test "${wx_cv_prog_makeisgnu+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787else
15788
15789 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
252a5022 15790 $EGREP -s GNU > /dev/null); then
a848cd7e
SC
15791 wx_cv_prog_makeisgnu="yes"
15792 else
15793 wx_cv_prog_makeisgnu="no"
15794 fi
15795
15796fi
f321ab7f
VS
15797echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15798echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
a848cd7e
SC
15799
15800if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15801 IF_GNU_MAKE=""
15802else
15803 IF_GNU_MAKE="#"
15804fi
15805
15806
15807
15808if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
f321ab7f
VS
15809echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15810echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
a848cd7e
SC
15811if test "${wx_cv_prog_makevpath+set}" = set; then
15812 echo $ECHO_N "(cached) $ECHO_C" >&6
15813else
15814
15815cat - << EOF > confMake
15816check : file
15817 cp \$? \$@
15818 cp \$? final_file
15819EOF
15820
15821if test ! -d sub ; then
15822 mkdir sub
15823fi
15824echo dummy > sub/file
15825${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15826RESULT=$?
15827rm -f sub/file check final_file confMake
15828rmdir sub
15829if test "$RESULT" = 0; then
15830 wx_cv_prog_makevpath="yes"
15831else
15832 wx_cv_prog_makevpath="no"
15833fi
15834
15835fi
f321ab7f
VS
15836echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15837echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
a848cd7e
SC
15838
15839if test "x$wx_cv_prog_makevpath" != "xyes"; then
15840{ { echo "$as_me:$LINENO: error:
15841You need a make-utility that is able to use the variable
15842VPATH correctly.
15843If your version of make does not support VPATH correctly,
15844please install GNU-make (possibly as gmake), and start
15845configure with the following command:
15846export MAKE=gmake; ./configure for sh-type shells
15847setenv MAKE gmake; ./configure for csh-type shells
15848Also please do remember to use gmake in this case every time
15849you are trying to compile.
15850" >&5
15851echo "$as_me: error:
15852You need a make-utility that is able to use the variable
15853VPATH correctly.
15854If your version of make does not support VPATH correctly,
15855please install GNU-make (possibly as gmake), and start
15856configure with the following command:
15857export MAKE=gmake; ./configure for sh-type shells
15858setenv MAKE gmake; ./configure for csh-type shells
15859Also please do remember to use gmake in this case every time
15860you are trying to compile.
15861" >&2;}
15862 { (exit 1); exit 1; }; }
15863fi fi
f321ab7f
VS
15864echo "$as_me:$LINENO: checking whether ln -s works" >&5
15865echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
a848cd7e
SC
15866LN_S=$as_ln_s
15867if test "$LN_S" = "ln -s"; then
f321ab7f
VS
15868 echo "$as_me:$LINENO: result: yes" >&5
15869echo "${ECHO_T}yes" >&6
a848cd7e 15870else
f321ab7f
VS
15871 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15872echo "${ECHO_T}no, using $LN_S" >&6
a848cd7e
SC
15873fi
15874
15875
bcaab0f9 15876
a848cd7e 15877
2113bc77 15878if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15879 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15880fi
15881
4d7ec9f1
DE
15882case "${host}" in
15883 powerpc-*-darwin* )
f321ab7f
VS
15884 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15885echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
4d7ec9f1
DE
15886 cat >conftest.$ac_ext <<_ACEOF
15887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
15892
15893int
15894main ()
15895{
15896#ifndef __POWERPC__
15897 choke me for lack of PowerPC
15898#endif
15899
15900 ;
15901 return 0;
15902}
15903_ACEOF
15904rm -f conftest.$ac_objext
f321ab7f
VS
15905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906 (eval $ac_compile) 2>conftest.er1
4d7ec9f1
DE
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
f321ab7f
VS
15913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
4d7ec9f1
DE
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; } &&
15919 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
4d7ec9f1
DE
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
f321ab7f
VS
15925 echo "$as_me:$LINENO: result: yes" >&5
15926echo "${ECHO_T}yes" >&6
4d7ec9f1
DE
15927else
15928 echo "$as_me: failed program was:" >&5
15929sed 's/^/| /' conftest.$ac_ext >&5
15930
f321ab7f
VS
15931echo "$as_me:$LINENO: result: no" >&5
15932echo "${ECHO_T}no" >&6
4d7ec9f1
DE
15933 cat >>confdefs.h <<\_ACEOF
15934#define __POWERPC__ 1
15935_ACEOF
15936
15937
15938fi
f321ab7f 15939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15940 ;;
15941esac
15942
15943case "${host}" in
15944 *-*-darwin* )
f321ab7f
VS
15945 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15946echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
4d7ec9f1
DE
15947 cat >conftest.$ac_ext <<_ACEOF
15948/* confdefs.h. */
15949_ACEOF
15950cat confdefs.h >>conftest.$ac_ext
15951cat >>conftest.$ac_ext <<_ACEOF
15952/* end confdefs.h. */
15953#include <CoreFoundation/CFBase.h>
15954
15955int
15956main ()
15957{
15958
15959 ;
15960 return 0;
15961}
15962_ACEOF
15963rm -f conftest.$ac_objext
f321ab7f
VS
15964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15965 (eval $ac_compile) 2>conftest.er1
4d7ec9f1
DE
15966 ac_status=$?
15967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
f321ab7f
VS
15972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
4d7ec9f1
DE
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; } &&
15978 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
4d7ec9f1
DE
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; }; then
f321ab7f
VS
15984 echo "$as_me:$LINENO: result: yes" >&5
15985echo "${ECHO_T}yes" >&6
4d7ec9f1
DE
15986else
15987 echo "$as_me: failed program was:" >&5
15988sed 's/^/| /' conftest.$ac_ext >&5
15989
f321ab7f
VS
15990echo "$as_me:$LINENO: result: no" >&5
15991echo "${ECHO_T}no" >&6
15992 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15993echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
4d7ec9f1
DE
15994 cat >conftest.$ac_ext <<_ACEOF
15995/* confdefs.h. */
15996_ACEOF
15997cat confdefs.h >>conftest.$ac_ext
15998cat >>conftest.$ac_ext <<_ACEOF
15999/* end confdefs.h. */
16000#define __CF_USE_FRAMEWORK_INCLUDES__
16001#include <CoreFoundation/CFBase.h>
16002
16003int
16004main ()
16005{
16006
16007 ;
16008 return 0;
16009}
16010_ACEOF
16011rm -f conftest.$ac_objext
f321ab7f
VS
16012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16013 (eval $ac_compile) 2>conftest.er1
4d7ec9f1
DE
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
f321ab7f
VS
16020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
4d7ec9f1
DE
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; } &&
16026 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
4d7ec9f1
DE
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
f321ab7f
VS
16032 echo "$as_me:$LINENO: result: yes" >&5
16033echo "${ECHO_T}yes" >&6
c92ad099 16034 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
16035else
16036 echo "$as_me: failed program was:" >&5
16037sed 's/^/| /' conftest.$ac_ext >&5
16038
f321ab7f 16039{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
4d7ec9f1
DE
16040See \`config.log' for more details." >&5
16041echo "$as_me: error: no. CoreFoundation not available.
16042See \`config.log' for more details." >&2;}
16043 { (exit 1); exit 1; }; }
16044
16045fi
f321ab7f 16046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4d7ec9f1
DE
16047
16048
16049fi
f321ab7f 16050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4d7ec9f1
DE
16051 ;;
16052esac
16053
8bf7f1a9
VZ
16054wants_win32=0
16055doesnt_want_win32=0
16056case "${host}" in
16057 *-*-cygwin*)
16058 if test "$wxUSE_MSW" = 1 ; then
16059 wants_win32=1
16060 else
f321ab7f
VS
16061 echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
16062echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6
8bf7f1a9
VZ
16063if test "${wx_cv_nocygwin+set}" = set; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16065else
16066
16067 cat >conftest.$ac_ext <<_ACEOF
16068/* confdefs.h. */
16069_ACEOF
16070cat confdefs.h >>conftest.$ac_ext
16071cat >>conftest.$ac_ext <<_ACEOF
16072/* end confdefs.h. */
16073
16074int
16075main ()
16076{
16077
16078 #ifdef __MINGW32__
16079 choke me
16080 #endif
16081
16082 ;
16083 return 0;
16084}
16085_ACEOF
16086rm -f conftest.$ac_objext
f321ab7f
VS
16087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16088 (eval $ac_compile) 2>conftest.er1
8bf7f1a9
VZ
16089 ac_status=$?
16090 grep -v '^ *+' conftest.er1 >conftest.err
16091 rm -f conftest.er1
16092 cat conftest.err >&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } &&
f321ab7f
VS
16095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
8bf7f1a9
VZ
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; } &&
16101 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
16102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103 (eval $ac_try) 2>&5
8bf7f1a9
VZ
16104 ac_status=$?
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; }; then
16107 wx_cv_nocygwin=no
16108else
16109 echo "$as_me: failed program was:" >&5
16110sed 's/^/| /' conftest.$ac_ext >&5
16111
f321ab7f 16112wx_cv_nocygwin=yes
8bf7f1a9
VZ
16113
16114fi
f321ab7f 16115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8bf7f1a9
VZ
16116
16117
16118fi
f321ab7f
VS
16119echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
16120echo "${ECHO_T}$wx_cv_nocygwin" >&6
8bf7f1a9
VZ
16121
16122 if test "$wx_cv_nocygwin" = "yes"; then
16123 wants_win32=1
16124 else
16125 doesnt_want_win32=1
16126 fi
16127 fi
16128 if test "$wants_win32" = 1 ; then
16129 BAKEFILE_FORCE_PLATFORM=win32
16130 fi
16131 ;;
16132 *-*-mingw*)
16133 wants_win32=1
16134 ;;
16135esac
16136
16137if test "$wxUSE_WINE" = "yes"; then
16138 wants_win32=1
8bf7f1a9
VZ
16139 LDFLAGS_GUI="-mwindows"
16140fi
16141
16142if test "$wants_win32" = 1 ; then
16143 USE_UNIX=0
16144 USE_WIN32=1
16145 cat >>confdefs.h <<\_ACEOF
16146#define __WIN32__ 1
16147_ACEOF
16148
16149 cat >>confdefs.h <<\_ACEOF
16150#define __WIN95__ 1
16151_ACEOF
16152
16153 cat >>confdefs.h <<\_ACEOF
16154#define __WINDOWS__ 1
16155_ACEOF
16156
16157 cat >>confdefs.h <<\_ACEOF
16158#define __GNUWIN32__ 1
16159_ACEOF
16160
16161 cat >>confdefs.h <<\_ACEOF
16162#define STRICT 1
16163_ACEOF
16164
16165fi
16166if test "$doesnt_want_win32" = 1 ; then
16167 USE_UNIX=1
16168 USE_WIN32=0
16169fi
16170
16171if test "$USE_UNIX" = 1 ; then
16172 wxUSE_UNIX=yes
16173 cat >>confdefs.h <<\_ACEOF
16174#define __UNIX__ 1
16175_ACEOF
16176
16177fi
16178
a848cd7e
SC
16179case "${host}" in
16180 *-pc-os2_emx | *-pc-os2-emx )
fd5199d6 16181 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
f321ab7f
VS
16182 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
16183echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
a848cd7e
SC
16184if test "${ac_cv_lib_cExt_drand48+set}" = set; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186else
16187 ac_check_lib_save_LIBS=$LIBS
16188LIBS="-lcExt $LIBS"
16189cat >conftest.$ac_ext <<_ACEOF
16190/* confdefs.h. */
16191_ACEOF
16192cat confdefs.h >>conftest.$ac_ext
16193cat >>conftest.$ac_ext <<_ACEOF
16194/* end confdefs.h. */
16195
f321ab7f 16196/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
16197#ifdef __cplusplus
16198extern "C"
16199#endif
f321ab7f
VS
16200/* We use char because int might match the return type of a gcc2
16201 builtin and then its argument prototype would still apply. */
a848cd7e
SC
16202char drand48 ();
16203int
16204main ()
16205{
f321ab7f 16206drand48 ();
a848cd7e
SC
16207 ;
16208 return 0;
16209}
16210_ACEOF
16211rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
16212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16213 (eval $ac_link) 2>conftest.er1
a848cd7e 16214 ac_status=$?
ac1cb8d3
VS
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
a848cd7e
SC
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } &&
f321ab7f
VS
16220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
ac1cb8d3
VS
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; } &&
16226 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
a848cd7e
SC
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; }; then
16232 ac_cv_lib_cExt_drand48=yes
16233else
16234 echo "$as_me: failed program was:" >&5
16235sed 's/^/| /' conftest.$ac_ext >&5
16236
f321ab7f 16237ac_cv_lib_cExt_drand48=no
a848cd7e 16238fi
f321ab7f 16239rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 16240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16241LIBS=$ac_check_lib_save_LIBS
16242fi
f321ab7f
VS
16243echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
16244echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
a848cd7e
SC
16245if test $ac_cv_lib_cExt_drand48 = yes; then
16246 LIBS="$LIBS -lcExt"
16247fi
16248
16249 else
16250 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
16251 fi
f321ab7f
VS
16252 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
16253echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
16254if test "${wx_cv_gccversion+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256else
16257
391a765e
VS
16258 if test "$cross_compiling" = yes; then
16259 wx_cv_gccversion="EMX2"
16260
16261else
16262 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
16263/* confdefs.h. */
16264_ACEOF
16265cat confdefs.h >>conftest.$ac_ext
16266cat >>conftest.$ac_ext <<_ACEOF
16267/* end confdefs.h. */
16268
391a765e 16269 #include <stdio.h>
a848cd7e 16270
391a765e
VS
16271 int main()
16272 {
16273 FILE *f=fopen("conftestval", "w");
16274 if (!f) exit(1);
16275 fprintf(f,
a848cd7e 16276 #if (__GNUC__ < 3)
391a765e
VS
16277 "EMX2"
16278 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
16279 "EMX3"
16280 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
16281 "Innotek5"
16282 #else
16283 "Innotek6"
a848cd7e 16284 #endif
5039a2df 16285 );
391a765e
VS
16286 exit(0);
16287 }
a848cd7e 16288
a848cd7e 16289_ACEOF
391a765e 16290rm -f conftest$ac_exeext
f321ab7f
VS
16291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16292 (eval $ac_link) 2>&5
ac1cb8d3
VS
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 16295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
a848cd7e
SC
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
391a765e 16301 wx_cv_gccversion=`cat conftestval`
a848cd7e 16302else
391a765e
VS
16303 echo "$as_me: program exited with status $ac_status" >&5
16304echo "$as_me: failed program was:" >&5
a848cd7e
SC
16305sed 's/^/| /' conftest.$ac_ext >&5
16306
391a765e
VS
16307( exit $ac_status )
16308wx_cv_gccversion="EMX2"
a848cd7e 16309fi
f321ab7f 16310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 16311fi
a848cd7e
SC
16312
16313fi
f321ab7f
VS
16314echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
16315echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 16316 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
16317 LIBS="$LIBS -lstdcpp"
16318 LDFLAGS="$LDFLAGS -Zsysv-signals"
16319 else
391a765e 16320 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 16321 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
16322 LDFLAGS="$LDFLAGS -Zsysv-signals"
16323 else
16324 LIBS="$LIBS -lstdc++"
16325 fi
16326 fi
94acd38e
DE
16327 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16328 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16329echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16330 wxUSE_OMF=yes
ec3edcc9 16331 enable_omf=yes
a848cd7e
SC
16332 fi
16333 ;;
16334 *)
16335
f321ab7f
VS
16336 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
16337echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
a848cd7e
SC
16338if test "${ac_cv_string_strcasecmp+set}" = set; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16340else
16341
16342 cat >conftest.$ac_ext <<_ACEOF
16343/* confdefs.h. */
16344_ACEOF
16345cat confdefs.h >>conftest.$ac_ext
16346cat >>conftest.$ac_ext <<_ACEOF
16347/* end confdefs.h. */
16348
16349 #include <string.h>
16350
16351int
16352main ()
16353{
16354
16355 strcasecmp("foo", "bar");
16356
16357 ;
16358 return 0;
16359}
16360_ACEOF
16361rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
16362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16363 (eval $ac_link) 2>conftest.er1
a848cd7e 16364 ac_status=$?
ac1cb8d3
VS
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
a848cd7e
SC
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
f321ab7f
VS
16370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
ac1cb8d3
VS
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; } &&
16376 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
a848cd7e
SC
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_cv_string_strcasecmp=yes
16383else
16384 echo "$as_me: failed program was:" >&5
16385sed 's/^/| /' conftest.$ac_ext >&5
16386
f321ab7f 16387ac_cv_string_strcasecmp=no
a848cd7e
SC
16388
16389fi
f321ab7f 16390rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 16391 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16392
16393fi
f321ab7f
VS
16394echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16395echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
a848cd7e
SC
16396
16397 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16398 cat >>confdefs.h <<\_ACEOF
16399#define HAVE_STRCASECMP_IN_STRING_H 1
16400_ACEOF
16401
16402 else
f321ab7f
VS
16403 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16404echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
a848cd7e
SC
16405if test "${ac_cv_strings_strcasecmp+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16407else
16408
16409 cat >conftest.$ac_ext <<_ACEOF
16410/* confdefs.h. */
16411_ACEOF
16412cat confdefs.h >>conftest.$ac_ext
16413cat >>conftest.$ac_ext <<_ACEOF
16414/* end confdefs.h. */
16415
16416 #include <strings.h>
16417
16418int
16419main ()
16420{
16421
16422 strcasecmp("foo", "bar");
16423
16424 ;
16425 return 0;
16426}
16427_ACEOF
16428rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
16429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430 (eval $ac_link) 2>conftest.er1
a848cd7e 16431 ac_status=$?
ac1cb8d3
VS
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
a848cd7e
SC
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
f321ab7f
VS
16437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
ac1cb8d3
VS
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } &&
16443 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
a848cd7e
SC
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16449 ac_cv_strings_strcasecmp=yes
16450else
16451 echo "$as_me: failed program was:" >&5
16452sed 's/^/| /' conftest.$ac_ext >&5
16453
f321ab7f 16454ac_cv_strings_strcasecmp=no
a848cd7e
SC
16455
16456fi
f321ab7f 16457rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 16458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16459
16460fi
f321ab7f
VS
16461echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16462echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
a848cd7e 16463
0c3c69fc 16464 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16465 cat >>confdefs.h <<\_ACEOF
16466#define HAVE_STRCASECMP_IN_STRINGS_H 1
16467_ACEOF
16468
16469 else
16470 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16471echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16472 { (exit 1); exit 1; }; }
16473 fi
16474 fi
16475
a848cd7e
SC
16476 ;;
16477esac
16478
16479
f321ab7f
VS
16480echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16481echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
a848cd7e
SC
16482if test "${ac_cv_header_stdc+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16484else
16485 cat >conftest.$ac_ext <<_ACEOF
16486/* confdefs.h. */
16487_ACEOF
16488cat confdefs.h >>conftest.$ac_ext
16489cat >>conftest.$ac_ext <<_ACEOF
16490/* end confdefs.h. */
16491#include <stdlib.h>
16492#include <stdarg.h>
16493#include <string.h>
16494#include <float.h>
16495
16496int
16497main ()
16498{
16499
16500 ;
16501 return 0;
16502}
16503_ACEOF
16504rm -f conftest.$ac_objext
f321ab7f
VS
16505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16506 (eval $ac_compile) 2>conftest.er1
a848cd7e 16507 ac_status=$?
ac1cb8d3
VS
16508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
a848cd7e
SC
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
f321ab7f
VS
16513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
ac1cb8d3
VS
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; } &&
16519 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
a848cd7e
SC
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 ac_cv_header_stdc=yes
16526else
16527 echo "$as_me: failed program was:" >&5
16528sed 's/^/| /' conftest.$ac_ext >&5
16529
f321ab7f 16530ac_cv_header_stdc=no
a848cd7e 16531fi
f321ab7f 16532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16533
16534if test $ac_cv_header_stdc = yes; then
16535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16536 cat >conftest.$ac_ext <<_ACEOF
16537/* confdefs.h. */
16538_ACEOF
16539cat confdefs.h >>conftest.$ac_ext
16540cat >>conftest.$ac_ext <<_ACEOF
16541/* end confdefs.h. */
16542#include <string.h>
16543
16544_ACEOF
16545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16546 $EGREP "memchr" >/dev/null 2>&1; then
16547 :
16548else
16549 ac_cv_header_stdc=no
16550fi
16551rm -f conftest*
16552
16553fi
16554
16555if test $ac_cv_header_stdc = yes; then
16556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16557 cat >conftest.$ac_ext <<_ACEOF
16558/* confdefs.h. */
16559_ACEOF
16560cat confdefs.h >>conftest.$ac_ext
16561cat >>conftest.$ac_ext <<_ACEOF
16562/* end confdefs.h. */
16563#include <stdlib.h>
16564
16565_ACEOF
16566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16567 $EGREP "free" >/dev/null 2>&1; then
16568 :
16569else
16570 ac_cv_header_stdc=no
16571fi
16572rm -f conftest*
16573
16574fi
16575
16576if test $ac_cv_header_stdc = yes; then
16577 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16578 if test "$cross_compiling" = yes; then
16579 :
16580else
16581 cat >conftest.$ac_ext <<_ACEOF
16582/* confdefs.h. */
16583_ACEOF
16584cat confdefs.h >>conftest.$ac_ext
16585cat >>conftest.$ac_ext <<_ACEOF
16586/* end confdefs.h. */
16587#include <ctype.h>
16588#if ((' ' & 0x0FF) == 0x020)
16589# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16590# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16591#else
16592# define ISLOWER(c) \
ac1cb8d3
VS
16593 (('a' <= (c) && (c) <= 'i') \
16594 || ('j' <= (c) && (c) <= 'r') \
16595 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16596# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16597#endif
16598
16599#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16600int
16601main ()
16602{
16603 int i;
16604 for (i = 0; i < 256; i++)
16605 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16606 || toupper (i) != TOUPPER (i))
f321ab7f
VS
16607 exit(2);
16608 exit (0);
a848cd7e
SC
16609}
16610_ACEOF
16611rm -f conftest$ac_exeext
f321ab7f
VS
16612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613 (eval $ac_link) 2>&5
a848cd7e
SC
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
a848cd7e
SC
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 :
16623else
16624 echo "$as_me: program exited with status $ac_status" >&5
16625echo "$as_me: failed program was:" >&5
16626sed 's/^/| /' conftest.$ac_ext >&5
16627
16628( exit $ac_status )
16629ac_cv_header_stdc=no
16630fi
f321ab7f 16631rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16632fi
16633fi
16634fi
f321ab7f
VS
16635echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16636echo "${ECHO_T}$ac_cv_header_stdc" >&6
a848cd7e
SC
16637if test $ac_cv_header_stdc = yes; then
16638
16639cat >>confdefs.h <<\_ACEOF
16640#define STDC_HEADERS 1
16641_ACEOF
16642
16643fi
16644
16645# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16656 inttypes.h stdint.h unistd.h
a848cd7e
SC
16657do
16658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
16659echo "$as_me:$LINENO: checking for $ac_header" >&5
16660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16661if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16663else
16664 cat >conftest.$ac_ext <<_ACEOF
16665/* confdefs.h. */
16666_ACEOF
16667cat confdefs.h >>conftest.$ac_ext
16668cat >>conftest.$ac_ext <<_ACEOF
16669/* end confdefs.h. */
16670$ac_includes_default
16671
16672#include <$ac_header>
16673_ACEOF
16674rm -f conftest.$ac_objext
f321ab7f
VS
16675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>conftest.er1
a848cd7e 16677 ac_status=$?
ac1cb8d3
VS
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
a848cd7e
SC
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
f321ab7f
VS
16683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
ac1cb8d3
VS
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
a848cd7e
SC
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 eval "$as_ac_Header=yes"
16696else
16697 echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
f321ab7f 16700eval "$as_ac_Header=no"
a848cd7e 16701fi
f321ab7f 16702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16703fi
f321ab7f
VS
16704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
16706if test `eval echo '${'$as_ac_Header'}'` = yes; then
16707 cat >>confdefs.h <<_ACEOF
16708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16709_ACEOF
16710
16711fi
16712
16713done
16714
16715
16716
a848cd7e 16717
a848cd7e 16718
a848cd7e
SC
16719
16720
a848cd7e 16721
55e34571 16722for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
a848cd7e
SC
16723do
16724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
16725if eval "test \"\${$as_ac_Header+set}\" = set"; then
16726 echo "$as_me:$LINENO: checking for $ac_header" >&5
16727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16728if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16730fi
f321ab7f
VS
16731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
16733else
16734 # Is the header compilable?
f321ab7f
VS
16735echo "$as_me:$LINENO: checking $ac_header usability" >&5
16736echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a848cd7e
SC
16737cat >conftest.$ac_ext <<_ACEOF
16738/* confdefs.h. */
16739_ACEOF
16740cat confdefs.h >>conftest.$ac_ext
16741cat >>conftest.$ac_ext <<_ACEOF
16742/* end confdefs.h. */
16743$ac_includes_default
16744#include <$ac_header>
16745_ACEOF
16746rm -f conftest.$ac_objext
f321ab7f
VS
16747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748 (eval $ac_compile) 2>conftest.er1
a848cd7e 16749 ac_status=$?
ac1cb8d3
VS
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
a848cd7e
SC
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
f321ab7f
VS
16755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
ac1cb8d3
VS
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
a848cd7e
SC
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 ac_header_compiler=yes
16768else
16769 echo "$as_me: failed program was:" >&5
16770sed 's/^/| /' conftest.$ac_ext >&5
16771
f321ab7f 16772ac_header_compiler=no
a848cd7e 16773fi
f321ab7f
VS
16774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16776echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
16777
16778# Is the header present?
f321ab7f
VS
16779echo "$as_me:$LINENO: checking $ac_header presence" >&5
16780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a848cd7e
SC
16781cat >conftest.$ac_ext <<_ACEOF
16782/* confdefs.h. */
16783_ACEOF
16784cat confdefs.h >>conftest.$ac_ext
16785cat >>conftest.$ac_ext <<_ACEOF
16786/* end confdefs.h. */
16787#include <$ac_header>
16788_ACEOF
f321ab7f
VS
16789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
16791 ac_status=$?
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } >/dev/null; then
16797 if test -s conftest.err; then
fd5199d6
VZ
16798 ac_cpp_err=$ac_c_preproc_warn_flag
16799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16800 else
16801 ac_cpp_err=
16802 fi
16803else
16804 ac_cpp_err=yes
16805fi
16806if test -z "$ac_cpp_err"; then
16807 ac_header_preproc=yes
16808else
16809 echo "$as_me: failed program was:" >&5
16810sed 's/^/| /' conftest.$ac_ext >&5
16811
16812 ac_header_preproc=no
16813fi
16814rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
16815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16816echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
16817
16818# So? What about this header?
fd5199d6 16819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 16820 yes:no: )
a848cd7e
SC
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16825 ac_header_preproc=yes
a848cd7e 16826 ;;
ac1cb8d3 16827 no:yes:* )
a848cd7e
SC
16828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
16840 (
16841 cat <<\_ASBOX
ac1cb8d3
VS
16842## ----------------------------------------- ##
16843## Report this to wx-dev@lists.wxwidgets.org ##
16844## ----------------------------------------- ##
a848cd7e 16845_ASBOX
f321ab7f
VS
16846 ) |
16847 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
16848 ;;
16849esac
f321ab7f
VS
16850echo "$as_me:$LINENO: checking for $ac_header" >&5
16851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16852if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854else
ac1cb8d3 16855 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e 16856fi
f321ab7f
VS
16857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
16859
16860fi
16861if test `eval echo '${'$as_ac_Header'}'` = yes; then
16862 cat >>confdefs.h <<_ACEOF
16863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16864_ACEOF
16865
16866fi
16867
16868done
16869
a848cd7e 16870
55e34571 16871if test "$ac_cv_header_wchar_h" != "yes"; then
a848cd7e 16872
55e34571 16873for ac_header in wcstr.h
a848cd7e
SC
16874do
16875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
16876if eval "test \"\${$as_ac_Header+set}\" = set"; then
16877 echo "$as_me:$LINENO: checking for $ac_header" >&5
16878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16879if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881fi
f321ab7f
VS
16882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
16884else
16885 # Is the header compilable?
f321ab7f
VS
16886echo "$as_me:$LINENO: checking $ac_header usability" >&5
16887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a848cd7e
SC
16888cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895#include <$ac_header>
16896_ACEOF
16897rm -f conftest.$ac_objext
f321ab7f
VS
16898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16899 (eval $ac_compile) 2>conftest.er1
a848cd7e 16900 ac_status=$?
ac1cb8d3
VS
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
a848cd7e
SC
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
f321ab7f
VS
16906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
ac1cb8d3
VS
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
a848cd7e
SC
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_header_compiler=yes
16919else
16920 echo "$as_me: failed program was:" >&5
16921sed 's/^/| /' conftest.$ac_ext >&5
16922
f321ab7f 16923ac_header_compiler=no
a848cd7e 16924fi
f321ab7f
VS
16925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16927echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
16928
16929# Is the header present?
f321ab7f
VS
16930echo "$as_me:$LINENO: checking $ac_header presence" >&5
16931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a848cd7e
SC
16932cat >conftest.$ac_ext <<_ACEOF
16933/* confdefs.h. */
16934_ACEOF
16935cat confdefs.h >>conftest.$ac_ext
16936cat >>conftest.$ac_ext <<_ACEOF
16937/* end confdefs.h. */
16938#include <$ac_header>
16939_ACEOF
f321ab7f
VS
16940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
16942 ac_status=$?
16943 grep -v '^ *+' conftest.er1 >conftest.err
16944 rm -f conftest.er1
16945 cat conftest.err >&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } >/dev/null; then
16948 if test -s conftest.err; then
fd5199d6
VZ
16949 ac_cpp_err=$ac_c_preproc_warn_flag
16950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16951 else
16952 ac_cpp_err=
16953 fi
16954else
16955 ac_cpp_err=yes
16956fi
16957if test -z "$ac_cpp_err"; then
16958 ac_header_preproc=yes
16959else
16960 echo "$as_me: failed program was:" >&5
16961sed 's/^/| /' conftest.$ac_ext >&5
16962
16963 ac_header_preproc=no
16964fi
16965rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
16966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16967echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
16968
16969# So? What about this header?
fd5199d6 16970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 16971 yes:no: )
a848cd7e
SC
16972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16976 ac_header_preproc=yes
a848cd7e 16977 ;;
ac1cb8d3 16978 no:yes:* )
a848cd7e
SC
16979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
16991 (
16992 cat <<\_ASBOX
ac1cb8d3
VS
16993## ----------------------------------------- ##
16994## Report this to wx-dev@lists.wxwidgets.org ##
16995## ----------------------------------------- ##
a848cd7e 16996_ASBOX
f321ab7f
VS
16997 ) |
16998 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
16999 ;;
17000esac
f321ab7f
VS
17001echo "$as_me:$LINENO: checking for $ac_header" >&5
17002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17003if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005else
ac1cb8d3 17006 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e 17007fi
f321ab7f
VS
17008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
17010
17011fi
17012if test `eval echo '${'$as_ac_Header'}'` = yes; then
17013 cat >>confdefs.h <<_ACEOF
17014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17015_ACEOF
17016
17017fi
17018
17019done
17020
a848cd7e
SC
17021fi
17022
a848cd7e
SC
17023case "${host}" in
17024 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17025 if test $ac_cv_header_langinfo_h = "yes" \
17026 -a \( "$wx_cv_gccversion" = "EMX2" \
17027 -o "$wx_cv_gccversion" = "EMX3" \
17028 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17029 LIBS="$LIBS -lintl"
17030 fi
17031 ;;
17032esac
17033
bc023abb
MW
17034if test "$USE_UNIX" = 1 ; then
17035
17036for ac_header in sys/select.h
17037do
17038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
17039if eval "test \"\${$as_ac_Header+set}\" = set"; then
17040 echo "$as_me:$LINENO: checking for $ac_header" >&5
17041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17042if eval "test \"\${$as_ac_Header+set}\" = set"; then
bc023abb
MW
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17044fi
f321ab7f
VS
17045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bc023abb
MW
17047else
17048 # Is the header compilable?
f321ab7f
VS
17049echo "$as_me:$LINENO: checking $ac_header usability" >&5
17050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bc023abb
MW
17051cat >conftest.$ac_ext <<_ACEOF
17052/* confdefs.h. */
17053_ACEOF
17054cat confdefs.h >>conftest.$ac_ext
17055cat >>conftest.$ac_ext <<_ACEOF
17056/* end confdefs.h. */
17057$ac_includes_default
17058#include <$ac_header>
17059_ACEOF
17060rm -f conftest.$ac_objext
f321ab7f
VS
17061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17062 (eval $ac_compile) 2>conftest.er1
bc023abb
MW
17063 ac_status=$?
17064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } &&
f321ab7f
VS
17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
bc023abb
MW
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } &&
17075 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
bc023abb
MW
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_header_compiler=yes
17082else
17083 echo "$as_me: failed program was:" >&5
17084sed 's/^/| /' conftest.$ac_ext >&5
17085
f321ab7f 17086ac_header_compiler=no
bc023abb 17087fi
f321ab7f
VS
17088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17089echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17090echo "${ECHO_T}$ac_header_compiler" >&6
bc023abb
MW
17091
17092# Is the header present?
f321ab7f
VS
17093echo "$as_me:$LINENO: checking $ac_header presence" >&5
17094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bc023abb
MW
17095cat >conftest.$ac_ext <<_ACEOF
17096/* confdefs.h. */
17097_ACEOF
17098cat confdefs.h >>conftest.$ac_ext
17099cat >>conftest.$ac_ext <<_ACEOF
17100/* end confdefs.h. */
17101#include <$ac_header>
17102_ACEOF
f321ab7f
VS
17103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
bc023abb
MW
17105 ac_status=$?
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } >/dev/null; then
17111 if test -s conftest.err; then
fd5199d6
VZ
17112 ac_cpp_err=$ac_c_preproc_warn_flag
17113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
bc023abb
MW
17114 else
17115 ac_cpp_err=
17116 fi
17117else
17118 ac_cpp_err=yes
17119fi
17120if test -z "$ac_cpp_err"; then
17121 ac_header_preproc=yes
17122else
17123 echo "$as_me: failed program was:" >&5
17124sed 's/^/| /' conftest.$ac_ext >&5
17125
17126 ac_header_preproc=no
17127fi
17128rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
17129echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17130echo "${ECHO_T}$ac_header_preproc" >&6
bc023abb
MW
17131
17132# So? What about this header?
fd5199d6 17133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
bc023abb
MW
17134 yes:no: )
17135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17139 ac_header_preproc=yes
17140 ;;
17141 no:yes:* )
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
17154 (
17155 cat <<\_ASBOX
bc023abb
MW
17156## ----------------------------------------- ##
17157## Report this to wx-dev@lists.wxwidgets.org ##
17158## ----------------------------------------- ##
17159_ASBOX
f321ab7f
VS
17160 ) |
17161 sed "s/^/$as_me: WARNING: /" >&2
bc023abb
MW
17162 ;;
17163esac
f321ab7f
VS
17164echo "$as_me:$LINENO: checking for $ac_header" >&5
17165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17166if eval "test \"\${$as_ac_Header+set}\" = set"; then
bc023abb
MW
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17168else
17169 eval "$as_ac_Header=\$ac_header_preproc"
17170fi
f321ab7f
VS
17171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bc023abb
MW
17173
17174fi
17175if test `eval echo '${'$as_ac_Header'}'` = yes; then
17176 cat >>confdefs.h <<_ACEOF
17177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17178_ACEOF
17179
17180fi
17181
17182done
17183
17184fi
17185
a848cd7e 17186
f321ab7f
VS
17187echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17188echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
a848cd7e
SC
17189if test "${ac_cv_c_const+set}" = set; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17191else
17192 cat >conftest.$ac_ext <<_ACEOF
17193/* confdefs.h. */
17194_ACEOF
17195cat confdefs.h >>conftest.$ac_ext
17196cat >>conftest.$ac_ext <<_ACEOF
17197/* end confdefs.h. */
17198
17199int
17200main ()
17201{
17202/* FIXME: Include the comments suggested by Paul. */
17203#ifndef __cplusplus
17204 /* Ultrix mips cc rejects this. */
17205 typedef int charset[2];
17206 const charset x;
17207 /* SunOS 4.1.1 cc rejects this. */
17208 char const *const *ccp;
17209 char **p;
17210 /* NEC SVR4.0.2 mips cc rejects this. */
17211 struct point {int x, y;};
17212 static struct point const zero = {0,0};
17213 /* AIX XL C 1.02.0.0 rejects this.
17214 It does not let you subtract one const X* pointer from another in
17215 an arm of an if-expression whose if-part is not a constant
17216 expression */
17217 const char *g = "string";
17218 ccp = &g + (g ? g-g : 0);
17219 /* HPUX 7.0 cc rejects these. */
17220 ++ccp;
17221 p = (char**) ccp;
17222 ccp = (char const *const *) p;
17223 { /* SCO 3.2v4 cc rejects this. */
17224 char *t;
17225 char const *s = 0 ? (char *) 0 : (char const *) 0;
17226
17227 *t++ = 0;
17228 }
17229 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17230 int x[] = {25, 17};
17231 const int *foo = &x[0];
17232 ++foo;
17233 }
17234 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17235 typedef const int *iptr;
17236 iptr p = 0;
17237 ++p;
17238 }
17239 { /* AIX XL C 1.02.0.0 rejects this saying
17240 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17241 struct s { int j; const int *ap[3]; };
17242 struct s *b; b->j = 5;
17243 }
17244 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17245 const int foo = 10;
17246 }
17247#endif
17248
17249 ;
17250 return 0;
17251}
17252_ACEOF
17253rm -f conftest.$ac_objext
f321ab7f
VS
17254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17255 (eval $ac_compile) 2>conftest.er1
a848cd7e 17256 ac_status=$?
ac1cb8d3
VS
17257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
a848cd7e
SC
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
f321ab7f
VS
17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
ac1cb8d3
VS
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
a848cd7e
SC
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 ac_cv_c_const=yes
17275else
17276 echo "$as_me: failed program was:" >&5
17277sed 's/^/| /' conftest.$ac_ext >&5
17278
f321ab7f 17279ac_cv_c_const=no
a848cd7e 17280fi
f321ab7f 17281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17282fi
f321ab7f
VS
17283echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17284echo "${ECHO_T}$ac_cv_c_const" >&6
a848cd7e
SC
17285if test $ac_cv_c_const = no; then
17286
17287cat >>confdefs.h <<\_ACEOF
17288#define const
17289_ACEOF
17290
17291fi
17292
f321ab7f
VS
17293echo "$as_me:$LINENO: checking for inline" >&5
17294echo $ECHO_N "checking for inline... $ECHO_C" >&6
a848cd7e
SC
17295if test "${ac_cv_c_inline+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17297else
17298 ac_cv_c_inline=no
17299for ac_kw in inline __inline__ __inline; do
17300 cat >conftest.$ac_ext <<_ACEOF
17301/* confdefs.h. */
17302_ACEOF
17303cat confdefs.h >>conftest.$ac_ext
17304cat >>conftest.$ac_ext <<_ACEOF
17305/* end confdefs.h. */
17306#ifndef __cplusplus
17307typedef int foo_t;
17308static $ac_kw foo_t static_foo () {return 0; }
17309$ac_kw foo_t foo () {return 0; }
17310#endif
17311
17312_ACEOF
17313rm -f conftest.$ac_objext
f321ab7f
VS
17314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17315 (eval $ac_compile) 2>conftest.er1
a848cd7e 17316 ac_status=$?
ac1cb8d3
VS
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
a848cd7e
SC
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
f321ab7f
VS
17322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
ac1cb8d3
VS
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
a848cd7e
SC
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
f321ab7f 17334 ac_cv_c_inline=$ac_kw; break
a848cd7e
SC
17335else
17336 echo "$as_me: failed program was:" >&5
17337sed 's/^/| /' conftest.$ac_ext >&5
17338
17339fi
f321ab7f 17340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17341done
17342
17343fi
f321ab7f
VS
17344echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17345echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17346
17347
a848cd7e
SC
17348case $ac_cv_c_inline in
17349 inline | yes) ;;
ac1cb8d3
VS
17350 *)
17351 case $ac_cv_c_inline in
17352 no) ac_val=;;
17353 *) ac_val=$ac_cv_c_inline;;
17354 esac
17355 cat >>confdefs.h <<_ACEOF
17356#ifndef __cplusplus
17357#define inline $ac_val
17358#endif
de59c161 17359_ACEOF
ac1cb8d3 17360 ;;
a848cd7e
SC
17361esac
17362
17363
f321ab7f
VS
17364echo "$as_me:$LINENO: checking for char" >&5
17365echo $ECHO_N "checking for char... $ECHO_C" >&6
a848cd7e
SC
17366if test "${ac_cv_type_char+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17368else
17369 cat >conftest.$ac_ext <<_ACEOF
17370/* confdefs.h. */
17371_ACEOF
17372cat confdefs.h >>conftest.$ac_ext
17373cat >>conftest.$ac_ext <<_ACEOF
17374/* end confdefs.h. */
17375$ac_includes_default
17376int
17377main ()
17378{
f321ab7f 17379if ((char *) 0)
a848cd7e 17380 return 0;
f321ab7f 17381if (sizeof (char))
a848cd7e
SC
17382 return 0;
17383 ;
17384 return 0;
17385}
17386_ACEOF
17387rm -f conftest.$ac_objext
f321ab7f
VS
17388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17389 (eval $ac_compile) 2>conftest.er1
a848cd7e 17390 ac_status=$?
ac1cb8d3
VS
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
a848cd7e
SC
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
f321ab7f
VS
17396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
ac1cb8d3
VS
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
a848cd7e
SC
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17408 ac_cv_type_char=yes
17409else
17410 echo "$as_me: failed program was:" >&5
17411sed 's/^/| /' conftest.$ac_ext >&5
17412
f321ab7f 17413ac_cv_type_char=no
a848cd7e 17414fi
f321ab7f 17415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17416fi
f321ab7f
VS
17417echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17418echo "${ECHO_T}$ac_cv_type_char" >&6
a848cd7e 17419
f321ab7f
VS
17420echo "$as_me:$LINENO: checking size of char" >&5
17421echo $ECHO_N "checking size of char... $ECHO_C" >&6
a848cd7e
SC
17422if test "${ac_cv_sizeof_char+set}" = set; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17424else
17425 if test "$ac_cv_type_char" = yes; then
f321ab7f 17426 # The cast to unsigned long works around a bug in the HP C Compiler
a848cd7e
SC
17427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17429 # This bug is HP SR number 8606223364.
17430 if test "$cross_compiling" = yes; then
17431 # Depending upon the size, compute the lo and hi bounds.
17432cat >conftest.$ac_ext <<_ACEOF
17433/* confdefs.h. */
17434_ACEOF
17435cat confdefs.h >>conftest.$ac_ext
17436cat >>conftest.$ac_ext <<_ACEOF
17437/* end confdefs.h. */
17438$ac_includes_default
17439int
17440main ()
17441{
f321ab7f 17442static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
a848cd7e
SC
17443test_array [0] = 0
17444
17445 ;
17446 return 0;
17447}
17448_ACEOF
17449rm -f conftest.$ac_objext
f321ab7f
VS
17450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17451 (eval $ac_compile) 2>conftest.er1
a848cd7e 17452 ac_status=$?
ac1cb8d3
VS
17453 grep -v '^ *+' conftest.er1 >conftest.err
17454 rm -f conftest.er1
17455 cat conftest.err >&5
a848cd7e
SC
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
f321ab7f
VS
17458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
ac1cb8d3
VS
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
a848cd7e
SC
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_lo=0 ac_mid=0
17471 while :; do
17472 cat >conftest.$ac_ext <<_ACEOF
17473/* confdefs.h. */
17474_ACEOF
17475cat confdefs.h >>conftest.$ac_ext
17476cat >>conftest.$ac_ext <<_ACEOF
17477/* end confdefs.h. */
17478$ac_includes_default
17479int
17480main ()
17481{
f321ab7f 17482static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
a848cd7e
SC
17483test_array [0] = 0
17484
17485 ;
17486 return 0;
17487}
17488_ACEOF
17489rm -f conftest.$ac_objext
f321ab7f
VS
17490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17491 (eval $ac_compile) 2>conftest.er1
a848cd7e 17492 ac_status=$?
ac1cb8d3
VS
17493 grep -v '^ *+' conftest.er1 >conftest.err
17494 rm -f conftest.er1
17495 cat conftest.err >&5
a848cd7e
SC
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } &&
f321ab7f
VS
17498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
ac1cb8d3
VS
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
a848cd7e
SC
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_hi=$ac_mid; break
17511else
17512 echo "$as_me: failed program was:" >&5
17513sed 's/^/| /' conftest.$ac_ext >&5
17514
f321ab7f
VS
17515ac_lo=`expr $ac_mid + 1`
17516 if test $ac_lo -le $ac_mid; then
17517 ac_lo= ac_hi=
17518 break
17519 fi
17520 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17521fi
f321ab7f 17522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17523 done
17524else
17525 echo "$as_me: failed program was:" >&5
17526sed 's/^/| /' conftest.$ac_ext >&5
17527
f321ab7f 17528cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
17529/* confdefs.h. */
17530_ACEOF
17531cat confdefs.h >>conftest.$ac_ext
17532cat >>conftest.$ac_ext <<_ACEOF
17533/* end confdefs.h. */
17534$ac_includes_default
17535int
17536main ()
17537{
f321ab7f 17538static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
a848cd7e
SC
17539test_array [0] = 0
17540
17541 ;
17542 return 0;
17543}
17544_ACEOF
17545rm -f conftest.$ac_objext
f321ab7f
VS
17546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547 (eval $ac_compile) 2>conftest.er1
a848cd7e 17548 ac_status=$?
ac1cb8d3
VS
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
a848cd7e
SC
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
f321ab7f
VS
17554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
ac1cb8d3
VS
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
a848cd7e
SC
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_hi=-1 ac_mid=-1
17567 while :; do
17568 cat >conftest.$ac_ext <<_ACEOF
17569/* confdefs.h. */
17570_ACEOF
17571cat confdefs.h >>conftest.$ac_ext
17572cat >>conftest.$ac_ext <<_ACEOF
17573/* end confdefs.h. */
17574$ac_includes_default
17575int
17576main ()
17577{
f321ab7f 17578static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
a848cd7e
SC
17579test_array [0] = 0
17580
17581 ;
17582 return 0;
17583}
17584_ACEOF
17585rm -f conftest.$ac_objext
f321ab7f
VS
17586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17587 (eval $ac_compile) 2>conftest.er1
a848cd7e 17588 ac_status=$?
ac1cb8d3
VS
17589 grep -v '^ *+' conftest.er1 >conftest.err
17590 rm -f conftest.er1
17591 cat conftest.err >&5
a848cd7e
SC
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
f321ab7f
VS
17594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
ac1cb8d3
VS
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
a848cd7e
SC
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 ac_lo=$ac_mid; break
17607else
17608 echo "$as_me: failed program was:" >&5
17609sed 's/^/| /' conftest.$ac_ext >&5
17610
f321ab7f
VS
17611ac_hi=`expr '(' $ac_mid ')' - 1`
17612 if test $ac_mid -le $ac_hi; then
17613 ac_lo= ac_hi=
17614 break
17615 fi
17616 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17617fi
f321ab7f 17618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17619 done
17620else
17621 echo "$as_me: failed program was:" >&5
17622sed 's/^/| /' conftest.$ac_ext >&5
17623
f321ab7f 17624ac_lo= ac_hi=
a848cd7e 17625fi
f321ab7f 17626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17627fi
f321ab7f 17628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17629# Binary search between lo and hi bounds.
17630while test "x$ac_lo" != "x$ac_hi"; do
17631 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17632 cat >conftest.$ac_ext <<_ACEOF
17633/* confdefs.h. */
17634_ACEOF
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h. */
17638$ac_includes_default
17639int
17640main ()
17641{
f321ab7f 17642static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
a848cd7e
SC
17643test_array [0] = 0
17644
17645 ;
17646 return 0;
17647}
17648_ACEOF
17649rm -f conftest.$ac_objext
f321ab7f
VS
17650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17651 (eval $ac_compile) 2>conftest.er1
a848cd7e 17652 ac_status=$?
ac1cb8d3
VS
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
a848cd7e
SC
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
f321ab7f
VS
17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
ac1cb8d3
VS
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
a848cd7e
SC
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 ac_hi=$ac_mid
17671else
17672 echo "$as_me: failed program was:" >&5
17673sed 's/^/| /' conftest.$ac_ext >&5
17674
f321ab7f 17675ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 17676fi
f321ab7f 17677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17678done
17679case $ac_lo in
17680?*) ac_cv_sizeof_char=$ac_lo;;
f321ab7f 17681'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
a848cd7e 17682See \`config.log' for more details." >&5
f321ab7f 17683echo "$as_me: error: cannot compute sizeof (char), 77
a848cd7e 17684See \`config.log' for more details." >&2;}
f321ab7f 17685 { (exit 1); exit 1; }; } ;;
a848cd7e 17686esac
f321ab7f
VS
17687else
17688 if test "$cross_compiling" = yes; then
17689 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17690echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17691 { (exit 1); exit 1; }; }
a848cd7e
SC
17692else
17693 cat >conftest.$ac_ext <<_ACEOF
17694/* confdefs.h. */
17695_ACEOF
17696cat confdefs.h >>conftest.$ac_ext
17697cat >>conftest.$ac_ext <<_ACEOF
17698/* end confdefs.h. */
17699$ac_includes_default
f321ab7f
VS
17700long longval () { return (long) (sizeof (char)); }
17701unsigned long ulongval () { return (long) (sizeof (char)); }
a848cd7e
SC
17702#include <stdio.h>
17703#include <stdlib.h>
17704int
17705main ()
17706{
17707
17708 FILE *f = fopen ("conftest.val", "w");
17709 if (! f)
f321ab7f
VS
17710 exit (1);
17711 if (((long) (sizeof (char))) < 0)
a848cd7e 17712 {
f321ab7f
VS
17713 long i = longval ();
17714 if (i != ((long) (sizeof (char))))
17715 exit (1);
a848cd7e
SC
17716 fprintf (f, "%ld\n", i);
17717 }
17718 else
17719 {
f321ab7f
VS
17720 unsigned long i = ulongval ();
17721 if (i != ((long) (sizeof (char))))
17722 exit (1);
a848cd7e
SC
17723 fprintf (f, "%lu\n", i);
17724 }
f321ab7f 17725 exit (ferror (f) || fclose (f) != 0);
a848cd7e
SC
17726
17727 ;
17728 return 0;
17729}
17730_ACEOF
17731rm -f conftest$ac_exeext
f321ab7f
VS
17732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17733 (eval $ac_link) 2>&5
a848cd7e
SC
17734 ac_status=$?
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
a848cd7e
SC
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
17742 ac_cv_sizeof_char=`cat conftest.val`
17743else
17744 echo "$as_me: program exited with status $ac_status" >&5
17745echo "$as_me: failed program was:" >&5
17746sed 's/^/| /' conftest.$ac_ext >&5
17747
17748( exit $ac_status )
f321ab7f 17749{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
a848cd7e 17750See \`config.log' for more details." >&5
f321ab7f 17751echo "$as_me: error: cannot compute sizeof (char), 77
a848cd7e 17752See \`config.log' for more details." >&2;}
f321ab7f
VS
17753 { (exit 1); exit 1; }; }
17754fi
17755rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17756fi
17757fi
17758rm -f conftest.val
17759else
17760 ac_cv_sizeof_char=0
17761fi
17762fi
f321ab7f
VS
17763echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17764echo "${ECHO_T}$ac_cv_sizeof_char" >&6
a848cd7e
SC
17765cat >>confdefs.h <<_ACEOF
17766#define SIZEOF_CHAR $ac_cv_sizeof_char
17767_ACEOF
17768
17769
f321ab7f
VS
17770echo "$as_me:$LINENO: checking for short" >&5
17771echo $ECHO_N "checking for short... $ECHO_C" >&6
a848cd7e
SC
17772if test "${ac_cv_type_short+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774else
17775 cat >conftest.$ac_ext <<_ACEOF
17776/* confdefs.h. */
17777_ACEOF
17778cat confdefs.h >>conftest.$ac_ext
17779cat >>conftest.$ac_ext <<_ACEOF
17780/* end confdefs.h. */
17781$ac_includes_default
17782int
17783main ()
17784{
f321ab7f 17785if ((short *) 0)
a848cd7e 17786 return 0;
f321ab7f 17787if (sizeof (short))
a848cd7e
SC
17788 return 0;
17789 ;
17790 return 0;
17791}
17792_ACEOF
17793rm -f conftest.$ac_objext
f321ab7f
VS
17794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17795 (eval $ac_compile) 2>conftest.er1
a848cd7e 17796 ac_status=$?
ac1cb8d3
VS
17797 grep -v '^ *+' conftest.er1 >conftest.err
17798 rm -f conftest.er1
17799 cat conftest.err >&5
a848cd7e
SC
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
f321ab7f
VS
17802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
ac1cb8d3
VS
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
a848cd7e
SC
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 ac_cv_type_short=yes
17815else
17816 echo "$as_me: failed program was:" >&5
17817sed 's/^/| /' conftest.$ac_ext >&5
17818
f321ab7f 17819ac_cv_type_short=no
a848cd7e 17820fi
f321ab7f 17821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17822fi
f321ab7f
VS
17823echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17824echo "${ECHO_T}$ac_cv_type_short" >&6
a848cd7e 17825
f321ab7f
VS
17826echo "$as_me:$LINENO: checking size of short" >&5
17827echo $ECHO_N "checking size of short... $ECHO_C" >&6
a848cd7e
SC
17828if test "${ac_cv_sizeof_short+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830else
17831 if test "$ac_cv_type_short" = yes; then
f321ab7f 17832 # The cast to unsigned long works around a bug in the HP C Compiler
a848cd7e
SC
17833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17835 # This bug is HP SR number 8606223364.
17836 if test "$cross_compiling" = yes; then
17837 # Depending upon the size, compute the lo and hi bounds.
17838cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h. */
17844$ac_includes_default
17845int
17846main ()
17847{
f321ab7f 17848static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
a848cd7e
SC
17849test_array [0] = 0
17850
17851 ;
17852 return 0;
17853}
17854_ACEOF
17855rm -f conftest.$ac_objext
f321ab7f
VS
17856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>conftest.er1
a848cd7e 17858 ac_status=$?
ac1cb8d3
VS
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
a848cd7e
SC
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
f321ab7f
VS
17864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
ac1cb8d3
VS
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
a848cd7e
SC
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_lo=0 ac_mid=0
17877 while :; do
17878 cat >conftest.$ac_ext <<_ACEOF
17879/* confdefs.h. */
17880_ACEOF
17881cat confdefs.h >>conftest.$ac_ext
17882cat >>conftest.$ac_ext <<_ACEOF
17883/* end confdefs.h. */
17884$ac_includes_default
17885int
17886main ()
17887{
f321ab7f 17888static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
a848cd7e
SC
17889test_array [0] = 0
17890
17891 ;
17892 return 0;
17893}
17894_ACEOF
17895rm -f conftest.$ac_objext
f321ab7f
VS
17896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17897 (eval $ac_compile) 2>conftest.er1
a848cd7e 17898 ac_status=$?
ac1cb8d3
VS
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
a848cd7e
SC
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
f321ab7f
VS
17904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
ac1cb8d3
VS
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; } &&
17910 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
a848cd7e
SC
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17916 ac_hi=$ac_mid; break
17917else
17918 echo "$as_me: failed program was:" >&5
17919sed 's/^/| /' conftest.$ac_ext >&5
17920
f321ab7f
VS
17921ac_lo=`expr $ac_mid + 1`
17922 if test $ac_lo -le $ac_mid; then
17923 ac_lo= ac_hi=
17924 break
17925 fi
17926 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17927fi
f321ab7f 17928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17929 done
17930else
17931 echo "$as_me: failed program was:" >&5
17932sed 's/^/| /' conftest.$ac_ext >&5
17933
f321ab7f 17934cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
17935/* confdefs.h. */
17936_ACEOF
17937cat confdefs.h >>conftest.$ac_ext
17938cat >>conftest.$ac_ext <<_ACEOF
17939/* end confdefs.h. */
17940$ac_includes_default
17941int
17942main ()
17943{
f321ab7f 17944static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
a848cd7e
SC
17945test_array [0] = 0
17946
17947 ;
17948 return 0;
17949}
17950_ACEOF
17951rm -f conftest.$ac_objext
f321ab7f
VS
17952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17953 (eval $ac_compile) 2>conftest.er1
a848cd7e 17954 ac_status=$?
ac1cb8d3
VS
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
a848cd7e
SC
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
f321ab7f
VS
17960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
ac1cb8d3
VS
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; } &&
17966 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
17967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968 (eval $ac_try) 2>&5
a848cd7e
SC
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; }; then
17972 ac_hi=-1 ac_mid=-1
17973 while :; do
17974 cat >conftest.$ac_ext <<_ACEOF
17975/* confdefs.h. */
17976_ACEOF
17977cat confdefs.h >>conftest.$ac_ext
17978cat >>conftest.$ac_ext <<_ACEOF
17979/* end confdefs.h. */
17980$ac_includes_default
17981int
17982main ()
17983{
f321ab7f 17984static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
a848cd7e
SC
17985test_array [0] = 0
17986
17987 ;
17988 return 0;
17989}
17990_ACEOF
17991rm -f conftest.$ac_objext
f321ab7f
VS
17992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17993 (eval $ac_compile) 2>conftest.er1
a848cd7e 17994 ac_status=$?
ac1cb8d3
VS
17995 grep -v '^ *+' conftest.er1 >conftest.err
17996 rm -f conftest.er1
17997 cat conftest.err >&5
a848cd7e
SC
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
f321ab7f
VS
18000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
ac1cb8d3
VS
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
a848cd7e
SC
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_lo=$ac_mid; break
18013else
18014 echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
f321ab7f
VS
18017ac_hi=`expr '(' $ac_mid ')' - 1`
18018 if test $ac_mid -le $ac_hi; then
18019 ac_lo= ac_hi=
18020 break
18021 fi
18022 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18023fi
f321ab7f 18024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18025 done
18026else
18027 echo "$as_me: failed program was:" >&5
18028sed 's/^/| /' conftest.$ac_ext >&5
18029
f321ab7f 18030ac_lo= ac_hi=
a848cd7e 18031fi
f321ab7f 18032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18033fi
f321ab7f 18034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18035# Binary search between lo and hi bounds.
18036while test "x$ac_lo" != "x$ac_hi"; do
18037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18038 cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044$ac_includes_default
18045int
18046main ()
18047{
f321ab7f 18048static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
a848cd7e
SC
18049test_array [0] = 0
18050
18051 ;
18052 return 0;
18053}
18054_ACEOF
18055rm -f conftest.$ac_objext
f321ab7f
VS
18056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18057 (eval $ac_compile) 2>conftest.er1
a848cd7e 18058 ac_status=$?
ac1cb8d3
VS
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
a848cd7e
SC
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } &&
f321ab7f
VS
18064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
ac1cb8d3
VS
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
a848cd7e
SC
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 ac_hi=$ac_mid
18077else
18078 echo "$as_me: failed program was:" >&5
18079sed 's/^/| /' conftest.$ac_ext >&5
18080
f321ab7f 18081ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 18082fi
f321ab7f 18083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18084done
18085case $ac_lo in
18086?*) ac_cv_sizeof_short=$ac_lo;;
f321ab7f 18087'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
a848cd7e 18088See \`config.log' for more details." >&5
f321ab7f 18089echo "$as_me: error: cannot compute sizeof (short), 77
a848cd7e 18090See \`config.log' for more details." >&2;}
f321ab7f 18091 { (exit 1); exit 1; }; } ;;
a848cd7e 18092esac
f321ab7f
VS
18093else
18094 if test "$cross_compiling" = yes; then
18095 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18096echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18097 { (exit 1); exit 1; }; }
a848cd7e
SC
18098else
18099 cat >conftest.$ac_ext <<_ACEOF
18100/* confdefs.h. */
18101_ACEOF
18102cat confdefs.h >>conftest.$ac_ext
18103cat >>conftest.$ac_ext <<_ACEOF
18104/* end confdefs.h. */
18105$ac_includes_default
f321ab7f
VS
18106long longval () { return (long) (sizeof (short)); }
18107unsigned long ulongval () { return (long) (sizeof (short)); }
a848cd7e
SC
18108#include <stdio.h>
18109#include <stdlib.h>
18110int
18111main ()
18112{
18113
18114 FILE *f = fopen ("conftest.val", "w");
18115 if (! f)
f321ab7f
VS
18116 exit (1);
18117 if (((long) (sizeof (short))) < 0)
a848cd7e 18118 {
f321ab7f
VS
18119 long i = longval ();
18120 if (i != ((long) (sizeof (short))))
18121 exit (1);
a848cd7e
SC
18122 fprintf (f, "%ld\n", i);
18123 }
18124 else
18125 {
f321ab7f
VS
18126 unsigned long i = ulongval ();
18127 if (i != ((long) (sizeof (short))))
18128 exit (1);
a848cd7e
SC
18129 fprintf (f, "%lu\n", i);
18130 }
f321ab7f 18131 exit (ferror (f) || fclose (f) != 0);
a848cd7e
SC
18132
18133 ;
18134 return 0;
18135}
18136_ACEOF
18137rm -f conftest$ac_exeext
f321ab7f
VS
18138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18139 (eval $ac_link) 2>&5
a848cd7e
SC
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
a848cd7e
SC
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18148 ac_cv_sizeof_short=`cat conftest.val`
18149else
18150 echo "$as_me: program exited with status $ac_status" >&5
18151echo "$as_me: failed program was:" >&5
18152sed 's/^/| /' conftest.$ac_ext >&5
18153
18154( exit $ac_status )
f321ab7f 18155{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
a848cd7e 18156See \`config.log' for more details." >&5
f321ab7f 18157echo "$as_me: error: cannot compute sizeof (short), 77
a848cd7e 18158See \`config.log' for more details." >&2;}
f321ab7f
VS
18159 { (exit 1); exit 1; }; }
18160fi
18161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18162fi
18163fi
18164rm -f conftest.val
18165else
18166 ac_cv_sizeof_short=0
18167fi
18168fi
f321ab7f
VS
18169echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18170echo "${ECHO_T}$ac_cv_sizeof_short" >&6
a848cd7e
SC
18171cat >>confdefs.h <<_ACEOF
18172#define SIZEOF_SHORT $ac_cv_sizeof_short
18173_ACEOF
18174
18175
f321ab7f
VS
18176echo "$as_me:$LINENO: checking for void *" >&5
18177echo $ECHO_N "checking for void *... $ECHO_C" >&6
a848cd7e
SC
18178if test "${ac_cv_type_void_p+set}" = set; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18180else
18181 cat >conftest.$ac_ext <<_ACEOF
18182/* confdefs.h. */
18183_ACEOF
18184cat confdefs.h >>conftest.$ac_ext
18185cat >>conftest.$ac_ext <<_ACEOF
18186/* end confdefs.h. */
18187$ac_includes_default
18188int
18189main ()
18190{
f321ab7f 18191if ((void * *) 0)
a848cd7e 18192 return 0;
f321ab7f 18193if (sizeof (void *))
a848cd7e
SC
18194 return 0;
18195 ;
18196 return 0;
18197}
18198_ACEOF
18199rm -f conftest.$ac_objext
f321ab7f
VS
18200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18201 (eval $ac_compile) 2>conftest.er1
a848cd7e 18202 ac_status=$?
ac1cb8d3
VS
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
a848cd7e
SC
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
f321ab7f
VS
18208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
ac1cb8d3
VS
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
a848cd7e
SC
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_cv_type_void_p=yes
18221else
18222 echo "$as_me: failed program was:" >&5
18223sed 's/^/| /' conftest.$ac_ext >&5
18224
f321ab7f 18225ac_cv_type_void_p=no
a848cd7e 18226fi
f321ab7f 18227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18228fi
f321ab7f
VS
18229echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18230echo "${ECHO_T}$ac_cv_type_void_p" >&6
a848cd7e 18231
f321ab7f
VS
18232echo "$as_me:$LINENO: checking size of void *" >&5
18233echo $ECHO_N "checking size of void *... $ECHO_C" >&6
a848cd7e
SC
18234if test "${ac_cv_sizeof_void_p+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236else
18237 if test "$ac_cv_type_void_p" = yes; then
f321ab7f 18238 # The cast to unsigned long works around a bug in the HP C Compiler
a848cd7e
SC
18239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18241 # This bug is HP SR number 8606223364.
18242 if test "$cross_compiling" = yes; then
18243 # Depending upon the size, compute the lo and hi bounds.
18244cat >conftest.$ac_ext <<_ACEOF
18245/* confdefs.h. */
18246_ACEOF
18247cat confdefs.h >>conftest.$ac_ext
18248cat >>conftest.$ac_ext <<_ACEOF
18249/* end confdefs.h. */
18250$ac_includes_default
18251int
18252main ()
18253{
f321ab7f 18254static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
a848cd7e
SC
18255test_array [0] = 0
18256
18257 ;
18258 return 0;
18259}
18260_ACEOF
18261rm -f conftest.$ac_objext
f321ab7f
VS
18262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18263 (eval $ac_compile) 2>conftest.er1
a848cd7e 18264 ac_status=$?
ac1cb8d3
VS
18265 grep -v '^ *+' conftest.er1 >conftest.err
18266 rm -f conftest.er1
18267 cat conftest.err >&5
a848cd7e
SC
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } &&
f321ab7f
VS
18270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
ac1cb8d3
VS
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
a848cd7e
SC
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
18282 ac_lo=0 ac_mid=0
18283 while :; do
18284 cat >conftest.$ac_ext <<_ACEOF
18285/* confdefs.h. */
18286_ACEOF
18287cat confdefs.h >>conftest.$ac_ext
18288cat >>conftest.$ac_ext <<_ACEOF
18289/* end confdefs.h. */
18290$ac_includes_default
18291int
18292main ()
18293{
f321ab7f 18294static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
a848cd7e
SC
18295test_array [0] = 0
18296
18297 ;
18298 return 0;
18299}
18300_ACEOF
18301rm -f conftest.$ac_objext
f321ab7f
VS
18302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18303 (eval $ac_compile) 2>conftest.er1
a848cd7e 18304 ac_status=$?
ac1cb8d3
VS
18305 grep -v '^ *+' conftest.er1 >conftest.err
18306 rm -f conftest.er1
18307 cat conftest.err >&5
a848cd7e
SC
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
f321ab7f
VS
18310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
ac1cb8d3
VS
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; } &&
18316 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
a848cd7e
SC
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_hi=$ac_mid; break
18323else
18324 echo "$as_me: failed program was:" >&5
18325sed 's/^/| /' conftest.$ac_ext >&5
18326
f321ab7f
VS
18327ac_lo=`expr $ac_mid + 1`
18328 if test $ac_lo -le $ac_mid; then
18329 ac_lo= ac_hi=
18330 break
18331 fi
18332 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18333fi
f321ab7f 18334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18335 done
18336else
18337 echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
f321ab7f 18340cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
18341/* confdefs.h. */
18342_ACEOF
18343cat confdefs.h >>conftest.$ac_ext
18344cat >>conftest.$ac_ext <<_ACEOF
18345/* end confdefs.h. */
18346$ac_includes_default
18347int
18348main ()
18349{
f321ab7f 18350static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
a848cd7e
SC
18351test_array [0] = 0
18352
18353 ;
18354 return 0;
18355}
18356_ACEOF
18357rm -f conftest.$ac_objext
f321ab7f
VS
18358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18359 (eval $ac_compile) 2>conftest.er1
a848cd7e 18360 ac_status=$?
ac1cb8d3
VS
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
a848cd7e
SC
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
f321ab7f
VS
18366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
ac1cb8d3
VS
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
a848cd7e
SC
18375 ac_status=$?
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; }; then
18378 ac_hi=-1 ac_mid=-1
18379 while :; do
18380 cat >conftest.$ac_ext <<_ACEOF
18381/* confdefs.h. */
18382_ACEOF
18383cat confdefs.h >>conftest.$ac_ext
18384cat >>conftest.$ac_ext <<_ACEOF
18385/* end confdefs.h. */
18386$ac_includes_default
18387int
18388main ()
18389{
f321ab7f 18390static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
a848cd7e
SC
18391test_array [0] = 0
18392
18393 ;
18394 return 0;
18395}
18396_ACEOF
18397rm -f conftest.$ac_objext
f321ab7f
VS
18398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18399 (eval $ac_compile) 2>conftest.er1
a848cd7e 18400 ac_status=$?
ac1cb8d3
VS
18401 grep -v '^ *+' conftest.er1 >conftest.err
18402 rm -f conftest.er1
18403 cat conftest.err >&5
a848cd7e
SC
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } &&
f321ab7f
VS
18406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
ac1cb8d3
VS
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; } &&
18412 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
a848cd7e
SC
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_lo=$ac_mid; break
18419else
18420 echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
f321ab7f
VS
18423ac_hi=`expr '(' $ac_mid ')' - 1`
18424 if test $ac_mid -le $ac_hi; then
18425 ac_lo= ac_hi=
18426 break
18427 fi
18428 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18429fi
f321ab7f 18430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18431 done
18432else
18433 echo "$as_me: failed program was:" >&5
18434sed 's/^/| /' conftest.$ac_ext >&5
18435
f321ab7f 18436ac_lo= ac_hi=
a848cd7e 18437fi
f321ab7f 18438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18439fi
f321ab7f 18440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18441# Binary search between lo and hi bounds.
18442while test "x$ac_lo" != "x$ac_hi"; do
18443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18444 cat >conftest.$ac_ext <<_ACEOF
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450$ac_includes_default
18451int
18452main ()
18453{
f321ab7f 18454static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
a848cd7e
SC
18455test_array [0] = 0
18456
18457 ;
18458 return 0;
18459}
18460_ACEOF
18461rm -f conftest.$ac_objext
f321ab7f
VS
18462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18463 (eval $ac_compile) 2>conftest.er1
a848cd7e 18464 ac_status=$?
ac1cb8d3
VS
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
a848cd7e
SC
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
f321ab7f
VS
18470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
ac1cb8d3
VS
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } &&
18476 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
a848cd7e
SC
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 ac_hi=$ac_mid
18483else
18484 echo "$as_me: failed program was:" >&5
18485sed 's/^/| /' conftest.$ac_ext >&5
18486
f321ab7f 18487ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 18488fi
f321ab7f 18489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18490done
18491case $ac_lo in
18492?*) ac_cv_sizeof_void_p=$ac_lo;;
f321ab7f 18493'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
a848cd7e 18494See \`config.log' for more details." >&5
f321ab7f 18495echo "$as_me: error: cannot compute sizeof (void *), 77
a848cd7e 18496See \`config.log' for more details." >&2;}
f321ab7f 18497 { (exit 1); exit 1; }; } ;;
a848cd7e 18498esac
f321ab7f
VS
18499else
18500 if test "$cross_compiling" = yes; then
18501 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18502echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18503 { (exit 1); exit 1; }; }
a848cd7e
SC
18504else
18505 cat >conftest.$ac_ext <<_ACEOF
18506/* confdefs.h. */
18507_ACEOF
18508cat confdefs.h >>conftest.$ac_ext
18509cat >>conftest.$ac_ext <<_ACEOF
18510/* end confdefs.h. */
18511$ac_includes_default
f321ab7f
VS
18512long longval () { return (long) (sizeof (void *)); }
18513unsigned long ulongval () { return (long) (sizeof (void *)); }
a848cd7e
SC
18514#include <stdio.h>
18515#include <stdlib.h>
18516int
18517main ()
18518{
18519
18520 FILE *f = fopen ("conftest.val", "w");
18521 if (! f)
f321ab7f
VS
18522 exit (1);
18523 if (((long) (sizeof (void *))) < 0)
a848cd7e 18524 {
f321ab7f
VS
18525 long i = longval ();
18526 if (i != ((long) (sizeof (void *))))
18527 exit (1);
a848cd7e
SC
18528 fprintf (f, "%ld\n", i);
18529 }
18530 else
18531 {
f321ab7f
VS
18532 unsigned long i = ulongval ();
18533 if (i != ((long) (sizeof (void *))))
18534 exit (1);
a848cd7e
SC
18535 fprintf (f, "%lu\n", i);
18536 }
f321ab7f 18537 exit (ferror (f) || fclose (f) != 0);
a848cd7e
SC
18538
18539 ;
18540 return 0;
18541}
18542_ACEOF
18543rm -f conftest$ac_exeext
f321ab7f
VS
18544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545 (eval $ac_link) 2>&5
a848cd7e
SC
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
a848cd7e
SC
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_sizeof_void_p=`cat conftest.val`
18555else
18556 echo "$as_me: program exited with status $ac_status" >&5
18557echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
18560( exit $ac_status )
f321ab7f 18561{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
a848cd7e 18562See \`config.log' for more details." >&5
f321ab7f 18563echo "$as_me: error: cannot compute sizeof (void *), 77
a848cd7e 18564See \`config.log' for more details." >&2;}
f321ab7f
VS
18565 { (exit 1); exit 1; }; }
18566fi
18567rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18568fi
18569fi
18570rm -f conftest.val
18571else
18572 ac_cv_sizeof_void_p=0
18573fi
18574fi
f321ab7f
VS
18575echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18576echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
a848cd7e
SC
18577cat >>confdefs.h <<_ACEOF
18578#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18579_ACEOF
18580
18581
f321ab7f
VS
18582echo "$as_me:$LINENO: checking for int" >&5
18583echo $ECHO_N "checking for int... $ECHO_C" >&6
a848cd7e
SC
18584if test "${ac_cv_type_int+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18586else
18587 cat >conftest.$ac_ext <<_ACEOF
18588/* confdefs.h. */
18589_ACEOF
18590cat confdefs.h >>conftest.$ac_ext
18591cat >>conftest.$ac_ext <<_ACEOF
18592/* end confdefs.h. */
18593$ac_includes_default
18594int
18595main ()
18596{
f321ab7f 18597if ((int *) 0)
a848cd7e 18598 return 0;
f321ab7f 18599if (sizeof (int))
a848cd7e
SC
18600 return 0;
18601 ;
18602 return 0;
18603}
18604_ACEOF
18605rm -f conftest.$ac_objext
f321ab7f
VS
18606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18607 (eval $ac_compile) 2>conftest.er1
a848cd7e 18608 ac_status=$?
ac1cb8d3
VS
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
a848cd7e
SC
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
f321ab7f
VS
18614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
ac1cb8d3
VS
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; } &&
18620 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
a848cd7e
SC
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_type_int=yes
18627else
18628 echo "$as_me: failed program was:" >&5
18629sed 's/^/| /' conftest.$ac_ext >&5
18630
f321ab7f 18631ac_cv_type_int=no
a848cd7e 18632fi
f321ab7f 18633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18634fi
f321ab7f
VS
18635echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18636echo "${ECHO_T}$ac_cv_type_int" >&6
a848cd7e 18637
f321ab7f
VS
18638echo "$as_me:$LINENO: checking size of int" >&5
18639echo $ECHO_N "checking size of int... $ECHO_C" >&6
a848cd7e
SC
18640if test "${ac_cv_sizeof_int+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18642else
18643 if test "$ac_cv_type_int" = yes; then
f321ab7f 18644 # The cast to unsigned long works around a bug in the HP C Compiler
a848cd7e
SC
18645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18647 # This bug is HP SR number 8606223364.
18648 if test "$cross_compiling" = yes; then
18649 # Depending upon the size, compute the lo and hi bounds.
18650cat >conftest.$ac_ext <<_ACEOF
18651/* confdefs.h. */
18652_ACEOF
18653cat confdefs.h >>conftest.$ac_ext
18654cat >>conftest.$ac_ext <<_ACEOF
18655/* end confdefs.h. */
18656$ac_includes_default
18657int
18658main ()
18659{
f321ab7f 18660static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
a848cd7e
SC
18661test_array [0] = 0
18662
18663 ;
18664 return 0;
18665}
18666_ACEOF
18667rm -f conftest.$ac_objext
f321ab7f
VS
18668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18669 (eval $ac_compile) 2>conftest.er1
a848cd7e 18670 ac_status=$?
ac1cb8d3
VS
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
a848cd7e
SC
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } &&
f321ab7f
VS
18676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
ac1cb8d3
VS
18679 ac_status=$?
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; } &&
18682 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
a848cd7e
SC
18685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; }; then
18688 ac_lo=0 ac_mid=0
18689 while :; do
18690 cat >conftest.$ac_ext <<_ACEOF
18691/* confdefs.h. */
18692_ACEOF
18693cat confdefs.h >>conftest.$ac_ext
18694cat >>conftest.$ac_ext <<_ACEOF
18695/* end confdefs.h. */
18696$ac_includes_default
18697int
18698main ()
18699{
f321ab7f 18700static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
a848cd7e
SC
18701test_array [0] = 0
18702
18703 ;
18704 return 0;
18705}
18706_ACEOF
18707rm -f conftest.$ac_objext
f321ab7f
VS
18708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18709 (eval $ac_compile) 2>conftest.er1
a848cd7e 18710 ac_status=$?
ac1cb8d3
VS
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
a848cd7e
SC
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
f321ab7f
VS
18716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
ac1cb8d3
VS
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; } &&
18722 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
a848cd7e
SC
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
18728 ac_hi=$ac_mid; break
18729else
18730 echo "$as_me: failed program was:" >&5
18731sed 's/^/| /' conftest.$ac_ext >&5
18732
f321ab7f
VS
18733ac_lo=`expr $ac_mid + 1`
18734 if test $ac_lo -le $ac_mid; then
18735 ac_lo= ac_hi=
18736 break
18737 fi
18738 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18739fi
f321ab7f 18740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18741 done
18742else
18743 echo "$as_me: failed program was:" >&5
18744sed 's/^/| /' conftest.$ac_ext >&5
18745
f321ab7f 18746cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
18747/* confdefs.h. */
18748_ACEOF
18749cat confdefs.h >>conftest.$ac_ext
18750cat >>conftest.$ac_ext <<_ACEOF
18751/* end confdefs.h. */
18752$ac_includes_default
18753int
18754main ()
18755{
f321ab7f 18756static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
a848cd7e
SC
18757test_array [0] = 0
18758
18759 ;
18760 return 0;
18761}
18762_ACEOF
18763rm -f conftest.$ac_objext
f321ab7f
VS
18764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18765 (eval $ac_compile) 2>conftest.er1
a848cd7e 18766 ac_status=$?
ac1cb8d3
VS
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
a848cd7e
SC
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
f321ab7f
VS
18772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
ac1cb8d3
VS
18775 ac_status=$?
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } &&
18778 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
a848cd7e
SC
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; }; then
18784 ac_hi=-1 ac_mid=-1
18785 while :; do
18786 cat >conftest.$ac_ext <<_ACEOF
18787/* confdefs.h. */
18788_ACEOF
18789cat confdefs.h >>conftest.$ac_ext
18790cat >>conftest.$ac_ext <<_ACEOF
18791/* end confdefs.h. */
18792$ac_includes_default
18793int
18794main ()
18795{
f321ab7f 18796static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
a848cd7e
SC
18797test_array [0] = 0
18798
18799 ;
18800 return 0;
18801}
18802_ACEOF
18803rm -f conftest.$ac_objext
f321ab7f
VS
18804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18805 (eval $ac_compile) 2>conftest.er1
a848cd7e 18806 ac_status=$?
ac1cb8d3
VS
18807 grep -v '^ *+' conftest.er1 >conftest.err
18808 rm -f conftest.er1
18809 cat conftest.err >&5
a848cd7e
SC
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } &&
f321ab7f
VS
18812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
ac1cb8d3
VS
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; } &&
18818 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
a848cd7e
SC
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18824 ac_lo=$ac_mid; break
18825else
18826 echo "$as_me: failed program was:" >&5
18827sed 's/^/| /' conftest.$ac_ext >&5
18828
f321ab7f
VS
18829ac_hi=`expr '(' $ac_mid ')' - 1`
18830 if test $ac_mid -le $ac_hi; then
18831 ac_lo= ac_hi=
18832 break
18833 fi
18834 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18835fi
f321ab7f 18836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18837 done
18838else
18839 echo "$as_me: failed program was:" >&5
18840sed 's/^/| /' conftest.$ac_ext >&5
18841
f321ab7f 18842ac_lo= ac_hi=
a848cd7e 18843fi
f321ab7f 18844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18845fi
f321ab7f 18846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18847# Binary search between lo and hi bounds.
18848while test "x$ac_lo" != "x$ac_hi"; do
18849 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18850 cat >conftest.$ac_ext <<_ACEOF
18851/* confdefs.h. */
18852_ACEOF
18853cat confdefs.h >>conftest.$ac_ext
18854cat >>conftest.$ac_ext <<_ACEOF
18855/* end confdefs.h. */
18856$ac_includes_default
18857int
18858main ()
18859{
f321ab7f 18860static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
a848cd7e
SC
18861test_array [0] = 0
18862
18863 ;
18864 return 0;
18865}
18866_ACEOF
18867rm -f conftest.$ac_objext
f321ab7f
VS
18868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18869 (eval $ac_compile) 2>conftest.er1
a848cd7e 18870 ac_status=$?
ac1cb8d3
VS
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
a848cd7e
SC
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
f321ab7f
VS
18876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
ac1cb8d3
VS
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
a848cd7e
SC
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_hi=$ac_mid
18889else
18890 echo "$as_me: failed program was:" >&5
18891sed 's/^/| /' conftest.$ac_ext >&5
18892
f321ab7f 18893ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 18894fi
f321ab7f 18895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18896done
18897case $ac_lo in
18898?*) ac_cv_sizeof_int=$ac_lo;;
f321ab7f 18899'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
a848cd7e 18900See \`config.log' for more details." >&5
f321ab7f 18901echo "$as_me: error: cannot compute sizeof (int), 77
a848cd7e 18902See \`config.log' for more details." >&2;}
f321ab7f 18903 { (exit 1); exit 1; }; } ;;
a848cd7e 18904esac
f321ab7f
VS
18905else
18906 if test "$cross_compiling" = yes; then
18907 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18908echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18909 { (exit 1); exit 1; }; }
a848cd7e
SC
18910else
18911 cat >conftest.$ac_ext <<_ACEOF
18912/* confdefs.h. */
18913_ACEOF
18914cat confdefs.h >>conftest.$ac_ext
18915cat >>conftest.$ac_ext <<_ACEOF
18916/* end confdefs.h. */
18917$ac_includes_default
f321ab7f
VS
18918long longval () { return (long) (sizeof (int)); }
18919unsigned long ulongval () { return (long) (sizeof (int)); }
a848cd7e
SC
18920#include <stdio.h>
18921#include <stdlib.h>
18922int
18923main ()
18924{
18925
18926 FILE *f = fopen ("conftest.val", "w");
18927 if (! f)
f321ab7f
VS
18928 exit (1);
18929 if (((long) (sizeof (int))) < 0)
a848cd7e 18930 {
f321ab7f
VS
18931 long i = longval ();
18932 if (i != ((long) (sizeof (int))))
18933 exit (1);
a848cd7e
SC
18934 fprintf (f, "%ld\n", i);
18935 }
18936 else
18937 {
f321ab7f
VS
18938 unsigned long i = ulongval ();
18939 if (i != ((long) (sizeof (int))))
18940 exit (1);
a848cd7e
SC
18941 fprintf (f, "%lu\n", i);
18942 }
f321ab7f 18943 exit (ferror (f) || fclose (f) != 0);
a848cd7e
SC
18944
18945 ;
18946 return 0;
18947}
18948_ACEOF
18949rm -f conftest$ac_exeext
f321ab7f
VS
18950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18951 (eval $ac_link) 2>&5
a848cd7e
SC
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
a848cd7e
SC
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_cv_sizeof_int=`cat conftest.val`
18961else
18962 echo "$as_me: program exited with status $ac_status" >&5
18963echo "$as_me: failed program was:" >&5
18964sed 's/^/| /' conftest.$ac_ext >&5
18965
18966( exit $ac_status )
f321ab7f 18967{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
a848cd7e 18968See \`config.log' for more details." >&5
f321ab7f 18969echo "$as_me: error: cannot compute sizeof (int), 77
a848cd7e 18970See \`config.log' for more details." >&2;}
f321ab7f
VS
18971 { (exit 1); exit 1; }; }
18972fi
18973rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18974fi
18975fi
18976rm -f conftest.val
18977else
18978 ac_cv_sizeof_int=0
18979fi
18980fi
f321ab7f
VS
18981echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18982echo "${ECHO_T}$ac_cv_sizeof_int" >&6
a848cd7e
SC
18983cat >>confdefs.h <<_ACEOF
18984#define SIZEOF_INT $ac_cv_sizeof_int
18985_ACEOF
18986
18987
f321ab7f
VS
18988echo "$as_me:$LINENO: checking for long" >&5
18989echo $ECHO_N "checking for long... $ECHO_C" >&6
a848cd7e
SC
18990if test "${ac_cv_type_long+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18992else
18993 cat >conftest.$ac_ext <<_ACEOF
18994/* confdefs.h. */
18995_ACEOF
18996cat confdefs.h >>conftest.$ac_ext
18997cat >>conftest.$ac_ext <<_ACEOF
18998/* end confdefs.h. */
18999$ac_includes_default
19000int
19001main ()
19002{
f321ab7f 19003if ((long *) 0)
a848cd7e 19004 return 0;
f321ab7f 19005if (sizeof (long))
a848cd7e
SC
19006 return 0;
19007 ;
19008 return 0;
19009}
19010_ACEOF
19011rm -f conftest.$ac_objext
f321ab7f
VS
19012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19013 (eval $ac_compile) 2>conftest.er1
a848cd7e 19014 ac_status=$?
ac1cb8d3
VS
19015 grep -v '^ *+' conftest.er1 >conftest.err
19016 rm -f conftest.er1
19017 cat conftest.err >&5
a848cd7e
SC
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } &&
f321ab7f
VS
19020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
ac1cb8d3
VS
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; } &&
19026 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
a848cd7e
SC
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; }; then
19032 ac_cv_type_long=yes
19033else
19034 echo "$as_me: failed program was:" >&5
19035sed 's/^/| /' conftest.$ac_ext >&5
19036
f321ab7f 19037ac_cv_type_long=no
a848cd7e 19038fi
f321ab7f 19039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19040fi
f321ab7f
VS
19041echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19042echo "${ECHO_T}$ac_cv_type_long" >&6
a848cd7e 19043
f321ab7f
VS
19044echo "$as_me:$LINENO: checking size of long" >&5
19045echo $ECHO_N "checking size of long... $ECHO_C" >&6
a848cd7e
SC
19046if test "${ac_cv_sizeof_long+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048else
19049 if test "$ac_cv_type_long" = yes; then
f321ab7f 19050 # The cast to unsigned long works around a bug in the HP C Compiler
a848cd7e
SC
19051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19053 # This bug is HP SR number 8606223364.
19054 if test "$cross_compiling" = yes; then
19055 # Depending upon the size, compute the lo and hi bounds.
19056cat >conftest.$ac_ext <<_ACEOF
19057/* confdefs.h. */
19058_ACEOF
19059cat confdefs.h >>conftest.$ac_ext
19060cat >>conftest.$ac_ext <<_ACEOF
19061/* end confdefs.h. */
19062$ac_includes_default
19063int
19064main ()
19065{
f321ab7f 19066static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
a848cd7e
SC
19067test_array [0] = 0
19068
19069 ;
19070 return 0;
19071}
19072_ACEOF
19073rm -f conftest.$ac_objext
f321ab7f
VS
19074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19075 (eval $ac_compile) 2>conftest.er1
a848cd7e 19076 ac_status=$?
ac1cb8d3
VS
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
a848cd7e
SC
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
f321ab7f
VS
19082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
ac1cb8d3
VS
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; } &&
19088 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
a848cd7e
SC
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
19094 ac_lo=0 ac_mid=0
19095 while :; do
19096 cat >conftest.$ac_ext <<_ACEOF
19097/* confdefs.h. */
19098_ACEOF
19099cat confdefs.h >>conftest.$ac_ext
19100cat >>conftest.$ac_ext <<_ACEOF
19101/* end confdefs.h. */
19102$ac_includes_default
19103int
19104main ()
19105{
f321ab7f 19106static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
a848cd7e
SC
19107test_array [0] = 0
19108
19109 ;
19110 return 0;
19111}
19112_ACEOF
19113rm -f conftest.$ac_objext
f321ab7f
VS
19114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19115 (eval $ac_compile) 2>conftest.er1
a848cd7e 19116 ac_status=$?
ac1cb8d3
VS
19117 grep -v '^ *+' conftest.er1 >conftest.err
19118 rm -f conftest.er1
19119 cat conftest.err >&5
a848cd7e
SC
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
f321ab7f
VS
19122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
ac1cb8d3
VS
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; } &&
19128 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
a848cd7e
SC
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
19134 ac_hi=$ac_mid; break
19135else
19136 echo "$as_me: failed program was:" >&5
19137sed 's/^/| /' conftest.$ac_ext >&5
19138
f321ab7f
VS
19139ac_lo=`expr $ac_mid + 1`
19140 if test $ac_lo -le $ac_mid; then
19141 ac_lo= ac_hi=
19142 break
19143 fi
19144 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19145fi
f321ab7f 19146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19147 done
19148else
19149 echo "$as_me: failed program was:" >&5
19150sed 's/^/| /' conftest.$ac_ext >&5
19151
f321ab7f 19152cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
19153/* confdefs.h. */
19154_ACEOF
19155cat confdefs.h >>conftest.$ac_ext
19156cat >>conftest.$ac_ext <<_ACEOF
19157/* end confdefs.h. */
19158$ac_includes_default
19159int
19160main ()
19161{
f321ab7f 19162static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
a848cd7e
SC
19163test_array [0] = 0
19164
19165 ;
19166 return 0;
19167}
19168_ACEOF
19169rm -f conftest.$ac_objext
f321ab7f
VS
19170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19171 (eval $ac_compile) 2>conftest.er1
a848cd7e 19172 ac_status=$?
ac1cb8d3
VS
19173 grep -v '^ *+' conftest.er1 >conftest.err
19174 rm -f conftest.er1
19175 cat conftest.err >&5
a848cd7e
SC
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } &&
f321ab7f
VS
19178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
ac1cb8d3
VS
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
a848cd7e
SC
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_hi=-1 ac_mid=-1
19191 while :; do
19192 cat >conftest.$ac_ext <<_ACEOF
19193/* confdefs.h. */
19194_ACEOF
19195cat confdefs.h >>conftest.$ac_ext
19196cat >>conftest.$ac_ext <<_ACEOF
19197/* end confdefs.h. */
19198$ac_includes_default
19199int
19200main ()
19201{
f321ab7f 19202static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
a848cd7e
SC
19203test_array [0] = 0
19204
19205 ;
19206 return 0;
19207}
19208_ACEOF
19209rm -f conftest.$ac_objext
f321ab7f
VS
19210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19211 (eval $ac_compile) 2>conftest.er1
a848cd7e 19212 ac_status=$?
ac1cb8d3
VS
19213 grep -v '^ *+' conftest.er1 >conftest.err
19214 rm -f conftest.er1
19215 cat conftest.err >&5
a848cd7e
SC
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
f321ab7f
VS
19218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
ac1cb8d3
VS
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
a848cd7e
SC
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_lo=$ac_mid; break
19231else
19232 echo "$as_me: failed program was:" >&5
19233sed 's/^/| /' conftest.$ac_ext >&5
19234
f321ab7f
VS
19235ac_hi=`expr '(' $ac_mid ')' - 1`
19236 if test $ac_mid -le $ac_hi; then
19237 ac_lo= ac_hi=
19238 break
19239 fi
19240 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19241fi
f321ab7f 19242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19243 done
19244else
19245 echo "$as_me: failed program was:" >&5
19246sed 's/^/| /' conftest.$ac_ext >&5
19247
f321ab7f 19248ac_lo= ac_hi=
a848cd7e 19249fi
f321ab7f 19250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19251fi
f321ab7f 19252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19253# Binary search between lo and hi bounds.
19254while test "x$ac_lo" != "x$ac_hi"; do
19255 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19256 cat >conftest.$ac_ext <<_ACEOF
19257/* confdefs.h. */
19258_ACEOF
19259cat confdefs.h >>conftest.$ac_ext
19260cat >>conftest.$ac_ext <<_ACEOF
19261/* end confdefs.h. */
19262$ac_includes_default
19263int
19264main ()
19265{
f321ab7f 19266static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
a848cd7e
SC
19267test_array [0] = 0
19268
19269 ;
19270 return 0;
19271}
19272_ACEOF
19273rm -f conftest.$ac_objext
f321ab7f
VS
19274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
a848cd7e 19276 ac_status=$?
ac1cb8d3
VS
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
a848cd7e
SC
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
f321ab7f
VS
19282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
ac1cb8d3
VS
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
a848cd7e
SC
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_hi=$ac_mid
19295else
19296 echo "$as_me: failed program was:" >&5
19297sed 's/^/| /' conftest.$ac_ext >&5
19298
f321ab7f 19299ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 19300fi
f321ab7f 19301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19302done
19303case $ac_lo in
19304?*) ac_cv_sizeof_long=$ac_lo;;
f321ab7f 19305'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
a848cd7e 19306See \`config.log' for more details." >&5
f321ab7f 19307echo "$as_me: error: cannot compute sizeof (long), 77
a848cd7e 19308See \`config.log' for more details." >&2;}
f321ab7f 19309 { (exit 1); exit 1; }; } ;;
a848cd7e 19310esac
f321ab7f
VS
19311else
19312 if test "$cross_compiling" = yes; then
19313 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19314echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19315 { (exit 1); exit 1; }; }
a848cd7e
SC
19316else
19317 cat >conftest.$ac_ext <<_ACEOF
19318/* confdefs.h. */
19319_ACEOF
19320cat confdefs.h >>conftest.$ac_ext
19321cat >>conftest.$ac_ext <<_ACEOF
19322/* end confdefs.h. */
19323$ac_includes_default
f321ab7f
VS
19324long longval () { return (long) (sizeof (long)); }
19325unsigned long ulongval () { return (long) (sizeof (long)); }
a848cd7e
SC
19326#include <stdio.h>
19327#include <stdlib.h>
19328int
19329main ()
19330{
19331
19332 FILE *f = fopen ("conftest.val", "w");
19333 if (! f)
f321ab7f
VS
19334 exit (1);
19335 if (((long) (sizeof (long))) < 0)
a848cd7e 19336 {
f321ab7f
VS
19337 long i = longval ();
19338 if (i != ((long) (sizeof (long))))
19339 exit (1);
a848cd7e
SC
19340 fprintf (f, "%ld\n", i);
19341 }
19342 else
19343 {
f321ab7f
VS
19344 unsigned long i = ulongval ();
19345 if (i != ((long) (sizeof (long))))
19346 exit (1);
a848cd7e
SC
19347 fprintf (f, "%lu\n", i);
19348 }
f321ab7f 19349 exit (ferror (f) || fclose (f) != 0);
a848cd7e
SC
19350
19351 ;
19352 return 0;
19353}
19354_ACEOF
19355rm -f conftest$ac_exeext
f321ab7f
VS
19356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357 (eval $ac_link) 2>&5
a848cd7e
SC
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
a848cd7e
SC
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
19366 ac_cv_sizeof_long=`cat conftest.val`
19367else
19368 echo "$as_me: program exited with status $ac_status" >&5
19369echo "$as_me: failed program was:" >&5
19370sed 's/^/| /' conftest.$ac_ext >&5
19371
19372( exit $ac_status )
f321ab7f 19373{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
a848cd7e 19374See \`config.log' for more details." >&5
f321ab7f 19375echo "$as_me: error: cannot compute sizeof (long), 77
a848cd7e 19376See \`config.log' for more details." >&2;}
f321ab7f
VS
19377 { (exit 1); exit 1; }; }
19378fi
19379rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19380fi
19381fi
19382rm -f conftest.val
19383else
19384 ac_cv_sizeof_long=0
19385fi
19386fi
f321ab7f
VS
19387echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19388echo "${ECHO_T}$ac_cv_sizeof_long" >&6
a848cd7e
SC
19389cat >>confdefs.h <<_ACEOF
19390#define SIZEOF_LONG $ac_cv_sizeof_long
19391_ACEOF
19392
19393
f321ab7f
VS
19394echo "$as_me:$LINENO: checking for size_t" >&5
19395echo $ECHO_N "checking for size_t... $ECHO_C" >&6
a848cd7e
SC
19396if test "${ac_cv_type_size_t+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398else
19399 cat >conftest.$ac_ext <<_ACEOF
19400/* confdefs.h. */
19401_ACEOF
19402cat confdefs.h >>conftest.$ac_ext
19403cat >>conftest.$ac_ext <<_ACEOF
19404/* end confdefs.h. */
19405$ac_includes_default
19406int
19407main ()
19408{
f321ab7f 19409if ((size_t *) 0)
a848cd7e 19410 return 0;
f321ab7f 19411if (sizeof (size_t))
a848cd7e
SC
19412 return 0;
19413 ;
19414 return 0;
19415}
19416_ACEOF
19417rm -f conftest.$ac_objext
f321ab7f
VS
19418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19419 (eval $ac_compile) 2>conftest.er1
a848cd7e 19420 ac_status=$?
ac1cb8d3
VS
19421 grep -v '^ *+' conftest.er1 >conftest.err
19422 rm -f conftest.er1
19423 cat conftest.err >&5
a848cd7e
SC
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
f321ab7f
VS
19426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
ac1cb8d3
VS
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
a848cd7e
SC
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_type_size_t=yes
19439else
19440 echo "$as_me: failed program was:" >&5
19441sed 's/^/| /' conftest.$ac_ext >&5
19442
f321ab7f 19443ac_cv_type_size_t=no
a848cd7e 19444fi
f321ab7f 19445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19446fi
f321ab7f
VS
19447echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19448echo "${ECHO_T}$ac_cv_type_size_t" >&6
a848cd7e 19449
f321ab7f
VS
19450echo "$as_me:$LINENO: checking size of size_t" >&5
19451echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
a848cd7e
SC
19452if test "${ac_cv_sizeof_size_t+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19454else
19455 if test "$ac_cv_type_size_t" = yes; then
f321ab7f 19456 # The cast to unsigned long works around a bug in the HP C Compiler
a848cd7e
SC
19457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19459 # This bug is HP SR number 8606223364.
19460 if test "$cross_compiling" = yes; then
19461 # Depending upon the size, compute the lo and hi bounds.
19462cat >conftest.$ac_ext <<_ACEOF
19463/* confdefs.h. */
19464_ACEOF
19465cat confdefs.h >>conftest.$ac_ext
19466cat >>conftest.$ac_ext <<_ACEOF
19467/* end confdefs.h. */
19468$ac_includes_default
19469int
19470main ()
19471{
f321ab7f 19472static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
a848cd7e
SC
19473test_array [0] = 0
19474
19475 ;
19476 return 0;
19477}
19478_ACEOF
19479rm -f conftest.$ac_objext
f321ab7f
VS
19480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19481 (eval $ac_compile) 2>conftest.er1
a848cd7e 19482 ac_status=$?
ac1cb8d3
VS
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
a848cd7e
SC
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
f321ab7f
VS
19488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
ac1cb8d3
VS
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
a848cd7e
SC
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_lo=0 ac_mid=0
19501 while :; do
19502 cat >conftest.$ac_ext <<_ACEOF
19503/* confdefs.h. */
19504_ACEOF
19505cat confdefs.h >>conftest.$ac_ext
19506cat >>conftest.$ac_ext <<_ACEOF
19507/* end confdefs.h. */
19508$ac_includes_default
19509int
19510main ()
19511{
f321ab7f 19512static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
a848cd7e
SC
19513test_array [0] = 0
19514
19515 ;
19516 return 0;
19517}
19518_ACEOF
19519rm -f conftest.$ac_objext
f321ab7f
VS
19520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19521 (eval $ac_compile) 2>conftest.er1
a848cd7e 19522 ac_status=$?
ac1cb8d3
VS
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
a848cd7e
SC
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } &&
f321ab7f
VS
19528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
ac1cb8d3
VS
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
a848cd7e
SC
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19540 ac_hi=$ac_mid; break
19541else
19542 echo "$as_me: failed program was:" >&5
19543sed 's/^/| /' conftest.$ac_ext >&5
19544
f321ab7f
VS
19545ac_lo=`expr $ac_mid + 1`
19546 if test $ac_lo -le $ac_mid; then
19547 ac_lo= ac_hi=
19548 break
19549 fi
19550 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19551fi
f321ab7f 19552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19553 done
19554else
19555 echo "$as_me: failed program was:" >&5
19556sed 's/^/| /' conftest.$ac_ext >&5
19557
f321ab7f 19558cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
19559/* confdefs.h. */
19560_ACEOF
19561cat confdefs.h >>conftest.$ac_ext
19562cat >>conftest.$ac_ext <<_ACEOF
19563/* end confdefs.h. */
19564$ac_includes_default
19565int
19566main ()
19567{
f321ab7f 19568static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
a848cd7e
SC
19569test_array [0] = 0
19570
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575rm -f conftest.$ac_objext
f321ab7f
VS
19576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19577 (eval $ac_compile) 2>conftest.er1
a848cd7e 19578 ac_status=$?
ac1cb8d3
VS
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
a848cd7e
SC
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
f321ab7f
VS
19584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
ac1cb8d3
VS
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
a848cd7e
SC
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 ac_hi=-1 ac_mid=-1
19597 while :; do
19598 cat >conftest.$ac_ext <<_ACEOF
19599/* confdefs.h. */
19600_ACEOF
19601cat confdefs.h >>conftest.$ac_ext
19602cat >>conftest.$ac_ext <<_ACEOF
19603/* end confdefs.h. */
19604$ac_includes_default
19605int
19606main ()
19607{
f321ab7f 19608static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
a848cd7e
SC
19609test_array [0] = 0
19610
19611 ;
19612 return 0;
19613}
19614_ACEOF
19615rm -f conftest.$ac_objext
f321ab7f
VS
19616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617 (eval $ac_compile) 2>conftest.er1
a848cd7e 19618 ac_status=$?
ac1cb8d3
VS
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
a848cd7e
SC
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
f321ab7f
VS
19624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626 (eval $ac_try) 2>&5
ac1cb8d3
VS
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; } &&
19630 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
a848cd7e
SC
19633 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_lo=$ac_mid; break
19637else
19638 echo "$as_me: failed program was:" >&5
19639sed 's/^/| /' conftest.$ac_ext >&5
19640
f321ab7f
VS
19641ac_hi=`expr '(' $ac_mid ')' - 1`
19642 if test $ac_mid -le $ac_hi; then
19643 ac_lo= ac_hi=
19644 break
19645 fi
19646 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19647fi
f321ab7f 19648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19649 done
19650else
19651 echo "$as_me: failed program was:" >&5
19652sed 's/^/| /' conftest.$ac_ext >&5
19653
f321ab7f 19654ac_lo= ac_hi=
a848cd7e 19655fi
f321ab7f 19656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19657fi
f321ab7f 19658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19659# Binary search between lo and hi bounds.
19660while test "x$ac_lo" != "x$ac_hi"; do
19661 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19662 cat >conftest.$ac_ext <<_ACEOF
19663/* confdefs.h. */
19664_ACEOF
19665cat confdefs.h >>conftest.$ac_ext
19666cat >>conftest.$ac_ext <<_ACEOF
19667/* end confdefs.h. */
19668$ac_includes_default
19669int
19670main ()
19671{
f321ab7f 19672static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
a848cd7e
SC
19673test_array [0] = 0
19674
19675 ;
19676 return 0;
19677}
19678_ACEOF
19679rm -f conftest.$ac_objext
f321ab7f
VS
19680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19681 (eval $ac_compile) 2>conftest.er1
a848cd7e 19682 ac_status=$?
ac1cb8d3
VS
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
a848cd7e
SC
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
f321ab7f
VS
19688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
ac1cb8d3
VS
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; } &&
19694 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
a848cd7e
SC
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
19700 ac_hi=$ac_mid
19701else
19702 echo "$as_me: failed program was:" >&5
19703sed 's/^/| /' conftest.$ac_ext >&5
19704
f321ab7f 19705ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 19706fi
f321ab7f 19707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19708done
19709case $ac_lo in
19710?*) ac_cv_sizeof_size_t=$ac_lo;;
f321ab7f 19711'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
a848cd7e 19712See \`config.log' for more details." >&5
f321ab7f 19713echo "$as_me: error: cannot compute sizeof (size_t), 77
a848cd7e 19714See \`config.log' for more details." >&2;}
f321ab7f 19715 { (exit 1); exit 1; }; } ;;
a848cd7e 19716esac
f321ab7f
VS
19717else
19718 if test "$cross_compiling" = yes; then
19719 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19720echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19721 { (exit 1); exit 1; }; }
a848cd7e
SC
19722else
19723 cat >conftest.$ac_ext <<_ACEOF
19724/* confdefs.h. */
19725_ACEOF
19726cat confdefs.h >>conftest.$ac_ext
19727cat >>conftest.$ac_ext <<_ACEOF
19728/* end confdefs.h. */
19729$ac_includes_default
f321ab7f
VS
19730long longval () { return (long) (sizeof (size_t)); }
19731unsigned long ulongval () { return (long) (sizeof (size_t)); }
a848cd7e
SC
19732#include <stdio.h>
19733#include <stdlib.h>
19734int
19735main ()
19736{
19737
19738 FILE *f = fopen ("conftest.val", "w");
19739 if (! f)
f321ab7f
VS
19740 exit (1);
19741 if (((long) (sizeof (size_t))) < 0)
a848cd7e 19742 {
f321ab7f
VS
19743 long i = longval ();
19744 if (i != ((long) (sizeof (size_t))))
19745 exit (1);
a848cd7e
SC
19746 fprintf (f, "%ld\n", i);
19747 }
19748 else
19749 {
f321ab7f
VS
19750 unsigned long i = ulongval ();
19751 if (i != ((long) (sizeof (size_t))))
19752 exit (1);
a848cd7e
SC
19753 fprintf (f, "%lu\n", i);
19754 }
f321ab7f 19755 exit (ferror (f) || fclose (f) != 0);
a848cd7e
SC
19756
19757 ;
19758 return 0;
19759}
19760_ACEOF
19761rm -f conftest$ac_exeext
f321ab7f
VS
19762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19763 (eval $ac_link) 2>&5
a848cd7e
SC
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
19767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19768 (eval $ac_try) 2>&5
a848cd7e
SC
19769 ac_status=$?
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; }; then
19772 ac_cv_sizeof_size_t=`cat conftest.val`
19773else
19774 echo "$as_me: program exited with status $ac_status" >&5
19775echo "$as_me: failed program was:" >&5
19776sed 's/^/| /' conftest.$ac_ext >&5
19777
19778( exit $ac_status )
f321ab7f 19779{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
a848cd7e 19780See \`config.log' for more details." >&5
f321ab7f 19781echo "$as_me: error: cannot compute sizeof (size_t), 77
a848cd7e 19782See \`config.log' for more details." >&2;}
f321ab7f
VS
19783 { (exit 1); exit 1; }; }
19784fi
19785rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19786fi
19787fi
19788rm -f conftest.val
19789else
19790 ac_cv_sizeof_size_t=0
19791fi
19792fi
f321ab7f
VS
19793echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19794echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
a848cd7e
SC
19795cat >>confdefs.h <<_ACEOF
19796#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19797_ACEOF
19798
19799
19800
19801case "${host}" in
19802 arm-*-linux* )
f321ab7f
VS
19803 echo "$as_me:$LINENO: checking for long long" >&5
19804echo $ECHO_N "checking for long long... $ECHO_C" >&6
a848cd7e
SC
19805if test "${ac_cv_type_long_long+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807else
19808 cat >conftest.$ac_ext <<_ACEOF
19809/* confdefs.h. */
19810_ACEOF
19811cat confdefs.h >>conftest.$ac_ext
19812cat >>conftest.$ac_ext <<_ACEOF
19813/* end confdefs.h. */
19814$ac_includes_default
19815int
19816main ()
19817{
f321ab7f 19818if ((long long *) 0)
a848cd7e 19819 return 0;
f321ab7f 19820if (sizeof (long long))
a848cd7e
SC
19821 return 0;
19822 ;
19823 return 0;
19824}
19825_ACEOF
19826rm -f conftest.$ac_objext
f321ab7f
VS
19827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19828 (eval $ac_compile) 2>conftest.er1
a848cd7e 19829 ac_status=$?
ac1cb8d3
VS
19830 grep -v '^ *+' conftest.er1 >conftest.err
19831 rm -f conftest.er1
19832 cat conftest.err >&5
a848cd7e
SC
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
f321ab7f
VS
19835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
ac1cb8d3
VS
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; } &&
19841 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
a848cd7e
SC
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 ac_cv_type_long_long=yes
19848else
19849 echo "$as_me: failed program was:" >&5
19850sed 's/^/| /' conftest.$ac_ext >&5
19851
f321ab7f 19852ac_cv_type_long_long=no
a848cd7e 19853fi
f321ab7f 19854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19855fi
f321ab7f
VS
19856echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19857echo "${ECHO_T}$ac_cv_type_long_long" >&6
a848cd7e 19858
f321ab7f
VS
19859echo "$as_me:$LINENO: checking size of long long" >&5
19860echo $ECHO_N "checking size of long long... $ECHO_C" >&6
a848cd7e
SC
19861if test "${ac_cv_sizeof_long_long+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19863else
19864 if test "$ac_cv_type_long_long" = yes; then
f321ab7f 19865 # The cast to unsigned long works around a bug in the HP C Compiler
a848cd7e
SC
19866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19868 # This bug is HP SR number 8606223364.
19869 if test "$cross_compiling" = yes; then
19870 # Depending upon the size, compute the lo and hi bounds.
19871cat >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{
f321ab7f 19881static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
a848cd7e
SC
19882test_array [0] = 0
19883
19884 ;
19885 return 0;
19886}
19887_ACEOF
19888rm -f conftest.$ac_objext
f321ab7f
VS
19889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
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); } &&
f321ab7f
VS
19897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899 (eval $ac_try) 2>&5
ac1cb8d3
VS
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; } &&
19903 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
a848cd7e
SC
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19909 ac_lo=0 ac_mid=0
19910 while :; do
19911 cat >conftest.$ac_ext <<_ACEOF
19912/* confdefs.h. */
19913_ACEOF
19914cat confdefs.h >>conftest.$ac_ext
19915cat >>conftest.$ac_ext <<_ACEOF
19916/* end confdefs.h. */
19917$ac_includes_default
19918int
19919main ()
19920{
f321ab7f 19921static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
a848cd7e
SC
19922test_array [0] = 0
19923
19924 ;
19925 return 0;
19926}
19927_ACEOF
19928rm -f conftest.$ac_objext
f321ab7f
VS
19929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19930 (eval $ac_compile) 2>conftest.er1
a848cd7e 19931 ac_status=$?
ac1cb8d3
VS
19932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -f conftest.er1
19934 cat conftest.err >&5
a848cd7e
SC
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } &&
f321ab7f
VS
19937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
ac1cb8d3
VS
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
a848cd7e
SC
19946 ac_status=$?
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 ac_hi=$ac_mid; break
19950else
19951 echo "$as_me: failed program was:" >&5
19952sed 's/^/| /' conftest.$ac_ext >&5
19953
f321ab7f
VS
19954ac_lo=`expr $ac_mid + 1`
19955 if test $ac_lo -le $ac_mid; then
19956 ac_lo= ac_hi=
19957 break
19958 fi
19959 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19960fi
f321ab7f 19961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19962 done
19963else
19964 echo "$as_me: failed program was:" >&5
19965sed 's/^/| /' conftest.$ac_ext >&5
19966
f321ab7f 19967cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
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{
f321ab7f 19977static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
a848cd7e
SC
19978test_array [0] = 0
19979
19980 ;
19981 return 0;
19982}
19983_ACEOF
19984rm -f conftest.$ac_objext
f321ab7f
VS
19985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
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); } &&
f321ab7f
VS
19993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
ac1cb8d3
VS
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; } &&
19999 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
a848cd7e
SC
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ac_hi=-1 ac_mid=-1
20006 while :; do
20007 cat >conftest.$ac_ext <<_ACEOF
20008/* confdefs.h. */
20009_ACEOF
20010cat confdefs.h >>conftest.$ac_ext
20011cat >>conftest.$ac_ext <<_ACEOF
20012/* end confdefs.h. */
20013$ac_includes_default
20014int
20015main ()
20016{
f321ab7f 20017static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
a848cd7e
SC
20018test_array [0] = 0
20019
20020 ;
20021 return 0;
20022}
20023_ACEOF
20024rm -f conftest.$ac_objext
f321ab7f
VS
20025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20026 (eval $ac_compile) 2>conftest.er1
a848cd7e 20027 ac_status=$?
ac1cb8d3
VS
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
a848cd7e
SC
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
f321ab7f
VS
20033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
ac1cb8d3
VS
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
a848cd7e
SC
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_lo=$ac_mid; break
20046else
20047 echo "$as_me: failed program was:" >&5
20048sed 's/^/| /' conftest.$ac_ext >&5
20049
f321ab7f
VS
20050ac_hi=`expr '(' $ac_mid ')' - 1`
20051 if test $ac_mid -le $ac_hi; then
20052 ac_lo= ac_hi=
20053 break
20054 fi
20055 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20056fi
f321ab7f 20057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20058 done
20059else
20060 echo "$as_me: failed program was:" >&5
20061sed 's/^/| /' conftest.$ac_ext >&5
20062
f321ab7f 20063ac_lo= ac_hi=
a848cd7e 20064fi
f321ab7f 20065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20066fi
f321ab7f 20067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20068# Binary search between lo and hi bounds.
20069while test "x$ac_lo" != "x$ac_hi"; do
20070 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20071 cat >conftest.$ac_ext <<_ACEOF
20072/* confdefs.h. */
20073_ACEOF
20074cat confdefs.h >>conftest.$ac_ext
20075cat >>conftest.$ac_ext <<_ACEOF
20076/* end confdefs.h. */
20077$ac_includes_default
20078int
20079main ()
20080{
f321ab7f 20081static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
a848cd7e
SC
20082test_array [0] = 0
20083
20084 ;
20085 return 0;
20086}
20087_ACEOF
20088rm -f conftest.$ac_objext
f321ab7f
VS
20089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20090 (eval $ac_compile) 2>conftest.er1
a848cd7e 20091 ac_status=$?
ac1cb8d3
VS
20092 grep -v '^ *+' conftest.er1 >conftest.err
20093 rm -f conftest.er1
20094 cat conftest.err >&5
a848cd7e
SC
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } &&
f321ab7f
VS
20097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
ac1cb8d3
VS
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
a848cd7e
SC
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 ac_hi=$ac_mid
20110else
20111 echo "$as_me: failed program was:" >&5
20112sed 's/^/| /' conftest.$ac_ext >&5
20113
f321ab7f 20114ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 20115fi
f321ab7f 20116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20117done
20118case $ac_lo in
20119?*) ac_cv_sizeof_long_long=$ac_lo;;
f321ab7f 20120'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
a848cd7e 20121See \`config.log' for more details." >&5
f321ab7f 20122echo "$as_me: error: cannot compute sizeof (long long), 77
a848cd7e 20123See \`config.log' for more details." >&2;}
f321ab7f 20124 { (exit 1); exit 1; }; } ;;
a848cd7e 20125esac
f321ab7f
VS
20126else
20127 if test "$cross_compiling" = yes; then
20128 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20129echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20130 { (exit 1); exit 1; }; }
a848cd7e
SC
20131else
20132 cat >conftest.$ac_ext <<_ACEOF
20133/* confdefs.h. */
20134_ACEOF
20135cat confdefs.h >>conftest.$ac_ext
20136cat >>conftest.$ac_ext <<_ACEOF
20137/* end confdefs.h. */
20138$ac_includes_default
f321ab7f
VS
20139long longval () { return (long) (sizeof (long long)); }
20140unsigned long ulongval () { return (long) (sizeof (long long)); }
a848cd7e
SC
20141#include <stdio.h>
20142#include <stdlib.h>
20143int
20144main ()
20145{
20146
20147 FILE *f = fopen ("conftest.val", "w");
20148 if (! f)
f321ab7f
VS
20149 exit (1);
20150 if (((long) (sizeof (long long))) < 0)
a848cd7e 20151 {
f321ab7f
VS
20152 long i = longval ();
20153 if (i != ((long) (sizeof (long long))))
20154 exit (1);
a848cd7e
SC
20155 fprintf (f, "%ld\n", i);
20156 }
20157 else
20158 {
f321ab7f
VS
20159 unsigned long i = ulongval ();
20160 if (i != ((long) (sizeof (long long))))
20161 exit (1);
a848cd7e
SC
20162 fprintf (f, "%lu\n", i);
20163 }
f321ab7f 20164 exit (ferror (f) || fclose (f) != 0);
a848cd7e
SC
20165
20166 ;
20167 return 0;
20168}
20169_ACEOF
20170rm -f conftest$ac_exeext
f321ab7f
VS
20171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20172 (eval $ac_link) 2>&5
a848cd7e
SC
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
a848cd7e
SC
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 ac_cv_sizeof_long_long=`cat conftest.val`
20182else
20183 echo "$as_me: program exited with status $ac_status" >&5
20184echo "$as_me: failed program was:" >&5
20185sed 's/^/| /' conftest.$ac_ext >&5
20186
20187( exit $ac_status )
f321ab7f 20188{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
a848cd7e 20189See \`config.log' for more details." >&5
f321ab7f 20190echo "$as_me: error: cannot compute sizeof (long long), 77
a848cd7e 20191See \`config.log' for more details." >&2;}
f321ab7f
VS
20192 { (exit 1); exit 1; }; }
20193fi
20194rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20195fi
20196fi
20197rm -f conftest.val
20198else
20199 ac_cv_sizeof_long_long=0
20200fi
20201fi
f321ab7f
VS
20202echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20203echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
a848cd7e
SC
20204cat >>confdefs.h <<_ACEOF
20205#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20206_ACEOF
20207
20208
20209 ;;
20210 *-hp-hpux* )
f321ab7f
VS
20211 echo "$as_me:$LINENO: checking for long long" >&5
20212echo $ECHO_N "checking for long long... $ECHO_C" >&6
a848cd7e
SC
20213if test "${ac_cv_type_long_long+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20215else
20216 cat >conftest.$ac_ext <<_ACEOF
20217/* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
20222$ac_includes_default
20223int
20224main ()
20225{
f321ab7f 20226if ((long long *) 0)
a848cd7e 20227 return 0;
f321ab7f 20228if (sizeof (long long))
a848cd7e
SC
20229 return 0;
20230 ;
20231 return 0;
20232}
20233_ACEOF
20234rm -f conftest.$ac_objext
f321ab7f
VS
20235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20236 (eval $ac_compile) 2>conftest.er1
a848cd7e 20237 ac_status=$?
ac1cb8d3
VS
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
a848cd7e
SC
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } &&
f321ab7f
VS
20243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
ac1cb8d3
VS
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
a848cd7e
SC
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 ac_cv_type_long_long=yes
20256else
20257 echo "$as_me: failed program was:" >&5
20258sed 's/^/| /' conftest.$ac_ext >&5
20259
f321ab7f 20260ac_cv_type_long_long=no
a848cd7e 20261fi
f321ab7f 20262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20263fi
f321ab7f
VS
20264echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20265echo "${ECHO_T}$ac_cv_type_long_long" >&6
a848cd7e 20266
f321ab7f
VS
20267echo "$as_me:$LINENO: checking size of long long" >&5
20268echo $ECHO_N "checking size of long long... $ECHO_C" >&6
a848cd7e
SC
20269if test "${ac_cv_sizeof_long_long+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271else
20272 if test "$ac_cv_type_long_long" = yes; then
f321ab7f 20273 # The cast to unsigned long works around a bug in the HP C Compiler
a848cd7e
SC
20274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20276 # This bug is HP SR number 8606223364.
20277 if test "$cross_compiling" = yes; then
20278 # Depending upon the size, compute the lo and hi bounds.
20279cat >conftest.$ac_ext <<_ACEOF
20280/* confdefs.h. */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h. */
20285$ac_includes_default
20286int
20287main ()
20288{
f321ab7f 20289static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
a848cd7e
SC
20290test_array [0] = 0
20291
20292 ;
20293 return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext
f321ab7f
VS
20297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298 (eval $ac_compile) 2>conftest.er1
a848cd7e 20299 ac_status=$?
ac1cb8d3
VS
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
a848cd7e
SC
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
f321ab7f
VS
20305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
ac1cb8d3
VS
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; } &&
20311 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
a848cd7e
SC
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 ac_lo=0 ac_mid=0
20318 while :; do
20319 cat >conftest.$ac_ext <<_ACEOF
20320/* confdefs.h. */
20321_ACEOF
20322cat confdefs.h >>conftest.$ac_ext
20323cat >>conftest.$ac_ext <<_ACEOF
20324/* end confdefs.h. */
20325$ac_includes_default
20326int
20327main ()
20328{
f321ab7f 20329static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
a848cd7e
SC
20330test_array [0] = 0
20331
20332 ;
20333 return 0;
20334}
20335_ACEOF
20336rm -f conftest.$ac_objext
f321ab7f
VS
20337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20338 (eval $ac_compile) 2>conftest.er1
a848cd7e 20339 ac_status=$?
ac1cb8d3
VS
20340 grep -v '^ *+' conftest.er1 >conftest.err
20341 rm -f conftest.er1
20342 cat conftest.err >&5
a848cd7e
SC
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
f321ab7f
VS
20345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
ac1cb8d3
VS
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } &&
20351 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
a848cd7e
SC
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 ac_hi=$ac_mid; break
20358else
20359 echo "$as_me: failed program was:" >&5
20360sed 's/^/| /' conftest.$ac_ext >&5
20361
f321ab7f
VS
20362ac_lo=`expr $ac_mid + 1`
20363 if test $ac_lo -le $ac_mid; then
20364 ac_lo= ac_hi=
20365 break
20366 fi
20367 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20368fi
f321ab7f 20369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20370 done
20371else
20372 echo "$as_me: failed program was:" >&5
20373sed 's/^/| /' conftest.$ac_ext >&5
20374
f321ab7f 20375cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
20376/* confdefs.h. */
20377_ACEOF
20378cat confdefs.h >>conftest.$ac_ext
20379cat >>conftest.$ac_ext <<_ACEOF
20380/* end confdefs.h. */
20381$ac_includes_default
20382int
20383main ()
20384{
f321ab7f 20385static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
a848cd7e
SC
20386test_array [0] = 0
20387
20388 ;
20389 return 0;
20390}
20391_ACEOF
20392rm -f conftest.$ac_objext
f321ab7f
VS
20393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20394 (eval $ac_compile) 2>conftest.er1
a848cd7e 20395 ac_status=$?
ac1cb8d3
VS
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
a848cd7e
SC
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } &&
f321ab7f
VS
20401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
ac1cb8d3
VS
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; } &&
20407 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
a848cd7e
SC
20410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ac_hi=-1 ac_mid=-1
20414 while :; do
20415 cat >conftest.$ac_ext <<_ACEOF
20416/* confdefs.h. */
20417_ACEOF
20418cat confdefs.h >>conftest.$ac_ext
20419cat >>conftest.$ac_ext <<_ACEOF
20420/* end confdefs.h. */
20421$ac_includes_default
20422int
20423main ()
20424{
f321ab7f 20425static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
a848cd7e
SC
20426test_array [0] = 0
20427
20428 ;
20429 return 0;
20430}
20431_ACEOF
20432rm -f conftest.$ac_objext
f321ab7f
VS
20433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20434 (eval $ac_compile) 2>conftest.er1
a848cd7e 20435 ac_status=$?
ac1cb8d3
VS
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
a848cd7e
SC
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
f321ab7f
VS
20441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
ac1cb8d3
VS
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
a848cd7e
SC
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_lo=$ac_mid; break
20454else
20455 echo "$as_me: failed program was:" >&5
20456sed 's/^/| /' conftest.$ac_ext >&5
20457
f321ab7f
VS
20458ac_hi=`expr '(' $ac_mid ')' - 1`
20459 if test $ac_mid -le $ac_hi; then
20460 ac_lo= ac_hi=
20461 break
20462 fi
20463 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20464fi
f321ab7f 20465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20466 done
20467else
20468 echo "$as_me: failed program was:" >&5
20469sed 's/^/| /' conftest.$ac_ext >&5
20470
f321ab7f 20471ac_lo= ac_hi=
a848cd7e 20472fi
f321ab7f 20473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20474fi
f321ab7f 20475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20476# Binary search between lo and hi bounds.
20477while test "x$ac_lo" != "x$ac_hi"; do
20478 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20479 cat >conftest.$ac_ext <<_ACEOF
20480/* confdefs.h. */
20481_ACEOF
20482cat confdefs.h >>conftest.$ac_ext
20483cat >>conftest.$ac_ext <<_ACEOF
20484/* end confdefs.h. */
20485$ac_includes_default
20486int
20487main ()
20488{
f321ab7f 20489static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
a848cd7e
SC
20490test_array [0] = 0
20491
20492 ;
20493 return 0;
20494}
20495_ACEOF
20496rm -f conftest.$ac_objext
f321ab7f
VS
20497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20498 (eval $ac_compile) 2>conftest.er1
a848cd7e 20499 ac_status=$?
ac1cb8d3
VS
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
a848cd7e
SC
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } &&
f321ab7f
VS
20505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
ac1cb8d3
VS
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; } &&
20511 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
a848cd7e
SC
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_hi=$ac_mid
20518else
20519 echo "$as_me: failed program was:" >&5
20520sed 's/^/| /' conftest.$ac_ext >&5
20521
f321ab7f 20522ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 20523fi
f321ab7f 20524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20525done
20526case $ac_lo in
20527?*) ac_cv_sizeof_long_long=$ac_lo;;
f321ab7f 20528'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
a848cd7e 20529See \`config.log' for more details." >&5
f321ab7f 20530echo "$as_me: error: cannot compute sizeof (long long), 77
a848cd7e 20531See \`config.log' for more details." >&2;}
f321ab7f 20532 { (exit 1); exit 1; }; } ;;
a848cd7e 20533esac
f321ab7f
VS
20534else
20535 if test "$cross_compiling" = yes; then
20536 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20537echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20538 { (exit 1); exit 1; }; }
a848cd7e
SC
20539else
20540 cat >conftest.$ac_ext <<_ACEOF
20541/* confdefs.h. */
20542_ACEOF
20543cat confdefs.h >>conftest.$ac_ext
20544cat >>conftest.$ac_ext <<_ACEOF
20545/* end confdefs.h. */
20546$ac_includes_default
f321ab7f
VS
20547long longval () { return (long) (sizeof (long long)); }
20548unsigned long ulongval () { return (long) (sizeof (long long)); }
a848cd7e
SC
20549#include <stdio.h>
20550#include <stdlib.h>
20551int
20552main ()
20553{
20554
20555 FILE *f = fopen ("conftest.val", "w");
20556 if (! f)
f321ab7f
VS
20557 exit (1);
20558 if (((long) (sizeof (long long))) < 0)
a848cd7e 20559 {
f321ab7f
VS
20560 long i = longval ();
20561 if (i != ((long) (sizeof (long long))))
20562 exit (1);
a848cd7e
SC
20563 fprintf (f, "%ld\n", i);
20564 }
20565 else
20566 {
f321ab7f
VS
20567 unsigned long i = ulongval ();
20568 if (i != ((long) (sizeof (long long))))
20569 exit (1);
a848cd7e
SC
20570 fprintf (f, "%lu\n", i);
20571 }
f321ab7f 20572 exit (ferror (f) || fclose (f) != 0);
a848cd7e
SC
20573
20574 ;
20575 return 0;
20576}
20577_ACEOF
20578rm -f conftest$ac_exeext
f321ab7f
VS
20579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20580 (eval $ac_link) 2>&5
a848cd7e
SC
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
20584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20585 (eval $ac_try) 2>&5
a848cd7e
SC
20586 ac_status=$?
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; }; then
20589 ac_cv_sizeof_long_long=`cat conftest.val`
20590else
20591 echo "$as_me: program exited with status $ac_status" >&5
20592echo "$as_me: failed program was:" >&5
20593sed 's/^/| /' conftest.$ac_ext >&5
20594
20595( exit $ac_status )
f321ab7f 20596{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
a848cd7e 20597See \`config.log' for more details." >&5
f321ab7f 20598echo "$as_me: error: cannot compute sizeof (long long), 77
a848cd7e 20599See \`config.log' for more details." >&2;}
f321ab7f
VS
20600 { (exit 1); exit 1; }; }
20601fi
20602rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20603fi
20604fi
20605rm -f conftest.val
20606else
20607 ac_cv_sizeof_long_long=0
20608fi
20609fi
f321ab7f
VS
20610echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20611echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
a848cd7e
SC
20612cat >>confdefs.h <<_ACEOF
20613#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20614_ACEOF
20615
20616
20617 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20618 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20619 fi
20620 ;;
20621 * )
f321ab7f
VS
20622 echo "$as_me:$LINENO: checking for long long" >&5
20623echo $ECHO_N "checking for long long... $ECHO_C" >&6
a848cd7e
SC
20624if test "${ac_cv_type_long_long+set}" = set; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20626else
20627 cat >conftest.$ac_ext <<_ACEOF
20628/* confdefs.h. */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
20632/* end confdefs.h. */
20633$ac_includes_default
20634int
20635main ()
20636{
f321ab7f 20637if ((long long *) 0)
a848cd7e 20638 return 0;
f321ab7f 20639if (sizeof (long long))
a848cd7e
SC
20640 return 0;
20641 ;
20642 return 0;
20643}
20644_ACEOF
20645rm -f conftest.$ac_objext
f321ab7f
VS
20646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20647 (eval $ac_compile) 2>conftest.er1
a848cd7e 20648 ac_status=$?
ac1cb8d3
VS
20649 grep -v '^ *+' conftest.er1 >conftest.err
20650 rm -f conftest.er1
20651 cat conftest.err >&5
a848cd7e
SC
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } &&
f321ab7f
VS
20654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
ac1cb8d3
VS
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
a848cd7e
SC
20663 ac_status=$?
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_type_long_long=yes
20667else
20668 echo "$as_me: failed program was:" >&5
20669sed 's/^/| /' conftest.$ac_ext >&5
20670
f321ab7f 20671ac_cv_type_long_long=no
a848cd7e 20672fi
f321ab7f 20673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20674fi
f321ab7f
VS
20675echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20676echo "${ECHO_T}$ac_cv_type_long_long" >&6
a848cd7e 20677
f321ab7f
VS
20678echo "$as_me:$LINENO: checking size of long long" >&5
20679echo $ECHO_N "checking size of long long... $ECHO_C" >&6
a848cd7e
SC
20680if test "${ac_cv_sizeof_long_long+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20682else
20683 if test "$ac_cv_type_long_long" = yes; then
f321ab7f 20684 # The cast to unsigned long works around a bug in the HP C Compiler
a848cd7e
SC
20685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20687 # This bug is HP SR number 8606223364.
20688 if test "$cross_compiling" = yes; then
20689 # Depending upon the size, compute the lo and hi bounds.
20690cat >conftest.$ac_ext <<_ACEOF
20691/* confdefs.h. */
20692_ACEOF
20693cat confdefs.h >>conftest.$ac_ext
20694cat >>conftest.$ac_ext <<_ACEOF
20695/* end confdefs.h. */
20696$ac_includes_default
20697int
20698main ()
20699{
f321ab7f 20700static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
a848cd7e
SC
20701test_array [0] = 0
20702
20703 ;
20704 return 0;
20705}
20706_ACEOF
20707rm -f conftest.$ac_objext
f321ab7f
VS
20708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20709 (eval $ac_compile) 2>conftest.er1
a848cd7e 20710 ac_status=$?
ac1cb8d3
VS
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
a848cd7e
SC
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } &&
f321ab7f
VS
20716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
ac1cb8d3
VS
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
a848cd7e
SC
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 ac_lo=0 ac_mid=0
20729 while :; do
20730 cat >conftest.$ac_ext <<_ACEOF
20731/* confdefs.h. */
20732_ACEOF
20733cat confdefs.h >>conftest.$ac_ext
20734cat >>conftest.$ac_ext <<_ACEOF
20735/* end confdefs.h. */
20736$ac_includes_default
20737int
20738main ()
20739{
f321ab7f 20740static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
a848cd7e
SC
20741test_array [0] = 0
20742
20743 ;
20744 return 0;
20745}
20746_ACEOF
20747rm -f conftest.$ac_objext
f321ab7f
VS
20748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20749 (eval $ac_compile) 2>conftest.er1
a848cd7e 20750 ac_status=$?
ac1cb8d3
VS
20751 grep -v '^ *+' conftest.er1 >conftest.err
20752 rm -f conftest.er1
20753 cat conftest.err >&5
a848cd7e
SC
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } &&
f321ab7f
VS
20756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
ac1cb8d3
VS
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
a848cd7e
SC
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_hi=$ac_mid; break
20769else
20770 echo "$as_me: failed program was:" >&5
20771sed 's/^/| /' conftest.$ac_ext >&5
20772
f321ab7f
VS
20773ac_lo=`expr $ac_mid + 1`
20774 if test $ac_lo -le $ac_mid; then
20775 ac_lo= ac_hi=
20776 break
20777 fi
20778 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20779fi
f321ab7f 20780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20781 done
20782else
20783 echo "$as_me: failed program was:" >&5
20784sed 's/^/| /' conftest.$ac_ext >&5
20785
f321ab7f 20786cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
20787/* confdefs.h. */
20788_ACEOF
20789cat confdefs.h >>conftest.$ac_ext
20790cat >>conftest.$ac_ext <<_ACEOF
20791/* end confdefs.h. */
20792$ac_includes_default
20793int
20794main ()
20795{
f321ab7f 20796static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
a848cd7e
SC
20797test_array [0] = 0
20798
20799 ;
20800 return 0;
20801}
20802_ACEOF
20803rm -f conftest.$ac_objext
f321ab7f
VS
20804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20805 (eval $ac_compile) 2>conftest.er1
a848cd7e 20806 ac_status=$?
ac1cb8d3
VS
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
a848cd7e
SC
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
f321ab7f
VS
20812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
ac1cb8d3
VS
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
a848cd7e
SC
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_hi=-1 ac_mid=-1
20825 while :; do
20826 cat >conftest.$ac_ext <<_ACEOF
20827/* confdefs.h. */
20828_ACEOF
20829cat confdefs.h >>conftest.$ac_ext
20830cat >>conftest.$ac_ext <<_ACEOF
20831/* end confdefs.h. */
20832$ac_includes_default
20833int
20834main ()
20835{
f321ab7f 20836static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
a848cd7e
SC
20837test_array [0] = 0
20838
20839 ;
20840 return 0;
20841}
20842_ACEOF
20843rm -f conftest.$ac_objext
f321ab7f
VS
20844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20845 (eval $ac_compile) 2>conftest.er1
a848cd7e 20846 ac_status=$?
ac1cb8d3
VS
20847 grep -v '^ *+' conftest.er1 >conftest.err
20848 rm -f conftest.er1
20849 cat conftest.err >&5
a848cd7e
SC
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } &&
f321ab7f
VS
20852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
ac1cb8d3
VS
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; } &&
20858 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
a848cd7e
SC
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; }; then
20864 ac_lo=$ac_mid; break
20865else
20866 echo "$as_me: failed program was:" >&5
20867sed 's/^/| /' conftest.$ac_ext >&5
20868
f321ab7f
VS
20869ac_hi=`expr '(' $ac_mid ')' - 1`
20870 if test $ac_mid -le $ac_hi; then
20871 ac_lo= ac_hi=
20872 break
20873 fi
20874 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20875fi
f321ab7f 20876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20877 done
20878else
20879 echo "$as_me: failed program was:" >&5
20880sed 's/^/| /' conftest.$ac_ext >&5
20881
f321ab7f 20882ac_lo= ac_hi=
a848cd7e 20883fi
f321ab7f 20884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20885fi
f321ab7f 20886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20887# Binary search between lo and hi bounds.
20888while test "x$ac_lo" != "x$ac_hi"; do
20889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20890 cat >conftest.$ac_ext <<_ACEOF
20891/* confdefs.h. */
20892_ACEOF
20893cat confdefs.h >>conftest.$ac_ext
20894cat >>conftest.$ac_ext <<_ACEOF
20895/* end confdefs.h. */
20896$ac_includes_default
20897int
20898main ()
20899{
f321ab7f 20900static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
a848cd7e
SC
20901test_array [0] = 0
20902
20903 ;
20904 return 0;
20905}
20906_ACEOF
20907rm -f conftest.$ac_objext
f321ab7f
VS
20908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20909 (eval $ac_compile) 2>conftest.er1
a848cd7e 20910 ac_status=$?
ac1cb8d3
VS
20911 grep -v '^ *+' conftest.er1 >conftest.err
20912 rm -f conftest.er1
20913 cat conftest.err >&5
a848cd7e
SC
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } &&
f321ab7f
VS
20916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
ac1cb8d3
VS
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
a848cd7e
SC
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_hi=$ac_mid
20929else
20930 echo "$as_me: failed program was:" >&5
20931sed 's/^/| /' conftest.$ac_ext >&5
20932
f321ab7f 20933ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 20934fi
f321ab7f 20935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20936done
20937case $ac_lo in
20938?*) ac_cv_sizeof_long_long=$ac_lo;;
f321ab7f 20939'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
a848cd7e 20940See \`config.log' for more details." >&5
f321ab7f 20941echo "$as_me: error: cannot compute sizeof (long long), 77
a848cd7e 20942See \`config.log' for more details." >&2;}
f321ab7f 20943 { (exit 1); exit 1; }; } ;;
a848cd7e 20944esac
f321ab7f
VS
20945else
20946 if test "$cross_compiling" = yes; then
20947 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20948echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20949 { (exit 1); exit 1; }; }
a848cd7e
SC
20950else
20951 cat >conftest.$ac_ext <<_ACEOF
20952/* confdefs.h. */
20953_ACEOF
20954cat confdefs.h >>conftest.$ac_ext
20955cat >>conftest.$ac_ext <<_ACEOF
20956/* end confdefs.h. */
20957$ac_includes_default
f321ab7f
VS
20958long longval () { return (long) (sizeof (long long)); }
20959unsigned long ulongval () { return (long) (sizeof (long long)); }
a848cd7e
SC
20960#include <stdio.h>
20961#include <stdlib.h>
20962int
20963main ()
20964{
20965
20966 FILE *f = fopen ("conftest.val", "w");
20967 if (! f)
f321ab7f
VS
20968 exit (1);
20969 if (((long) (sizeof (long long))) < 0)
a848cd7e 20970 {
f321ab7f
VS
20971 long i = longval ();
20972 if (i != ((long) (sizeof (long long))))
20973 exit (1);
a848cd7e
SC
20974 fprintf (f, "%ld\n", i);
20975 }
20976 else
20977 {
f321ab7f
VS
20978 unsigned long i = ulongval ();
20979 if (i != ((long) (sizeof (long long))))
20980 exit (1);
a848cd7e
SC
20981 fprintf (f, "%lu\n", i);
20982 }
f321ab7f 20983 exit (ferror (f) || fclose (f) != 0);
a848cd7e
SC
20984
20985 ;
20986 return 0;
20987}
20988_ACEOF
20989rm -f conftest$ac_exeext
f321ab7f
VS
20990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20991 (eval $ac_link) 2>&5
a848cd7e
SC
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
a848cd7e
SC
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 ac_cv_sizeof_long_long=`cat conftest.val`
21001else
21002 echo "$as_me: program exited with status $ac_status" >&5
21003echo "$as_me: failed program was:" >&5
21004sed 's/^/| /' conftest.$ac_ext >&5
21005
21006( exit $ac_status )
f321ab7f 21007{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
a848cd7e 21008See \`config.log' for more details." >&5
f321ab7f 21009echo "$as_me: error: cannot compute sizeof (long long), 77
a848cd7e 21010See \`config.log' for more details." >&2;}
f321ab7f
VS
21011 { (exit 1); exit 1; }; }
21012fi
21013rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21014fi
21015fi
21016rm -f conftest.val
21017else
21018 ac_cv_sizeof_long_long=0
21019fi
21020fi
f321ab7f
VS
21021echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21022echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
a848cd7e
SC
21023cat >>confdefs.h <<_ACEOF
21024#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21025_ACEOF
21026
21027
21028esac
21029
f321ab7f
VS
21030echo "$as_me:$LINENO: checking for wchar_t" >&5
21031echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
238ecede
MW
21032if test "${ac_cv_type_wchar_t+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21034else
21035 cat >conftest.$ac_ext <<_ACEOF
21036/* confdefs.h. */
21037_ACEOF
21038cat confdefs.h >>conftest.$ac_ext
21039cat >>conftest.$ac_ext <<_ACEOF
21040/* end confdefs.h. */
21041
83d8eb47
MW
21042 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21043 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21044 # error "fake wchar_t"
21045 #endif
21046 #ifdef HAVE_WCHAR_H
21047 # ifdef __CYGWIN__
21048 # include <stddef.h>
21049 # endif
21050 # include <wchar.h>
21051 #endif
21052 #ifdef HAVE_STDLIB_H
21053 # include <stdlib.h>
21054 #endif
21055 #include <stdio.h>
21056
21057
21058
21059int
21060main ()
21061{
f321ab7f 21062if ((wchar_t *) 0)
238ecede 21063 return 0;
f321ab7f 21064if (sizeof (wchar_t))
238ecede
MW
21065 return 0;
21066 ;
21067 return 0;
21068}
21069_ACEOF
21070rm -f conftest.$ac_objext
f321ab7f
VS
21071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21072 (eval $ac_compile) 2>conftest.er1
238ecede
MW
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
f321ab7f
VS
21079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
238ecede
MW
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; } &&
21085 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
238ecede
MW
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; }; then
21091 ac_cv_type_wchar_t=yes
21092else
21093 echo "$as_me: failed program was:" >&5
21094sed 's/^/| /' conftest.$ac_ext >&5
21095
f321ab7f 21096ac_cv_type_wchar_t=no
238ecede 21097fi
f321ab7f 21098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
238ecede 21099fi
f321ab7f
VS
21100echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21101echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
238ecede 21102
f321ab7f
VS
21103echo "$as_me:$LINENO: checking size of wchar_t" >&5
21104echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21105if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21107else
238ecede 21108 if test "$ac_cv_type_wchar_t" = yes; then
f321ab7f 21109 # The cast to unsigned long works around a bug in the HP C Compiler
238ecede
MW
21110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21112 # This bug is HP SR number 8606223364.
21113 if test "$cross_compiling" = yes; then
21114 # Depending upon the size, compute the lo and hi bounds.
21115cat >conftest.$ac_ext <<_ACEOF
21116/* confdefs.h. */
21117_ACEOF
21118cat confdefs.h >>conftest.$ac_ext
21119cat >>conftest.$ac_ext <<_ACEOF
21120/* end confdefs.h. */
21121
83d8eb47
MW
21122 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21123 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21124 # error "fake wchar_t"
21125 #endif
21126 #ifdef HAVE_WCHAR_H
21127 # ifdef __CYGWIN__
21128 # include <stddef.h>
21129 # endif
21130 # include <wchar.h>
21131 #endif
21132 #ifdef HAVE_STDLIB_H
21133 # include <stdlib.h>
21134 #endif
21135 #include <stdio.h>
21136
21137
21138
21139int
21140main ()
21141{
f321ab7f 21142static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
238ecede
MW
21143test_array [0] = 0
21144
21145 ;
21146 return 0;
21147}
21148_ACEOF
21149rm -f conftest.$ac_objext
f321ab7f
VS
21150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21151 (eval $ac_compile) 2>conftest.er1
238ecede
MW
21152 ac_status=$?
21153 grep -v '^ *+' conftest.er1 >conftest.err
21154 rm -f conftest.er1
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
f321ab7f
VS
21158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
238ecede
MW
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; } &&
21164 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
238ecede
MW
21167 ac_status=$?
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; }; then
21170 ac_lo=0 ac_mid=0
21171 while :; do
21172 cat >conftest.$ac_ext <<_ACEOF
21173/* confdefs.h. */
21174_ACEOF
21175cat confdefs.h >>conftest.$ac_ext
21176cat >>conftest.$ac_ext <<_ACEOF
21177/* end confdefs.h. */
21178
83d8eb47
MW
21179 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21180 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21181 # error "fake wchar_t"
21182 #endif
21183 #ifdef HAVE_WCHAR_H
21184 # ifdef __CYGWIN__
21185 # include <stddef.h>
21186 # endif
21187 # include <wchar.h>
21188 #endif
21189 #ifdef HAVE_STDLIB_H
21190 # include <stdlib.h>
21191 #endif
21192 #include <stdio.h>
21193
21194
21195
21196int
21197main ()
21198{
f321ab7f 21199static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
238ecede
MW
21200test_array [0] = 0
21201
21202 ;
21203 return 0;
21204}
21205_ACEOF
21206rm -f conftest.$ac_objext
f321ab7f
VS
21207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21208 (eval $ac_compile) 2>conftest.er1
238ecede
MW
21209 ac_status=$?
21210 grep -v '^ *+' conftest.er1 >conftest.err
21211 rm -f conftest.er1
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } &&
f321ab7f
VS
21215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
238ecede
MW
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; } &&
21221 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
238ecede
MW
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; }; then
21227 ac_hi=$ac_mid; break
21228else
21229 echo "$as_me: failed program was:" >&5
21230sed 's/^/| /' conftest.$ac_ext >&5
21231
f321ab7f
VS
21232ac_lo=`expr $ac_mid + 1`
21233 if test $ac_lo -le $ac_mid; then
21234 ac_lo= ac_hi=
21235 break
21236 fi
21237 ac_mid=`expr 2 '*' $ac_mid + 1`
238ecede 21238fi
f321ab7f 21239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
238ecede
MW
21240 done
21241else
21242 echo "$as_me: failed program was:" >&5
21243sed 's/^/| /' conftest.$ac_ext >&5
21244
f321ab7f 21245cat >conftest.$ac_ext <<_ACEOF
238ecede
MW
21246/* confdefs.h. */
21247_ACEOF
21248cat confdefs.h >>conftest.$ac_ext
21249cat >>conftest.$ac_ext <<_ACEOF
21250/* end confdefs.h. */
21251
83d8eb47
MW
21252 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21253 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21254 # error "fake wchar_t"
21255 #endif
21256 #ifdef HAVE_WCHAR_H
21257 # ifdef __CYGWIN__
21258 # include <stddef.h>
21259 # endif
21260 # include <wchar.h>
21261 #endif
21262 #ifdef HAVE_STDLIB_H
21263 # include <stdlib.h>
21264 #endif
21265 #include <stdio.h>
21266
21267
21268
21269int
21270main ()
21271{
f321ab7f 21272static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
238ecede
MW
21273test_array [0] = 0
21274
21275 ;
21276 return 0;
21277}
21278_ACEOF
21279rm -f conftest.$ac_objext
f321ab7f
VS
21280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21281 (eval $ac_compile) 2>conftest.er1
238ecede
MW
21282 ac_status=$?
21283 grep -v '^ *+' conftest.er1 >conftest.err
21284 rm -f conftest.er1
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } &&
f321ab7f
VS
21288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
238ecede
MW
21291 ac_status=$?
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; } &&
21294 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
238ecede
MW
21297 ac_status=$?
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; }; then
21300 ac_hi=-1 ac_mid=-1
21301 while :; do
21302 cat >conftest.$ac_ext <<_ACEOF
21303/* confdefs.h. */
21304_ACEOF
21305cat confdefs.h >>conftest.$ac_ext
21306cat >>conftest.$ac_ext <<_ACEOF
21307/* end confdefs.h. */
21308
83d8eb47
MW
21309 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21310 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21311 # error "fake wchar_t"
21312 #endif
21313 #ifdef HAVE_WCHAR_H
21314 # ifdef __CYGWIN__
21315 # include <stddef.h>
21316 # endif
21317 # include <wchar.h>
21318 #endif
21319 #ifdef HAVE_STDLIB_H
21320 # include <stdlib.h>
21321 #endif
21322 #include <stdio.h>
21323
21324
21325
21326int
21327main ()
21328{
f321ab7f 21329static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
238ecede
MW
21330test_array [0] = 0
21331
21332 ;
21333 return 0;
21334}
21335_ACEOF
21336rm -f conftest.$ac_objext
f321ab7f
VS
21337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21338 (eval $ac_compile) 2>conftest.er1
238ecede
MW
21339 ac_status=$?
21340 grep -v '^ *+' conftest.er1 >conftest.err
21341 rm -f conftest.er1
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } &&
f321ab7f
VS
21345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
238ecede
MW
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; } &&
21351 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
21352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353 (eval $ac_try) 2>&5
238ecede
MW
21354 ac_status=$?
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); }; }; then
21357 ac_lo=$ac_mid; break
21358else
21359 echo "$as_me: failed program was:" >&5
21360sed 's/^/| /' conftest.$ac_ext >&5
21361
f321ab7f
VS
21362ac_hi=`expr '(' $ac_mid ')' - 1`
21363 if test $ac_mid -le $ac_hi; then
21364 ac_lo= ac_hi=
21365 break
21366 fi
21367 ac_mid=`expr 2 '*' $ac_mid`
238ecede 21368fi
f321ab7f 21369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
238ecede
MW
21370 done
21371else
21372 echo "$as_me: failed program was:" >&5
21373sed 's/^/| /' conftest.$ac_ext >&5
21374
f321ab7f 21375ac_lo= ac_hi=
238ecede 21376fi
f321ab7f 21377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
238ecede 21378fi
f321ab7f 21379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
238ecede
MW
21380# Binary search between lo and hi bounds.
21381while test "x$ac_lo" != "x$ac_hi"; do
21382 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21383 cat >conftest.$ac_ext <<_ACEOF
21384/* confdefs.h. */
21385_ACEOF
21386cat confdefs.h >>conftest.$ac_ext
21387cat >>conftest.$ac_ext <<_ACEOF
21388/* end confdefs.h. */
21389
83d8eb47
MW
21390 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21391 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21392 # error "fake wchar_t"
21393 #endif
21394 #ifdef HAVE_WCHAR_H
21395 # ifdef __CYGWIN__
21396 # include <stddef.h>
21397 # endif
21398 # include <wchar.h>
21399 #endif
21400 #ifdef HAVE_STDLIB_H
21401 # include <stdlib.h>
21402 #endif
21403 #include <stdio.h>
a848cd7e 21404
a848cd7e 21405
a848cd7e 21406
238ecede
MW
21407int
21408main ()
21409{
f321ab7f 21410static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
238ecede 21411test_array [0] = 0
a848cd7e 21412
238ecede
MW
21413 ;
21414 return 0;
21415}
21416_ACEOF
21417rm -f conftest.$ac_objext
f321ab7f
VS
21418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21419 (eval $ac_compile) 2>conftest.er1
238ecede
MW
21420 ac_status=$?
21421 grep -v '^ *+' conftest.er1 >conftest.err
21422 rm -f conftest.er1
21423 cat conftest.err >&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); } &&
f321ab7f
VS
21426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428 (eval $ac_try) 2>&5
238ecede
MW
21429 ac_status=$?
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; } &&
21432 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
21433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434 (eval $ac_try) 2>&5
238ecede
MW
21435 ac_status=$?
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); }; }; then
21438 ac_hi=$ac_mid
21439else
21440 echo "$as_me: failed program was:" >&5
21441sed 's/^/| /' conftest.$ac_ext >&5
21442
f321ab7f 21443ac_lo=`expr '(' $ac_mid ')' + 1`
238ecede 21444fi
f321ab7f 21445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
238ecede
MW
21446done
21447case $ac_lo in
21448?*) ac_cv_sizeof_wchar_t=$ac_lo;;
f321ab7f 21449'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
238ecede 21450See \`config.log' for more details." >&5
f321ab7f 21451echo "$as_me: error: cannot compute sizeof (wchar_t), 77
238ecede 21452See \`config.log' for more details." >&2;}
f321ab7f 21453 { (exit 1); exit 1; }; } ;;
238ecede 21454esac
f321ab7f
VS
21455else
21456 if test "$cross_compiling" = yes; then
21457 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21458echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21459 { (exit 1); exit 1; }; }
a848cd7e
SC
21460else
21461 cat >conftest.$ac_ext <<_ACEOF
21462/* confdefs.h. */
21463_ACEOF
21464cat confdefs.h >>conftest.$ac_ext
21465cat >>conftest.$ac_ext <<_ACEOF
21466/* end confdefs.h. */
21467
83d8eb47
MW
21468 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21469 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21470 # error "fake wchar_t"
21471 #endif
21472 #ifdef HAVE_WCHAR_H
21473 # ifdef __CYGWIN__
21474 # include <stddef.h>
21475 # endif
21476 # include <wchar.h>
21477 #endif
21478 #ifdef HAVE_STDLIB_H
21479 # include <stdlib.h>
21480 #endif
21481 #include <stdio.h>
21482
21483
21484
f321ab7f
VS
21485long longval () { return (long) (sizeof (wchar_t)); }
21486unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
238ecede
MW
21487#include <stdio.h>
21488#include <stdlib.h>
21489int
21490main ()
21491{
a848cd7e 21492
238ecede
MW
21493 FILE *f = fopen ("conftest.val", "w");
21494 if (! f)
f321ab7f
VS
21495 exit (1);
21496 if (((long) (sizeof (wchar_t))) < 0)
238ecede 21497 {
f321ab7f
VS
21498 long i = longval ();
21499 if (i != ((long) (sizeof (wchar_t))))
21500 exit (1);
238ecede
MW
21501 fprintf (f, "%ld\n", i);
21502 }
21503 else
21504 {
f321ab7f
VS
21505 unsigned long i = ulongval ();
21506 if (i != ((long) (sizeof (wchar_t))))
21507 exit (1);
238ecede
MW
21508 fprintf (f, "%lu\n", i);
21509 }
f321ab7f 21510 exit (ferror (f) || fclose (f) != 0);
238ecede
MW
21511
21512 ;
21513 return 0;
21514}
a848cd7e
SC
21515_ACEOF
21516rm -f conftest$ac_exeext
f321ab7f
VS
21517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21518 (eval $ac_link) 2>&5
a848cd7e
SC
21519 ac_status=$?
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
a848cd7e
SC
21524 ac_status=$?
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; }; then
238ecede 21527 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21528else
21529 echo "$as_me: program exited with status $ac_status" >&5
21530echo "$as_me: failed program was:" >&5
21531sed 's/^/| /' conftest.$ac_ext >&5
21532
21533( exit $ac_status )
f321ab7f 21534{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
238ecede 21535See \`config.log' for more details." >&5
f321ab7f 21536echo "$as_me: error: cannot compute sizeof (wchar_t), 77
238ecede 21537See \`config.log' for more details." >&2;}
f321ab7f
VS
21538 { (exit 1); exit 1; }; }
21539fi
21540rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21541fi
a848cd7e 21542fi
238ecede
MW
21543rm -f conftest.val
21544else
21545 ac_cv_sizeof_wchar_t=0
21546fi
21547fi
f321ab7f
VS
21548echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21549echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21550cat >>confdefs.h <<_ACEOF
238ecede 21551#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21552_ACEOF
21553
21554
47a7e797
MW
21555if test "$ac_cv_sizeof_wchar_t" != "0"; then
21556 wxUSE_WCHAR_T=yes
21557else
21558 wxUSE_WCHAR_T=no
21559fi
238ecede 21560
f321ab7f
VS
21561echo "$as_me:$LINENO: checking for va_copy" >&5
21562echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
ba3d13e1
VZ
21563if test "${wx_cv_func_va_copy+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21565else
21566
21567 cat >conftest.$ac_ext <<_ACEOF
21568
21569 #include <stdarg.h>
21570 void foo(char *f, ...)
21571 {
21572 va_list ap1, ap2;
21573 va_start(ap1, f);
21574 va_copy(ap2, ap1);
21575 va_end(ap2);
21576 va_end(ap1);
21577 }
5886b072
VZ
21578 int main()
21579 {
b902e639
VZ
21580 foo("hi", 17);
21581 return 0;
5886b072 21582 }
ba3d13e1
VZ
21583_ACEOF
21584rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
21585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21586 (eval $ac_link) 2>conftest.er1
ba3d13e1
VZ
21587 ac_status=$?
21588 grep -v '^ *+' conftest.er1 >conftest.err
21589 rm -f conftest.er1
21590 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } &&
f321ab7f
VS
21593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
ba3d13e1
VZ
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; } &&
21599 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
ba3d13e1
VZ
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605 wx_cv_func_va_copy=yes
21606else
21607 echo "$as_me: failed program was:" >&5
21608sed 's/^/| /' conftest.$ac_ext >&5
21609
f321ab7f 21610wx_cv_func_va_copy=no
ba3d13e1
VZ
21611
21612fi
f321ab7f 21613rm -f conftest.err conftest.$ac_objext \
ba3d13e1
VZ
21614 conftest$ac_exeext conftest.$ac_ext
21615
21616
21617fi
f321ab7f
VS
21618echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21619echo "${ECHO_T}$wx_cv_func_va_copy" >&6
ba3d13e1
VZ
21620
21621if test $wx_cv_func_va_copy = "yes"; then
21622 cat >>confdefs.h <<\_ACEOF
21623#define HAVE_VA_COPY 1
21624_ACEOF
21625
21626else
f321ab7f
VS
21627 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21628echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
ba3d13e1
VZ
21629if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21631else
21632
21633 if test "$cross_compiling" = yes; then
21634 wx_cv_type_va_list_lvalue=yes
21635
21636else
21637 cat >conftest.$ac_ext <<_ACEOF
21638
21639 #include <stdarg.h>
21640 int foo(char *f, ...)
21641 {
21642 va_list ap1, ap2;
21643 va_start(ap1, f);
21644 ap2 = ap1;
21645 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21646 return 1;
21647 va_end(ap2);
21648 va_end(ap1);
21649 return 0;
21650 }
21651 int main()
21652 {
21653 return foo("hi", 17);
21654 }
21655_ACEOF
21656rm -f conftest$ac_exeext
f321ab7f
VS
21657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21658 (eval $ac_link) 2>&5
ba3d13e1
VZ
21659 ac_status=$?
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
ba3d13e1
VZ
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 wx_cv_type_va_list_lvalue=yes
21668else
21669 echo "$as_me: program exited with status $ac_status" >&5
21670echo "$as_me: failed program was:" >&5
21671sed 's/^/| /' conftest.$ac_ext >&5
21672
21673( exit $ac_status )
21674wx_cv_type_va_list_lvalue=no
21675fi
f321ab7f 21676rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ba3d13e1
VZ
21677fi
21678
21679
21680fi
f321ab7f
VS
21681echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21682echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
ba3d13e1
VZ
21683
21684 if test $wx_cv_type_va_list_lvalue != "yes"; then
21685 cat >>confdefs.h <<\_ACEOF
21686#define VA_LIST_IS_ARRAY 1
21687_ACEOF
21688
21689 fi
21690fi
21691
70c536f3
VZ
21692if test "$wxUSE_VARARG_MACROS" = "yes"; then
21693
f321ab7f
VS
21694echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
21695echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
ca766534
VS
21696if test "${wx_cv_have_variadic_macros+set}" = set; then
21697 echo $ECHO_N "(cached) $ECHO_C" >&6
21698else
21699
f321ab7f 21700 ac_ext=cc
38c6938f
VZ
21701ac_cpp='$CXXCPP $CPPFLAGS'
21702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21705
ca766534
VS
21706 cat >conftest.$ac_ext <<_ACEOF
21707/* confdefs.h. */
21708_ACEOF
21709cat confdefs.h >>conftest.$ac_ext
21710cat >>conftest.$ac_ext <<_ACEOF
21711/* end confdefs.h. */
21712
21713 #include <stdio.h>
21714 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
21715
21716int
21717main ()
21718{
21719
21720 test("%s %d %p", "test", 1, 0);
21721
21722
21723 ;
21724 return 0;
21725}
21726_ACEOF
21727rm -f conftest.$ac_objext
f321ab7f
VS
21728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729 (eval $ac_compile) 2>conftest.er1
ca766534
VS
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } &&
f321ab7f
VS
21736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738 (eval $ac_try) 2>&5
ca766534
VS
21739 ac_status=$?
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; } &&
21742 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
21743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744 (eval $ac_try) 2>&5
ca766534
VS
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; }; then
21748 wx_cv_have_variadic_macros=yes
21749else
21750 echo "$as_me: failed program was:" >&5
21751sed 's/^/| /' conftest.$ac_ext >&5
21752
f321ab7f 21753wx_cv_have_variadic_macros=no
ca766534
VS
21754
21755fi
f321ab7f 21756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38c6938f
VZ
21757 ac_ext=c
21758ac_cpp='$CPP $CPPFLAGS'
21759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21761ac_compiler_gnu=$ac_cv_c_compiler_gnu
21762
ca766534
VS
21763
21764
21765fi
f321ab7f
VS
21766echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
21767echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
ca766534
VS
21768
21769if test $wx_cv_have_variadic_macros = "yes"; then
21770 cat >>confdefs.h <<\_ACEOF
21771#define HAVE_VARIADIC_MACROS 1
21772_ACEOF
21773
21774fi
21775
70c536f3 21776fi
f321ab7f 21777# Check whether --enable-largefile or --disable-largefile was given.
a848cd7e 21778if test "${enable_largefile+set}" = set; then
f321ab7f 21779 enableval="$enable_largefile"
a848cd7e 21780
f321ab7f 21781fi;
a848cd7e
SC
21782if test "$enable_largefile" != no; then
21783 wx_largefile=no
21784
f321ab7f
VS
21785 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21786echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
a848cd7e
SC
21787if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21789else
21790
21791 cat >conftest.$ac_ext <<_ACEOF
21792/* confdefs.h. */
21793_ACEOF
21794cat confdefs.h >>conftest.$ac_ext
21795cat >>conftest.$ac_ext <<_ACEOF
21796/* end confdefs.h. */
21797#define _FILE_OFFSET_BITS 64
21798 #include <sys/types.h>
21799int
21800main ()
21801{
21802typedef struct {
21803 unsigned int field: sizeof(off_t) == 8;
21804} wxlf;
21805
21806 ;
21807 return 0;
21808}
21809_ACEOF
21810rm -f conftest.$ac_objext
f321ab7f
VS
21811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21812 (eval $ac_compile) 2>conftest.er1
a848cd7e 21813 ac_status=$?
ac1cb8d3
VS
21814 grep -v '^ *+' conftest.er1 >conftest.err
21815 rm -f conftest.er1
21816 cat conftest.err >&5
a848cd7e
SC
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } &&
f321ab7f
VS
21819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
ac1cb8d3
VS
21822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; } &&
21825 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827 (eval $ac_try) 2>&5
a848cd7e
SC
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 ac_cv_sys_file_offset_bits=64
21832else
21833 echo "$as_me: failed program was:" >&5
21834sed 's/^/| /' conftest.$ac_ext >&5
21835
f321ab7f 21836ac_cv_sys_file_offset_bits=no
a848cd7e 21837fi
f321ab7f 21838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21839
21840
21841fi
f321ab7f
VS
21842echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21843echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
a848cd7e
SC
21844
21845 if test "$ac_cv_sys_file_offset_bits" != no; then
21846 wx_largefile=yes
21847 cat >>confdefs.h <<_ACEOF
21848#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21849_ACEOF
21850
21851 fi
21852
21853 if test "x$wx_largefile" != "xyes"; then
21854
f321ab7f
VS
21855 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21856echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
a848cd7e
SC
21857if test "${ac_cv_sys_large_files+set}" = set; then
21858 echo $ECHO_N "(cached) $ECHO_C" >&6
21859else
21860
21861 cat >conftest.$ac_ext <<_ACEOF
21862/* confdefs.h. */
21863_ACEOF
21864cat confdefs.h >>conftest.$ac_ext
21865cat >>conftest.$ac_ext <<_ACEOF
21866/* end confdefs.h. */
21867#define _LARGE_FILES 1
21868 #include <sys/types.h>
21869int
21870main ()
21871{
21872typedef struct {
21873 unsigned int field: sizeof(off_t) == 8;
21874} wxlf;
21875
21876 ;
21877 return 0;
21878}
21879_ACEOF
21880rm -f conftest.$ac_objext
f321ab7f
VS
21881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21882 (eval $ac_compile) 2>conftest.er1
a848cd7e 21883 ac_status=$?
ac1cb8d3
VS
21884 grep -v '^ *+' conftest.er1 >conftest.err
21885 rm -f conftest.er1
21886 cat conftest.err >&5
a848cd7e
SC
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } &&
f321ab7f
VS
21889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
ac1cb8d3
VS
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; } &&
21895 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
a848cd7e
SC
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 ac_cv_sys_large_files=1
21902else
21903 echo "$as_me: failed program was:" >&5
21904sed 's/^/| /' conftest.$ac_ext >&5
21905
f321ab7f 21906ac_cv_sys_large_files=no
a848cd7e 21907fi
f321ab7f 21908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21909
21910
21911fi
f321ab7f
VS
21912echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21913echo "${ECHO_T}$ac_cv_sys_large_files" >&6
a848cd7e
SC
21914
21915 if test "$ac_cv_sys_large_files" != no; then
21916 wx_largefile=yes
21917 cat >>confdefs.h <<_ACEOF
21918#define _LARGE_FILES $ac_cv_sys_large_files
21919_ACEOF
21920
21921 fi
21922
21923 fi
21924
f321ab7f
VS
21925 echo "$as_me:$LINENO: checking if large file support is available" >&5
21926echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
a848cd7e
SC
21927 if test "x$wx_largefile" = "xyes"; then
21928 cat >>confdefs.h <<\_ACEOF
21929#define HAVE_LARGEFILE_SUPPORT 1
21930_ACEOF
21931
21932 fi
f321ab7f
VS
21933 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21934echo "${ECHO_T}$wx_largefile" >&6
a848cd7e
SC
21935fi
21936
5b674b9d
DE
21937
21938if test "x$wx_largefile" = "xyes"; then
21939 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21940 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21941
21942 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
f321ab7f
VS
21943 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21944echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
00421666
MW
21945if test "${wx_cv_STDC_EXT_required+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21947else
21948
f321ab7f 21949 ac_ext=cc
9b8888f9
VZ
21950ac_cpp='$CXXCPP $CPPFLAGS'
21951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21954
00421666
MW
21955 cat >conftest.$ac_ext <<_ACEOF
21956/* confdefs.h. */
21957_ACEOF
21958cat confdefs.h >>conftest.$ac_ext
21959cat >>conftest.$ac_ext <<_ACEOF
21960/* end confdefs.h. */
21961
21962int
21963main ()
21964{
21965
21966 #ifndef __STDC_EXT__
21967 choke me
21968 #endif
21969
21970 ;
21971 return 0;
21972}
21973_ACEOF
21974rm -f conftest.$ac_objext
f321ab7f
VS
21975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21976 (eval $ac_compile) 2>conftest.er1
00421666
MW
21977 ac_status=$?
21978 grep -v '^ *+' conftest.er1 >conftest.err
21979 rm -f conftest.er1
21980 cat conftest.err >&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
f321ab7f
VS
21983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
00421666
MW
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; } &&
21989 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
00421666
MW
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995 wx_cv_STDC_EXT_required=no
21996else
21997 echo "$as_me: failed program was:" >&5
21998sed 's/^/| /' conftest.$ac_ext >&5
21999
f321ab7f 22000wx_cv_STDC_EXT_required=yes
00421666
MW
22001
22002fi
f321ab7f 22003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
22004 ac_ext=c
22005ac_cpp='$CPP $CPPFLAGS'
22006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22008ac_compiler_gnu=$ac_cv_c_compiler_gnu
22009
00421666
MW
22010
22011
22012fi
f321ab7f
VS
22013echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22014echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
00421666 22015 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22016 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22017 fi
22018 fi
5b674b9d 22019 else
5ff751d6 22020 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d 22021 fi
f321ab7f
VS
22022 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22023echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
5294a27e
VZ
22024if test "${ac_cv_sys_largefile_source+set}" = set; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22026else
22027 while :; do
22028 ac_cv_sys_largefile_source=no
22029 cat >conftest.$ac_ext <<_ACEOF
22030/* confdefs.h. */
22031_ACEOF
22032cat confdefs.h >>conftest.$ac_ext
22033cat >>conftest.$ac_ext <<_ACEOF
22034/* end confdefs.h. */
22035#include <stdio.h>
22036int
22037main ()
22038{
22039return !fseeko;
22040 ;
22041 return 0;
22042}
22043_ACEOF
22044rm -f conftest.$ac_objext
f321ab7f
VS
22045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22046 (eval $ac_compile) 2>conftest.er1
5294a27e
VZ
22047 ac_status=$?
22048 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } &&
f321ab7f
VS
22053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22055 (eval $ac_try) 2>&5
5294a27e
VZ
22056 ac_status=$?
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }; } &&
22059 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
22060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22061 (eval $ac_try) 2>&5
5294a27e
VZ
22062 ac_status=$?
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; }; then
22065 break
22066else
22067 echo "$as_me: failed program was:" >&5
22068sed 's/^/| /' conftest.$ac_ext >&5
22069
22070fi
f321ab7f 22071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294a27e
VZ
22072 cat >conftest.$ac_ext <<_ACEOF
22073/* confdefs.h. */
22074_ACEOF
22075cat confdefs.h >>conftest.$ac_ext
22076cat >>conftest.$ac_ext <<_ACEOF
22077/* end confdefs.h. */
22078#define _LARGEFILE_SOURCE 1
22079#include <stdio.h>
22080int
22081main ()
22082{
22083return !fseeko;
22084 ;
22085 return 0;
22086}
22087_ACEOF
22088rm -f conftest.$ac_objext
f321ab7f
VS
22089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22090 (eval $ac_compile) 2>conftest.er1
5294a27e
VZ
22091 ac_status=$?
22092 grep -v '^ *+' conftest.er1 >conftest.err
22093 rm -f conftest.er1
22094 cat conftest.err >&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } &&
f321ab7f
VS
22097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099 (eval $ac_try) 2>&5
5294a27e
VZ
22100 ac_status=$?
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; } &&
22103 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
22104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105 (eval $ac_try) 2>&5
5294a27e
VZ
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; }; then
22109 ac_cv_sys_largefile_source=1; break
22110else
22111 echo "$as_me: failed program was:" >&5
22112sed 's/^/| /' conftest.$ac_ext >&5
22113
22114fi
f321ab7f 22115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294a27e
VZ
22116 break
22117done
22118fi
f321ab7f
VS
22119echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22120echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
5294a27e
VZ
22121if test "$ac_cv_sys_largefile_source" != no; then
22122
22123cat >>confdefs.h <<_ACEOF
22124#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22125_ACEOF
22126
22127fi
22128rm -f conftest*
22129
22130# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22131# in glibc 2.1.3, but that breaks too many other things.
22132# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
f321ab7f
VS
22133echo "$as_me:$LINENO: checking for fseeko" >&5
22134echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
5294a27e
VZ
22135if test "${ac_cv_func_fseeko+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22137else
22138 cat >conftest.$ac_ext <<_ACEOF
22139/* confdefs.h. */
22140_ACEOF
22141cat confdefs.h >>conftest.$ac_ext
22142cat >>conftest.$ac_ext <<_ACEOF
22143/* end confdefs.h. */
22144#include <stdio.h>
22145int
22146main ()
22147{
22148return fseeko && fseeko (stdin, 0, 0);
22149 ;
22150 return 0;
22151}
22152_ACEOF
22153rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
22154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22155 (eval $ac_link) 2>conftest.er1
5294a27e
VZ
22156 ac_status=$?
22157 grep -v '^ *+' conftest.er1 >conftest.err
22158 rm -f conftest.er1
22159 cat conftest.err >&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); } &&
f321ab7f
VS
22162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
5294a27e
VZ
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; } &&
22168 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
5294a27e
VZ
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 ac_cv_func_fseeko=yes
22175else
22176 echo "$as_me: failed program was:" >&5
22177sed 's/^/| /' conftest.$ac_ext >&5
22178
f321ab7f 22179ac_cv_func_fseeko=no
5294a27e 22180fi
f321ab7f 22181rm -f conftest.err conftest.$ac_objext \
5294a27e
VZ
22182 conftest$ac_exeext conftest.$ac_ext
22183fi
f321ab7f
VS
22184echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22185echo "${ECHO_T}$ac_cv_func_fseeko" >&6
5294a27e
VZ
22186if test $ac_cv_func_fseeko = yes; then
22187
22188cat >>confdefs.h <<\_ACEOF
22189#define HAVE_FSEEKO 1
22190_ACEOF
22191
22192fi
22193
5b674b9d 22194 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22195 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22196 fi
a848cd7e
SC
22197fi
22198
f321ab7f
VS
22199echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22200echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
a848cd7e
SC
22201if test "${ac_cv_c_bigendian+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203else
22204 ac_cv_c_bigendian=unknown
22205# See if sys/param.h defines the BYTE_ORDER macro.
22206cat >conftest.$ac_ext <<_ACEOF
22207/* confdefs.h. */
22208_ACEOF
22209cat confdefs.h >>conftest.$ac_ext
22210cat >>conftest.$ac_ext <<_ACEOF
22211/* end confdefs.h. */
22212#include <sys/types.h>
22213#include <sys/param.h>
22214int
22215main ()
22216{
22217
22218#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22219 bogus endian macros
22220#endif
22221 ;
22222 return 0;
22223}
22224_ACEOF
22225rm -f conftest.$ac_objext
f321ab7f
VS
22226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22227 (eval $ac_compile) 2>conftest.er1
a848cd7e 22228 ac_status=$?
ac1cb8d3
VS
22229 grep -v '^ *+' conftest.er1 >conftest.err
22230 rm -f conftest.er1
22231 cat conftest.err >&5
a848cd7e
SC
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } &&
f321ab7f
VS
22234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
ac1cb8d3
VS
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; } &&
22240 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
22241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242 (eval $ac_try) 2>&5
a848cd7e
SC
22243 ac_status=$?
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }; then
22246 # It does; now see whether it defined to BIG_ENDIAN or not.
22247cat >conftest.$ac_ext <<_ACEOF
22248/* confdefs.h. */
22249_ACEOF
22250cat confdefs.h >>conftest.$ac_ext
22251cat >>conftest.$ac_ext <<_ACEOF
22252/* end confdefs.h. */
22253#include <sys/types.h>
22254#include <sys/param.h>
22255int
22256main ()
22257{
22258
22259#if BYTE_ORDER != BIG_ENDIAN
22260 not big endian
22261#endif
22262 ;
22263 return 0;
22264}
22265_ACEOF
22266rm -f conftest.$ac_objext
f321ab7f
VS
22267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22268 (eval $ac_compile) 2>conftest.er1
a848cd7e 22269 ac_status=$?
ac1cb8d3
VS
22270 grep -v '^ *+' conftest.er1 >conftest.err
22271 rm -f conftest.er1
22272 cat conftest.err >&5
a848cd7e
SC
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } &&
f321ab7f
VS
22275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277 (eval $ac_try) 2>&5
ac1cb8d3
VS
22278 ac_status=$?
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; } &&
22281 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
22282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
a848cd7e
SC
22284 ac_status=$?
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; }; then
22287 ac_cv_c_bigendian=yes
22288else
22289 echo "$as_me: failed program was:" >&5
22290sed 's/^/| /' conftest.$ac_ext >&5
22291
f321ab7f 22292ac_cv_c_bigendian=no
a848cd7e 22293fi
f321ab7f 22294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22295else
22296 echo "$as_me: failed program was:" >&5
22297sed 's/^/| /' conftest.$ac_ext >&5
22298
22299fi
f321ab7f 22300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22301if test $ac_cv_c_bigendian = unknown; then
22302if test "$cross_compiling" = yes; then
22303 ac_cv_c_bigendian=unknown
22304else
22305 cat >conftest.$ac_ext <<_ACEOF
22306/* confdefs.h. */
22307_ACEOF
22308cat confdefs.h >>conftest.$ac_ext
22309cat >>conftest.$ac_ext <<_ACEOF
22310/* end confdefs.h. */
22311main () {
22312 /* Are we little or big endian? From Harbison&Steele. */
22313 union
22314 {
22315 long l;
22316 char c[sizeof (long)];
22317 } u;
22318 u.l = 1;
22319 exit (u.c[sizeof (long) - 1] == 1);
22320}
22321_ACEOF
22322rm -f conftest$ac_exeext
f321ab7f
VS
22323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22324 (eval $ac_link) 2>&5
a848cd7e
SC
22325 ac_status=$?
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
a848cd7e
SC
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; }; then
22333 ac_cv_c_bigendian=no
22334else
22335 echo "$as_me: program exited with status $ac_status" >&5
22336echo "$as_me: failed program was:" >&5
22337sed 's/^/| /' conftest.$ac_ext >&5
22338
22339( exit $ac_status )
22340ac_cv_c_bigendian=yes
22341fi
f321ab7f 22342rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22343fi
22344fi
22345fi
f321ab7f
VS
22346echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22347echo "${ECHO_T}$ac_cv_c_bigendian" >&6
a848cd7e
SC
22348if test $ac_cv_c_bigendian = unknown; then
22349 { 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
22350echo "$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;}
22351fi
22352if test $ac_cv_c_bigendian = yes; then
22353 cat >>confdefs.h <<\_ACEOF
22354#define WORDS_BIGENDIAN 1
22355_ACEOF
22356
22357fi
22358
22359
f321ab7f 22360ac_ext=cc
a848cd7e
SC
22361ac_cpp='$CXXCPP $CPPFLAGS'
22362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
f321ab7f
VS
22365echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
22366echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
fd5199d6
VZ
22367if test -z "$CXXCPP"; then
22368 if test "${ac_cv_prog_CXXCPP+set}" = set; then
a848cd7e 22369 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 22370else
fd5199d6
VZ
22371 # Double quotes because CXXCPP needs to be expanded
22372 for CXXCPP in "$CXX -E" "/lib/cpp"
22373 do
22374 ac_preproc_ok=false
22375for ac_cxx_preproc_warn_flag in '' yes
22376do
22377 # Use a header file that comes with gcc, so configuring glibc
22378 # with a fresh cross-compiler works.
22379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22380 # <limits.h> exists even on freestanding compilers.
22381 # On the NeXT, cc -E runs the code through the compiler's parser,
22382 # not just through cpp. "Syntax error" is here to catch this case.
22383 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22384/* confdefs.h. */
22385_ACEOF
22386cat confdefs.h >>conftest.$ac_ext
22387cat >>conftest.$ac_ext <<_ACEOF
22388/* end confdefs.h. */
fd5199d6
VZ
22389#ifdef __STDC__
22390# include <limits.h>
22391#else
22392# include <assert.h>
22393#endif
22394 Syntax error
a848cd7e 22395_ACEOF
f321ab7f
VS
22396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e 22398 ac_status=$?
ac1cb8d3
VS
22399 grep -v '^ *+' conftest.er1 >conftest.err
22400 rm -f conftest.er1
22401 cat conftest.err >&5
a848cd7e 22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fd5199d6
VZ
22403 (exit $ac_status); } >/dev/null; then
22404 if test -s conftest.err; then
22405 ac_cpp_err=$ac_cxx_preproc_warn_flag
22406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22407 else
22408 ac_cpp_err=
22409 fi
22410else
22411 ac_cpp_err=yes
22412fi
22413if test -z "$ac_cpp_err"; then
22414 :
a848cd7e
SC
22415else
22416 echo "$as_me: failed program was:" >&5
22417sed 's/^/| /' conftest.$ac_ext >&5
22418
fd5199d6
VZ
22419 # Broken: fails on valid input.
22420continue
a848cd7e 22421fi
fd5199d6 22422rm -f conftest.err conftest.$ac_ext
a848cd7e 22423
f321ab7f 22424 # OK, works on sane cases. Now check whether non-existent headers
fd5199d6
VZ
22425 # can be detected and how.
22426 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22427/* confdefs.h. */
22428_ACEOF
22429cat confdefs.h >>conftest.$ac_ext
22430cat >>conftest.$ac_ext <<_ACEOF
22431/* end confdefs.h. */
fd5199d6 22432#include <ac_nonexistent.h>
a848cd7e 22433_ACEOF
f321ab7f
VS
22434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
22436 ac_status=$?
22437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } >/dev/null; then
22442 if test -s conftest.err; then
22443 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22444 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22445 else
22446 ac_cpp_err=
22447 fi
22448else
22449 ac_cpp_err=yes
22450fi
22451if test -z "$ac_cpp_err"; then
fd5199d6
VZ
22452 # Broken: success on invalid input.
22453continue
a848cd7e
SC
22454else
22455 echo "$as_me: failed program was:" >&5
22456sed 's/^/| /' conftest.$ac_ext >&5
22457
fd5199d6
VZ
22458 # Passes both tests.
22459ac_preproc_ok=:
22460break
a848cd7e
SC
22461fi
22462rm -f conftest.err conftest.$ac_ext
a848cd7e 22463
fd5199d6
VZ
22464done
22465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22466rm -f conftest.err conftest.$ac_ext
22467if $ac_preproc_ok; then
22468 break
a848cd7e 22469fi
fd5199d6
VZ
22470
22471 done
22472 ac_cv_prog_CXXCPP=$CXXCPP
a848cd7e
SC
22473
22474fi
fd5199d6
VZ
22475 CXXCPP=$ac_cv_prog_CXXCPP
22476else
22477 ac_cv_prog_CXXCPP=$CXXCPP
22478fi
f321ab7f
VS
22479echo "$as_me:$LINENO: result: $CXXCPP" >&5
22480echo "${ECHO_T}$CXXCPP" >&6
fd5199d6
VZ
22481ac_preproc_ok=false
22482for ac_cxx_preproc_warn_flag in '' yes
22483do
22484 # Use a header file that comes with gcc, so configuring glibc
22485 # with a fresh cross-compiler works.
22486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22487 # <limits.h> exists even on freestanding compilers.
22488 # On the NeXT, cc -E runs the code through the compiler's parser,
22489 # not just through cpp. "Syntax error" is here to catch this case.
22490 cat >conftest.$ac_ext <<_ACEOF
22491/* confdefs.h. */
a848cd7e 22492_ACEOF
fd5199d6
VZ
22493cat confdefs.h >>conftest.$ac_ext
22494cat >>conftest.$ac_ext <<_ACEOF
22495/* end confdefs.h. */
22496#ifdef __STDC__
22497# include <limits.h>
22498#else
22499# include <assert.h>
22500#endif
22501 Syntax error
22502_ACEOF
f321ab7f
VS
22503if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
fd5199d6
VZ
22505 ac_status=$?
22506 grep -v '^ *+' conftest.er1 >conftest.err
22507 rm -f conftest.er1
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } >/dev/null; then
22511 if test -s conftest.err; then
22512 ac_cpp_err=$ac_cxx_preproc_warn_flag
22513 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22514 else
22515 ac_cpp_err=
22516 fi
22517else
22518 ac_cpp_err=yes
a848cd7e 22519fi
fd5199d6
VZ
22520if test -z "$ac_cpp_err"; then
22521 :
22522else
22523 echo "$as_me: failed program was:" >&5
22524sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 22525
fd5199d6
VZ
22526 # Broken: fails on valid input.
22527continue
22528fi
22529rm -f conftest.err conftest.$ac_ext
a848cd7e 22530
f321ab7f 22531 # OK, works on sane cases. Now check whether non-existent headers
fd5199d6
VZ
22532 # can be detected and how.
22533 cat >conftest.$ac_ext <<_ACEOF
22534/* confdefs.h. */
a848cd7e 22535_ACEOF
fd5199d6
VZ
22536cat confdefs.h >>conftest.$ac_ext
22537cat >>conftest.$ac_ext <<_ACEOF
22538/* end confdefs.h. */
22539#include <ac_nonexistent.h>
22540_ACEOF
f321ab7f
VS
22541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
fd5199d6
VZ
22543 ac_status=$?
22544 grep -v '^ *+' conftest.er1 >conftest.err
22545 rm -f conftest.er1
22546 cat conftest.err >&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } >/dev/null; then
22549 if test -s conftest.err; then
22550 ac_cpp_err=$ac_cxx_preproc_warn_flag
22551 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22552 else
22553 ac_cpp_err=
22554 fi
22555else
22556 ac_cpp_err=yes
22557fi
22558if test -z "$ac_cpp_err"; then
22559 # Broken: success on invalid input.
22560continue
22561else
22562 echo "$as_me: failed program was:" >&5
22563sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 22564
fd5199d6
VZ
22565 # Passes both tests.
22566ac_preproc_ok=:
22567break
22568fi
22569rm -f conftest.err conftest.$ac_ext
a848cd7e 22570
fd5199d6
VZ
22571done
22572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22573rm -f conftest.err conftest.$ac_ext
22574if $ac_preproc_ok; then
22575 :
22576else
22577 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22578See \`config.log' for more details." >&5
22579echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22580See \`config.log' for more details." >&2;}
22581 { (exit 1); exit 1; }; }
22582fi
22583
f321ab7f 22584ac_ext=cc
5d7b7554
VZ
22585ac_cpp='$CXXCPP $CPPFLAGS'
22586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22589
22590
22591
22592
f321ab7f
VS
22593
22594 ac_ext=cc
a848cd7e
SC
22595ac_cpp='$CXXCPP $CPPFLAGS'
22596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22599
22600
fd5199d6
VZ
22601
22602for ac_header in iostream
22603do
22604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
22605if eval "test \"\${$as_ac_Header+set}\" = set"; then
22606 echo "$as_me:$LINENO: checking for $ac_header" >&5
22607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22608if eval "test \"\${$as_ac_Header+set}\" = set"; then
fd5199d6
VZ
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22610fi
f321ab7f
VS
22611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
fd5199d6
VZ
22613else
22614 # Is the header compilable?
f321ab7f
VS
22615echo "$as_me:$LINENO: checking $ac_header usability" >&5
22616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
fd5199d6 22617cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22618/* confdefs.h. */
22619_ACEOF
22620cat confdefs.h >>conftest.$ac_ext
22621cat >>conftest.$ac_ext <<_ACEOF
22622/* end confdefs.h. */
fd5199d6
VZ
22623$ac_includes_default
22624#include <$ac_header>
a848cd7e
SC
22625_ACEOF
22626rm -f conftest.$ac_objext
f321ab7f
VS
22627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22628 (eval $ac_compile) 2>conftest.er1
a848cd7e 22629 ac_status=$?
ac1cb8d3
VS
22630 grep -v '^ *+' conftest.er1 >conftest.err
22631 rm -f conftest.er1
22632 cat conftest.err >&5
a848cd7e
SC
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } &&
f321ab7f
VS
22635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637 (eval $ac_try) 2>&5
ac1cb8d3
VS
22638 ac_status=$?
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; } &&
22641 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
22642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22643 (eval $ac_try) 2>&5
a848cd7e
SC
22644 ac_status=$?
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); }; }; then
fd5199d6
VZ
22647 ac_header_compiler=yes
22648else
22649 echo "$as_me: failed program was:" >&5
22650sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 22651
f321ab7f 22652ac_header_compiler=no
fd5199d6 22653fi
f321ab7f
VS
22654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22655echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22656echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e 22657
fd5199d6 22658# Is the header present?
f321ab7f
VS
22659echo "$as_me:$LINENO: checking $ac_header presence" >&5
22660echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
fd5199d6
VZ
22661cat >conftest.$ac_ext <<_ACEOF
22662/* confdefs.h. */
22663_ACEOF
22664cat confdefs.h >>conftest.$ac_ext
22665cat >>conftest.$ac_ext <<_ACEOF
22666/* end confdefs.h. */
22667#include <$ac_header>
22668_ACEOF
f321ab7f
VS
22669if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
fd5199d6
VZ
22671 ac_status=$?
22672 grep -v '^ *+' conftest.er1 >conftest.err
22673 rm -f conftest.er1
22674 cat conftest.err >&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } >/dev/null; then
22677 if test -s conftest.err; then
22678 ac_cpp_err=$ac_cxx_preproc_warn_flag
22679 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22680 else
22681 ac_cpp_err=
22682 fi
22683else
22684 ac_cpp_err=yes
22685fi
22686if test -z "$ac_cpp_err"; then
22687 ac_header_preproc=yes
a848cd7e
SC
22688else
22689 echo "$as_me: failed program was:" >&5
22690sed 's/^/| /' conftest.$ac_ext >&5
22691
fd5199d6
VZ
22692 ac_header_preproc=no
22693fi
22694rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
22695echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22696echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e 22697
fd5199d6
VZ
22698# So? What about this header?
22699case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22700 yes:no: )
22701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22702echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22704echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22705 ac_header_preproc=yes
22706 ;;
22707 no:yes:* )
22708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22709echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22711echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22713echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22715echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22717echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22719echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
22720 (
22721 cat <<\_ASBOX
fd5199d6
VZ
22722## ----------------------------------------- ##
22723## Report this to wx-dev@lists.wxwidgets.org ##
22724## ----------------------------------------- ##
22725_ASBOX
f321ab7f
VS
22726 ) |
22727 sed "s/^/$as_me: WARNING: /" >&2
fd5199d6
VZ
22728 ;;
22729esac
f321ab7f
VS
22730echo "$as_me:$LINENO: checking for $ac_header" >&5
22731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22732if eval "test \"\${$as_ac_Header+set}\" = set"; then
fd5199d6
VZ
22733 echo $ECHO_N "(cached) $ECHO_C" >&6
22734else
22735 eval "$as_ac_Header=\$ac_header_preproc"
22736fi
f321ab7f
VS
22737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e 22739
fd5199d6
VZ
22740fi
22741if test `eval echo '${'$as_ac_Header'}'` = yes; then
22742 cat >>confdefs.h <<_ACEOF
22743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22744_ACEOF
a848cd7e
SC
22745
22746fi
fd5199d6
VZ
22747
22748done
22749
22750
22751 if test "$ac_cv_header_iostream" = "yes" ; then
22752 :
22753 else
22754 cat >>confdefs.h <<\_ACEOF
22755#define wxUSE_IOSTREAMH 1
22756_ACEOF
22757
22758 fi
22759
22760 ac_ext=c
22761ac_cpp='$CPP $CPPFLAGS'
22762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22764ac_compiler_gnu=$ac_cv_c_compiler_gnu
22765
22766
22767
22768
f321ab7f
VS
22769 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22770echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
fd5199d6
VZ
22771if test "${wx_cv_cpp_bool+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22773else
22774
22775
f321ab7f
VS
22776
22777 ac_ext=cc
5d7b7554
VZ
22778ac_cpp='$CXXCPP $CPPFLAGS'
22779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22782
22783
fd5199d6
VZ
22784 cat >conftest.$ac_ext <<_ACEOF
22785/* confdefs.h. */
22786_ACEOF
22787cat confdefs.h >>conftest.$ac_ext
22788cat >>conftest.$ac_ext <<_ACEOF
22789/* end confdefs.h. */
22790
22791
22792int
22793main ()
22794{
22795
22796 bool b = true;
22797
22798 return 0;
22799
22800 ;
22801 return 0;
22802}
22803_ACEOF
22804rm -f conftest.$ac_objext
f321ab7f
VS
22805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806 (eval $ac_compile) 2>conftest.er1
fd5199d6
VZ
22807 ac_status=$?
22808 grep -v '^ *+' conftest.er1 >conftest.err
22809 rm -f conftest.er1
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
f321ab7f
VS
22813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815 (eval $ac_try) 2>&5
fd5199d6
VZ
22816 ac_status=$?
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); }; } &&
22819 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
22820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821 (eval $ac_try) 2>&5
fd5199d6
VZ
22822 ac_status=$?
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); }; }; then
22825
22826 wx_cv_cpp_bool=yes
22827
22828else
22829 echo "$as_me: failed program was:" >&5
22830sed 's/^/| /' conftest.$ac_ext >&5
22831
22832
22833 wx_cv_cpp_bool=no
22834
22835
22836fi
f321ab7f 22837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
22838
22839 ac_ext=c
22840ac_cpp='$CPP $CPPFLAGS'
22841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22843ac_compiler_gnu=$ac_cv_c_compiler_gnu
22844
22845
a848cd7e 22846fi
f321ab7f
VS
22847echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22848echo "${ECHO_T}$wx_cv_cpp_bool" >&6
a848cd7e
SC
22849
22850 if test "$wx_cv_cpp_bool" = "yes"; then
22851 cat >>confdefs.h <<\_ACEOF
22852#define HAVE_BOOL 1
22853_ACEOF
22854
22855 fi
22856
22857
22858
f321ab7f
VS
22859 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22860echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
a848cd7e
SC
22861if test "${wx_cv_explicit+set}" = set; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22863else
22864
22865
f321ab7f
VS
22866
22867 ac_ext=cc
a848cd7e
SC
22868ac_cpp='$CXXCPP $CPPFLAGS'
22869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22872
22873
22874 cat >conftest.$ac_ext <<_ACEOF
22875/* confdefs.h. */
22876_ACEOF
22877cat confdefs.h >>conftest.$ac_ext
22878cat >>conftest.$ac_ext <<_ACEOF
22879/* end confdefs.h. */
22880
22881 class Foo { public: explicit Foo(int) {} };
22882
22883int
22884main ()
22885{
22886
22887 return 0;
22888
22889 ;
22890 return 0;
22891}
22892_ACEOF
22893rm -f conftest.$ac_objext
f321ab7f
VS
22894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22895 (eval $ac_compile) 2>conftest.er1
a848cd7e 22896 ac_status=$?
ac1cb8d3
VS
22897 grep -v '^ *+' conftest.er1 >conftest.err
22898 rm -f conftest.er1
22899 cat conftest.err >&5
a848cd7e
SC
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); } &&
f321ab7f
VS
22902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22904 (eval $ac_try) 2>&5
ac1cb8d3
VS
22905 ac_status=$?
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); }; } &&
22908 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
22909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910 (eval $ac_try) 2>&5
a848cd7e
SC
22911 ac_status=$?
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; }; then
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 static void TakeFoo(const Foo& foo) { }
22924
22925int
22926main ()
22927{
22928
22929 TakeFoo(17);
22930 return 0;
22931
22932 ;
22933 return 0;
22934}
22935_ACEOF
22936rm -f conftest.$ac_objext
f321ab7f
VS
22937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22938 (eval $ac_compile) 2>conftest.er1
a848cd7e 22939 ac_status=$?
ac1cb8d3
VS
22940 grep -v '^ *+' conftest.er1 >conftest.err
22941 rm -f conftest.er1
22942 cat conftest.err >&5
a848cd7e
SC
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); } &&
f321ab7f
VS
22945 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
ac1cb8d3
VS
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; } &&
22951 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
a848cd7e
SC
22954 ac_status=$?
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 wx_cv_explicit=no
22958else
22959 echo "$as_me: failed program was:" >&5
22960sed 's/^/| /' conftest.$ac_ext >&5
22961
f321ab7f 22962wx_cv_explicit=yes
a848cd7e
SC
22963
22964fi
f321ab7f 22965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22966
22967else
22968 echo "$as_me: failed program was:" >&5
22969sed 's/^/| /' conftest.$ac_ext >&5
22970
f321ab7f 22971wx_cv_explicit=no
a848cd7e
SC
22972
22973fi
f321ab7f 22974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22975
fd5199d6
VZ
22976 ac_ext=c
22977ac_cpp='$CPP $CPPFLAGS'
22978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22980ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
22981
22982
22983fi
f321ab7f
VS
22984echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22985echo "${ECHO_T}$wx_cv_explicit" >&6
a848cd7e
SC
22986
22987 if test "$wx_cv_explicit" = "yes"; then
22988 cat >>confdefs.h <<\_ACEOF
22989#define HAVE_EXPLICIT 1
22990_ACEOF
22991
22992 fi
22993
22994
f321ab7f
VS
22995echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22996echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
a848cd7e
SC
22997if test "${ac_cv_cxx_const_cast+set}" = set; then
22998 echo $ECHO_N "(cached) $ECHO_C" >&6
22999else
23000
f321ab7f
VS
23001
23002 ac_ext=cc
a848cd7e
SC
23003ac_cpp='$CXXCPP $CPPFLAGS'
23004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23007
23008 cat >conftest.$ac_ext <<_ACEOF
23009/* confdefs.h. */
23010_ACEOF
23011cat confdefs.h >>conftest.$ac_ext
23012cat >>conftest.$ac_ext <<_ACEOF
23013/* end confdefs.h. */
23014
23015int
23016main ()
23017{
23018int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23019 ;
23020 return 0;
23021}
23022_ACEOF
23023rm -f conftest.$ac_objext
f321ab7f
VS
23024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23025 (eval $ac_compile) 2>conftest.er1
a848cd7e 23026 ac_status=$?
ac1cb8d3
VS
23027 grep -v '^ *+' conftest.er1 >conftest.err
23028 rm -f conftest.er1
23029 cat conftest.err >&5
a848cd7e
SC
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); } &&
f321ab7f
VS
23032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034 (eval $ac_try) 2>&5
ac1cb8d3
VS
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }; } &&
23038 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
a848cd7e
SC
23041 ac_status=$?
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; }; then
23044 ac_cv_cxx_const_cast=yes
23045else
23046 echo "$as_me: failed program was:" >&5
23047sed 's/^/| /' conftest.$ac_ext >&5
23048
f321ab7f 23049ac_cv_cxx_const_cast=no
a848cd7e 23050fi
f321ab7f 23051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
23052 ac_ext=c
23053ac_cpp='$CPP $CPPFLAGS'
23054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23056ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
23057
23058
23059fi
f321ab7f
VS
23060echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23061echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
a848cd7e
SC
23062if test "$ac_cv_cxx_const_cast" = yes; then
23063
23064cat >>confdefs.h <<\_ACEOF
23065#define HAVE_CONST_CAST
23066_ACEOF
23067
23068fi
23069
f321ab7f
VS
23070echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23071echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
7714864e
RL
23072if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23073 echo $ECHO_N "(cached) $ECHO_C" >&6
23074else
23075
f321ab7f
VS
23076
23077 ac_ext=cc
7714864e
RL
23078ac_cpp='$CXXCPP $CPPFLAGS'
23079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23082
23083 cat >conftest.$ac_ext <<_ACEOF
23084/* confdefs.h. */
23085_ACEOF
23086cat confdefs.h >>conftest.$ac_ext
23087cat >>conftest.$ac_ext <<_ACEOF
23088/* end confdefs.h. */
23089#include <typeinfo>
23090class Base { public : Base () {} virtual void f () = 0;};
23091class Derived : public Base { public : Derived () {} virtual void f () {} };
23092class Unrelated { public : Unrelated () {} };
23093int g (Unrelated&) { return 0; }
23094int
23095main ()
23096{
23097
23098Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23099 ;
23100 return 0;
23101}
23102_ACEOF
23103rm -f conftest.$ac_objext
f321ab7f
VS
23104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23105 (eval $ac_compile) 2>conftest.er1
7714864e
RL
23106 ac_status=$?
23107 grep -v '^ *+' conftest.er1 >conftest.err
23108 rm -f conftest.er1
23109 cat conftest.err >&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); } &&
f321ab7f
VS
23112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
7714864e
RL
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; } &&
23118 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
7714864e
RL
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; }; then
23124 ac_cv_cxx_reinterpret_cast=yes
23125else
23126 echo "$as_me: failed program was:" >&5
23127sed 's/^/| /' conftest.$ac_ext >&5
23128
f321ab7f 23129ac_cv_cxx_reinterpret_cast=no
7714864e 23130fi
f321ab7f 23131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
23132 ac_ext=c
23133ac_cpp='$CPP $CPPFLAGS'
23134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23136ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714864e
RL
23137
23138
23139fi
f321ab7f
VS
23140echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23141echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
7714864e
RL
23142if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23143
23144cat >>confdefs.h <<\_ACEOF
23145#define HAVE_REINTERPRET_CAST
23146_ACEOF
23147
23148fi
23149
f321ab7f
VS
23150echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23151echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
a848cd7e
SC
23152if test "${ac_cv_cxx_static_cast+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23154else
23155
f321ab7f
VS
23156
23157 ac_ext=cc
a848cd7e
SC
23158ac_cpp='$CXXCPP $CPPFLAGS'
23159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23162
23163 cat >conftest.$ac_ext <<_ACEOF
23164/* confdefs.h. */
23165_ACEOF
23166cat confdefs.h >>conftest.$ac_ext
23167cat >>conftest.$ac_ext <<_ACEOF
23168/* end confdefs.h. */
23169#include <typeinfo>
23170class Base { public : Base () {} virtual void f () = 0; };
23171class Derived : public Base { public : Derived () {} virtual void f () {} };
23172int g (Derived&) { return 0; }
23173int
23174main ()
23175{
23176
23177Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23178 ;
23179 return 0;
23180}
23181_ACEOF
23182rm -f conftest.$ac_objext
f321ab7f
VS
23183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23184 (eval $ac_compile) 2>conftest.er1
a848cd7e 23185 ac_status=$?
ac1cb8d3
VS
23186 grep -v '^ *+' conftest.er1 >conftest.err
23187 rm -f conftest.er1
23188 cat conftest.err >&5
a848cd7e
SC
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } &&
f321ab7f
VS
23191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23193 (eval $ac_try) 2>&5
ac1cb8d3
VS
23194 ac_status=$?
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); }; } &&
23197 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199 (eval $ac_try) 2>&5
a848cd7e
SC
23200 ac_status=$?
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); }; }; then
23203 ac_cv_cxx_static_cast=yes
23204else
23205 echo "$as_me: failed program was:" >&5
23206sed 's/^/| /' conftest.$ac_ext >&5
23207
f321ab7f 23208ac_cv_cxx_static_cast=no
a848cd7e 23209fi
f321ab7f 23210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
23211 ac_ext=c
23212ac_cpp='$CPP $CPPFLAGS'
23213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23215ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
23216
23217
23218fi
f321ab7f
VS
23219echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23220echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
a848cd7e
SC
23221if test "$ac_cv_cxx_static_cast" = yes; then
23222
23223cat >>confdefs.h <<\_ACEOF
23224#define HAVE_STATIC_CAST
23225_ACEOF
23226
23227fi
23228
23229
3c28b7cb 23230if test "x$SUNCXX" = xyes; then
c92ad099 23231 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23232fi
23233
9122d155 23234if test "x$SUNCC" = xyes; then
c92ad099 23235 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23236fi
23237
0ad5d837 23238if test "x$SGICC" = "xyes"; then
c92ad099 23239 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23240fi
23241if test "x$SGICXX" = "xyes"; then
c92ad099 23242 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23243fi
23244
2eef8513 23245if test "x$HPCC" = "xyes"; then
c92ad099 23246 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23247fi
23248if test "x$HPCXX" = "xyes"; then
c92ad099 23249 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23250fi
23251
23252if test "x$COMPAQCXX" = "xyes"; then
23253 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23254fi
23255
f321ab7f 23256ac_ext=cc
9b8888f9
VZ
23257ac_cpp='$CXXCPP $CPPFLAGS'
23258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23261
23262
f56c22b4 23263if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23264 if test "$wxUSE_UNICODE" = "yes"; then
23265 std_string="std::wstring"
23266 char_type="wchar_t"
23267 else
23268 std_string="std::string"
23269 char_type="char"
23270 fi
23271
f321ab7f
VS
23272 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23273echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
9b8888f9
VZ
23274if test "${wx_cv_class_stdstring+set}" = set; then
23275 echo $ECHO_N "(cached) $ECHO_C" >&6
23276else
23277
23278 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23279/* confdefs.h. */
23280_ACEOF
23281cat confdefs.h >>conftest.$ac_ext
23282cat >>conftest.$ac_ext <<_ACEOF
23283/* end confdefs.h. */
23284#include <string>
a848cd7e
SC
23285int
23286main ()
23287{
f56c22b4 23288$std_string foo;
a848cd7e
SC
23289 ;
23290 return 0;
23291}
23292_ACEOF
23293rm -f conftest.$ac_objext
f321ab7f
VS
23294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23295 (eval $ac_compile) 2>conftest.er1
a848cd7e 23296 ac_status=$?
ac1cb8d3
VS
23297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
a848cd7e
SC
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } &&
f321ab7f
VS
23302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
ac1cb8d3
VS
23305 ac_status=$?
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; } &&
23308 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23310 (eval $ac_try) 2>&5
a848cd7e
SC
23311 ac_status=$?
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); }; }; then
9b8888f9 23314 wx_cv_class_stdstring=yes
a848cd7e
SC
23315else
23316 echo "$as_me: failed program was:" >&5
23317sed 's/^/| /' conftest.$ac_ext >&5
23318
f321ab7f 23319wx_cv_class_stdstring=no
9b8888f9
VZ
23320
23321fi
f321ab7f 23322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
23323
23324
23325fi
f321ab7f
VS
23326echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
23327echo "${ECHO_T}$wx_cv_class_stdstring" >&6
9b8888f9
VZ
23328
23329 if test "$wx_cv_class_stdstring" = yes; then
23330 if test "$wxUSE_UNICODE" = "yes"; then
23331 cat >>confdefs.h <<\_ACEOF
23332#define HAVE_STD_WSTRING 1
23333_ACEOF
23334
23335 fi
23336 else
f321ab7f
VS
23337 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23338echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
9b8888f9
VZ
23339if test "${wx_cv_class_stdbasicstring+set}" = set; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23341else
23342
23343 cat >conftest.$ac_ext <<_ACEOF
0a08f02a
MB
23344/* confdefs.h. */
23345_ACEOF
23346cat confdefs.h >>conftest.$ac_ext
23347cat >>conftest.$ac_ext <<_ACEOF
23348/* end confdefs.h. */
23349
9b8888f9
VZ
23350 #ifdef HAVE_WCHAR_H
23351 # ifdef __CYGWIN__
23352 # include <stddef.h>
23353 # endif
23354 # include <wchar.h>
23355 #endif
23356 #ifdef HAVE_STDLIB_H
23357 # include <stdlib.h>
23358 #endif
23359 #include <stdio.h>
23360 #include <string>
0a08f02a
MB
23361
23362int
23363main ()
23364{
f56c22b4 23365std::basic_string<$char_type> foo;
9b8888f9 23366 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23367 ;
23368 return 0;
23369}
23370_ACEOF
23371rm -f conftest.$ac_objext
f321ab7f
VS
23372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23373 (eval $ac_compile) 2>conftest.er1
0a08f02a
MB
23374 ac_status=$?
23375 grep -v '^ *+' conftest.er1 >conftest.err
23376 rm -f conftest.er1
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } &&
f321ab7f
VS
23380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23382 (eval $ac_try) 2>&5
0a08f02a
MB
23383 ac_status=$?
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); }; } &&
23386 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388 (eval $ac_try) 2>&5
0a08f02a
MB
23389 ac_status=$?
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; }; then
9b8888f9 23392 wx_cv_class_stdbasicstring=yes
0a08f02a
MB
23393else
23394 echo "$as_me: failed program was:" >&5
23395sed 's/^/| /' conftest.$ac_ext >&5
23396
f321ab7f 23397wx_cv_class_stdbasicstring=no
0a08f02a 23398
a848cd7e 23399fi
f321ab7f 23400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23401
9b8888f9 23402
0a08f02a 23403fi
f321ab7f
VS
23404echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
23405echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6
9b8888f9
VZ
23406
23407 if test "$wx_cv_class_stdbasicstring" != yes; then
23408 if test "$wxUSE_STL" = "yes"; then
23409 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23410echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23411 { (exit 1); exit 1; }; }
23412 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23413 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23414echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23415 { (exit 1); exit 1; }; }
23416 else
23417 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23418echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23419 wxUSE_STD_STRING=no
23420 fi
23421 fi
23422 fi
f56c22b4
MW
23423fi
23424
23425if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f321ab7f
VS
23426 echo "$as_me:$LINENO: checking for std::istream" >&5
23427echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
f56c22b4
MW
23428if test "${ac_cv_type_std__istream+set}" = set; then
23429 echo $ECHO_N "(cached) $ECHO_C" >&6
23430else
23431 cat >conftest.$ac_ext <<_ACEOF
23432/* confdefs.h. */
23433_ACEOF
23434cat confdefs.h >>conftest.$ac_ext
23435cat >>conftest.$ac_ext <<_ACEOF
23436/* end confdefs.h. */
23437#include <iostream>
23438
23439int
23440main ()
23441{
f321ab7f 23442if ((std::istream *) 0)
f56c22b4 23443 return 0;
f321ab7f 23444if (sizeof (std::istream))
f56c22b4
MW
23445 return 0;
23446 ;
23447 return 0;
23448}
23449_ACEOF
23450rm -f conftest.$ac_objext
f321ab7f
VS
23451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23452 (eval $ac_compile) 2>conftest.er1
f56c22b4
MW
23453 ac_status=$?
23454 grep -v '^ *+' conftest.er1 >conftest.err
23455 rm -f conftest.er1
23456 cat conftest.err >&5
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); } &&
f321ab7f
VS
23459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
f56c22b4
MW
23462 ac_status=$?
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; } &&
23465 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
f56c22b4
MW
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_cv_type_std__istream=yes
23472else
23473 echo "$as_me: failed program was:" >&5
23474sed 's/^/| /' conftest.$ac_ext >&5
23475
f321ab7f 23476ac_cv_type_std__istream=no
f56c22b4 23477fi
f321ab7f 23478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4 23479fi
f321ab7f
VS
23480echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23481echo "${ECHO_T}$ac_cv_type_std__istream" >&6
f56c22b4
MW
23482if test $ac_cv_type_std__istream = yes; then
23483
23484cat >>confdefs.h <<_ACEOF
23485#define HAVE_STD__ISTREAM 1
23486_ACEOF
23487
23488
23489else
23490 wxUSE_STD_IOSTREAM=no
23491fi
f321ab7f
VS
23492echo "$as_me:$LINENO: checking for std::ostream" >&5
23493echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
f56c22b4
MW
23494if test "${ac_cv_type_std__ostream+set}" = set; then
23495 echo $ECHO_N "(cached) $ECHO_C" >&6
23496else
23497 cat >conftest.$ac_ext <<_ACEOF
23498/* confdefs.h. */
23499_ACEOF
23500cat confdefs.h >>conftest.$ac_ext
23501cat >>conftest.$ac_ext <<_ACEOF
23502/* end confdefs.h. */
23503#include <iostream>
23504
23505int
23506main ()
23507{
f321ab7f 23508if ((std::ostream *) 0)
f56c22b4 23509 return 0;
f321ab7f 23510if (sizeof (std::ostream))
f56c22b4
MW
23511 return 0;
23512 ;
23513 return 0;
23514}
23515_ACEOF
23516rm -f conftest.$ac_objext
f321ab7f
VS
23517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23518 (eval $ac_compile) 2>conftest.er1
f56c22b4
MW
23519 ac_status=$?
23520 grep -v '^ *+' conftest.er1 >conftest.err
23521 rm -f conftest.er1
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } &&
f321ab7f
VS
23525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527 (eval $ac_try) 2>&5
f56c22b4
MW
23528 ac_status=$?
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); }; } &&
23531 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
f56c22b4
MW
23534 ac_status=$?
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; }; then
23537 ac_cv_type_std__ostream=yes
23538else
23539 echo "$as_me: failed program was:" >&5
23540sed 's/^/| /' conftest.$ac_ext >&5
23541
f321ab7f 23542ac_cv_type_std__ostream=no
f56c22b4 23543fi
f321ab7f 23544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4 23545fi
f321ab7f
VS
23546echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23547echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
f56c22b4
MW
23548if test $ac_cv_type_std__ostream = yes; then
23549
23550cat >>confdefs.h <<_ACEOF
23551#define HAVE_STD__OSTREAM 1
23552_ACEOF
23553
23554
23555else
23556 wxUSE_STD_IOSTREAM=no
23557fi
23558
23559
23560 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23561 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23562 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23563echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23564 { (exit 1); exit 1; }; }
23565 else
23566 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23567echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23568 fi
f56c22b4 23569 fi
0a08f02a
MB
23570fi
23571
23572if test "$wxUSE_STL" = "yes"; then
f321ab7f
VS
23573 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23574echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
9b8888f9
VZ
23575if test "${wx_cv_lib_stl+set}" = set; then
23576 echo $ECHO_N "(cached) $ECHO_C" >&6
23577else
23578 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23579/* confdefs.h. */
23580_ACEOF
23581cat confdefs.h >>conftest.$ac_ext
23582cat >>conftest.$ac_ext <<_ACEOF
23583/* end confdefs.h. */
23584#include <string>
9b8888f9
VZ
23585 #include <functional>
23586 #include <algorithm>
23587 #include <vector>
23588 #include <list>
a848cd7e
SC
23589int
23590main ()
23591{
0a08f02a 23592std::vector<int> moo;
9b8888f9
VZ
23593 std::list<int> foo;
23594 std::vector<int>::iterator it =
23595 std::find_if(moo.begin(), moo.end(),
23596 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23597 ;
23598 return 0;
23599}
23600_ACEOF
23601rm -f conftest.$ac_objext
f321ab7f
VS
23602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23603 (eval $ac_compile) 2>conftest.er1
a848cd7e 23604 ac_status=$?
ac1cb8d3
VS
23605 grep -v '^ *+' conftest.er1 >conftest.err
23606 rm -f conftest.er1
23607 cat conftest.err >&5
a848cd7e
SC
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } &&
f321ab7f
VS
23610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
ac1cb8d3
VS
23613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; } &&
23616 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
a848cd7e
SC
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
9b8888f9 23622 wx_cv_lib_stl=yes
a848cd7e
SC
23623else
23624 echo "$as_me: failed program was:" >&5
23625sed 's/^/| /' conftest.$ac_ext >&5
23626
f321ab7f 23627wx_cv_lib_stl=no
9b8888f9 23628
a848cd7e 23629fi
f321ab7f 23630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23631
9b8888f9 23632fi
f321ab7f
VS
23633echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
23634echo "${ECHO_T}$wx_cv_lib_stl" >&6
9b8888f9
VZ
23635
23636 if test "$wx_cv_lib_stl" != yes; then
23637 { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
23638echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
23639 { (exit 1); exit 1; }; }
23640 fi
23641
f321ab7f
VS
23642 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23643echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
9b8888f9
VZ
23644if test "${wx_cv_func_stdstring_compare+set}" = set; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23646else
23647 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
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;
9b8888f9
VZ
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);
a848cd7e
SC
23664 ;
23665 return 0;
23666}
23667_ACEOF
23668rm -f conftest.$ac_objext
f321ab7f
VS
23669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
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); } &&
f321ab7f
VS
23677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
ac1cb8d3
VS
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
a848cd7e
SC
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
9b8888f9 23689 wx_cv_func_stdstring_compare=yes
a848cd7e
SC
23690else
23691 echo "$as_me: failed program was:" >&5
23692sed 's/^/| /' conftest.$ac_ext >&5
23693
f321ab7f 23694wx_cv_func_stdstring_compare=no
9b8888f9 23695
a848cd7e 23696fi
f321ab7f 23697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 23698
9b8888f9 23699fi
f321ab7f
VS
23700echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
23701echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6
9b8888f9
VZ
23702
23703 if test "$wx_cv_func_stdstring_compare" = yes; then
23704 cat >>confdefs.h <<\_ACEOF
23705#define HAVE_STD_STRING_COMPARE 1
23706_ACEOF
23707
23708 fi
23709
bdcade0a 23710 if test "${ac_cv_header_hash_map+set}" = set; then
f321ab7f
VS
23711 echo "$as_me:$LINENO: checking for hash_map" >&5
23712echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
bdcade0a
MB
23713if test "${ac_cv_header_hash_map+set}" = set; then
23714 echo $ECHO_N "(cached) $ECHO_C" >&6
23715fi
f321ab7f
VS
23716echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23717echo "${ECHO_T}$ac_cv_header_hash_map" >&6
bdcade0a
MB
23718else
23719 # Is the header compilable?
f321ab7f
VS
23720echo "$as_me:$LINENO: checking hash_map usability" >&5
23721echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
bdcade0a
MB
23722cat >conftest.$ac_ext <<_ACEOF
23723/* confdefs.h. */
23724_ACEOF
23725cat confdefs.h >>conftest.$ac_ext
23726cat >>conftest.$ac_ext <<_ACEOF
23727/* end confdefs.h. */
23728$ac_includes_default
23729#include <hash_map>
23730_ACEOF
23731rm -f conftest.$ac_objext
f321ab7f
VS
23732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23733 (eval $ac_compile) 2>conftest.er1
bdcade0a 23734 ac_status=$?
ac1cb8d3
VS
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
bdcade0a
MB
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } &&
f321ab7f
VS
23740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
ac1cb8d3
VS
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; } &&
23746 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
bdcade0a
MB
23749 ac_status=$?
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; }; then
23752 ac_header_compiler=yes
23753else
23754 echo "$as_me: failed program was:" >&5
23755sed 's/^/| /' conftest.$ac_ext >&5
23756
f321ab7f 23757ac_header_compiler=no
bdcade0a 23758fi
f321ab7f
VS
23759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23761echo "${ECHO_T}$ac_header_compiler" >&6
bdcade0a
MB
23762
23763# Is the header present?
f321ab7f
VS
23764echo "$as_me:$LINENO: checking hash_map presence" >&5
23765echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
bdcade0a
MB
23766cat >conftest.$ac_ext <<_ACEOF
23767/* confdefs.h. */
23768_ACEOF
23769cat confdefs.h >>conftest.$ac_ext
23770cat >>conftest.$ac_ext <<_ACEOF
23771/* end confdefs.h. */
23772#include <hash_map>
23773_ACEOF
f321ab7f
VS
23774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
bdcade0a
MB
23776 ac_status=$?
23777 grep -v '^ *+' conftest.er1 >conftest.err
23778 rm -f conftest.er1
23779 cat conftest.err >&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); } >/dev/null; then
23782 if test -s conftest.err; then
9b8888f9
VZ
23783 ac_cpp_err=$ac_cxx_preproc_warn_flag
23784 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23785 else
23786 ac_cpp_err=
23787 fi
23788else
23789 ac_cpp_err=yes
23790fi
23791if test -z "$ac_cpp_err"; then
23792 ac_header_preproc=yes
23793else
23794 echo "$as_me: failed program was:" >&5
23795sed 's/^/| /' conftest.$ac_ext >&5
23796
23797 ac_header_preproc=no
23798fi
23799rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
23800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23801echo "${ECHO_T}$ac_header_preproc" >&6
bdcade0a
MB
23802
23803# So? What about this header?
9b8888f9 23804case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 23805 yes:no: )
bdcade0a
MB
23806 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23807echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23808 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23809echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23810 ac_header_preproc=yes
bdcade0a 23811 ;;
ac1cb8d3 23812 no:yes:* )
bdcade0a
MB
23813 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23814echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23815 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23816echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23817 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23818echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23819 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23820echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23821 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23822echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23823 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23824echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
23825 (
23826 cat <<\_ASBOX
ac1cb8d3
VS
23827## ----------------------------------------- ##
23828## Report this to wx-dev@lists.wxwidgets.org ##
23829## ----------------------------------------- ##
bdcade0a 23830_ASBOX
f321ab7f
VS
23831 ) |
23832 sed "s/^/$as_me: WARNING: /" >&2
bdcade0a
MB
23833 ;;
23834esac
f321ab7f
VS
23835echo "$as_me:$LINENO: checking for hash_map" >&5
23836echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
bdcade0a
MB
23837if test "${ac_cv_header_hash_map+set}" = set; then
23838 echo $ECHO_N "(cached) $ECHO_C" >&6
23839else
23840 ac_cv_header_hash_map=$ac_header_preproc
23841fi
f321ab7f
VS
23842echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23843echo "${ECHO_T}$ac_cv_header_hash_map" >&6
bdcade0a
MB
23844
23845fi
23846if test $ac_cv_header_hash_map = yes; then
f321ab7f
VS
23847 echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
23848echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6
9b8888f9
VZ
23849if test "${wx_cv_class_stdhashmapset+set}" = set; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23851else
23852 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
23853/* confdefs.h. */
23854_ACEOF
23855cat confdefs.h >>conftest.$ac_ext
23856cat >>conftest.$ac_ext <<_ACEOF
23857/* end confdefs.h. */
23858#include <hash_map>
9b8888f9 23859 #include <hash_set>
bdcade0a
MB
23860int
23861main ()
23862{
23863std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
9b8888f9 23864 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
bdcade0a
MB
23865 ;
23866 return 0;
23867}
23868_ACEOF
23869rm -f conftest.$ac_objext
f321ab7f
VS
23870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23871 (eval $ac_compile) 2>conftest.er1
bdcade0a 23872 ac_status=$?
ac1cb8d3
VS
23873 grep -v '^ *+' conftest.er1 >conftest.err
23874 rm -f conftest.er1
23875 cat conftest.err >&5
bdcade0a
MB
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } &&
f321ab7f
VS
23878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880 (eval $ac_try) 2>&5
ac1cb8d3
VS
23881 ac_status=$?
23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); }; } &&
23884 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23886 (eval $ac_try) 2>&5
bdcade0a
MB
23887 ac_status=$?
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); }; }; then
9b8888f9 23890 wx_cv_class_stdhashmapset=yes
bdcade0a
MB
23891else
23892 echo "$as_me: failed program was:" >&5
23893sed 's/^/| /' conftest.$ac_ext >&5
23894
f321ab7f 23895wx_cv_class_stdhashmapset=no
bdcade0a 23896fi
f321ab7f 23897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 23898
9b8888f9
VZ
23899
23900fi
f321ab7f
VS
23901echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
23902echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6
9b8888f9 23903
bdcade0a
MB
23904fi
23905
23906
23907
9b8888f9
VZ
23908 if test "$wx_cv_class_stdhashmapset" = yes; then
23909 cat >>confdefs.h <<\_ACEOF
23910#define HAVE_HASH_MAP 1
23911_ACEOF
23912
23913 cat >>confdefs.h <<\_ACEOF
23914#define HAVE_STD_HASH_MAP 1
23915_ACEOF
23916
23917 fi
23918
bdcade0a 23919 if test "${ac_cv_header_ext_hash_map+set}" = set; then
f321ab7f
VS
23920 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23921echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
bdcade0a
MB
23922if test "${ac_cv_header_ext_hash_map+set}" = set; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23924fi
f321ab7f
VS
23925echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23926echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
bdcade0a
MB
23927else
23928 # Is the header compilable?
f321ab7f
VS
23929echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23930echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
bdcade0a
MB
23931cat >conftest.$ac_ext <<_ACEOF
23932/* confdefs.h. */
23933_ACEOF
23934cat confdefs.h >>conftest.$ac_ext
23935cat >>conftest.$ac_ext <<_ACEOF
23936/* end confdefs.h. */
23937$ac_includes_default
23938#include <ext/hash_map>
23939_ACEOF
23940rm -f conftest.$ac_objext
f321ab7f
VS
23941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23942 (eval $ac_compile) 2>conftest.er1
bdcade0a 23943 ac_status=$?
ac1cb8d3
VS
23944 grep -v '^ *+' conftest.er1 >conftest.err
23945 rm -f conftest.er1
23946 cat conftest.err >&5
bdcade0a
MB
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } &&
f321ab7f
VS
23949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23951 (eval $ac_try) 2>&5
ac1cb8d3
VS
23952 ac_status=$?
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); }; } &&
23955 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
23956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23957 (eval $ac_try) 2>&5
bdcade0a
MB
23958 ac_status=$?
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); }; }; then
23961 ac_header_compiler=yes
23962else
23963 echo "$as_me: failed program was:" >&5
23964sed 's/^/| /' conftest.$ac_ext >&5
23965
f321ab7f 23966ac_header_compiler=no
bdcade0a 23967fi
f321ab7f
VS
23968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23970echo "${ECHO_T}$ac_header_compiler" >&6
bdcade0a
MB
23971
23972# Is the header present?
f321ab7f
VS
23973echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23974echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
bdcade0a
MB
23975cat >conftest.$ac_ext <<_ACEOF
23976/* confdefs.h. */
23977_ACEOF
23978cat confdefs.h >>conftest.$ac_ext
23979cat >>conftest.$ac_ext <<_ACEOF
23980/* end confdefs.h. */
23981#include <ext/hash_map>
23982_ACEOF
f321ab7f
VS
23983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
bdcade0a
MB
23985 ac_status=$?
23986 grep -v '^ *+' conftest.er1 >conftest.err
23987 rm -f conftest.er1
23988 cat conftest.err >&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } >/dev/null; then
23991 if test -s conftest.err; then
9b8888f9
VZ
23992 ac_cpp_err=$ac_cxx_preproc_warn_flag
23993 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23994 else
23995 ac_cpp_err=
23996 fi
23997else
23998 ac_cpp_err=yes
23999fi
24000if test -z "$ac_cpp_err"; then
24001 ac_header_preproc=yes
24002else
24003 echo "$as_me: failed program was:" >&5
24004sed 's/^/| /' conftest.$ac_ext >&5
24005
24006 ac_header_preproc=no
24007fi
24008rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
24009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24010echo "${ECHO_T}$ac_header_preproc" >&6
bdcade0a
MB
24011
24012# So? What about this header?
9b8888f9 24013case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 24014 yes:no: )
bdcade0a
MB
24015 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24016echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24017 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24018echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24019 ac_header_preproc=yes
bdcade0a 24020 ;;
ac1cb8d3 24021 no:yes:* )
bdcade0a
MB
24022 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24023echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24024 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24025echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24026 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24027echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24028 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24029echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24030 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24031echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24032 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24033echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
24034 (
24035 cat <<\_ASBOX
ac1cb8d3
VS
24036## ----------------------------------------- ##
24037## Report this to wx-dev@lists.wxwidgets.org ##
24038## ----------------------------------------- ##
bdcade0a 24039_ASBOX
f321ab7f
VS
24040 ) |
24041 sed "s/^/$as_me: WARNING: /" >&2
bdcade0a
MB
24042 ;;
24043esac
f321ab7f
VS
24044echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24045echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
bdcade0a
MB
24046if test "${ac_cv_header_ext_hash_map+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24048else
24049 ac_cv_header_ext_hash_map=$ac_header_preproc
24050fi
f321ab7f
VS
24051echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24052echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
bdcade0a
MB
24053
24054fi
24055if test $ac_cv_header_ext_hash_map = yes; then
f321ab7f
VS
24056 echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
24057echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6
9b8888f9
VZ
24058if test "${wx_cv_class_gnuhashmapset+set}" = set; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24060else
24061 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
24062/* confdefs.h. */
24063_ACEOF
24064cat confdefs.h >>conftest.$ac_ext
24065cat >>conftest.$ac_ext <<_ACEOF
24066/* end confdefs.h. */
24067#include <ext/hash_map>
9b8888f9 24068 #include <ext/hash_set>
bdcade0a
MB
24069int
24070main ()
24071{
24072__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
9b8888f9 24073 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
bdcade0a
MB
24074 ;
24075 return 0;
24076}
24077_ACEOF
24078rm -f conftest.$ac_objext
f321ab7f
VS
24079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24080 (eval $ac_compile) 2>conftest.er1
bdcade0a 24081 ac_status=$?
ac1cb8d3
VS
24082 grep -v '^ *+' conftest.er1 >conftest.err
24083 rm -f conftest.er1
24084 cat conftest.err >&5
bdcade0a
MB
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); } &&
f321ab7f
VS
24087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24089 (eval $ac_try) 2>&5
ac1cb8d3
VS
24090 ac_status=$?
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; } &&
24093 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
24094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095 (eval $ac_try) 2>&5
bdcade0a
MB
24096 ac_status=$?
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; }; then
9b8888f9 24099 wx_cv_class_gnuhashmapset=yes
bdcade0a
MB
24100else
24101 echo "$as_me: failed program was:" >&5
24102sed 's/^/| /' conftest.$ac_ext >&5
24103
f321ab7f 24104wx_cv_class_gnuhashmapset=no
bdcade0a 24105fi
f321ab7f 24106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 24107
9b8888f9 24108
bdcade0a 24109fi
f321ab7f
VS
24110echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
24111echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6
9b8888f9
VZ
24112
24113fi
24114
bdcade0a
MB
24115
24116
9b8888f9
VZ
24117 if test "$wx_cv_class_gnuhashmapset" = yes; then
24118 cat >>confdefs.h <<\_ACEOF
24119#define HAVE_EXT_HASH_MAP 1
24120_ACEOF
24121
24122 cat >>confdefs.h <<\_ACEOF
24123#define HAVE_GNU_CXX_HASH_MAP 1
24124_ACEOF
24125
24126 fi
a848cd7e
SC
24127fi
24128
9b8888f9
VZ
24129ac_ext=c
24130ac_cpp='$CPP $CPPFLAGS'
24131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24133ac_compiler_gnu=$ac_cv_c_compiler_gnu
24134
24135
a848cd7e
SC
24136
24137SEARCH_INCLUDE="\
24138 /usr/local/include \
24139 \
24140 /usr/Motif-2.1/include \
24141 /usr/Motif-1.2/include \
24142 /usr/include/Motif1.2 \
a848cd7e
SC
24143 \
24144 /usr/dt/include \
24145 /usr/openwin/include \
24146 \
24147 /usr/include/Xm \
24148 \
24149 /usr/X11R6/include \
24150 /usr/X11R6.4/include \
24151 /usr/X11R5/include \
24152 /usr/X11R4/include \
24153 \
24154 /usr/include/X11R6 \
24155 /usr/include/X11R5 \
24156 /usr/include/X11R4 \
24157 \
24158 /usr/local/X11R6/include \
24159 /usr/local/X11R5/include \
24160 /usr/local/X11R4/include \
24161 \
24162 /usr/local/include/X11R6 \
24163 /usr/local/include/X11R5 \
24164 /usr/local/include/X11R4 \
24165 \
24166 /usr/X11/include \
24167 /usr/include/X11 \
24168 /usr/local/X11/include \
24169 /usr/local/include/X11 \
24170 \
a848cd7e 24171 /usr/XFree86/include/X11 \
e051b34e
MW
24172 /usr/pkg/include \
24173 \
a848cd7e
SC
24174 /usr/openwin/share/include"
24175
f321ab7f
VS
24176echo "$as_me:$LINENO: checking for libraries directory" >&5
24177echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24178
24179case "${host}" in
24180 *-*-irix6* )
24181 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24182 echo $ECHO_N "(cached) $ECHO_C" >&6
24183else
24184
c687b303
VZ
24185 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24186 for e in a so sl dylib dll.a; do
24187 libc="$d/libc.$e"
24188 if test -f $libc; then
24189 save_LIBS="$LIBS"
24190 LIBS="$libc"
24191 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24192int main() { return 0; }
24193_ACEOF
24194rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
24195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24196 (eval $ac_link) 2>conftest.er1
0ad5d837
VZ
24197 ac_status=$?
24198 grep -v '^ *+' conftest.er1 >conftest.err
24199 rm -f conftest.er1
24200 cat conftest.err >&5
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } &&
f321ab7f
VS
24203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24205 (eval $ac_try) 2>&5
0ad5d837
VZ
24206 ac_status=$?
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); }; } &&
24209 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
24210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211 (eval $ac_try) 2>&5
0ad5d837
VZ
24212 ac_status=$?
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); }; }; then
24215 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24216else
24217 echo "$as_me: failed program was:" >&5
24218sed 's/^/| /' conftest.$ac_ext >&5
24219
24220fi
f321ab7f 24221rm -f conftest.err conftest.$ac_objext \
0ad5d837 24222 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24223 LIBS="$save_LIBS"
24224 if test "x$wx_cv_std_libpath" != "x"; then
24225 break 2
24226 fi
24227 fi
24228 done
24229 done
24230 if test "x$wx_cv_std_libpath" = "x"; then
24231 wx_cv_std_libpath="lib"
0ad5d837 24232 fi
0ad5d837
VZ
24233
24234
24235fi
6f9cf1e6
MW
24236
24237 ;;
24238
24239 *-*-solaris2* )
24240 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24241 wx_cv_std_libpath="lib/64"
24242 else
24243 wx_cv_std_libpath="lib"
24244 fi
24245 ;;
24246
24247 *-*-linux* )
24248 if test "$ac_cv_sizeof_void_p" = 8 -a \
24249 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24250 wx_cv_std_libpath="lib64"
24251 else
24252 wx_cv_std_libpath="lib"
24253 fi
c687b303
VZ
24254 ;;
24255
24256 *)
24257 wx_cv_std_libpath="lib";
24258 ;;
24259esac
0ad5d837 24260
f321ab7f
VS
24261echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24262echo "${ECHO_T}$wx_cv_std_libpath" >&6
6f9cf1e6
MW
24263
24264SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24265
3eca31dc
MW
24266if test "$build" != "$host" -a "$GCC" = yes; then
24267 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24268 cross_root=`dirname $cross_root`
24269 cross_root=`dirname $cross_root`
24270
24271 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24272 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24273 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24274
24275 if test -z "$PKG_CONFIG_PATH"; then
24276 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24277 export PKG_CONFIG_PATH
24278 fi
24279
24280 if test -z "$x_includes" -o "$x_includes" = NONE; then
24281
24282ac_find_includes=
24283for ac_dir in $SEARCH_INCLUDE /usr/include;
24284 do
24285 if test -f "$ac_dir/X11/Intrinsic.h"; then
24286 ac_find_includes=$ac_dir
24287 break
24288 fi
24289 done
24290
24291 x_includes=$ac_find_includes
24292 fi
24293 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24294
0ad5d837
VZ
24295 ac_find_libraries=
24296 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24297 do
24298 for ac_extension in a so sl dylib dll.a; do
24299 if test -f "$ac_dir/libXt.$ac_extension"; then
24300 ac_find_libraries=$ac_dir
24301 break 2
24302 fi
24303 done
24304 done
24305
24306 x_libraries=$ac_find_libraries
24307 fi
24308 fi
24309fi
24310
a848cd7e
SC
24311
24312cat >confcache <<\_ACEOF
24313# This file is a shell script that caches the results of configure
24314# tests run on this system so they can be shared between configure
24315# scripts and configure runs, see configure's option --config-cache.
24316# It is not useful on other systems. If it contains results you don't
24317# want to keep, you may remove or edit it.
24318#
24319# config.status only pays attention to the cache file if you give it
24320# the --recheck option to rerun configure.
24321#
24322# `ac_cv_env_foo' variables (set or unset) will be overridden when
24323# loading this file, other *unset* `ac_cv_foo' will be assigned the
24324# following values.
24325
24326_ACEOF
24327
24328# The following way of writing the cache mishandles newlines in values,
24329# but we know of no workaround that is simple, portable, and efficient.
f321ab7f 24330# So, don't put newlines in cache variables' values.
a848cd7e
SC
24331# Ultrix sh set writes to stderr and can't be redirected directly,
24332# and sets the high bit in the cache file unless we assign to the vars.
f321ab7f 24333{
a848cd7e 24334 (set) 2>&1 |
f321ab7f
VS
24335 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24336 *ac_space=\ *)
a848cd7e
SC
24337 # `set' does not quote correctly, so add quotes (double-quote
24338 # substitution turns \\\\ into \\, and sed turns \\ into \).
24339 sed -n \
ac1cb8d3
VS
24340 "s/'/'\\\\''/g;
24341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
f321ab7f 24342 ;;
a848cd7e
SC
24343 *)
24344 # `set' quotes correctly as required by POSIX, so do not add quotes.
f321ab7f
VS
24345 sed -n \
24346 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e 24347 ;;
f321ab7f
VS
24348 esac;
24349} |
a848cd7e
SC
24350 sed '
24351 t clear
f321ab7f 24352 : clear
a848cd7e
SC
24353 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24354 t end
f321ab7f
VS
24355 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24356 : end' >>confcache
24357if diff $cache_file confcache >/dev/null 2>&1; then :; else
24358 if test -w $cache_file; then
24359 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
a848cd7e
SC
24360 cat confcache >$cache_file
24361 else
f321ab7f 24362 echo "not updating unwritable cache $cache_file"
a848cd7e
SC
24363 fi
24364fi
24365rm -f confcache
24366
24367if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
f321ab7f
VS
24368 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24369echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
a848cd7e
SC
24370if test "${wx_cv_lib_glibc21+set}" = set; then
24371 echo $ECHO_N "(cached) $ECHO_C" >&6
24372else
24373
24374 cat >conftest.$ac_ext <<_ACEOF
24375/* confdefs.h. */
24376_ACEOF
24377cat confdefs.h >>conftest.$ac_ext
24378cat >>conftest.$ac_ext <<_ACEOF
24379/* end confdefs.h. */
24380#include <features.h>
24381int
24382main ()
24383{
24384
24385 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24386 not glibc 2.1
a848cd7e
SC
24387 #endif
24388
24389 ;
24390 return 0;
24391}
24392_ACEOF
24393rm -f conftest.$ac_objext
f321ab7f
VS
24394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24395 (eval $ac_compile) 2>conftest.er1
a848cd7e 24396 ac_status=$?
ac1cb8d3
VS
24397 grep -v '^ *+' conftest.er1 >conftest.err
24398 rm -f conftest.er1
24399 cat conftest.err >&5
a848cd7e
SC
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); } &&
f321ab7f
VS
24402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
ac1cb8d3
VS
24405 ac_status=$?
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; } &&
24408 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
a848cd7e
SC
24411 ac_status=$?
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; }; then
24414
24415 wx_cv_lib_glibc21=yes
24416
24417else
24418 echo "$as_me: failed program was:" >&5
24419sed 's/^/| /' conftest.$ac_ext >&5
24420
24421
24422 wx_cv_lib_glibc21=no
24423
24424
24425fi
f321ab7f 24426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24427
24428fi
f321ab7f
VS
24429echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24430echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
a848cd7e
SC
24431 if test "$wx_cv_lib_glibc21" = "yes"; then
24432 cat >>confdefs.h <<\_ACEOF
24433#define wxHAVE_GLIBC2 1
24434_ACEOF
24435
24436 fi
24437fi
24438
24439if test "x$wx_cv_lib_glibc21" = "xyes"; then
24440 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24441 cat >>confdefs.h <<\_ACEOF
24442#define _GNU_SOURCE 1
24443_ACEOF
24444
24445 fi
24446fi
24447
5d7b7554
VZ
24448have_cos=0
24449have_floor=0
a848cd7e 24450
5d7b7554
VZ
24451for ac_func in cos
24452do
24453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
24454echo "$as_me:$LINENO: checking for $ac_func" >&5
24455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24456if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24457 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24458else
5d7b7554 24459 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24460/* confdefs.h. */
24461_ACEOF
24462cat confdefs.h >>conftest.$ac_ext
24463cat >>conftest.$ac_ext <<_ACEOF
24464/* end confdefs.h. */
5d7b7554
VZ
24465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24467#define $ac_func innocuous_$ac_func
24468
24469/* System header to define __stub macros and hopefully few prototypes,
24470 which can conflict with char $ac_func (); below.
24471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24472 <limits.h> exists even on freestanding compilers. */
24473
24474#ifdef __STDC__
24475# include <limits.h>
24476#else
24477# include <assert.h>
24478#endif
24479
24480#undef $ac_func
24481
f321ab7f 24482/* Override any gcc2 internal prototype to avoid an error. */
5d7b7554
VZ
24483#ifdef __cplusplus
24484extern "C"
f321ab7f 24485{
5d7b7554 24486#endif
f321ab7f
VS
24487/* We use char because int might match the return type of a gcc2
24488 builtin and then its argument prototype would still apply. */
5d7b7554
VZ
24489char $ac_func ();
24490/* The GNU C library defines this for functions which it implements
24491 to always fail with ENOSYS. Some functions are actually named
24492 something starting with __ and the normal name is an alias. */
f321ab7f 24493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5d7b7554 24494choke me
f321ab7f
VS
24495#else
24496char (*f) () = $ac_func;
24497#endif
24498#ifdef __cplusplus
24499}
5d7b7554
VZ
24500#endif
24501
24502int
24503main ()
24504{
f321ab7f 24505return f != $ac_func;
5d7b7554
VZ
24506 ;
24507 return 0;
24508}
a848cd7e 24509_ACEOF
5d7b7554 24510rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
24511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24512 (eval $ac_link) 2>conftest.er1
a848cd7e 24513 ac_status=$?
ac1cb8d3
VS
24514 grep -v '^ *+' conftest.er1 >conftest.err
24515 rm -f conftest.er1
24516 cat conftest.err >&5
a848cd7e
SC
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); } &&
f321ab7f
VS
24519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24521 (eval $ac_try) 2>&5
ac1cb8d3
VS
24522 ac_status=$?
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); }; } &&
5d7b7554 24525 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
24526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24527 (eval $ac_try) 2>&5
a848cd7e
SC
24528 ac_status=$?
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); }; }; then
5d7b7554 24531 eval "$as_ac_var=yes"
a848cd7e
SC
24532else
24533 echo "$as_me: failed program was:" >&5
24534sed 's/^/| /' conftest.$ac_ext >&5
24535
f321ab7f 24536eval "$as_ac_var=no"
a848cd7e 24537fi
f321ab7f 24538rm -f conftest.err conftest.$ac_objext \
5d7b7554 24539 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24540fi
f321ab7f
VS
24541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24542echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5d7b7554
VZ
24543if test `eval echo '${'$as_ac_var'}'` = yes; then
24544 cat >>confdefs.h <<_ACEOF
24545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24546_ACEOF
24547 have_cos=1
a848cd7e 24548fi
5d7b7554 24549done
a848cd7e 24550
ab0f0edd 24551
5d7b7554 24552for ac_func in floor
a848cd7e
SC
24553do
24554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
24555echo "$as_me:$LINENO: checking for $ac_func" >&5
24556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24557if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
24558 echo $ECHO_N "(cached) $ECHO_C" >&6
24559else
24560 cat >conftest.$ac_ext <<_ACEOF
24561/* confdefs.h. */
24562_ACEOF
24563cat confdefs.h >>conftest.$ac_ext
24564cat >>conftest.$ac_ext <<_ACEOF
24565/* end confdefs.h. */
ac1cb8d3
VS
24566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24568#define $ac_func innocuous_$ac_func
24569
a848cd7e
SC
24570/* System header to define __stub macros and hopefully few prototypes,
24571 which can conflict with char $ac_func (); below.
24572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24573 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24574
a848cd7e
SC
24575#ifdef __STDC__
24576# include <limits.h>
24577#else
24578# include <assert.h>
24579#endif
ac1cb8d3
VS
24580
24581#undef $ac_func
24582
f321ab7f 24583/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
24584#ifdef __cplusplus
24585extern "C"
f321ab7f 24586{
a848cd7e 24587#endif
f321ab7f
VS
24588/* We use char because int might match the return type of a gcc2
24589 builtin and then its argument prototype would still apply. */
a848cd7e
SC
24590char $ac_func ();
24591/* The GNU C library defines this for functions which it implements
24592 to always fail with ENOSYS. Some functions are actually named
24593 something starting with __ and the normal name is an alias. */
f321ab7f 24594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 24595choke me
f321ab7f
VS
24596#else
24597char (*f) () = $ac_func;
24598#endif
24599#ifdef __cplusplus
24600}
a848cd7e
SC
24601#endif
24602
24603int
24604main ()
24605{
f321ab7f 24606return f != $ac_func;
a848cd7e
SC
24607 ;
24608 return 0;
24609}
24610_ACEOF
24611rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
24612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24613 (eval $ac_link) 2>conftest.er1
a848cd7e 24614 ac_status=$?
ac1cb8d3
VS
24615 grep -v '^ *+' conftest.er1 >conftest.err
24616 rm -f conftest.er1
24617 cat conftest.err >&5
a848cd7e
SC
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } &&
f321ab7f
VS
24620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24622 (eval $ac_try) 2>&5
5d7b7554
VZ
24623 ac_status=$?
24624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); }; } &&
24626 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
24627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24628 (eval $ac_try) 2>&5
5d7b7554
VZ
24629 ac_status=$?
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); }; }; then
24632 eval "$as_ac_var=yes"
24633else
24634 echo "$as_me: failed program was:" >&5
24635sed 's/^/| /' conftest.$ac_ext >&5
24636
f321ab7f 24637eval "$as_ac_var=no"
5d7b7554 24638fi
f321ab7f 24639rm -f conftest.err conftest.$ac_objext \
5d7b7554
VZ
24640 conftest$ac_exeext conftest.$ac_ext
24641fi
f321ab7f
VS
24642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5d7b7554
VZ
24644if test `eval echo '${'$as_ac_var'}'` = yes; then
24645 cat >>confdefs.h <<_ACEOF
24646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24647_ACEOF
24648 have_floor=1
24649fi
24650done
24651
f321ab7f
VS
24652echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24653echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
5d7b7554 24654if test "$have_cos" = 1 -a "$have_floor" = 1; then
f321ab7f
VS
24655 echo "$as_me:$LINENO: result: yes" >&5
24656echo "${ECHO_T}yes" >&6
5d7b7554 24657else
f321ab7f
VS
24658 echo "$as_me:$LINENO: result: no" >&5
24659echo "${ECHO_T}no" >&6
5d7b7554
VZ
24660 LIBS="$LIBS -lm"
24661 # use different functions to avoid configure caching
24662 have_sin=0
24663 have_ceil=0
24664
24665for ac_func in sin
24666do
24667as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
24668echo "$as_me:$LINENO: checking for $ac_func" >&5
24669echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24670if eval "test \"\${$as_ac_var+set}\" = set"; then
5d7b7554
VZ
24671 echo $ECHO_N "(cached) $ECHO_C" >&6
24672else
24673 cat >conftest.$ac_ext <<_ACEOF
24674/* confdefs.h. */
24675_ACEOF
24676cat confdefs.h >>conftest.$ac_ext
24677cat >>conftest.$ac_ext <<_ACEOF
24678/* end confdefs.h. */
24679/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24681#define $ac_func innocuous_$ac_func
24682
24683/* System header to define __stub macros and hopefully few prototypes,
24684 which can conflict with char $ac_func (); below.
24685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24686 <limits.h> exists even on freestanding compilers. */
24687
24688#ifdef __STDC__
24689# include <limits.h>
24690#else
24691# include <assert.h>
24692#endif
24693
24694#undef $ac_func
24695
f321ab7f 24696/* Override any gcc2 internal prototype to avoid an error. */
5d7b7554
VZ
24697#ifdef __cplusplus
24698extern "C"
f321ab7f 24699{
5d7b7554 24700#endif
f321ab7f
VS
24701/* We use char because int might match the return type of a gcc2
24702 builtin and then its argument prototype would still apply. */
5d7b7554
VZ
24703char $ac_func ();
24704/* The GNU C library defines this for functions which it implements
24705 to always fail with ENOSYS. Some functions are actually named
24706 something starting with __ and the normal name is an alias. */
f321ab7f 24707#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5d7b7554 24708choke me
f321ab7f
VS
24709#else
24710char (*f) () = $ac_func;
24711#endif
24712#ifdef __cplusplus
24713}
5d7b7554
VZ
24714#endif
24715
24716int
24717main ()
24718{
f321ab7f 24719return f != $ac_func;
5d7b7554
VZ
24720 ;
24721 return 0;
24722}
24723_ACEOF
24724rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
24725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24726 (eval $ac_link) 2>conftest.er1
5d7b7554
VZ
24727 ac_status=$?
24728 grep -v '^ *+' conftest.er1 >conftest.err
24729 rm -f conftest.er1
24730 cat conftest.err >&5
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } &&
f321ab7f
VS
24733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
5d7b7554
VZ
24736 ac_status=$?
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } &&
24739 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
24740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24741 (eval $ac_try) 2>&5
5d7b7554
VZ
24742 ac_status=$?
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); }; }; then
24745 eval "$as_ac_var=yes"
24746else
24747 echo "$as_me: failed program was:" >&5
24748sed 's/^/| /' conftest.$ac_ext >&5
24749
f321ab7f 24750eval "$as_ac_var=no"
5d7b7554 24751fi
f321ab7f 24752rm -f conftest.err conftest.$ac_objext \
5d7b7554
VZ
24753 conftest$ac_exeext conftest.$ac_ext
24754fi
f321ab7f
VS
24755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24756echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5d7b7554
VZ
24757if test `eval echo '${'$as_ac_var'}'` = yes; then
24758 cat >>confdefs.h <<_ACEOF
24759#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24760_ACEOF
24761 have_sin=1
24762fi
24763done
24764
24765
24766for ac_func in ceil
24767do
24768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
24769echo "$as_me:$LINENO: checking for $ac_func" >&5
24770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24771if eval "test \"\${$as_ac_var+set}\" = set"; then
5d7b7554
VZ
24772 echo $ECHO_N "(cached) $ECHO_C" >&6
24773else
24774 cat >conftest.$ac_ext <<_ACEOF
24775/* confdefs.h. */
24776_ACEOF
24777cat confdefs.h >>conftest.$ac_ext
24778cat >>conftest.$ac_ext <<_ACEOF
24779/* end confdefs.h. */
24780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24782#define $ac_func innocuous_$ac_func
24783
24784/* System header to define __stub macros and hopefully few prototypes,
24785 which can conflict with char $ac_func (); below.
24786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24787 <limits.h> exists even on freestanding compilers. */
24788
24789#ifdef __STDC__
24790# include <limits.h>
24791#else
24792# include <assert.h>
24793#endif
24794
24795#undef $ac_func
24796
f321ab7f 24797/* Override any gcc2 internal prototype to avoid an error. */
5d7b7554
VZ
24798#ifdef __cplusplus
24799extern "C"
f321ab7f 24800{
5d7b7554 24801#endif
f321ab7f
VS
24802/* We use char because int might match the return type of a gcc2
24803 builtin and then its argument prototype would still apply. */
5d7b7554
VZ
24804char $ac_func ();
24805/* The GNU C library defines this for functions which it implements
24806 to always fail with ENOSYS. Some functions are actually named
24807 something starting with __ and the normal name is an alias. */
f321ab7f 24808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5d7b7554 24809choke me
f321ab7f
VS
24810#else
24811char (*f) () = $ac_func;
24812#endif
24813#ifdef __cplusplus
24814}
5d7b7554
VZ
24815#endif
24816
24817int
24818main ()
24819{
f321ab7f 24820return f != $ac_func;
5d7b7554
VZ
24821 ;
24822 return 0;
24823}
24824_ACEOF
24825rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
24826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24827 (eval $ac_link) 2>conftest.er1
5d7b7554
VZ
24828 ac_status=$?
24829 grep -v '^ *+' conftest.er1 >conftest.err
24830 rm -f conftest.er1
24831 cat conftest.err >&5
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } &&
f321ab7f
VS
24834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
5d7b7554
VZ
24837 ac_status=$?
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; } &&
24840 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
5d7b7554
VZ
24843 ac_status=$?
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; }; then
24846 eval "$as_ac_var=yes"
24847else
24848 echo "$as_me: failed program was:" >&5
24849sed 's/^/| /' conftest.$ac_ext >&5
24850
f321ab7f 24851eval "$as_ac_var=no"
5d7b7554 24852fi
f321ab7f 24853rm -f conftest.err conftest.$ac_objext \
5d7b7554
VZ
24854 conftest$ac_exeext conftest.$ac_ext
24855fi
f321ab7f
VS
24856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24857echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5d7b7554
VZ
24858if test `eval echo '${'$as_ac_var'}'` = yes; then
24859 cat >>confdefs.h <<_ACEOF
24860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24861_ACEOF
24862 have_ceil=1
24863fi
24864done
24865
f321ab7f
VS
24866 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24867echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
5d7b7554 24868 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
f321ab7f
VS
24869 echo "$as_me:$LINENO: result: yes" >&5
24870echo "${ECHO_T}yes" >&6
5d7b7554 24871 else
f321ab7f
VS
24872 echo "$as_me:$LINENO: result: no" >&5
24873echo "${ECHO_T}no" >&6
5d7b7554
VZ
24874 # not sure we should warn the user, crash, etc.
24875 fi
24876fi
24877
ec3edcc9
VZ
24878if test "wxUSE_UNICODE" = "yes"; then
24879
fd5199d6
VZ
24880 for wx_func in wcstoull
24881 do
f321ab7f
VS
24882 echo "$as_me:$LINENO: checking for $wx_func" >&5
24883echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
24884if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
ec3edcc9
VZ
24885 echo $ECHO_N "(cached) $ECHO_C" >&6
24886else
fd5199d6
VZ
24887
24888 cat >conftest.$ac_ext <<_ACEOF
24889
24890 /* confdefs.h. */
ec3edcc9
VZ
24891_ACEOF
24892cat confdefs.h >>conftest.$ac_ext
24893cat >>conftest.$ac_ext <<_ACEOF
24894/* end confdefs.h. */
ec3edcc9 24895
ec3edcc9 24896
fd5199d6 24897 $ac_includes_default
ec3edcc9
VZ
24898
24899int
24900main ()
24901{
fd5199d6
VZ
24902
24903 #ifndef $wx_func
24904 &$wx_func;
24905 #endif
24906
24907
ec3edcc9
VZ
24908 ;
24909 return 0;
24910}
fd5199d6 24911
ec3edcc9
VZ
24912_ACEOF
24913rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
24914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24915 (eval $ac_link) 2>conftest.er1
ec3edcc9
VZ
24916 ac_status=$?
24917 grep -v '^ *+' conftest.er1 >conftest.err
24918 rm -f conftest.er1
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } &&
f321ab7f
VS
24922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924 (eval $ac_try) 2>&5
ec3edcc9
VZ
24925 ac_status=$?
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; } &&
24928 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
ec3edcc9
VZ
24931 ac_status=$?
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; }; then
fd5199d6 24934 eval wx_cv_func_$wx_func=yes
ec3edcc9
VZ
24935else
24936 echo "$as_me: failed program was:" >&5
24937sed 's/^/| /' conftest.$ac_ext >&5
24938
f321ab7f 24939eval wx_cv_func_$wx_func=no
ec3edcc9 24940fi
f321ab7f 24941rm -f conftest.err conftest.$ac_objext \
ec3edcc9 24942 conftest$ac_exeext conftest.$ac_ext
fd5199d6 24943
ec3edcc9 24944fi
f321ab7f
VS
24945echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
24946echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
fd5199d6
VZ
24947
24948 if eval test \$wx_cv_func_$wx_func = yes
24949 then
24950 cat >>confdefs.h <<_ACEOF
24951#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
ec3edcc9
VZ
24952_ACEOF
24953
fd5199d6
VZ
24954
24955 else
24956 :
24957
24958 fi
24959 done
ec3edcc9
VZ
24960
24961else
24962
fd5199d6
VZ
24963 for wx_func in strtoull
24964 do
f321ab7f
VS
24965 echo "$as_me:$LINENO: checking for $wx_func" >&5
24966echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
24967if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
ec3edcc9
VZ
24968 echo $ECHO_N "(cached) $ECHO_C" >&6
24969else
fd5199d6
VZ
24970
24971 cat >conftest.$ac_ext <<_ACEOF
24972
24973 /* confdefs.h. */
ec3edcc9
VZ
24974_ACEOF
24975cat confdefs.h >>conftest.$ac_ext
24976cat >>conftest.$ac_ext <<_ACEOF
24977/* end confdefs.h. */
ec3edcc9 24978
ec3edcc9 24979
fd5199d6 24980 $ac_includes_default
ec3edcc9
VZ
24981
24982int
24983main ()
24984{
fd5199d6
VZ
24985
24986 #ifndef $wx_func
24987 &$wx_func;
24988 #endif
24989
24990
ec3edcc9
VZ
24991 ;
24992 return 0;
24993}
fd5199d6 24994
ec3edcc9
VZ
24995_ACEOF
24996rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
24997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24998 (eval $ac_link) 2>conftest.er1
ec3edcc9
VZ
24999 ac_status=$?
25000 grep -v '^ *+' conftest.er1 >conftest.err
25001 rm -f conftest.er1
25002 cat conftest.err >&5
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); } &&
f321ab7f
VS
25005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007 (eval $ac_try) 2>&5
ec3edcc9
VZ
25008 ac_status=$?
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); }; } &&
25011 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
25012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013 (eval $ac_try) 2>&5
ec3edcc9
VZ
25014 ac_status=$?
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; }; then
fd5199d6 25017 eval wx_cv_func_$wx_func=yes
ec3edcc9
VZ
25018else
25019 echo "$as_me: failed program was:" >&5
25020sed 's/^/| /' conftest.$ac_ext >&5
25021
f321ab7f 25022eval wx_cv_func_$wx_func=no
ec3edcc9 25023fi
f321ab7f 25024rm -f conftest.err conftest.$ac_objext \
ec3edcc9 25025 conftest$ac_exeext conftest.$ac_ext
fd5199d6 25026
ec3edcc9 25027fi
f321ab7f
VS
25028echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
25029echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
fd5199d6
VZ
25030
25031 if eval test \$wx_cv_func_$wx_func = yes
25032 then
25033 cat >>confdefs.h <<_ACEOF
25034#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
ec3edcc9
VZ
25035_ACEOF
25036
fd5199d6
VZ
25037
25038 else
25039 :
25040
25041 fi
25042 done
ec3edcc9
VZ
25043
25044fi
25045
5d7b7554
VZ
25046
25047
25048if test "$wxUSE_REGEX" != "no"; then
25049 cat >>confdefs.h <<\_ACEOF
25050#define wxUSE_REGEX 1
25051_ACEOF
25052
25053
25054 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25055 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25056echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25057 wxUSE_REGEX=builtin
25058 fi
25059
25060 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25061 if test "${ac_cv_header_regex_h+set}" = set; then
f321ab7f
VS
25062 echo "$as_me:$LINENO: checking for regex.h" >&5
25063echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
5d7b7554
VZ
25064if test "${ac_cv_header_regex_h+set}" = set; then
25065 echo $ECHO_N "(cached) $ECHO_C" >&6
25066fi
f321ab7f
VS
25067echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25068echo "${ECHO_T}$ac_cv_header_regex_h" >&6
5d7b7554
VZ
25069else
25070 # Is the header compilable?
f321ab7f
VS
25071echo "$as_me:$LINENO: checking regex.h usability" >&5
25072echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
5d7b7554
VZ
25073cat >conftest.$ac_ext <<_ACEOF
25074/* confdefs.h. */
25075_ACEOF
25076cat confdefs.h >>conftest.$ac_ext
25077cat >>conftest.$ac_ext <<_ACEOF
25078/* end confdefs.h. */
25079$ac_includes_default
25080#include <regex.h>
25081_ACEOF
25082rm -f conftest.$ac_objext
f321ab7f
VS
25083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25084 (eval $ac_compile) 2>conftest.er1
5d7b7554
VZ
25085 ac_status=$?
25086 grep -v '^ *+' conftest.er1 >conftest.err
25087 rm -f conftest.er1
25088 cat conftest.err >&5
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); } &&
f321ab7f
VS
25091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
5d7b7554
VZ
25094 ac_status=$?
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; } &&
25097 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
5d7b7554
VZ
25100 ac_status=$?
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; }; then
25103 ac_header_compiler=yes
25104else
25105 echo "$as_me: failed program was:" >&5
25106sed 's/^/| /' conftest.$ac_ext >&5
25107
f321ab7f 25108ac_header_compiler=no
5d7b7554 25109fi
f321ab7f
VS
25110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25111echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25112echo "${ECHO_T}$ac_header_compiler" >&6
5d7b7554
VZ
25113
25114# Is the header present?
f321ab7f
VS
25115echo "$as_me:$LINENO: checking regex.h presence" >&5
25116echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
5d7b7554
VZ
25117cat >conftest.$ac_ext <<_ACEOF
25118/* confdefs.h. */
25119_ACEOF
25120cat confdefs.h >>conftest.$ac_ext
25121cat >>conftest.$ac_ext <<_ACEOF
25122/* end confdefs.h. */
25123#include <regex.h>
25124_ACEOF
f321ab7f
VS
25125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5d7b7554
VZ
25127 ac_status=$?
25128 grep -v '^ *+' conftest.er1 >conftest.err
25129 rm -f conftest.er1
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } >/dev/null; then
25133 if test -s conftest.err; then
fd5199d6
VZ
25134 ac_cpp_err=$ac_c_preproc_warn_flag
25135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5d7b7554
VZ
25136 else
25137 ac_cpp_err=
25138 fi
25139else
25140 ac_cpp_err=yes
25141fi
25142if test -z "$ac_cpp_err"; then
25143 ac_header_preproc=yes
25144else
25145 echo "$as_me: failed program was:" >&5
25146sed 's/^/| /' conftest.$ac_ext >&5
25147
25148 ac_header_preproc=no
25149fi
25150rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
25151echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25152echo "${ECHO_T}$ac_header_preproc" >&6
5d7b7554
VZ
25153
25154# So? What about this header?
fd5199d6 25155case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5d7b7554
VZ
25156 yes:no: )
25157 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25158echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25159 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25160echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25161 ac_header_preproc=yes
25162 ;;
25163 no:yes:* )
25164 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25165echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25166 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25167echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25168 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25169echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25170 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25171echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25172 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25173echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25174 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25175echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
25176 (
25177 cat <<\_ASBOX
5d7b7554
VZ
25178## ----------------------------------------- ##
25179## Report this to wx-dev@lists.wxwidgets.org ##
25180## ----------------------------------------- ##
25181_ASBOX
f321ab7f
VS
25182 ) |
25183 sed "s/^/$as_me: WARNING: /" >&2
5d7b7554
VZ
25184 ;;
25185esac
f321ab7f
VS
25186echo "$as_me:$LINENO: checking for regex.h" >&5
25187echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
5d7b7554
VZ
25188if test "${ac_cv_header_regex_h+set}" = set; then
25189 echo $ECHO_N "(cached) $ECHO_C" >&6
25190else
25191 ac_cv_header_regex_h=$ac_header_preproc
25192fi
f321ab7f
VS
25193echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25194echo "${ECHO_T}$ac_cv_header_regex_h" >&6
5d7b7554
VZ
25195
25196fi
25197if test $ac_cv_header_regex_h = yes; then
25198
25199
25200for ac_func in regcomp re_search
25201do
25202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
25203echo "$as_me:$LINENO: checking for $ac_func" >&5
25204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25205if eval "test \"\${$as_ac_var+set}\" = set"; then
5d7b7554
VZ
25206 echo $ECHO_N "(cached) $ECHO_C" >&6
25207else
25208 cat >conftest.$ac_ext <<_ACEOF
25209/* confdefs.h. */
25210_ACEOF
25211cat confdefs.h >>conftest.$ac_ext
25212cat >>conftest.$ac_ext <<_ACEOF
25213/* end confdefs.h. */
25214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25216#define $ac_func innocuous_$ac_func
25217
25218/* System header to define __stub macros and hopefully few prototypes,
25219 which can conflict with char $ac_func (); below.
25220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25221 <limits.h> exists even on freestanding compilers. */
25222
25223#ifdef __STDC__
25224# include <limits.h>
25225#else
25226# include <assert.h>
25227#endif
25228
25229#undef $ac_func
25230
f321ab7f 25231/* Override any gcc2 internal prototype to avoid an error. */
5d7b7554
VZ
25232#ifdef __cplusplus
25233extern "C"
f321ab7f 25234{
5d7b7554 25235#endif
f321ab7f
VS
25236/* We use char because int might match the return type of a gcc2
25237 builtin and then its argument prototype would still apply. */
5d7b7554
VZ
25238char $ac_func ();
25239/* The GNU C library defines this for functions which it implements
25240 to always fail with ENOSYS. Some functions are actually named
25241 something starting with __ and the normal name is an alias. */
f321ab7f 25242#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5d7b7554 25243choke me
f321ab7f
VS
25244#else
25245char (*f) () = $ac_func;
25246#endif
25247#ifdef __cplusplus
25248}
5d7b7554
VZ
25249#endif
25250
25251int
25252main ()
25253{
f321ab7f 25254return f != $ac_func;
5d7b7554
VZ
25255 ;
25256 return 0;
25257}
25258_ACEOF
25259rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
25260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25261 (eval $ac_link) 2>conftest.er1
5d7b7554
VZ
25262 ac_status=$?
25263 grep -v '^ *+' conftest.er1 >conftest.err
25264 rm -f conftest.er1
25265 cat conftest.err >&5
25266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267 (exit $ac_status); } &&
f321ab7f
VS
25268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25270 (eval $ac_try) 2>&5
ac1cb8d3
VS
25271 ac_status=$?
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); }; } &&
25274 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
25275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276 (eval $ac_try) 2>&5
a848cd7e
SC
25277 ac_status=$?
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; }; then
25280 eval "$as_ac_var=yes"
25281else
25282 echo "$as_me: failed program was:" >&5
25283sed 's/^/| /' conftest.$ac_ext >&5
25284
f321ab7f 25285eval "$as_ac_var=no"
a848cd7e 25286fi
f321ab7f 25287rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 25288 conftest$ac_exeext conftest.$ac_ext
a848cd7e 25289fi
f321ab7f
VS
25290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
25292if test `eval echo '${'$as_ac_var'}'` = yes; then
25293 cat >>confdefs.h <<_ACEOF
25294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25295_ACEOF
25296
25297fi
25298done
25299
25300fi
25301
25302
25303
25304 if test "x$ac_cv_func_regcomp" != "xyes"; then
25305 if test "$wxUSE_REGEX" = "sys" ; then
25306 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25307echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25308 { (exit 1); exit 1; }; }
25309 else
25310 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25311echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25312 wxUSE_REGEX=builtin
25313 fi
25314 else
25315 wxUSE_REGEX=sys
25316 cat >>confdefs.h <<\_ACEOF
25317#define WX_NO_REGEX_ADVANCED 1
25318_ACEOF
25319
25320 fi
25321 fi
25322fi
25323
25324
25325ZLIB_LINK=
25326if test "$wxUSE_ZLIB" != "no" ; then
25327 cat >>confdefs.h <<\_ACEOF
25328#define wxUSE_ZLIB 1
25329_ACEOF
25330
25331
25332 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25333 if test "$USE_DARWIN" = 1; then
25334 system_zlib_h_ok="yes"
25335 else
f321ab7f
VS
25336 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25337echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
a848cd7e
SC
25338if test "${ac_cv_header_zlib_h+set}" = set; then
25339 echo $ECHO_N "(cached) $ECHO_C" >&6
25340else
25341 if test "$cross_compiling" = yes; then
25342 unset ac_cv_header_zlib_h
25343
25344else
25345 cat >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 #include <zlib.h>
25353 #include <stdio.h>
25354
25355 int main()
25356 {
25357 FILE *f=fopen("conftestval", "w");
25358 if (!f) exit(1);
25359 fprintf(f, "%s",
25360 ZLIB_VERSION[0] == '1' &&
25361 (ZLIB_VERSION[2] > '1' ||
25362 (ZLIB_VERSION[2] == '1' &&
25363 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25364 exit(0);
25365 }
25366
25367_ACEOF
25368rm -f conftest$ac_exeext
f321ab7f
VS
25369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25370 (eval $ac_link) 2>&5
a848cd7e
SC
25371 ac_status=$?
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
25374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375 (eval $ac_try) 2>&5
a848cd7e
SC
25376 ac_status=$?
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); }; }; then
25379 ac_cv_header_zlib_h=`cat conftestval`
25380else
25381 echo "$as_me: program exited with status $ac_status" >&5
25382echo "$as_me: failed program was:" >&5
25383sed 's/^/| /' conftest.$ac_ext >&5
25384
25385( exit $ac_status )
25386ac_cv_header_zlib_h=no
25387fi
f321ab7f 25388rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25389fi
25390
25391fi
f321ab7f
VS
25392echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25393echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
a848cd7e 25394 if test "${ac_cv_header_zlib_h+set}" = set; then
f321ab7f
VS
25395 echo "$as_me:$LINENO: checking for zlib.h" >&5
25396echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
a848cd7e
SC
25397if test "${ac_cv_header_zlib_h+set}" = set; then
25398 echo $ECHO_N "(cached) $ECHO_C" >&6
25399fi
f321ab7f
VS
25400echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25401echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
a848cd7e
SC
25402else
25403 # Is the header compilable?
f321ab7f
VS
25404echo "$as_me:$LINENO: checking zlib.h usability" >&5
25405echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
a848cd7e
SC
25406cat >conftest.$ac_ext <<_ACEOF
25407/* confdefs.h. */
25408_ACEOF
25409cat confdefs.h >>conftest.$ac_ext
25410cat >>conftest.$ac_ext <<_ACEOF
25411/* end confdefs.h. */
25412$ac_includes_default
25413#include <zlib.h>
25414_ACEOF
25415rm -f conftest.$ac_objext
f321ab7f
VS
25416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25417 (eval $ac_compile) 2>conftest.er1
a848cd7e 25418 ac_status=$?
ac1cb8d3
VS
25419 grep -v '^ *+' conftest.er1 >conftest.err
25420 rm -f conftest.er1
25421 cat conftest.err >&5
a848cd7e
SC
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); } &&
f321ab7f
VS
25424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426 (eval $ac_try) 2>&5
ac1cb8d3
VS
25427 ac_status=$?
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); }; } &&
25430 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
25431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25432 (eval $ac_try) 2>&5
a848cd7e
SC
25433 ac_status=$?
25434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); }; }; then
25436 ac_header_compiler=yes
25437else
25438 echo "$as_me: failed program was:" >&5
25439sed 's/^/| /' conftest.$ac_ext >&5
25440
f321ab7f 25441ac_header_compiler=no
a848cd7e 25442fi
f321ab7f
VS
25443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25445echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
25446
25447# Is the header present?
f321ab7f
VS
25448echo "$as_me:$LINENO: checking zlib.h presence" >&5
25449echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
a848cd7e
SC
25450cat >conftest.$ac_ext <<_ACEOF
25451/* confdefs.h. */
25452_ACEOF
25453cat confdefs.h >>conftest.$ac_ext
25454cat >>conftest.$ac_ext <<_ACEOF
25455/* end confdefs.h. */
25456#include <zlib.h>
25457_ACEOF
f321ab7f
VS
25458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
25460 ac_status=$?
25461 grep -v '^ *+' conftest.er1 >conftest.err
25462 rm -f conftest.er1
25463 cat conftest.err >&5
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); } >/dev/null; then
25466 if test -s conftest.err; then
fd5199d6
VZ
25467 ac_cpp_err=$ac_c_preproc_warn_flag
25468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25469 else
25470 ac_cpp_err=
25471 fi
25472else
25473 ac_cpp_err=yes
25474fi
25475if test -z "$ac_cpp_err"; then
25476 ac_header_preproc=yes
25477else
25478 echo "$as_me: failed program was:" >&5
25479sed 's/^/| /' conftest.$ac_ext >&5
25480
25481 ac_header_preproc=no
25482fi
25483rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
25484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25485echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
25486
25487# So? What about this header?
fd5199d6 25488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 25489 yes:no: )
a848cd7e
SC
25490 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25491echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25492 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25493echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25494 ac_header_preproc=yes
a848cd7e 25495 ;;
ac1cb8d3 25496 no:yes:* )
a848cd7e
SC
25497 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25498echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25499 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25500echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25501 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25502echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25503 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25504echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25505 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25506echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25507 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25508echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
25509 (
25510 cat <<\_ASBOX
ac1cb8d3
VS
25511## ----------------------------------------- ##
25512## Report this to wx-dev@lists.wxwidgets.org ##
25513## ----------------------------------------- ##
a848cd7e 25514_ASBOX
f321ab7f
VS
25515 ) |
25516 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
25517 ;;
25518esac
f321ab7f
VS
25519echo "$as_me:$LINENO: checking for zlib.h" >&5
25520echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
a848cd7e
SC
25521if test "${ac_cv_header_zlib_h+set}" = set; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25523else
25524 ac_cv_header_zlib_h=$ac_header_preproc
25525fi
f321ab7f
VS
25526echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25527echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
a848cd7e
SC
25528
25529fi
25530
25531
25532
25533 system_zlib_h_ok=$ac_cv_header_zlib_h
25534 fi
25535
25536 if test "$system_zlib_h_ok" = "yes"; then
f321ab7f
VS
25537 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25538echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
a848cd7e
SC
25539if test "${ac_cv_lib_z_deflate+set}" = set; then
25540 echo $ECHO_N "(cached) $ECHO_C" >&6
25541else
25542 ac_check_lib_save_LIBS=$LIBS
25543LIBS="-lz $LIBS"
25544cat >conftest.$ac_ext <<_ACEOF
25545/* confdefs.h. */
25546_ACEOF
25547cat confdefs.h >>conftest.$ac_ext
25548cat >>conftest.$ac_ext <<_ACEOF
25549/* end confdefs.h. */
25550
f321ab7f 25551/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
25552#ifdef __cplusplus
25553extern "C"
25554#endif
f321ab7f
VS
25555/* We use char because int might match the return type of a gcc2
25556 builtin and then its argument prototype would still apply. */
a848cd7e
SC
25557char deflate ();
25558int
25559main ()
25560{
f321ab7f 25561deflate ();
a848cd7e
SC
25562 ;
25563 return 0;
25564}
25565_ACEOF
25566rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
25567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25568 (eval $ac_link) 2>conftest.er1
a848cd7e 25569 ac_status=$?
ac1cb8d3
VS
25570 grep -v '^ *+' conftest.er1 >conftest.err
25571 rm -f conftest.er1
25572 cat conftest.err >&5
a848cd7e
SC
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); } &&
f321ab7f
VS
25575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577 (eval $ac_try) 2>&5
ac1cb8d3
VS
25578 ac_status=$?
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); }; } &&
25581 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
25582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583 (eval $ac_try) 2>&5
a848cd7e
SC
25584 ac_status=$?
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); }; }; then
25587 ac_cv_lib_z_deflate=yes
25588else
25589 echo "$as_me: failed program was:" >&5
25590sed 's/^/| /' conftest.$ac_ext >&5
25591
f321ab7f 25592ac_cv_lib_z_deflate=no
a848cd7e 25593fi
f321ab7f 25594rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 25595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25596LIBS=$ac_check_lib_save_LIBS
25597fi
f321ab7f
VS
25598echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25599echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
a848cd7e
SC
25600if test $ac_cv_lib_z_deflate = yes; then
25601 ZLIB_LINK=" -lz"
25602fi
25603
25604 fi
25605
25606 if test "x$ZLIB_LINK" = "x" ; then
25607 if test "$wxUSE_ZLIB" = "sys" ; then
25608 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25609echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25610 { (exit 1); exit 1; }; }
25611 else
25612 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25613echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25614 wxUSE_ZLIB=builtin
25615 fi
25616 else
25617 wxUSE_ZLIB=sys
25618 fi
25619 fi
25620fi
25621
25622
25623PNG_LINK=
25624if test "$wxUSE_LIBPNG" != "no" ; then
25625 cat >>confdefs.h <<\_ACEOF
25626#define wxUSE_LIBPNG 1
25627_ACEOF
25628
25629
25630 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25631 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25632echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25633 wxUSE_LIBPNG=sys
25634 fi
25635
25636 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25637 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25638echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25639 wxUSE_LIBPNG=builtin
25640 fi
25641
25642 if test "$wxUSE_MGL" != 1 ; then
25643 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
f321ab7f
VS
25644 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25645echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
a848cd7e
SC
25646if test "${ac_cv_header_png_h+set}" = set; then
25647 echo $ECHO_N "(cached) $ECHO_C" >&6
25648else
25649 if test "$cross_compiling" = yes; then
25650 unset ac_cv_header_png_h
25651
25652else
25653 cat >conftest.$ac_ext <<_ACEOF
25654/* confdefs.h. */
25655_ACEOF
25656cat confdefs.h >>conftest.$ac_ext
25657cat >>conftest.$ac_ext <<_ACEOF
25658/* end confdefs.h. */
25659
25660 #include <png.h>
25661 #include <stdio.h>
25662
25663 int main()
25664 {
25665 FILE *f=fopen("conftestval", "w");
25666 if (!f) exit(1);
25667 fprintf(f, "%s",
25668 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25669 exit(0);
25670 }
25671
25672_ACEOF
25673rm -f conftest$ac_exeext
f321ab7f
VS
25674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25675 (eval $ac_link) 2>&5
a848cd7e
SC
25676 ac_status=$?
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
a848cd7e
SC
25681 ac_status=$?
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; }; then
25684 ac_cv_header_png_h=`cat conftestval`
25685else
25686 echo "$as_me: program exited with status $ac_status" >&5
25687echo "$as_me: failed program was:" >&5
25688sed 's/^/| /' conftest.$ac_ext >&5
25689
25690( exit $ac_status )
25691ac_cv_header_png_h=no
25692fi
f321ab7f 25693rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25694fi
25695
25696fi
f321ab7f
VS
25697echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25698echo "${ECHO_T}$ac_cv_header_png_h" >&6
a848cd7e 25699 if test "${ac_cv_header_png_h+set}" = set; then
f321ab7f
VS
25700 echo "$as_me:$LINENO: checking for png.h" >&5
25701echo $ECHO_N "checking for png.h... $ECHO_C" >&6
a848cd7e
SC
25702if test "${ac_cv_header_png_h+set}" = set; then
25703 echo $ECHO_N "(cached) $ECHO_C" >&6
25704fi
f321ab7f
VS
25705echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25706echo "${ECHO_T}$ac_cv_header_png_h" >&6
a848cd7e
SC
25707else
25708 # Is the header compilable?
f321ab7f
VS
25709echo "$as_me:$LINENO: checking png.h usability" >&5
25710echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
a848cd7e
SC
25711cat >conftest.$ac_ext <<_ACEOF
25712/* confdefs.h. */
25713_ACEOF
25714cat confdefs.h >>conftest.$ac_ext
25715cat >>conftest.$ac_ext <<_ACEOF
25716/* end confdefs.h. */
25717$ac_includes_default
25718#include <png.h>
25719_ACEOF
25720rm -f conftest.$ac_objext
f321ab7f
VS
25721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25722 (eval $ac_compile) 2>conftest.er1
a848cd7e 25723 ac_status=$?
ac1cb8d3
VS
25724 grep -v '^ *+' conftest.er1 >conftest.err
25725 rm -f conftest.er1
25726 cat conftest.err >&5
a848cd7e
SC
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } &&
f321ab7f
VS
25729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25731 (eval $ac_try) 2>&5
ac1cb8d3
VS
25732 ac_status=$?
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); }; } &&
25735 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
a848cd7e
SC
25738 ac_status=$?
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; }; then
25741 ac_header_compiler=yes
25742else
25743 echo "$as_me: failed program was:" >&5
25744sed 's/^/| /' conftest.$ac_ext >&5
25745
f321ab7f 25746ac_header_compiler=no
a848cd7e 25747fi
f321ab7f
VS
25748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25750echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
25751
25752# Is the header present?
f321ab7f
VS
25753echo "$as_me:$LINENO: checking png.h presence" >&5
25754echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
a848cd7e
SC
25755cat >conftest.$ac_ext <<_ACEOF
25756/* confdefs.h. */
25757_ACEOF
25758cat confdefs.h >>conftest.$ac_ext
25759cat >>conftest.$ac_ext <<_ACEOF
25760/* end confdefs.h. */
25761#include <png.h>
25762_ACEOF
f321ab7f
VS
25763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
25765 ac_status=$?
25766 grep -v '^ *+' conftest.er1 >conftest.err
25767 rm -f conftest.er1
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } >/dev/null; then
25771 if test -s conftest.err; then
fd5199d6
VZ
25772 ac_cpp_err=$ac_c_preproc_warn_flag
25773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25774 else
25775 ac_cpp_err=
25776 fi
25777else
25778 ac_cpp_err=yes
25779fi
25780if test -z "$ac_cpp_err"; then
25781 ac_header_preproc=yes
25782else
25783 echo "$as_me: failed program was:" >&5
25784sed 's/^/| /' conftest.$ac_ext >&5
25785
25786 ac_header_preproc=no
25787fi
25788rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
25789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25790echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
25791
25792# So? What about this header?
fd5199d6 25793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 25794 yes:no: )
a848cd7e
SC
25795 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25796echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25797 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25798echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25799 ac_header_preproc=yes
a848cd7e 25800 ;;
ac1cb8d3 25801 no:yes:* )
a848cd7e
SC
25802 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25803echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25804 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25805echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25806 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25807echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25808 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25809echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25810 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25811echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25812 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25813echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
25814 (
25815 cat <<\_ASBOX
ac1cb8d3
VS
25816## ----------------------------------------- ##
25817## Report this to wx-dev@lists.wxwidgets.org ##
25818## ----------------------------------------- ##
a848cd7e 25819_ASBOX
f321ab7f
VS
25820 ) |
25821 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
25822 ;;
25823esac
f321ab7f
VS
25824echo "$as_me:$LINENO: checking for png.h" >&5
25825echo $ECHO_N "checking for png.h... $ECHO_C" >&6
a848cd7e
SC
25826if test "${ac_cv_header_png_h+set}" = set; then
25827 echo $ECHO_N "(cached) $ECHO_C" >&6
25828else
25829 ac_cv_header_png_h=$ac_header_preproc
25830fi
f321ab7f
VS
25831echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25832echo "${ECHO_T}$ac_cv_header_png_h" >&6
a848cd7e
SC
25833
25834fi
25835
25836
25837
25838 if test "$ac_cv_header_png_h" = "yes"; then
f321ab7f
VS
25839 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25840echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
a848cd7e
SC
25841if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25842 echo $ECHO_N "(cached) $ECHO_C" >&6
25843else
25844 ac_check_lib_save_LIBS=$LIBS
25845LIBS="-lpng -lz -lm $LIBS"
25846cat >conftest.$ac_ext <<_ACEOF
25847/* confdefs.h. */
25848_ACEOF
25849cat confdefs.h >>conftest.$ac_ext
25850cat >>conftest.$ac_ext <<_ACEOF
25851/* end confdefs.h. */
25852
f321ab7f 25853/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
25854#ifdef __cplusplus
25855extern "C"
25856#endif
f321ab7f
VS
25857/* We use char because int might match the return type of a gcc2
25858 builtin and then its argument prototype would still apply. */
a848cd7e
SC
25859char png_check_sig ();
25860int
25861main ()
25862{
f321ab7f 25863png_check_sig ();
a848cd7e
SC
25864 ;
25865 return 0;
25866}
25867_ACEOF
25868rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
25869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25870 (eval $ac_link) 2>conftest.er1
a848cd7e 25871 ac_status=$?
ac1cb8d3
VS
25872 grep -v '^ *+' conftest.er1 >conftest.err
25873 rm -f conftest.er1
25874 cat conftest.err >&5
a848cd7e
SC
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); } &&
f321ab7f
VS
25877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
ac1cb8d3
VS
25880 ac_status=$?
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; } &&
25883 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
25884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885 (eval $ac_try) 2>&5
a848cd7e
SC
25886 ac_status=$?
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); }; }; then
25889 ac_cv_lib_png_png_check_sig=yes
25890else
25891 echo "$as_me: failed program was:" >&5
25892sed 's/^/| /' conftest.$ac_ext >&5
25893
f321ab7f 25894ac_cv_lib_png_png_check_sig=no
a848cd7e 25895fi
f321ab7f 25896rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 25897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25898LIBS=$ac_check_lib_save_LIBS
25899fi
f321ab7f
VS
25900echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25901echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
a848cd7e
SC
25902if test $ac_cv_lib_png_png_check_sig = yes; then
25903 PNG_LINK=" -lpng -lz"
25904fi
25905
25906 fi
25907
25908 if test "x$PNG_LINK" = "x" ; then
25909 if test "$wxUSE_LIBPNG" = "sys" ; then
25910 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25911echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25912 { (exit 1); exit 1; }; }
25913 else
25914 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25915echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25916 wxUSE_LIBPNG=builtin
25917 fi
25918 else
25919 wxUSE_LIBPNG=sys
25920 fi
25921 fi
25922 fi
25923
25924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25925fi
25926
25927
25928JPEG_LINK=
25929if test "$wxUSE_LIBJPEG" != "no" ; then
25930 cat >>confdefs.h <<\_ACEOF
25931#define wxUSE_LIBJPEG 1
25932_ACEOF
25933
25934
25935 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25936 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25937echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25938 wxUSE_LIBJPEG=sys
25939 fi
25940
25941 if test "$wxUSE_MGL" != 1 ; then
25942 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
f321ab7f
VS
25943 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25944echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
a848cd7e
SC
25945 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25946 echo $ECHO_N "(cached) $ECHO_C" >&6
25947else
25948 cat >conftest.$ac_ext <<_ACEOF
25949/* confdefs.h. */
25950_ACEOF
25951cat confdefs.h >>conftest.$ac_ext
25952cat >>conftest.$ac_ext <<_ACEOF
25953/* end confdefs.h. */
25954
25955 #undef HAVE_STDLIB_H
25956 #include <stdio.h>
25957 #include <jpeglib.h>
25958
25959int
25960main ()
25961{
25962
25963
25964 ;
25965 return 0;
25966}
25967_ACEOF
25968rm -f conftest.$ac_objext
f321ab7f
VS
25969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25970 (eval $ac_compile) 2>conftest.er1
a848cd7e 25971 ac_status=$?
ac1cb8d3
VS
25972 grep -v '^ *+' conftest.er1 >conftest.err
25973 rm -f conftest.er1
25974 cat conftest.err >&5
a848cd7e
SC
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } &&
f321ab7f
VS
25977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979 (eval $ac_try) 2>&5
ac1cb8d3
VS
25980 ac_status=$?
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); }; } &&
25983 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
25984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25985 (eval $ac_try) 2>&5
a848cd7e
SC
25986 ac_status=$?
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); }; }; then
25989 ac_cv_header_jpeglib_h=yes
25990else
25991 echo "$as_me: failed program was:" >&5
25992sed 's/^/| /' conftest.$ac_ext >&5
25993
f321ab7f 25994ac_cv_header_jpeglib_h=no
a848cd7e
SC
25995
25996fi
f321ab7f 25997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25998
25999fi
26000
f321ab7f
VS
26001 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26002echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
a848cd7e
SC
26003
26004 if test "$ac_cv_header_jpeglib_h" = "yes"; then
f321ab7f
VS
26005 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26006echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
a848cd7e
SC
26007if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26009else
26010 ac_check_lib_save_LIBS=$LIBS
26011LIBS="-ljpeg $LIBS"
26012cat >conftest.$ac_ext <<_ACEOF
26013/* confdefs.h. */
26014_ACEOF
26015cat confdefs.h >>conftest.$ac_ext
26016cat >>conftest.$ac_ext <<_ACEOF
26017/* end confdefs.h. */
26018
f321ab7f 26019/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
26020#ifdef __cplusplus
26021extern "C"
26022#endif
f321ab7f
VS
26023/* We use char because int might match the return type of a gcc2
26024 builtin and then its argument prototype would still apply. */
a848cd7e
SC
26025char jpeg_read_header ();
26026int
26027main ()
26028{
f321ab7f 26029jpeg_read_header ();
a848cd7e
SC
26030 ;
26031 return 0;
26032}
26033_ACEOF
26034rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
26035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26036 (eval $ac_link) 2>conftest.er1
a848cd7e 26037 ac_status=$?
ac1cb8d3
VS
26038 grep -v '^ *+' conftest.er1 >conftest.err
26039 rm -f conftest.er1
26040 cat conftest.err >&5
a848cd7e
SC
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } &&
f321ab7f
VS
26043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
ac1cb8d3
VS
26046 ac_status=$?
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; } &&
26049 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
26050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051 (eval $ac_try) 2>&5
a848cd7e
SC
26052 ac_status=$?
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); }; }; then
26055 ac_cv_lib_jpeg_jpeg_read_header=yes
26056else
26057 echo "$as_me: failed program was:" >&5
26058sed 's/^/| /' conftest.$ac_ext >&5
26059
f321ab7f 26060ac_cv_lib_jpeg_jpeg_read_header=no
a848cd7e 26061fi
f321ab7f 26062rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 26063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26064LIBS=$ac_check_lib_save_LIBS
26065fi
f321ab7f
VS
26066echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26067echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
a848cd7e
SC
26068if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26069 JPEG_LINK=" -ljpeg"
26070fi
26071
26072 fi
26073
26074 if test "x$JPEG_LINK" = "x" ; then
26075 if test "$wxUSE_LIBJPEG" = "sys" ; then
26076 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26077echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26078 { (exit 1); exit 1; }; }
26079 else
26080 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26081echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26082 wxUSE_LIBJPEG=builtin
26083 fi
26084 else
26085 wxUSE_LIBJPEG=sys
90eaf433
MW
26086
26087 if test "$wxUSE_MSW" = 1; then
f321ab7f
VS
26088 echo "$as_me:$LINENO: checking for boolean" >&5
26089echo $ECHO_N "checking for boolean... $ECHO_C" >&6
90eaf433
MW
26090if test "${ac_cv_type_boolean+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26092else
26093 cat >conftest.$ac_ext <<_ACEOF
26094/* confdefs.h. */
26095_ACEOF
26096cat confdefs.h >>conftest.$ac_ext
26097cat >>conftest.$ac_ext <<_ACEOF
26098/* end confdefs.h. */
26099#include <windows.h>
26100
26101int
26102main ()
26103{
f321ab7f 26104if ((boolean *) 0)
90eaf433 26105 return 0;
f321ab7f 26106if (sizeof (boolean))
90eaf433
MW
26107 return 0;
26108 ;
26109 return 0;
26110}
26111_ACEOF
26112rm -f conftest.$ac_objext
f321ab7f
VS
26113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26114 (eval $ac_compile) 2>conftest.er1
90eaf433
MW
26115 ac_status=$?
26116 grep -v '^ *+' conftest.er1 >conftest.err
26117 rm -f conftest.er1
26118 cat conftest.err >&5
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); } &&
f321ab7f
VS
26121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26123 (eval $ac_try) 2>&5
90eaf433
MW
26124 ac_status=$?
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); }; } &&
26127 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
26128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26129 (eval $ac_try) 2>&5
90eaf433
MW
26130 ac_status=$?
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); }; }; then
26133 ac_cv_type_boolean=yes
26134else
26135 echo "$as_me: failed program was:" >&5
26136sed 's/^/| /' conftest.$ac_ext >&5
26137
f321ab7f 26138ac_cv_type_boolean=no
90eaf433 26139fi
f321ab7f 26140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433 26141fi
f321ab7f
VS
26142echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26143echo "${ECHO_T}$ac_cv_type_boolean" >&6
90eaf433
MW
26144if test $ac_cv_type_boolean = yes; then
26145
26146cat >>confdefs.h <<_ACEOF
26147#define HAVE_BOOLEAN 1
26148_ACEOF
26149
26150
f321ab7f
VS
26151 echo "$as_me:$LINENO: checking for boolean" >&5
26152echo $ECHO_N "checking for boolean... $ECHO_C" >&6
90eaf433
MW
26153if test "${ac_cv_type_boolean+set}" = set; then
26154 echo $ECHO_N "(cached) $ECHO_C" >&6
26155else
26156 cat >conftest.$ac_ext <<_ACEOF
26157/* confdefs.h. */
26158_ACEOF
26159cat confdefs.h >>conftest.$ac_ext
26160cat >>conftest.$ac_ext <<_ACEOF
26161/* end confdefs.h. */
26162
26163 #undef HAVE_BOOLEAN
26164 #include <stdio.h>
26165 #include <jpeglib.h>
26166
26167
26168int
26169main ()
26170{
f321ab7f 26171if ((boolean *) 0)
90eaf433 26172 return 0;
f321ab7f 26173if (sizeof (boolean))
90eaf433
MW
26174 return 0;
26175 ;
26176 return 0;
26177}
26178_ACEOF
26179rm -f conftest.$ac_objext
f321ab7f
VS
26180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26181 (eval $ac_compile) 2>conftest.er1
90eaf433
MW
26182 ac_status=$?
26183 grep -v '^ *+' conftest.er1 >conftest.err
26184 rm -f conftest.er1
26185 cat conftest.err >&5
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); } &&
f321ab7f
VS
26188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
90eaf433
MW
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; } &&
26194 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
26195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
90eaf433
MW
26197 ac_status=$?
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; }; then
26200 ac_cv_type_boolean=yes
26201else
26202 echo "$as_me: failed program was:" >&5
26203sed 's/^/| /' conftest.$ac_ext >&5
26204
f321ab7f 26205ac_cv_type_boolean=no
90eaf433 26206fi
f321ab7f 26207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433 26208fi
f321ab7f
VS
26209echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26210echo "${ECHO_T}$ac_cv_type_boolean" >&6
90eaf433 26211
f321ab7f
VS
26212echo "$as_me:$LINENO: checking size of boolean" >&5
26213echo $ECHO_N "checking size of boolean... $ECHO_C" >&6
90eaf433
MW
26214if test "${ac_cv_sizeof_boolean+set}" = set; then
26215 echo $ECHO_N "(cached) $ECHO_C" >&6
26216else
26217 if test "$ac_cv_type_boolean" = yes; then
f321ab7f 26218 # The cast to unsigned long works around a bug in the HP C Compiler
90eaf433
MW
26219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26221 # This bug is HP SR number 8606223364.
26222 if test "$cross_compiling" = yes; then
26223 # Depending upon the size, compute the lo and hi bounds.
26224cat >conftest.$ac_ext <<_ACEOF
26225/* confdefs.h. */
26226_ACEOF
26227cat confdefs.h >>conftest.$ac_ext
26228cat >>conftest.$ac_ext <<_ACEOF
26229/* end confdefs.h. */
26230
26231 #undef HAVE_BOOLEAN
26232 #include <stdio.h>
26233 #include <jpeglib.h>
26234
26235
26236int
26237main ()
26238{
f321ab7f 26239static int test_array [1 - 2 * !(((long) (sizeof (boolean))) >= 0)];
90eaf433
MW
26240test_array [0] = 0
26241
26242 ;
26243 return 0;
26244}
26245_ACEOF
26246rm -f conftest.$ac_objext
f321ab7f
VS
26247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26248 (eval $ac_compile) 2>conftest.er1
90eaf433
MW
26249 ac_status=$?
26250 grep -v '^ *+' conftest.er1 >conftest.err
26251 rm -f conftest.er1
26252 cat conftest.err >&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } &&
f321ab7f
VS
26255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257 (eval $ac_try) 2>&5
90eaf433
MW
26258 ac_status=$?
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; } &&
26261 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
26262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263 (eval $ac_try) 2>&5
90eaf433
MW
26264 ac_status=$?
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); }; }; then
26267 ac_lo=0 ac_mid=0
26268 while :; do
26269 cat >conftest.$ac_ext <<_ACEOF
26270/* confdefs.h. */
26271_ACEOF
26272cat confdefs.h >>conftest.$ac_ext
26273cat >>conftest.$ac_ext <<_ACEOF
26274/* end confdefs.h. */
26275
26276 #undef HAVE_BOOLEAN
26277 #include <stdio.h>
26278 #include <jpeglib.h>
26279
26280
26281int
26282main ()
26283{
f321ab7f 26284static int test_array [1 - 2 * !(((long) (sizeof (boolean))) <= $ac_mid)];
90eaf433
MW
26285test_array [0] = 0
26286
26287 ;
26288 return 0;
26289}
26290_ACEOF
26291rm -f conftest.$ac_objext
f321ab7f
VS
26292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26293 (eval $ac_compile) 2>conftest.er1
90eaf433
MW
26294 ac_status=$?
26295 grep -v '^ *+' conftest.er1 >conftest.err
26296 rm -f conftest.er1
26297 cat conftest.err >&5
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); } &&
f321ab7f
VS
26300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302 (eval $ac_try) 2>&5
90eaf433
MW
26303 ac_status=$?
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); }; } &&
26306 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
26307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308 (eval $ac_try) 2>&5
90eaf433
MW
26309 ac_status=$?
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); }; }; then
26312 ac_hi=$ac_mid; break
26313else
26314 echo "$as_me: failed program was:" >&5
26315sed 's/^/| /' conftest.$ac_ext >&5
26316
f321ab7f
VS
26317ac_lo=`expr $ac_mid + 1`
26318 if test $ac_lo -le $ac_mid; then
26319 ac_lo= ac_hi=
26320 break
26321 fi
26322 ac_mid=`expr 2 '*' $ac_mid + 1`
90eaf433 26323fi
f321ab7f 26324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
26325 done
26326else
26327 echo "$as_me: failed program was:" >&5
26328sed 's/^/| /' conftest.$ac_ext >&5
26329
f321ab7f 26330cat >conftest.$ac_ext <<_ACEOF
90eaf433
MW
26331/* confdefs.h. */
26332_ACEOF
26333cat confdefs.h >>conftest.$ac_ext
26334cat >>conftest.$ac_ext <<_ACEOF
26335/* end confdefs.h. */
26336
26337 #undef HAVE_BOOLEAN
26338 #include <stdio.h>
26339 #include <jpeglib.h>
26340
26341
26342int
26343main ()
26344{
f321ab7f 26345static int test_array [1 - 2 * !(((long) (sizeof (boolean))) < 0)];
90eaf433
MW
26346test_array [0] = 0
26347
26348 ;
26349 return 0;
26350}
26351_ACEOF
26352rm -f conftest.$ac_objext
f321ab7f
VS
26353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26354 (eval $ac_compile) 2>conftest.er1
90eaf433
MW
26355 ac_status=$?
26356 grep -v '^ *+' conftest.er1 >conftest.err
26357 rm -f conftest.er1
26358 cat conftest.err >&5
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); } &&
f321ab7f
VS
26361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
90eaf433
MW
26364 ac_status=$?
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; } &&
26367 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
26368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369 (eval $ac_try) 2>&5
90eaf433
MW
26370 ac_status=$?
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; }; then
26373 ac_hi=-1 ac_mid=-1
26374 while :; do
26375 cat >conftest.$ac_ext <<_ACEOF
26376/* confdefs.h. */
26377_ACEOF
26378cat confdefs.h >>conftest.$ac_ext
26379cat >>conftest.$ac_ext <<_ACEOF
26380/* end confdefs.h. */
26381
26382 #undef HAVE_BOOLEAN
26383 #include <stdio.h>
26384 #include <jpeglib.h>
26385
26386
26387int
26388main ()
26389{
f321ab7f 26390static int test_array [1 - 2 * !(((long) (sizeof (boolean))) >= $ac_mid)];
90eaf433
MW
26391test_array [0] = 0
26392
26393 ;
26394 return 0;
26395}
26396_ACEOF
26397rm -f conftest.$ac_objext
f321ab7f
VS
26398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26399 (eval $ac_compile) 2>conftest.er1
90eaf433
MW
26400 ac_status=$?
26401 grep -v '^ *+' conftest.er1 >conftest.err
26402 rm -f conftest.er1
26403 cat conftest.err >&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); } &&
f321ab7f
VS
26406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408 (eval $ac_try) 2>&5
90eaf433
MW
26409 ac_status=$?
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); }; } &&
26412 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
90eaf433
MW
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }; then
26418 ac_lo=$ac_mid; break
26419else
26420 echo "$as_me: failed program was:" >&5
26421sed 's/^/| /' conftest.$ac_ext >&5
26422
f321ab7f
VS
26423ac_hi=`expr '(' $ac_mid ')' - 1`
26424 if test $ac_mid -le $ac_hi; then
26425 ac_lo= ac_hi=
26426 break
26427 fi
26428 ac_mid=`expr 2 '*' $ac_mid`
90eaf433 26429fi
f321ab7f 26430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
26431 done
26432else
26433 echo "$as_me: failed program was:" >&5
26434sed 's/^/| /' conftest.$ac_ext >&5
26435
f321ab7f 26436ac_lo= ac_hi=
90eaf433 26437fi
f321ab7f 26438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433 26439fi
f321ab7f 26440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
26441# Binary search between lo and hi bounds.
26442while test "x$ac_lo" != "x$ac_hi"; do
26443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26444 cat >conftest.$ac_ext <<_ACEOF
26445/* confdefs.h. */
26446_ACEOF
26447cat confdefs.h >>conftest.$ac_ext
26448cat >>conftest.$ac_ext <<_ACEOF
26449/* end confdefs.h. */
26450
26451 #undef HAVE_BOOLEAN
26452 #include <stdio.h>
26453 #include <jpeglib.h>
26454
26455
26456int
26457main ()
26458{
f321ab7f 26459static int test_array [1 - 2 * !(((long) (sizeof (boolean))) <= $ac_mid)];
90eaf433
MW
26460test_array [0] = 0
26461
26462 ;
26463 return 0;
26464}
26465_ACEOF
26466rm -f conftest.$ac_objext
f321ab7f
VS
26467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26468 (eval $ac_compile) 2>conftest.er1
90eaf433
MW
26469 ac_status=$?
26470 grep -v '^ *+' conftest.er1 >conftest.err
26471 rm -f conftest.er1
26472 cat conftest.err >&5
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); } &&
f321ab7f
VS
26475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26477 (eval $ac_try) 2>&5
90eaf433
MW
26478 ac_status=$?
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); }; } &&
26481 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
90eaf433
MW
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; }; then
26487 ac_hi=$ac_mid
26488else
26489 echo "$as_me: failed program was:" >&5
26490sed 's/^/| /' conftest.$ac_ext >&5
26491
f321ab7f 26492ac_lo=`expr '(' $ac_mid ')' + 1`
90eaf433 26493fi
f321ab7f 26494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
26495done
26496case $ac_lo in
26497?*) ac_cv_sizeof_boolean=$ac_lo;;
f321ab7f 26498'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean), 77
90eaf433 26499See \`config.log' for more details." >&5
f321ab7f 26500echo "$as_me: error: cannot compute sizeof (boolean), 77
90eaf433 26501See \`config.log' for more details." >&2;}
f321ab7f 26502 { (exit 1); exit 1; }; } ;;
90eaf433 26503esac
f321ab7f
VS
26504else
26505 if test "$cross_compiling" = yes; then
26506 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26507echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26508 { (exit 1); exit 1; }; }
90eaf433
MW
26509else
26510 cat >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
26517 #undef HAVE_BOOLEAN
26518 #include <stdio.h>
26519 #include <jpeglib.h>
26520
26521
f321ab7f
VS
26522long longval () { return (long) (sizeof (boolean)); }
26523unsigned long ulongval () { return (long) (sizeof (boolean)); }
90eaf433
MW
26524#include <stdio.h>
26525#include <stdlib.h>
26526int
26527main ()
26528{
26529
26530 FILE *f = fopen ("conftest.val", "w");
26531 if (! f)
f321ab7f
VS
26532 exit (1);
26533 if (((long) (sizeof (boolean))) < 0)
90eaf433 26534 {
f321ab7f
VS
26535 long i = longval ();
26536 if (i != ((long) (sizeof (boolean))))
26537 exit (1);
90eaf433
MW
26538 fprintf (f, "%ld\n", i);
26539 }
26540 else
26541 {
f321ab7f
VS
26542 unsigned long i = ulongval ();
26543 if (i != ((long) (sizeof (boolean))))
26544 exit (1);
90eaf433
MW
26545 fprintf (f, "%lu\n", i);
26546 }
f321ab7f 26547 exit (ferror (f) || fclose (f) != 0);
90eaf433
MW
26548
26549 ;
26550 return 0;
26551}
26552_ACEOF
26553rm -f conftest$ac_exeext
f321ab7f
VS
26554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26555 (eval $ac_link) 2>&5
90eaf433
MW
26556 ac_status=$?
26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
90eaf433
MW
26561 ac_status=$?
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; }; then
26564 ac_cv_sizeof_boolean=`cat conftest.val`
26565else
26566 echo "$as_me: program exited with status $ac_status" >&5
26567echo "$as_me: failed program was:" >&5
26568sed 's/^/| /' conftest.$ac_ext >&5
26569
26570( exit $ac_status )
f321ab7f 26571{ { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean), 77
90eaf433 26572See \`config.log' for more details." >&5
f321ab7f 26573echo "$as_me: error: cannot compute sizeof (boolean), 77
90eaf433 26574See \`config.log' for more details." >&2;}
f321ab7f
VS
26575 { (exit 1); exit 1; }; }
26576fi
26577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
26578fi
26579fi
26580rm -f conftest.val
26581else
26582 ac_cv_sizeof_boolean=0
26583fi
26584fi
f321ab7f
VS
26585echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
26586echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6
90eaf433
MW
26587cat >>confdefs.h <<_ACEOF
26588#define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
26589_ACEOF
26590
26591
26592 cat >>confdefs.h <<_ACEOF
26593#define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
26594_ACEOF
26595
26596
26597fi
26598
26599 fi
a848cd7e
SC
26600 fi
26601 fi
26602 fi
26603fi
26604
26605
26606TIFF_LINK=
26607TIFF_PREREQ_LINKS=-lm
26608if test "$wxUSE_LIBTIFF" != "no" ; then
26609 cat >>confdefs.h <<\_ACEOF
26610#define wxUSE_LIBTIFF 1
26611_ACEOF
26612
26613
26614 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26615 if test "$wxUSE_LIBJPEG" = "sys"; then
26616 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26617 fi
26618 if test "$wxUSE_ZLIB" = "sys"; then
26619 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26620 fi
26621 if test "${ac_cv_header_tiffio_h+set}" = set; then
f321ab7f
VS
26622 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26623echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
a848cd7e
SC
26624if test "${ac_cv_header_tiffio_h+set}" = set; then
26625 echo $ECHO_N "(cached) $ECHO_C" >&6
26626fi
f321ab7f
VS
26627echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26628echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
a848cd7e
SC
26629else
26630 # Is the header compilable?
f321ab7f
VS
26631echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26632echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
a848cd7e
SC
26633cat >conftest.$ac_ext <<_ACEOF
26634/* confdefs.h. */
26635_ACEOF
26636cat confdefs.h >>conftest.$ac_ext
26637cat >>conftest.$ac_ext <<_ACEOF
26638/* end confdefs.h. */
26639$ac_includes_default
26640#include <tiffio.h>
26641_ACEOF
26642rm -f conftest.$ac_objext
f321ab7f
VS
26643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26644 (eval $ac_compile) 2>conftest.er1
a848cd7e 26645 ac_status=$?
ac1cb8d3
VS
26646 grep -v '^ *+' conftest.er1 >conftest.err
26647 rm -f conftest.er1
26648 cat conftest.err >&5
a848cd7e
SC
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } &&
f321ab7f
VS
26651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653 (eval $ac_try) 2>&5
ac1cb8d3
VS
26654 ac_status=$?
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); }; } &&
26657 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
26658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26659 (eval $ac_try) 2>&5
a848cd7e
SC
26660 ac_status=$?
26661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662 (exit $ac_status); }; }; then
26663 ac_header_compiler=yes
26664else
26665 echo "$as_me: failed program was:" >&5
26666sed 's/^/| /' conftest.$ac_ext >&5
26667
f321ab7f 26668ac_header_compiler=no
a848cd7e 26669fi
f321ab7f
VS
26670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26672echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
26673
26674# Is the header present?
f321ab7f
VS
26675echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26676echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
a848cd7e
SC
26677cat >conftest.$ac_ext <<_ACEOF
26678/* confdefs.h. */
26679_ACEOF
26680cat confdefs.h >>conftest.$ac_ext
26681cat >>conftest.$ac_ext <<_ACEOF
26682/* end confdefs.h. */
26683#include <tiffio.h>
26684_ACEOF
f321ab7f
VS
26685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
26687 ac_status=$?
26688 grep -v '^ *+' conftest.er1 >conftest.err
26689 rm -f conftest.er1
26690 cat conftest.err >&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } >/dev/null; then
26693 if test -s conftest.err; then
fd5199d6
VZ
26694 ac_cpp_err=$ac_c_preproc_warn_flag
26695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26696 else
26697 ac_cpp_err=
26698 fi
26699else
26700 ac_cpp_err=yes
26701fi
26702if test -z "$ac_cpp_err"; then
26703 ac_header_preproc=yes
26704else
26705 echo "$as_me: failed program was:" >&5
26706sed 's/^/| /' conftest.$ac_ext >&5
26707
26708 ac_header_preproc=no
26709fi
26710rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
26711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26712echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
26713
26714# So? What about this header?
fd5199d6 26715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 26716 yes:no: )
a848cd7e
SC
26717 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26718echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26719 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26720echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26721 ac_header_preproc=yes
a848cd7e 26722 ;;
ac1cb8d3 26723 no:yes:* )
a848cd7e
SC
26724 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26725echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26726 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26727echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26728 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26729echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26730 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26731echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26732 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26733echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26734 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26735echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
26736 (
26737 cat <<\_ASBOX
ac1cb8d3
VS
26738## ----------------------------------------- ##
26739## Report this to wx-dev@lists.wxwidgets.org ##
26740## ----------------------------------------- ##
a848cd7e 26741_ASBOX
f321ab7f
VS
26742 ) |
26743 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
26744 ;;
26745esac
f321ab7f
VS
26746echo "$as_me:$LINENO: checking for tiffio.h" >&5
26747echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
a848cd7e
SC
26748if test "${ac_cv_header_tiffio_h+set}" = set; then
26749 echo $ECHO_N "(cached) $ECHO_C" >&6
26750else
26751 ac_cv_header_tiffio_h=$ac_header_preproc
26752fi
f321ab7f
VS
26753echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26754echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
a848cd7e
SC
26755
26756fi
26757if test $ac_cv_header_tiffio_h = yes; then
26758
f321ab7f
VS
26759 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26760echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
a848cd7e
SC
26761if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26763else
26764 ac_check_lib_save_LIBS=$LIBS
26765LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26766cat >conftest.$ac_ext <<_ACEOF
26767/* confdefs.h. */
26768_ACEOF
26769cat confdefs.h >>conftest.$ac_ext
26770cat >>conftest.$ac_ext <<_ACEOF
26771/* end confdefs.h. */
26772
f321ab7f 26773/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
26774#ifdef __cplusplus
26775extern "C"
26776#endif
f321ab7f
VS
26777/* We use char because int might match the return type of a gcc2
26778 builtin and then its argument prototype would still apply. */
a848cd7e
SC
26779char TIFFError ();
26780int
26781main ()
26782{
f321ab7f 26783TIFFError ();
a848cd7e
SC
26784 ;
26785 return 0;
26786}
26787_ACEOF
26788rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
26789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26790 (eval $ac_link) 2>conftest.er1
a848cd7e 26791 ac_status=$?
ac1cb8d3
VS
26792 grep -v '^ *+' conftest.er1 >conftest.err
26793 rm -f conftest.er1
26794 cat conftest.err >&5
a848cd7e
SC
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } &&
f321ab7f
VS
26797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799 (eval $ac_try) 2>&5
ac1cb8d3
VS
26800 ac_status=$?
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); }; } &&
26803 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
26804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805 (eval $ac_try) 2>&5
a848cd7e
SC
26806 ac_status=$?
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); }; }; then
26809 ac_cv_lib_tiff_TIFFError=yes
26810else
26811 echo "$as_me: failed program was:" >&5
26812sed 's/^/| /' conftest.$ac_ext >&5
26813
f321ab7f 26814ac_cv_lib_tiff_TIFFError=no
a848cd7e 26815fi
f321ab7f 26816rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 26817 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26818LIBS=$ac_check_lib_save_LIBS
26819fi
f321ab7f
VS
26820echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26821echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
a848cd7e
SC
26822if test $ac_cv_lib_tiff_TIFFError = yes; then
26823 TIFF_LINK=" -ltiff"
26824fi
26825
26826
26827
26828fi
26829
26830
26831
26832 if test "x$TIFF_LINK" = "x" ; then
26833 if test "$wxUSE_LIBTIFF" = "sys" ; then
26834 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26835echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26836 { (exit 1); exit 1; }; }
26837 else
26838 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26839echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26840 wxUSE_LIBTIFF=builtin
26841 fi
26842 else
26843 wxUSE_LIBTIFF=sys
26844 fi
26845 fi
26846fi
26847
26848
47a7e797
MW
26849if test "$wxUSE_WCHAR_T" != "yes"; then
26850 if test "$wxUSE_EXPAT" != "no"; then
26851 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26852echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26853 wxUSE_EXPAT=no
26854 fi
26855 if test "$wxUSE_XML" != "no"; then
26856 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26857echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26858 wxUSE_XML=no
26859 fi
26860fi
26861
a848cd7e
SC
26862if test "$wxUSE_EXPAT" != "no"; then
26863 wxUSE_XML=yes
26864 cat >>confdefs.h <<\_ACEOF
26865#define wxUSE_EXPAT 1
26866_ACEOF
26867
26868 cat >>confdefs.h <<\_ACEOF
26869#define wxUSE_XML 1
26870_ACEOF
26871
26872
26873 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26874 if test "${ac_cv_header_expat_h+set}" = set; then
f321ab7f
VS
26875 echo "$as_me:$LINENO: checking for expat.h" >&5
26876echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
a848cd7e
SC
26877if test "${ac_cv_header_expat_h+set}" = set; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26879fi
f321ab7f
VS
26880echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26881echo "${ECHO_T}$ac_cv_header_expat_h" >&6
a848cd7e
SC
26882else
26883 # Is the header compilable?
f321ab7f
VS
26884echo "$as_me:$LINENO: checking expat.h usability" >&5
26885echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
a848cd7e
SC
26886cat >conftest.$ac_ext <<_ACEOF
26887/* confdefs.h. */
26888_ACEOF
26889cat confdefs.h >>conftest.$ac_ext
26890cat >>conftest.$ac_ext <<_ACEOF
26891/* end confdefs.h. */
26892$ac_includes_default
26893#include <expat.h>
26894_ACEOF
26895rm -f conftest.$ac_objext
f321ab7f
VS
26896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26897 (eval $ac_compile) 2>conftest.er1
a848cd7e 26898 ac_status=$?
ac1cb8d3
VS
26899 grep -v '^ *+' conftest.er1 >conftest.err
26900 rm -f conftest.er1
26901 cat conftest.err >&5
a848cd7e
SC
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); } &&
f321ab7f
VS
26904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906 (eval $ac_try) 2>&5
ac1cb8d3
VS
26907 ac_status=$?
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); }; } &&
26910 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
26911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912 (eval $ac_try) 2>&5
a848cd7e
SC
26913 ac_status=$?
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; }; then
26916 ac_header_compiler=yes
26917else
26918 echo "$as_me: failed program was:" >&5
26919sed 's/^/| /' conftest.$ac_ext >&5
26920
f321ab7f 26921ac_header_compiler=no
a848cd7e 26922fi
f321ab7f
VS
26923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26925echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
26926
26927# Is the header present?
f321ab7f
VS
26928echo "$as_me:$LINENO: checking expat.h presence" >&5
26929echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
a848cd7e
SC
26930cat >conftest.$ac_ext <<_ACEOF
26931/* confdefs.h. */
26932_ACEOF
26933cat confdefs.h >>conftest.$ac_ext
26934cat >>conftest.$ac_ext <<_ACEOF
26935/* end confdefs.h. */
26936#include <expat.h>
26937_ACEOF
f321ab7f
VS
26938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
26940 ac_status=$?
26941 grep -v '^ *+' conftest.er1 >conftest.err
26942 rm -f conftest.er1
26943 cat conftest.err >&5
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); } >/dev/null; then
26946 if test -s conftest.err; then
fd5199d6
VZ
26947 ac_cpp_err=$ac_c_preproc_warn_flag
26948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26949 else
26950 ac_cpp_err=
26951 fi
26952else
26953 ac_cpp_err=yes
26954fi
26955if test -z "$ac_cpp_err"; then
26956 ac_header_preproc=yes
26957else
26958 echo "$as_me: failed program was:" >&5
26959sed 's/^/| /' conftest.$ac_ext >&5
26960
26961 ac_header_preproc=no
26962fi
26963rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
26964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26965echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
26966
26967# So? What about this header?
fd5199d6 26968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 26969 yes:no: )
a848cd7e
SC
26970 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26971echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26972 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26973echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26974 ac_header_preproc=yes
a848cd7e 26975 ;;
ac1cb8d3 26976 no:yes:* )
a848cd7e
SC
26977 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26978echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26979 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26980echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26981 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26982echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26983 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26984echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26985 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26986echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26987 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26988echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
26989 (
26990 cat <<\_ASBOX
ac1cb8d3
VS
26991## ----------------------------------------- ##
26992## Report this to wx-dev@lists.wxwidgets.org ##
26993## ----------------------------------------- ##
a848cd7e 26994_ASBOX
f321ab7f
VS
26995 ) |
26996 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
26997 ;;
26998esac
f321ab7f
VS
26999echo "$as_me:$LINENO: checking for expat.h" >&5
27000echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
a848cd7e
SC
27001if test "${ac_cv_header_expat_h+set}" = set; then
27002 echo $ECHO_N "(cached) $ECHO_C" >&6
27003else
27004 ac_cv_header_expat_h=$ac_header_preproc
27005fi
f321ab7f
VS
27006echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27007echo "${ECHO_T}$ac_cv_header_expat_h" >&6
a848cd7e
SC
27008
27009fi
27010if test $ac_cv_header_expat_h = yes; then
27011 found_expat_h=1
27012fi
27013
27014
27015 if test "x$found_expat_h" = "x1"; then
f321ab7f
VS
27016 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27017echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
a848cd7e
SC
27018if test "${wx_cv_expat_is_not_broken+set}" = set; then
27019 echo $ECHO_N "(cached) $ECHO_C" >&6
27020else
27021
f321ab7f 27022 ac_ext=cc
9b8888f9
VZ
27023ac_cpp='$CXXCPP $CPPFLAGS'
27024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27027
a848cd7e
SC
27028 cat >conftest.$ac_ext <<_ACEOF
27029/* confdefs.h. */
27030_ACEOF
27031cat confdefs.h >>conftest.$ac_ext
27032cat >>conftest.$ac_ext <<_ACEOF
27033/* end confdefs.h. */
27034#include <expat.h>
27035int
27036main ()
27037{
27038
27039 ;
27040 return 0;
27041}
27042_ACEOF
27043rm -f conftest.$ac_objext
f321ab7f
VS
27044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27045 (eval $ac_compile) 2>conftest.er1
a848cd7e 27046 ac_status=$?
ac1cb8d3
VS
27047 grep -v '^ *+' conftest.er1 >conftest.err
27048 rm -f conftest.er1
27049 cat conftest.err >&5
a848cd7e
SC
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); } &&
f321ab7f
VS
27052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27054 (eval $ac_try) 2>&5
ac1cb8d3
VS
27055 ac_status=$?
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); }; } &&
27058 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
27059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060 (eval $ac_try) 2>&5
a848cd7e
SC
27061 ac_status=$?
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; }; then
27064 wx_cv_expat_is_not_broken=yes
27065else
27066 echo "$as_me: failed program was:" >&5
27067sed 's/^/| /' conftest.$ac_ext >&5
27068
f321ab7f 27069wx_cv_expat_is_not_broken=no
a848cd7e
SC
27070
27071fi
f321ab7f 27072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
27073 ac_ext=c
27074ac_cpp='$CPP $CPPFLAGS'
27075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27077ac_compiler_gnu=$ac_cv_c_compiler_gnu
27078
a848cd7e
SC
27079
27080
27081fi
f321ab7f
VS
27082echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27083echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
a848cd7e 27084 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
f321ab7f
VS
27085 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27086echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
a848cd7e
SC
27087if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27088 echo $ECHO_N "(cached) $ECHO_C" >&6
27089else
27090 ac_check_lib_save_LIBS=$LIBS
27091LIBS="-lexpat $LIBS"
27092cat >conftest.$ac_ext <<_ACEOF
27093/* confdefs.h. */
27094_ACEOF
27095cat confdefs.h >>conftest.$ac_ext
27096cat >>conftest.$ac_ext <<_ACEOF
27097/* end confdefs.h. */
27098
f321ab7f 27099/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
27100#ifdef __cplusplus
27101extern "C"
27102#endif
f321ab7f
VS
27103/* We use char because int might match the return type of a gcc2
27104 builtin and then its argument prototype would still apply. */
a848cd7e
SC
27105char XML_ParserCreate ();
27106int
27107main ()
27108{
f321ab7f 27109XML_ParserCreate ();
a848cd7e
SC
27110 ;
27111 return 0;
27112}
27113_ACEOF
27114rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
27115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27116 (eval $ac_link) 2>conftest.er1
a848cd7e 27117 ac_status=$?
ac1cb8d3
VS
27118 grep -v '^ *+' conftest.er1 >conftest.err
27119 rm -f conftest.er1
27120 cat conftest.err >&5
a848cd7e
SC
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } &&
f321ab7f
VS
27123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125 (eval $ac_try) 2>&5
ac1cb8d3
VS
27126 ac_status=$?
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); }; } &&
27129 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
27130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131 (eval $ac_try) 2>&5
a848cd7e
SC
27132 ac_status=$?
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
27135 ac_cv_lib_expat_XML_ParserCreate=yes
27136else
27137 echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
f321ab7f 27140ac_cv_lib_expat_XML_ParserCreate=no
a848cd7e 27141fi
f321ab7f 27142rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 27143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27144LIBS=$ac_check_lib_save_LIBS
27145fi
f321ab7f
VS
27146echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27147echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
a848cd7e
SC
27148if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27149 EXPAT_LINK=" -lexpat"
27150fi
27151
27152 fi
27153 fi
27154 if test "x$EXPAT_LINK" = "x" ; then
27155 if test "$wxUSE_EXPAT" = "sys" ; then
27156 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27157echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27158 { (exit 1); exit 1; }; }
27159 else
27160 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27161echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27162 wxUSE_EXPAT=builtin
27163 fi
27164 else
27165 wxUSE_EXPAT=sys
27166 fi
27167 fi
27168 if test "$wxUSE_EXPAT" = "builtin" ; then
f321ab7f
VS
27169
27170
27171subdirs="$subdirs src/expat"
a848cd7e
SC
27172
27173 fi
27174fi
27175
27176
27177
27178if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e 27179 if test "${ac_cv_header_mspack_h+set}" = set; then
f321ab7f
VS
27180 echo "$as_me:$LINENO: checking for mspack.h" >&5
27181echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
a848cd7e
SC
27182if test "${ac_cv_header_mspack_h+set}" = set; then
27183 echo $ECHO_N "(cached) $ECHO_C" >&6
27184fi
f321ab7f
VS
27185echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27186echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
a848cd7e
SC
27187else
27188 # Is the header compilable?
f321ab7f
VS
27189echo "$as_me:$LINENO: checking mspack.h usability" >&5
27190echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
a848cd7e
SC
27191cat >conftest.$ac_ext <<_ACEOF
27192/* confdefs.h. */
27193_ACEOF
27194cat confdefs.h >>conftest.$ac_ext
27195cat >>conftest.$ac_ext <<_ACEOF
27196/* end confdefs.h. */
27197$ac_includes_default
27198#include <mspack.h>
27199_ACEOF
27200rm -f conftest.$ac_objext
f321ab7f
VS
27201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27202 (eval $ac_compile) 2>conftest.er1
a848cd7e 27203 ac_status=$?
ac1cb8d3
VS
27204 grep -v '^ *+' conftest.er1 >conftest.err
27205 rm -f conftest.er1
27206 cat conftest.err >&5
a848cd7e
SC
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); } &&
f321ab7f
VS
27209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27211 (eval $ac_try) 2>&5
ac1cb8d3
VS
27212 ac_status=$?
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; } &&
27215 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
27216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217 (eval $ac_try) 2>&5
a848cd7e
SC
27218 ac_status=$?
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; }; then
27221 ac_header_compiler=yes
27222else
27223 echo "$as_me: failed program was:" >&5
27224sed 's/^/| /' conftest.$ac_ext >&5
27225
f321ab7f 27226ac_header_compiler=no
a848cd7e 27227fi
f321ab7f
VS
27228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27230echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
27231
27232# Is the header present?
f321ab7f
VS
27233echo "$as_me:$LINENO: checking mspack.h presence" >&5
27234echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
a848cd7e
SC
27235cat >conftest.$ac_ext <<_ACEOF
27236/* confdefs.h. */
27237_ACEOF
27238cat confdefs.h >>conftest.$ac_ext
27239cat >>conftest.$ac_ext <<_ACEOF
27240/* end confdefs.h. */
27241#include <mspack.h>
27242_ACEOF
f321ab7f
VS
27243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
27245 ac_status=$?
27246 grep -v '^ *+' conftest.er1 >conftest.err
27247 rm -f conftest.er1
27248 cat conftest.err >&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); } >/dev/null; then
27251 if test -s conftest.err; then
fd5199d6
VZ
27252 ac_cpp_err=$ac_c_preproc_warn_flag
27253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27254 else
27255 ac_cpp_err=
27256 fi
27257else
27258 ac_cpp_err=yes
27259fi
27260if test -z "$ac_cpp_err"; then
27261 ac_header_preproc=yes
27262else
27263 echo "$as_me: failed program was:" >&5
27264sed 's/^/| /' conftest.$ac_ext >&5
27265
27266 ac_header_preproc=no
27267fi
27268rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
27269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27270echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
27271
27272# So? What about this header?
fd5199d6 27273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 27274 yes:no: )
a848cd7e
SC
27275 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
27276echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27277 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
27278echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
27279 ac_header_preproc=yes
a848cd7e 27280 ;;
ac1cb8d3 27281 no:yes:* )
a848cd7e
SC
27282 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
27283echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27284 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
27285echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
27286 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
27287echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
27288 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
27289echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27290 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
27291echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27292 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
27293echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
27294 (
27295 cat <<\_ASBOX
ac1cb8d3
VS
27296## ----------------------------------------- ##
27297## Report this to wx-dev@lists.wxwidgets.org ##
27298## ----------------------------------------- ##
a848cd7e 27299_ASBOX
f321ab7f
VS
27300 ) |
27301 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
27302 ;;
27303esac
f321ab7f
VS
27304echo "$as_me:$LINENO: checking for mspack.h" >&5
27305echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
a848cd7e
SC
27306if test "${ac_cv_header_mspack_h+set}" = set; then
27307 echo $ECHO_N "(cached) $ECHO_C" >&6
27308else
27309 ac_cv_header_mspack_h=$ac_header_preproc
27310fi
f321ab7f
VS
27311echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27312echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
a848cd7e
SC
27313
27314fi
27315if test $ac_cv_header_mspack_h = yes; then
27316 found_mspack_h=1
27317fi
27318
27319
27320 if test "x$found_mspack_h" = "x1"; then
f321ab7f
VS
27321 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27322echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
a848cd7e
SC
27323if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27324 echo $ECHO_N "(cached) $ECHO_C" >&6
27325else
27326 ac_check_lib_save_LIBS=$LIBS
27327LIBS="-lmspack $LIBS"
27328cat >conftest.$ac_ext <<_ACEOF
27329/* confdefs.h. */
27330_ACEOF
27331cat confdefs.h >>conftest.$ac_ext
27332cat >>conftest.$ac_ext <<_ACEOF
27333/* end confdefs.h. */
27334
f321ab7f 27335/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
27336#ifdef __cplusplus
27337extern "C"
27338#endif
f321ab7f
VS
27339/* We use char because int might match the return type of a gcc2
27340 builtin and then its argument prototype would still apply. */
a848cd7e
SC
27341char mspack_create_chm_decompressor ();
27342int
27343main ()
27344{
f321ab7f 27345mspack_create_chm_decompressor ();
a848cd7e
SC
27346 ;
27347 return 0;
27348}
27349_ACEOF
27350rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
27351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27352 (eval $ac_link) 2>conftest.er1
a848cd7e 27353 ac_status=$?
ac1cb8d3
VS
27354 grep -v '^ *+' conftest.er1 >conftest.err
27355 rm -f conftest.er1
27356 cat conftest.err >&5
a848cd7e
SC
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); } &&
f321ab7f
VS
27359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361 (eval $ac_try) 2>&5
ac1cb8d3
VS
27362 ac_status=$?
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; } &&
27365 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
27366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367 (eval $ac_try) 2>&5
a848cd7e
SC
27368 ac_status=$?
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); }; }; then
27371 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27372else
27373 echo "$as_me: failed program was:" >&5
27374sed 's/^/| /' conftest.$ac_ext >&5
27375
f321ab7f 27376ac_cv_lib_mspack_mspack_create_chm_decompressor=no
a848cd7e 27377fi
f321ab7f 27378rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 27379 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27380LIBS=$ac_check_lib_save_LIBS
27381fi
f321ab7f
VS
27382echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27383echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
a848cd7e
SC
27384if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27385 MSPACK_LINK=" -lmspack"
27386fi
27387
27388 fi
27389 if test "x$MSPACK_LINK" = "x" ; then
27390 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
27391 fi
27392fi
27393
27394if test "$wxUSE_LIBMSPACK" != "no"; then
27395 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
27396#define wxUSE_LIBMSPACK 1
27397_ACEOF
27398
a848cd7e
SC
27399fi
27400
27401
27402
27403AFMINSTALL=
27404WIN32INSTALL=
27405
27406TOOLKIT=
27407TOOLKIT_INCLUDE=
27408WIDGET_SET=
27409
27410if test "$USE_WIN32" = 1 ; then
27411
27412for ac_header in w32api.h
27413do
27414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
27415if eval "test \"\${$as_ac_Header+set}\" = set"; then
27416 echo "$as_me:$LINENO: checking for $ac_header" >&5
27417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27418if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
27419 echo $ECHO_N "(cached) $ECHO_C" >&6
27420fi
f321ab7f
VS
27421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
27423else
27424 # Is the header compilable?
f321ab7f
VS
27425echo "$as_me:$LINENO: checking $ac_header usability" >&5
27426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a848cd7e
SC
27427cat >conftest.$ac_ext <<_ACEOF
27428/* confdefs.h. */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h. */
27433$ac_includes_default
27434#include <$ac_header>
27435_ACEOF
27436rm -f conftest.$ac_objext
f321ab7f
VS
27437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27438 (eval $ac_compile) 2>conftest.er1
a848cd7e 27439 ac_status=$?
ac1cb8d3
VS
27440 grep -v '^ *+' conftest.er1 >conftest.err
27441 rm -f conftest.er1
27442 cat conftest.err >&5
a848cd7e
SC
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); } &&
f321ab7f
VS
27445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447 (eval $ac_try) 2>&5
ac1cb8d3
VS
27448 ac_status=$?
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; } &&
27451 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
27452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453 (eval $ac_try) 2>&5
a848cd7e
SC
27454 ac_status=$?
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; }; then
27457 ac_header_compiler=yes
27458else
27459 echo "$as_me: failed program was:" >&5
27460sed 's/^/| /' conftest.$ac_ext >&5
27461
f321ab7f 27462ac_header_compiler=no
a848cd7e 27463fi
f321ab7f
VS
27464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27466echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
27467
27468# Is the header present?
f321ab7f
VS
27469echo "$as_me:$LINENO: checking $ac_header presence" >&5
27470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a848cd7e
SC
27471cat >conftest.$ac_ext <<_ACEOF
27472/* confdefs.h. */
27473_ACEOF
27474cat confdefs.h >>conftest.$ac_ext
27475cat >>conftest.$ac_ext <<_ACEOF
27476/* end confdefs.h. */
27477#include <$ac_header>
27478_ACEOF
f321ab7f
VS
27479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
27481 ac_status=$?
27482 grep -v '^ *+' conftest.er1 >conftest.err
27483 rm -f conftest.er1
27484 cat conftest.err >&5
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); } >/dev/null; then
27487 if test -s conftest.err; then
fd5199d6
VZ
27488 ac_cpp_err=$ac_c_preproc_warn_flag
27489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27490 else
27491 ac_cpp_err=
27492 fi
27493else
27494 ac_cpp_err=yes
27495fi
27496if test -z "$ac_cpp_err"; then
27497 ac_header_preproc=yes
27498else
27499 echo "$as_me: failed program was:" >&5
27500sed 's/^/| /' conftest.$ac_ext >&5
27501
27502 ac_header_preproc=no
27503fi
f321ab7f
VS
27504rm -f conftest.err conftest.$ac_ext
27505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27506echo "${ECHO_T}$ac_header_preproc" >&6
27507
27508# So? What about this header?
27509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27510 yes:no: )
27511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27515 ac_header_preproc=yes
27516 ;;
27517 no:yes:* )
27518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27530 (
27531 cat <<\_ASBOX
27532## ----------------------------------------- ##
27533## Report this to wx-dev@lists.wxwidgets.org ##
27534## ----------------------------------------- ##
27535_ASBOX
27536 ) |
27537 sed "s/^/$as_me: WARNING: /" >&2
27538 ;;
27539esac
27540echo "$as_me:$LINENO: checking for $ac_header" >&5
27541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27542if eval "test \"\${$as_ac_Header+set}\" = set"; then
27543 echo $ECHO_N "(cached) $ECHO_C" >&6
27544else
27545 eval "$as_ac_Header=\$ac_header_preproc"
27546fi
27547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e 27549
f321ab7f
VS
27550fi
27551if test `eval echo '${'$as_ac_Header'}'` = yes; then
27552 cat >>confdefs.h <<_ACEOF
27553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27554_ACEOF
27555
27556fi
27557
27558done
27559
27560 if test "${ac_cv_header_windows_h+set}" = set; then
27561 echo "$as_me:$LINENO: checking for windows.h" >&5
27562echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27563if test "${ac_cv_header_windows_h+set}" = set; then
27564 echo $ECHO_N "(cached) $ECHO_C" >&6
27565fi
27566echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27567echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27568else
27569 # Is the header compilable?
27570echo "$as_me:$LINENO: checking windows.h usability" >&5
27571echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27572cat >conftest.$ac_ext <<_ACEOF
27573/* confdefs.h. */
27574_ACEOF
27575cat confdefs.h >>conftest.$ac_ext
27576cat >>conftest.$ac_ext <<_ACEOF
27577/* end confdefs.h. */
27578$ac_includes_default
27579#include <windows.h>
27580_ACEOF
27581rm -f conftest.$ac_objext
27582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27583 (eval $ac_compile) 2>conftest.er1
27584 ac_status=$?
27585 grep -v '^ *+' conftest.er1 >conftest.err
27586 rm -f conftest.er1
27587 cat conftest.err >&5
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); } &&
27590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592 (eval $ac_try) 2>&5
27593 ac_status=$?
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; } &&
27596 { ac_try='test -s conftest.$ac_objext'
27597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27598 (eval $ac_try) 2>&5
27599 ac_status=$?
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
27602 ac_header_compiler=yes
27603else
27604 echo "$as_me: failed program was:" >&5
27605sed 's/^/| /' conftest.$ac_ext >&5
27606
27607ac_header_compiler=no
27608fi
27609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27610echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27611echo "${ECHO_T}$ac_header_compiler" >&6
27612
27613# Is the header present?
27614echo "$as_me:$LINENO: checking windows.h presence" >&5
27615echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27616cat >conftest.$ac_ext <<_ACEOF
27617/* confdefs.h. */
27618_ACEOF
27619cat confdefs.h >>conftest.$ac_ext
27620cat >>conftest.$ac_ext <<_ACEOF
27621/* end confdefs.h. */
27622#include <windows.h>
27623_ACEOF
27624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27626 ac_status=$?
27627 grep -v '^ *+' conftest.er1 >conftest.err
27628 rm -f conftest.er1
27629 cat conftest.err >&5
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); } >/dev/null; then
27632 if test -s conftest.err; then
27633 ac_cpp_err=$ac_c_preproc_warn_flag
27634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27635 else
27636 ac_cpp_err=
27637 fi
27638else
27639 ac_cpp_err=yes
27640fi
27641if test -z "$ac_cpp_err"; then
27642 ac_header_preproc=yes
27643else
27644 echo "$as_me: failed program was:" >&5
27645sed 's/^/| /' conftest.$ac_ext >&5
27646
27647 ac_header_preproc=no
27648fi
a848cd7e 27649rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
27650echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27651echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
27652
27653# So? What about this header?
fd5199d6 27654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 27655 yes:no: )
a848cd7e
SC
27656 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27657echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27658 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27659echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27660 ac_header_preproc=yes
a848cd7e 27661 ;;
ac1cb8d3 27662 no:yes:* )
a848cd7e
SC
27663 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27664echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27665 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27666echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27667 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27668echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27669 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27670echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27671 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27672echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27673 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27674echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
27675 (
27676 cat <<\_ASBOX
ac1cb8d3
VS
27677## ----------------------------------------- ##
27678## Report this to wx-dev@lists.wxwidgets.org ##
27679## ----------------------------------------- ##
a848cd7e 27680_ASBOX
f321ab7f
VS
27681 ) |
27682 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
27683 ;;
27684esac
f321ab7f
VS
27685echo "$as_me:$LINENO: checking for windows.h" >&5
27686echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
a848cd7e
SC
27687if test "${ac_cv_header_windows_h+set}" = set; then
27688 echo $ECHO_N "(cached) $ECHO_C" >&6
27689else
27690 ac_cv_header_windows_h=$ac_header_preproc
27691fi
f321ab7f
VS
27692echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27693echo "${ECHO_T}$ac_cv_header_windows_h" >&6
a848cd7e
SC
27694
27695fi
27696if test $ac_cv_header_windows_h = yes; then
27697 :
27698else
27699
27700 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27701echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27702 { (exit 1); exit 1; }; }
27703
27704fi
27705
27706
27707
27708 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27709
27710 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27711 LIBS="$LIBS -loleacc"
27712 fi
27713
27714 case "${host}" in
27715 *-*-cygwin* )
27716 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27717 esac
27718
27719 if test "$wxUSE_ODBC" = "sys" ; then
27720 wxUSE_ODBC = "yes"
27721 fi
27722 if test "$wxUSE_ODBC" = "yes" ; then
27723 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27724 cat >>confdefs.h <<\_ACEOF
27725#define wxUSE_ODBC 1
27726_ACEOF
27727
27728 fi
27729
370d2fd7 27730 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27731 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27732
004ee6da 27733 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27734
a848cd7e 27735 WIN32INSTALL=win32install
5f41d1bf 27736
dcfd4ac4
MW
27737
27738for ac_header in pbt.h
27739do
27740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
27741if eval "test \"\${$as_ac_Header+set}\" = set"; then
27742 echo "$as_me:$LINENO: checking for $ac_header" >&5
27743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27744if eval "test \"\${$as_ac_Header+set}\" = set"; then
dcfd4ac4
MW
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27746fi
f321ab7f
VS
27747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
dcfd4ac4
MW
27749else
27750 # Is the header compilable?
f321ab7f
VS
27751echo "$as_me:$LINENO: checking $ac_header usability" >&5
27752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
dcfd4ac4
MW
27753cat >conftest.$ac_ext <<_ACEOF
27754/* confdefs.h. */
27755_ACEOF
27756cat confdefs.h >>conftest.$ac_ext
27757cat >>conftest.$ac_ext <<_ACEOF
27758/* end confdefs.h. */
27759$ac_includes_default
27760#include <$ac_header>
27761_ACEOF
27762rm -f conftest.$ac_objext
f321ab7f
VS
27763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27764 (eval $ac_compile) 2>conftest.er1
dcfd4ac4
MW
27765 ac_status=$?
27766 grep -v '^ *+' conftest.er1 >conftest.err
27767 rm -f conftest.er1
27768 cat conftest.err >&5
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); } &&
f321ab7f
VS
27771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27773 (eval $ac_try) 2>&5
dcfd4ac4
MW
27774 ac_status=$?
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; } &&
27777 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
27778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779 (eval $ac_try) 2>&5
dcfd4ac4
MW
27780 ac_status=$?
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; }; then
27783 ac_header_compiler=yes
27784else
27785 echo "$as_me: failed program was:" >&5
27786sed 's/^/| /' conftest.$ac_ext >&5
27787
f321ab7f 27788ac_header_compiler=no
dcfd4ac4 27789fi
f321ab7f
VS
27790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27791echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27792echo "${ECHO_T}$ac_header_compiler" >&6
dcfd4ac4
MW
27793
27794# Is the header present?
f321ab7f
VS
27795echo "$as_me:$LINENO: checking $ac_header presence" >&5
27796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
dcfd4ac4
MW
27797cat >conftest.$ac_ext <<_ACEOF
27798/* confdefs.h. */
27799_ACEOF
27800cat confdefs.h >>conftest.$ac_ext
27801cat >>conftest.$ac_ext <<_ACEOF
27802/* end confdefs.h. */
27803#include <$ac_header>
27804_ACEOF
f321ab7f
VS
27805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
dcfd4ac4
MW
27807 ac_status=$?
27808 grep -v '^ *+' conftest.er1 >conftest.err
27809 rm -f conftest.er1
27810 cat conftest.err >&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); } >/dev/null; then
27813 if test -s conftest.err; then
fd5199d6
VZ
27814 ac_cpp_err=$ac_c_preproc_warn_flag
27815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
dcfd4ac4
MW
27816 else
27817 ac_cpp_err=
27818 fi
27819else
27820 ac_cpp_err=yes
27821fi
27822if test -z "$ac_cpp_err"; then
27823 ac_header_preproc=yes
27824else
27825 echo "$as_me: failed program was:" >&5
27826sed 's/^/| /' conftest.$ac_ext >&5
27827
27828 ac_header_preproc=no
27829fi
27830rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
27831echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27832echo "${ECHO_T}$ac_header_preproc" >&6
dcfd4ac4
MW
27833
27834# So? What about this header?
fd5199d6 27835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
dcfd4ac4
MW
27836 yes:no: )
27837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27840echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27841 ac_header_preproc=yes
27842 ;;
27843 no:yes:* )
27844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27849echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27851echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
27856 (
27857 cat <<\_ASBOX
dcfd4ac4
MW
27858## ----------------------------------------- ##
27859## Report this to wx-dev@lists.wxwidgets.org ##
27860## ----------------------------------------- ##
27861_ASBOX
f321ab7f
VS
27862 ) |
27863 sed "s/^/$as_me: WARNING: /" >&2
dcfd4ac4
MW
27864 ;;
27865esac
f321ab7f
VS
27866echo "$as_me:$LINENO: checking for $ac_header" >&5
27867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27868if eval "test \"\${$as_ac_Header+set}\" = set"; then
dcfd4ac4
MW
27869 echo $ECHO_N "(cached) $ECHO_C" >&6
27870else
27871 eval "$as_ac_Header=\$ac_header_preproc"
27872fi
f321ab7f
VS
27873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
dcfd4ac4
MW
27875
27876fi
27877if test `eval echo '${'$as_ac_Header'}'` = yes; then
27878 cat >>confdefs.h <<_ACEOF
27879#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27880_ACEOF
27881
27882else
27883 cat >>confdefs.h <<\_ACEOF
27884#define NEED_PBT_H 1
27885_ACEOF
27886
27887fi
27888
27889done
27890
a848cd7e
SC
27891fi
27892
27893if test "$wxUSE_GUI" = "yes"; then
27894 USE_GUI=1
27895
27896 GUI_TK_LIBRARY=
27897
27898 WXGTK12=
27899 WXGTK127=
27900 WXGTK20=
27901 WXGPE=
27902
207bc66c
RN
27903 if test "$wxUSE_COCOA" = 1 ; then
27904 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27905 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27906echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27907 wxUSE_PRINTING_ARCHITECTURE=no
27908 fi
27909 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27910 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27911echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27912 wxUSE_DRAG_AND_DROP=no
27913 fi
27914 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27915 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27916echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27917 wxUSE_DRAGIMAGE=no
27918 fi
27919 fi
27920
a848cd7e
SC
27921 if test "$wxUSE_MSW" = 1 ; then
27922 TOOLKIT=MSW
27923 GUIDIST=MSW_DIST
27924
ceec2216 27925 case "${host}" in
a848cd7e
SC
27926 *-*-mingw32* )
27927 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27928 esac
27929 fi
27930
27931 if test "$wxUSE_GTK" = 1; then
f321ab7f
VS
27932 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27933echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
a848cd7e
SC
27934
27935 gtk_version_cached=1
27936 if test "${wx_cv_lib_gtk+set}" = set; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27938else
27939
27940 gtk_version_cached=0
f321ab7f
VS
27941 echo "$as_me:$LINENO: result: " >&5
27942echo "${ECHO_T}" >&6
a848cd7e
SC
27943
27944 GTK_MODULES=
27945 if test "$wxUSE_THREADS" = "yes"; then
27946 GTK_MODULES=gthread
27947 fi
27948
f597b41c 27949 wx_cv_lib_gtk=
5001df0d
MW
27950 if test "x$wxGTK_VERSION" != "x1"
27951 then
27952 case "${host}" in
27953 *-*-solaris2* )
27954 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27955 enable_gtktest=no
5001df0d
MW
27956 fi
27957 esac
27958
f321ab7f 27959 # Check whether --enable-gtktest or --disable-gtktest was given.
a848cd7e 27960if test "${enable_gtktest+set}" = set; then
f321ab7f
VS
27961 enableval="$enable_gtktest"
27962
a848cd7e
SC
27963else
27964 enable_gtktest=yes
f321ab7f 27965fi;
a848cd7e
SC
27966
27967 pkg_config_args=gtk+-2.0
27968 for module in . $GTK_MODULES
27969 do
27970 case "$module" in
27971 gthread)
27972 pkg_config_args="$pkg_config_args gthread-2.0"
27973 ;;
27974 esac
27975 done
27976
27977 no_gtk=""
27978
27979 # Extract the first word of "pkg-config", so it can be a program name with args.
27980set dummy pkg-config; ac_word=$2
f321ab7f
VS
27981echo "$as_me:$LINENO: checking for $ac_word" >&5
27982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
27983if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27984 echo $ECHO_N "(cached) $ECHO_C" >&6
27985else
27986 case $PKG_CONFIG in
27987 [\\/]* | ?:[\\/]*)
27988 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27989 ;;
27990 *)
27991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27992for as_dir in $PATH
27993do
27994 IFS=$as_save_IFS
27995 test -z "$as_dir" && as_dir=.
27996 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 27997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
27998 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28000 break 2
28001 fi
28002done
28003done
28004
28005 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28006 ;;
28007esac
28008fi
28009PKG_CONFIG=$ac_cv_path_PKG_CONFIG
f321ab7f 28010
a848cd7e 28011if test -n "$PKG_CONFIG"; then
f321ab7f
VS
28012 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28013echo "${ECHO_T}$PKG_CONFIG" >&6
a848cd7e 28014else
f321ab7f
VS
28015 echo "$as_me:$LINENO: result: no" >&5
28016echo "${ECHO_T}no" >&6
a848cd7e
SC
28017fi
28018
28019
28020 if test x$PKG_CONFIG != xno ; then
28021 if pkg-config --atleast-pkgconfig-version 0.7 ; then
28022 :
28023 else
c2218763 28024 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
28025 no_gtk=yes
28026 PKG_CONFIG=no
28027 fi
28028 else
28029 no_gtk=yes
28030 fi
28031
28032 min_gtk_version=2.0.0
f321ab7f
VS
28033 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28034echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
a848cd7e
SC
28035
28036 if test x$PKG_CONFIG != xno ; then
28037 ## don't try to run the test against uninstalled libtool libs
28038 if $PKG_CONFIG --uninstalled $pkg_config_args; then
28039 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28040 enable_gtktest=no
28041 fi
28042
28043 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28044 :
28045 else
28046 no_gtk=yes
28047 fi
28048 fi
28049
28050 if test x"$no_gtk" = x ; then
28051 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28052 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28053 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28054 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28055 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28056 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28057 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28058 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28059 if test "x$enable_gtktest" = "xyes" ; then
28060 ac_save_CFLAGS="$CFLAGS"
28061 ac_save_LIBS="$LIBS"
28062 CFLAGS="$CFLAGS $GTK_CFLAGS"
28063 LIBS="$GTK_LIBS $LIBS"
28064 rm -f conf.gtktest
28065 if test "$cross_compiling" = yes; then
28066 echo $ac_n "cross compiling; assumed OK... $ac_c"
28067else
28068 cat >conftest.$ac_ext <<_ACEOF
28069/* confdefs.h. */
28070_ACEOF
28071cat confdefs.h >>conftest.$ac_ext
28072cat >>conftest.$ac_ext <<_ACEOF
28073/* end confdefs.h. */
28074
28075#include <gtk/gtk.h>
28076#include <stdio.h>
28077#include <stdlib.h>
28078
28079int
28080main ()
28081{
28082 int major, minor, micro;
28083 char *tmp_version;
28084
28085 system ("touch conf.gtktest");
28086
28087 /* HP/UX 9 (%@#!) writes to sscanf strings */
28088 tmp_version = g_strdup("$min_gtk_version");
28089 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28090 printf("%s, bad version string\n", "$min_gtk_version");
28091 exit(1);
28092 }
28093
28094 if ((gtk_major_version != $gtk_config_major_version) ||
28095 (gtk_minor_version != $gtk_config_minor_version) ||
28096 (gtk_micro_version != $gtk_config_micro_version))
28097 {
28098 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28099 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28100 gtk_major_version, gtk_minor_version, gtk_micro_version);
28101 printf ("*** was found! If pkg-config was correct, then it is best\n");
28102 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28103 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28104 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28105 printf("*** required on your system.\n");
28106 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28107 printf("*** to point to the correct configuration files\n");
28108 }
28109 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28110 (gtk_minor_version != GTK_MINOR_VERSION) ||
28111 (gtk_micro_version != GTK_MICRO_VERSION))
28112 {
28113 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28114 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28115 printf("*** library (version %d.%d.%d)\n",
28116 gtk_major_version, gtk_minor_version, gtk_micro_version);
28117 }
28118 else
28119 {
28120 if ((gtk_major_version > major) ||
28121 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28122 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28123 {
28124 return 0;
28125 }
28126 else
28127 {
28128 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28129 gtk_major_version, gtk_minor_version, gtk_micro_version);
28130 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28131 major, minor, micro);
28132 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28133 printf("***\n");
28134 printf("*** If you have already installed a sufficiently new version, this error\n");
28135 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28136 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28137 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28138 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28139 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28140 printf("*** so that the correct libraries are found at run-time))\n");
28141 }
28142 }
28143 return 1;
28144}
28145
28146_ACEOF
28147rm -f conftest$ac_exeext
f321ab7f
VS
28148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28149 (eval $ac_link) 2>&5
a848cd7e
SC
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
28153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28154 (eval $ac_try) 2>&5
a848cd7e
SC
28155 ac_status=$?
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); }; }; then
28158 :
28159else
28160 echo "$as_me: program exited with status $ac_status" >&5
28161echo "$as_me: failed program was:" >&5
28162sed 's/^/| /' conftest.$ac_ext >&5
28163
28164( exit $ac_status )
28165no_gtk=yes
28166fi
f321ab7f 28167rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28168fi
28169 CFLAGS="$ac_save_CFLAGS"
28170 LIBS="$ac_save_LIBS"
28171 fi
28172 fi
28173 if test "x$no_gtk" = x ; then
f321ab7f
VS
28174 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28175echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
a848cd7e
SC
28176 wx_cv_lib_gtk=2.0
28177 else
f321ab7f
VS
28178 echo "$as_me:$LINENO: result: no" >&5
28179echo "${ECHO_T}no" >&6
a848cd7e
SC
28180 if test "$PKG_CONFIG" = "no" ; then
28181 echo "*** A new enough version of pkg-config was not found."
28182 echo "*** See http://pkgconfig.sourceforge.net"
28183 else
28184 if test -f conf.gtktest ; then
28185 :
28186 else
28187 echo "*** Could not run GTK+ test program, checking why..."
28188 ac_save_CFLAGS="$CFLAGS"
28189 ac_save_LIBS="$LIBS"
28190 CFLAGS="$CFLAGS $GTK_CFLAGS"
28191 LIBS="$LIBS $GTK_LIBS"
28192 cat >conftest.$ac_ext <<_ACEOF
28193/* confdefs.h. */
28194_ACEOF
28195cat confdefs.h >>conftest.$ac_ext
28196cat >>conftest.$ac_ext <<_ACEOF
28197/* end confdefs.h. */
28198
28199#include <gtk/gtk.h>
28200#include <stdio.h>
28201
28202int
28203main ()
28204{
28205 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28206 ;
28207 return 0;
28208}
28209_ACEOF
28210rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
28211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28212 (eval $ac_link) 2>conftest.er1
a848cd7e 28213 ac_status=$?
ac1cb8d3
VS
28214 grep -v '^ *+' conftest.er1 >conftest.err
28215 rm -f conftest.er1
28216 cat conftest.err >&5
a848cd7e
SC
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); } &&
f321ab7f
VS
28219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28221 (eval $ac_try) 2>&5
ac1cb8d3
VS
28222 ac_status=$?
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); }; } &&
28225 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
28226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28227 (eval $ac_try) 2>&5
a848cd7e
SC
28228 ac_status=$?
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); }; }; then
28231 echo "*** The test program compiled, but did not run. This usually means"
28232 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28233 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28234 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28235 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28236 echo "*** is required on your system"
28237 echo "***"
28238 echo "*** If you have an old version installed, it is best to remove it, although"
28239 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28240else
28241 echo "$as_me: failed program was:" >&5
28242sed 's/^/| /' conftest.$ac_ext >&5
28243
f321ab7f 28244 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
28245 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28246fi
f321ab7f 28247rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 28248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28249 CFLAGS="$ac_save_CFLAGS"
28250 LIBS="$ac_save_LIBS"
28251 fi
28252 fi
28253 GTK_CFLAGS=""
28254 GTK_LIBS=""
28255 :
28256 fi
28257
28258
28259 rm -f conf.gtktest
28260
5001df0d
MW
28261
28262 case "${host}" in
28263 *-*-solaris2* )
28264 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28265 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
28266 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
28267 fi
28268 if test "$wxUSE_SHARED" != "yes"; then
28269 GTK_LIBS="$GTK_LIBS -lX11"
28270 fi
28271 esac
f597b41c
MW
28272 fi
28273
f34ca037
MW
28274 if test -z "$wx_cv_lib_gtk"; then
28275 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e 28276
f321ab7f 28277# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
a848cd7e 28278if test "${with_gtk_prefix+set}" = set; then
f321ab7f
VS
28279 withval="$with_gtk_prefix"
28280 gtk_config_prefix="$withval"
a848cd7e
SC
28281else
28282 gtk_config_prefix=""
f321ab7f 28283fi;
a848cd7e 28284
f321ab7f 28285# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
a848cd7e 28286if test "${with_gtk_exec_prefix+set}" = set; then
f321ab7f
VS
28287 withval="$with_gtk_exec_prefix"
28288 gtk_config_exec_prefix="$withval"
a848cd7e
SC
28289else
28290 gtk_config_exec_prefix=""
f321ab7f
VS
28291fi;
28292# Check whether --enable-gtktest or --disable-gtktest was given.
3f7f284d 28293if test "${enable_gtktest+set}" = set; then
f321ab7f
VS
28294 enableval="$enable_gtktest"
28295
a848cd7e
SC
28296else
28297 enable_gtktest=yes
f321ab7f 28298fi;
a848cd7e
SC
28299
28300 for module in . $GTK_MODULES
28301 do
28302 case "$module" in
28303 gthread)
28304 gtk_config_args="$gtk_config_args gthread"
28305 ;;
28306 esac
28307 done
28308
28309 if test x$gtk_config_exec_prefix != x ; then
28310 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28311 if test x${GTK_CONFIG+set} != xset ; then
28312 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28313 fi
28314 fi
28315 if test x$gtk_config_prefix != x ; then
28316 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28317 if test x${GTK_CONFIG+set} != xset ; then
28318 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28319 fi
28320 fi
28321
28322 # Extract the first word of "gtk-config", so it can be a program name with args.
28323set dummy gtk-config; ac_word=$2
f321ab7f
VS
28324echo "$as_me:$LINENO: checking for $ac_word" >&5
28325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
28326if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28327 echo $ECHO_N "(cached) $ECHO_C" >&6
28328else
28329 case $GTK_CONFIG in
28330 [\\/]* | ?:[\\/]*)
28331 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28332 ;;
28333 *)
28334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28335for as_dir in $PATH
28336do
28337 IFS=$as_save_IFS
28338 test -z "$as_dir" && as_dir=.
28339 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 28340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
28341 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28343 break 2
28344 fi
28345done
28346done
28347
28348 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28349 ;;
28350esac
28351fi
28352GTK_CONFIG=$ac_cv_path_GTK_CONFIG
f321ab7f 28353
a848cd7e 28354if test -n "$GTK_CONFIG"; then
f321ab7f
VS
28355 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28356echo "${ECHO_T}$GTK_CONFIG" >&6
a848cd7e 28357else
f321ab7f
VS
28358 echo "$as_me:$LINENO: result: no" >&5
28359echo "${ECHO_T}no" >&6
a848cd7e
SC
28360fi
28361
28362 min_gtk_version=1.2.7
f321ab7f
VS
28363 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28364echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
a848cd7e
SC
28365 no_gtk=""
28366 if test "$GTK_CONFIG" = "no" ; then
28367 no_gtk=yes
28368 else
28369 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28370 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28371 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28372 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28373 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28374 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28375 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28376 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28377 if test "x$enable_gtktest" = "xyes" ; then
28378 ac_save_CFLAGS="$CFLAGS"
28379 ac_save_LIBS="$LIBS"
28380 CFLAGS="$CFLAGS $GTK_CFLAGS"
28381 LIBS="$GTK_LIBS $LIBS"
28382 rm -f conf.gtktest
28383 if test "$cross_compiling" = yes; then
28384 echo $ac_n "cross compiling; assumed OK... $ac_c"
28385else
28386 cat >conftest.$ac_ext <<_ACEOF
28387/* confdefs.h. */
28388_ACEOF
28389cat confdefs.h >>conftest.$ac_ext
28390cat >>conftest.$ac_ext <<_ACEOF
28391/* end confdefs.h. */
28392
28393#include <gtk/gtk.h>
28394#include <stdio.h>
28395#include <stdlib.h>
28396
28397int
28398main ()
28399{
28400 int major, minor, micro;
28401 char *tmp_version;
28402
28403 system ("touch conf.gtktest");
28404
28405 /* HP/UX 9 (%@#!) writes to sscanf strings */
28406 tmp_version = g_strdup("$min_gtk_version");
28407 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28408 printf("%s, bad version string\n", "$min_gtk_version");
28409 exit(1);
28410 }
28411
28412 if ((gtk_major_version != $gtk_config_major_version) ||
28413 (gtk_minor_version != $gtk_config_minor_version) ||
28414 (gtk_micro_version != $gtk_config_micro_version))
28415 {
28416 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28417 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28418 gtk_major_version, gtk_minor_version, gtk_micro_version);
28419 printf ("*** was found! If gtk-config was correct, then it is best\n");
28420 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28421 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28422 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28423 printf("*** required on your system.\n");
28424 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28425 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28426 printf("*** before re-running configure\n");
28427 }
28428#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28429 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28430 (gtk_minor_version != GTK_MINOR_VERSION) ||
28431 (gtk_micro_version != GTK_MICRO_VERSION))
28432 {
28433 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28434 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28435 printf("*** library (version %d.%d.%d)\n",
28436 gtk_major_version, gtk_minor_version, gtk_micro_version);
28437 }
28438#endif /* defined (GTK_MAJOR_VERSION) ... */
28439 else
28440 {
28441 if ((gtk_major_version > major) ||
28442 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28443 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28444 {
28445 return 0;
28446 }
28447 else
28448 {
28449 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28450 gtk_major_version, gtk_minor_version, gtk_micro_version);
28451 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28452 major, minor, micro);
28453 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28454 printf("***\n");
28455 printf("*** If you have already installed a sufficiently new version, this error\n");
28456 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28457 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28458 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28459 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28460 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28461 printf("*** so that the correct libraries are found at run-time))\n");
28462 }
28463 }
28464 return 1;
28465}
28466
28467_ACEOF
28468rm -f conftest$ac_exeext
f321ab7f
VS
28469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28470 (eval $ac_link) 2>&5
a848cd7e
SC
28471 ac_status=$?
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
28474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28475 (eval $ac_try) 2>&5
a848cd7e
SC
28476 ac_status=$?
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); }; }; then
28479 :
28480else
28481 echo "$as_me: program exited with status $ac_status" >&5
28482echo "$as_me: failed program was:" >&5
28483sed 's/^/| /' conftest.$ac_ext >&5
28484
28485( exit $ac_status )
28486no_gtk=yes
28487fi
f321ab7f 28488rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28489fi
28490 CFLAGS="$ac_save_CFLAGS"
28491 LIBS="$ac_save_LIBS"
28492 fi
28493 fi
28494 if test "x$no_gtk" = x ; then
f321ab7f
VS
28495 echo "$as_me:$LINENO: result: yes" >&5
28496echo "${ECHO_T}yes" >&6
a848cd7e
SC
28497 wx_cv_lib_gtk=1.2.7
28498 else
f321ab7f
VS
28499 echo "$as_me:$LINENO: result: no" >&5
28500echo "${ECHO_T}no" >&6
a848cd7e
SC
28501 if test "$GTK_CONFIG" = "no" ; then
28502 echo "*** The gtk-config script installed by GTK could not be found"
28503 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28504 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28505 echo "*** full path to gtk-config."
28506 else
28507 if test -f conf.gtktest ; then
28508 :
28509 else
28510 echo "*** Could not run GTK test program, checking why..."
28511 CFLAGS="$CFLAGS $GTK_CFLAGS"
28512 LIBS="$LIBS $GTK_LIBS"
28513 cat >conftest.$ac_ext <<_ACEOF
28514/* confdefs.h. */
28515_ACEOF
28516cat confdefs.h >>conftest.$ac_ext
28517cat >>conftest.$ac_ext <<_ACEOF
28518/* end confdefs.h. */
28519
28520#include <gtk/gtk.h>
28521#include <stdio.h>
28522
28523int
28524main ()
28525{
28526 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28527 ;
28528 return 0;
28529}
28530_ACEOF
28531rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
28532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28533 (eval $ac_link) 2>conftest.er1
a848cd7e 28534 ac_status=$?
ac1cb8d3
VS
28535 grep -v '^ *+' conftest.er1 >conftest.err
28536 rm -f conftest.er1
28537 cat conftest.err >&5
a848cd7e
SC
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); } &&
f321ab7f
VS
28540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28542 (eval $ac_try) 2>&5
ac1cb8d3
VS
28543 ac_status=$?
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); }; } &&
28546 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
28547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28548 (eval $ac_try) 2>&5
a848cd7e
SC
28549 ac_status=$?
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); }; }; then
28552 echo "*** The test program compiled, but did not run. This usually means"
28553 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28554 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28555 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28556 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28557 echo "*** is required on your system"
28558 echo "***"
28559 echo "*** If you have an old version installed, it is best to remove it, although"
28560 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28561 echo "***"
28562 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28563 echo "*** came with the system with the command"
28564 echo "***"
28565 echo "*** rpm --erase --nodeps gtk gtk-devel"
28566else
28567 echo "$as_me: failed program was:" >&5
28568sed 's/^/| /' conftest.$ac_ext >&5
28569
f321ab7f 28570 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
28571 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28572 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28573 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28574fi
f321ab7f 28575rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 28576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28577 CFLAGS="$ac_save_CFLAGS"
28578 LIBS="$ac_save_LIBS"
28579 fi
28580 fi
28581 GTK_CFLAGS=""
28582 GTK_LIBS=""
28583 :
28584 fi
28585
28586
28587 rm -f conf.gtktest
28588
28589
f34ca037 28590 if test -z "$wx_cv_lib_gtk"; then
a848cd7e 28591
f321ab7f 28592# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
a848cd7e 28593if test "${with_gtk_prefix+set}" = set; then
f321ab7f
VS
28594 withval="$with_gtk_prefix"
28595 gtk_config_prefix="$withval"
a848cd7e
SC
28596else
28597 gtk_config_prefix=""
f321ab7f 28598fi;
a848cd7e 28599
f321ab7f 28600# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
a848cd7e 28601if test "${with_gtk_exec_prefix+set}" = set; then
f321ab7f
VS
28602 withval="$with_gtk_exec_prefix"
28603 gtk_config_exec_prefix="$withval"
a848cd7e
SC
28604else
28605 gtk_config_exec_prefix=""
f321ab7f
VS
28606fi;
28607# Check whether --enable-gtktest or --disable-gtktest was given.
3f7f284d 28608if test "${enable_gtktest+set}" = set; then
f321ab7f
VS
28609 enableval="$enable_gtktest"
28610
a848cd7e
SC
28611else
28612 enable_gtktest=yes
f321ab7f 28613fi;
a848cd7e
SC
28614
28615 for module in . $GTK_MODULES
28616 do
28617 case "$module" in
28618 gthread)
28619 gtk_config_args="$gtk_config_args gthread"
28620 ;;
28621 esac
28622 done
28623
28624 if test x$gtk_config_exec_prefix != x ; then
28625 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28626 if test x${GTK_CONFIG+set} != xset ; then
28627 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28628 fi
28629 fi
28630 if test x$gtk_config_prefix != x ; then
28631 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28632 if test x${GTK_CONFIG+set} != xset ; then
28633 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28634 fi
28635 fi
28636
28637 # Extract the first word of "gtk-config", so it can be a program name with args.
28638set dummy gtk-config; ac_word=$2
f321ab7f
VS
28639echo "$as_me:$LINENO: checking for $ac_word" >&5
28640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
28641if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28642 echo $ECHO_N "(cached) $ECHO_C" >&6
28643else
28644 case $GTK_CONFIG in
28645 [\\/]* | ?:[\\/]*)
28646 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28647 ;;
28648 *)
28649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28650for as_dir in $PATH
28651do
28652 IFS=$as_save_IFS
28653 test -z "$as_dir" && as_dir=.
28654 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 28655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
28656 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28658 break 2
28659 fi
28660done
28661done
28662
28663 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28664 ;;
28665esac
28666fi
28667GTK_CONFIG=$ac_cv_path_GTK_CONFIG
f321ab7f 28668
a848cd7e 28669if test -n "$GTK_CONFIG"; then
f321ab7f
VS
28670 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28671echo "${ECHO_T}$GTK_CONFIG" >&6
a848cd7e 28672else
f321ab7f
VS
28673 echo "$as_me:$LINENO: result: no" >&5
28674echo "${ECHO_T}no" >&6
a848cd7e
SC
28675fi
28676
28677 min_gtk_version=1.2.3
f321ab7f
VS
28678 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28679echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
a848cd7e
SC
28680 no_gtk=""
28681 if test "$GTK_CONFIG" = "no" ; then
28682 no_gtk=yes
28683 else
28684 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28685 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28686 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28687 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28688 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28689 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28690 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28691 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28692 if test "x$enable_gtktest" = "xyes" ; then
28693 ac_save_CFLAGS="$CFLAGS"
28694 ac_save_LIBS="$LIBS"
28695 CFLAGS="$CFLAGS $GTK_CFLAGS"
28696 LIBS="$GTK_LIBS $LIBS"
28697 rm -f conf.gtktest
28698 if test "$cross_compiling" = yes; then
28699 echo $ac_n "cross compiling; assumed OK... $ac_c"
28700else
28701 cat >conftest.$ac_ext <<_ACEOF
28702/* confdefs.h. */
28703_ACEOF
28704cat confdefs.h >>conftest.$ac_ext
28705cat >>conftest.$ac_ext <<_ACEOF
28706/* end confdefs.h. */
28707
28708#include <gtk/gtk.h>
28709#include <stdio.h>
28710#include <stdlib.h>
28711
28712int
28713main ()
28714{
28715 int major, minor, micro;
28716 char *tmp_version;
28717
28718 system ("touch conf.gtktest");
28719
28720 /* HP/UX 9 (%@#!) writes to sscanf strings */
28721 tmp_version = g_strdup("$min_gtk_version");
28722 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28723 printf("%s, bad version string\n", "$min_gtk_version");
28724 exit(1);
28725 }
28726
28727 if ((gtk_major_version != $gtk_config_major_version) ||
28728 (gtk_minor_version != $gtk_config_minor_version) ||
28729 (gtk_micro_version != $gtk_config_micro_version))
28730 {
28731 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28732 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28733 gtk_major_version, gtk_minor_version, gtk_micro_version);
28734 printf ("*** was found! If gtk-config was correct, then it is best\n");
28735 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28736 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28737 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28738 printf("*** required on your system.\n");
28739 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28740 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28741 printf("*** before re-running configure\n");
28742 }
28743#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28744 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28745 (gtk_minor_version != GTK_MINOR_VERSION) ||
28746 (gtk_micro_version != GTK_MICRO_VERSION))
28747 {
28748 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28749 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28750 printf("*** library (version %d.%d.%d)\n",
28751 gtk_major_version, gtk_minor_version, gtk_micro_version);
28752 }
28753#endif /* defined (GTK_MAJOR_VERSION) ... */
28754 else
28755 {
28756 if ((gtk_major_version > major) ||
28757 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28758 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28759 {
28760 return 0;
28761 }
28762 else
28763 {
28764 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28765 gtk_major_version, gtk_minor_version, gtk_micro_version);
28766 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28767 major, minor, micro);
28768 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28769 printf("***\n");
28770 printf("*** If you have already installed a sufficiently new version, this error\n");
28771 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28772 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28773 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28774 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28775 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28776 printf("*** so that the correct libraries are found at run-time))\n");
28777 }
28778 }
28779 return 1;
28780}
28781
28782_ACEOF
28783rm -f conftest$ac_exeext
f321ab7f
VS
28784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28785 (eval $ac_link) 2>&5
a848cd7e
SC
28786 ac_status=$?
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
28789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790 (eval $ac_try) 2>&5
a848cd7e
SC
28791 ac_status=$?
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
28794 :
28795else
28796 echo "$as_me: program exited with status $ac_status" >&5
28797echo "$as_me: failed program was:" >&5
28798sed 's/^/| /' conftest.$ac_ext >&5
28799
28800( exit $ac_status )
28801no_gtk=yes
28802fi
f321ab7f 28803rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28804fi
28805 CFLAGS="$ac_save_CFLAGS"
28806 LIBS="$ac_save_LIBS"
28807 fi
28808 fi
28809 if test "x$no_gtk" = x ; then
f321ab7f
VS
28810 echo "$as_me:$LINENO: result: yes" >&5
28811echo "${ECHO_T}yes" >&6
a848cd7e
SC
28812 wx_cv_lib_gtk=1.2.3
28813 else
f321ab7f
VS
28814 echo "$as_me:$LINENO: result: no" >&5
28815echo "${ECHO_T}no" >&6
a848cd7e
SC
28816 if test "$GTK_CONFIG" = "no" ; then
28817 echo "*** The gtk-config script installed by GTK could not be found"
28818 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28819 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28820 echo "*** full path to gtk-config."
28821 else
28822 if test -f conf.gtktest ; then
28823 :
28824 else
28825 echo "*** Could not run GTK test program, checking why..."
28826 CFLAGS="$CFLAGS $GTK_CFLAGS"
28827 LIBS="$LIBS $GTK_LIBS"
28828 cat >conftest.$ac_ext <<_ACEOF
28829/* confdefs.h. */
28830_ACEOF
28831cat confdefs.h >>conftest.$ac_ext
28832cat >>conftest.$ac_ext <<_ACEOF
28833/* end confdefs.h. */
28834
28835#include <gtk/gtk.h>
28836#include <stdio.h>
28837
28838int
28839main ()
28840{
28841 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28842 ;
28843 return 0;
28844}
28845_ACEOF
28846rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
28847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28848 (eval $ac_link) 2>conftest.er1
a848cd7e 28849 ac_status=$?
ac1cb8d3
VS
28850 grep -v '^ *+' conftest.er1 >conftest.err
28851 rm -f conftest.er1
28852 cat conftest.err >&5
a848cd7e
SC
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } &&
f321ab7f
VS
28855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857 (eval $ac_try) 2>&5
ac1cb8d3
VS
28858 ac_status=$?
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); }; } &&
28861 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
28862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
a848cd7e
SC
28864 ac_status=$?
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; }; then
28867 echo "*** The test program compiled, but did not run. This usually means"
28868 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28869 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28870 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28871 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28872 echo "*** is required on your system"
28873 echo "***"
28874 echo "*** If you have an old version installed, it is best to remove it, although"
28875 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28876 echo "***"
28877 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28878 echo "*** came with the system with the command"
28879 echo "***"
28880 echo "*** rpm --erase --nodeps gtk gtk-devel"
28881else
28882 echo "$as_me: failed program was:" >&5
28883sed 's/^/| /' conftest.$ac_ext >&5
28884
f321ab7f 28885 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
28886 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28887 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28888 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28889fi
f321ab7f 28890rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 28891 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28892 CFLAGS="$ac_save_CFLAGS"
28893 LIBS="$ac_save_LIBS"
28894 fi
28895 fi
28896 GTK_CFLAGS=""
28897 GTK_LIBS=""
28898 :
28899 fi
28900
28901
28902 rm -f conf.gtktest
28903
f34ca037 28904 fi
a848cd7e
SC
28905 fi
28906 fi
28907
28908 if test -z "$wx_cv_lib_gtk"; then
28909 wx_cv_lib_gtk=none
28910 else
28911 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28912 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28913 fi
28914
28915
28916fi
28917
28918
28919 if test "$gtk_version_cached" = 1; then
f321ab7f
VS
28920 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28921echo "${ECHO_T}$wx_cv_lib_gtk" >&6
a848cd7e
SC
28922 fi
28923
28924 case "$wx_cv_lib_gtk" in
28925 2.0) WXGTK20=1
28926 TOOLKIT_VERSION=2
28927 ;;
28928 1.2.7) WXGTK127=1
28929 WXGTK12=1
28930 ;;
28931 1.2.3) WXGTK12=1
28932 ;;
28933 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28934The development files for GTK+ were not found. For GTK+ 2, please
28935ensure that pkg-config is in the path and that gtk+-2.0.pc is
28936installed. For GTK+ 1.2 please check that gtk-config is in the path,
28937and that the version is 1.2.3 or above. Also check that the
28938libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28939--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28940 " >&5
28941echo "$as_me: error:
f597b41c
MW
28942The development files for GTK+ were not found. For GTK+ 2, please
28943ensure that pkg-config is in the path and that gtk+-2.0.pc is
28944installed. For GTK+ 1.2 please check that gtk-config is in the path,
28945and that the version is 1.2.3 or above. Also check that the
28946libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28947--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28948 " >&2;}
28949 { (exit 1); exit 1; }; }
28950 ;;
28951 esac
28952
28953 if test "$WXGTK20" = 1; then
6954625c 28954 save_CFLAGS="$CFLAGS"
304205f1 28955 save_LIBS="$LIBS"
6954625c 28956 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28957 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28958
f321ab7f
VS
28959 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28960echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
58e65954
MW
28961if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28962 echo $ECHO_N "(cached) $ECHO_C" >&6
28963else
28964 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28965/* confdefs.h. */
28966_ACEOF
28967cat confdefs.h >>conftest.$ac_ext
28968cat >>conftest.$ac_ext <<_ACEOF
28969/* end confdefs.h. */
58e65954 28970#include <gtk/gtk.h>
304205f1 28971
d12aef51
VZ
28972int
28973main ()
28974{
58e65954
MW
28975#ifndef gtk_icon_size_lookup
28976 char *p = (char *) gtk_icon_size_lookup;
28977#endif
abc736fd
MW
28978
28979 ;
28980 return 0;
28981}
28982_ACEOF
28983rm -f conftest.$ac_objext
f321ab7f
VS
28984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28985 (eval $ac_compile) 2>conftest.er1
abc736fd
MW
28986 ac_status=$?
28987 grep -v '^ *+' conftest.er1 >conftest.err
28988 rm -f conftest.er1
28989 cat conftest.err >&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } &&
f321ab7f
VS
28992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994 (eval $ac_try) 2>&5
abc736fd
MW
28995 ac_status=$?
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); }; } &&
28998 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
28999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000 (eval $ac_try) 2>&5
abc736fd
MW
29001 ac_status=$?
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); }; }; then
58e65954 29004 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
29005else
29006 echo "$as_me: failed program was:" >&5
29007sed 's/^/| /' conftest.$ac_ext >&5
29008
f321ab7f 29009ac_cv_have_decl_gtk_icon_size_lookup=no
58e65954 29010fi
f321ab7f 29011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58e65954 29012fi
f321ab7f
VS
29013echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
29014echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
58e65954 29015if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 29016
58e65954
MW
29017cat >>confdefs.h <<_ACEOF
29018#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
29019_ACEOF
29020
58e65954
MW
29021
29022else
29023 cat >>confdefs.h <<_ACEOF
29024#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
29025_ACEOF
29026
29027cat >>confdefs.h <<\_ACEOF
29028#define NEED_GTK_ICON_SIZE_LOOKUP 1
29029_ACEOF
abc736fd
MW
29030
29031fi
58e65954
MW
29032
29033
abc736fd 29034
f321ab7f
VS
29035 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29036echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
e9263684
VZ
29037 cat >conftest.$ac_ext <<_ACEOF
29038/* confdefs.h. */
29039_ACEOF
29040cat confdefs.h >>conftest.$ac_ext
29041cat >>conftest.$ac_ext <<_ACEOF
29042/* end confdefs.h. */
29043
29044 #include <gtk/gtk.h>
29045
29046int
29047main ()
29048{
29049
29050 #if !GTK_CHECK_VERSION(2,6,0)
29051 Not GTK+ 2.6
29052 #endif
29053
29054 ;
29055 return 0;
29056}
29057_ACEOF
29058rm -f conftest.$ac_objext
f321ab7f
VS
29059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29060 (eval $ac_compile) 2>conftest.er1
e9263684
VZ
29061 ac_status=$?
29062 grep -v '^ *+' conftest.er1 >conftest.err
29063 rm -f conftest.er1
29064 cat conftest.err >&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); } &&
f321ab7f
VS
29067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069 (eval $ac_try) 2>&5
e9263684
VZ
29070 ac_status=$?
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); }; } &&
29073 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
e9263684
VZ
29076 ac_status=$?
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; }; then
29079
29080 cat >>confdefs.h <<\_ACEOF
29081#define __WXGTK26__ 1
29082_ACEOF
29083
29084 cat >>confdefs.h <<\_ACEOF
29085#define __WXGTK24__ 1
29086_ACEOF
29087
f321ab7f
VS
29088 echo "$as_me:$LINENO: result: yes" >&5
29089echo "${ECHO_T}yes" >&6
e9263684
VZ
29090 ac_wxgtk26=1
29091
29092else
29093 echo "$as_me: failed program was:" >&5
29094sed 's/^/| /' conftest.$ac_ext >&5
29095
29096
f321ab7f
VS
29097 echo "$as_me:$LINENO: result: no" >&5
29098echo "${ECHO_T}no" >&6
e9263684
VZ
29099 ac_wxgtk26=0
29100
29101fi
f321ab7f 29102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684
VZ
29103
29104 if test "$ac_wxgtk26" = 0; then
f321ab7f
VS
29105 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
29106echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
9755e73b
VS
29107 cat >conftest.$ac_ext <<_ACEOF
29108/* confdefs.h. */
29109_ACEOF
29110cat confdefs.h >>conftest.$ac_ext
29111cat >>conftest.$ac_ext <<_ACEOF
29112/* end confdefs.h. */
29113
29114 #include <gtk/gtk.h>
29115
29116int
29117main ()
29118{
29119
29120 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 29121 Not GTK+ 2.4
9755e73b
VS
29122 #endif
29123
29124 ;
29125 return 0;
29126}
29127_ACEOF
29128rm -f conftest.$ac_objext
f321ab7f
VS
29129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29130 (eval $ac_compile) 2>conftest.er1
9755e73b
VS
29131 ac_status=$?
29132 grep -v '^ *+' conftest.er1 >conftest.err
29133 rm -f conftest.er1
29134 cat conftest.err >&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); } &&
f321ab7f
VS
29137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29139 (eval $ac_try) 2>&5
9755e73b
VS
29140 ac_status=$?
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); }; } &&
29143 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
29144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145 (eval $ac_try) 2>&5
9755e73b
VS
29146 ac_status=$?
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); }; }; then
29149
29150 cat >>confdefs.h <<\_ACEOF
29151#define __WXGTK24__ 1
29152_ACEOF
29153
f321ab7f
VS
29154 echo "$as_me:$LINENO: result: yes" >&5
29155echo "${ECHO_T}yes" >&6
9755e73b
VS
29156
29157else
29158 echo "$as_me: failed program was:" >&5
29159sed 's/^/| /' conftest.$ac_ext >&5
29160
29161
f321ab7f
VS
29162 echo "$as_me:$LINENO: result: no" >&5
29163echo "${ECHO_T}no" >&6
9755e73b
VS
29164
29165fi
f321ab7f 29166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 29167 fi
9755e73b 29168
6954625c 29169 CFLAGS="$save_CFLAGS"
304205f1 29170 LIBS="$save_LIBS"
a848cd7e
SC
29171 else
29172 if test "$wxUSE_UNICODE" = "yes"; then
29173 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29174echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29175 wxUSE_UNICODE=no
29176 fi
64b75e64 29177
f321ab7f
VS
29178 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29179echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
64b75e64
RD
29180if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29181 echo $ECHO_N "(cached) $ECHO_C" >&6
29182else
29183 ac_check_lib_save_LIBS=$LIBS
29184LIBS="-lgdk $LIBS"
29185cat >conftest.$ac_ext <<_ACEOF
29186/* confdefs.h. */
29187_ACEOF
29188cat confdefs.h >>conftest.$ac_ext
29189cat >>conftest.$ac_ext <<_ACEOF
29190/* end confdefs.h. */
29191
f321ab7f 29192/* Override any gcc2 internal prototype to avoid an error. */
64b75e64
RD
29193#ifdef __cplusplus
29194extern "C"
29195#endif
f321ab7f
VS
29196/* We use char because int might match the return type of a gcc2
29197 builtin and then its argument prototype would still apply. */
64b75e64
RD
29198char gdk_im_open ();
29199int
29200main ()
29201{
f321ab7f 29202gdk_im_open ();
64b75e64
RD
29203 ;
29204 return 0;
29205}
29206_ACEOF
29207rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
29208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29209 (eval $ac_link) 2>conftest.er1
64b75e64
RD
29210 ac_status=$?
29211 grep -v '^ *+' conftest.er1 >conftest.err
29212 rm -f conftest.er1
29213 cat conftest.err >&5
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); } &&
f321ab7f
VS
29216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218 (eval $ac_try) 2>&5
64b75e64
RD
29219 ac_status=$?
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); }; } &&
29222 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
64b75e64
RD
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; }; then
29228 ac_cv_lib_gdk_gdk_im_open=yes
29229else
29230 echo "$as_me: failed program was:" >&5
29231sed 's/^/| /' conftest.$ac_ext >&5
29232
f321ab7f 29233ac_cv_lib_gdk_gdk_im_open=no
64b75e64 29234fi
f321ab7f 29235rm -f conftest.err conftest.$ac_objext \
64b75e64
RD
29236 conftest$ac_exeext conftest.$ac_ext
29237LIBS=$ac_check_lib_save_LIBS
29238fi
f321ab7f
VS
29239echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29240echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
64b75e64
RD
29241if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29242 cat >>confdefs.h <<\_ACEOF
29243#define HAVE_XIM 1
29244_ACEOF
29245
29246fi
29247
a848cd7e
SC
29248 fi
29249
29250 if test "$USE_DARWIN" != 1; then
29251
29252for ac_func in poll
29253do
29254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
29255echo "$as_me:$LINENO: checking for $ac_func" >&5
29256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29257if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
29258 echo $ECHO_N "(cached) $ECHO_C" >&6
29259else
29260 cat >conftest.$ac_ext <<_ACEOF
29261/* confdefs.h. */
29262_ACEOF
29263cat confdefs.h >>conftest.$ac_ext
29264cat >>conftest.$ac_ext <<_ACEOF
29265/* end confdefs.h. */
ac1cb8d3
VS
29266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29268#define $ac_func innocuous_$ac_func
29269
a848cd7e
SC
29270/* System header to define __stub macros and hopefully few prototypes,
29271 which can conflict with char $ac_func (); below.
29272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29273 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29274
a848cd7e
SC
29275#ifdef __STDC__
29276# include <limits.h>
29277#else
29278# include <assert.h>
29279#endif
ac1cb8d3
VS
29280
29281#undef $ac_func
29282
f321ab7f 29283/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
29284#ifdef __cplusplus
29285extern "C"
f321ab7f 29286{
a848cd7e 29287#endif
f321ab7f
VS
29288/* We use char because int might match the return type of a gcc2
29289 builtin and then its argument prototype would still apply. */
a848cd7e
SC
29290char $ac_func ();
29291/* The GNU C library defines this for functions which it implements
29292 to always fail with ENOSYS. Some functions are actually named
29293 something starting with __ and the normal name is an alias. */
f321ab7f 29294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 29295choke me
f321ab7f
VS
29296#else
29297char (*f) () = $ac_func;
29298#endif
29299#ifdef __cplusplus
29300}
a848cd7e
SC
29301#endif
29302
29303int
29304main ()
29305{
f321ab7f 29306return f != $ac_func;
a848cd7e
SC
29307 ;
29308 return 0;
29309}
29310_ACEOF
29311rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
29312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29313 (eval $ac_link) 2>conftest.er1
a848cd7e 29314 ac_status=$?
ac1cb8d3
VS
29315 grep -v '^ *+' conftest.er1 >conftest.err
29316 rm -f conftest.er1
29317 cat conftest.err >&5
a848cd7e
SC
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } &&
f321ab7f
VS
29320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322 (eval $ac_try) 2>&5
ac1cb8d3
VS
29323 ac_status=$?
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; } &&
29326 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
29327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328 (eval $ac_try) 2>&5
a848cd7e
SC
29329 ac_status=$?
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; }; then
29332 eval "$as_ac_var=yes"
29333else
29334 echo "$as_me: failed program was:" >&5
29335sed 's/^/| /' conftest.$ac_ext >&5
29336
f321ab7f 29337eval "$as_ac_var=no"
a848cd7e 29338fi
f321ab7f 29339rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 29340 conftest$ac_exeext conftest.$ac_ext
a848cd7e 29341fi
f321ab7f
VS
29342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29343echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
29344if test `eval echo '${'$as_ac_var'}'` = yes; then
29345 cat >>confdefs.h <<_ACEOF
29346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29347_ACEOF
29348
29349fi
29350done
29351
29352 fi
29353
29354 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29355 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29356
29357 AFMINSTALL=afminstall
29358 TOOLKIT=GTK
29359 GUIDIST=GTK_DIST
29360
a848cd7e 29361 if test "$wxUSE_GPE" = "yes"; then
f321ab7f
VS
29362 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29363echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
a848cd7e 29364
0ad5d837
VZ
29365 ac_find_libraries=
29366 for ac_dir in $SEARCH_LIB;
a848cd7e 29367 do
3eca31dc 29368 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29369 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29370 ac_find_libraries=$ac_dir
29371 break 2
29372 fi
29373 done
29374 done
29375
29376 if test "$ac_find_libraries" != "" ; then
29377
0ad5d837 29378 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29379 ac_path_to_link=""
29380 else
0ad5d837
VZ
29381 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29382 result=$?
29383 if test $result = 0; then
29384 ac_path_to_link=""
29385 else
29386 ac_path_to_link=" -L$ac_find_libraries"
29387 fi
a848cd7e
SC
29388 fi
29389
29390 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29391 WXGPE=1
f321ab7f
VS
29392 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29393echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29394 else
f321ab7f
VS
29395 echo "$as_me:$LINENO: result: not found" >&5
29396echo "${ECHO_T}not found" >&6
a848cd7e
SC
29397 fi
29398
29399 fi
29400 fi
29401
29402 if test "$wxUSE_MGL" = 1; then
f321ab7f
VS
29403 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29404echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
a848cd7e 29405 if test "x$MGL_ROOT" = x ; then
f321ab7f
VS
29406 echo "$as_me:$LINENO: result: not found" >&5
29407echo "${ECHO_T}not found" >&6
a848cd7e
SC
29408 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29409echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29410 { (exit 1); exit 1; }; }
29411 else
f321ab7f
VS
29412 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29413echo "${ECHO_T}$MGL_ROOT" >&6
a848cd7e
SC
29414 fi
29415
f321ab7f
VS
29416 echo "$as_me:$LINENO: checking for libmgl location" >&5
29417echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
a848cd7e
SC
29418 case "${host}" in
29419 *-*-linux* )
29420 if test "x$wxUSE_SHARED" = xyes ; then
29421 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29422 else
29423 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29424 fi
29425 ;;
29426 *-pc-msdosdjgpp )
29427 mgl_os_candidates="dos32/dj2"
29428 ;;
29429 *)
29430 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29431echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29432 { (exit 1); exit 1; }; }
29433 esac
29434
29435 mgl_lib_type=""
29436 mgl_os=""
29437
29438 for mgl_os_i in $mgl_os_candidates ; do
29439 if test "x$mgl_os" = x ; then
29440 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29441 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29442 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29443 mgl_lib_type=debug
29444 mgl_os=$mgl_os_i
29445 fi
29446 fi
29447 if test "x$mgl_lib_type" = x ; then
29448 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29449 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29450 mgl_lib_type=release
29451 mgl_os=$mgl_os_i
29452 fi
29453 fi
29454 fi
29455 done
29456
29457 if test "x$mgl_os" = x ; then
f321ab7f
VS
29458 echo "$as_me:$LINENO: result: not found" >&5
29459echo "${ECHO_T}not found" >&6
a848cd7e
SC
29460 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29461echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29462 { (exit 1); exit 1; }; }
29463 fi
f321ab7f
VS
29464 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29465echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
a848cd7e
SC
29466
29467 wxUSE_UNIVERSAL="yes"
29468
29469 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29470 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29471
29472 AFMINSTALL=afminstall
29473 TOOLKIT=MGL
29474 GUIDIST=MGL_DIST
29475 fi
29476
b3c86150
VS
29477 if test "$wxUSE_DFB" = 1; then
29478
29479
29480if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29481 if test -n "$ac_tool_prefix"; then
29482 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29483set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
f321ab7f
VS
29484echo "$as_me:$LINENO: checking for $ac_word" >&5
29485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b3c86150
VS
29486if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29487 echo $ECHO_N "(cached) $ECHO_C" >&6
29488else
29489 case $PKG_CONFIG in
29490 [\\/]* | ?:[\\/]*)
29491 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29492 ;;
29493 *)
29494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29495for as_dir in $PATH
29496do
29497 IFS=$as_save_IFS
29498 test -z "$as_dir" && as_dir=.
29499 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 29500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b3c86150
VS
29501 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29503 break 2
29504 fi
29505done
29506done
29507
29508 ;;
29509esac
29510fi
29511PKG_CONFIG=$ac_cv_path_PKG_CONFIG
f321ab7f 29512
b3c86150 29513if test -n "$PKG_CONFIG"; then
f321ab7f
VS
29514 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29515echo "${ECHO_T}$PKG_CONFIG" >&6
b3c86150 29516else
f321ab7f
VS
29517 echo "$as_me:$LINENO: result: no" >&5
29518echo "${ECHO_T}no" >&6
b3c86150
VS
29519fi
29520
29521fi
29522if test -z "$ac_cv_path_PKG_CONFIG"; then
29523 ac_pt_PKG_CONFIG=$PKG_CONFIG
29524 # Extract the first word of "pkg-config", so it can be a program name with args.
29525set dummy pkg-config; ac_word=$2
f321ab7f
VS
29526echo "$as_me:$LINENO: checking for $ac_word" >&5
29527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b3c86150
VS
29528if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29529 echo $ECHO_N "(cached) $ECHO_C" >&6
29530else
29531 case $ac_pt_PKG_CONFIG in
29532 [\\/]* | ?:[\\/]*)
29533 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29534 ;;
29535 *)
29536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29537for as_dir in $PATH
29538do
29539 IFS=$as_save_IFS
29540 test -z "$as_dir" && as_dir=.
29541 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 29542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b3c86150
VS
29543 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29545 break 2
29546 fi
29547done
29548done
29549
29550 ;;
29551esac
29552fi
29553ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
f321ab7f 29554
b3c86150 29555if test -n "$ac_pt_PKG_CONFIG"; then
f321ab7f
VS
29556 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29557echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
b3c86150 29558else
f321ab7f
VS
29559 echo "$as_me:$LINENO: result: no" >&5
29560echo "${ECHO_T}no" >&6
b3c86150
VS
29561fi
29562
f321ab7f 29563 PKG_CONFIG=$ac_pt_PKG_CONFIG
b3c86150
VS
29564else
29565 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29566fi
29567
29568fi
29569if test -n "$PKG_CONFIG"; then
29570 _pkg_min_version=0.9.0
f321ab7f
VS
29571 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29572echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
b3c86150 29573 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
f321ab7f
VS
29574 echo "$as_me:$LINENO: result: yes" >&5
29575echo "${ECHO_T}yes" >&6
b3c86150 29576 else
f321ab7f
VS
29577 echo "$as_me:$LINENO: result: no" >&5
29578echo "${ECHO_T}no" >&6
b3c86150
VS
29579 PKG_CONFIG=""
29580 fi
29581
29582fi
29583
479c790c 29584
b3c86150 29585pkg_failed=no
f321ab7f
VS
29586echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29587echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
b3c86150
VS
29588
29589if test -n "$PKG_CONFIG"; then
29590 if test -n "$DIRECTFB_CFLAGS"; then
29591 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29592 else
29593 if test -n "$PKG_CONFIG" && \
d7ae4a62
VS
29594 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29595 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
b3c86150
VS
29596 ac_status=$?
29597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); }; then
d7ae4a62 29599 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
b3c86150
VS
29600else
29601 pkg_failed=yes
29602fi
29603 fi
29604else
29605 pkg_failed=untried
29606fi
29607if test -n "$PKG_CONFIG"; then
29608 if test -n "$DIRECTFB_LIBS"; then
29609 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29610 else
29611 if test -n "$PKG_CONFIG" && \
d7ae4a62
VS
29612 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29613 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
b3c86150
VS
29614 ac_status=$?
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); }; then
d7ae4a62 29617 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
b3c86150
VS
29618else
29619 pkg_failed=yes
29620fi
29621 fi
29622else
29623 pkg_failed=untried
29624fi
29625
29626
29627
29628if test $pkg_failed = yes; then
29629
29630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29631 _pkg_short_errors_supported=yes
29632else
29633 _pkg_short_errors_supported=no
29634fi
29635 if test $_pkg_short_errors_supported = yes; then
d7ae4a62 29636 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
b3c86150 29637 else
d7ae4a62 29638 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
b3c86150
VS
29639 fi
29640 # Put the nasty error message in config.log where it belongs
29641 echo "$DIRECTFB_PKG_ERRORS" >&5
29642
29643
29644 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29645echo "$as_me: error: DirectFB not found." >&2;}
29646 { (exit 1); exit 1; }; }
29647
29648
29649elif test $pkg_failed = untried; then
29650
29651 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29652echo "$as_me: error: DirectFB not found." >&2;}
29653 { (exit 1); exit 1; }; }
29654
29655
29656else
29657 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29658 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
f321ab7f
VS
29659 echo "$as_me:$LINENO: result: yes" >&5
29660echo "${ECHO_T}yes" >&6
b3c86150
VS
29661
29662 wxUSE_UNIVERSAL="yes"
29663 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29664 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29665 TOOLKIT=DFB
29666 GUIDIST=DFB_DIST
29667
29668fi
29669 fi
29670
a848cd7e 29671 if test "$wxUSE_MICROWIN" = 1; then
f321ab7f
VS
29672 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29673echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
a848cd7e 29674 if test "x$MICROWINDOWS" = x ; then
f321ab7f
VS
29675 echo "$as_me:$LINENO: result: not found" >&5
29676echo "${ECHO_T}not found" >&6
a848cd7e
SC
29677 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29678echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29679 { (exit 1); exit 1; }; }
29680 else
f321ab7f
VS
29681 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29682echo "${ECHO_T}$MICROWINDOWS" >&6
a848cd7e
SC
29683 fi
29684
29685 if test -f $MICROWINDOWS/lib/libmwin.a; then
f321ab7f
VS
29686 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29687echo "${ECHO_T}MicroWindows' libraries found." >&6
a848cd7e
SC
29688 else
29689 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29690echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29691 { (exit 1); exit 1; }; }
29692 fi
29693
29694 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29695 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29696
29697 wxUSE_UNIVERSAL="yes"
29698
29699 AFMINSTALL=afminstall
29700 TOOLKIT=MICROWIN
29701 GUIDIST=MICROWIN_DIST
29702
29703 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29704 fi
29705
74b84332 29706 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
bb9e79c0 29707
f321ab7f
VS
29708if test "x$ac_path_x_has_been_run" != xyes; then
29709 echo "$as_me:$LINENO: checking for X" >&5
29710echo $ECHO_N "checking for X... $ECHO_C" >&6
29711
29712ac_path_x_has_been_run=yes
a848cd7e 29713
f321ab7f 29714# Check whether --with-x or --without-x was given.
a848cd7e 29715if test "${with_x+set}" = set; then
f321ab7f 29716 withval="$with_x"
a848cd7e 29717
f321ab7f 29718fi;
a848cd7e
SC
29719# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29720if test "x$with_x" = xno; then
29721 # The user explicitly disabled X.
29722 have_x=disabled
29723else
f321ab7f
VS
29724 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29725 # Both variables are already set.
29726 have_x=yes
29727 else
29728 if test "${ac_cv_have_x+set}" = set; then
a848cd7e
SC
29729 echo $ECHO_N "(cached) $ECHO_C" >&6
29730else
29731 # One or both of the vars are not set, and there is no cached value.
29732ac_x_includes=no ac_x_libraries=no
f321ab7f 29733rm -fr conftest.dir
a848cd7e
SC
29734if mkdir conftest.dir; then
29735 cd conftest.dir
f321ab7f 29736 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a848cd7e 29737 cat >Imakefile <<'_ACEOF'
f321ab7f
VS
29738acfindx:
29739 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29740_ACEOF
29741 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
a848cd7e 29742 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f321ab7f 29743 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
a848cd7e
SC
29744 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29745 for ac_extension in a so sl; do
f321ab7f
VS
29746 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29747 test -f $ac_im_libdir/libX11.$ac_extension; then
ac1cb8d3 29748 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29749 fi
29750 done
29751 # Screen out bogus values from the imake configuration. They are
29752 # bogus both because they are the default anyway, and because
29753 # using them would break gcc on systems where it needs fixed includes.
29754 case $ac_im_incroot in
f321ab7f 29755 /usr/include) ;;
a848cd7e
SC
29756 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29757 esac
29758 case $ac_im_usrlibdir in
29759 /usr/lib | /lib) ;;
29760 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29761 esac
29762 fi
29763 cd ..
f321ab7f 29764 rm -fr conftest.dir
a848cd7e
SC
29765fi
29766
29767# Standard set of common directories for X headers.
29768# Check X11 before X11Rn because it is often a symlink to the current release.
29769ac_x_header_dirs='
29770/usr/X11/include
29771/usr/X11R6/include
29772/usr/X11R5/include
29773/usr/X11R4/include
29774
29775/usr/include/X11
29776/usr/include/X11R6
29777/usr/include/X11R5
29778/usr/include/X11R4
29779
29780/usr/local/X11/include
29781/usr/local/X11R6/include
29782/usr/local/X11R5/include
29783/usr/local/X11R4/include
29784
29785/usr/local/include/X11
29786/usr/local/include/X11R6
29787/usr/local/include/X11R5
29788/usr/local/include/X11R4
29789
29790/usr/X386/include
29791/usr/x386/include
29792/usr/XFree86/include/X11
29793
29794/usr/include
29795/usr/local/include
29796/usr/unsupported/include
29797/usr/athena/include
29798/usr/local/x11r5/include
29799/usr/lpp/Xamples/include
29800
29801/usr/openwin/include
29802/usr/openwin/share/include'
29803
29804if test "$ac_x_includes" = no; then
f321ab7f 29805 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29806 # First, try using that file with no special directory specified.
29807 cat >conftest.$ac_ext <<_ACEOF
29808/* confdefs.h. */
29809_ACEOF
29810cat confdefs.h >>conftest.$ac_ext
29811cat >>conftest.$ac_ext <<_ACEOF
29812/* end confdefs.h. */
4fd169bd 29813#include <X11/Xlib.h>
a848cd7e 29814_ACEOF
f321ab7f
VS
29815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
29817 ac_status=$?
29818 grep -v '^ *+' conftest.er1 >conftest.err
29819 rm -f conftest.er1
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } >/dev/null; then
29823 if test -s conftest.err; then
fd5199d6
VZ
29824 ac_cpp_err=$ac_c_preproc_warn_flag
29825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29826 else
29827 ac_cpp_err=
29828 fi
29829else
29830 ac_cpp_err=yes
29831fi
29832if test -z "$ac_cpp_err"; then
29833 # We can compile using X headers with no special include directory.
29834ac_x_includes=
29835else
29836 echo "$as_me: failed program was:" >&5
29837sed 's/^/| /' conftest.$ac_ext >&5
29838
29839 for ac_dir in $ac_x_header_dirs; do
4fd169bd 29840 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29841 ac_x_includes=$ac_dir
29842 break
29843 fi
29844done
29845fi
29846rm -f conftest.err conftest.$ac_ext
29847fi # $ac_x_includes = no
29848
29849if test "$ac_x_libraries" = no; then
29850 # Check for the libraries.
29851 # See if we find them without any special options.
29852 # Don't add to $LIBS permanently.
29853 ac_save_LIBS=$LIBS
4fd169bd 29854 LIBS="-lX11 $LIBS"
a848cd7e
SC
29855 cat >conftest.$ac_ext <<_ACEOF
29856/* confdefs.h. */
29857_ACEOF
29858cat confdefs.h >>conftest.$ac_ext
29859cat >>conftest.$ac_ext <<_ACEOF
29860/* end confdefs.h. */
4fd169bd 29861#include <X11/Xlib.h>
a848cd7e
SC
29862int
29863main ()
29864{
4fd169bd 29865XrmInitialize ()
a848cd7e
SC
29866 ;
29867 return 0;
29868}
29869_ACEOF
29870rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
29871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29872 (eval $ac_link) 2>conftest.er1
a848cd7e 29873 ac_status=$?
ac1cb8d3
VS
29874 grep -v '^ *+' conftest.er1 >conftest.err
29875 rm -f conftest.er1
29876 cat conftest.err >&5
a848cd7e
SC
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); } &&
f321ab7f
VS
29879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29881 (eval $ac_try) 2>&5
ac1cb8d3
VS
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; } &&
29885 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887 (eval $ac_try) 2>&5
a848cd7e
SC
29888 ac_status=$?
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; }; then
29891 LIBS=$ac_save_LIBS
29892# We can link X programs with no special library path.
29893ac_x_libraries=
29894else
29895 echo "$as_me: failed program was:" >&5
29896sed 's/^/| /' conftest.$ac_ext >&5
29897
f321ab7f 29898LIBS=$ac_save_LIBS
a848cd7e
SC
29899for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29900do
29901 # Don't even attempt the hair of trying to link an X program!
29902 for ac_extension in a so sl; do
4fd169bd 29903 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29904 ac_x_libraries=$ac_dir
29905 break 2
29906 fi
29907 done
29908done
29909fi
f321ab7f 29910rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 29911 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29912fi # $ac_x_libraries = no
29913
f321ab7f
VS
29914if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29915 # Didn't find X anywhere. Cache the known absence of X.
29916 ac_cv_have_x="have_x=no"
29917else
29918 # Record where we found X for the cache.
29919 ac_cv_have_x="have_x=yes \
29920 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e 29921fi
f321ab7f
VS
29922fi
29923
29924 fi
a848cd7e
SC
29925 eval "$ac_cv_have_x"
29926fi # $with_x != no
29927
29928if test "$have_x" != yes; then
f321ab7f
VS
29929 echo "$as_me:$LINENO: result: $have_x" >&5
29930echo "${ECHO_T}$have_x" >&6
a848cd7e
SC
29931 no_x=yes
29932else
29933 # If each of the values was on the command line, it overrides each guess.
29934 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29935 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29936 # Update the cache value to reflect the command line values.
f321ab7f
VS
29937 ac_cv_have_x="have_x=yes \
29938 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29939 # It might be that x_includes is empty (headers are found in the
29940 # standard search path. Then output the corresponding message
29941 ac_out_x_includes=$x_includes
29942 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29943 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29944echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29945fi
29946
f321ab7f 29947fi
a848cd7e
SC
29948if test "$no_x" = yes; then
29949 # Not all programs may use this symbol, but it does not hurt to define it.
29950
29951cat >>confdefs.h <<\_ACEOF
29952#define X_DISPLAY_MISSING 1
29953_ACEOF
29954
29955 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29956else
29957 if test -n "$x_includes"; then
29958 X_CFLAGS="$X_CFLAGS -I$x_includes"
29959 fi
29960
29961 # It would also be nice to do this for all -L options, not just this one.
29962 if test -n "$x_libraries"; then
29963 X_LIBS="$X_LIBS -L$x_libraries"
29964 # For Solaris; some versions of Sun CC require a space after -R and
29965 # others require no space. Words are not sufficient . . . .
29966 case `(uname -sr) 2>/dev/null` in
29967 "SunOS 5"*)
f321ab7f
VS
29968 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29969echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
a848cd7e
SC
29970 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29971 cat >conftest.$ac_ext <<_ACEOF
29972/* confdefs.h. */
29973_ACEOF
29974cat confdefs.h >>conftest.$ac_ext
29975cat >>conftest.$ac_ext <<_ACEOF
29976/* end confdefs.h. */
29977
29978int
29979main ()
29980{
29981
29982 ;
29983 return 0;
29984}
29985_ACEOF
29986rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
29987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29988 (eval $ac_link) 2>conftest.er1
a848cd7e 29989 ac_status=$?
ac1cb8d3
VS
29990 grep -v '^ *+' conftest.er1 >conftest.err
29991 rm -f conftest.er1
29992 cat conftest.err >&5
a848cd7e
SC
29993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29994 (exit $ac_status); } &&
f321ab7f
VS
29995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29997 (eval $ac_try) 2>&5
ac1cb8d3
VS
29998 ac_status=$?
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); }; } &&
30001 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003 (eval $ac_try) 2>&5
a848cd7e
SC
30004 ac_status=$?
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); }; }; then
30007 ac_R_nospace=yes
30008else
30009 echo "$as_me: failed program was:" >&5
30010sed 's/^/| /' conftest.$ac_ext >&5
30011
f321ab7f 30012ac_R_nospace=no
a848cd7e 30013fi
f321ab7f 30014rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30015 conftest$ac_exeext conftest.$ac_ext
a848cd7e 30016 if test $ac_R_nospace = yes; then
f321ab7f
VS
30017 echo "$as_me:$LINENO: result: no" >&5
30018echo "${ECHO_T}no" >&6
a848cd7e
SC
30019 X_LIBS="$X_LIBS -R$x_libraries"
30020 else
30021 LIBS="$ac_xsave_LIBS -R $x_libraries"
30022 cat >conftest.$ac_ext <<_ACEOF
30023/* confdefs.h. */
30024_ACEOF
30025cat confdefs.h >>conftest.$ac_ext
30026cat >>conftest.$ac_ext <<_ACEOF
30027/* end confdefs.h. */
30028
30029int
30030main ()
30031{
30032
30033 ;
30034 return 0;
30035}
30036_ACEOF
30037rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30039 (eval $ac_link) 2>conftest.er1
a848cd7e 30040 ac_status=$?
ac1cb8d3
VS
30041 grep -v '^ *+' conftest.er1 >conftest.err
30042 rm -f conftest.er1
30043 cat conftest.err >&5
a848cd7e
SC
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); } &&
f321ab7f
VS
30046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30048 (eval $ac_try) 2>&5
ac1cb8d3
VS
30049 ac_status=$?
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); }; } &&
30052 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30054 (eval $ac_try) 2>&5
a848cd7e
SC
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); }; }; then
30058 ac_R_space=yes
30059else
30060 echo "$as_me: failed program was:" >&5
30061sed 's/^/| /' conftest.$ac_ext >&5
30062
f321ab7f 30063ac_R_space=no
a848cd7e 30064fi
f321ab7f 30065rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30066 conftest$ac_exeext conftest.$ac_ext
a848cd7e 30067 if test $ac_R_space = yes; then
f321ab7f
VS
30068 echo "$as_me:$LINENO: result: yes" >&5
30069echo "${ECHO_T}yes" >&6
a848cd7e
SC
30070 X_LIBS="$X_LIBS -R $x_libraries"
30071 else
f321ab7f
VS
30072 echo "$as_me:$LINENO: result: neither works" >&5
30073echo "${ECHO_T}neither works" >&6
a848cd7e
SC
30074 fi
30075 fi
30076 LIBS=$ac_xsave_LIBS
30077 esac
30078 fi
30079
30080 # Check for system-dependent libraries X programs must link with.
30081 # Do this before checking for the system-independent R6 libraries
30082 # (-lICE), since we may need -lsocket or whatever for X linking.
30083
30084 if test "$ISC" = yes; then
30085 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30086 else
30087 # Martyn Johnson says this is needed for Ultrix, if the X
30088 # libraries were built with DECnet support. And Karl Berry says
30089 # the Alpha needs dnet_stub (dnet does not exist).
30090 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30091 cat >conftest.$ac_ext <<_ACEOF
30092/* confdefs.h. */
30093_ACEOF
30094cat confdefs.h >>conftest.$ac_ext
30095cat >>conftest.$ac_ext <<_ACEOF
30096/* end confdefs.h. */
30097
f321ab7f 30098/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30099#ifdef __cplusplus
30100extern "C"
30101#endif
f321ab7f
VS
30102/* We use char because int might match the return type of a gcc2
30103 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30104char XOpenDisplay ();
30105int
30106main ()
30107{
f321ab7f 30108XOpenDisplay ();
a848cd7e
SC
30109 ;
30110 return 0;
30111}
30112_ACEOF
30113rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30115 (eval $ac_link) 2>conftest.er1
a848cd7e 30116 ac_status=$?
ac1cb8d3
VS
30117 grep -v '^ *+' conftest.er1 >conftest.err
30118 rm -f conftest.er1
30119 cat conftest.err >&5
a848cd7e
SC
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); } &&
f321ab7f
VS
30122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30124 (eval $ac_try) 2>&5
ac1cb8d3
VS
30125 ac_status=$?
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); }; } &&
30128 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30130 (eval $ac_try) 2>&5
a848cd7e
SC
30131 ac_status=$?
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); }; }; then
30134 :
30135else
30136 echo "$as_me: failed program was:" >&5
30137sed 's/^/| /' conftest.$ac_ext >&5
30138
f321ab7f
VS
30139echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30140echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
a848cd7e
SC
30141if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30142 echo $ECHO_N "(cached) $ECHO_C" >&6
30143else
30144 ac_check_lib_save_LIBS=$LIBS
30145LIBS="-ldnet $LIBS"
30146cat >conftest.$ac_ext <<_ACEOF
30147/* confdefs.h. */
30148_ACEOF
30149cat confdefs.h >>conftest.$ac_ext
30150cat >>conftest.$ac_ext <<_ACEOF
30151/* end confdefs.h. */
30152
f321ab7f 30153/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30154#ifdef __cplusplus
30155extern "C"
30156#endif
f321ab7f
VS
30157/* We use char because int might match the return type of a gcc2
30158 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30159char dnet_ntoa ();
30160int
30161main ()
30162{
f321ab7f 30163dnet_ntoa ();
a848cd7e
SC
30164 ;
30165 return 0;
30166}
30167_ACEOF
30168rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30170 (eval $ac_link) 2>conftest.er1
a848cd7e 30171 ac_status=$?
ac1cb8d3
VS
30172 grep -v '^ *+' conftest.er1 >conftest.err
30173 rm -f conftest.er1
30174 cat conftest.err >&5
a848cd7e
SC
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); } &&
f321ab7f
VS
30177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30179 (eval $ac_try) 2>&5
ac1cb8d3
VS
30180 ac_status=$?
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; } &&
30183 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185 (eval $ac_try) 2>&5
a848cd7e
SC
30186 ac_status=$?
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; }; then
30189 ac_cv_lib_dnet_dnet_ntoa=yes
30190else
30191 echo "$as_me: failed program was:" >&5
30192sed 's/^/| /' conftest.$ac_ext >&5
30193
f321ab7f 30194ac_cv_lib_dnet_dnet_ntoa=no
a848cd7e 30195fi
f321ab7f 30196rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30198LIBS=$ac_check_lib_save_LIBS
30199fi
f321ab7f
VS
30200echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30201echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
a848cd7e
SC
30202if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30203 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30204fi
30205
30206 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
f321ab7f
VS
30207 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30208echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
a848cd7e
SC
30209if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30210 echo $ECHO_N "(cached) $ECHO_C" >&6
30211else
30212 ac_check_lib_save_LIBS=$LIBS
30213LIBS="-ldnet_stub $LIBS"
30214cat >conftest.$ac_ext <<_ACEOF
30215/* confdefs.h. */
30216_ACEOF
30217cat confdefs.h >>conftest.$ac_ext
30218cat >>conftest.$ac_ext <<_ACEOF
30219/* end confdefs.h. */
30220
f321ab7f 30221/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30222#ifdef __cplusplus
30223extern "C"
30224#endif
f321ab7f
VS
30225/* We use char because int might match the return type of a gcc2
30226 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30227char dnet_ntoa ();
30228int
30229main ()
30230{
f321ab7f 30231dnet_ntoa ();
a848cd7e
SC
30232 ;
30233 return 0;
30234}
30235_ACEOF
30236rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30238 (eval $ac_link) 2>conftest.er1
a848cd7e 30239 ac_status=$?
ac1cb8d3
VS
30240 grep -v '^ *+' conftest.er1 >conftest.err
30241 rm -f conftest.er1
30242 cat conftest.err >&5
a848cd7e
SC
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); } &&
f321ab7f
VS
30245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30247 (eval $ac_try) 2>&5
ac1cb8d3
VS
30248 ac_status=$?
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; } &&
30251 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253 (eval $ac_try) 2>&5
a848cd7e
SC
30254 ac_status=$?
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); }; }; then
30257 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30258else
30259 echo "$as_me: failed program was:" >&5
30260sed 's/^/| /' conftest.$ac_ext >&5
30261
f321ab7f 30262ac_cv_lib_dnet_stub_dnet_ntoa=no
a848cd7e 30263fi
f321ab7f 30264rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30265 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30266LIBS=$ac_check_lib_save_LIBS
30267fi
f321ab7f
VS
30268echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30269echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
a848cd7e
SC
30270if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30271 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30272fi
30273
30274 fi
30275fi
f321ab7f 30276rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30278 LIBS="$ac_xsave_LIBS"
30279
30280 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30281 # to get the SysV transport functions.
30282 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30283 # needs -lnsl.
30284 # The nsl library prevents programs from opening the X display
30285 # on Irix 5.2, according to T.E. Dickey.
30286 # The functions gethostbyname, getservbyname, and inet_addr are
30287 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
f321ab7f
VS
30288 echo "$as_me:$LINENO: checking for gethostbyname" >&5
30289echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
a848cd7e
SC
30290if test "${ac_cv_func_gethostbyname+set}" = set; then
30291 echo $ECHO_N "(cached) $ECHO_C" >&6
30292else
30293 cat >conftest.$ac_ext <<_ACEOF
30294/* confdefs.h. */
30295_ACEOF
30296cat confdefs.h >>conftest.$ac_ext
30297cat >>conftest.$ac_ext <<_ACEOF
30298/* end confdefs.h. */
ac1cb8d3
VS
30299/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30301#define gethostbyname innocuous_gethostbyname
30302
a848cd7e
SC
30303/* System header to define __stub macros and hopefully few prototypes,
30304 which can conflict with char gethostbyname (); below.
30305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30306 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30307
a848cd7e
SC
30308#ifdef __STDC__
30309# include <limits.h>
30310#else
30311# include <assert.h>
30312#endif
ac1cb8d3
VS
30313
30314#undef gethostbyname
30315
f321ab7f 30316/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30317#ifdef __cplusplus
30318extern "C"
f321ab7f 30319{
a848cd7e 30320#endif
f321ab7f
VS
30321/* We use char because int might match the return type of a gcc2
30322 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30323char gethostbyname ();
30324/* The GNU C library defines this for functions which it implements
30325 to always fail with ENOSYS. Some functions are actually named
30326 something starting with __ and the normal name is an alias. */
f321ab7f 30327#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
a848cd7e 30328choke me
f321ab7f
VS
30329#else
30330char (*f) () = gethostbyname;
30331#endif
30332#ifdef __cplusplus
30333}
a848cd7e
SC
30334#endif
30335
30336int
30337main ()
30338{
f321ab7f 30339return f != gethostbyname;
a848cd7e
SC
30340 ;
30341 return 0;
30342}
30343_ACEOF
30344rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30346 (eval $ac_link) 2>conftest.er1
a848cd7e 30347 ac_status=$?
ac1cb8d3
VS
30348 grep -v '^ *+' conftest.er1 >conftest.err
30349 rm -f conftest.er1
30350 cat conftest.err >&5
a848cd7e
SC
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); } &&
f321ab7f
VS
30353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
ac1cb8d3
VS
30356 ac_status=$?
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; } &&
30359 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361 (eval $ac_try) 2>&5
a848cd7e
SC
30362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; }; then
30365 ac_cv_func_gethostbyname=yes
30366else
30367 echo "$as_me: failed program was:" >&5
30368sed 's/^/| /' conftest.$ac_ext >&5
30369
f321ab7f 30370ac_cv_func_gethostbyname=no
a848cd7e 30371fi
f321ab7f 30372rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30373 conftest$ac_exeext conftest.$ac_ext
a848cd7e 30374fi
f321ab7f
VS
30375echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30376echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
a848cd7e
SC
30377
30378 if test $ac_cv_func_gethostbyname = no; then
f321ab7f
VS
30379 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30380echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
a848cd7e
SC
30381if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30382 echo $ECHO_N "(cached) $ECHO_C" >&6
30383else
30384 ac_check_lib_save_LIBS=$LIBS
30385LIBS="-lnsl $LIBS"
30386cat >conftest.$ac_ext <<_ACEOF
30387/* confdefs.h. */
30388_ACEOF
30389cat confdefs.h >>conftest.$ac_ext
30390cat >>conftest.$ac_ext <<_ACEOF
30391/* end confdefs.h. */
30392
f321ab7f 30393/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30394#ifdef __cplusplus
30395extern "C"
30396#endif
f321ab7f
VS
30397/* We use char because int might match the return type of a gcc2
30398 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30399char gethostbyname ();
30400int
30401main ()
30402{
f321ab7f 30403gethostbyname ();
a848cd7e
SC
30404 ;
30405 return 0;
30406}
30407_ACEOF
30408rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30410 (eval $ac_link) 2>conftest.er1
ac1cb8d3
VS
30411 ac_status=$?
30412 grep -v '^ *+' conftest.er1 >conftest.err
30413 rm -f conftest.er1
30414 cat conftest.err >&5
30415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30416 (exit $ac_status); } &&
f321ab7f
VS
30417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30419 (eval $ac_try) 2>&5
ac1cb8d3
VS
30420 ac_status=$?
30421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422 (exit $ac_status); }; } &&
30423 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30425 (eval $ac_try) 2>&5
ac1cb8d3
VS
30426 ac_status=$?
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; }; then
30429 ac_cv_lib_nsl_gethostbyname=yes
30430else
30431 echo "$as_me: failed program was:" >&5
30432sed 's/^/| /' conftest.$ac_ext >&5
30433
f321ab7f 30434ac_cv_lib_nsl_gethostbyname=no
ac1cb8d3 30435fi
f321ab7f 30436rm -f conftest.err conftest.$ac_objext \
ac1cb8d3
VS
30437 conftest$ac_exeext conftest.$ac_ext
30438LIBS=$ac_check_lib_save_LIBS
30439fi
f321ab7f
VS
30440echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30441echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
ac1cb8d3
VS
30442if test $ac_cv_lib_nsl_gethostbyname = yes; then
30443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30444fi
30445
30446 if test $ac_cv_lib_nsl_gethostbyname = no; then
f321ab7f
VS
30447 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30448echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
ac1cb8d3
VS
30449if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30450 echo $ECHO_N "(cached) $ECHO_C" >&6
30451else
30452 ac_check_lib_save_LIBS=$LIBS
30453LIBS="-lbsd $LIBS"
30454cat >conftest.$ac_ext <<_ACEOF
30455/* confdefs.h. */
30456_ACEOF
30457cat confdefs.h >>conftest.$ac_ext
30458cat >>conftest.$ac_ext <<_ACEOF
30459/* end confdefs.h. */
30460
f321ab7f 30461/* Override any gcc2 internal prototype to avoid an error. */
ac1cb8d3
VS
30462#ifdef __cplusplus
30463extern "C"
30464#endif
f321ab7f
VS
30465/* We use char because int might match the return type of a gcc2
30466 builtin and then its argument prototype would still apply. */
ac1cb8d3
VS
30467char gethostbyname ();
30468int
30469main ()
30470{
f321ab7f 30471gethostbyname ();
ac1cb8d3
VS
30472 ;
30473 return 0;
30474}
30475_ACEOF
30476rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30478 (eval $ac_link) 2>conftest.er1
a848cd7e 30479 ac_status=$?
ac1cb8d3
VS
30480 grep -v '^ *+' conftest.er1 >conftest.err
30481 rm -f conftest.er1
30482 cat conftest.err >&5
a848cd7e
SC
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); } &&
f321ab7f
VS
30485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30487 (eval $ac_try) 2>&5
a848cd7e
SC
30488 ac_status=$?
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30490 (exit $ac_status); }; } &&
30491 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30493 (eval $ac_try) 2>&5
a848cd7e
SC
30494 ac_status=$?
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); }; }; then
30497 ac_cv_lib_bsd_gethostbyname=yes
30498else
30499 echo "$as_me: failed program was:" >&5
30500sed 's/^/| /' conftest.$ac_ext >&5
30501
f321ab7f 30502ac_cv_lib_bsd_gethostbyname=no
a848cd7e 30503fi
f321ab7f 30504rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30506LIBS=$ac_check_lib_save_LIBS
30507fi
f321ab7f
VS
30508echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30509echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
a848cd7e
SC
30510if test $ac_cv_lib_bsd_gethostbyname = yes; then
30511 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30512fi
30513
30514 fi
30515 fi
30516
30517 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30518 # socket/setsockopt and other routines are undefined under SCO ODT
30519 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30520 # on later versions), says Simon Leinen: it contains gethostby*
30521 # variants that don't use the name server (or something). -lsocket
30522 # must be given before -lnsl if both are needed. We assume that
30523 # if connect needs -lnsl, so does gethostbyname.
f321ab7f
VS
30524 echo "$as_me:$LINENO: checking for connect" >&5
30525echo $ECHO_N "checking for connect... $ECHO_C" >&6
a848cd7e
SC
30526if test "${ac_cv_func_connect+set}" = set; then
30527 echo $ECHO_N "(cached) $ECHO_C" >&6
30528else
30529 cat >conftest.$ac_ext <<_ACEOF
30530/* confdefs.h. */
30531_ACEOF
30532cat confdefs.h >>conftest.$ac_ext
30533cat >>conftest.$ac_ext <<_ACEOF
30534/* end confdefs.h. */
ac1cb8d3
VS
30535/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30537#define connect innocuous_connect
30538
a848cd7e
SC
30539/* System header to define __stub macros and hopefully few prototypes,
30540 which can conflict with char connect (); below.
30541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30542 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30543
a848cd7e
SC
30544#ifdef __STDC__
30545# include <limits.h>
30546#else
30547# include <assert.h>
30548#endif
ac1cb8d3
VS
30549
30550#undef connect
30551
f321ab7f 30552/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30553#ifdef __cplusplus
30554extern "C"
f321ab7f 30555{
a848cd7e 30556#endif
f321ab7f
VS
30557/* We use char because int might match the return type of a gcc2
30558 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30559char connect ();
30560/* The GNU C library defines this for functions which it implements
30561 to always fail with ENOSYS. Some functions are actually named
30562 something starting with __ and the normal name is an alias. */
f321ab7f 30563#if defined (__stub_connect) || defined (__stub___connect)
a848cd7e 30564choke me
f321ab7f
VS
30565#else
30566char (*f) () = connect;
30567#endif
30568#ifdef __cplusplus
30569}
a848cd7e
SC
30570#endif
30571
30572int
30573main ()
30574{
f321ab7f 30575return f != connect;
a848cd7e
SC
30576 ;
30577 return 0;
30578}
30579_ACEOF
30580rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30582 (eval $ac_link) 2>conftest.er1
a848cd7e 30583 ac_status=$?
ac1cb8d3
VS
30584 grep -v '^ *+' conftest.er1 >conftest.err
30585 rm -f conftest.er1
30586 cat conftest.err >&5
a848cd7e
SC
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); } &&
f321ab7f
VS
30589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30591 (eval $ac_try) 2>&5
ac1cb8d3
VS
30592 ac_status=$?
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); }; } &&
30595 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30597 (eval $ac_try) 2>&5
a848cd7e
SC
30598 ac_status=$?
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; }; then
30601 ac_cv_func_connect=yes
30602else
30603 echo "$as_me: failed program was:" >&5
30604sed 's/^/| /' conftest.$ac_ext >&5
30605
f321ab7f 30606ac_cv_func_connect=no
a848cd7e 30607fi
f321ab7f 30608rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30609 conftest$ac_exeext conftest.$ac_ext
a848cd7e 30610fi
f321ab7f
VS
30611echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30612echo "${ECHO_T}$ac_cv_func_connect" >&6
a848cd7e
SC
30613
30614 if test $ac_cv_func_connect = no; then
f321ab7f
VS
30615 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30616echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
a848cd7e
SC
30617if test "${ac_cv_lib_socket_connect+set}" = set; then
30618 echo $ECHO_N "(cached) $ECHO_C" >&6
30619else
30620 ac_check_lib_save_LIBS=$LIBS
30621LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30622cat >conftest.$ac_ext <<_ACEOF
30623/* confdefs.h. */
30624_ACEOF
30625cat confdefs.h >>conftest.$ac_ext
30626cat >>conftest.$ac_ext <<_ACEOF
30627/* end confdefs.h. */
30628
f321ab7f 30629/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30630#ifdef __cplusplus
30631extern "C"
30632#endif
f321ab7f
VS
30633/* We use char because int might match the return type of a gcc2
30634 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30635char connect ();
30636int
30637main ()
30638{
f321ab7f 30639connect ();
a848cd7e
SC
30640 ;
30641 return 0;
30642}
30643_ACEOF
30644rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30646 (eval $ac_link) 2>conftest.er1
a848cd7e 30647 ac_status=$?
ac1cb8d3
VS
30648 grep -v '^ *+' conftest.er1 >conftest.err
30649 rm -f conftest.er1
30650 cat conftest.err >&5
a848cd7e
SC
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
f321ab7f
VS
30653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
ac1cb8d3
VS
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; } &&
30659 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661 (eval $ac_try) 2>&5
a848cd7e
SC
30662 ac_status=$?
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); }; }; then
30665 ac_cv_lib_socket_connect=yes
30666else
30667 echo "$as_me: failed program was:" >&5
30668sed 's/^/| /' conftest.$ac_ext >&5
30669
f321ab7f 30670ac_cv_lib_socket_connect=no
a848cd7e 30671fi
f321ab7f 30672rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30674LIBS=$ac_check_lib_save_LIBS
30675fi
f321ab7f
VS
30676echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30677echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
a848cd7e
SC
30678if test $ac_cv_lib_socket_connect = yes; then
30679 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30680fi
30681
30682 fi
30683
30684 # Guillermo Gomez says -lposix is necessary on A/UX.
f321ab7f
VS
30685 echo "$as_me:$LINENO: checking for remove" >&5
30686echo $ECHO_N "checking for remove... $ECHO_C" >&6
a848cd7e
SC
30687if test "${ac_cv_func_remove+set}" = set; then
30688 echo $ECHO_N "(cached) $ECHO_C" >&6
30689else
30690 cat >conftest.$ac_ext <<_ACEOF
30691/* confdefs.h. */
30692_ACEOF
30693cat confdefs.h >>conftest.$ac_ext
30694cat >>conftest.$ac_ext <<_ACEOF
30695/* end confdefs.h. */
ac1cb8d3
VS
30696/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30698#define remove innocuous_remove
30699
a848cd7e
SC
30700/* System header to define __stub macros and hopefully few prototypes,
30701 which can conflict with char remove (); below.
30702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30703 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30704
a848cd7e
SC
30705#ifdef __STDC__
30706# include <limits.h>
30707#else
30708# include <assert.h>
30709#endif
ac1cb8d3
VS
30710
30711#undef remove
30712
f321ab7f 30713/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30714#ifdef __cplusplus
30715extern "C"
f321ab7f 30716{
a848cd7e 30717#endif
f321ab7f
VS
30718/* We use char because int might match the return type of a gcc2
30719 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30720char remove ();
30721/* The GNU C library defines this for functions which it implements
30722 to always fail with ENOSYS. Some functions are actually named
30723 something starting with __ and the normal name is an alias. */
f321ab7f 30724#if defined (__stub_remove) || defined (__stub___remove)
a848cd7e 30725choke me
f321ab7f
VS
30726#else
30727char (*f) () = remove;
30728#endif
30729#ifdef __cplusplus
30730}
a848cd7e
SC
30731#endif
30732
30733int
30734main ()
30735{
f321ab7f 30736return f != remove;
a848cd7e
SC
30737 ;
30738 return 0;
30739}
30740_ACEOF
30741rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30743 (eval $ac_link) 2>conftest.er1
a848cd7e 30744 ac_status=$?
ac1cb8d3
VS
30745 grep -v '^ *+' conftest.er1 >conftest.err
30746 rm -f conftest.er1
30747 cat conftest.err >&5
a848cd7e
SC
30748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 (exit $ac_status); } &&
f321ab7f
VS
30750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30752 (eval $ac_try) 2>&5
ac1cb8d3
VS
30753 ac_status=$?
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); }; } &&
30756 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30758 (eval $ac_try) 2>&5
a848cd7e
SC
30759 ac_status=$?
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); }; }; then
30762 ac_cv_func_remove=yes
30763else
30764 echo "$as_me: failed program was:" >&5
30765sed 's/^/| /' conftest.$ac_ext >&5
30766
f321ab7f 30767ac_cv_func_remove=no
a848cd7e 30768fi
f321ab7f 30769rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30770 conftest$ac_exeext conftest.$ac_ext
a848cd7e 30771fi
f321ab7f
VS
30772echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30773echo "${ECHO_T}$ac_cv_func_remove" >&6
a848cd7e
SC
30774
30775 if test $ac_cv_func_remove = no; then
f321ab7f
VS
30776 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30777echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
a848cd7e
SC
30778if test "${ac_cv_lib_posix_remove+set}" = set; then
30779 echo $ECHO_N "(cached) $ECHO_C" >&6
30780else
30781 ac_check_lib_save_LIBS=$LIBS
30782LIBS="-lposix $LIBS"
30783cat >conftest.$ac_ext <<_ACEOF
30784/* confdefs.h. */
30785_ACEOF
30786cat confdefs.h >>conftest.$ac_ext
30787cat >>conftest.$ac_ext <<_ACEOF
30788/* end confdefs.h. */
30789
f321ab7f 30790/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30791#ifdef __cplusplus
30792extern "C"
30793#endif
f321ab7f
VS
30794/* We use char because int might match the return type of a gcc2
30795 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30796char remove ();
30797int
30798main ()
30799{
f321ab7f 30800remove ();
a848cd7e
SC
30801 ;
30802 return 0;
30803}
30804_ACEOF
30805rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30807 (eval $ac_link) 2>conftest.er1
a848cd7e 30808 ac_status=$?
ac1cb8d3
VS
30809 grep -v '^ *+' conftest.er1 >conftest.err
30810 rm -f conftest.er1
30811 cat conftest.err >&5
a848cd7e
SC
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); } &&
f321ab7f
VS
30814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30816 (eval $ac_try) 2>&5
ac1cb8d3
VS
30817 ac_status=$?
30818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819 (exit $ac_status); }; } &&
30820 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30822 (eval $ac_try) 2>&5
a848cd7e
SC
30823 ac_status=$?
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); }; }; then
30826 ac_cv_lib_posix_remove=yes
30827else
30828 echo "$as_me: failed program was:" >&5
30829sed 's/^/| /' conftest.$ac_ext >&5
30830
f321ab7f 30831ac_cv_lib_posix_remove=no
a848cd7e 30832fi
f321ab7f 30833rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30834 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30835LIBS=$ac_check_lib_save_LIBS
30836fi
f321ab7f
VS
30837echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30838echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
a848cd7e
SC
30839if test $ac_cv_lib_posix_remove = yes; then
30840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30841fi
30842
30843 fi
30844
30845 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
f321ab7f
VS
30846 echo "$as_me:$LINENO: checking for shmat" >&5
30847echo $ECHO_N "checking for shmat... $ECHO_C" >&6
a848cd7e
SC
30848if test "${ac_cv_func_shmat+set}" = set; then
30849 echo $ECHO_N "(cached) $ECHO_C" >&6
30850else
30851 cat >conftest.$ac_ext <<_ACEOF
30852/* confdefs.h. */
30853_ACEOF
30854cat confdefs.h >>conftest.$ac_ext
30855cat >>conftest.$ac_ext <<_ACEOF
30856/* end confdefs.h. */
ac1cb8d3
VS
30857/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30859#define shmat innocuous_shmat
30860
a848cd7e
SC
30861/* System header to define __stub macros and hopefully few prototypes,
30862 which can conflict with char shmat (); below.
30863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30864 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30865
a848cd7e
SC
30866#ifdef __STDC__
30867# include <limits.h>
30868#else
30869# include <assert.h>
30870#endif
ac1cb8d3
VS
30871
30872#undef shmat
30873
f321ab7f 30874/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30875#ifdef __cplusplus
30876extern "C"
f321ab7f 30877{
a848cd7e 30878#endif
f321ab7f
VS
30879/* We use char because int might match the return type of a gcc2
30880 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30881char shmat ();
30882/* The GNU C library defines this for functions which it implements
30883 to always fail with ENOSYS. Some functions are actually named
30884 something starting with __ and the normal name is an alias. */
f321ab7f 30885#if defined (__stub_shmat) || defined (__stub___shmat)
a848cd7e 30886choke me
f321ab7f
VS
30887#else
30888char (*f) () = shmat;
30889#endif
30890#ifdef __cplusplus
30891}
a848cd7e
SC
30892#endif
30893
30894int
30895main ()
30896{
f321ab7f 30897return f != shmat;
a848cd7e
SC
30898 ;
30899 return 0;
30900}
30901_ACEOF
30902rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30904 (eval $ac_link) 2>conftest.er1
a848cd7e 30905 ac_status=$?
ac1cb8d3
VS
30906 grep -v '^ *+' conftest.er1 >conftest.err
30907 rm -f conftest.er1
30908 cat conftest.err >&5
a848cd7e
SC
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); } &&
f321ab7f
VS
30911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913 (eval $ac_try) 2>&5
ac1cb8d3
VS
30914 ac_status=$?
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; } &&
30917 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30919 (eval $ac_try) 2>&5
a848cd7e
SC
30920 ac_status=$?
30921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922 (exit $ac_status); }; }; then
30923 ac_cv_func_shmat=yes
30924else
30925 echo "$as_me: failed program was:" >&5
30926sed 's/^/| /' conftest.$ac_ext >&5
30927
f321ab7f 30928ac_cv_func_shmat=no
a848cd7e 30929fi
f321ab7f 30930rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30931 conftest$ac_exeext conftest.$ac_ext
a848cd7e 30932fi
f321ab7f
VS
30933echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30934echo "${ECHO_T}$ac_cv_func_shmat" >&6
a848cd7e
SC
30935
30936 if test $ac_cv_func_shmat = no; then
f321ab7f
VS
30937 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30938echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
a848cd7e
SC
30939if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30940 echo $ECHO_N "(cached) $ECHO_C" >&6
30941else
30942 ac_check_lib_save_LIBS=$LIBS
30943LIBS="-lipc $LIBS"
30944cat >conftest.$ac_ext <<_ACEOF
30945/* confdefs.h. */
30946_ACEOF
30947cat confdefs.h >>conftest.$ac_ext
30948cat >>conftest.$ac_ext <<_ACEOF
30949/* end confdefs.h. */
30950
f321ab7f 30951/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
30952#ifdef __cplusplus
30953extern "C"
30954#endif
f321ab7f
VS
30955/* We use char because int might match the return type of a gcc2
30956 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30957char shmat ();
30958int
30959main ()
30960{
f321ab7f 30961shmat ();
a848cd7e
SC
30962 ;
30963 return 0;
30964}
30965_ACEOF
30966rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
30967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30968 (eval $ac_link) 2>conftest.er1
a848cd7e 30969 ac_status=$?
ac1cb8d3
VS
30970 grep -v '^ *+' conftest.er1 >conftest.err
30971 rm -f conftest.er1
30972 cat conftest.err >&5
a848cd7e
SC
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); } &&
f321ab7f
VS
30975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977 (eval $ac_try) 2>&5
ac1cb8d3
VS
30978 ac_status=$?
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; } &&
30981 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
30982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30983 (eval $ac_try) 2>&5
a848cd7e
SC
30984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; }; then
30987 ac_cv_lib_ipc_shmat=yes
30988else
30989 echo "$as_me: failed program was:" >&5
30990sed 's/^/| /' conftest.$ac_ext >&5
30991
f321ab7f 30992ac_cv_lib_ipc_shmat=no
a848cd7e 30993fi
f321ab7f 30994rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 30995 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30996LIBS=$ac_check_lib_save_LIBS
30997fi
f321ab7f
VS
30998echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30999echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
a848cd7e
SC
31000if test $ac_cv_lib_ipc_shmat = yes; then
31001 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31002fi
31003
31004 fi
31005 fi
31006
31007 # Check for libraries that X11R6 Xt/Xaw programs need.
31008 ac_save_LDFLAGS=$LDFLAGS
31009 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31010 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31011 # check for ICE first), but we must link in the order -lSM -lICE or
31012 # we get undefined symbols. So assume we have SM if we have ICE.
31013 # These have to be linked with before -lX11, unlike the other
31014 # libraries we check for below, so use a different variable.
31015 # John Interrante, Karl Berry
f321ab7f
VS
31016 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31017echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
a848cd7e
SC
31018if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31019 echo $ECHO_N "(cached) $ECHO_C" >&6
31020else
31021 ac_check_lib_save_LIBS=$LIBS
31022LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31023cat >conftest.$ac_ext <<_ACEOF
31024/* confdefs.h. */
31025_ACEOF
31026cat confdefs.h >>conftest.$ac_ext
31027cat >>conftest.$ac_ext <<_ACEOF
31028/* end confdefs.h. */
31029
f321ab7f 31030/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
31031#ifdef __cplusplus
31032extern "C"
31033#endif
f321ab7f
VS
31034/* We use char because int might match the return type of a gcc2
31035 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31036char IceConnectionNumber ();
31037int
31038main ()
31039{
f321ab7f 31040IceConnectionNumber ();
a848cd7e
SC
31041 ;
31042 return 0;
31043}
31044_ACEOF
31045rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
31046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31047 (eval $ac_link) 2>conftest.er1
a848cd7e 31048 ac_status=$?
ac1cb8d3
VS
31049 grep -v '^ *+' conftest.er1 >conftest.err
31050 rm -f conftest.er1
31051 cat conftest.err >&5
a848cd7e
SC
31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053 (exit $ac_status); } &&
f321ab7f
VS
31054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31056 (eval $ac_try) 2>&5
ac1cb8d3
VS
31057 ac_status=$?
31058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059 (exit $ac_status); }; } &&
31060 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
31061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31062 (eval $ac_try) 2>&5
a848cd7e
SC
31063 ac_status=$?
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; }; then
31066 ac_cv_lib_ICE_IceConnectionNumber=yes
31067else
31068 echo "$as_me: failed program was:" >&5
31069sed 's/^/| /' conftest.$ac_ext >&5
31070
f321ab7f 31071ac_cv_lib_ICE_IceConnectionNumber=no
a848cd7e 31072fi
f321ab7f 31073rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 31074 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31075LIBS=$ac_check_lib_save_LIBS
31076fi
f321ab7f
VS
31077echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31078echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
a848cd7e
SC
31079if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31080 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31081fi
31082
31083 LDFLAGS=$ac_save_LDFLAGS
31084
31085fi
31086
31087
31088 if test "$no_x" = "yes"; then
89d90d6d
VZ
31089 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31090echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31091 { (exit 1); exit 1; }; }
a848cd7e
SC
31092 fi
31093
74b84332
VS
31094 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31095 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
31096 AFMINSTALL=afminstall
31097 COMPILED_X_PROGRAM=0
31098
74b84332
VS
31099 fi
31100
31101 if test "$wxUSE_X11" = 1; then
a848cd7e 31102 if test "$wxUSE_NANOX" = "yes"; then
f321ab7f
VS
31103 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31104echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
a848cd7e 31105 if test "x$MICROWIN" = x ; then
f321ab7f
VS
31106 echo "$as_me:$LINENO: result: not found" >&5
31107echo "${ECHO_T}not found" >&6
a848cd7e
SC
31108 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31109echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31110 { (exit 1); exit 1; }; }
31111 else
f321ab7f
VS
31112 echo "$as_me:$LINENO: result: $MICROWIN" >&5
31113echo "${ECHO_T}$MICROWIN" >&6
a848cd7e
SC
31114 cat >>confdefs.h <<\_ACEOF
31115#define wxUSE_NANOX 1
31116_ACEOF
31117
31118 fi
31119 fi
31120
31121 if test "$wxUSE_UNICODE" = "yes"; then
31122
479c790c
VZ
31123
31124if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31125 if test -n "$ac_tool_prefix"; then
31126 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31127set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
f321ab7f
VS
31128echo "$as_me:$LINENO: checking for $ac_word" >&5
31129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
479c790c
VZ
31130if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31131 echo $ECHO_N "(cached) $ECHO_C" >&6
31132else
31133 case $PKG_CONFIG in
31134 [\\/]* | ?:[\\/]*)
31135 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31136 ;;
31137 *)
31138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31139for as_dir in $PATH
31140do
31141 IFS=$as_save_IFS
31142 test -z "$as_dir" && as_dir=.
31143 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 31144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
479c790c
VZ
31145 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31147 break 2
31148 fi
31149done
31150done
31151
31152 ;;
31153esac
31154fi
31155PKG_CONFIG=$ac_cv_path_PKG_CONFIG
f321ab7f 31156
479c790c 31157if test -n "$PKG_CONFIG"; then
f321ab7f
VS
31158 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31159echo "${ECHO_T}$PKG_CONFIG" >&6
479c790c 31160else
f321ab7f
VS
31161 echo "$as_me:$LINENO: result: no" >&5
31162echo "${ECHO_T}no" >&6
479c790c
VZ
31163fi
31164
31165fi
31166if test -z "$ac_cv_path_PKG_CONFIG"; then
31167 ac_pt_PKG_CONFIG=$PKG_CONFIG
31168 # Extract the first word of "pkg-config", so it can be a program name with args.
31169set dummy pkg-config; ac_word=$2
f321ab7f
VS
31170echo "$as_me:$LINENO: checking for $ac_word" >&5
31171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
479c790c
VZ
31172if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31173 echo $ECHO_N "(cached) $ECHO_C" >&6
31174else
31175 case $ac_pt_PKG_CONFIG in
31176 [\\/]* | ?:[\\/]*)
31177 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31178 ;;
31179 *)
31180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31181for as_dir in $PATH
31182do
31183 IFS=$as_save_IFS
31184 test -z "$as_dir" && as_dir=.
31185 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 31186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
479c790c
VZ
31187 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31189 break 2
31190 fi
31191done
31192done
31193
31194 ;;
31195esac
31196fi
31197ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
f321ab7f 31198
479c790c 31199if test -n "$ac_pt_PKG_CONFIG"; then
f321ab7f
VS
31200 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31201echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
479c790c 31202else
f321ab7f
VS
31203 echo "$as_me:$LINENO: result: no" >&5
31204echo "${ECHO_T}no" >&6
479c790c
VZ
31205fi
31206
f321ab7f 31207 PKG_CONFIG=$ac_pt_PKG_CONFIG
479c790c
VZ
31208else
31209 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31210fi
31211
31212fi
31213if test -n "$PKG_CONFIG"; then
31214 _pkg_min_version=0.9.0
f321ab7f
VS
31215 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31216echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
479c790c 31217 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
f321ab7f
VS
31218 echo "$as_me:$LINENO: result: yes" >&5
31219echo "${ECHO_T}yes" >&6
479c790c 31220 else
f321ab7f
VS
31221 echo "$as_me:$LINENO: result: no" >&5
31222echo "${ECHO_T}no" >&6
479c790c
VZ
31223 PKG_CONFIG=""
31224 fi
31225
31226fi
31227
31228
3ecd9f92 31229pkg_failed=no
f321ab7f
VS
31230echo "$as_me:$LINENO: checking for PANGOX" >&5
31231echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 31232
3ecd9f92
MW
31233if test -n "$PKG_CONFIG"; then
31234 if test -n "$PANGOX_CFLAGS"; then
31235 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31236 else
31237 if test -n "$PKG_CONFIG" && \
31238 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31239 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31240 ac_status=$?
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); }; then
31243 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31244else
31245 pkg_failed=yes
31246fi
31247 fi
31248else
31249 pkg_failed=untried
31250fi
31251if test -n "$PKG_CONFIG"; then
31252 if test -n "$PANGOX_LIBS"; then
31253 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31254 else
31255 if test -n "$PKG_CONFIG" && \
31256 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31257 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31258 ac_status=$?
31259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260 (exit $ac_status); }; then
31261 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31262else
31263 pkg_failed=yes
31264fi
31265 fi
31266else
31267 pkg_failed=untried
31268fi
31269
31270
31271
31272if test $pkg_failed = yes; then
31273
31274if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31275 _pkg_short_errors_supported=yes
31276else
31277 _pkg_short_errors_supported=no
31278fi
31279 if test $_pkg_short_errors_supported = yes; then
31280 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31281 else
31282 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 31283 fi
3ecd9f92
MW
31284 # Put the nasty error message in config.log where it belongs
31285 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
31286
31287
479c790c 31288 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31289echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31290 { (exit 1); exit 1; }; }
a848cd7e 31291
a848cd7e 31292
3ecd9f92 31293elif test $pkg_failed = untried; then
a848cd7e 31294
479c790c 31295 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31296echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31297 { (exit 1); exit 1; }; }
31298
31299
31300else
31301 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31302 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
f321ab7f
VS
31303 echo "$as_me:$LINENO: result: yes" >&5
31304echo "${ECHO_T}yes" >&6
3ecd9f92 31305
9b8888f9 31306 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
479c790c
VZ
31307 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31308 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
31309
31310fi
31311
31312pkg_failed=no
f321ab7f
VS
31313echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31314echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
3ecd9f92
MW
31315
31316if test -n "$PKG_CONFIG"; then
31317 if test -n "$PANGOFT2_CFLAGS"; then
31318 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31319 else
31320 if test -n "$PKG_CONFIG" && \
31321 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31322 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); }; then
31326 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31327else
31328 pkg_failed=yes
31329fi
31330 fi
31331else
31332 pkg_failed=untried
31333fi
31334if test -n "$PKG_CONFIG"; then
31335 if test -n "$PANGOFT2_LIBS"; then
31336 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31337 else
31338 if test -n "$PKG_CONFIG" && \
31339 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31340 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; then
31344 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31345else
31346 pkg_failed=yes
31347fi
31348 fi
31349else
31350 pkg_failed=untried
31351fi
31352
31353
31354
31355if test $pkg_failed = yes; then
31356
31357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31358 _pkg_short_errors_supported=yes
31359else
31360 _pkg_short_errors_supported=no
31361fi
31362 if test $_pkg_short_errors_supported = yes; then
31363 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31364 else
31365 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31366 fi
31367 # Put the nasty error message in config.log where it belongs
31368 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 31369
a848cd7e 31370
479c790c 31371 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
a848cd7e 31372echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31373 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
31374
31375
3ecd9f92 31376elif test $pkg_failed = untried; then
a848cd7e 31377
479c790c 31378 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
3ecd9f92 31379echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31380 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 31381
a848cd7e 31382
a848cd7e 31383else
3ecd9f92
MW
31384 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31385 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
f321ab7f
VS
31386 echo "$as_me:$LINENO: result: yes" >&5
31387echo "${ECHO_T}yes" >&6
3ecd9f92 31388
9b8888f9 31389 CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
479c790c
VZ
31390 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31391 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 31392
a848cd7e 31393fi
3ecd9f92
MW
31394
31395pkg_failed=no
f321ab7f
VS
31396echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31397echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
31398
31399if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
31400 if test -n "$PANGOXFT_CFLAGS"; then
31401 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31402 else
31403 if test -n "$PKG_CONFIG" && \
31404 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31405 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31406 ac_status=$?
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; then
31409 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 31410else
3ecd9f92
MW
31411 pkg_failed=yes
31412fi
31413 fi
31414else
31415 pkg_failed=untried
31416fi
31417if test -n "$PKG_CONFIG"; then
31418 if test -n "$PANGOXFT_LIBS"; then
31419 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31420 else
31421 if test -n "$PKG_CONFIG" && \
31422 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31423 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31424 ac_status=$?
31425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31426 (exit $ac_status); }; then
31427 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31428else
31429 pkg_failed=yes
31430fi
31431 fi
31432else
31433 pkg_failed=untried
a848cd7e
SC
31434fi
31435
a848cd7e 31436
a848cd7e 31437
3ecd9f92 31438if test $pkg_failed = yes; then
a848cd7e 31439
3ecd9f92
MW
31440if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31441 _pkg_short_errors_supported=yes
31442else
31443 _pkg_short_errors_supported=no
31444fi
31445 if test $_pkg_short_errors_supported = yes; then
31446 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31447 else
31448 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 31449 fi
3ecd9f92
MW
31450 # Put the nasty error message in config.log where it belongs
31451 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31452
31453
479c790c 31454 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31455echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31456
a848cd7e 31457
3ecd9f92 31458elif test $pkg_failed = untried; then
a848cd7e 31459
479c790c 31460 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31461echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31462
31463
31464else
31465 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31466 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
f321ab7f
VS
31467 echo "$as_me:$LINENO: result: yes" >&5
31468echo "${ECHO_T}yes" >&6
a848cd7e 31469
479c790c 31470 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
31471#define HAVE_PANGO_XFT 1
31472_ACEOF
31473
9b8888f9 31474 CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
479c790c
VZ
31475 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31476 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 31477
3ecd9f92 31478fi
479c790c 31479 save_LIBS="$LIBS"
479c790c 31480 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
31481
31482for ac_func in pango_font_family_is_monospace
31483do
31484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
31485echo "$as_me:$LINENO: checking for $ac_func" >&5
31486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31487if eval "test \"\${$as_ac_var+set}\" = set"; then
304205f1
VS
31488 echo $ECHO_N "(cached) $ECHO_C" >&6
31489else
31490 cat >conftest.$ac_ext <<_ACEOF
31491/* confdefs.h. */
31492_ACEOF
31493cat confdefs.h >>conftest.$ac_ext
31494cat >>conftest.$ac_ext <<_ACEOF
31495/* end confdefs.h. */
31496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31498#define $ac_func innocuous_$ac_func
31499
31500/* System header to define __stub macros and hopefully few prototypes,
31501 which can conflict with char $ac_func (); below.
31502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31503 <limits.h> exists even on freestanding compilers. */
31504
31505#ifdef __STDC__
31506# include <limits.h>
31507#else
31508# include <assert.h>
31509#endif
31510
31511#undef $ac_func
31512
f321ab7f 31513/* Override any gcc2 internal prototype to avoid an error. */
304205f1
VS
31514#ifdef __cplusplus
31515extern "C"
f321ab7f 31516{
304205f1 31517#endif
f321ab7f
VS
31518/* We use char because int might match the return type of a gcc2
31519 builtin and then its argument prototype would still apply. */
304205f1
VS
31520char $ac_func ();
31521/* The GNU C library defines this for functions which it implements
31522 to always fail with ENOSYS. Some functions are actually named
31523 something starting with __ and the normal name is an alias. */
f321ab7f 31524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
304205f1 31525choke me
f321ab7f
VS
31526#else
31527char (*f) () = $ac_func;
31528#endif
31529#ifdef __cplusplus
31530}
304205f1
VS
31531#endif
31532
31533int
31534main ()
31535{
f321ab7f 31536return f != $ac_func;
304205f1
VS
31537 ;
31538 return 0;
31539}
31540_ACEOF
31541rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
31542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31543 (eval $ac_link) 2>conftest.er1
304205f1
VS
31544 ac_status=$?
31545 grep -v '^ *+' conftest.er1 >conftest.err
31546 rm -f conftest.er1
31547 cat conftest.err >&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); } &&
f321ab7f
VS
31550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552 (eval $ac_try) 2>&5
304205f1
VS
31553 ac_status=$?
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); }; } &&
31556 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
31557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31558 (eval $ac_try) 2>&5
304205f1
VS
31559 ac_status=$?
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); }; }; then
31562 eval "$as_ac_var=yes"
31563else
31564 echo "$as_me: failed program was:" >&5
31565sed 's/^/| /' conftest.$ac_ext >&5
31566
f321ab7f 31567eval "$as_ac_var=no"
304205f1 31568fi
f321ab7f 31569rm -f conftest.err conftest.$ac_objext \
304205f1
VS
31570 conftest$ac_exeext conftest.$ac_ext
31571fi
f321ab7f
VS
31572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
304205f1
VS
31574if test `eval echo '${'$as_ac_var'}'` = yes; then
31575 cat >>confdefs.h <<_ACEOF
31576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31577_ACEOF
31578
31579fi
31580done
31581
479c790c 31582 LIBS="$save_LIBS"
a848cd7e
SC
31583 fi
31584
31585 wxUSE_UNIVERSAL="yes"
31586
31587 if test "$wxUSE_NANOX" = "yes"; then
31588 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31589 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"
31590 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31591 else
31592 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31593 fi
31594
a848cd7e
SC
31595 TOOLKIT=X11
31596 GUIDIST=X11_DIST
31597 fi
31598
31599 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31600 if test "$wxUSE_UNICODE" = "yes"; then
31601 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31602echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31603 { (exit 1); exit 1; }; }
31604 fi
31605
f321ab7f
VS
31606 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31607echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31608
74b84332
VS
31609ac_find_includes=
31610for ac_dir in $SEARCH_INCLUDE /usr/include;
31611 do
31612 if test -f "$ac_dir/Xm/Xm.h"; then
31613 ac_find_includes=$ac_dir
31614 break
31615 fi
31616 done
a848cd7e 31617
74b84332 31618 if test "$ac_find_includes" != "" ; then
f321ab7f
VS
31619 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31620echo "${ECHO_T}found in $ac_find_includes" >&6
74b84332
VS
31621
31622 if test "x$ac_find_includes" = "x/usr/include"; then
31623 ac_path_to_include=""
31624 else
31625 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31626 result=$?
31627 if test $result = 0; then
31628 ac_path_to_include=""
31629 else
31630 ac_path_to_include=" -I$ac_find_includes"
31631 fi
a848cd7e
SC
31632 fi
31633
74b84332
VS
31634 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31635 else
9b8888f9
VZ
31636 save_CFLAGS=$CFLAGS
31637 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 31638
74b84332 31639 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31640/* confdefs.h. */
31641_ACEOF
31642cat confdefs.h >>conftest.$ac_ext
31643cat >>conftest.$ac_ext <<_ACEOF
31644/* end confdefs.h. */
31645
74b84332
VS
31646 #include <Xm/Xm.h>
31647
a848cd7e
SC
31648int
31649main ()
31650{
31651
74b84332
VS
31652 int version;
31653 version = xmUseVersion;
31654
a848cd7e
SC
31655 ;
31656 return 0;
31657}
31658_ACEOF
74b84332 31659rm -f conftest.$ac_objext
f321ab7f
VS
31660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31661 (eval $ac_compile) 2>conftest.er1
a848cd7e 31662 ac_status=$?
ac1cb8d3
VS
31663 grep -v '^ *+' conftest.er1 >conftest.err
31664 rm -f conftest.er1
31665 cat conftest.err >&5
a848cd7e
SC
31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); } &&
f321ab7f
VS
31668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31670 (eval $ac_try) 2>&5
ac1cb8d3
VS
31671 ac_status=$?
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; } &&
74b84332 31674 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
31675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31676 (eval $ac_try) 2>&5
a848cd7e
SC
31677 ac_status=$?
31678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679 (exit $ac_status); }; }; then
74b84332 31680
f321ab7f
VS
31681 echo "$as_me:$LINENO: result: found in default search path" >&5
31682echo "${ECHO_T}found in default search path" >&6
74b84332
VS
31683 COMPILED_X_PROGRAM=1
31684
a848cd7e
SC
31685else
31686 echo "$as_me: failed program was:" >&5
31687sed 's/^/| /' conftest.$ac_ext >&5
31688
a848cd7e 31689
f321ab7f
VS
31690 echo "$as_me:$LINENO: result: no" >&5
31691echo "${ECHO_T}no" >&6
e051b34e
MW
31692 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31693echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31694 { (exit 1); exit 1; }; }
a848cd7e 31695
a848cd7e 31696
a848cd7e 31697fi
f321ab7f 31698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31699
9b8888f9 31700 CFLAGS=$save_CFLAGS
74b84332
VS
31701 fi
31702
0ad5d837 31703
f321ab7f
VS
31704 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31705echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
74b84332 31706
0ad5d837
VZ
31707 ac_find_libraries=
31708 for ac_dir in $SEARCH_LIB;
74b84332 31709 do
3eca31dc 31710 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31711 if test -f "$ac_dir/libXm.$ac_extension"; then
31712 ac_find_libraries=$ac_dir
31713 break 2
a848cd7e 31714 fi
74b84332
VS
31715 done
31716 done
a848cd7e 31717
0ad5d837
VZ
31718
31719 if test "x$ac_find_libraries" != "x" ; then
f321ab7f
VS
31720 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31721echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31722
74b84332 31723
0ad5d837 31724 if test "$ac_find_libraries" = "default location"; then
74b84332 31725 ac_path_to_link=""
a848cd7e 31726 else
0ad5d837
VZ
31727 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31728 result=$?
31729 if test $result = 0; then
31730 ac_path_to_link=""
31731 else
31732 ac_path_to_link=" -L$ac_find_libraries"
31733 fi
74b84332
VS
31734 fi
31735
0ad5d837
VZ
31736 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31737 else
9b8888f9
VZ
31738 save_CFLAGS=$CFLAGS
31739 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
31740 save_LIBS="$LIBS"
31741 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31742
0ad5d837 31743 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31744/* confdefs.h. */
31745_ACEOF
31746cat confdefs.h >>conftest.$ac_ext
31747cat >>conftest.$ac_ext <<_ACEOF
31748/* end confdefs.h. */
31749
0ad5d837 31750 #include <Xm/Xm.h>
74b84332 31751
a848cd7e
SC
31752int
31753main ()
31754{
74b84332 31755
0ad5d837
VZ
31756 int version;
31757 version = xmUseVersion;
74b84332 31758
a848cd7e
SC
31759 ;
31760 return 0;
31761}
31762_ACEOF
0ad5d837 31763rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
31764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31765 (eval $ac_link) 2>conftest.er1
a848cd7e 31766 ac_status=$?
ac1cb8d3
VS
31767 grep -v '^ *+' conftest.er1 >conftest.err
31768 rm -f conftest.er1
31769 cat conftest.err >&5
a848cd7e
SC
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); } &&
f321ab7f
VS
31772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31774 (eval $ac_try) 2>&5
ac1cb8d3
VS
31775 ac_status=$?
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); }; } &&
0ad5d837 31778 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
31779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780 (eval $ac_try) 2>&5
a848cd7e
SC
31781 ac_status=$?
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; }; then
74b84332 31784
f321ab7f
VS
31785 echo "$as_me:$LINENO: result: found in default search path" >&5
31786echo "${ECHO_T}found in default search path" >&6
0ad5d837 31787 COMPILED_X_PROGRAM=1
74b84332 31788
a848cd7e
SC
31789else
31790 echo "$as_me: failed program was:" >&5
31791sed 's/^/| /' conftest.$ac_ext >&5
31792
74b84332 31793
f321ab7f
VS
31794 echo "$as_me:$LINENO: result: no" >&5
31795echo "${ECHO_T}no" >&6
6f9cf1e6 31796 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31797echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31798 { (exit 1); exit 1; }; }
31799
31800
31801fi
f321ab7f 31802rm -f conftest.err conftest.$ac_objext \
0ad5d837 31803 conftest$ac_exeext conftest.$ac_ext
74b84332 31804
9b8888f9 31805 CFLAGS=$save_CFLAGS
6f9cf1e6 31806 LIBS="$save_LIBS"
74b84332
VS
31807 fi
31808
f321ab7f
VS
31809 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31810echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
74b84332
VS
31811 libp_link=""
31812 libsm_ice_link=""
31813 libs_found=0
31814 for libp in "" " -lXp"; do
31815 if test "$libs_found" = "0"; then
31816 for libsm_ice in "" " -lSM -lICE"; do
31817 if test "$libs_found" = "0"; then
31818 save_LIBS="$LIBS"
31819 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
9b8888f9
VZ
31820 save_CFLAGS=$CFLAGS
31821 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
31822
31823 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31824/* confdefs.h. */
31825_ACEOF
31826cat confdefs.h >>conftest.$ac_ext
31827cat >>conftest.$ac_ext <<_ACEOF
31828/* end confdefs.h. */
31829
74b84332
VS
31830 #include <Xm/Xm.h>
31831 #include <Xm/List.h>
31832
a848cd7e
SC
31833int
31834main ()
31835{
74b84332
VS
31836
31837 XmString string = NULL;
31838 Widget w = NULL;
31839 int position = 0;
31840 XmListAddItem(w, string, position);
31841
a848cd7e
SC
31842 ;
31843 return 0;
31844}
31845_ACEOF
31846rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
31847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31848 (eval $ac_link) 2>conftest.er1
a848cd7e 31849 ac_status=$?
ac1cb8d3
VS
31850 grep -v '^ *+' conftest.er1 >conftest.err
31851 rm -f conftest.er1
31852 cat conftest.err >&5
a848cd7e
SC
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); } &&
f321ab7f
VS
31855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31857 (eval $ac_try) 2>&5
ac1cb8d3
VS
31858 ac_status=$?
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); }; } &&
31861 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
31862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31863 (eval $ac_try) 2>&5
a848cd7e
SC
31864 ac_status=$?
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); }; }; then
31867
31868 libp_link="$libp"
31869 libsm_ice_link="$libsm_ice"
f321ab7f
VS
31870 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31871echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
a848cd7e
SC
31872 libs_found=1
31873
31874else
31875 echo "$as_me: failed program was:" >&5
31876sed 's/^/| /' conftest.$ac_ext >&5
31877
31878
31879
31880fi
f321ab7f 31881rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 31882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31883
31884 LIBS="$save_LIBS"
9b8888f9 31885 CFLAGS=$save_CFLAGS
a848cd7e
SC
31886 fi
31887 done
31888 fi
31889 done
31890
31891 if test "$libs_found" = "0"; then
f321ab7f
VS
31892 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31893echo "${ECHO_T}can't find the right libraries" >&6
a848cd7e
SC
31894 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31895echo "$as_me: error: can't link a simple motif program" >&2;}
31896 { (exit 1); exit 1; }; }
31897 fi
31898
f321ab7f
VS
31899 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31900echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
62fa8b3a
MW
31901if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31902 echo $ECHO_N "(cached) $ECHO_C" >&6
31903else
31904 ac_check_lib_save_LIBS=$LIBS
31905LIBS="-lSgm $LIBS"
31906cat >conftest.$ac_ext <<_ACEOF
31907/* confdefs.h. */
31908_ACEOF
31909cat confdefs.h >>conftest.$ac_ext
31910cat >>conftest.$ac_ext <<_ACEOF
31911/* end confdefs.h. */
31912
f321ab7f 31913/* Override any gcc2 internal prototype to avoid an error. */
62fa8b3a
MW
31914#ifdef __cplusplus
31915extern "C"
31916#endif
f321ab7f
VS
31917/* We use char because int might match the return type of a gcc2
31918 builtin and then its argument prototype would still apply. */
62fa8b3a
MW
31919char SgCreateList ();
31920int
31921main ()
31922{
f321ab7f 31923SgCreateList ();
62fa8b3a
MW
31924 ;
31925 return 0;
31926}
31927_ACEOF
31928rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
31929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31930 (eval $ac_link) 2>conftest.er1
62fa8b3a
MW
31931 ac_status=$?
31932 grep -v '^ *+' conftest.er1 >conftest.err
31933 rm -f conftest.er1
31934 cat conftest.err >&5
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); } &&
f321ab7f
VS
31937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31939 (eval $ac_try) 2>&5
62fa8b3a
MW
31940 ac_status=$?
31941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942 (exit $ac_status); }; } &&
31943 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
31944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31945 (eval $ac_try) 2>&5
62fa8b3a
MW
31946 ac_status=$?
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); }; }; then
31949 ac_cv_lib_Sgm_SgCreateList=yes
31950else
31951 echo "$as_me: failed program was:" >&5
31952sed 's/^/| /' conftest.$ac_ext >&5
31953
f321ab7f 31954ac_cv_lib_Sgm_SgCreateList=no
62fa8b3a 31955fi
f321ab7f 31956rm -f conftest.err conftest.$ac_objext \
62fa8b3a
MW
31957 conftest$ac_exeext conftest.$ac_ext
31958LIBS=$ac_check_lib_save_LIBS
31959fi
f321ab7f
VS
31960echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31961echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
62fa8b3a
MW
31962if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31963 libsgm_link=" -lSgm"
31964fi
31965
31966
9b8888f9
VZ
31967 save_CFLAGS=$CFLAGS
31968 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 31969
f321ab7f
VS
31970 echo "$as_me:$LINENO: checking for Motif 2" >&5
31971echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31972if test "${wx_cv_lib_motif2+set}" = set; then
31973 echo $ECHO_N "(cached) $ECHO_C" >&6
31974else
31975 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31976/* confdefs.h. */
31977_ACEOF
31978cat confdefs.h >>conftest.$ac_ext
31979cat >>conftest.$ac_ext <<_ACEOF
31980/* end confdefs.h. */
31981
0ad5d837 31982 #include <Xm/Xm.h>
a848cd7e
SC
31983
31984int
31985main ()
31986{
31987
0ad5d837
VZ
31988 #if XmVersion < 2000
31989 Not Motif 2
31990 #endif
a848cd7e
SC
31991
31992 ;
31993 return 0;
31994}
31995_ACEOF
31996rm -f conftest.$ac_objext
f321ab7f
VS
31997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31998 (eval $ac_compile) 2>conftest.er1
a848cd7e 31999 ac_status=$?
ac1cb8d3
VS
32000 grep -v '^ *+' conftest.er1 >conftest.err
32001 rm -f conftest.er1
32002 cat conftest.err >&5
a848cd7e
SC
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); } &&
f321ab7f
VS
32005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007 (eval $ac_try) 2>&5
ac1cb8d3
VS
32008 ac_status=$?
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); }; } &&
32011 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
32012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013 (eval $ac_try) 2>&5
a848cd7e
SC
32014 ac_status=$?
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; }; then
0ad5d837 32017 wx_cv_lib_motif2="yes"
a848cd7e
SC
32018else
32019 echo "$as_me: failed program was:" >&5
32020sed 's/^/| /' conftest.$ac_ext >&5
32021
f321ab7f 32022wx_cv_lib_motif2="no"
0ad5d837 32023fi
f321ab7f 32024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0ad5d837 32025fi
f321ab7f
VS
32026echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32027echo "${ECHO_T}$wx_cv_lib_motif2" >&6
0ad5d837
VZ
32028 if test "$wx_cv_lib_motif2" = "yes"; then
32029 cat >>confdefs.h <<\_ACEOF
32030#define __WXMOTIF20__ 1
32031_ACEOF
a848cd7e 32032
0ad5d837
VZ
32033 else
32034 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32035#define __WXMOTIF20__ 0
32036_ACEOF
32037
0ad5d837 32038 fi
2113bc77 32039
f321ab7f
VS
32040 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32041echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
32042if test "${wx_cv_lib_lesstif+set}" = set; then
32043 echo $ECHO_N "(cached) $ECHO_C" >&6
32044else
32045 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
32046/* confdefs.h. */
32047_ACEOF
32048cat confdefs.h >>conftest.$ac_ext
32049cat >>conftest.$ac_ext <<_ACEOF
32050/* end confdefs.h. */
32051
0ad5d837 32052 #include <Xm/Xm.h>
2113bc77
MW
32053
32054int
32055main ()
32056{
32057
0ad5d837
VZ
32058 #if !defined(LesstifVersion) || LesstifVersion <= 0
32059 Not Lesstif
32060 #endif
2113bc77
MW
32061
32062 ;
32063 return 0;
32064}
32065_ACEOF
32066rm -f conftest.$ac_objext
f321ab7f
VS
32067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32068 (eval $ac_compile) 2>conftest.er1
2113bc77
MW
32069 ac_status=$?
32070 grep -v '^ *+' conftest.er1 >conftest.err
32071 rm -f conftest.er1
32072 cat conftest.err >&5
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); } &&
f321ab7f
VS
32075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32077 (eval $ac_try) 2>&5
2113bc77
MW
32078 ac_status=$?
32079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080 (exit $ac_status); }; } &&
32081 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
32082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32083 (eval $ac_try) 2>&5
2113bc77
MW
32084 ac_status=$?
32085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086 (exit $ac_status); }; }; then
0ad5d837 32087 wx_cv_lib_lesstif="yes"
2113bc77
MW
32088else
32089 echo "$as_me: failed program was:" >&5
32090sed 's/^/| /' conftest.$ac_ext >&5
32091
f321ab7f 32092wx_cv_lib_lesstif="no"
0ad5d837 32093fi
f321ab7f 32094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 32095
0ad5d837 32096fi
f321ab7f
VS
32097echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32098echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
0ad5d837
VZ
32099 if test "$wx_cv_lib_lesstif" = "yes"; then
32100 cat >>confdefs.h <<\_ACEOF
32101#define __WXLESSTIF__ 1
32102_ACEOF
32103
32104 else
32105 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
32106#define __WXLESSTIF__ 0
32107_ACEOF
32108
0ad5d837 32109 fi
2113bc77 32110
9b8888f9 32111 CFLAGS=$save_CFLAGS
a848cd7e 32112
62fa8b3a 32113 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
32114 TOOLKIT=MOTIF
32115 GUIDIST=MOTIF_DIST
32116 fi
32117
74b84332 32118 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e 32119 if test "$wxUSE_LIBXPM" = "sys"; then
f321ab7f
VS
32120 echo "$as_me:$LINENO: checking for Xpm library" >&5
32121echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
a848cd7e 32122
0ad5d837
VZ
32123 ac_find_libraries=
32124 for ac_dir in $SEARCH_LIB;
a848cd7e 32125 do
3eca31dc 32126 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32127 if test -f "$ac_dir/libXpm.$ac_extension"; then
32128 ac_find_libraries=$ac_dir
32129 break 2
32130 fi
32131 done
32132 done
32133
32134 if test "$ac_find_libraries" != "" ; then
32135
0ad5d837 32136 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32137 ac_path_to_link=""
32138 else
0ad5d837
VZ
32139 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32140 result=$?
32141 if test $result = 0; then
32142 ac_path_to_link=""
32143 else
32144 ac_path_to_link=" -L$ac_find_libraries"
32145 fi
a848cd7e
SC
32146 fi
32147
32148 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
f321ab7f
VS
32149 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32150echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 32151
f321ab7f
VS
32152 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32153echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
a848cd7e
SC
32154if test "${wx_cv_x11_xpm_h+set}" = set; then
32155 echo $ECHO_N "(cached) $ECHO_C" >&6
32156else
32157
9b8888f9
VZ
32158 save_CFLAGS=$CFLAGS
32159 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
32160
32161 cat >conftest.$ac_ext <<_ACEOF
32162/* confdefs.h. */
32163_ACEOF
32164cat confdefs.h >>conftest.$ac_ext
32165cat >>conftest.$ac_ext <<_ACEOF
32166/* end confdefs.h. */
32167
32168 #include <X11/xpm.h>
32169
32170int
32171main ()
32172{
32173
32174 int version;
32175 version = XpmLibraryVersion();
32176
32177 ;
32178 return 0;
32179}
32180_ACEOF
32181rm -f conftest.$ac_objext
f321ab7f
VS
32182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32183 (eval $ac_compile) 2>conftest.er1
a848cd7e 32184 ac_status=$?
ac1cb8d3
VS
32185 grep -v '^ *+' conftest.er1 >conftest.err
32186 rm -f conftest.er1
32187 cat conftest.err >&5
a848cd7e
SC
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); } &&
f321ab7f
VS
32190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32192 (eval $ac_try) 2>&5
ac1cb8d3
VS
32193 ac_status=$?
32194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195 (exit $ac_status); }; } &&
32196 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
32197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32198 (eval $ac_try) 2>&5
a848cd7e
SC
32199 ac_status=$?
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); }; }; then
32202 wx_cv_x11_xpm_h=yes
32203else
32204 echo "$as_me: failed program was:" >&5
32205sed 's/^/| /' conftest.$ac_ext >&5
32206
f321ab7f 32207wx_cv_x11_xpm_h=no
a848cd7e
SC
32208
32209fi
f321ab7f 32210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 32211
9b8888f9 32212 CFLAGS=$save_CFLAGS
a848cd7e
SC
32213
32214
32215fi
f321ab7f
VS
32216echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32217echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
a848cd7e
SC
32218
32219 if test $wx_cv_x11_xpm_h = "yes"; then
32220 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32221 cat >>confdefs.h <<\_ACEOF
32222#define wxHAVE_LIB_XPM 1
32223_ACEOF
32224
32225 else
32226 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32227echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32228 fi
32229 fi
32230
32231 fi
32232
f321ab7f
VS
32233 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32234echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
a848cd7e
SC
32235if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32236 echo $ECHO_N "(cached) $ECHO_C" >&6
32237else
32238 ac_check_lib_save_LIBS=$LIBS
32239LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32240cat >conftest.$ac_ext <<_ACEOF
32241/* confdefs.h. */
32242_ACEOF
32243cat confdefs.h >>conftest.$ac_ext
32244cat >>conftest.$ac_ext <<_ACEOF
32245/* end confdefs.h. */
32246
f321ab7f 32247/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
32248#ifdef __cplusplus
32249extern "C"
32250#endif
f321ab7f
VS
32251/* We use char because int might match the return type of a gcc2
32252 builtin and then its argument prototype would still apply. */
a848cd7e
SC
32253char XShapeQueryExtension ();
32254int
32255main ()
32256{
f321ab7f 32257XShapeQueryExtension ();
a848cd7e
SC
32258 ;
32259 return 0;
32260}
32261_ACEOF
32262rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
32263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32264 (eval $ac_link) 2>conftest.er1
a848cd7e 32265 ac_status=$?
ac1cb8d3
VS
32266 grep -v '^ *+' conftest.er1 >conftest.err
32267 rm -f conftest.er1
32268 cat conftest.err >&5
a848cd7e
SC
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); } &&
f321ab7f
VS
32271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32273 (eval $ac_try) 2>&5
ac1cb8d3
VS
32274 ac_status=$?
32275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276 (exit $ac_status); }; } &&
32277 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
32278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279 (eval $ac_try) 2>&5
a848cd7e
SC
32280 ac_status=$?
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; }; then
32283 ac_cv_lib_Xext_XShapeQueryExtension=yes
32284else
32285 echo "$as_me: failed program was:" >&5
32286sed 's/^/| /' conftest.$ac_ext >&5
32287
f321ab7f 32288ac_cv_lib_Xext_XShapeQueryExtension=no
a848cd7e 32289fi
f321ab7f 32290rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 32291 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32292LIBS=$ac_check_lib_save_LIBS
32293fi
f321ab7f
VS
32294echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32295echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
a848cd7e
SC
32296if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32297
32298 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32299 wxHAVE_XEXT_LIB=1
32300
32301fi
32302
32303
32304 if test "$wxHAVE_XEXT_LIB" = 1; then
9b8888f9
VZ
32305 save_CFLAGS="$CFLAGS"
32306 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e 32307
f321ab7f
VS
32308 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32309echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
a848cd7e
SC
32310 cat >conftest.$ac_ext <<_ACEOF
32311/* confdefs.h. */
32312_ACEOF
32313cat confdefs.h >>conftest.$ac_ext
32314cat >>conftest.$ac_ext <<_ACEOF
32315/* end confdefs.h. */
32316
32317 #include <X11/Xlib.h>
32318 #include <X11/extensions/shape.h>
32319
32320int
32321main ()
32322{
32323
32324 int dummy1, dummy2;
32325 XShapeQueryExtension((Display*)NULL,
32326 (int*)NULL, (int*)NULL);
32327
32328 ;
32329 return 0;
32330}
32331_ACEOF
32332rm -f conftest.$ac_objext
f321ab7f
VS
32333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32334 (eval $ac_compile) 2>conftest.er1
a848cd7e 32335 ac_status=$?
ac1cb8d3
VS
32336 grep -v '^ *+' conftest.er1 >conftest.err
32337 rm -f conftest.er1
32338 cat conftest.err >&5
a848cd7e
SC
32339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340 (exit $ac_status); } &&
f321ab7f
VS
32341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32343 (eval $ac_try) 2>&5
ac1cb8d3
VS
32344 ac_status=$?
32345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346 (exit $ac_status); }; } &&
32347 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
32348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32349 (eval $ac_try) 2>&5
a848cd7e
SC
32350 ac_status=$?
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); }; }; then
32353
32354 cat >>confdefs.h <<\_ACEOF
32355#define HAVE_XSHAPE 1
32356_ACEOF
32357
f321ab7f
VS
32358 echo "$as_me:$LINENO: result: found" >&5
32359echo "${ECHO_T}found" >&6
a848cd7e
SC
32360
32361else
32362 echo "$as_me: failed program was:" >&5
32363sed 's/^/| /' conftest.$ac_ext >&5
32364
32365
f321ab7f
VS
32366 echo "$as_me:$LINENO: result: not found" >&5
32367echo "${ECHO_T}not found" >&6
a848cd7e
SC
32368
32369fi
f321ab7f 32370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9 32371 CFLAGS="$save_CFLAGS"
a848cd7e
SC
32372
32373 fi
32374 fi
32375
32376 if test "$wxUSE_MAC" = 1; then
f321ab7f
VS
32377 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32378echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
a848cd7e 32379 if test "$GCC" = yes; then
f321ab7f
VS
32380 echo "$as_me:$LINENO: result: gcc" >&5
32381echo "${ECHO_T}gcc" >&6
a848cd7e
SC
32382 CPPFLAGS_PASCAL="-fpascal-strings"
32383 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
f321ab7f
VS
32384 echo "$as_me:$LINENO: result: xlc" >&5
32385echo "${ECHO_T}xlc" >&6
a848cd7e
SC
32386 CPPFLAGS_PASCAL="-qmacpstr"
32387 else
f321ab7f
VS
32388 echo "$as_me:$LINENO: result: none" >&5
32389echo "${ECHO_T}none" >&6
a848cd7e
SC
32390 fi
32391
1e9e8aba 32392 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 32393 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 32394 else
c92ad099 32395 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 32396 fi
a848cd7e 32397
a848cd7e
SC
32398 TOOLKIT=MAC
32399 GUIDIST=MACX_DIST
dd21ced8 32400 WXBASEPORT="_carbon"
a848cd7e
SC
32401 fi
32402
32403 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
32404 TOOLKIT=COCOA
32405 GUIDIST=COCOA_DIST
32406 fi
32407
32408 if test "$wxUSE_PM" = 1; then
32409 TOOLKIT=PM
de59c161 32410 GUIDIST=PM_DIST
f321ab7f
VS
32411 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32412echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
de59c161
RD
32413if test "${wx_cv_spbcdata+set}" = set; then
32414 echo $ECHO_N "(cached) $ECHO_C" >&6
32415else
32416
32417 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
32418/* confdefs.h. */
32419_ACEOF
32420cat confdefs.h >>conftest.$ac_ext
32421cat >>conftest.$ac_ext <<_ACEOF
32422/* end confdefs.h. */
32423
32424 #define INCL_PM
32425 #include <os2.h>
32426
32427int
32428main ()
32429{
32430
32431 SPBCDATA test;
32432
32433 ;
32434 return 0;
32435}
32436_ACEOF
32437rm -f conftest.$ac_objext
f321ab7f
VS
32438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32439 (eval $ac_compile) 2>conftest.er1
de59c161 32440 ac_status=$?
ac1cb8d3
VS
32441 grep -v '^ *+' conftest.er1 >conftest.err
32442 rm -f conftest.er1
32443 cat conftest.err >&5
de59c161
RD
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } &&
f321ab7f
VS
32446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448 (eval $ac_try) 2>&5
ac1cb8d3
VS
32449 ac_status=$?
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); }; } &&
32452 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
de59c161
RD
32455 ac_status=$?
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; }; then
32458 wx_cv_spbcdata=yes
32459else
32460 echo "$as_me: failed program was:" >&5
32461sed 's/^/| /' conftest.$ac_ext >&5
32462
f321ab7f 32463wx_cv_spbcdata=no
de59c161
RD
32464
32465fi
f321ab7f 32466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32467
32468
32469fi
f321ab7f
VS
32470echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32471echo "${ECHO_T}$wx_cv_spbcdata" >&6
de59c161
RD
32472
32473 if test $wx_cv_spbcdata = "yes"; then
32474 cat >>confdefs.h <<\_ACEOF
32475#define HAVE_SPBCDATA 1
32476_ACEOF
32477
32478 fi
a848cd7e
SC
32479 fi
32480
32481 if test "$TOOLKIT" = "PM" ; then
32482 TOOLKIT_DIR="os2"
32483 else
32484 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32485 fi
32486
a848cd7e 32487 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32488 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32489 WIDGET_SET=univ
a848cd7e
SC
32490 fi
32491
32492 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32493 DISTDIR="wx\$(TOOLKIT)"
32494else
32495 USE_GUI=0
32496
32497 TOOLKIT_DIR="base"
32498
32499 if test "$USE_WIN32" = 1 ; then
a848cd7e 32500 TOOLKIT="MSW"
a848cd7e
SC
32501 fi
32502
a848cd7e
SC
32503 GUIDIST="BASE_DIST"
32504 DISTDIR="wxBase"
32505fi
32506
32507
d12aef51
VZ
32508if test "$wxUSE_GUI" = "yes"; then
32509 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32510
32511for ac_header in X11/Xlib.h
32512do
32513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
32514if eval "test \"\${$as_ac_Header+set}\" = set"; then
32515 echo "$as_me:$LINENO: checking for $ac_header" >&5
32516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32517if eval "test \"\${$as_ac_Header+set}\" = set"; then
d12aef51
VZ
32518 echo $ECHO_N "(cached) $ECHO_C" >&6
32519fi
f321ab7f
VS
32520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d12aef51
VZ
32522else
32523 # Is the header compilable?
f321ab7f
VS
32524echo "$as_me:$LINENO: checking $ac_header usability" >&5
32525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
d12aef51
VZ
32526cat >conftest.$ac_ext <<_ACEOF
32527/* confdefs.h. */
32528_ACEOF
32529cat confdefs.h >>conftest.$ac_ext
32530cat >>conftest.$ac_ext <<_ACEOF
32531/* end confdefs.h. */
32532$ac_includes_default
32533#include <$ac_header>
32534_ACEOF
32535rm -f conftest.$ac_objext
f321ab7f
VS
32536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32537 (eval $ac_compile) 2>conftest.er1
d12aef51
VZ
32538 ac_status=$?
32539 grep -v '^ *+' conftest.er1 >conftest.err
32540 rm -f conftest.er1
32541 cat conftest.err >&5
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); } &&
f321ab7f
VS
32544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
d12aef51
VZ
32547 ac_status=$?
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; } &&
32550 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
32551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32552 (eval $ac_try) 2>&5
d12aef51
VZ
32553 ac_status=$?
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); }; }; then
32556 ac_header_compiler=yes
32557else
32558 echo "$as_me: failed program was:" >&5
32559sed 's/^/| /' conftest.$ac_ext >&5
32560
f321ab7f 32561ac_header_compiler=no
d12aef51 32562fi
f321ab7f
VS
32563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32564echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32565echo "${ECHO_T}$ac_header_compiler" >&6
d12aef51
VZ
32566
32567# Is the header present?
f321ab7f
VS
32568echo "$as_me:$LINENO: checking $ac_header presence" >&5
32569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
d12aef51
VZ
32570cat >conftest.$ac_ext <<_ACEOF
32571/* confdefs.h. */
32572_ACEOF
32573cat confdefs.h >>conftest.$ac_ext
32574cat >>conftest.$ac_ext <<_ACEOF
32575/* end confdefs.h. */
32576#include <$ac_header>
32577_ACEOF
f321ab7f
VS
32578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d12aef51
VZ
32580 ac_status=$?
32581 grep -v '^ *+' conftest.er1 >conftest.err
32582 rm -f conftest.er1
32583 cat conftest.err >&5
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); } >/dev/null; then
32586 if test -s conftest.err; then
fd5199d6
VZ
32587 ac_cpp_err=$ac_c_preproc_warn_flag
32588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d12aef51
VZ
32589 else
32590 ac_cpp_err=
32591 fi
32592else
32593 ac_cpp_err=yes
32594fi
32595if test -z "$ac_cpp_err"; then
32596 ac_header_preproc=yes
32597else
32598 echo "$as_me: failed program was:" >&5
32599sed 's/^/| /' conftest.$ac_ext >&5
32600
32601 ac_header_preproc=no
32602fi
32603rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
32604echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32605echo "${ECHO_T}$ac_header_preproc" >&6
d12aef51
VZ
32606
32607# So? What about this header?
fd5199d6 32608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
d12aef51
VZ
32609 yes:no: )
32610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32614 ac_header_preproc=yes
32615 ;;
32616 no:yes:* )
32617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32620echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32624echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
32629 (
32630 cat <<\_ASBOX
d12aef51
VZ
32631## ----------------------------------------- ##
32632## Report this to wx-dev@lists.wxwidgets.org ##
32633## ----------------------------------------- ##
32634_ASBOX
f321ab7f
VS
32635 ) |
32636 sed "s/^/$as_me: WARNING: /" >&2
d12aef51
VZ
32637 ;;
32638esac
f321ab7f
VS
32639echo "$as_me:$LINENO: checking for $ac_header" >&5
32640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32641if eval "test \"\${$as_ac_Header+set}\" = set"; then
d12aef51
VZ
32642 echo $ECHO_N "(cached) $ECHO_C" >&6
32643else
32644 eval "$as_ac_Header=\$ac_header_preproc"
32645fi
f321ab7f
VS
32646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d12aef51
VZ
32648
32649fi
32650if test `eval echo '${'$as_ac_Header'}'` = yes; then
32651 cat >>confdefs.h <<_ACEOF
32652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32653_ACEOF
32654
32655fi
32656
32657done
32658
32659
32660for ac_header in X11/XKBlib.h
32661do
32662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
32663echo "$as_me:$LINENO: checking for $ac_header" >&5
32664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32665if eval "test \"\${$as_ac_Header+set}\" = set"; then
d12aef51
VZ
32666 echo $ECHO_N "(cached) $ECHO_C" >&6
32667else
32668 cat >conftest.$ac_ext <<_ACEOF
32669/* confdefs.h. */
32670_ACEOF
32671cat confdefs.h >>conftest.$ac_ext
32672cat >>conftest.$ac_ext <<_ACEOF
32673/* end confdefs.h. */
32674
32675 #if HAVE_X11_XLIB_H
32676 #include <X11/Xlib.h>
32677 #endif
32678
32679
32680#include <$ac_header>
32681_ACEOF
32682rm -f conftest.$ac_objext
f321ab7f
VS
32683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32684 (eval $ac_compile) 2>conftest.er1
d12aef51
VZ
32685 ac_status=$?
32686 grep -v '^ *+' conftest.er1 >conftest.err
32687 rm -f conftest.er1
32688 cat conftest.err >&5
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); } &&
f321ab7f
VS
32691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32693 (eval $ac_try) 2>&5
d12aef51
VZ
32694 ac_status=$?
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); }; } &&
32697 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
32698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32699 (eval $ac_try) 2>&5
d12aef51
VZ
32700 ac_status=$?
32701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702 (exit $ac_status); }; }; then
32703 eval "$as_ac_Header=yes"
32704else
32705 echo "$as_me: failed program was:" >&5
32706sed 's/^/| /' conftest.$ac_ext >&5
32707
f321ab7f 32708eval "$as_ac_Header=no"
d12aef51 32709fi
f321ab7f 32710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d12aef51 32711fi
f321ab7f
VS
32712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d12aef51
VZ
32714if test `eval echo '${'$as_ac_Header'}'` = yes; then
32715 cat >>confdefs.h <<_ACEOF
32716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32717_ACEOF
32718
32719fi
32720
32721done
32722
32723 fi
32724fi
32725
a848cd7e
SC
32726
32727
32728IODBC_C_SRC=""
32729
32730
32731if test "$TOOLKIT" != "MSW" ; then
32732
32733 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32734
32735 if test "${ac_cv_header_sql_h+set}" = set; then
f321ab7f
VS
32736 echo "$as_me:$LINENO: checking for sql.h" >&5
32737echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
a848cd7e
SC
32738if test "${ac_cv_header_sql_h+set}" = set; then
32739 echo $ECHO_N "(cached) $ECHO_C" >&6
32740fi
f321ab7f
VS
32741echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32742echo "${ECHO_T}$ac_cv_header_sql_h" >&6
a848cd7e
SC
32743else
32744 # Is the header compilable?
f321ab7f
VS
32745echo "$as_me:$LINENO: checking sql.h usability" >&5
32746echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
a848cd7e
SC
32747cat >conftest.$ac_ext <<_ACEOF
32748/* confdefs.h. */
32749_ACEOF
32750cat confdefs.h >>conftest.$ac_ext
32751cat >>conftest.$ac_ext <<_ACEOF
32752/* end confdefs.h. */
32753$ac_includes_default
32754#include <sql.h>
32755_ACEOF
32756rm -f conftest.$ac_objext
f321ab7f
VS
32757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32758 (eval $ac_compile) 2>conftest.er1
a848cd7e 32759 ac_status=$?
ac1cb8d3
VS
32760 grep -v '^ *+' conftest.er1 >conftest.err
32761 rm -f conftest.er1
32762 cat conftest.err >&5
a848cd7e
SC
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); } &&
f321ab7f
VS
32765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32767 (eval $ac_try) 2>&5
ac1cb8d3
VS
32768 ac_status=$?
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); }; } &&
32771 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
32772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32773 (eval $ac_try) 2>&5
a848cd7e
SC
32774 ac_status=$?
32775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776 (exit $ac_status); }; }; then
32777 ac_header_compiler=yes
32778else
32779 echo "$as_me: failed program was:" >&5
32780sed 's/^/| /' conftest.$ac_ext >&5
32781
f321ab7f 32782ac_header_compiler=no
a848cd7e 32783fi
f321ab7f
VS
32784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32786echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
32787
32788# Is the header present?
f321ab7f
VS
32789echo "$as_me:$LINENO: checking sql.h presence" >&5
32790echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
a848cd7e
SC
32791cat >conftest.$ac_ext <<_ACEOF
32792/* confdefs.h. */
32793_ACEOF
32794cat confdefs.h >>conftest.$ac_ext
32795cat >>conftest.$ac_ext <<_ACEOF
32796/* end confdefs.h. */
32797#include <sql.h>
32798_ACEOF
f321ab7f
VS
32799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
32801 ac_status=$?
32802 grep -v '^ *+' conftest.er1 >conftest.err
32803 rm -f conftest.er1
32804 cat conftest.err >&5
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); } >/dev/null; then
32807 if test -s conftest.err; then
fd5199d6
VZ
32808 ac_cpp_err=$ac_c_preproc_warn_flag
32809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32810 else
32811 ac_cpp_err=
32812 fi
32813else
32814 ac_cpp_err=yes
32815fi
32816if test -z "$ac_cpp_err"; then
32817 ac_header_preproc=yes
32818else
32819 echo "$as_me: failed program was:" >&5
32820sed 's/^/| /' conftest.$ac_ext >&5
32821
32822 ac_header_preproc=no
32823fi
32824rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
32825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32826echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
32827
32828# So? What about this header?
fd5199d6 32829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 32830 yes:no: )
a848cd7e
SC
32831 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32832echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32833 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32834echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32835 ac_header_preproc=yes
a848cd7e 32836 ;;
ac1cb8d3 32837 no:yes:* )
a848cd7e
SC
32838 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32839echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32840 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32841echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32842 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32843echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32844 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32845echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32846 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32847echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32848 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32849echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
32850 (
32851 cat <<\_ASBOX
ac1cb8d3
VS
32852## ----------------------------------------- ##
32853## Report this to wx-dev@lists.wxwidgets.org ##
32854## ----------------------------------------- ##
a848cd7e 32855_ASBOX
f321ab7f
VS
32856 ) |
32857 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
32858 ;;
32859esac
f321ab7f
VS
32860echo "$as_me:$LINENO: checking for sql.h" >&5
32861echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
a848cd7e
SC
32862if test "${ac_cv_header_sql_h+set}" = set; then
32863 echo $ECHO_N "(cached) $ECHO_C" >&6
32864else
32865 ac_cv_header_sql_h=$ac_header_preproc
32866fi
f321ab7f
VS
32867echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32868echo "${ECHO_T}$ac_cv_header_sql_h" >&6
a848cd7e
SC
32869
32870fi
32871if test $ac_cv_header_sql_h = yes; then
32872 found_sql_h=1
32873fi
32874
32875
32876 if test "x$found_sql_h" = "x1" ; then
f321ab7f
VS
32877 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32878echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
a848cd7e
SC
32879if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32880 echo $ECHO_N "(cached) $ECHO_C" >&6
32881else
32882 ac_check_lib_save_LIBS=$LIBS
32883LIBS="-liodbc $LIBS"
32884cat >conftest.$ac_ext <<_ACEOF
32885/* confdefs.h. */
32886_ACEOF
32887cat confdefs.h >>conftest.$ac_ext
32888cat >>conftest.$ac_ext <<_ACEOF
32889/* end confdefs.h. */
32890
f321ab7f 32891/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
32892#ifdef __cplusplus
32893extern "C"
32894#endif
f321ab7f
VS
32895/* We use char because int might match the return type of a gcc2
32896 builtin and then its argument prototype would still apply. */
a848cd7e
SC
32897char SQLAllocEnv ();
32898int
32899main ()
32900{
f321ab7f 32901SQLAllocEnv ();
a848cd7e
SC
32902 ;
32903 return 0;
32904}
32905_ACEOF
32906rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
32907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32908 (eval $ac_link) 2>conftest.er1
a848cd7e 32909 ac_status=$?
ac1cb8d3
VS
32910 grep -v '^ *+' conftest.er1 >conftest.err
32911 rm -f conftest.er1
32912 cat conftest.err >&5
a848cd7e
SC
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); } &&
f321ab7f
VS
32915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32917 (eval $ac_try) 2>&5
ac1cb8d3
VS
32918 ac_status=$?
32919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920 (exit $ac_status); }; } &&
32921 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
32922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32923 (eval $ac_try) 2>&5
a848cd7e
SC
32924 ac_status=$?
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); }; }; then
32927 ac_cv_lib_iodbc_SQLAllocEnv=yes
32928else
32929 echo "$as_me: failed program was:" >&5
32930sed 's/^/| /' conftest.$ac_ext >&5
32931
f321ab7f 32932ac_cv_lib_iodbc_SQLAllocEnv=no
a848cd7e 32933fi
f321ab7f 32934rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 32935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32936LIBS=$ac_check_lib_save_LIBS
32937fi
f321ab7f
VS
32938echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32939echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
a848cd7e
SC
32940if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32941 ODBC_LINK=" -liodbc"
32942else
32943
f321ab7f
VS
32944 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32945echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
a848cd7e
SC
32946if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32947 echo $ECHO_N "(cached) $ECHO_C" >&6
32948else
32949 ac_check_lib_save_LIBS=$LIBS
32950LIBS="-lunixodbc $LIBS"
32951cat >conftest.$ac_ext <<_ACEOF
32952/* confdefs.h. */
32953_ACEOF
32954cat confdefs.h >>conftest.$ac_ext
32955cat >>conftest.$ac_ext <<_ACEOF
32956/* end confdefs.h. */
32957
f321ab7f 32958/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
32959#ifdef __cplusplus
32960extern "C"
32961#endif
f321ab7f
VS
32962/* We use char because int might match the return type of a gcc2
32963 builtin and then its argument prototype would still apply. */
a848cd7e
SC
32964char SQLAllocEnv ();
32965int
32966main ()
32967{
f321ab7f 32968SQLAllocEnv ();
a848cd7e
SC
32969 ;
32970 return 0;
32971}
32972_ACEOF
32973rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
32974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32975 (eval $ac_link) 2>conftest.er1
a848cd7e 32976 ac_status=$?
ac1cb8d3
VS
32977 grep -v '^ *+' conftest.er1 >conftest.err
32978 rm -f conftest.er1
32979 cat conftest.err >&5
a848cd7e
SC
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); } &&
f321ab7f
VS
32982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32984 (eval $ac_try) 2>&5
ac1cb8d3
VS
32985 ac_status=$?
32986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987 (exit $ac_status); }; } &&
32988 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
32989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32990 (eval $ac_try) 2>&5
a848cd7e
SC
32991 ac_status=$?
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993 (exit $ac_status); }; }; then
32994 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32995else
32996 echo "$as_me: failed program was:" >&5
32997sed 's/^/| /' conftest.$ac_ext >&5
32998
f321ab7f 32999ac_cv_lib_unixodbc_SQLAllocEnv=no
a848cd7e 33000fi
f321ab7f 33001rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 33002 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33003LIBS=$ac_check_lib_save_LIBS
33004fi
f321ab7f
VS
33005echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
33006echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
a848cd7e
SC
33007if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
33008 ODBC_LINK=" -lunixodbc"
33009else
33010
f321ab7f
VS
33011 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
33012echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
a848cd7e
SC
33013if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
33014 echo $ECHO_N "(cached) $ECHO_C" >&6
33015else
33016 ac_check_lib_save_LIBS=$LIBS
33017LIBS="-lodbc $LIBS"
33018cat >conftest.$ac_ext <<_ACEOF
33019/* confdefs.h. */
33020_ACEOF
33021cat confdefs.h >>conftest.$ac_ext
33022cat >>conftest.$ac_ext <<_ACEOF
33023/* end confdefs.h. */
33024
f321ab7f 33025/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
33026#ifdef __cplusplus
33027extern "C"
33028#endif
f321ab7f
VS
33029/* We use char because int might match the return type of a gcc2
33030 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33031char SQLAllocEnv ();
33032int
33033main ()
33034{
f321ab7f 33035SQLAllocEnv ();
a848cd7e
SC
33036 ;
33037 return 0;
33038}
33039_ACEOF
33040rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
33041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33042 (eval $ac_link) 2>conftest.er1
a848cd7e 33043 ac_status=$?
ac1cb8d3
VS
33044 grep -v '^ *+' conftest.er1 >conftest.err
33045 rm -f conftest.er1
33046 cat conftest.err >&5
a848cd7e
SC
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); } &&
f321ab7f
VS
33049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051 (eval $ac_try) 2>&5
ac1cb8d3
VS
33052 ac_status=$?
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; } &&
33055 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
33056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 (eval $ac_try) 2>&5
a848cd7e
SC
33058 ac_status=$?
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; }; then
33061 ac_cv_lib_odbc_SQLAllocEnv=yes
33062else
33063 echo "$as_me: failed program was:" >&5
33064sed 's/^/| /' conftest.$ac_ext >&5
33065
f321ab7f 33066ac_cv_lib_odbc_SQLAllocEnv=no
a848cd7e 33067fi
f321ab7f 33068rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 33069 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33070LIBS=$ac_check_lib_save_LIBS
33071fi
f321ab7f
VS
33072echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
33073echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
a848cd7e
SC
33074if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
33075 ODBC_LINK=" -lodbc"
33076fi
33077
33078
33079fi
33080
33081
33082fi
33083
33084 fi
33085 if test "x$ODBC_LINK" = "x" ; then
33086 if test "$wxUSE_ODBC" = "sys" ; then
33087 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
33088echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
33089 { (exit 1); exit 1; }; }
33090 else
33091 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
33092echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
33093 wxUSE_ODBC=builtin
33094 fi
33095 else
33096 wxUSE_ODBC=sys
33097 fi
33098 fi
a848cd7e 33099
2da0c077
RD
33100 if test "$wxUSE_ODBC" = "builtin" ; then
33101 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33102#define wxUSE_BUILTIN_IODBC 1
33103_ACEOF
33104
a848cd7e
SC
33105 fi
33106fi
33107
2da0c077
RD
33108if test "$wxUSE_ODBC" != "no" ; then
33109 cat >>confdefs.h <<\_ACEOF
33110#define wxUSE_ODBC 1
33111_ACEOF
33112
33113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
33114
5ff751d6 33115 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 33116fi
a848cd7e 33117
01cb68df 33118
a848cd7e 33119if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 33120 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
f321ab7f
VS
33121 echo "$as_me:$LINENO: checking for Xinerama" >&5
33122echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
a848cd7e 33123
0ad5d837
VZ
33124 ac_find_libraries=
33125 for ac_dir in $SEARCH_LIB;
33126 do
33127 for ac_extension in a so sl dylib dll.a; do
33128 if test -f "$ac_dir/libXinerama.$ac_extension"; then
33129 ac_find_libraries=$ac_dir
33130 break 2
33131 fi
33132 done
33133 done
33134
a848cd7e
SC
33135 if test "$ac_find_libraries" != "" ; then
33136
0ad5d837 33137 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33138 ac_path_to_link=""
33139 else
0ad5d837
VZ
33140 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33141 result=$?
33142 if test $result = 0; then
33143 ac_path_to_link=""
33144 else
33145 ac_path_to_link=" -L$ac_find_libraries"
33146 fi
a848cd7e
SC
33147 fi
33148
33149 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33150 LDFLAGS="$LDFLAGS $ac_path_to_link"
33151 fi
33152 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
f321ab7f
VS
33153 echo "$as_me:$LINENO: result: yes" >&5
33154echo "${ECHO_T}yes" >&6
a848cd7e 33155
f321ab7f
VS
33156 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
33157echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
a848cd7e 33158
0ad5d837
VZ
33159 ac_find_libraries=
33160 for ac_dir in $SEARCH_LIB;
a848cd7e 33161 do
3eca31dc 33162 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33163 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33164 ac_find_libraries=$ac_dir
33165 break 2
33166 fi
33167 done
33168 done
33169
33170 if test "$ac_find_libraries" != "" ; then
f321ab7f
VS
33171 echo "$as_me:$LINENO: result: yes" >&5
33172echo "${ECHO_T}yes" >&6
a848cd7e
SC
33173
33174for ac_header in X11/extensions/xf86vmode.h
33175do
33176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
33177echo "$as_me:$LINENO: checking for $ac_header" >&5
33178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33179if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
33180 echo $ECHO_N "(cached) $ECHO_C" >&6
33181else
33182 cat >conftest.$ac_ext <<_ACEOF
33183/* confdefs.h. */
33184_ACEOF
33185cat confdefs.h >>conftest.$ac_ext
33186cat >>conftest.$ac_ext <<_ACEOF
33187/* end confdefs.h. */
33188
33189 #if HAVE_X11_XLIB_H
33190 #include <X11/Xlib.h>
33191 #endif
33192
33193
33194#include <$ac_header>
33195_ACEOF
33196rm -f conftest.$ac_objext
f321ab7f
VS
33197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33198 (eval $ac_compile) 2>conftest.er1
a848cd7e 33199 ac_status=$?
ac1cb8d3
VS
33200 grep -v '^ *+' conftest.er1 >conftest.err
33201 rm -f conftest.er1
33202 cat conftest.err >&5
a848cd7e
SC
33203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204 (exit $ac_status); } &&
f321ab7f
VS
33205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33207 (eval $ac_try) 2>&5
ac1cb8d3
VS
33208 ac_status=$?
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); }; } &&
33211 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
33212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33213 (eval $ac_try) 2>&5
a848cd7e
SC
33214 ac_status=$?
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); }; }; then
33217 eval "$as_ac_Header=yes"
33218else
33219 echo "$as_me: failed program was:" >&5
33220sed 's/^/| /' conftest.$ac_ext >&5
33221
f321ab7f 33222eval "$as_ac_Header=no"
a848cd7e 33223fi
f321ab7f 33224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 33225fi
f321ab7f
VS
33226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
33228if test `eval echo '${'$as_ac_Header'}'` = yes; then
33229 cat >>confdefs.h <<_ACEOF
33230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33231_ACEOF
33232
33233 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33234
33235fi
33236
33237done
33238
33239 else
f321ab7f
VS
33240 echo "$as_me:$LINENO: result: no" >&5
33241echo "${ECHO_T}no" >&6
a848cd7e
SC
33242 fi
33243
33244 else
f321ab7f
VS
33245 echo "$as_me:$LINENO: result: no" >&5
33246echo "${ECHO_T}no" >&6
dcc1b6ad
VS
33247 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33248echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
33249 wxUSE_DISPLAY="no"
33250 fi
01cb68df
RG
33251 elif test "$wxUSE_MSW" = 1; then
33252
e5efa97e 33253for ac_header in ddraw.h
01cb68df
RG
33254do
33255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
33256echo "$as_me:$LINENO: checking for $ac_header" >&5
33257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33258if eval "test \"\${$as_ac_Header+set}\" = set"; then
01cb68df 33259 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 33260else
5294a27e 33261 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
33262/* confdefs.h. */
33263_ACEOF
33264cat confdefs.h >>conftest.$ac_ext
33265cat >>conftest.$ac_ext <<_ACEOF
33266/* end confdefs.h. */
5294a27e
VZ
33267#include <windows.h>
33268
01cb68df
RG
33269#include <$ac_header>
33270_ACEOF
33271rm -f conftest.$ac_objext
f321ab7f
VS
33272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33273 (eval $ac_compile) 2>conftest.er1
01cb68df 33274 ac_status=$?
ac1cb8d3
VS
33275 grep -v '^ *+' conftest.er1 >conftest.err
33276 rm -f conftest.er1
33277 cat conftest.err >&5
01cb68df
RG
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); } &&
f321ab7f
VS
33280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33282 (eval $ac_try) 2>&5
ac1cb8d3
VS
33283 ac_status=$?
33284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285 (exit $ac_status); }; } &&
33286 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
33287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33288 (eval $ac_try) 2>&5
01cb68df
RG
33289 ac_status=$?
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; }; then
5294a27e 33292 eval "$as_ac_Header=yes"
01cb68df
RG
33293else
33294 echo "$as_me: failed program was:" >&5
33295sed 's/^/| /' conftest.$ac_ext >&5
33296
f321ab7f 33297eval "$as_ac_Header=no"
01cb68df 33298fi
f321ab7f 33299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df 33300fi
f321ab7f
VS
33301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
33303if test `eval echo '${'$as_ac_Header'}'` = yes; then
33304 cat >>confdefs.h <<_ACEOF
33305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33306_ACEOF
33307
01cb68df
RG
33308fi
33309
33310done
33311
a848cd7e
SC
33312 fi
33313fi
33314
88bbc332
RR
33315if test "$wxUSE_DETECT_SM" = "yes"; then
33316 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
f321ab7f
VS
33317 echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33318echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
88bbc332
RR
33319
33320 ac_find_libraries=
33321 for ac_dir in $SEARCH_LIB;
33322 do
33323 for ac_extension in a so sl dylib dll.a; do
33324 if test -f "$ac_dir/libSM.$ac_extension"; then
33325 ac_find_libraries=$ac_dir
33326 break 2
33327 fi
33328 done
33329 done
33330
33331 if test "$ac_find_libraries" != "" ; then
33332
33333 if test "$ac_find_libraries" = "default location"; then
33334 ac_path_to_link=""
33335 else
33336 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33337 result=$?
33338 if test $result = 0; then
33339 ac_path_to_link=""
33340 else
33341 ac_path_to_link=" -L$ac_find_libraries"
33342 fi
33343 fi
33344
33345 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33346 LDFLAGS="$LDFLAGS $ac_path_to_link"
33347 fi
33348 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
f321ab7f
VS
33349 echo "$as_me:$LINENO: result: yes" >&5
33350echo "${ECHO_T}yes" >&6
88bbc332 33351 else
f321ab7f
VS
33352 echo "$as_me:$LINENO: result: no" >&5
33353echo "${ECHO_T}no" >&6
88bbc332
RR
33354 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33355echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33356 wxUSE_DETECT_SM="no"
33357 fi
33358 else
33359 wxUSE_DETECT_SM="no"
33360 fi
33361fi
33362
33363
a848cd7e
SC
33364
33365USE_OPENGL=0
33366if test "$wxUSE_OPENGL" = "yes"; then
2e35565a
VZ
33367 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
33368 { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33369echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33370 wxUSE_OPENGL="no"
33371 elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
a848cd7e
SC
33372 OPENGL_LIBS="-framework OpenGL -framework AGL"
33373 elif test "$wxUSE_MSW" = 1; then
33374 OPENGL_LIBS="-lopengl32 -lglu32"
33375 else
f321ab7f
VS
33376 echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33377echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6
a848cd7e 33378
a848cd7e 33379ac_find_includes=
02b05020 33380for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
a848cd7e
SC
33381 do
33382 if test -f "$ac_dir/GL/gl.h"; then
33383 ac_find_includes=$ac_dir
33384 break
33385 fi
33386 done
33387
33388 if test "$ac_find_includes" != "" ; then
f321ab7f
VS
33389 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33390echo "${ECHO_T}found in $ac_find_includes" >&6
a848cd7e
SC
33391
33392 if test "x$ac_find_includes" = "x/usr/include"; then
33393 ac_path_to_include=""
33394 else
33395 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33396 result=$?
33397 if test $result = 0; then
33398 ac_path_to_include=""
33399 else
33400 ac_path_to_include=" -I$ac_find_includes"
33401 fi
33402 fi
33403
c92ad099 33404 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
e541dae0 33405 else
f321ab7f
VS
33406 echo "$as_me:$LINENO: result: not found" >&5
33407echo "${ECHO_T}not found" >&6
a848cd7e
SC
33408 fi
33409
33410 if test "${ac_cv_header_GL_gl_h+set}" = set; then
f321ab7f
VS
33411 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33412echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
a848cd7e
SC
33413if test "${ac_cv_header_GL_gl_h+set}" = set; then
33414 echo $ECHO_N "(cached) $ECHO_C" >&6
33415fi
f321ab7f
VS
33416echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33417echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
a848cd7e
SC
33418else
33419 # Is the header compilable?
f321ab7f
VS
33420echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33421echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
a848cd7e
SC
33422cat >conftest.$ac_ext <<_ACEOF
33423/* confdefs.h. */
33424_ACEOF
33425cat confdefs.h >>conftest.$ac_ext
33426cat >>conftest.$ac_ext <<_ACEOF
33427/* end confdefs.h. */
33428$ac_includes_default
33429#include <GL/gl.h>
33430_ACEOF
33431rm -f conftest.$ac_objext
f321ab7f
VS
33432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33433 (eval $ac_compile) 2>conftest.er1
a848cd7e 33434 ac_status=$?
ac1cb8d3
VS
33435 grep -v '^ *+' conftest.er1 >conftest.err
33436 rm -f conftest.er1
33437 cat conftest.err >&5
a848cd7e
SC
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); } &&
f321ab7f
VS
33440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33442 (eval $ac_try) 2>&5
ac1cb8d3
VS
33443 ac_status=$?
33444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445 (exit $ac_status); }; } &&
33446 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
33447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33448 (eval $ac_try) 2>&5
a848cd7e
SC
33449 ac_status=$?
33450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451 (exit $ac_status); }; }; then
33452 ac_header_compiler=yes
33453else
33454 echo "$as_me: failed program was:" >&5
33455sed 's/^/| /' conftest.$ac_ext >&5
33456
f321ab7f 33457ac_header_compiler=no
a848cd7e 33458fi
f321ab7f
VS
33459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33461echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
33462
33463# Is the header present?
f321ab7f
VS
33464echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33465echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
a848cd7e
SC
33466cat >conftest.$ac_ext <<_ACEOF
33467/* confdefs.h. */
33468_ACEOF
33469cat confdefs.h >>conftest.$ac_ext
33470cat >>conftest.$ac_ext <<_ACEOF
33471/* end confdefs.h. */
33472#include <GL/gl.h>
33473_ACEOF
f321ab7f
VS
33474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
33476 ac_status=$?
33477 grep -v '^ *+' conftest.er1 >conftest.err
33478 rm -f conftest.er1
33479 cat conftest.err >&5
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); } >/dev/null; then
33482 if test -s conftest.err; then
fd5199d6
VZ
33483 ac_cpp_err=$ac_c_preproc_warn_flag
33484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33485 else
33486 ac_cpp_err=
33487 fi
33488else
33489 ac_cpp_err=yes
33490fi
33491if test -z "$ac_cpp_err"; then
33492 ac_header_preproc=yes
33493else
33494 echo "$as_me: failed program was:" >&5
33495sed 's/^/| /' conftest.$ac_ext >&5
33496
33497 ac_header_preproc=no
33498fi
33499rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
33500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33501echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
33502
33503# So? What about this header?
fd5199d6 33504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 33505 yes:no: )
a848cd7e
SC
33506 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33507echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33508 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33509echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33510 ac_header_preproc=yes
a848cd7e 33511 ;;
ac1cb8d3 33512 no:yes:* )
a848cd7e
SC
33513 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33514echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33515 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33516echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33517 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33518echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33519 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33520echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33521 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33522echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33523 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33524echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
33525 (
33526 cat <<\_ASBOX
ac1cb8d3
VS
33527## ----------------------------------------- ##
33528## Report this to wx-dev@lists.wxwidgets.org ##
33529## ----------------------------------------- ##
a848cd7e 33530_ASBOX
f321ab7f
VS
33531 ) |
33532 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
33533 ;;
33534esac
f321ab7f
VS
33535echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33536echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
a848cd7e
SC
33537if test "${ac_cv_header_GL_gl_h+set}" = set; then
33538 echo $ECHO_N "(cached) $ECHO_C" >&6
33539else
33540 ac_cv_header_GL_gl_h=$ac_header_preproc
33541fi
f321ab7f
VS
33542echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33543echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
a848cd7e
SC
33544
33545fi
33546if test $ac_cv_header_GL_gl_h = yes; then
33547
5dfc7e56 33548 if test "${ac_cv_header_GL_glu_h+set}" = set; then
f321ab7f
VS
33549 echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33550echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
5dfc7e56
VZ
33551if test "${ac_cv_header_GL_glu_h+set}" = set; then
33552 echo $ECHO_N "(cached) $ECHO_C" >&6
33553fi
f321ab7f
VS
33554echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33555echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
5dfc7e56
VZ
33556else
33557 # Is the header compilable?
f321ab7f
VS
33558echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
33559echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6
5dfc7e56
VZ
33560cat >conftest.$ac_ext <<_ACEOF
33561/* confdefs.h. */
33562_ACEOF
33563cat confdefs.h >>conftest.$ac_ext
33564cat >>conftest.$ac_ext <<_ACEOF
33565/* end confdefs.h. */
33566$ac_includes_default
33567#include <GL/glu.h>
33568_ACEOF
33569rm -f conftest.$ac_objext
f321ab7f
VS
33570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33571 (eval $ac_compile) 2>conftest.er1
5dfc7e56
VZ
33572 ac_status=$?
33573 grep -v '^ *+' conftest.er1 >conftest.err
33574 rm -f conftest.er1
33575 cat conftest.err >&5
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); } &&
f321ab7f
VS
33578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580 (eval $ac_try) 2>&5
5dfc7e56
VZ
33581 ac_status=$?
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); }; } &&
33584 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
33585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33586 (eval $ac_try) 2>&5
5dfc7e56
VZ
33587 ac_status=$?
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); }; }; then
33590 ac_header_compiler=yes
33591else
33592 echo "$as_me: failed program was:" >&5
33593sed 's/^/| /' conftest.$ac_ext >&5
33594
f321ab7f 33595ac_header_compiler=no
5dfc7e56 33596fi
f321ab7f
VS
33597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33598echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33599echo "${ECHO_T}$ac_header_compiler" >&6
5dfc7e56
VZ
33600
33601# Is the header present?
f321ab7f
VS
33602echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
33603echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6
5dfc7e56
VZ
33604cat >conftest.$ac_ext <<_ACEOF
33605/* confdefs.h. */
33606_ACEOF
33607cat confdefs.h >>conftest.$ac_ext
33608cat >>conftest.$ac_ext <<_ACEOF
33609/* end confdefs.h. */
33610#include <GL/glu.h>
33611_ACEOF
f321ab7f
VS
33612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5dfc7e56
VZ
33614 ac_status=$?
33615 grep -v '^ *+' conftest.er1 >conftest.err
33616 rm -f conftest.er1
33617 cat conftest.err >&5
33618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619 (exit $ac_status); } >/dev/null; then
33620 if test -s conftest.err; then
fd5199d6
VZ
33621 ac_cpp_err=$ac_c_preproc_warn_flag
33622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5dfc7e56
VZ
33623 else
33624 ac_cpp_err=
33625 fi
33626else
33627 ac_cpp_err=yes
33628fi
33629if test -z "$ac_cpp_err"; then
33630 ac_header_preproc=yes
33631else
33632 echo "$as_me: failed program was:" >&5
33633sed 's/^/| /' conftest.$ac_ext >&5
33634
33635 ac_header_preproc=no
33636fi
33637rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
33638echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33639echo "${ECHO_T}$ac_header_preproc" >&6
5dfc7e56
VZ
33640
33641# So? What about this header?
fd5199d6 33642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5dfc7e56
VZ
33643 yes:no: )
33644 { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
33645echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33646 { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
33647echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
33648 ac_header_preproc=yes
33649 ;;
33650 no:yes:* )
33651 { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
33652echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
33653 { echo "$as_me:$LINENO: WARNING: GL/glu.h: check for missing prerequisite headers?" >&5
33654echo "$as_me: WARNING: GL/glu.h: check for missing prerequisite headers?" >&2;}
33655 { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
33656echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
33657 { echo "$as_me:$LINENO: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&5
33658echo "$as_me: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&2;}
33659 { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
33660echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
33661 { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
33662echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
33663 (
33664 cat <<\_ASBOX
5dfc7e56
VZ
33665## ----------------------------------------- ##
33666## Report this to wx-dev@lists.wxwidgets.org ##
33667## ----------------------------------------- ##
33668_ASBOX
f321ab7f
VS
33669 ) |
33670 sed "s/^/$as_me: WARNING: /" >&2
5dfc7e56
VZ
33671 ;;
33672esac
f321ab7f
VS
33673echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33674echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
5dfc7e56
VZ
33675if test "${ac_cv_header_GL_glu_h+set}" = set; then
33676 echo $ECHO_N "(cached) $ECHO_C" >&6
33677else
33678 ac_cv_header_GL_glu_h=$ac_header_preproc
33679fi
f321ab7f
VS
33680echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33681echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
5dfc7e56
VZ
33682
33683fi
33684if test $ac_cv_header_GL_glu_h = yes; then
33685
a848cd7e
SC
33686 found_gl=0
33687
f321ab7f
VS
33688 echo "$as_me:$LINENO: checking for -lGL" >&5
33689echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
a848cd7e 33690
0ad5d837 33691 ac_find_libraries=
02b05020 33692 for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
a848cd7e 33693 do
3eca31dc 33694 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33695 if test -f "$ac_dir/libGL.$ac_extension"; then
33696 ac_find_libraries=$ac_dir
33697 break 2
33698 fi
33699 done
33700 done
33701
33702 if test "$ac_find_libraries" != "" ; then
f321ab7f
VS
33703 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33704echo "${ECHO_T}found in $ac_find_libraries" >&6
69120ee4 33705
a848cd7e 33706
0ad5d837 33707 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33708 ac_path_to_link=""
33709 else
0ad5d837
VZ
33710 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33711 result=$?
33712 if test $result = 0; then
33713 ac_path_to_link=""
33714 else
33715 ac_path_to_link=" -L$ac_find_libraries"
33716 fi
a848cd7e
SC
33717 fi
33718
33719 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33720 LDFLAGS_GL="$ac_path_to_link"
33721 fi
33722
f321ab7f
VS
33723 echo "$as_me:$LINENO: checking for -lGLU" >&5
33724echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33725
0ad5d837
VZ
33726 ac_find_libraries=
33727 for ac_dir in $SEARCH_LIB;
33728 do
33729 for ac_extension in a so sl dylib dll.a; do
33730 if test -f "$ac_dir/libGLU.$ac_extension"; then
33731 ac_find_libraries=$ac_dir
33732 break 2
33733 fi
33734 done
33735 done
33736
a848cd7e
SC
33737 if test "$ac_find_libraries" != "" ; then
33738
0ad5d837 33739 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33740 ac_path_to_link=""
33741 else
0ad5d837
VZ
33742 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33743 result=$?
33744 if test $result = 0; then
33745 ac_path_to_link=""
33746 else
33747 ac_path_to_link=" -L$ac_find_libraries"
33748 fi
a848cd7e
SC
33749 fi
33750
33751 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33752 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33753 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33754 fi
33755
33756 found_gl=1
33757 OPENGL_LIBS="-lGL -lGLU"
f321ab7f
VS
33758 echo "$as_me:$LINENO: result: yes" >&5
33759echo "${ECHO_T}yes" >&6
69120ee4 33760 else
f321ab7f
VS
33761 echo "$as_me:$LINENO: result: no" >&5
33762echo "${ECHO_T}no" >&6
a848cd7e 33763 fi
69120ee4 33764 else
f321ab7f
VS
33765 echo "$as_me:$LINENO: result: no" >&5
33766echo "${ECHO_T}no" >&6
a848cd7e
SC
33767 fi
33768
33769 if test "$found_gl" != 1; then
f321ab7f
VS
33770 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33771echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
a848cd7e 33772
0ad5d837
VZ
33773 ac_find_libraries=
33774 for ac_dir in $SEARCH_LIB;
a848cd7e 33775 do
3eca31dc 33776 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33777 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33778 ac_find_libraries=$ac_dir
33779 break 2
33780 fi
33781 done
33782 done
33783
33784 if test "$ac_find_libraries" != "" ; then
33785
0ad5d837 33786 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33787 ac_path_to_link=""
33788 else
0ad5d837
VZ
33789 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33790 result=$?
33791 if test $result = 0; then
33792 ac_path_to_link=""
33793 else
33794 ac_path_to_link=" -L$ac_find_libraries"
33795 fi
a848cd7e
SC
33796 fi
33797
33798 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33799 OPENGL_LIBS="-lMesaGL -lMesaGLU"
f321ab7f
VS
33800 echo "$as_me:$LINENO: result: yes" >&5
33801echo "${ECHO_T}yes" >&6
a848cd7e 33802 else
f321ab7f
VS
33803 echo "$as_me:$LINENO: result: no" >&5
33804echo "${ECHO_T}no" >&6
a848cd7e
SC
33805 fi
33806 fi
33807
33808fi
33809
33810
33811
5dfc7e56
VZ
33812fi
33813
33814
33815
a848cd7e
SC
33816 if test "x$OPENGL_LIBS" = "x"; then
33817 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33818echo "$as_me: error: OpenGL libraries not available" >&2;}
33819 { (exit 1); exit 1; }; }
33820 fi
33821 fi
33822
33823 if test "$wxUSE_OPENGL" = "yes"; then
33824 USE_OPENGL=1
33825 cat >>confdefs.h <<\_ACEOF
33826#define wxUSE_OPENGL 1
33827_ACEOF
33828
33829 cat >>confdefs.h <<\_ACEOF
33830#define wxUSE_GLCANVAS 1
33831_ACEOF
33832
33833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33834 fi
33835fi
33836
a848cd7e
SC
33837
33838if test -n "$TOOLKIT" ; then
33839 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33840fi
33841
a848cd7e
SC
33842
33843
33844if test "$wxUSE_SHARED" = "yes"; then
33845 case "${host}" in
33846 *-pc-msdosdjgpp )
33847 wxUSE_SHARED=no
33848 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33849echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33850 ;;
33851 esac
33852fi
33853
a848cd7e 33854if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33855
33856
077c7880
VZ
33857 case "${host}" in
33858 *-*-cygwin* | *-*-mingw* )
2dbd07cb 33859 wx_cv_version_script=no
077c7880 33860 ;;
a848cd7e 33861
077c7880 33862 *)
f321ab7f
VS
33863 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33864echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
a848cd7e
SC
33865if test "${wx_cv_version_script+set}" = set; then
33866 echo $ECHO_N "(cached) $ECHO_C" >&6
33867else
33868
077c7880
VZ
33869 echo "VER_1 { *; };" >conftest.sym
33870 echo "int main() { return 0; }" >conftest.cpp
a848cd7e 33871
077c7880
VZ
33872 if { ac_try='
33873 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33874 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
a848cd7e
SC
33875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876 (eval $ac_try) 2>&5
33877 ac_status=$?
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; } ; then
077c7880
VZ
33880 if test -s conftest.stderr ; then
33881 wx_cv_version_script=no
33882 else
33883 wx_cv_version_script=yes
33884 fi
33885 else
33886 wx_cv_version_script=no
33887 fi
e5d4b470 33888
077c7880
VZ
33889 if test $wx_cv_version_script = yes
33890 then
33891 echo "struct B { virtual ~B() { } }; \
33892 struct D : public B { }; \
33893 void F() { D d; }" > conftest.cpp
e5d4b470 33894
077c7880
VZ
33895 if { ac_try='
33896 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33897 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
e5d4b470
MW
33898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33899 (eval $ac_try) 2>&5
33900 ac_status=$?
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; } &&
077c7880
VZ
33903 { ac_try='
33904 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33905 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
e5d4b470
MW
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); }; }
077c7880
VZ
33911 then
33912 if { ac_try='
33913 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33914 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
e5d4b470
MW
33915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33916 (eval $ac_try) 2>&5
33917 ac_status=$?
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); }; }
077c7880
VZ
33920 then
33921 wx_cv_version_script=yes
33922 else
33923 wx_cv_version_script=no
33924 fi
33925 fi
33926 fi
e5d4b470 33927
077c7880
VZ
33928 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33929 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33930
33931fi
f321ab7f
VS
33932echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33933echo "${ECHO_T}$wx_cv_version_script" >&6
077c7880
VZ
33934
33935 if test $wx_cv_version_script = yes ; then
33936 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33937 fi
33938 ;;
33939 esac
a848cd7e
SC
33940
33941
33942 case "${host}" in
33943 *-*-linux* | *-*-gnu* )
02b05020 33944 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
ffa0583f 33945 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33946 ;;
a848cd7e
SC
33947
33948 *-*-solaris2* )
33949 if test "$GCC" = yes ; then
c92ad099 33950 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33951
33952 saveLdflags="$LDFLAGS"
33953 LDFLAGS="$saveLdflags -Wl,-rpath,/"
f321ab7f
VS
33954 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33955echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
a848cd7e
SC
33956 cat >conftest.$ac_ext <<_ACEOF
33957/* confdefs.h. */
33958_ACEOF
33959cat confdefs.h >>conftest.$ac_ext
33960cat >>conftest.$ac_ext <<_ACEOF
33961/* end confdefs.h. */
33962
33963int
33964main ()
33965{
33966
33967 ;
33968 return 0;
33969}
33970_ACEOF
33971rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
33972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33973 (eval $ac_link) 2>conftest.er1
a848cd7e 33974 ac_status=$?
ac1cb8d3
VS
33975 grep -v '^ *+' conftest.er1 >conftest.err
33976 rm -f conftest.er1
33977 cat conftest.err >&5
a848cd7e
SC
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); } &&
f321ab7f
VS
33980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33982 (eval $ac_try) 2>&5
ac1cb8d3
VS
33983 ac_status=$?
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); }; } &&
33986 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
33987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33988 (eval $ac_try) 2>&5
a848cd7e
SC
33989 ac_status=$?
33990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); }; }; then
33992
f321ab7f
VS
33993 echo "$as_me:$LINENO: result: yes" >&5
33994echo "${ECHO_T}yes" >&6
02b05020 33995 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
ffa0583f 33996 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33997
33998else
33999 echo "$as_me: failed program was:" >&5
34000sed 's/^/| /' conftest.$ac_ext >&5
34001
34002
f321ab7f
VS
34003 echo "$as_me:$LINENO: result: no" >&5
34004echo "${ECHO_T}no" >&6
34005 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
34006echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
a848cd7e
SC
34007 LDFLAGS="$saveLdflags -Wl,-R,/"
34008 cat >conftest.$ac_ext <<_ACEOF
34009/* confdefs.h. */
34010_ACEOF
34011cat confdefs.h >>conftest.$ac_ext
34012cat >>conftest.$ac_ext <<_ACEOF
34013/* end confdefs.h. */
34014
34015int
34016main ()
34017{
34018
34019 ;
34020 return 0;
34021}
34022_ACEOF
34023rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
34024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34025 (eval $ac_link) 2>conftest.er1
a848cd7e 34026 ac_status=$?
ac1cb8d3
VS
34027 grep -v '^ *+' conftest.er1 >conftest.err
34028 rm -f conftest.er1
34029 cat conftest.err >&5
a848cd7e
SC
34030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); } &&
f321ab7f
VS
34032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34034 (eval $ac_try) 2>&5
ac1cb8d3
VS
34035 ac_status=$?
34036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); }; } &&
34038 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
34039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34040 (eval $ac_try) 2>&5
a848cd7e
SC
34041 ac_status=$?
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); }; }; then
34044
f321ab7f
VS
34045 echo "$as_me:$LINENO: result: yes" >&5
34046echo "${ECHO_T}yes" >&6
02b05020 34047 SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
ffa0583f
RL
34048 WXCONFIG_RPATH="-Wl,-R,\$libdir"
34049
a848cd7e
SC
34050else
34051 echo "$as_me: failed program was:" >&5
34052sed 's/^/| /' conftest.$ac_ext >&5
34053
34054
f321ab7f
VS
34055 echo "$as_me:$LINENO: result: no" >&5
34056echo "${ECHO_T}no" >&6
a848cd7e
SC
34057
34058fi
f321ab7f 34059rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 34060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34061
34062fi
f321ab7f 34063rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 34064 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34065 LDFLAGS="$saveLdflags"
34066 else
02b05020 34067 SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
ffa0583f 34068 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
34069 fi
34070 ;;
34071
cfda0ea8 34072 *-*-darwin* )
0caebc27
MW
34073 install_name_tool=`which install_name_tool`
34074 if test "$install_name_tool" -a -x "$install_name_tool"; then
02b05020 34075 SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
0caebc27 34076 cat <<EOF >change-install-names
a848cd7e
SC
34077#!/bin/sh
34078libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
34079inst_cmd="install_name_tool "
34080for i in \${libnames} ; do
34081 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
34082done
34083\${inst_cmd} \${3}
34084EOF
0caebc27
MW
34085 chmod +x change-install-names
34086 fi
a848cd7e
SC
34087 ;;
34088
34089 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
34090 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
34091 ;;
a848cd7e 34092
81f90336 34093 *-*-hpux* )
02b05020 34094 SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
81f90336 34095 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 34096 ;;
81f90336 34097
a848cd7e 34098 esac
ceec2216 34099
ffa0583f
RL
34100 if test $wxUSE_RPATH = "no"; then
34101 SAMPLES_RPATH_FLAG=''
34102 SAMPLES_RPATH_POSTLINK=''
34103 WXCONFIG_RPATH=''
34104 fi
34105
34106 SHARED=1
34107
34108else
34109
ceec2216
RL
34110 config_linkage_component="-static"
34111 SHARED=0
ffa0583f 34112
ceec2216 34113fi
a848cd7e 34114
a848cd7e 34115
ceec2216
RL
34116UNICODE=0
34117lib_unicode_suffix=
34118WX_CHARTYPE="ansi"
34119if test "$wxUSE_UNICODE" = "yes"; then
34120 lib_unicode_suffix=u
34121 WX_CHARTYPE="unicode"
34122 UNICODE=1
a848cd7e
SC
34123fi
34124
ceec2216
RL
34125lib_debug_suffix=
34126WX_DEBUGTYPE="release"
34127DEBUG_FLAG=0
34128if test "$wxUSE_DEBUG_FLAG" = "yes"; then
34129 lib_debug_suffix=d
34130 WX_DEBUGTYPE="debug"
34131 DEBUG_FLAG=1
34132fi
a848cd7e 34133
ceec2216
RL
34134WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34135WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 34136
ceec2216
RL
34137DEBUG_INFO=0
34138if test "$wxUSE_DEBUG_INFO" = "yes"; then
34139 DEBUG_INFO=1
34140fi
a848cd7e 34141
ceec2216 34142WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 34143
ceec2216 34144TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 34145
ceec2216 34146TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 34147
ceec2216
RL
34148if test "$cross_compiling" = "yes"; then
34149 HOST_SUFFIX="-$host_alias"
34150 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
34151 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
34152fi
34153
dd21ced8 34154WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
34155if test "${TOOLKIT_DIR}" = "os2"; then
34156 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34157else
34158 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34159fi
ceec2216
RL
34160
34161
34162
1d1af5ea
DE
34163if test "$wxUSE_COCOA" = 1; then
34164
f321ab7f 34165
1d1af5ea
DE
34166 ac_ext=c
34167ac_cpp='$CPP $CPPFLAGS'
34168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34170ac_compiler_gnu=$ac_cv_c_compiler_gnu
34171
34172ac_ext=m
34173
f321ab7f
VS
34174 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34175echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
1d1af5ea
DE
34176 cat >conftest.$ac_ext <<_ACEOF
34177/* confdefs.h. */
34178_ACEOF
34179cat confdefs.h >>conftest.$ac_ext
34180cat >>conftest.$ac_ext <<_ACEOF
34181/* end confdefs.h. */
34182#include <AppKit/NSEvent.h>
34183#include <CoreFoundation/CoreFoundation.h>
34184
34185int
34186main ()
34187{
34188
34189 ;
34190 return 0;
34191}
34192_ACEOF
34193rm -f conftest.$ac_objext
f321ab7f
VS
34194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34195 (eval $ac_compile) 2>conftest.er1
1d1af5ea
DE
34196 ac_status=$?
34197 grep -v '^ *+' conftest.er1 >conftest.err
34198 rm -f conftest.er1
34199 cat conftest.err >&5
34200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201 (exit $ac_status); } &&
f321ab7f
VS
34202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34204 (eval $ac_try) 2>&5
1d1af5ea
DE
34205 ac_status=$?
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); }; } &&
34208 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
34209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210 (eval $ac_try) 2>&5
1d1af5ea
DE
34211 ac_status=$?
34212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213 (exit $ac_status); }; }; then
f321ab7f
VS
34214 echo "$as_me:$LINENO: result: no" >&5
34215echo "${ECHO_T}no" >&6
1d1af5ea
DE
34216else
34217 echo "$as_me: failed program was:" >&5
34218sed 's/^/| /' conftest.$ac_ext >&5
34219
f321ab7f
VS
34220echo "$as_me:$LINENO: result: yes" >&5
34221echo "${ECHO_T}yes" >&6
34222 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34223echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
1d1af5ea
DE
34224 cat >conftest.$ac_ext <<_ACEOF
34225/* confdefs.h. */
34226_ACEOF
34227cat confdefs.h >>conftest.$ac_ext
34228cat >>conftest.$ac_ext <<_ACEOF
34229/* end confdefs.h. */
34230#define __Point__ 1
34231#include <AppKit/NSEvent.h>
34232#include <CoreFoundation/CoreFoundation.h>
34233
34234int
34235main ()
34236{
34237
34238 ;
34239 return 0;
34240}
34241_ACEOF
34242rm -f conftest.$ac_objext
f321ab7f
VS
34243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34244 (eval $ac_compile) 2>conftest.er1
1d1af5ea
DE
34245 ac_status=$?
34246 grep -v '^ *+' conftest.er1 >conftest.err
34247 rm -f conftest.er1
34248 cat conftest.err >&5
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); } &&
f321ab7f
VS
34251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253 (eval $ac_try) 2>&5
1d1af5ea
DE
34254 ac_status=$?
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); }; } &&
34257 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
34258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34259 (eval $ac_try) 2>&5
1d1af5ea
DE
34260 ac_status=$?
34261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262 (exit $ac_status); }; }; then
f321ab7f
VS
34263 echo "$as_me:$LINENO: result: yes" >&5
34264echo "${ECHO_T}yes" >&6
1d1af5ea
DE
34265 cat >>confdefs.h <<\_ACEOF
34266#define __Point__ 1
34267_ACEOF
34268
34269
34270else
34271 echo "$as_me: failed program was:" >&5
34272sed 's/^/| /' conftest.$ac_ext >&5
34273
f321ab7f 34274{ { echo "$as_me:$LINENO: error: no
1d1af5ea
DE
34275See \`config.log' for more details." >&5
34276echo "$as_me: error: no
34277See \`config.log' for more details." >&2;}
34278 { (exit 1); exit 1; }; }
34279
34280fi
f321ab7f 34281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d1af5ea
DE
34282
34283fi
f321ab7f 34284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
34285 ac_ext=c
34286ac_cpp='$CPP $CPPFLAGS'
34287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34289ac_compiler_gnu=$ac_cv_c_compiler_gnu
1d1af5ea
DE
34290
34291fi
34292
a848cd7e 34293if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
34294 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
34295 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 34296
02b05020 34297 LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
34298
34299 # Extract the first word of "Rez", so it can be a program name with args.
34300set dummy Rez; ac_word=$2
f321ab7f
VS
34301echo "$as_me:$LINENO: checking for $ac_word" >&5
34302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 34303if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
34304 echo $ECHO_N "(cached) $ECHO_C" >&6
34305else
8ced02f6
DE
34306 if test -n "$REZ"; then
34307 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
34308else
34309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34310for as_dir in $PATH
34311do
34312 IFS=$as_save_IFS
34313 test -z "$as_dir" && as_dir=.
34314 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 34315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 34316 ac_cv_prog_REZ="Rez"
a848cd7e
SC
34317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34318 break 2
34319 fi
34320done
34321done
34322
8ced02f6 34323 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
34324fi
34325fi
8ced02f6
DE
34326REZ=$ac_cv_prog_REZ
34327if test -n "$REZ"; then
f321ab7f
VS
34328 echo "$as_me:$LINENO: result: $REZ" >&5
34329echo "${ECHO_T}$REZ" >&6
a848cd7e 34330else
f321ab7f
VS
34331 echo "$as_me:$LINENO: result: no" >&5
34332echo "${ECHO_T}no" >&6
a848cd7e
SC
34333fi
34334
34335 # Extract the first word of "DeRez", so it can be a program name with args.
34336set dummy DeRez; ac_word=$2
f321ab7f
VS
34337echo "$as_me:$LINENO: checking for $ac_word" >&5
34338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
34339if test "${ac_cv_prog_DEREZ+set}" = set; then
34340 echo $ECHO_N "(cached) $ECHO_C" >&6
34341else
34342 if test -n "$DEREZ"; then
34343 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
34344else
34345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34346for as_dir in $PATH
34347do
34348 IFS=$as_save_IFS
34349 test -z "$as_dir" && as_dir=.
34350 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 34351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
34352 ac_cv_prog_DEREZ="DeRez"
34353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34354 break 2
34355 fi
34356done
34357done
34358
34359 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
34360fi
34361fi
34362DEREZ=$ac_cv_prog_DEREZ
34363if test -n "$DEREZ"; then
f321ab7f
VS
34364 echo "$as_me:$LINENO: result: $DEREZ" >&5
34365echo "${ECHO_T}$DEREZ" >&6
a848cd7e 34366else
f321ab7f
VS
34367 echo "$as_me:$LINENO: result: no" >&5
34368echo "${ECHO_T}no" >&6
a848cd7e
SC
34369fi
34370
34371 # Extract the first word of "SetFile", so it can be a program name with args.
34372set dummy SetFile; ac_word=$2
f321ab7f
VS
34373echo "$as_me:$LINENO: checking for $ac_word" >&5
34374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
34375if test "${ac_cv_prog_SETFILE+set}" = set; then
34376 echo $ECHO_N "(cached) $ECHO_C" >&6
34377else
34378 if test -n "$SETFILE"; then
34379 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34380else
34381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34382for as_dir in $PATH
34383do
34384 IFS=$as_save_IFS
34385 test -z "$as_dir" && as_dir=.
34386 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 34387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
34388 ac_cv_prog_SETFILE="SetFile"
34389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34390 break 2
34391 fi
34392done
34393done
34394
34395 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34396fi
34397fi
34398SETFILE=$ac_cv_prog_SETFILE
34399if test -n "$SETFILE"; then
f321ab7f
VS
34400 echo "$as_me:$LINENO: result: $SETFILE" >&5
34401echo "${ECHO_T}$SETFILE" >&6
a848cd7e 34402else
f321ab7f
VS
34403 echo "$as_me:$LINENO: result: no" >&5
34404echo "${ECHO_T}no" >&6
a848cd7e
SC
34405fi
34406
34407
34408 MACSETFILE="\$(SETFILE)"
34409
34410 if test "$wxUSE_MAC" = 1; then
8ced02f6 34411 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
34412 RESCOMP="$REZ"
34413 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 34414 else
004ee6da
RL
34415 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
34416 RESCOMP="echo -n \| $REZ"
34417 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 34418 fi
004ee6da 34419
a848cd7e 34420else
ffa0583f 34421 MACSETFILE="@true"
a848cd7e 34422
8ced02f6 34423 if test "$wxUSE_PM" = 1; then
004ee6da
RL
34424 RESCOMP="emxbind"
34425 WXCONFIG_RESFLAGS="-ep"
34426
34427 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 34428 else
8ced02f6 34429 POSTLINK_COMMAND="@true"
a848cd7e 34430 fi
004ee6da 34431
a848cd7e
SC
34432fi
34433
34434
34435
f321ab7f
VS
34436echo "$as_me:$LINENO: checking for mode_t" >&5
34437echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
a848cd7e
SC
34438if test "${ac_cv_type_mode_t+set}" = set; then
34439 echo $ECHO_N "(cached) $ECHO_C" >&6
34440else
34441 cat >conftest.$ac_ext <<_ACEOF
34442/* confdefs.h. */
34443_ACEOF
34444cat confdefs.h >>conftest.$ac_ext
34445cat >>conftest.$ac_ext <<_ACEOF
34446/* end confdefs.h. */
34447$ac_includes_default
34448int
34449main ()
34450{
f321ab7f 34451if ((mode_t *) 0)
a848cd7e 34452 return 0;
f321ab7f 34453if (sizeof (mode_t))
a848cd7e
SC
34454 return 0;
34455 ;
34456 return 0;
34457}
34458_ACEOF
34459rm -f conftest.$ac_objext
f321ab7f
VS
34460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34461 (eval $ac_compile) 2>conftest.er1
a848cd7e 34462 ac_status=$?
ac1cb8d3
VS
34463 grep -v '^ *+' conftest.er1 >conftest.err
34464 rm -f conftest.er1
34465 cat conftest.err >&5
a848cd7e
SC
34466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); } &&
f321ab7f
VS
34468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34470 (eval $ac_try) 2>&5
ac1cb8d3
VS
34471 ac_status=$?
34472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473 (exit $ac_status); }; } &&
34474 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
34475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34476 (eval $ac_try) 2>&5
a848cd7e
SC
34477 ac_status=$?
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); }; }; then
34480 ac_cv_type_mode_t=yes
34481else
34482 echo "$as_me: failed program was:" >&5
34483sed 's/^/| /' conftest.$ac_ext >&5
34484
f321ab7f 34485ac_cv_type_mode_t=no
a848cd7e 34486fi
f321ab7f 34487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 34488fi
f321ab7f
VS
34489echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34490echo "${ECHO_T}$ac_cv_type_mode_t" >&6
a848cd7e
SC
34491if test $ac_cv_type_mode_t = yes; then
34492 :
34493else
34494
34495cat >>confdefs.h <<_ACEOF
34496#define mode_t int
34497_ACEOF
34498
34499fi
34500
f321ab7f
VS
34501echo "$as_me:$LINENO: checking for off_t" >&5
34502echo $ECHO_N "checking for off_t... $ECHO_C" >&6
a848cd7e
SC
34503if test "${ac_cv_type_off_t+set}" = set; then
34504 echo $ECHO_N "(cached) $ECHO_C" >&6
34505else
34506 cat >conftest.$ac_ext <<_ACEOF
34507/* confdefs.h. */
34508_ACEOF
34509cat confdefs.h >>conftest.$ac_ext
34510cat >>conftest.$ac_ext <<_ACEOF
34511/* end confdefs.h. */
34512$ac_includes_default
34513int
34514main ()
34515{
f321ab7f 34516if ((off_t *) 0)
a848cd7e 34517 return 0;
f321ab7f 34518if (sizeof (off_t))
a848cd7e
SC
34519 return 0;
34520 ;
34521 return 0;
34522}
34523_ACEOF
34524rm -f conftest.$ac_objext
f321ab7f
VS
34525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34526 (eval $ac_compile) 2>conftest.er1
a848cd7e 34527 ac_status=$?
ac1cb8d3
VS
34528 grep -v '^ *+' conftest.er1 >conftest.err
34529 rm -f conftest.er1
34530 cat conftest.err >&5
a848cd7e
SC
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); } &&
f321ab7f
VS
34533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34535 (eval $ac_try) 2>&5
ac1cb8d3
VS
34536 ac_status=$?
34537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34538 (exit $ac_status); }; } &&
34539 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
34540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34541 (eval $ac_try) 2>&5
a848cd7e
SC
34542 ac_status=$?
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); }; }; then
34545 ac_cv_type_off_t=yes
34546else
34547 echo "$as_me: failed program was:" >&5
34548sed 's/^/| /' conftest.$ac_ext >&5
34549
f321ab7f 34550ac_cv_type_off_t=no
a848cd7e 34551fi
f321ab7f 34552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 34553fi
f321ab7f
VS
34554echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34555echo "${ECHO_T}$ac_cv_type_off_t" >&6
a848cd7e
SC
34556if test $ac_cv_type_off_t = yes; then
34557 :
34558else
34559
34560cat >>confdefs.h <<_ACEOF
f321ab7f 34561#define off_t long
a848cd7e
SC
34562_ACEOF
34563
34564fi
34565
f321ab7f
VS
34566echo "$as_me:$LINENO: checking for pid_t" >&5
34567echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a848cd7e
SC
34568if test "${ac_cv_type_pid_t+set}" = set; then
34569 echo $ECHO_N "(cached) $ECHO_C" >&6
34570else
34571 cat >conftest.$ac_ext <<_ACEOF
34572/* confdefs.h. */
34573_ACEOF
34574cat confdefs.h >>conftest.$ac_ext
34575cat >>conftest.$ac_ext <<_ACEOF
34576/* end confdefs.h. */
34577$ac_includes_default
34578int
34579main ()
34580{
f321ab7f 34581if ((pid_t *) 0)
a848cd7e 34582 return 0;
f321ab7f 34583if (sizeof (pid_t))
a848cd7e
SC
34584 return 0;
34585 ;
34586 return 0;
34587}
34588_ACEOF
34589rm -f conftest.$ac_objext
f321ab7f
VS
34590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34591 (eval $ac_compile) 2>conftest.er1
a848cd7e 34592 ac_status=$?
ac1cb8d3
VS
34593 grep -v '^ *+' conftest.er1 >conftest.err
34594 rm -f conftest.er1
34595 cat conftest.err >&5
a848cd7e
SC
34596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); } &&
f321ab7f
VS
34598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34600 (eval $ac_try) 2>&5
ac1cb8d3
VS
34601 ac_status=$?
34602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603 (exit $ac_status); }; } &&
34604 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
34605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34606 (eval $ac_try) 2>&5
a848cd7e
SC
34607 ac_status=$?
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); }; }; then
34610 ac_cv_type_pid_t=yes
34611else
34612 echo "$as_me: failed program was:" >&5
34613sed 's/^/| /' conftest.$ac_ext >&5
34614
f321ab7f 34615ac_cv_type_pid_t=no
a848cd7e 34616fi
f321ab7f 34617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 34618fi
f321ab7f
VS
34619echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34620echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a848cd7e
SC
34621if test $ac_cv_type_pid_t = yes; then
34622 :
34623else
34624
34625cat >>confdefs.h <<_ACEOF
34626#define pid_t int
34627_ACEOF
34628
34629fi
34630
f321ab7f
VS
34631echo "$as_me:$LINENO: checking for size_t" >&5
34632echo $ECHO_N "checking for size_t... $ECHO_C" >&6
a848cd7e
SC
34633if test "${ac_cv_type_size_t+set}" = set; then
34634 echo $ECHO_N "(cached) $ECHO_C" >&6
34635else
34636 cat >conftest.$ac_ext <<_ACEOF
34637/* confdefs.h. */
34638_ACEOF
34639cat confdefs.h >>conftest.$ac_ext
34640cat >>conftest.$ac_ext <<_ACEOF
34641/* end confdefs.h. */
34642$ac_includes_default
34643int
34644main ()
34645{
f321ab7f 34646if ((size_t *) 0)
a848cd7e 34647 return 0;
f321ab7f 34648if (sizeof (size_t))
a848cd7e
SC
34649 return 0;
34650 ;
34651 return 0;
34652}
34653_ACEOF
34654rm -f conftest.$ac_objext
f321ab7f
VS
34655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34656 (eval $ac_compile) 2>conftest.er1
a848cd7e 34657 ac_status=$?
ac1cb8d3
VS
34658 grep -v '^ *+' conftest.er1 >conftest.err
34659 rm -f conftest.er1
34660 cat conftest.err >&5
a848cd7e
SC
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); } &&
f321ab7f
VS
34663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665 (eval $ac_try) 2>&5
ac1cb8d3
VS
34666 ac_status=$?
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; } &&
34669 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
34670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671 (eval $ac_try) 2>&5
a848cd7e
SC
34672 ac_status=$?
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); }; }; then
34675 ac_cv_type_size_t=yes
34676else
34677 echo "$as_me: failed program was:" >&5
34678sed 's/^/| /' conftest.$ac_ext >&5
34679
f321ab7f 34680ac_cv_type_size_t=no
a848cd7e 34681fi
f321ab7f 34682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 34683fi
f321ab7f
VS
34684echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34685echo "${ECHO_T}$ac_cv_type_size_t" >&6
a848cd7e
SC
34686if test $ac_cv_type_size_t = yes; then
34687 :
34688else
34689
34690cat >>confdefs.h <<_ACEOF
f321ab7f 34691#define size_t unsigned
a848cd7e
SC
34692_ACEOF
34693
34694fi
34695
f321ab7f
VS
34696echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34697echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
a848cd7e
SC
34698if test "${ac_cv_type_uid_t+set}" = set; then
34699 echo $ECHO_N "(cached) $ECHO_C" >&6
34700else
34701 cat >conftest.$ac_ext <<_ACEOF
34702/* confdefs.h. */
34703_ACEOF
34704cat confdefs.h >>conftest.$ac_ext
34705cat >>conftest.$ac_ext <<_ACEOF
34706/* end confdefs.h. */
34707#include <sys/types.h>
34708
34709_ACEOF
34710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34711 $EGREP "uid_t" >/dev/null 2>&1; then
34712 ac_cv_type_uid_t=yes
34713else
34714 ac_cv_type_uid_t=no
34715fi
34716rm -f conftest*
34717
34718fi
f321ab7f
VS
34719echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34720echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a848cd7e
SC
34721if test $ac_cv_type_uid_t = no; then
34722
34723cat >>confdefs.h <<\_ACEOF
34724#define uid_t int
34725_ACEOF
34726
34727
34728cat >>confdefs.h <<\_ACEOF
34729#define gid_t int
34730_ACEOF
34731
34732fi
34733
34734
f321ab7f
VS
34735echo "$as_me:$LINENO: checking for ssize_t" >&5
34736echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
d51253e8
RL
34737if test "${ac_cv_type_ssize_t+set}" = set; then
34738 echo $ECHO_N "(cached) $ECHO_C" >&6
34739else
34740 cat >conftest.$ac_ext <<_ACEOF
34741/* confdefs.h. */
34742_ACEOF
34743cat confdefs.h >>conftest.$ac_ext
34744cat >>conftest.$ac_ext <<_ACEOF
34745/* end confdefs.h. */
34746$ac_includes_default
34747int
34748main ()
34749{
f321ab7f 34750if ((ssize_t *) 0)
d51253e8 34751 return 0;
f321ab7f 34752if (sizeof (ssize_t))
d51253e8
RL
34753 return 0;
34754 ;
34755 return 0;
34756}
34757_ACEOF
34758rm -f conftest.$ac_objext
f321ab7f
VS
34759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34760 (eval $ac_compile) 2>conftest.er1
d51253e8
RL
34761 ac_status=$?
34762 grep -v '^ *+' conftest.er1 >conftest.err
34763 rm -f conftest.er1
34764 cat conftest.err >&5
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); } &&
f321ab7f
VS
34767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34769 (eval $ac_try) 2>&5
d51253e8
RL
34770 ac_status=$?
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); }; } &&
34773 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
34774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34775 (eval $ac_try) 2>&5
d51253e8
RL
34776 ac_status=$?
34777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34778 (exit $ac_status); }; }; then
34779 ac_cv_type_ssize_t=yes
34780else
34781 echo "$as_me: failed program was:" >&5
34782sed 's/^/| /' conftest.$ac_ext >&5
34783
f321ab7f 34784ac_cv_type_ssize_t=no
d51253e8 34785fi
f321ab7f 34786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d51253e8 34787fi
f321ab7f
VS
34788echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34789echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
d51253e8
RL
34790if test $ac_cv_type_ssize_t = yes; then
34791
34792cat >>confdefs.h <<_ACEOF
34793#define HAVE_SSIZE_T 1
34794_ACEOF
34795
34796
34797fi
34798
34799
f321ab7f 34800ac_ext=cc
9b8888f9
VZ
34801ac_cpp='$CXXCPP $CPPFLAGS'
34802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
f321ab7f
VS
34805 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34806echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
a848cd7e
SC
34807if test "${wx_cv_size_t_is_uint+set}" = set; then
34808 echo $ECHO_N "(cached) $ECHO_C" >&6
34809else
34810
34811 cat >conftest.$ac_ext <<_ACEOF
34812/* confdefs.h. */
34813_ACEOF
34814cat confdefs.h >>conftest.$ac_ext
34815cat >>conftest.$ac_ext <<_ACEOF
34816/* end confdefs.h. */
34817#include <stddef.h>
34818int
34819main ()
34820{
34821
34822 return 0; }
34823
34824 struct Foo { void foo(size_t); void foo(unsigned int); };
34825
34826 int bar() {
34827
34828 ;
34829 return 0;
34830}
34831_ACEOF
34832rm -f conftest.$ac_objext
f321ab7f
VS
34833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34834 (eval $ac_compile) 2>conftest.er1
a848cd7e 34835 ac_status=$?
ac1cb8d3
VS
34836 grep -v '^ *+' conftest.er1 >conftest.err
34837 rm -f conftest.er1
34838 cat conftest.err >&5
a848cd7e
SC
34839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840 (exit $ac_status); } &&
f321ab7f
VS
34841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34843 (eval $ac_try) 2>&5
ac1cb8d3
VS
34844 ac_status=$?
34845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846 (exit $ac_status); }; } &&
34847 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
34848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34849 (eval $ac_try) 2>&5
a848cd7e
SC
34850 ac_status=$?
34851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34852 (exit $ac_status); }; }; then
34853 wx_cv_size_t_is_uint=no
34854else
34855 echo "$as_me: failed program was:" >&5
34856sed 's/^/| /' conftest.$ac_ext >&5
34857
f321ab7f 34858wx_cv_size_t_is_uint=yes
a848cd7e
SC
34859
34860fi
f321ab7f 34861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34862
34863
34864fi
f321ab7f
VS
34865echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34866echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
a848cd7e
SC
34867
34868if test "$wx_cv_size_t_is_uint" = "yes"; then
34869 cat >>confdefs.h <<\_ACEOF
34870#define wxSIZE_T_IS_UINT 1
34871_ACEOF
34872
34873else
f321ab7f
VS
34874 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34875echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
a848cd7e
SC
34876if test "${wx_cv_size_t_is_ulong+set}" = set; then
34877 echo $ECHO_N "(cached) $ECHO_C" >&6
34878else
34879 cat >conftest.$ac_ext <<_ACEOF
34880/* confdefs.h. */
34881_ACEOF
34882cat confdefs.h >>conftest.$ac_ext
34883cat >>conftest.$ac_ext <<_ACEOF
34884/* end confdefs.h. */
34885#include <stddef.h>
34886int
34887main ()
34888{
34889
34890 return 0; }
34891
34892 struct Foo { void foo(size_t); void foo(unsigned long); };
34893
34894 int bar() {
34895
34896 ;
34897 return 0;
34898}
34899_ACEOF
34900rm -f conftest.$ac_objext
f321ab7f
VS
34901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34902 (eval $ac_compile) 2>conftest.er1
a848cd7e 34903 ac_status=$?
ac1cb8d3
VS
34904 grep -v '^ *+' conftest.er1 >conftest.err
34905 rm -f conftest.er1
34906 cat conftest.err >&5
a848cd7e
SC
34907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908 (exit $ac_status); } &&
f321ab7f
VS
34909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34911 (eval $ac_try) 2>&5
ac1cb8d3
VS
34912 ac_status=$?
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); }; } &&
34915 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
34916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34917 (eval $ac_try) 2>&5
a848cd7e
SC
34918 ac_status=$?
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); }; }; then
34921 wx_cv_size_t_is_ulong=no
34922else
34923 echo "$as_me: failed program was:" >&5
34924sed 's/^/| /' conftest.$ac_ext >&5
34925
f321ab7f 34926wx_cv_size_t_is_ulong=yes
a848cd7e
SC
34927
34928fi
f321ab7f 34929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34930
34931fi
f321ab7f
VS
34932echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34933echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
a848cd7e
SC
34934
34935 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34936 cat >>confdefs.h <<\_ACEOF
34937#define wxSIZE_T_IS_ULONG 1
34938_ACEOF
34939
34940 fi
34941fi
34942
9b8888f9
VZ
34943ac_ext=c
34944ac_cpp='$CPP $CPPFLAGS'
34945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34947ac_compiler_gnu=$ac_cv_c_compiler_gnu
34948
a848cd7e 34949
f321ab7f
VS
34950echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34951echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
a848cd7e
SC
34952if test "${wx_cv_struct_pw_gecos+set}" = set; then
34953 echo $ECHO_N "(cached) $ECHO_C" >&6
34954else
34955
34956 cat >conftest.$ac_ext <<_ACEOF
34957/* confdefs.h. */
34958_ACEOF
34959cat confdefs.h >>conftest.$ac_ext
34960cat >>conftest.$ac_ext <<_ACEOF
34961/* end confdefs.h. */
34962#include <pwd.h>
34963int
34964main ()
34965{
34966
34967 char *p;
34968 struct passwd *pw;
34969 p = pw->pw_gecos;
34970
34971 ;
34972 return 0;
34973}
34974_ACEOF
34975rm -f conftest.$ac_objext
f321ab7f
VS
34976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34977 (eval $ac_compile) 2>conftest.er1
a848cd7e 34978 ac_status=$?
ac1cb8d3
VS
34979 grep -v '^ *+' conftest.er1 >conftest.err
34980 rm -f conftest.er1
34981 cat conftest.err >&5
a848cd7e
SC
34982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983 (exit $ac_status); } &&
f321ab7f
VS
34984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34986 (eval $ac_try) 2>&5
ac1cb8d3
VS
34987 ac_status=$?
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); }; } &&
34990 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
34991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34992 (eval $ac_try) 2>&5
a848cd7e
SC
34993 ac_status=$?
34994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995 (exit $ac_status); }; }; then
34996
34997 wx_cv_struct_pw_gecos=yes
34998
34999else
35000 echo "$as_me: failed program was:" >&5
35001sed 's/^/| /' conftest.$ac_ext >&5
35002
35003
35004 wx_cv_struct_pw_gecos=no
35005
35006
35007fi
f321ab7f 35008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35009
35010
35011fi
f321ab7f
VS
35012echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
35013echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
a848cd7e
SC
35014
35015if test "$wx_cv_struct_pw_gecos" = "yes"; then
35016 cat >>confdefs.h <<\_ACEOF
35017#define HAVE_PW_GECOS 1
35018_ACEOF
35019
35020fi
35021
35022
47a7e797 35023if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
35024 cat >>confdefs.h <<\_ACEOF
35025#define wxUSE_WCHAR_T 1
35026_ACEOF
35027
35028
35029 WCSLEN_FOUND=0
35030 WCHAR_LINK=
35031
35032for ac_func in wcslen
35033do
35034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
35035echo "$as_me:$LINENO: checking for $ac_func" >&5
35036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35037if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
35038 echo $ECHO_N "(cached) $ECHO_C" >&6
35039else
35040 cat >conftest.$ac_ext <<_ACEOF
35041/* confdefs.h. */
35042_ACEOF
35043cat confdefs.h >>conftest.$ac_ext
35044cat >>conftest.$ac_ext <<_ACEOF
35045/* end confdefs.h. */
ac1cb8d3
VS
35046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35048#define $ac_func innocuous_$ac_func
35049
a848cd7e
SC
35050/* System header to define __stub macros and hopefully few prototypes,
35051 which can conflict with char $ac_func (); below.
35052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35053 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35054
a848cd7e
SC
35055#ifdef __STDC__
35056# include <limits.h>
35057#else
35058# include <assert.h>
35059#endif
ac1cb8d3
VS
35060
35061#undef $ac_func
35062
f321ab7f 35063/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
35064#ifdef __cplusplus
35065extern "C"
f321ab7f 35066{
a848cd7e 35067#endif
f321ab7f
VS
35068/* We use char because int might match the return type of a gcc2
35069 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35070char $ac_func ();
35071/* The GNU C library defines this for functions which it implements
35072 to always fail with ENOSYS. Some functions are actually named
35073 something starting with __ and the normal name is an alias. */
f321ab7f 35074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 35075choke me
f321ab7f
VS
35076#else
35077char (*f) () = $ac_func;
35078#endif
35079#ifdef __cplusplus
35080}
a848cd7e
SC
35081#endif
35082
35083int
35084main ()
35085{
f321ab7f 35086return f != $ac_func;
a848cd7e
SC
35087 ;
35088 return 0;
35089}
35090_ACEOF
35091rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
35092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35093 (eval $ac_link) 2>conftest.er1
a848cd7e 35094 ac_status=$?
ac1cb8d3
VS
35095 grep -v '^ *+' conftest.er1 >conftest.err
35096 rm -f conftest.er1
35097 cat conftest.err >&5
a848cd7e
SC
35098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 (exit $ac_status); } &&
f321ab7f
VS
35100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35102 (eval $ac_try) 2>&5
ac1cb8d3
VS
35103 ac_status=$?
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); }; } &&
35106 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
35107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35108 (eval $ac_try) 2>&5
a848cd7e
SC
35109 ac_status=$?
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); }; }; then
35112 eval "$as_ac_var=yes"
35113else
35114 echo "$as_me: failed program was:" >&5
35115sed 's/^/| /' conftest.$ac_ext >&5
35116
f321ab7f 35117eval "$as_ac_var=no"
a848cd7e 35118fi
f321ab7f 35119rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 35120 conftest$ac_exeext conftest.$ac_ext
a848cd7e 35121fi
f321ab7f
VS
35122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
35124if test `eval echo '${'$as_ac_var'}'` = yes; then
35125 cat >>confdefs.h <<_ACEOF
35126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35127_ACEOF
35128 WCSLEN_FOUND=1
35129fi
35130done
35131
35132
35133 if test "$WCSLEN_FOUND" = 0; then
35134 if test "$TOOLKIT" = "MSW"; then
f321ab7f
VS
35135 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
35136echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
a848cd7e
SC
35137if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
35138 echo $ECHO_N "(cached) $ECHO_C" >&6
35139else
35140 ac_check_lib_save_LIBS=$LIBS
35141LIBS="-lmsvcrt $LIBS"
35142cat >conftest.$ac_ext <<_ACEOF
35143/* confdefs.h. */
35144_ACEOF
35145cat confdefs.h >>conftest.$ac_ext
35146cat >>conftest.$ac_ext <<_ACEOF
35147/* end confdefs.h. */
35148
f321ab7f 35149/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
35150#ifdef __cplusplus
35151extern "C"
35152#endif
f321ab7f
VS
35153/* We use char because int might match the return type of a gcc2
35154 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35155char wcslen ();
35156int
35157main ()
35158{
f321ab7f 35159wcslen ();
a848cd7e
SC
35160 ;
35161 return 0;
35162}
35163_ACEOF
35164rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
35165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35166 (eval $ac_link) 2>conftest.er1
a848cd7e 35167 ac_status=$?
ac1cb8d3
VS
35168 grep -v '^ *+' conftest.er1 >conftest.err
35169 rm -f conftest.er1
35170 cat conftest.err >&5
a848cd7e
SC
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); } &&
f321ab7f
VS
35173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175 (eval $ac_try) 2>&5
ac1cb8d3
VS
35176 ac_status=$?
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); }; } &&
35179 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
35180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35181 (eval $ac_try) 2>&5
a848cd7e
SC
35182 ac_status=$?
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); }; }; then
35185 ac_cv_lib_msvcrt_wcslen=yes
35186else
35187 echo "$as_me: failed program was:" >&5
35188sed 's/^/| /' conftest.$ac_ext >&5
35189
f321ab7f 35190ac_cv_lib_msvcrt_wcslen=no
a848cd7e 35191fi
f321ab7f 35192rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 35193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35194LIBS=$ac_check_lib_save_LIBS
35195fi
f321ab7f
VS
35196echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35197echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
a848cd7e
SC
35198if test $ac_cv_lib_msvcrt_wcslen = yes; then
35199 WCHAR_OK=1
35200fi
35201
35202 else
f321ab7f
VS
35203 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35204echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
a848cd7e
SC
35205if test "${ac_cv_lib_w_wcslen+set}" = set; then
35206 echo $ECHO_N "(cached) $ECHO_C" >&6
35207else
35208 ac_check_lib_save_LIBS=$LIBS
35209LIBS="-lw $LIBS"
35210cat >conftest.$ac_ext <<_ACEOF
35211/* confdefs.h. */
35212_ACEOF
35213cat confdefs.h >>conftest.$ac_ext
35214cat >>conftest.$ac_ext <<_ACEOF
35215/* end confdefs.h. */
35216
f321ab7f 35217/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
35218#ifdef __cplusplus
35219extern "C"
35220#endif
f321ab7f
VS
35221/* We use char because int might match the return type of a gcc2
35222 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35223char wcslen ();
35224int
35225main ()
35226{
f321ab7f 35227wcslen ();
a848cd7e
SC
35228 ;
35229 return 0;
35230}
35231_ACEOF
35232rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
35233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35234 (eval $ac_link) 2>conftest.er1
a848cd7e 35235 ac_status=$?
ac1cb8d3
VS
35236 grep -v '^ *+' conftest.er1 >conftest.err
35237 rm -f conftest.er1
35238 cat conftest.err >&5
a848cd7e
SC
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); } &&
f321ab7f
VS
35241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35243 (eval $ac_try) 2>&5
ac1cb8d3
VS
35244 ac_status=$?
35245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); }; } &&
35247 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
35248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35249 (eval $ac_try) 2>&5
a848cd7e
SC
35250 ac_status=$?
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); }; }; then
35253 ac_cv_lib_w_wcslen=yes
35254else
35255 echo "$as_me: failed program was:" >&5
35256sed 's/^/| /' conftest.$ac_ext >&5
35257
f321ab7f 35258ac_cv_lib_w_wcslen=no
a848cd7e 35259fi
f321ab7f 35260rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 35261 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35262LIBS=$ac_check_lib_save_LIBS
35263fi
f321ab7f
VS
35264echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35265echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
a848cd7e
SC
35266if test $ac_cv_lib_w_wcslen = yes; then
35267
35268 WCHAR_LINK=" -lw"
35269 WCSLEN_FOUND=1
35270
35271fi
35272
35273 fi
35274 fi
35275
35276 if test "$WCSLEN_FOUND" = 1; then
35277 cat >>confdefs.h <<\_ACEOF
35278#define HAVE_WCSLEN 1
35279_ACEOF
35280
35281 fi
35282
efdf6afe 35283 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 35284 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
35285 fi
35286
f321ab7f
VS
35287 echo "$as_me:$LINENO: checking for mbstate_t" >&5
35288echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
efdf6afe
VZ
35289if test "${ac_cv_type_mbstate_t+set}" = set; then
35290 echo $ECHO_N "(cached) $ECHO_C" >&6
35291else
35292 cat >conftest.$ac_ext <<_ACEOF
35293/* confdefs.h. */
35294_ACEOF
35295cat confdefs.h >>conftest.$ac_ext
35296cat >>conftest.$ac_ext <<_ACEOF
35297/* end confdefs.h. */
35298#include <wchar.h>
35299
35300int
35301main ()
35302{
f321ab7f 35303if ((mbstate_t *) 0)
efdf6afe 35304 return 0;
f321ab7f 35305if (sizeof (mbstate_t))
efdf6afe
VZ
35306 return 0;
35307 ;
35308 return 0;
35309}
35310_ACEOF
35311rm -f conftest.$ac_objext
f321ab7f
VS
35312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35313 (eval $ac_compile) 2>conftest.er1
efdf6afe
VZ
35314 ac_status=$?
35315 grep -v '^ *+' conftest.er1 >conftest.err
35316 rm -f conftest.er1
35317 cat conftest.err >&5
35318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319 (exit $ac_status); } &&
f321ab7f
VS
35320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35322 (eval $ac_try) 2>&5
efdf6afe
VZ
35323 ac_status=$?
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); }; } &&
35326 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
35327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35328 (eval $ac_try) 2>&5
efdf6afe
VZ
35329 ac_status=$?
35330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331 (exit $ac_status); }; }; then
35332 ac_cv_type_mbstate_t=yes
35333else
35334 echo "$as_me: failed program was:" >&5
35335sed 's/^/| /' conftest.$ac_ext >&5
35336
f321ab7f 35337ac_cv_type_mbstate_t=no
efdf6afe 35338fi
f321ab7f 35339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
efdf6afe 35340fi
f321ab7f
VS
35341echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35342echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
efdf6afe
VZ
35343if test $ac_cv_type_mbstate_t = yes; then
35344
35345cat >>confdefs.h <<_ACEOF
35346#define HAVE_MBSTATE_T 1
35347_ACEOF
35348
a848cd7e
SC
35349
35350for ac_func in wcsrtombs
35351do
35352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
35353echo "$as_me:$LINENO: checking for $ac_func" >&5
35354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35355if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
35356 echo $ECHO_N "(cached) $ECHO_C" >&6
35357else
35358 cat >conftest.$ac_ext <<_ACEOF
35359/* confdefs.h. */
35360_ACEOF
35361cat confdefs.h >>conftest.$ac_ext
35362cat >>conftest.$ac_ext <<_ACEOF
35363/* end confdefs.h. */
ac1cb8d3
VS
35364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35366#define $ac_func innocuous_$ac_func
35367
a848cd7e
SC
35368/* System header to define __stub macros and hopefully few prototypes,
35369 which can conflict with char $ac_func (); below.
35370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35371 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35372
a848cd7e
SC
35373#ifdef __STDC__
35374# include <limits.h>
35375#else
35376# include <assert.h>
35377#endif
ac1cb8d3
VS
35378
35379#undef $ac_func
35380
f321ab7f 35381/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
35382#ifdef __cplusplus
35383extern "C"
f321ab7f 35384{
a848cd7e 35385#endif
f321ab7f
VS
35386/* We use char because int might match the return type of a gcc2
35387 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35388char $ac_func ();
35389/* The GNU C library defines this for functions which it implements
35390 to always fail with ENOSYS. Some functions are actually named
35391 something starting with __ and the normal name is an alias. */
f321ab7f 35392#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 35393choke me
f321ab7f
VS
35394#else
35395char (*f) () = $ac_func;
35396#endif
35397#ifdef __cplusplus
35398}
a848cd7e
SC
35399#endif
35400
35401int
35402main ()
35403{
f321ab7f 35404return f != $ac_func;
a848cd7e
SC
35405 ;
35406 return 0;
35407}
35408_ACEOF
35409rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
35410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35411 (eval $ac_link) 2>conftest.er1
a848cd7e 35412 ac_status=$?
ac1cb8d3
VS
35413 grep -v '^ *+' conftest.er1 >conftest.err
35414 rm -f conftest.er1
35415 cat conftest.err >&5
a848cd7e
SC
35416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35417 (exit $ac_status); } &&
f321ab7f
VS
35418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35420 (eval $ac_try) 2>&5
ac1cb8d3
VS
35421 ac_status=$?
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); }; } &&
35424 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
35425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426 (eval $ac_try) 2>&5
a848cd7e
SC
35427 ac_status=$?
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); }; }; then
35430 eval "$as_ac_var=yes"
35431else
35432 echo "$as_me: failed program was:" >&5
35433sed 's/^/| /' conftest.$ac_ext >&5
35434
f321ab7f 35435eval "$as_ac_var=no"
a848cd7e 35436fi
f321ab7f 35437rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 35438 conftest$ac_exeext conftest.$ac_ext
a848cd7e 35439fi
f321ab7f
VS
35440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35441echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
35442if test `eval echo '${'$as_ac_var'}'` = yes; then
35443 cat >>confdefs.h <<_ACEOF
35444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35445_ACEOF
35446
35447fi
35448done
35449
efdf6afe
VZ
35450fi
35451
a848cd7e
SC
35452else
35453 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35454echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35455fi
35456
a848cd7e 35457
4a767dd5
VZ
35458
35459for ac_func in snprintf vsnprintf
a848cd7e
SC
35460do
35461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
35462echo "$as_me:$LINENO: checking for $ac_func" >&5
35463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35464if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
35465 echo $ECHO_N "(cached) $ECHO_C" >&6
35466else
35467 cat >conftest.$ac_ext <<_ACEOF
35468/* confdefs.h. */
35469_ACEOF
35470cat confdefs.h >>conftest.$ac_ext
35471cat >>conftest.$ac_ext <<_ACEOF
35472/* end confdefs.h. */
ac1cb8d3
VS
35473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35475#define $ac_func innocuous_$ac_func
35476
a848cd7e
SC
35477/* System header to define __stub macros and hopefully few prototypes,
35478 which can conflict with char $ac_func (); below.
35479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35480 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35481
a848cd7e
SC
35482#ifdef __STDC__
35483# include <limits.h>
35484#else
35485# include <assert.h>
35486#endif
ac1cb8d3
VS
35487
35488#undef $ac_func
35489
f321ab7f 35490/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
35491#ifdef __cplusplus
35492extern "C"
f321ab7f 35493{
a848cd7e 35494#endif
f321ab7f
VS
35495/* We use char because int might match the return type of a gcc2
35496 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35497char $ac_func ();
35498/* The GNU C library defines this for functions which it implements
35499 to always fail with ENOSYS. Some functions are actually named
35500 something starting with __ and the normal name is an alias. */
f321ab7f 35501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 35502choke me
f321ab7f
VS
35503#else
35504char (*f) () = $ac_func;
35505#endif
35506#ifdef __cplusplus
35507}
a848cd7e
SC
35508#endif
35509
35510int
35511main ()
35512{
f321ab7f 35513return f != $ac_func;
a848cd7e
SC
35514 ;
35515 return 0;
35516}
35517_ACEOF
35518rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
35519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35520 (eval $ac_link) 2>conftest.er1
a848cd7e 35521 ac_status=$?
ac1cb8d3
VS
35522 grep -v '^ *+' conftest.er1 >conftest.err
35523 rm -f conftest.er1
35524 cat conftest.err >&5
a848cd7e
SC
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); } &&
f321ab7f
VS
35527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529 (eval $ac_try) 2>&5
ac1cb8d3
VS
35530 ac_status=$?
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); }; } &&
35533 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
35534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35535 (eval $ac_try) 2>&5
a848cd7e
SC
35536 ac_status=$?
35537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538 (exit $ac_status); }; }; then
35539 eval "$as_ac_var=yes"
35540else
35541 echo "$as_me: failed program was:" >&5
35542sed 's/^/| /' conftest.$ac_ext >&5
35543
f321ab7f 35544eval "$as_ac_var=no"
a848cd7e 35545fi
f321ab7f 35546rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 35547 conftest$ac_exeext conftest.$ac_ext
a848cd7e 35548fi
f321ab7f
VS
35549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35550echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
35551if test `eval echo '${'$as_ac_var'}'` = yes; then
35552 cat >>confdefs.h <<_ACEOF
35553#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35554_ACEOF
35555
35556fi
35557done
35558
35559
35560if test "$ac_cv_func_vsnprintf" = "yes"; then
f321ab7f
VS
35561 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35562echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
a848cd7e
SC
35563if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35564 echo $ECHO_N "(cached) $ECHO_C" >&6
35565else
35566
efdf6afe 35567 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35568/* confdefs.h. */
35569_ACEOF
35570cat confdefs.h >>conftest.$ac_ext
35571cat >>conftest.$ac_ext <<_ACEOF
35572/* end confdefs.h. */
35573
35574 #include <stdio.h>
35575 #include <stdarg.h>
efdf6afe
VZ
35576 #ifdef __MSL__
35577 #if __MSL__ >= 0x6000
35578 namespace std {}
35579 using namespace std;
35580 #endif
35581 #endif
a848cd7e
SC
35582
35583int
35584main ()
35585{
35586
35587 char *buf;
35588 va_list ap;
62fa8b3a 35589 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
35590
35591 ;
35592 return 0;
35593}
35594_ACEOF
35595rm -f conftest.$ac_objext
f321ab7f
VS
35596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35597 (eval $ac_compile) 2>conftest.er1
c122b164
DE
35598 ac_status=$?
35599 grep -v '^ *+' conftest.er1 >conftest.err
35600 rm -f conftest.er1
35601 cat conftest.err >&5
35602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603 (exit $ac_status); } &&
f321ab7f
VS
35604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35606 (eval $ac_try) 2>&5
c122b164
DE
35607 ac_status=$?
35608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609 (exit $ac_status); }; } &&
35610 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
35611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35612 (eval $ac_try) 2>&5
c122b164
DE
35613 ac_status=$?
35614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615 (exit $ac_status); }; }; then
35616 wx_cv_func_vsnprintf_decl=yes
35617else
35618 echo "$as_me: failed program was:" >&5
35619sed 's/^/| /' conftest.$ac_ext >&5
35620
f321ab7f 35621wx_cv_func_vsnprintf_decl=no
a848cd7e
SC
35622
35623fi
f321ab7f 35624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35625
35626
35627fi
f321ab7f
VS
35628echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35629echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
a848cd7e
SC
35630
35631 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35632 cat >>confdefs.h <<\_ACEOF
35633#define HAVE_VSNPRINTF_DECL 1
35634_ACEOF
35635
62fa8b3a 35636
f321ab7f
VS
35637 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35638echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
62fa8b3a
MW
35639if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35640 echo $ECHO_N "(cached) $ECHO_C" >&6
35641else
35642
35643 cat >conftest.$ac_ext <<_ACEOF
35644/* confdefs.h. */
35645_ACEOF
35646cat confdefs.h >>conftest.$ac_ext
35647cat >>conftest.$ac_ext <<_ACEOF
35648/* end confdefs.h. */
35649
35650 #include <stdio.h>
35651 #include <stdarg.h>
35652 #ifdef __MSL__
35653 #if __MSL__ >= 0x6000
35654 namespace std {}
35655 using namespace std;
35656 #endif
35657 #endif
35658
35659int
35660main ()
35661{
35662
35663 char *buf;
35664 va_list ap;
35665 const char *fmt = "%s";
35666 vsnprintf(buf, 10u, fmt, ap);
35667
35668 ;
35669 return 0;
35670}
35671_ACEOF
35672rm -f conftest.$ac_objext
f321ab7f
VS
35673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35674 (eval $ac_compile) 2>conftest.er1
62fa8b3a
MW
35675 ac_status=$?
35676 grep -v '^ *+' conftest.er1 >conftest.err
35677 rm -f conftest.er1
35678 cat conftest.err >&5
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); } &&
f321ab7f
VS
35681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683 (eval $ac_try) 2>&5
62fa8b3a
MW
35684 ac_status=$?
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); }; } &&
35687 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
35688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689 (eval $ac_try) 2>&5
62fa8b3a
MW
35690 ac_status=$?
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); }; }; then
35693 wx_cv_func_broken_vsnprintf_decl=no
35694else
35695 echo "$as_me: failed program was:" >&5
35696sed 's/^/| /' conftest.$ac_ext >&5
35697
f321ab7f 35698wx_cv_func_broken_vsnprintf_decl=yes
62fa8b3a
MW
35699
35700fi
f321ab7f 35701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62fa8b3a
MW
35702
35703
35704fi
f321ab7f
VS
35705echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35706echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
62fa8b3a
MW
35707
35708 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35709 cat >>confdefs.h <<\_ACEOF
35710#define HAVE_BROKEN_VSNPRINTF_DECL 1
35711_ACEOF
35712
35713 fi
a848cd7e
SC
35714 fi
35715fi
35716
4a767dd5 35717if test "$ac_cv_func_snprintf" = "yes"; then
f321ab7f
VS
35718 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35719echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
4a767dd5
VZ
35720if test "${wx_cv_func_snprintf_decl+set}" = set; then
35721 echo $ECHO_N "(cached) $ECHO_C" >&6
35722else
35723
35724 cat >conftest.$ac_ext <<_ACEOF
35725/* confdefs.h. */
35726_ACEOF
35727cat confdefs.h >>conftest.$ac_ext
35728cat >>conftest.$ac_ext <<_ACEOF
35729/* end confdefs.h. */
35730
35731 #include <stdio.h>
35732 #include <stdarg.h>
35733 #ifdef __MSL__
35734 #if __MSL__ >= 0x6000
35735 namespace std {}
35736 using namespace std;
35737 #endif
35738 #endif
35739
35740int
35741main ()
35742{
35743
35744 char *buf;
62fa8b3a 35745 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35746
35747 ;
35748 return 0;
35749}
35750_ACEOF
35751rm -f conftest.$ac_objext
f321ab7f
VS
35752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35753 (eval $ac_compile) 2>conftest.er1
4a767dd5
VZ
35754 ac_status=$?
35755 grep -v '^ *+' conftest.er1 >conftest.err
35756 rm -f conftest.er1
35757 cat conftest.err >&5
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); } &&
f321ab7f
VS
35760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762 (eval $ac_try) 2>&5
4a767dd5
VZ
35763 ac_status=$?
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); }; } &&
35766 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
35767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35768 (eval $ac_try) 2>&5
4a767dd5
VZ
35769 ac_status=$?
35770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771 (exit $ac_status); }; }; then
35772 wx_cv_func_snprintf_decl=yes
35773else
35774 echo "$as_me: failed program was:" >&5
35775sed 's/^/| /' conftest.$ac_ext >&5
35776
f321ab7f 35777wx_cv_func_snprintf_decl=no
4a767dd5
VZ
35778
35779fi
f321ab7f 35780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4a767dd5
VZ
35781
35782
35783fi
f321ab7f
VS
35784echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35785echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
4a767dd5
VZ
35786
35787 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35788 cat >>confdefs.h <<\_ACEOF
35789#define HAVE_SNPRINTF_DECL 1
35790_ACEOF
35791
62fa8b3a 35792
f321ab7f
VS
35793 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35794echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
62fa8b3a
MW
35795if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35796 echo $ECHO_N "(cached) $ECHO_C" >&6
35797else
35798
35799 cat >conftest.$ac_ext <<_ACEOF
35800/* confdefs.h. */
35801_ACEOF
35802cat confdefs.h >>conftest.$ac_ext
35803cat >>conftest.$ac_ext <<_ACEOF
35804/* end confdefs.h. */
35805
35806 #include <stdio.h>
35807 #include <stdarg.h>
35808 #ifdef __MSL__
35809 #if __MSL__ >= 0x6000
35810 namespace std {}
35811 using namespace std;
35812 #endif
35813 #endif
35814
35815int
35816main ()
35817{
35818
35819 char *buf;
35820 const char *fmt = "%s";
35821 snprintf(buf, 10u, fmt, "wx");
35822
35823 ;
35824 return 0;
35825}
35826_ACEOF
35827rm -f conftest.$ac_objext
f321ab7f
VS
35828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35829 (eval $ac_compile) 2>conftest.er1
62fa8b3a
MW
35830 ac_status=$?
35831 grep -v '^ *+' conftest.er1 >conftest.err
35832 rm -f conftest.er1
35833 cat conftest.err >&5
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); } &&
f321ab7f
VS
35836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35838 (eval $ac_try) 2>&5
62fa8b3a
MW
35839 ac_status=$?
35840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841 (exit $ac_status); }; } &&
35842 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
35843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35844 (eval $ac_try) 2>&5
62fa8b3a
MW
35845 ac_status=$?
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); }; }; then
35848 wx_cv_func_broken_snprintf_decl=no
35849else
35850 echo "$as_me: failed program was:" >&5
35851sed 's/^/| /' conftest.$ac_ext >&5
35852
f321ab7f 35853wx_cv_func_broken_snprintf_decl=yes
62fa8b3a
MW
35854
35855fi
f321ab7f 35856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62fa8b3a
MW
35857
35858
35859fi
f321ab7f
VS
35860echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35861echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
62fa8b3a
MW
35862
35863 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35864 cat >>confdefs.h <<\_ACEOF
35865#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35866_ACEOF
35867
35868 fi
35869 fi
35870
35871 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35872
f321ab7f
VS
35873 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35874echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
8b6682b9
JS
35875if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35876 echo $ECHO_N "(cached) $ECHO_C" >&6
35877else
35878
35879 if test "$cross_compiling" = yes; then
5039a2df
VZ
35880
35881 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35882define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35883echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35884define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35885 wx_cv_func_snprintf_pos_params=no
35886
35887
8b6682b9
JS
35888else
35889 cat >conftest.$ac_ext <<_ACEOF
35890/* confdefs.h. */
35891_ACEOF
35892cat confdefs.h >>conftest.$ac_ext
35893cat >>conftest.$ac_ext <<_ACEOF
35894/* end confdefs.h. */
35895
35896 #include <stdio.h>
35897
35898 int main (void)
35899 {
35900 char buffer[128];
f321ab7f 35901 snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
8b6682b9
JS
35902 if (strcmp ("2 3 1", buffer) == 0)
35903 exit (0);
35904 exit (1);
35905 }
35906
35907_ACEOF
35908rm -f conftest$ac_exeext
f321ab7f
VS
35909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35910 (eval $ac_link) 2>&5
8b6682b9
JS
35911 ac_status=$?
35912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
35914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35915 (eval $ac_try) 2>&5
8b6682b9
JS
35916 ac_status=$?
35917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35918 (exit $ac_status); }; }; then
35919 wx_cv_func_snprintf_pos_params=no
35920else
35921 echo "$as_me: program exited with status $ac_status" >&5
35922echo "$as_me: failed program was:" >&5
35923sed 's/^/| /' conftest.$ac_ext >&5
35924
35925( exit $ac_status )
35926wx_cv_func_snprintf_pos_params=yes
8b6682b9 35927fi
f321ab7f 35928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8b6682b9
JS
35929fi
35930
35931
35932fi
f321ab7f
VS
35933echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35934echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
8b6682b9
JS
35935
35936 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35937 cat >>confdefs.h <<\_ACEOF
35938#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35939_ACEOF
35940
35941 fi
4a767dd5
VZ
35942 fi
35943fi
35944
a848cd7e
SC
35945if test "$wxUSE_UNICODE" = yes; then
35946
35947
6a5c9b3f
RR
35948for ac_func in swprintf
35949do
35950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
35951echo "$as_me:$LINENO: checking for $ac_func" >&5
35952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35953if eval "test \"\${$as_ac_var+set}\" = set"; then
6a5c9b3f
RR
35954 echo $ECHO_N "(cached) $ECHO_C" >&6
35955else
35956 cat >conftest.$ac_ext <<_ACEOF
35957/* confdefs.h. */
35958_ACEOF
35959cat confdefs.h >>conftest.$ac_ext
35960cat >>conftest.$ac_ext <<_ACEOF
35961/* end confdefs.h. */
35962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35964#define $ac_func innocuous_$ac_func
35965
35966/* System header to define __stub macros and hopefully few prototypes,
35967 which can conflict with char $ac_func (); below.
35968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35969 <limits.h> exists even on freestanding compilers. */
35970
35971#ifdef __STDC__
35972# include <limits.h>
35973#else
35974# include <assert.h>
35975#endif
35976
35977#undef $ac_func
35978
f321ab7f 35979/* Override any gcc2 internal prototype to avoid an error. */
6a5c9b3f
RR
35980#ifdef __cplusplus
35981extern "C"
f321ab7f 35982{
6a5c9b3f 35983#endif
f321ab7f
VS
35984/* We use char because int might match the return type of a gcc2
35985 builtin and then its argument prototype would still apply. */
6a5c9b3f
RR
35986char $ac_func ();
35987/* The GNU C library defines this for functions which it implements
35988 to always fail with ENOSYS. Some functions are actually named
35989 something starting with __ and the normal name is an alias. */
f321ab7f 35990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6a5c9b3f 35991choke me
f321ab7f
VS
35992#else
35993char (*f) () = $ac_func;
35994#endif
35995#ifdef __cplusplus
35996}
6a5c9b3f
RR
35997#endif
35998
35999int
36000main ()
36001{
f321ab7f 36002return f != $ac_func;
6a5c9b3f
RR
36003 ;
36004 return 0;
36005}
36006_ACEOF
36007rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
36008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36009 (eval $ac_link) 2>conftest.er1
6a5c9b3f
RR
36010 ac_status=$?
36011 grep -v '^ *+' conftest.er1 >conftest.err
36012 rm -f conftest.er1
36013 cat conftest.err >&5
36014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); } &&
f321ab7f
VS
36016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36018 (eval $ac_try) 2>&5
6a5c9b3f
RR
36019 ac_status=$?
36020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021 (exit $ac_status); }; } &&
36022 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
36023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36024 (eval $ac_try) 2>&5
6a5c9b3f
RR
36025 ac_status=$?
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); }; }; then
36028 eval "$as_ac_var=yes"
36029else
36030 echo "$as_me: failed program was:" >&5
36031sed 's/^/| /' conftest.$ac_ext >&5
36032
f321ab7f 36033eval "$as_ac_var=no"
6a5c9b3f 36034fi
f321ab7f 36035rm -f conftest.err conftest.$ac_objext \
6a5c9b3f
RR
36036 conftest$ac_exeext conftest.$ac_ext
36037fi
f321ab7f
VS
36038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36039echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6a5c9b3f
RR
36040if test `eval echo '${'$as_ac_var'}'` = yes; then
36041 cat >>confdefs.h <<_ACEOF
36042#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36043_ACEOF
36044
36045fi
36046done
36047
36048
36049 if test "$ac_cv_func_swprintf" = "yes"; then
f321ab7f
VS
36050 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
36051echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
6a5c9b3f
RR
36052if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
36053 echo $ECHO_N "(cached) $ECHO_C" >&6
36054else
36055
36056 cat >conftest.$ac_ext <<_ACEOF
36057/* confdefs.h. */
36058_ACEOF
36059cat confdefs.h >>conftest.$ac_ext
36060cat >>conftest.$ac_ext <<_ACEOF
36061/* end confdefs.h. */
36062
36063 #include <stdio.h>
36064 #include <stdarg.h>
36065 #include <wchar.h>
36066
36067int
36068main ()
36069{
36070
36071 wchar_t *buf;
36072 const wchar_t *fmt = L"test";
36073 swprintf(buf, 10u, fmt);
36074
36075 ;
36076 return 0;
36077}
36078_ACEOF
36079rm -f conftest.$ac_objext
f321ab7f
VS
36080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36081 (eval $ac_compile) 2>conftest.er1
6a5c9b3f
RR
36082 ac_status=$?
36083 grep -v '^ *+' conftest.er1 >conftest.err
36084 rm -f conftest.er1
36085 cat conftest.err >&5
36086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36087 (exit $ac_status); } &&
f321ab7f
VS
36088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36090 (eval $ac_try) 2>&5
6a5c9b3f
RR
36091 ac_status=$?
36092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093 (exit $ac_status); }; } &&
36094 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
36095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36096 (eval $ac_try) 2>&5
6a5c9b3f
RR
36097 ac_status=$?
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); }; }; then
36100 wx_cv_func_broken_swprintf_decl=no
36101else
36102 echo "$as_me: failed program was:" >&5
36103sed 's/^/| /' conftest.$ac_ext >&5
36104
f321ab7f 36105wx_cv_func_broken_swprintf_decl=yes
6a5c9b3f
RR
36106
36107fi
f321ab7f 36108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a5c9b3f
RR
36109
36110
36111fi
f321ab7f
VS
36112echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
36113echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
6a5c9b3f
RR
36114
36115 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
36116 cat >>confdefs.h <<\_ACEOF
36117#define HAVE_BROKEN_SWPRINTF_DECL 1
36118_ACEOF
36119
36120 fi
36121 fi
36122
a49ffb32
VZ
36123 wchar_headers="#include <stdio.h>
36124#include <wchar.h>"
36125 case "${host}" in
36126 *-*-solaris2* )
36127
36128for ac_header in widec.h
36129do
36130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
36131if eval "test \"\${$as_ac_Header+set}\" = set"; then
36132 echo "$as_me:$LINENO: checking for $ac_header" >&5
36133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36134if eval "test \"\${$as_ac_Header+set}\" = set"; then
a49ffb32
VZ
36135 echo $ECHO_N "(cached) $ECHO_C" >&6
36136fi
f321ab7f
VS
36137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a49ffb32
VZ
36139else
36140 # Is the header compilable?
f321ab7f
VS
36141echo "$as_me:$LINENO: checking $ac_header usability" >&5
36142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a49ffb32
VZ
36143cat >conftest.$ac_ext <<_ACEOF
36144/* confdefs.h. */
36145_ACEOF
36146cat confdefs.h >>conftest.$ac_ext
36147cat >>conftest.$ac_ext <<_ACEOF
36148/* end confdefs.h. */
36149$ac_includes_default
36150#include <$ac_header>
36151_ACEOF
36152rm -f conftest.$ac_objext
f321ab7f
VS
36153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36154 (eval $ac_compile) 2>conftest.er1
a49ffb32
VZ
36155 ac_status=$?
36156 grep -v '^ *+' conftest.er1 >conftest.err
36157 rm -f conftest.er1
36158 cat conftest.err >&5
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); } &&
f321ab7f
VS
36161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36163 (eval $ac_try) 2>&5
a49ffb32
VZ
36164 ac_status=$?
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); }; } &&
36167 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
36168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36169 (eval $ac_try) 2>&5
a49ffb32
VZ
36170 ac_status=$?
36171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172 (exit $ac_status); }; }; then
36173 ac_header_compiler=yes
36174else
36175 echo "$as_me: failed program was:" >&5
36176sed 's/^/| /' conftest.$ac_ext >&5
36177
f321ab7f 36178ac_header_compiler=no
a49ffb32 36179fi
f321ab7f
VS
36180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36182echo "${ECHO_T}$ac_header_compiler" >&6
a49ffb32
VZ
36183
36184# Is the header present?
f321ab7f
VS
36185echo "$as_me:$LINENO: checking $ac_header presence" >&5
36186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a49ffb32
VZ
36187cat >conftest.$ac_ext <<_ACEOF
36188/* confdefs.h. */
36189_ACEOF
36190cat confdefs.h >>conftest.$ac_ext
36191cat >>conftest.$ac_ext <<_ACEOF
36192/* end confdefs.h. */
36193#include <$ac_header>
36194_ACEOF
f321ab7f
VS
36195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a49ffb32
VZ
36197 ac_status=$?
36198 grep -v '^ *+' conftest.er1 >conftest.err
36199 rm -f conftest.er1
36200 cat conftest.err >&5
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); } >/dev/null; then
36203 if test -s conftest.err; then
36204 ac_cpp_err=$ac_c_preproc_warn_flag
36205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36206 else
36207 ac_cpp_err=
36208 fi
36209else
36210 ac_cpp_err=yes
36211fi
36212if test -z "$ac_cpp_err"; then
36213 ac_header_preproc=yes
36214else
36215 echo "$as_me: failed program was:" >&5
36216sed 's/^/| /' conftest.$ac_ext >&5
36217
36218 ac_header_preproc=no
36219fi
36220rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
36221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36222echo "${ECHO_T}$ac_header_preproc" >&6
a49ffb32
VZ
36223
36224# So? What about this header?
36225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36226 yes:no: )
36227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36231 ac_header_preproc=yes
36232 ;;
36233 no:yes:* )
36234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
36246 (
36247 cat <<\_ASBOX
a49ffb32
VZ
36248## ----------------------------------------- ##
36249## Report this to wx-dev@lists.wxwidgets.org ##
36250## ----------------------------------------- ##
36251_ASBOX
f321ab7f
VS
36252 ) |
36253 sed "s/^/$as_me: WARNING: /" >&2
a49ffb32
VZ
36254 ;;
36255esac
f321ab7f
VS
36256echo "$as_me:$LINENO: checking for $ac_header" >&5
36257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36258if eval "test \"\${$as_ac_Header+set}\" = set"; then
a49ffb32
VZ
36259 echo $ECHO_N "(cached) $ECHO_C" >&6
36260else
36261 eval "$as_ac_Header=\$ac_header_preproc"
36262fi
f321ab7f
VS
36263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a49ffb32
VZ
36265
36266fi
36267if test `eval echo '${'$as_ac_Header'}'` = yes; then
36268 cat >>confdefs.h <<_ACEOF
36269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36270_ACEOF
36271
36272fi
36273
36274done
36275
36276 if test "$ac_cv_header_widec_h" = "yes"; then
36277 wchar_headers="$wchar_headers
36278#include <widec.h>"
36279 fi
36280 esac
36281
6a5c9b3f 36282
fd5199d6
VZ
36283 for wx_func in wputc wputchar putws fputws wprintf vswprintf
36284 do
f321ab7f
VS
36285 echo "$as_me:$LINENO: checking for $wx_func" >&5
36286echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36287if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
36288 echo $ECHO_N "(cached) $ECHO_C" >&6
36289else
fd5199d6
VZ
36290
36291 cat >conftest.$ac_ext <<_ACEOF
36292
36293 /* confdefs.h. */
a848cd7e
SC
36294_ACEOF
36295cat confdefs.h >>conftest.$ac_ext
36296cat >>conftest.$ac_ext <<_ACEOF
36297/* end confdefs.h. */
ac1cb8d3 36298
a49ffb32 36299 $wchar_headers
fd5199d6 36300 $ac_includes_default
a848cd7e
SC
36301
36302int
36303main ()
36304{
fd5199d6
VZ
36305
36306 #ifndef $wx_func
36307 &$wx_func;
36308 #endif
36309
36310
a848cd7e
SC
36311 ;
36312 return 0;
36313}
fd5199d6 36314
a848cd7e
SC
36315_ACEOF
36316rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
36317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36318 (eval $ac_link) 2>conftest.er1
a848cd7e 36319 ac_status=$?
ac1cb8d3
VS
36320 grep -v '^ *+' conftest.er1 >conftest.err
36321 rm -f conftest.er1
36322 cat conftest.err >&5
a848cd7e
SC
36323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36324 (exit $ac_status); } &&
f321ab7f
VS
36325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36327 (eval $ac_try) 2>&5
ac1cb8d3
VS
36328 ac_status=$?
36329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330 (exit $ac_status); }; } &&
36331 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
36332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36333 (eval $ac_try) 2>&5
a848cd7e
SC
36334 ac_status=$?
36335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36336 (exit $ac_status); }; }; then
fd5199d6 36337 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
36338else
36339 echo "$as_me: failed program was:" >&5
36340sed 's/^/| /' conftest.$ac_ext >&5
36341
f321ab7f 36342eval wx_cv_func_$wx_func=no
a848cd7e 36343fi
f321ab7f 36344rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 36345 conftest$ac_exeext conftest.$ac_ext
fd5199d6 36346
a848cd7e 36347fi
f321ab7f
VS
36348echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36349echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
fd5199d6
VZ
36350
36351 if eval test \$wx_cv_func_$wx_func = yes
36352 then
36353 cat >>confdefs.h <<_ACEOF
36354#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
a848cd7e
SC
36355_ACEOF
36356
fd5199d6
VZ
36357
36358 else
36359 :
36360
36361 fi
36362 done
a848cd7e
SC
36363
36364
f321ab7f
VS
36365 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36366echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
a848cd7e
SC
36367 cat >conftest.$ac_ext <<_ACEOF
36368/* confdefs.h. */
36369_ACEOF
36370cat confdefs.h >>conftest.$ac_ext
36371cat >>conftest.$ac_ext <<_ACEOF
36372/* end confdefs.h. */
36373#include <wchar.h>
36374int
36375main ()
36376{
36377&_vsnwprintf;
36378 ;
36379 return 0;
36380}
36381_ACEOF
36382rm -f conftest.$ac_objext
f321ab7f
VS
36383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36384 (eval $ac_compile) 2>conftest.er1
a848cd7e 36385 ac_status=$?
ac1cb8d3
VS
36386 grep -v '^ *+' conftest.er1 >conftest.err
36387 rm -f conftest.er1
36388 cat conftest.err >&5
a848cd7e
SC
36389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36390 (exit $ac_status); } &&
f321ab7f
VS
36391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36393 (eval $ac_try) 2>&5
ac1cb8d3
VS
36394 ac_status=$?
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); }; } &&
36397 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
36398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36399 (eval $ac_try) 2>&5
a848cd7e
SC
36400 ac_status=$?
36401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36402 (exit $ac_status); }; }; then
f321ab7f
VS
36403 echo "$as_me:$LINENO: result: yes" >&5
36404echo "${ECHO_T}yes" >&6
a848cd7e
SC
36405 cat >>confdefs.h <<\_ACEOF
36406#define HAVE__VSNWPRINTF 1
36407_ACEOF
36408
36409else
36410 echo "$as_me: failed program was:" >&5
36411sed 's/^/| /' conftest.$ac_ext >&5
36412
f321ab7f
VS
36413echo "$as_me:$LINENO: result: no" >&5
36414echo "${ECHO_T}no" >&6
a848cd7e 36415fi
f321ab7f 36416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
36417fi
36418
6ebeb4c7
VZ
36419if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
36420
fd5199d6
VZ
36421 for wx_func in fnmatch
36422 do
f321ab7f
VS
36423 echo "$as_me:$LINENO: checking for $wx_func" >&5
36424echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36425if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
6ebeb4c7
VZ
36426 echo $ECHO_N "(cached) $ECHO_C" >&6
36427else
fd5199d6
VZ
36428
36429 cat >conftest.$ac_ext <<_ACEOF
36430
36431 /* confdefs.h. */
6ebeb4c7
VZ
36432_ACEOF
36433cat confdefs.h >>conftest.$ac_ext
36434cat >>conftest.$ac_ext <<_ACEOF
36435/* end confdefs.h. */
6ebeb4c7 36436
9b8888f9 36437 #include <fnmatch.h>
fd5199d6 36438 $ac_includes_default
6ebeb4c7
VZ
36439
36440int
36441main ()
36442{
fd5199d6
VZ
36443
36444 #ifndef $wx_func
36445 &$wx_func;
36446 #endif
36447
36448
6ebeb4c7
VZ
36449 ;
36450 return 0;
36451}
fd5199d6 36452
6ebeb4c7
VZ
36453_ACEOF
36454rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
36455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36456 (eval $ac_link) 2>conftest.er1
6ebeb4c7
VZ
36457 ac_status=$?
36458 grep -v '^ *+' conftest.er1 >conftest.err
36459 rm -f conftest.er1
36460 cat conftest.err >&5
36461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); } &&
f321ab7f
VS
36463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36465 (eval $ac_try) 2>&5
6ebeb4c7
VZ
36466 ac_status=$?
36467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468 (exit $ac_status); }; } &&
36469 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
36470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36471 (eval $ac_try) 2>&5
6ebeb4c7
VZ
36472 ac_status=$?
36473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474 (exit $ac_status); }; }; then
fd5199d6 36475 eval wx_cv_func_$wx_func=yes
6ebeb4c7
VZ
36476else
36477 echo "$as_me: failed program was:" >&5
36478sed 's/^/| /' conftest.$ac_ext >&5
36479
f321ab7f 36480eval wx_cv_func_$wx_func=no
6ebeb4c7 36481fi
f321ab7f 36482rm -f conftest.err conftest.$ac_objext \
6ebeb4c7 36483 conftest$ac_exeext conftest.$ac_ext
fd5199d6 36484
6ebeb4c7 36485fi
f321ab7f
VS
36486echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36487echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
fd5199d6
VZ
36488
36489 if eval test \$wx_cv_func_$wx_func = yes
36490 then
36491 cat >>confdefs.h <<_ACEOF
36492#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
6ebeb4c7
VZ
36493_ACEOF
36494
fd5199d6
VZ
36495
36496 else
36497 :
36498
36499 fi
36500 done
6ebeb4c7
VZ
36501
36502fi
36503
36504if test "$wxUSE_FILE" = "yes"; then
36505
fd5199d6
VZ
36506 for wx_func in fsync
36507 do
f321ab7f
VS
36508 echo "$as_me:$LINENO: checking for $wx_func" >&5
36509echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36510if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
6ebeb4c7
VZ
36511 echo $ECHO_N "(cached) $ECHO_C" >&6
36512else
fd5199d6
VZ
36513
36514 cat >conftest.$ac_ext <<_ACEOF
36515
36516 /* confdefs.h. */
6ebeb4c7
VZ
36517_ACEOF
36518cat confdefs.h >>conftest.$ac_ext
36519cat >>conftest.$ac_ext <<_ACEOF
36520/* end confdefs.h. */
6ebeb4c7 36521
6ebeb4c7 36522
fd5199d6 36523 $ac_includes_default
6ebeb4c7
VZ
36524
36525int
36526main ()
36527{
fd5199d6
VZ
36528
36529 #ifndef $wx_func
36530 &$wx_func;
36531 #endif
36532
36533
6ebeb4c7
VZ
36534 ;
36535 return 0;
36536}
fd5199d6 36537
6ebeb4c7
VZ
36538_ACEOF
36539rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
36540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36541 (eval $ac_link) 2>conftest.er1
6ebeb4c7
VZ
36542 ac_status=$?
36543 grep -v '^ *+' conftest.er1 >conftest.err
36544 rm -f conftest.er1
36545 cat conftest.err >&5
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); } &&
f321ab7f
VS
36548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550 (eval $ac_try) 2>&5
6ebeb4c7
VZ
36551 ac_status=$?
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); }; } &&
36554 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
36555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36556 (eval $ac_try) 2>&5
6ebeb4c7
VZ
36557 ac_status=$?
36558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 (exit $ac_status); }; }; then
fd5199d6 36560 eval wx_cv_func_$wx_func=yes
6ebeb4c7
VZ
36561else
36562 echo "$as_me: failed program was:" >&5
36563sed 's/^/| /' conftest.$ac_ext >&5
36564
f321ab7f 36565eval wx_cv_func_$wx_func=no
6ebeb4c7 36566fi
f321ab7f 36567rm -f conftest.err conftest.$ac_objext \
6ebeb4c7 36568 conftest$ac_exeext conftest.$ac_ext
fd5199d6 36569
6ebeb4c7 36570fi
f321ab7f
VS
36571echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36572echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
fd5199d6
VZ
36573
36574 if eval test \$wx_cv_func_$wx_func = yes
36575 then
36576 cat >>confdefs.h <<_ACEOF
36577#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
6ebeb4c7
VZ
36578_ACEOF
36579
fd5199d6
VZ
36580
36581 else
36582 :
36583
36584 fi
36585 done
6ebeb4c7
VZ
36586
36587fi
a848cd7e
SC
36588
36589
fd5199d6
VZ
36590 for wx_func in round
36591 do
f321ab7f
VS
36592 echo "$as_me:$LINENO: checking for $wx_func" >&5
36593echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36594if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
c2e9ada4
VZ
36595 echo $ECHO_N "(cached) $ECHO_C" >&6
36596else
fd5199d6
VZ
36597
36598 cat >conftest.$ac_ext <<_ACEOF
36599
36600 /* confdefs.h. */
c2e9ada4
VZ
36601_ACEOF
36602cat confdefs.h >>conftest.$ac_ext
36603cat >>conftest.$ac_ext <<_ACEOF
36604/* end confdefs.h. */
c2e9ada4 36605
fd5199d6
VZ
36606 #include <math.h>
36607 $ac_includes_default
c2e9ada4
VZ
36608
36609int
36610main ()
36611{
fd5199d6
VZ
36612
36613 #ifndef $wx_func
36614 &$wx_func;
36615 #endif
36616
36617
c2e9ada4
VZ
36618 ;
36619 return 0;
36620}
fd5199d6 36621
c2e9ada4
VZ
36622_ACEOF
36623rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
36624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36625 (eval $ac_link) 2>conftest.er1
c2e9ada4
VZ
36626 ac_status=$?
36627 grep -v '^ *+' conftest.er1 >conftest.err
36628 rm -f conftest.er1
36629 cat conftest.err >&5
36630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631 (exit $ac_status); } &&
f321ab7f
VS
36632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36634 (eval $ac_try) 2>&5
c2e9ada4
VZ
36635 ac_status=$?
36636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637 (exit $ac_status); }; } &&
36638 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
36639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36640 (eval $ac_try) 2>&5
c2e9ada4
VZ
36641 ac_status=$?
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); }; }; then
fd5199d6 36644 eval wx_cv_func_$wx_func=yes
c2e9ada4
VZ
36645else
36646 echo "$as_me: failed program was:" >&5
36647sed 's/^/| /' conftest.$ac_ext >&5
36648
f321ab7f 36649eval wx_cv_func_$wx_func=no
c2e9ada4 36650fi
f321ab7f 36651rm -f conftest.err conftest.$ac_objext \
c2e9ada4 36652 conftest$ac_exeext conftest.$ac_ext
c2e9ada4 36653
c2e9ada4 36654fi
f321ab7f
VS
36655echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36656echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
c2e9ada4 36657
fd5199d6
VZ
36658 if eval test \$wx_cv_func_$wx_func = yes
36659 then
36660 cat >>confdefs.h <<_ACEOF
36661#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
c2e9ada4
VZ
36662_ACEOF
36663
36664
fd5199d6
VZ
36665 else
36666 :
c2e9ada4 36667
fd5199d6
VZ
36668 fi
36669 done
c2e9ada4
VZ
36670
36671
a848cd7e
SC
36672if test "$TOOLKIT" != "MSW"; then
36673
36674
a848cd7e
SC
36675
36676
36677
f321ab7f 36678# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
a848cd7e 36679if test "${with_libiconv_prefix+set}" = set; then
f321ab7f
VS
36680 withval="$with_libiconv_prefix"
36681
a848cd7e
SC
36682 for dir in `echo "$withval" | tr : ' '`; do
36683 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36684 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36685 done
36686
f321ab7f 36687fi;
a848cd7e 36688
f321ab7f
VS
36689 echo "$as_me:$LINENO: checking for iconv" >&5
36690echo $ECHO_N "checking for iconv... $ECHO_C" >&6
a848cd7e
SC
36691if test "${am_cv_func_iconv+set}" = set; then
36692 echo $ECHO_N "(cached) $ECHO_C" >&6
36693else
36694
36695 am_cv_func_iconv="no, consider installing GNU libiconv"
36696 am_cv_lib_iconv=no
36697 cat >conftest.$ac_ext <<_ACEOF
36698/* confdefs.h. */
36699_ACEOF
36700cat confdefs.h >>conftest.$ac_ext
36701cat >>conftest.$ac_ext <<_ACEOF
36702/* end confdefs.h. */
36703#include <stdlib.h>
36704#include <iconv.h>
36705int
36706main ()
36707{
36708iconv_t cd = iconv_open("","");
36709 iconv(cd,NULL,NULL,NULL,NULL);
36710 iconv_close(cd);
36711 ;
36712 return 0;
36713}
36714_ACEOF
36715rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
36716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36717 (eval $ac_link) 2>conftest.er1
a848cd7e 36718 ac_status=$?
ac1cb8d3
VS
36719 grep -v '^ *+' conftest.er1 >conftest.err
36720 rm -f conftest.er1
36721 cat conftest.err >&5
a848cd7e
SC
36722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36723 (exit $ac_status); } &&
f321ab7f
VS
36724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36726 (eval $ac_try) 2>&5
ac1cb8d3
VS
36727 ac_status=$?
36728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729 (exit $ac_status); }; } &&
36730 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
36731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732 (eval $ac_try) 2>&5
a848cd7e
SC
36733 ac_status=$?
36734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735 (exit $ac_status); }; }; then
36736 am_cv_func_iconv=yes
36737else
36738 echo "$as_me: failed program was:" >&5
36739sed 's/^/| /' conftest.$ac_ext >&5
36740
36741fi
f321ab7f 36742rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 36743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36744 if test "$am_cv_func_iconv" != yes; then
36745 am_save_LIBS="$LIBS"
36746 LIBS="$LIBS -liconv"
36747 cat >conftest.$ac_ext <<_ACEOF
36748/* confdefs.h. */
36749_ACEOF
36750cat confdefs.h >>conftest.$ac_ext
36751cat >>conftest.$ac_ext <<_ACEOF
36752/* end confdefs.h. */
36753#include <stdlib.h>
36754#include <iconv.h>
36755int
36756main ()
36757{
36758iconv_t cd = iconv_open("","");
36759 iconv(cd,NULL,NULL,NULL,NULL);
36760 iconv_close(cd);
36761 ;
36762 return 0;
36763}
36764_ACEOF
36765rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
36766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36767 (eval $ac_link) 2>conftest.er1
a848cd7e 36768 ac_status=$?
ac1cb8d3
VS
36769 grep -v '^ *+' conftest.er1 >conftest.err
36770 rm -f conftest.er1
36771 cat conftest.err >&5
a848cd7e
SC
36772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); } &&
f321ab7f
VS
36774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36776 (eval $ac_try) 2>&5
ac1cb8d3
VS
36777 ac_status=$?
36778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779 (exit $ac_status); }; } &&
36780 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
36781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36782 (eval $ac_try) 2>&5
a848cd7e
SC
36783 ac_status=$?
36784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36785 (exit $ac_status); }; }; then
36786 am_cv_lib_iconv=yes
36787 am_cv_func_iconv=yes
36788else
36789 echo "$as_me: failed program was:" >&5
36790sed 's/^/| /' conftest.$ac_ext >&5
36791
36792fi
f321ab7f 36793rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 36794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36795 LIBS="$am_save_LIBS"
36796 fi
36797
36798fi
f321ab7f
VS
36799echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36800echo "${ECHO_T}$am_cv_func_iconv" >&6
a848cd7e
SC
36801 if test "$am_cv_func_iconv" = yes; then
36802
36803cat >>confdefs.h <<\_ACEOF
36804#define HAVE_ICONV 1
36805_ACEOF
36806
f321ab7f
VS
36807 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36808echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
a848cd7e
SC
36809if test "${wx_cv_func_iconv_const+set}" = set; then
36810 echo $ECHO_N "(cached) $ECHO_C" >&6
36811else
36812 cat >conftest.$ac_ext <<_ACEOF
36813/* confdefs.h. */
36814_ACEOF
36815cat confdefs.h >>conftest.$ac_ext
36816cat >>conftest.$ac_ext <<_ACEOF
36817/* end confdefs.h. */
36818
36819#include <stdlib.h>
36820#include <iconv.h>
36821extern
36822#ifdef __cplusplus
36823"C"
36824#endif
36825#if defined(__STDC__) || defined(__cplusplus)
36826size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36827#else
36828size_t iconv();
36829#endif
36830
36831int
36832main ()
36833{
36834
36835 ;
36836 return 0;
36837}
36838_ACEOF
36839rm -f conftest.$ac_objext
f321ab7f
VS
36840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36841 (eval $ac_compile) 2>conftest.er1
a848cd7e 36842 ac_status=$?
ac1cb8d3
VS
36843 grep -v '^ *+' conftest.er1 >conftest.err
36844 rm -f conftest.er1
36845 cat conftest.err >&5
a848cd7e
SC
36846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36847 (exit $ac_status); } &&
f321ab7f
VS
36848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36850 (eval $ac_try) 2>&5
ac1cb8d3
VS
36851 ac_status=$?
36852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853 (exit $ac_status); }; } &&
36854 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
36855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36856 (eval $ac_try) 2>&5
a848cd7e
SC
36857 ac_status=$?
36858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859 (exit $ac_status); }; }; then
36860 wx_cv_func_iconv_const="no"
36861else
36862 echo "$as_me: failed program was:" >&5
36863sed 's/^/| /' conftest.$ac_ext >&5
36864
f321ab7f 36865wx_cv_func_iconv_const="yes"
a848cd7e
SC
36866
36867fi
f321ab7f 36868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36869
36870fi
f321ab7f
VS
36871echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36872echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
a848cd7e
SC
36873
36874 iconv_const=
36875 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36876 iconv_const="const"
36877 fi
36878
36879
36880cat >>confdefs.h <<_ACEOF
36881#define ICONV_CONST $iconv_const
36882_ACEOF
36883
36884 fi
36885 LIBICONV=
36886 if test "$am_cv_lib_iconv" = yes; then
36887 LIBICONV="-liconv"
36888 fi
36889
36890
36891LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36892
36893if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36894
36895for ac_func in sigaction
36896do
36897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
36898echo "$as_me:$LINENO: checking for $ac_func" >&5
36899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36900if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
36901 echo $ECHO_N "(cached) $ECHO_C" >&6
36902else
36903 cat >conftest.$ac_ext <<_ACEOF
36904/* confdefs.h. */
36905_ACEOF
36906cat confdefs.h >>conftest.$ac_ext
36907cat >>conftest.$ac_ext <<_ACEOF
36908/* end confdefs.h. */
ac1cb8d3
VS
36909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36911#define $ac_func innocuous_$ac_func
36912
a848cd7e
SC
36913/* System header to define __stub macros and hopefully few prototypes,
36914 which can conflict with char $ac_func (); below.
36915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36916 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36917
a848cd7e
SC
36918#ifdef __STDC__
36919# include <limits.h>
36920#else
36921# include <assert.h>
36922#endif
ac1cb8d3
VS
36923
36924#undef $ac_func
36925
f321ab7f 36926/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
36927#ifdef __cplusplus
36928extern "C"
f321ab7f 36929{
a848cd7e 36930#endif
f321ab7f
VS
36931/* We use char because int might match the return type of a gcc2
36932 builtin and then its argument prototype would still apply. */
a848cd7e
SC
36933char $ac_func ();
36934/* The GNU C library defines this for functions which it implements
36935 to always fail with ENOSYS. Some functions are actually named
36936 something starting with __ and the normal name is an alias. */
f321ab7f 36937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 36938choke me
f321ab7f
VS
36939#else
36940char (*f) () = $ac_func;
36941#endif
36942#ifdef __cplusplus
36943}
a848cd7e
SC
36944#endif
36945
36946int
36947main ()
36948{
f321ab7f 36949return f != $ac_func;
a848cd7e
SC
36950 ;
36951 return 0;
36952}
36953_ACEOF
36954rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
36955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36956 (eval $ac_link) 2>conftest.er1
a848cd7e 36957 ac_status=$?
ac1cb8d3
VS
36958 grep -v '^ *+' conftest.er1 >conftest.err
36959 rm -f conftest.er1
36960 cat conftest.err >&5
a848cd7e
SC
36961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36962 (exit $ac_status); } &&
f321ab7f
VS
36963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36965 (eval $ac_try) 2>&5
ac1cb8d3
VS
36966 ac_status=$?
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); }; } &&
36969 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
36970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36971 (eval $ac_try) 2>&5
a848cd7e
SC
36972 ac_status=$?
36973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974 (exit $ac_status); }; }; then
36975 eval "$as_ac_var=yes"
36976else
36977 echo "$as_me: failed program was:" >&5
36978sed 's/^/| /' conftest.$ac_ext >&5
36979
f321ab7f 36980eval "$as_ac_var=no"
a848cd7e 36981fi
f321ab7f 36982rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 36983 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36984fi
f321ab7f
VS
36985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36986echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
36987if test `eval echo '${'$as_ac_var'}'` = yes; then
36988 cat >>confdefs.h <<_ACEOF
36989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36990_ACEOF
36991
36992fi
36993done
36994
36995
36996 if test "$ac_cv_func_sigaction" = "no"; then
36997 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36998echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36999 wxUSE_ON_FATAL_EXCEPTION=no
37000 fi
37001
37002 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
f321ab7f
VS
37003 echo "$as_me:$LINENO: checking for sa_handler type" >&5
37004echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
a848cd7e
SC
37005if test "${wx_cv_type_sa_handler+set}" = set; then
37006 echo $ECHO_N "(cached) $ECHO_C" >&6
37007else
37008
f321ab7f 37009 ac_ext=cc
9b8888f9
VZ
37010ac_cpp='$CXXCPP $CPPFLAGS'
37011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37014
a848cd7e
SC
37015 cat >conftest.$ac_ext <<_ACEOF
37016/* confdefs.h. */
37017_ACEOF
37018cat confdefs.h >>conftest.$ac_ext
37019cat >>conftest.$ac_ext <<_ACEOF
37020/* end confdefs.h. */
37021#include <signal.h>
37022int
37023main ()
37024{
37025
37026 extern void testSigHandler(int);
37027
37028 struct sigaction sa;
37029 sa.sa_handler = testSigHandler;
37030
37031 ;
37032 return 0;
37033}
37034_ACEOF
37035rm -f conftest.$ac_objext
f321ab7f
VS
37036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37037 (eval $ac_compile) 2>conftest.er1
a848cd7e 37038 ac_status=$?
ac1cb8d3
VS
37039 grep -v '^ *+' conftest.er1 >conftest.err
37040 rm -f conftest.er1
37041 cat conftest.err >&5
a848cd7e
SC
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); } &&
f321ab7f
VS
37044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37046 (eval $ac_try) 2>&5
ac1cb8d3
VS
37047 ac_status=$?
37048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049 (exit $ac_status); }; } &&
37050 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
37051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37052 (eval $ac_try) 2>&5
a848cd7e
SC
37053 ac_status=$?
37054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37055 (exit $ac_status); }; }; then
37056
37057 wx_cv_type_sa_handler=int
37058
37059else
37060 echo "$as_me: failed program was:" >&5
37061sed 's/^/| /' conftest.$ac_ext >&5
37062
37063
37064 wx_cv_type_sa_handler=void
37065
37066fi
f321ab7f 37067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37068 ac_ext=c
37069ac_cpp='$CPP $CPPFLAGS'
37070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37072ac_compiler_gnu=$ac_cv_c_compiler_gnu
37073
a848cd7e
SC
37074
37075fi
f321ab7f
VS
37076echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
37077echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
a848cd7e 37078
a848cd7e
SC
37079 cat >>confdefs.h <<_ACEOF
37080#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
37081_ACEOF
37082
37083 fi
37084fi
37085
eaff0f0d 37086if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
f321ab7f
VS
37087 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37088echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
eaff0f0d
VZ
37089if test "${wx_cv_func_backtrace+set}" = set; then
37090 echo $ECHO_N "(cached) $ECHO_C" >&6
37091else
37092
f321ab7f 37093 ac_ext=cc
9b8888f9
VZ
37094ac_cpp='$CXXCPP $CPPFLAGS'
37095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37098
eaff0f0d
VZ
37099 cat >conftest.$ac_ext <<_ACEOF
37100/* confdefs.h. */
37101_ACEOF
37102cat confdefs.h >>conftest.$ac_ext
37103cat >>conftest.$ac_ext <<_ACEOF
37104/* end confdefs.h. */
37105#include <execinfo.h>
37106int
37107main ()
37108{
37109
37110 void *trace[1];
37111 char **messages;
37112
37113 backtrace(trace, 1);
37114 messages = backtrace_symbols(trace, 1);
37115
37116 ;
37117 return 0;
37118}
37119_ACEOF
37120rm -f conftest.$ac_objext
f321ab7f
VS
37121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37122 (eval $ac_compile) 2>conftest.er1
eaff0f0d
VZ
37123 ac_status=$?
37124 grep -v '^ *+' conftest.er1 >conftest.err
37125 rm -f conftest.er1
37126 cat conftest.err >&5
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); } &&
f321ab7f
VS
37129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37131 (eval $ac_try) 2>&5
eaff0f0d
VZ
37132 ac_status=$?
37133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134 (exit $ac_status); }; } &&
37135 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
37136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37137 (eval $ac_try) 2>&5
eaff0f0d
VZ
37138 ac_status=$?
37139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37140 (exit $ac_status); }; }; then
37141 wx_cv_func_backtrace=yes
37142else
37143 echo "$as_me: failed program was:" >&5
37144sed 's/^/| /' conftest.$ac_ext >&5
37145
f321ab7f 37146wx_cv_func_backtrace=no
eaff0f0d
VZ
37147
37148fi
f321ab7f 37149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37150 ac_ext=c
37151ac_cpp='$CPP $CPPFLAGS'
37152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37154ac_compiler_gnu=$ac_cv_c_compiler_gnu
37155
eaff0f0d
VZ
37156
37157
37158fi
f321ab7f
VS
37159echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37160echo "${ECHO_T}$wx_cv_func_backtrace" >&6
eaff0f0d
VZ
37161
37162
37163 if test "$wx_cv_func_backtrace" = "no"; then
37164 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37165echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
37166 wxUSE_STACKWALKER=no
37167 else
f321ab7f
VS
37168 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37169echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
eaff0f0d
VZ
37170if test "${wx_cv_func_cxa_demangle+set}" = set; then
37171 echo $ECHO_N "(cached) $ECHO_C" >&6
37172else
37173
f321ab7f 37174 ac_ext=cc
9b8888f9
VZ
37175ac_cpp='$CXXCPP $CPPFLAGS'
37176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37179
eaff0f0d
VZ
37180 cat >conftest.$ac_ext <<_ACEOF
37181/* confdefs.h. */
37182_ACEOF
37183cat confdefs.h >>conftest.$ac_ext
37184cat >>conftest.$ac_ext <<_ACEOF
37185/* end confdefs.h. */
37186#include <cxxabi.h>
37187int
37188main ()
37189{
37190
37191 int rc;
37192 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37193
37194 ;
37195 return 0;
37196}
37197_ACEOF
dfe0c803 37198rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
37199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37200 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
37201 ac_status=$?
37202 grep -v '^ *+' conftest.er1 >conftest.err
37203 rm -f conftest.er1
37204 cat conftest.err >&5
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); } &&
f321ab7f
VS
37207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37209 (eval $ac_try) 2>&5
eaff0f0d
VZ
37210 ac_status=$?
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); }; } &&
dfe0c803 37213 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
37214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215 (eval $ac_try) 2>&5
eaff0f0d
VZ
37216 ac_status=$?
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); }; }; then
37219 wx_cv_func_cxa_demangle=yes
37220else
37221 echo "$as_me: failed program was:" >&5
37222sed 's/^/| /' conftest.$ac_ext >&5
37223
f321ab7f 37224wx_cv_func_cxa_demangle=no
eaff0f0d
VZ
37225
37226fi
f321ab7f 37227rm -f conftest.err conftest.$ac_objext \
dfe0c803 37228 conftest$ac_exeext conftest.$ac_ext
9b8888f9
VZ
37229 ac_ext=c
37230ac_cpp='$CPP $CPPFLAGS'
37231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37233ac_compiler_gnu=$ac_cv_c_compiler_gnu
37234
eaff0f0d
VZ
37235
37236
37237fi
f321ab7f
VS
37238echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37239echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
eaff0f0d
VZ
37240
37241 if test "$wx_cv_func_cxa_demangle" = "yes"; then
37242 cat >>confdefs.h <<\_ACEOF
37243#define HAVE_CXA_DEMANGLE 1
37244_ACEOF
37245
37246 fi
37247 fi
eaff0f0d
VZ
37248fi
37249
898beab1
DE
37250if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
37251 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37252echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37253 wxUSE_STACKWALKER=no
37254fi
37255
37256
a848cd7e
SC
37257
37258
37259for ac_func in mkstemp mktemp
37260do
37261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
37262echo "$as_me:$LINENO: checking for $ac_func" >&5
37263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37264if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
37265 echo $ECHO_N "(cached) $ECHO_C" >&6
37266else
37267 cat >conftest.$ac_ext <<_ACEOF
37268/* confdefs.h. */
37269_ACEOF
37270cat confdefs.h >>conftest.$ac_ext
37271cat >>conftest.$ac_ext <<_ACEOF
37272/* end confdefs.h. */
ac1cb8d3
VS
37273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37275#define $ac_func innocuous_$ac_func
37276
a848cd7e
SC
37277/* System header to define __stub macros and hopefully few prototypes,
37278 which can conflict with char $ac_func (); below.
37279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37280 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37281
a848cd7e
SC
37282#ifdef __STDC__
37283# include <limits.h>
37284#else
37285# include <assert.h>
37286#endif
ac1cb8d3
VS
37287
37288#undef $ac_func
37289
f321ab7f 37290/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
37291#ifdef __cplusplus
37292extern "C"
f321ab7f 37293{
a848cd7e 37294#endif
f321ab7f
VS
37295/* We use char because int might match the return type of a gcc2
37296 builtin and then its argument prototype would still apply. */
a848cd7e
SC
37297char $ac_func ();
37298/* The GNU C library defines this for functions which it implements
37299 to always fail with ENOSYS. Some functions are actually named
37300 something starting with __ and the normal name is an alias. */
f321ab7f 37301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 37302choke me
f321ab7f
VS
37303#else
37304char (*f) () = $ac_func;
37305#endif
37306#ifdef __cplusplus
37307}
a848cd7e
SC
37308#endif
37309
37310int
37311main ()
37312{
f321ab7f 37313return f != $ac_func;
a848cd7e
SC
37314 ;
37315 return 0;
37316}
37317_ACEOF
37318rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
37319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37320 (eval $ac_link) 2>conftest.er1
a848cd7e 37321 ac_status=$?
ac1cb8d3
VS
37322 grep -v '^ *+' conftest.er1 >conftest.err
37323 rm -f conftest.er1
37324 cat conftest.err >&5
a848cd7e
SC
37325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326 (exit $ac_status); } &&
f321ab7f
VS
37327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37329 (eval $ac_try) 2>&5
ac1cb8d3
VS
37330 ac_status=$?
37331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332 (exit $ac_status); }; } &&
37333 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
37334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37335 (eval $ac_try) 2>&5
a848cd7e
SC
37336 ac_status=$?
37337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37338 (exit $ac_status); }; }; then
37339 eval "$as_ac_var=yes"
37340else
37341 echo "$as_me: failed program was:" >&5
37342sed 's/^/| /' conftest.$ac_ext >&5
37343
f321ab7f 37344eval "$as_ac_var=no"
a848cd7e 37345fi
f321ab7f 37346rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 37347 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37348fi
f321ab7f
VS
37349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37350echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
37351if test `eval echo '${'$as_ac_var'}'` = yes; then
37352 cat >>confdefs.h <<_ACEOF
37353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37354_ACEOF
37355 break
37356fi
37357done
37358
37359
f321ab7f
VS
37360echo "$as_me:$LINENO: checking for statfs" >&5
37361echo $ECHO_N "checking for statfs... $ECHO_C" >&6
a848cd7e
SC
37362if test "${wx_cv_func_statfs+set}" = set; then
37363 echo $ECHO_N "(cached) $ECHO_C" >&6
37364else
37365 cat >conftest.$ac_ext <<_ACEOF
37366/* confdefs.h. */
37367_ACEOF
37368cat confdefs.h >>conftest.$ac_ext
37369cat >>conftest.$ac_ext <<_ACEOF
37370/* end confdefs.h. */
37371
37372 #if defined(__BSD__)
84ae7ca4
VZ
37373 #include <sys/param.h>
37374 #include <sys/mount.h>
a848cd7e 37375 #else
84ae7ca4 37376 #include <sys/vfs.h>
a848cd7e
SC
37377 #endif
37378
37379int
37380main ()
37381{
37382
37383 long l;
37384 struct statfs fs;
37385 statfs("/", &fs);
37386 l = fs.f_bsize;
37387 l += fs.f_blocks;
37388 l += fs.f_bavail;
37389
37390 ;
37391 return 0;
37392}
37393_ACEOF
37394rm -f conftest.$ac_objext
f321ab7f
VS
37395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37396 (eval $ac_compile) 2>conftest.er1
a848cd7e 37397 ac_status=$?
ac1cb8d3
VS
37398 grep -v '^ *+' conftest.er1 >conftest.err
37399 rm -f conftest.er1
37400 cat conftest.err >&5
a848cd7e
SC
37401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402 (exit $ac_status); } &&
f321ab7f
VS
37403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37405 (eval $ac_try) 2>&5
ac1cb8d3
VS
37406 ac_status=$?
37407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408 (exit $ac_status); }; } &&
37409 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
37410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37411 (eval $ac_try) 2>&5
a848cd7e
SC
37412 ac_status=$?
37413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414 (exit $ac_status); }; }; then
84ae7ca4 37415 wx_cv_func_statfs=yes
a848cd7e
SC
37416else
37417 echo "$as_me: failed program was:" >&5
37418sed 's/^/| /' conftest.$ac_ext >&5
37419
f321ab7f 37420wx_cv_func_statfs=no
a848cd7e
SC
37421
37422fi
f321ab7f 37423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37424
37425fi
f321ab7f
VS
37426echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37427echo "${ECHO_T}$wx_cv_func_statfs" >&6
a848cd7e
SC
37428
37429if test "$wx_cv_func_statfs" = "yes"; then
f321ab7f
VS
37430 echo "$as_me:$LINENO: checking for statfs declaration" >&5
37431echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
84ae7ca4
VZ
37432if test "${wx_cv_func_statfs_decl+set}" = set; then
37433 echo $ECHO_N "(cached) $ECHO_C" >&6
37434else
f321ab7f 37435 ac_ext=cc
9b8888f9
VZ
37436ac_cpp='$CXXCPP $CPPFLAGS'
37437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37440
37441 cat >conftest.$ac_ext <<_ACEOF
0683aca6
VZ
37442/* confdefs.h. */
37443_ACEOF
37444cat confdefs.h >>conftest.$ac_ext
37445cat >>conftest.$ac_ext <<_ACEOF
37446/* end confdefs.h. */
84ae7ca4 37447
0683aca6
VZ
37448 #if defined(__BSD__)
37449 #include <sys/param.h>
37450 #include <sys/mount.h>
37451 #else
37452 #include <sys/vfs.h>
37453 #endif
37454
37455int
37456main ()
37457{
37458
37459 struct statfs fs;
37460 statfs("", &fs);
37461
37462 ;
37463 return 0;
37464}
37465_ACEOF
37466rm -f conftest.$ac_objext
f321ab7f
VS
37467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37468 (eval $ac_compile) 2>conftest.er1
0683aca6
VZ
37469 ac_status=$?
37470 grep -v '^ *+' conftest.er1 >conftest.err
37471 rm -f conftest.er1
37472 cat conftest.err >&5
37473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474 (exit $ac_status); } &&
f321ab7f
VS
37475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37477 (eval $ac_try) 2>&5
0683aca6
VZ
37478 ac_status=$?
37479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); }; } &&
37481 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
37482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37483 (eval $ac_try) 2>&5
0683aca6
VZ
37484 ac_status=$?
37485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486 (exit $ac_status); }; }; then
37487 wx_cv_func_statfs_decl=yes
37488else
37489 echo "$as_me: failed program was:" >&5
37490sed 's/^/| /' conftest.$ac_ext >&5
37491
f321ab7f 37492wx_cv_func_statfs_decl=no
0683aca6
VZ
37493
37494fi
f321ab7f 37495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37496 ac_ext=c
37497ac_cpp='$CPP $CPPFLAGS'
37498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37500ac_compiler_gnu=$ac_cv_c_compiler_gnu
37501
84ae7ca4
VZ
37502
37503fi
f321ab7f
VS
37504echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37505echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
37506
37507 if test "$wx_cv_func_statfs_decl" = "yes"; then
37508 cat >>confdefs.h <<\_ACEOF
37509#define HAVE_STATFS_DECL 1
37510_ACEOF
37511
37512 fi
37513
a848cd7e
SC
37514 wx_cv_type_statvfs_t="struct statfs"
37515 cat >>confdefs.h <<\_ACEOF
37516#define HAVE_STATFS 1
37517_ACEOF
37518
37519else
f321ab7f
VS
37520 echo "$as_me:$LINENO: checking for statvfs" >&5
37521echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
a848cd7e
SC
37522if test "${wx_cv_func_statvfs+set}" = set; then
37523 echo $ECHO_N "(cached) $ECHO_C" >&6
37524else
37525 cat >conftest.$ac_ext <<_ACEOF
37526/* confdefs.h. */
37527_ACEOF
37528cat confdefs.h >>conftest.$ac_ext
37529cat >>conftest.$ac_ext <<_ACEOF
37530/* end confdefs.h. */
37531
37532 #include <stddef.h>
37533 #include <sys/statvfs.h>
37534
37535int
37536main ()
37537{
37538
37539 statvfs("/", NULL);
37540
37541 ;
37542 return 0;
37543}
37544_ACEOF
37545rm -f conftest.$ac_objext
f321ab7f
VS
37546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37547 (eval $ac_compile) 2>conftest.er1
a848cd7e 37548 ac_status=$?
ac1cb8d3
VS
37549 grep -v '^ *+' conftest.er1 >conftest.err
37550 rm -f conftest.er1
37551 cat conftest.err >&5
a848cd7e
SC
37552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37553 (exit $ac_status); } &&
f321ab7f
VS
37554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37556 (eval $ac_try) 2>&5
ac1cb8d3
VS
37557 ac_status=$?
37558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559 (exit $ac_status); }; } &&
37560 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
37561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37562 (eval $ac_try) 2>&5
a848cd7e
SC
37563 ac_status=$?
37564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565 (exit $ac_status); }; }; then
37566 wx_cv_func_statvfs=yes
37567else
37568 echo "$as_me: failed program was:" >&5
37569sed 's/^/| /' conftest.$ac_ext >&5
37570
f321ab7f 37571wx_cv_func_statvfs=no
a848cd7e
SC
37572
37573fi
f321ab7f 37574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37575
37576fi
f321ab7f
VS
37577echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37578echo "${ECHO_T}$wx_cv_func_statvfs" >&6
a848cd7e
SC
37579
37580 if test "$wx_cv_func_statvfs" = "yes"; then
f321ab7f
VS
37581 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37582echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
a848cd7e
SC
37583if test "${wx_cv_type_statvfs_t+set}" = set; then
37584 echo $ECHO_N "(cached) $ECHO_C" >&6
37585else
f321ab7f 37586 ac_ext=cc
9b8888f9
VZ
37587ac_cpp='$CXXCPP $CPPFLAGS'
37588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37591
37592 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
37593/* confdefs.h. */
37594_ACEOF
37595cat confdefs.h >>conftest.$ac_ext
37596cat >>conftest.$ac_ext <<_ACEOF
37597/* end confdefs.h. */
37598
37599 #include <sys/statvfs.h>
37600
37601int
37602main ()
37603{
37604
37605 long l;
37606 statvfs_t fs;
37607 statvfs("/", &fs);
37608 l = fs.f_bsize;
37609 l += fs.f_blocks;
37610 l += fs.f_bavail;
37611
37612 ;
37613 return 0;
37614}
37615_ACEOF
37616rm -f conftest.$ac_objext
f321ab7f
VS
37617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37618 (eval $ac_compile) 2>conftest.er1
a848cd7e 37619 ac_status=$?
ac1cb8d3
VS
37620 grep -v '^ *+' conftest.er1 >conftest.err
37621 rm -f conftest.er1
37622 cat conftest.err >&5
a848cd7e
SC
37623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624 (exit $ac_status); } &&
f321ab7f
VS
37625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37627 (eval $ac_try) 2>&5
ac1cb8d3
VS
37628 ac_status=$?
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); }; } &&
37631 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
37632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37633 (eval $ac_try) 2>&5
a848cd7e
SC
37634 ac_status=$?
37635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37636 (exit $ac_status); }; }; then
37637 wx_cv_type_statvfs_t=statvfs_t
37638else
37639 echo "$as_me: failed program was:" >&5
37640sed 's/^/| /' conftest.$ac_ext >&5
37641
37642
37643 cat >conftest.$ac_ext <<_ACEOF
37644/* confdefs.h. */
37645_ACEOF
37646cat confdefs.h >>conftest.$ac_ext
37647cat >>conftest.$ac_ext <<_ACEOF
37648/* end confdefs.h. */
37649
37650 #include <sys/statvfs.h>
37651
37652int
37653main ()
37654{
37655
37656 long l;
37657 struct statvfs fs;
37658 statvfs("/", &fs);
37659 l = fs.f_bsize;
37660 l += fs.f_blocks;
37661 l += fs.f_bavail;
37662
37663 ;
37664 return 0;
37665}
37666_ACEOF
37667rm -f conftest.$ac_objext
f321ab7f
VS
37668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37669 (eval $ac_compile) 2>conftest.er1
a848cd7e 37670 ac_status=$?
ac1cb8d3
VS
37671 grep -v '^ *+' conftest.er1 >conftest.err
37672 rm -f conftest.er1
37673 cat conftest.err >&5
a848cd7e
SC
37674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37675 (exit $ac_status); } &&
f321ab7f
VS
37676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37678 (eval $ac_try) 2>&5
ac1cb8d3
VS
37679 ac_status=$?
37680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37681 (exit $ac_status); }; } &&
37682 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
37683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37684 (eval $ac_try) 2>&5
a848cd7e
SC
37685 ac_status=$?
37686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37687 (exit $ac_status); }; }; then
37688 wx_cv_type_statvfs_t="struct statvfs"
37689else
37690 echo "$as_me: failed program was:" >&5
37691sed 's/^/| /' conftest.$ac_ext >&5
37692
f321ab7f 37693wx_cv_type_statvfs_t="unknown"
a848cd7e
SC
37694
37695fi
f321ab7f 37696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37697
37698
37699fi
f321ab7f 37700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37701 ac_ext=c
37702ac_cpp='$CPP $CPPFLAGS'
37703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37705ac_compiler_gnu=$ac_cv_c_compiler_gnu
37706
a848cd7e
SC
37707
37708fi
f321ab7f
VS
37709echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37710echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
a848cd7e 37711
a848cd7e
SC
37712 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37713 cat >>confdefs.h <<\_ACEOF
37714#define HAVE_STATVFS 1
37715_ACEOF
37716
37717 fi
37718 else
37719 wx_cv_type_statvfs_t="unknown"
37720 fi
37721fi
37722
37723if test "$wx_cv_type_statvfs_t" != "unknown"; then
37724 cat >>confdefs.h <<_ACEOF
37725#define WX_STATFS_T $wx_cv_type_statvfs_t
37726_ACEOF
37727
37728else
37729 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37730echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37731fi
37732
37733if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37734
37735
37736for ac_func in fcntl flock
37737do
37738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
37739echo "$as_me:$LINENO: checking for $ac_func" >&5
37740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37741if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
37742 echo $ECHO_N "(cached) $ECHO_C" >&6
37743else
37744 cat >conftest.$ac_ext <<_ACEOF
37745/* confdefs.h. */
37746_ACEOF
37747cat confdefs.h >>conftest.$ac_ext
37748cat >>conftest.$ac_ext <<_ACEOF
37749/* end confdefs.h. */
ac1cb8d3
VS
37750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37752#define $ac_func innocuous_$ac_func
37753
a848cd7e
SC
37754/* System header to define __stub macros and hopefully few prototypes,
37755 which can conflict with char $ac_func (); below.
37756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37757 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37758
a848cd7e
SC
37759#ifdef __STDC__
37760# include <limits.h>
37761#else
37762# include <assert.h>
37763#endif
ac1cb8d3
VS
37764
37765#undef $ac_func
37766
f321ab7f 37767/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
37768#ifdef __cplusplus
37769extern "C"
f321ab7f 37770{
a848cd7e 37771#endif
f321ab7f
VS
37772/* We use char because int might match the return type of a gcc2
37773 builtin and then its argument prototype would still apply. */
a848cd7e
SC
37774char $ac_func ();
37775/* The GNU C library defines this for functions which it implements
37776 to always fail with ENOSYS. Some functions are actually named
37777 something starting with __ and the normal name is an alias. */
f321ab7f 37778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 37779choke me
f321ab7f
VS
37780#else
37781char (*f) () = $ac_func;
37782#endif
37783#ifdef __cplusplus
37784}
a848cd7e
SC
37785#endif
37786
37787int
37788main ()
37789{
f321ab7f 37790return f != $ac_func;
a848cd7e
SC
37791 ;
37792 return 0;
37793}
37794_ACEOF
37795rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
37796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37797 (eval $ac_link) 2>conftest.er1
a848cd7e 37798 ac_status=$?
ac1cb8d3
VS
37799 grep -v '^ *+' conftest.er1 >conftest.err
37800 rm -f conftest.er1
37801 cat conftest.err >&5
a848cd7e
SC
37802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803 (exit $ac_status); } &&
f321ab7f
VS
37804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37806 (eval $ac_try) 2>&5
ac1cb8d3
VS
37807 ac_status=$?
37808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809 (exit $ac_status); }; } &&
37810 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
37811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37812 (eval $ac_try) 2>&5
a848cd7e
SC
37813 ac_status=$?
37814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37815 (exit $ac_status); }; }; then
37816 eval "$as_ac_var=yes"
37817else
37818 echo "$as_me: failed program was:" >&5
37819sed 's/^/| /' conftest.$ac_ext >&5
37820
f321ab7f 37821eval "$as_ac_var=no"
a848cd7e 37822fi
f321ab7f 37823rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 37824 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37825fi
f321ab7f
VS
37826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37827echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
37828if test `eval echo '${'$as_ac_var'}'` = yes; then
37829 cat >>confdefs.h <<_ACEOF
37830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37831_ACEOF
37832 break
37833fi
37834done
37835
37836
37837 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37838 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37839echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37840 wxUSE_SNGLINST_CHECKER=no
37841 fi
37842fi
37843
37844
37845for ac_func in timegm
37846do
37847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
37848echo "$as_me:$LINENO: checking for $ac_func" >&5
37849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37850if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
37851 echo $ECHO_N "(cached) $ECHO_C" >&6
37852else
37853 cat >conftest.$ac_ext <<_ACEOF
37854/* confdefs.h. */
37855_ACEOF
37856cat confdefs.h >>conftest.$ac_ext
37857cat >>conftest.$ac_ext <<_ACEOF
37858/* end confdefs.h. */
ac1cb8d3
VS
37859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37861#define $ac_func innocuous_$ac_func
37862
a848cd7e
SC
37863/* System header to define __stub macros and hopefully few prototypes,
37864 which can conflict with char $ac_func (); below.
37865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37866 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37867
a848cd7e
SC
37868#ifdef __STDC__
37869# include <limits.h>
37870#else
37871# include <assert.h>
37872#endif
ac1cb8d3
VS
37873
37874#undef $ac_func
37875
f321ab7f 37876/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
37877#ifdef __cplusplus
37878extern "C"
f321ab7f 37879{
a848cd7e 37880#endif
f321ab7f
VS
37881/* We use char because int might match the return type of a gcc2
37882 builtin and then its argument prototype would still apply. */
a848cd7e
SC
37883char $ac_func ();
37884/* The GNU C library defines this for functions which it implements
37885 to always fail with ENOSYS. Some functions are actually named
37886 something starting with __ and the normal name is an alias. */
f321ab7f 37887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 37888choke me
f321ab7f
VS
37889#else
37890char (*f) () = $ac_func;
37891#endif
37892#ifdef __cplusplus
37893}
a848cd7e
SC
37894#endif
37895
37896int
37897main ()
37898{
f321ab7f 37899return f != $ac_func;
a848cd7e
SC
37900 ;
37901 return 0;
37902}
37903_ACEOF
37904rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
37905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37906 (eval $ac_link) 2>conftest.er1
a848cd7e 37907 ac_status=$?
ac1cb8d3
VS
37908 grep -v '^ *+' conftest.er1 >conftest.err
37909 rm -f conftest.er1
37910 cat conftest.err >&5
a848cd7e
SC
37911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37912 (exit $ac_status); } &&
f321ab7f
VS
37913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37915 (eval $ac_try) 2>&5
ac1cb8d3
VS
37916 ac_status=$?
37917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37918 (exit $ac_status); }; } &&
37919 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
37920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37921 (eval $ac_try) 2>&5
a848cd7e
SC
37922 ac_status=$?
37923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924 (exit $ac_status); }; }; then
37925 eval "$as_ac_var=yes"
37926else
37927 echo "$as_me: failed program was:" >&5
37928sed 's/^/| /' conftest.$ac_ext >&5
37929
f321ab7f 37930eval "$as_ac_var=no"
a848cd7e 37931fi
f321ab7f 37932rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 37933 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37934fi
f321ab7f
VS
37935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37936echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
37937if test `eval echo '${'$as_ac_var'}'` = yes; then
37938 cat >>confdefs.h <<_ACEOF
37939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37940_ACEOF
37941
37942fi
37943done
37944
37945
37946
37947
37948for ac_func in putenv setenv
37949do
37950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
37951echo "$as_me:$LINENO: checking for $ac_func" >&5
37952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37953if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
37954 echo $ECHO_N "(cached) $ECHO_C" >&6
37955else
37956 cat >conftest.$ac_ext <<_ACEOF
37957/* confdefs.h. */
37958_ACEOF
37959cat confdefs.h >>conftest.$ac_ext
37960cat >>conftest.$ac_ext <<_ACEOF
37961/* end confdefs.h. */
ac1cb8d3
VS
37962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37964#define $ac_func innocuous_$ac_func
37965
a848cd7e
SC
37966/* System header to define __stub macros and hopefully few prototypes,
37967 which can conflict with char $ac_func (); below.
37968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37969 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37970
a848cd7e
SC
37971#ifdef __STDC__
37972# include <limits.h>
37973#else
37974# include <assert.h>
37975#endif
ac1cb8d3
VS
37976
37977#undef $ac_func
37978
f321ab7f 37979/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
37980#ifdef __cplusplus
37981extern "C"
f321ab7f 37982{
a848cd7e 37983#endif
f321ab7f
VS
37984/* We use char because int might match the return type of a gcc2
37985 builtin and then its argument prototype would still apply. */
a848cd7e
SC
37986char $ac_func ();
37987/* The GNU C library defines this for functions which it implements
37988 to always fail with ENOSYS. Some functions are actually named
37989 something starting with __ and the normal name is an alias. */
f321ab7f 37990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 37991choke me
f321ab7f
VS
37992#else
37993char (*f) () = $ac_func;
37994#endif
37995#ifdef __cplusplus
37996}
a848cd7e
SC
37997#endif
37998
37999int
38000main ()
38001{
f321ab7f 38002return f != $ac_func;
a848cd7e
SC
38003 ;
38004 return 0;
38005}
38006_ACEOF
38007rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38009 (eval $ac_link) 2>conftest.er1
a848cd7e 38010 ac_status=$?
ac1cb8d3
VS
38011 grep -v '^ *+' conftest.er1 >conftest.err
38012 rm -f conftest.er1
38013 cat conftest.err >&5
a848cd7e
SC
38014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38015 (exit $ac_status); } &&
f321ab7f
VS
38016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38018 (eval $ac_try) 2>&5
ac1cb8d3
VS
38019 ac_status=$?
38020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38021 (exit $ac_status); }; } &&
38022 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38024 (eval $ac_try) 2>&5
a848cd7e
SC
38025 ac_status=$?
38026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38027 (exit $ac_status); }; }; then
38028 eval "$as_ac_var=yes"
38029else
38030 echo "$as_me: failed program was:" >&5
38031sed 's/^/| /' conftest.$ac_ext >&5
38032
f321ab7f 38033eval "$as_ac_var=no"
a848cd7e 38034fi
f321ab7f 38035rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 38036 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38037fi
f321ab7f
VS
38038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38039echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
38040if test `eval echo '${'$as_ac_var'}'` = yes; then
38041 cat >>confdefs.h <<_ACEOF
38042#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38043_ACEOF
38044 break
38045fi
38046done
38047
38048
38049HAVE_SOME_SLEEP_FUNC=0
38050if test "$USE_BEOS" = 1; then
38051 cat >>confdefs.h <<\_ACEOF
38052#define HAVE_SLEEP 1
38053_ACEOF
38054
38055 HAVE_SOME_SLEEP_FUNC=1
38056fi
38057
38058if test "$USE_DARWIN" = 1; then
38059 cat >>confdefs.h <<\_ACEOF
38060#define HAVE_USLEEP 1
38061_ACEOF
38062
38063 HAVE_SOME_SLEEP_FUNC=1
38064fi
38065
38066if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38067 POSIX4_LINK=
38068
38069for ac_func in nanosleep
38070do
38071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
38072echo "$as_me:$LINENO: checking for $ac_func" >&5
38073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38074if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
38075 echo $ECHO_N "(cached) $ECHO_C" >&6
38076else
38077 cat >conftest.$ac_ext <<_ACEOF
38078/* confdefs.h. */
38079_ACEOF
38080cat confdefs.h >>conftest.$ac_ext
38081cat >>conftest.$ac_ext <<_ACEOF
38082/* end confdefs.h. */
ac1cb8d3
VS
38083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38085#define $ac_func innocuous_$ac_func
38086
a848cd7e
SC
38087/* System header to define __stub macros and hopefully few prototypes,
38088 which can conflict with char $ac_func (); below.
38089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38090 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38091
a848cd7e
SC
38092#ifdef __STDC__
38093# include <limits.h>
38094#else
38095# include <assert.h>
38096#endif
ac1cb8d3
VS
38097
38098#undef $ac_func
38099
f321ab7f 38100/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
38101#ifdef __cplusplus
38102extern "C"
f321ab7f 38103{
a848cd7e 38104#endif
f321ab7f
VS
38105/* We use char because int might match the return type of a gcc2
38106 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38107char $ac_func ();
38108/* The GNU C library defines this for functions which it implements
38109 to always fail with ENOSYS. Some functions are actually named
38110 something starting with __ and the normal name is an alias. */
f321ab7f 38111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 38112choke me
f321ab7f
VS
38113#else
38114char (*f) () = $ac_func;
38115#endif
38116#ifdef __cplusplus
38117}
a848cd7e
SC
38118#endif
38119
38120int
38121main ()
38122{
f321ab7f 38123return f != $ac_func;
a848cd7e
SC
38124 ;
38125 return 0;
38126}
38127_ACEOF
38128rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38130 (eval $ac_link) 2>conftest.er1
a848cd7e 38131 ac_status=$?
ac1cb8d3
VS
38132 grep -v '^ *+' conftest.er1 >conftest.err
38133 rm -f conftest.er1
38134 cat conftest.err >&5
a848cd7e
SC
38135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136 (exit $ac_status); } &&
f321ab7f
VS
38137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38139 (eval $ac_try) 2>&5
ac1cb8d3
VS
38140 ac_status=$?
38141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142 (exit $ac_status); }; } &&
38143 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38145 (eval $ac_try) 2>&5
a848cd7e
SC
38146 ac_status=$?
38147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148 (exit $ac_status); }; }; then
38149 eval "$as_ac_var=yes"
38150else
38151 echo "$as_me: failed program was:" >&5
38152sed 's/^/| /' conftest.$ac_ext >&5
38153
f321ab7f 38154eval "$as_ac_var=no"
a848cd7e 38155fi
f321ab7f 38156rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 38157 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38158fi
f321ab7f
VS
38159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38160echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
38161if test `eval echo '${'$as_ac_var'}'` = yes; then
38162 cat >>confdefs.h <<_ACEOF
38163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38164_ACEOF
38165 cat >>confdefs.h <<\_ACEOF
38166#define HAVE_NANOSLEEP 1
38167_ACEOF
38168
38169else
38170
f321ab7f
VS
38171 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38172echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
a848cd7e
SC
38173if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38174 echo $ECHO_N "(cached) $ECHO_C" >&6
38175else
38176 ac_check_lib_save_LIBS=$LIBS
38177LIBS="-lposix4 $LIBS"
38178cat >conftest.$ac_ext <<_ACEOF
38179/* confdefs.h. */
38180_ACEOF
38181cat confdefs.h >>conftest.$ac_ext
38182cat >>conftest.$ac_ext <<_ACEOF
38183/* end confdefs.h. */
38184
f321ab7f 38185/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
38186#ifdef __cplusplus
38187extern "C"
38188#endif
f321ab7f
VS
38189/* We use char because int might match the return type of a gcc2
38190 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38191char nanosleep ();
38192int
38193main ()
38194{
f321ab7f 38195nanosleep ();
a848cd7e
SC
38196 ;
38197 return 0;
38198}
38199_ACEOF
38200rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38202 (eval $ac_link) 2>conftest.er1
a848cd7e 38203 ac_status=$?
ac1cb8d3
VS
38204 grep -v '^ *+' conftest.er1 >conftest.err
38205 rm -f conftest.er1
38206 cat conftest.err >&5
a848cd7e
SC
38207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208 (exit $ac_status); } &&
f321ab7f
VS
38209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38211 (eval $ac_try) 2>&5
ac1cb8d3
VS
38212 ac_status=$?
38213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214 (exit $ac_status); }; } &&
38215 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38217 (eval $ac_try) 2>&5
a848cd7e
SC
38218 ac_status=$?
38219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38220 (exit $ac_status); }; }; then
38221 ac_cv_lib_posix4_nanosleep=yes
38222else
38223 echo "$as_me: failed program was:" >&5
38224sed 's/^/| /' conftest.$ac_ext >&5
38225
f321ab7f 38226ac_cv_lib_posix4_nanosleep=no
a848cd7e 38227fi
f321ab7f 38228rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 38229 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38230LIBS=$ac_check_lib_save_LIBS
38231fi
f321ab7f
VS
38232echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38233echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
a848cd7e
SC
38234if test $ac_cv_lib_posix4_nanosleep = yes; then
38235
38236 cat >>confdefs.h <<\_ACEOF
38237#define HAVE_NANOSLEEP 1
38238_ACEOF
38239
38240 POSIX4_LINK=" -lposix4"
38241
38242else
38243
38244
fd5199d6
VZ
38245 for wx_func in usleep
38246 do
f321ab7f
VS
38247 echo "$as_me:$LINENO: checking for $wx_func" >&5
38248echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38249if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38250 echo $ECHO_N "(cached) $ECHO_C" >&6
38251else
fd5199d6
VZ
38252
38253 cat >conftest.$ac_ext <<_ACEOF
38254
38255 /* confdefs.h. */
a848cd7e
SC
38256_ACEOF
38257cat confdefs.h >>conftest.$ac_ext
38258cat >>conftest.$ac_ext <<_ACEOF
38259/* end confdefs.h. */
ac1cb8d3 38260
ac1cb8d3 38261
fd5199d6 38262 $ac_includes_default
a848cd7e
SC
38263
38264int
38265main ()
38266{
fd5199d6
VZ
38267
38268 #ifndef $wx_func
38269 &$wx_func;
38270 #endif
38271
38272
a848cd7e
SC
38273 ;
38274 return 0;
38275}
fd5199d6 38276
a848cd7e
SC
38277_ACEOF
38278rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38280 (eval $ac_link) 2>conftest.er1
a848cd7e 38281 ac_status=$?
ac1cb8d3
VS
38282 grep -v '^ *+' conftest.er1 >conftest.err
38283 rm -f conftest.er1
38284 cat conftest.err >&5
a848cd7e
SC
38285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38286 (exit $ac_status); } &&
f321ab7f
VS
38287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38289 (eval $ac_try) 2>&5
ac1cb8d3
VS
38290 ac_status=$?
38291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292 (exit $ac_status); }; } &&
38293 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38295 (eval $ac_try) 2>&5
a848cd7e
SC
38296 ac_status=$?
38297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298 (exit $ac_status); }; }; then
fd5199d6 38299 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38300else
38301 echo "$as_me: failed program was:" >&5
38302sed 's/^/| /' conftest.$ac_ext >&5
38303
f321ab7f 38304eval wx_cv_func_$wx_func=no
a848cd7e 38305fi
f321ab7f 38306rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 38307 conftest$ac_exeext conftest.$ac_ext
fd5199d6 38308
a848cd7e 38309fi
f321ab7f
VS
38310echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38311echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
fd5199d6
VZ
38312
38313 if eval test \$wx_cv_func_$wx_func = yes
38314 then
38315 cat >>confdefs.h <<_ACEOF
38316#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
a848cd7e
SC
38317_ACEOF
38318
fd5199d6
VZ
38319
38320 else
38321 :
38322 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
a848cd7e
SC
38323echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
38324
fd5199d6
VZ
38325 fi
38326 done
a848cd7e
SC
38327
38328
38329
38330fi
38331
38332
38333
38334fi
38335done
38336
38337fi
38338
38339
9b8888f9
VZ
38340 for wx_func in uname
38341 do
f321ab7f
VS
38342 echo "$as_me:$LINENO: checking for $wx_func" >&5
38343echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38344if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
9b8888f9
VZ
38345 echo $ECHO_N "(cached) $ECHO_C" >&6
38346else
38347
38348 cat >conftest.$ac_ext <<_ACEOF
38349
38350 /* confdefs.h. */
38351_ACEOF
38352cat confdefs.h >>conftest.$ac_ext
38353cat >>conftest.$ac_ext <<_ACEOF
38354/* end confdefs.h. */
38355
38356 #include <sys/utsname.h>
38357 $ac_includes_default
38358
38359int
38360main ()
38361{
38362
38363 #ifndef $wx_func
38364 &$wx_func;
38365 #endif
38366
38367
38368 ;
38369 return 0;
38370}
38371
38372_ACEOF
38373rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38375 (eval $ac_link) 2>conftest.er1
9b8888f9
VZ
38376 ac_status=$?
38377 grep -v '^ *+' conftest.er1 >conftest.err
38378 rm -f conftest.er1
38379 cat conftest.err >&5
38380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38381 (exit $ac_status); } &&
f321ab7f
VS
38382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38384 (eval $ac_try) 2>&5
9b8888f9
VZ
38385 ac_status=$?
38386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387 (exit $ac_status); }; } &&
38388 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38390 (eval $ac_try) 2>&5
9b8888f9
VZ
38391 ac_status=$?
38392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393 (exit $ac_status); }; }; then
38394 eval wx_cv_func_$wx_func=yes
38395else
38396 echo "$as_me: failed program was:" >&5
38397sed 's/^/| /' conftest.$ac_ext >&5
38398
f321ab7f 38399eval wx_cv_func_$wx_func=no
9b8888f9 38400fi
f321ab7f 38401rm -f conftest.err conftest.$ac_objext \
9b8888f9
VZ
38402 conftest$ac_exeext conftest.$ac_ext
38403
38404fi
f321ab7f
VS
38405echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38406echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
9b8888f9
VZ
38407
38408 if eval test \$wx_cv_func_$wx_func = yes
38409 then
38410 cat >>confdefs.h <<_ACEOF
38411#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38412_ACEOF
38413
38414
38415 else
38416 :
38417
38418 fi
38419 done
38420
38421if test "$wx_cv_func_uname" != yes; then
38422
38423 for wx_func in gethostname
fd5199d6 38424 do
f321ab7f
VS
38425 echo "$as_me:$LINENO: checking for $wx_func" >&5
38426echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38427if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38428 echo $ECHO_N "(cached) $ECHO_C" >&6
38429else
fd5199d6
VZ
38430
38431 cat >conftest.$ac_ext <<_ACEOF
38432
38433 /* confdefs.h. */
a848cd7e
SC
38434_ACEOF
38435cat confdefs.h >>conftest.$ac_ext
38436cat >>conftest.$ac_ext <<_ACEOF
38437/* end confdefs.h. */
ac1cb8d3 38438
ac1cb8d3 38439
fd5199d6 38440 $ac_includes_default
a848cd7e
SC
38441
38442int
38443main ()
38444{
fd5199d6
VZ
38445
38446 #ifndef $wx_func
38447 &$wx_func;
38448 #endif
38449
38450
a848cd7e
SC
38451 ;
38452 return 0;
38453}
fd5199d6 38454
a848cd7e
SC
38455_ACEOF
38456rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38458 (eval $ac_link) 2>conftest.er1
a848cd7e 38459 ac_status=$?
ac1cb8d3
VS
38460 grep -v '^ *+' conftest.er1 >conftest.err
38461 rm -f conftest.er1
38462 cat conftest.err >&5
a848cd7e
SC
38463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464 (exit $ac_status); } &&
f321ab7f
VS
38465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38467 (eval $ac_try) 2>&5
ac1cb8d3
VS
38468 ac_status=$?
38469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38470 (exit $ac_status); }; } &&
38471 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38473 (eval $ac_try) 2>&5
a848cd7e
SC
38474 ac_status=$?
38475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476 (exit $ac_status); }; }; then
fd5199d6 38477 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38478else
38479 echo "$as_me: failed program was:" >&5
38480sed 's/^/| /' conftest.$ac_ext >&5
38481
f321ab7f 38482eval wx_cv_func_$wx_func=no
a848cd7e 38483fi
f321ab7f 38484rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 38485 conftest$ac_exeext conftest.$ac_ext
fd5199d6 38486
a848cd7e 38487fi
f321ab7f
VS
38488echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38489echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
fd5199d6
VZ
38490
38491 if eval test \$wx_cv_func_$wx_func = yes
38492 then
38493 cat >>confdefs.h <<_ACEOF
38494#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
a848cd7e 38495_ACEOF
fd5199d6 38496
9b8888f9 38497
fd5199d6
VZ
38498 else
38499 :
38500
38501 fi
38502 done
a848cd7e 38503
9b8888f9 38504fi
a848cd7e 38505
56632e81
MW
38506
38507 for wx_func in strtok_r
38508 do
f321ab7f
VS
38509 echo "$as_me:$LINENO: checking for $wx_func" >&5
38510echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38511if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38512 echo $ECHO_N "(cached) $ECHO_C" >&6
38513else
56632e81
MW
38514
38515 cat >conftest.$ac_ext <<_ACEOF
38516
38517 /* confdefs.h. */
a848cd7e
SC
38518_ACEOF
38519cat confdefs.h >>conftest.$ac_ext
38520cat >>conftest.$ac_ext <<_ACEOF
38521/* end confdefs.h. */
56632e81
MW
38522
38523 #define _REENTRANT
38524 $ac_includes_default
38525
a848cd7e
SC
38526int
38527main ()
38528{
56632e81
MW
38529
38530 #ifndef $wx_func
38531 &$wx_func;
38532 #endif
38533
5acfd58d 38534
a848cd7e
SC
38535 ;
38536 return 0;
38537}
56632e81 38538
a848cd7e 38539_ACEOF
56632e81 38540rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38542 (eval $ac_link) 2>conftest.er1
a848cd7e 38543 ac_status=$?
ac1cb8d3
VS
38544 grep -v '^ *+' conftest.er1 >conftest.err
38545 rm -f conftest.er1
38546 cat conftest.err >&5
a848cd7e
SC
38547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38548 (exit $ac_status); } &&
f321ab7f
VS
38549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38551 (eval $ac_try) 2>&5
ac1cb8d3
VS
38552 ac_status=$?
38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554 (exit $ac_status); }; } &&
56632e81 38555 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38557 (eval $ac_try) 2>&5
a848cd7e
SC
38558 ac_status=$?
38559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560 (exit $ac_status); }; }; then
56632e81 38561 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38562else
38563 echo "$as_me: failed program was:" >&5
38564sed 's/^/| /' conftest.$ac_ext >&5
38565
f321ab7f 38566eval wx_cv_func_$wx_func=no
a848cd7e 38567fi
f321ab7f 38568rm -f conftest.err conftest.$ac_objext \
56632e81 38569 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38570
56632e81 38571fi
f321ab7f
VS
38572echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38573echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 38574
56632e81
MW
38575 if eval test \$wx_cv_func_$wx_func = yes
38576 then
38577 cat >>confdefs.h <<_ACEOF
38578#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
38579_ACEOF
38580
38581
56632e81
MW
38582 else
38583 :
5acfd58d 38584
56632e81
MW
38585 fi
38586 done
5acfd58d 38587
a848cd7e 38588
a848cd7e
SC
38589INET_LINK=
38590
38591for ac_func in inet_addr
38592do
38593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
38594echo "$as_me:$LINENO: checking for $ac_func" >&5
38595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38596if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
38597 echo $ECHO_N "(cached) $ECHO_C" >&6
38598else
38599 cat >conftest.$ac_ext <<_ACEOF
38600/* confdefs.h. */
38601_ACEOF
38602cat confdefs.h >>conftest.$ac_ext
38603cat >>conftest.$ac_ext <<_ACEOF
38604/* end confdefs.h. */
ac1cb8d3
VS
38605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38607#define $ac_func innocuous_$ac_func
38608
a848cd7e
SC
38609/* System header to define __stub macros and hopefully few prototypes,
38610 which can conflict with char $ac_func (); below.
38611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38612 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38613
a848cd7e
SC
38614#ifdef __STDC__
38615# include <limits.h>
38616#else
38617# include <assert.h>
38618#endif
ac1cb8d3
VS
38619
38620#undef $ac_func
38621
f321ab7f 38622/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
38623#ifdef __cplusplus
38624extern "C"
f321ab7f 38625{
a848cd7e 38626#endif
f321ab7f
VS
38627/* We use char because int might match the return type of a gcc2
38628 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38629char $ac_func ();
38630/* The GNU C library defines this for functions which it implements
38631 to always fail with ENOSYS. Some functions are actually named
38632 something starting with __ and the normal name is an alias. */
f321ab7f 38633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 38634choke me
f321ab7f
VS
38635#else
38636char (*f) () = $ac_func;
38637#endif
38638#ifdef __cplusplus
38639}
a848cd7e
SC
38640#endif
38641
38642int
38643main ()
38644{
f321ab7f 38645return f != $ac_func;
a848cd7e
SC
38646 ;
38647 return 0;
38648}
38649_ACEOF
38650rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38652 (eval $ac_link) 2>conftest.er1
a848cd7e 38653 ac_status=$?
ac1cb8d3
VS
38654 grep -v '^ *+' conftest.er1 >conftest.err
38655 rm -f conftest.er1
38656 cat conftest.err >&5
a848cd7e
SC
38657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38658 (exit $ac_status); } &&
f321ab7f
VS
38659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38661 (eval $ac_try) 2>&5
ac1cb8d3
VS
38662 ac_status=$?
38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); }; } &&
38665 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38667 (eval $ac_try) 2>&5
a848cd7e
SC
38668 ac_status=$?
38669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38670 (exit $ac_status); }; }; then
38671 eval "$as_ac_var=yes"
38672else
38673 echo "$as_me: failed program was:" >&5
38674sed 's/^/| /' conftest.$ac_ext >&5
38675
f321ab7f 38676eval "$as_ac_var=no"
a848cd7e 38677fi
f321ab7f 38678rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 38679 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38680fi
f321ab7f
VS
38681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
38683if test `eval echo '${'$as_ac_var'}'` = yes; then
38684 cat >>confdefs.h <<_ACEOF
38685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38686_ACEOF
38687 cat >>confdefs.h <<\_ACEOF
38688#define HAVE_INET_ADDR 1
38689_ACEOF
38690
38691else
38692
f321ab7f
VS
38693 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38694echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
a848cd7e
SC
38695if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38696 echo $ECHO_N "(cached) $ECHO_C" >&6
38697else
38698 ac_check_lib_save_LIBS=$LIBS
38699LIBS="-lnsl $LIBS"
38700cat >conftest.$ac_ext <<_ACEOF
38701/* confdefs.h. */
38702_ACEOF
38703cat confdefs.h >>conftest.$ac_ext
38704cat >>conftest.$ac_ext <<_ACEOF
38705/* end confdefs.h. */
38706
f321ab7f 38707/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
38708#ifdef __cplusplus
38709extern "C"
38710#endif
f321ab7f
VS
38711/* We use char because int might match the return type of a gcc2
38712 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38713char inet_addr ();
38714int
38715main ()
38716{
f321ab7f 38717inet_addr ();
a848cd7e
SC
38718 ;
38719 return 0;
38720}
38721_ACEOF
38722rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38724 (eval $ac_link) 2>conftest.er1
a848cd7e 38725 ac_status=$?
ac1cb8d3
VS
38726 grep -v '^ *+' conftest.er1 >conftest.err
38727 rm -f conftest.er1
38728 cat conftest.err >&5
a848cd7e
SC
38729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730 (exit $ac_status); } &&
f321ab7f
VS
38731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38733 (eval $ac_try) 2>&5
ac1cb8d3
VS
38734 ac_status=$?
38735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38736 (exit $ac_status); }; } &&
38737 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38739 (eval $ac_try) 2>&5
a848cd7e
SC
38740 ac_status=$?
38741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38742 (exit $ac_status); }; }; then
38743 ac_cv_lib_nsl_inet_addr=yes
38744else
38745 echo "$as_me: failed program was:" >&5
38746sed 's/^/| /' conftest.$ac_ext >&5
38747
f321ab7f 38748ac_cv_lib_nsl_inet_addr=no
a848cd7e 38749fi
f321ab7f 38750rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 38751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38752LIBS=$ac_check_lib_save_LIBS
38753fi
f321ab7f
VS
38754echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38755echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
a848cd7e
SC
38756if test $ac_cv_lib_nsl_inet_addr = yes; then
38757 INET_LINK="nsl"
38758else
38759
f321ab7f
VS
38760 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38761echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
a848cd7e
SC
38762if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38763 echo $ECHO_N "(cached) $ECHO_C" >&6
38764else
38765 ac_check_lib_save_LIBS=$LIBS
38766LIBS="-lresolv $LIBS"
38767cat >conftest.$ac_ext <<_ACEOF
38768/* confdefs.h. */
38769_ACEOF
38770cat confdefs.h >>conftest.$ac_ext
38771cat >>conftest.$ac_ext <<_ACEOF
38772/* end confdefs.h. */
38773
f321ab7f 38774/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
38775#ifdef __cplusplus
38776extern "C"
38777#endif
f321ab7f
VS
38778/* We use char because int might match the return type of a gcc2
38779 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38780char inet_addr ();
38781int
38782main ()
38783{
f321ab7f 38784inet_addr ();
a848cd7e
SC
38785 ;
38786 return 0;
38787}
38788_ACEOF
38789rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38791 (eval $ac_link) 2>conftest.er1
a848cd7e 38792 ac_status=$?
ac1cb8d3
VS
38793 grep -v '^ *+' conftest.er1 >conftest.err
38794 rm -f conftest.er1
38795 cat conftest.err >&5
a848cd7e
SC
38796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38797 (exit $ac_status); } &&
f321ab7f
VS
38798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38800 (eval $ac_try) 2>&5
ac1cb8d3
VS
38801 ac_status=$?
38802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38803 (exit $ac_status); }; } &&
38804 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38806 (eval $ac_try) 2>&5
a848cd7e
SC
38807 ac_status=$?
38808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38809 (exit $ac_status); }; }; then
38810 ac_cv_lib_resolv_inet_addr=yes
38811else
38812 echo "$as_me: failed program was:" >&5
38813sed 's/^/| /' conftest.$ac_ext >&5
38814
f321ab7f 38815ac_cv_lib_resolv_inet_addr=no
a848cd7e 38816fi
f321ab7f 38817rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 38818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38819LIBS=$ac_check_lib_save_LIBS
38820fi
f321ab7f
VS
38821echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38822echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
a848cd7e
SC
38823if test $ac_cv_lib_resolv_inet_addr = yes; then
38824 INET_LINK="resolv"
38825else
38826
f321ab7f
VS
38827 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38828echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
a848cd7e
SC
38829if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38830 echo $ECHO_N "(cached) $ECHO_C" >&6
38831else
38832 ac_check_lib_save_LIBS=$LIBS
38833LIBS="-lsocket $LIBS"
38834cat >conftest.$ac_ext <<_ACEOF
38835/* confdefs.h. */
38836_ACEOF
38837cat confdefs.h >>conftest.$ac_ext
38838cat >>conftest.$ac_ext <<_ACEOF
38839/* end confdefs.h. */
38840
f321ab7f 38841/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
38842#ifdef __cplusplus
38843extern "C"
38844#endif
f321ab7f
VS
38845/* We use char because int might match the return type of a gcc2
38846 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38847char inet_addr ();
38848int
38849main ()
38850{
f321ab7f 38851inet_addr ();
a848cd7e
SC
38852 ;
38853 return 0;
38854}
38855_ACEOF
38856rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38858 (eval $ac_link) 2>conftest.er1
a848cd7e 38859 ac_status=$?
ac1cb8d3
VS
38860 grep -v '^ *+' conftest.er1 >conftest.err
38861 rm -f conftest.er1
38862 cat conftest.err >&5
a848cd7e
SC
38863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38864 (exit $ac_status); } &&
f321ab7f
VS
38865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38867 (eval $ac_try) 2>&5
ac1cb8d3
VS
38868 ac_status=$?
38869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38870 (exit $ac_status); }; } &&
38871 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38873 (eval $ac_try) 2>&5
a848cd7e
SC
38874 ac_status=$?
38875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876 (exit $ac_status); }; }; then
38877 ac_cv_lib_socket_inet_addr=yes
38878else
38879 echo "$as_me: failed program was:" >&5
38880sed 's/^/| /' conftest.$ac_ext >&5
38881
f321ab7f 38882ac_cv_lib_socket_inet_addr=no
a848cd7e 38883fi
f321ab7f 38884rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 38885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38886LIBS=$ac_check_lib_save_LIBS
38887fi
f321ab7f
VS
38888echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38889echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
a848cd7e
SC
38890if test $ac_cv_lib_socket_inet_addr = yes; then
38891 INET_LINK="socket"
38892
38893fi
38894
38895
38896
38897fi
38898
38899
38900
38901fi
38902
38903
38904
38905fi
38906done
38907
38908
38909
38910for ac_func in inet_aton
38911do
38912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
38913echo "$as_me:$LINENO: checking for $ac_func" >&5
38914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38915if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
38916 echo $ECHO_N "(cached) $ECHO_C" >&6
38917else
38918 cat >conftest.$ac_ext <<_ACEOF
38919/* confdefs.h. */
38920_ACEOF
38921cat confdefs.h >>conftest.$ac_ext
38922cat >>conftest.$ac_ext <<_ACEOF
38923/* end confdefs.h. */
ac1cb8d3
VS
38924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38926#define $ac_func innocuous_$ac_func
38927
a848cd7e
SC
38928/* System header to define __stub macros and hopefully few prototypes,
38929 which can conflict with char $ac_func (); below.
38930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38931 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38932
a848cd7e
SC
38933#ifdef __STDC__
38934# include <limits.h>
38935#else
38936# include <assert.h>
38937#endif
ac1cb8d3
VS
38938
38939#undef $ac_func
38940
f321ab7f 38941/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
38942#ifdef __cplusplus
38943extern "C"
f321ab7f 38944{
a848cd7e 38945#endif
f321ab7f
VS
38946/* We use char because int might match the return type of a gcc2
38947 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38948char $ac_func ();
38949/* The GNU C library defines this for functions which it implements
38950 to always fail with ENOSYS. Some functions are actually named
38951 something starting with __ and the normal name is an alias. */
f321ab7f 38952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 38953choke me
f321ab7f
VS
38954#else
38955char (*f) () = $ac_func;
38956#endif
38957#ifdef __cplusplus
38958}
a848cd7e
SC
38959#endif
38960
38961int
38962main ()
38963{
f321ab7f 38964return f != $ac_func;
a848cd7e
SC
38965 ;
38966 return 0;
38967}
38968_ACEOF
38969rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
38970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38971 (eval $ac_link) 2>conftest.er1
a848cd7e 38972 ac_status=$?
ac1cb8d3
VS
38973 grep -v '^ *+' conftest.er1 >conftest.err
38974 rm -f conftest.er1
38975 cat conftest.err >&5
a848cd7e
SC
38976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38977 (exit $ac_status); } &&
f321ab7f
VS
38978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38980 (eval $ac_try) 2>&5
ac1cb8d3
VS
38981 ac_status=$?
38982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38983 (exit $ac_status); }; } &&
38984 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
38985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38986 (eval $ac_try) 2>&5
a848cd7e
SC
38987 ac_status=$?
38988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38989 (exit $ac_status); }; }; then
38990 eval "$as_ac_var=yes"
38991else
38992 echo "$as_me: failed program was:" >&5
38993sed 's/^/| /' conftest.$ac_ext >&5
38994
f321ab7f 38995eval "$as_ac_var=no"
a848cd7e 38996fi
f321ab7f 38997rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 38998 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38999fi
f321ab7f
VS
39000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
39002if test `eval echo '${'$as_ac_var'}'` = yes; then
39003 cat >>confdefs.h <<_ACEOF
39004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39005_ACEOF
39006 cat >>confdefs.h <<\_ACEOF
39007#define HAVE_INET_ATON 1
39008_ACEOF
39009
39010else
39011
39012 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
f321ab7f
VS
39013echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
39014echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
39015if eval "test \"\${$as_ac_Lib+set}\" = set"; then
a848cd7e
SC
39016 echo $ECHO_N "(cached) $ECHO_C" >&6
39017else
39018 ac_check_lib_save_LIBS=$LIBS
39019LIBS="-l$INET_LINK $LIBS"
39020cat >conftest.$ac_ext <<_ACEOF
39021/* confdefs.h. */
39022_ACEOF
39023cat confdefs.h >>conftest.$ac_ext
39024cat >>conftest.$ac_ext <<_ACEOF
39025/* end confdefs.h. */
39026
f321ab7f 39027/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
39028#ifdef __cplusplus
39029extern "C"
39030#endif
f321ab7f
VS
39031/* We use char because int might match the return type of a gcc2
39032 builtin and then its argument prototype would still apply. */
a848cd7e
SC
39033char inet_aton ();
39034int
39035main ()
39036{
f321ab7f 39037inet_aton ();
a848cd7e
SC
39038 ;
39039 return 0;
39040}
39041_ACEOF
39042rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
39043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39044 (eval $ac_link) 2>conftest.er1
a848cd7e 39045 ac_status=$?
ac1cb8d3
VS
39046 grep -v '^ *+' conftest.er1 >conftest.err
39047 rm -f conftest.er1
39048 cat conftest.err >&5
a848cd7e
SC
39049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39050 (exit $ac_status); } &&
f321ab7f
VS
39051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39053 (eval $ac_try) 2>&5
ac1cb8d3
VS
39054 ac_status=$?
39055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 (exit $ac_status); }; } &&
39057 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
39058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39059 (eval $ac_try) 2>&5
a848cd7e
SC
39060 ac_status=$?
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); }; }; then
39063 eval "$as_ac_Lib=yes"
39064else
39065 echo "$as_me: failed program was:" >&5
39066sed 's/^/| /' conftest.$ac_ext >&5
39067
f321ab7f 39068eval "$as_ac_Lib=no"
a848cd7e 39069fi
f321ab7f 39070rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 39071 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39072LIBS=$ac_check_lib_save_LIBS
39073fi
f321ab7f
VS
39074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
39075echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
a848cd7e
SC
39076if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39077 cat >>confdefs.h <<\_ACEOF
39078#define HAVE_INET_ATON 1
39079_ACEOF
39080
39081fi
39082
39083
39084fi
39085done
39086
39087
39088if test "x$INET_LINK" != "x"; then
39089 cat >>confdefs.h <<\_ACEOF
39090#define HAVE_INET_ADDR 1
39091_ACEOF
39092
39093 INET_LINK=" -l$INET_LINK"
39094fi
39095
f8f6c91a
MW
39096
39097 for wx_func in fdopen
39098 do
f321ab7f
VS
39099 echo "$as_me:$LINENO: checking for $wx_func" >&5
39100echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
39101if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
f8f6c91a
MW
39102 echo $ECHO_N "(cached) $ECHO_C" >&6
39103else
39104
39105 cat >conftest.$ac_ext <<_ACEOF
39106
39107 /* confdefs.h. */
39108_ACEOF
39109cat confdefs.h >>conftest.$ac_ext
39110cat >>conftest.$ac_ext <<_ACEOF
39111/* end confdefs.h. */
39112
39113
39114 $ac_includes_default
39115
39116int
39117main ()
39118{
39119
39120 #ifndef $wx_func
39121 &$wx_func;
39122 #endif
39123
39124
39125 ;
39126 return 0;
39127}
39128
39129_ACEOF
39130rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
39131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39132 (eval $ac_link) 2>conftest.er1
f8f6c91a
MW
39133 ac_status=$?
39134 grep -v '^ *+' conftest.er1 >conftest.err
39135 rm -f conftest.er1
39136 cat conftest.err >&5
39137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138 (exit $ac_status); } &&
f321ab7f
VS
39139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39141 (eval $ac_try) 2>&5
f8f6c91a
MW
39142 ac_status=$?
39143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39144 (exit $ac_status); }; } &&
39145 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
39146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39147 (eval $ac_try) 2>&5
f8f6c91a
MW
39148 ac_status=$?
39149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150 (exit $ac_status); }; }; then
39151 eval wx_cv_func_$wx_func=yes
39152else
39153 echo "$as_me: failed program was:" >&5
39154sed 's/^/| /' conftest.$ac_ext >&5
39155
f321ab7f 39156eval wx_cv_func_$wx_func=no
a848cd7e 39157fi
f321ab7f 39158rm -f conftest.err conftest.$ac_objext \
f8f6c91a
MW
39159 conftest$ac_exeext conftest.$ac_ext
39160
39161fi
f321ab7f
VS
39162echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39163echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
f8f6c91a
MW
39164
39165 if eval test \$wx_cv_func_$wx_func = yes
39166 then
39167 cat >>confdefs.h <<_ACEOF
39168#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39169_ACEOF
39170
39171
39172 else
39173 :
39174
39175 fi
39176 done
39177
39178
39179fi
39180
a848cd7e
SC
39181
39182
39183
39184EXTRALIBS_ESD=
f321ab7f
VS
39185echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
39186echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
a848cd7e
SC
39187if test "${ac_cv_lib_esd_esd_close+set}" = set; then
39188 echo $ECHO_N "(cached) $ECHO_C" >&6
39189else
39190 ac_check_lib_save_LIBS=$LIBS
39191LIBS="-lesd $LIBS"
39192cat >conftest.$ac_ext <<_ACEOF
39193/* confdefs.h. */
39194_ACEOF
39195cat confdefs.h >>conftest.$ac_ext
39196cat >>conftest.$ac_ext <<_ACEOF
39197/* end confdefs.h. */
39198
f321ab7f 39199/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
39200#ifdef __cplusplus
39201extern "C"
39202#endif
f321ab7f
VS
39203/* We use char because int might match the return type of a gcc2
39204 builtin and then its argument prototype would still apply. */
a848cd7e
SC
39205char esd_close ();
39206int
39207main ()
39208{
f321ab7f 39209esd_close ();
a848cd7e
SC
39210 ;
39211 return 0;
39212}
39213_ACEOF
39214rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
39215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39216 (eval $ac_link) 2>conftest.er1
a848cd7e 39217 ac_status=$?
ac1cb8d3
VS
39218 grep -v '^ *+' conftest.er1 >conftest.err
39219 rm -f conftest.er1
39220 cat conftest.err >&5
a848cd7e
SC
39221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39222 (exit $ac_status); } &&
f321ab7f
VS
39223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39225 (eval $ac_try) 2>&5
ac1cb8d3
VS
39226 ac_status=$?
39227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228 (exit $ac_status); }; } &&
39229 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231 (eval $ac_try) 2>&5
a848cd7e
SC
39232 ac_status=$?
39233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; }; then
39235 ac_cv_lib_esd_esd_close=yes
39236else
39237 echo "$as_me: failed program was:" >&5
39238sed 's/^/| /' conftest.$ac_ext >&5
39239
f321ab7f 39240ac_cv_lib_esd_esd_close=no
a848cd7e 39241fi
f321ab7f 39242rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 39243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39244LIBS=$ac_check_lib_save_LIBS
39245fi
f321ab7f
VS
39246echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
39247echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
a848cd7e
SC
39248if test $ac_cv_lib_esd_esd_close = yes; then
39249
39250
39251for ac_header in esd.h
39252do
39253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
39254if eval "test \"\${$as_ac_Header+set}\" = set"; then
39255 echo "$as_me:$LINENO: checking for $ac_header" >&5
39256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39257if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
39258 echo $ECHO_N "(cached) $ECHO_C" >&6
39259fi
f321ab7f
VS
39260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
39262else
39263 # Is the header compilable?
f321ab7f
VS
39264echo "$as_me:$LINENO: checking $ac_header usability" >&5
39265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a848cd7e
SC
39266cat >conftest.$ac_ext <<_ACEOF
39267/* confdefs.h. */
39268_ACEOF
39269cat confdefs.h >>conftest.$ac_ext
39270cat >>conftest.$ac_ext <<_ACEOF
39271/* end confdefs.h. */
39272$ac_includes_default
39273#include <$ac_header>
39274_ACEOF
39275rm -f conftest.$ac_objext
f321ab7f
VS
39276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39277 (eval $ac_compile) 2>conftest.er1
a848cd7e 39278 ac_status=$?
ac1cb8d3
VS
39279 grep -v '^ *+' conftest.er1 >conftest.err
39280 rm -f conftest.er1
39281 cat conftest.err >&5
a848cd7e
SC
39282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39283 (exit $ac_status); } &&
f321ab7f
VS
39284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39286 (eval $ac_try) 2>&5
ac1cb8d3
VS
39287 ac_status=$?
39288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39289 (exit $ac_status); }; } &&
39290 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
39291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39292 (eval $ac_try) 2>&5
a848cd7e
SC
39293 ac_status=$?
39294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39295 (exit $ac_status); }; }; then
39296 ac_header_compiler=yes
39297else
39298 echo "$as_me: failed program was:" >&5
39299sed 's/^/| /' conftest.$ac_ext >&5
39300
f321ab7f 39301ac_header_compiler=no
a848cd7e 39302fi
f321ab7f
VS
39303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39305echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
39306
39307# Is the header present?
f321ab7f
VS
39308echo "$as_me:$LINENO: checking $ac_header presence" >&5
39309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a848cd7e
SC
39310cat >conftest.$ac_ext <<_ACEOF
39311/* confdefs.h. */
39312_ACEOF
39313cat confdefs.h >>conftest.$ac_ext
39314cat >>conftest.$ac_ext <<_ACEOF
39315/* end confdefs.h. */
39316#include <$ac_header>
39317_ACEOF
f321ab7f
VS
39318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
39320 ac_status=$?
39321 grep -v '^ *+' conftest.er1 >conftest.err
39322 rm -f conftest.er1
39323 cat conftest.err >&5
39324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39325 (exit $ac_status); } >/dev/null; then
39326 if test -s conftest.err; then
fd5199d6
VZ
39327 ac_cpp_err=$ac_c_preproc_warn_flag
39328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39329 else
39330 ac_cpp_err=
39331 fi
39332else
39333 ac_cpp_err=yes
39334fi
39335if test -z "$ac_cpp_err"; then
39336 ac_header_preproc=yes
39337else
39338 echo "$as_me: failed program was:" >&5
39339sed 's/^/| /' conftest.$ac_ext >&5
39340
39341 ac_header_preproc=no
39342fi
39343rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
39344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39345echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
39346
39347# So? What about this header?
fd5199d6 39348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 39349 yes:no: )
a848cd7e
SC
39350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39354 ac_header_preproc=yes
a848cd7e 39355 ;;
ac1cb8d3 39356 no:yes:* )
a848cd7e
SC
39357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
39369 (
39370 cat <<\_ASBOX
ac1cb8d3
VS
39371## ----------------------------------------- ##
39372## Report this to wx-dev@lists.wxwidgets.org ##
39373## ----------------------------------------- ##
a848cd7e 39374_ASBOX
f321ab7f
VS
39375 ) |
39376 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
39377 ;;
39378esac
f321ab7f
VS
39379echo "$as_me:$LINENO: checking for $ac_header" >&5
39380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39381if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
39382 echo $ECHO_N "(cached) $ECHO_C" >&6
39383else
ac1cb8d3 39384 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e 39385fi
f321ab7f
VS
39386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
39388
39389fi
39390if test `eval echo '${'$as_ac_Header'}'` = yes; then
39391 cat >>confdefs.h <<_ACEOF
39392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39393_ACEOF
39394
39395 EXTRALIBS_ESD="-lesd"
39396
39397fi
39398
39399done
39400
39401
39402fi
39403
39404
39405
f321ab7f
VS
39406echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
39407echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
a848cd7e
SC
39408cat >conftest.$ac_ext <<_ACEOF
39409/* confdefs.h. */
39410_ACEOF
39411cat confdefs.h >>conftest.$ac_ext
39412cat >>conftest.$ac_ext <<_ACEOF
39413/* end confdefs.h. */
39414#ifdef __linux__
39415 #include <linux/cdrom.h>
39416 #else
39417 /* For Solaris */
39418 #include <sys/cdio.h>
39419 #endif
39420
39421int
39422main ()
39423{
39424struct cdrom_tocentry entry, old_entry;
39425 ;
39426 return 0;
39427}
39428_ACEOF
39429rm -f conftest.$ac_objext
f321ab7f
VS
39430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39431 (eval $ac_compile) 2>conftest.er1
a848cd7e 39432 ac_status=$?
ac1cb8d3
VS
39433 grep -v '^ *+' conftest.er1 >conftest.err
39434 rm -f conftest.er1
39435 cat conftest.err >&5
a848cd7e
SC
39436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39437 (exit $ac_status); } &&
f321ab7f
VS
39438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39440 (eval $ac_try) 2>&5
ac1cb8d3
VS
39441 ac_status=$?
39442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39443 (exit $ac_status); }; } &&
39444 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
39445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39446 (eval $ac_try) 2>&5
a848cd7e
SC
39447 ac_status=$?
39448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39449 (exit $ac_status); }; }; then
f321ab7f
VS
39450 echo "$as_me:$LINENO: result: yes" >&5
39451echo "${ECHO_T}yes" >&6
a848cd7e
SC
39452 cat >>confdefs.h <<\_ACEOF
39453#define HAVE_KNOWN_CDROM_INTERFACE 1
39454_ACEOF
39455
39456else
39457 echo "$as_me: failed program was:" >&5
39458sed 's/^/| /' conftest.$ac_ext >&5
39459
f321ab7f
VS
39460echo "$as_me:$LINENO: result: no" >&5
39461echo "${ECHO_T}no" >&6
a848cd7e 39462fi
f321ab7f 39463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39464
39465
39466cat >confcache <<\_ACEOF
39467# This file is a shell script that caches the results of configure
39468# tests run on this system so they can be shared between configure
39469# scripts and configure runs, see configure's option --config-cache.
39470# It is not useful on other systems. If it contains results you don't
39471# want to keep, you may remove or edit it.
39472#
39473# config.status only pays attention to the cache file if you give it
39474# the --recheck option to rerun configure.
39475#
39476# `ac_cv_env_foo' variables (set or unset) will be overridden when
39477# loading this file, other *unset* `ac_cv_foo' will be assigned the
39478# following values.
39479
39480_ACEOF
39481
39482# The following way of writing the cache mishandles newlines in values,
39483# but we know of no workaround that is simple, portable, and efficient.
f321ab7f 39484# So, don't put newlines in cache variables' values.
a848cd7e
SC
39485# Ultrix sh set writes to stderr and can't be redirected directly,
39486# and sets the high bit in the cache file unless we assign to the vars.
f321ab7f 39487{
a848cd7e 39488 (set) 2>&1 |
f321ab7f
VS
39489 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39490 *ac_space=\ *)
a848cd7e
SC
39491 # `set' does not quote correctly, so add quotes (double-quote
39492 # substitution turns \\\\ into \\, and sed turns \\ into \).
39493 sed -n \
ac1cb8d3
VS
39494 "s/'/'\\\\''/g;
39495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
f321ab7f 39496 ;;
a848cd7e
SC
39497 *)
39498 # `set' quotes correctly as required by POSIX, so do not add quotes.
f321ab7f
VS
39499 sed -n \
39500 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e 39501 ;;
f321ab7f
VS
39502 esac;
39503} |
a848cd7e
SC
39504 sed '
39505 t clear
f321ab7f 39506 : clear
a848cd7e
SC
39507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39508 t end
f321ab7f
VS
39509 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39510 : end' >>confcache
39511if diff $cache_file confcache >/dev/null 2>&1; then :; else
39512 if test -w $cache_file; then
39513 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
a848cd7e
SC
39514 cat confcache >$cache_file
39515 else
f321ab7f 39516 echo "not updating unwritable cache $cache_file"
a848cd7e
SC
39517 fi
39518fi
39519rm -f confcache
39520
39521
a848cd7e
SC
39522if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39523
39524
39525 THREADS_LINK=
9b8888f9 39526 THREADS_CFLAGS=
a848cd7e
SC
39527
39528 if test "$wxUSE_THREADS" = "yes" ; then
39529 if test "$USE_BEOS" = 1; then
39530 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39531echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39532 wxUSE_THREADS="no"
39533 fi
39534 fi
39535
39536 if test "$wxUSE_THREADS" = "yes" ; then
39537
39538
39539 THREAD_OPTS="-pthread"
39540 case "${host}" in
39541 *-*-solaris2* | *-*-sunos4* )
39542 if test "x$GCC" = "xyes"; then
39543 THREAD_OPTS="-pthreads $THREAD_OPTS"
39544 else
39545 THREAD_OPTS="-mt $THREAD_OPTS"
39546 fi
39547 ;;
39548 *-*-freebsd*)
39549 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39550 ;;
39551 *-*-darwin* | *-*-cygwin* )
39552 THREAD_OPTS=""
39553 ;;
39554 *-*-aix*)
39555 THREAD_OPTS="pthreads"
39556 ;;
39557 *-hp-hpux* )
00421666
MW
39558 if test "x$GCC" = "xyes"; then
39559 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39560 THREAD_OPTS=""
39561 else
0093c2fc 39562 THREAD_OPTS="-mt"
a848cd7e
SC
39563 fi
39564 ;;
39565
39566 *-*-irix* )
39567 if test "x$GCC" = "xyes"; then
39568 THREAD_OPTS=""
39569 fi
39570 ;;
39571
39572 *-*-*UnixWare*)
39573 if test "x$GCC" != "xyes"; then
39574 THREAD_OPTS="-Ethread"
39575 fi
39576 ;;
39577 esac
39578
39579 THREAD_OPTS="$THREAD_OPTS pthread none"
39580
39581 THREADS_OK=no
39582 for flag in $THREAD_OPTS; do
39583 case $flag in
39584 none)
f321ab7f
VS
39585 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39586echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
a848cd7e
SC
39587 ;;
39588
39589 -*)
f321ab7f
VS
39590 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39591echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
9b8888f9 39592 THREADS_CFLAGS="$flag"
a848cd7e
SC
39593 ;;
39594
39595 *)
f321ab7f
VS
39596 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39597echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
a848cd7e
SC
39598 THREADS_LINK="-l$flag"
39599 ;;
39600 esac
39601
39602 save_LIBS="$LIBS"
9b8888f9 39603 save_CFLAGS="$CFLAGS"
a848cd7e 39604 LIBS="$THREADS_LINK $LIBS"
9b8888f9 39605 CFLAGS="$THREADS_CFLAGS $CFLAGS"
a848cd7e
SC
39606
39607 cat >conftest.$ac_ext <<_ACEOF
39608/* confdefs.h. */
39609_ACEOF
39610cat confdefs.h >>conftest.$ac_ext
39611cat >>conftest.$ac_ext <<_ACEOF
39612/* end confdefs.h. */
39613#include <pthread.h>
39614int
39615main ()
39616{
39617pthread_create(0,0,0,0);
39618 ;
39619 return 0;
39620}
39621_ACEOF
39622rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
39623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39624 (eval $ac_link) 2>conftest.er1
a848cd7e 39625 ac_status=$?
ac1cb8d3
VS
39626 grep -v '^ *+' conftest.er1 >conftest.err
39627 rm -f conftest.er1
39628 cat conftest.err >&5
a848cd7e
SC
39629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39630 (exit $ac_status); } &&
f321ab7f
VS
39631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39633 (eval $ac_try) 2>&5
ac1cb8d3
VS
39634 ac_status=$?
39635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39636 (exit $ac_status); }; } &&
39637 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
39638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39639 (eval $ac_try) 2>&5
a848cd7e
SC
39640 ac_status=$?
39641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39642 (exit $ac_status); }; }; then
39643 THREADS_OK=yes
39644else
39645 echo "$as_me: failed program was:" >&5
39646sed 's/^/| /' conftest.$ac_ext >&5
39647
39648fi
f321ab7f 39649rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 39650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39651
39652 LIBS="$save_LIBS"
9b8888f9 39653 CFLAGS="$save_CFLAGS"
a848cd7e 39654
f321ab7f
VS
39655 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39656echo "${ECHO_T}$THREADS_OK" >&6
a848cd7e
SC
39657 if test "x$THREADS_OK" = "xyes"; then
39658 break;
39659 fi
39660
39661 THREADS_LINK=""
9b8888f9 39662 THREADS_CFLAGS=""
a848cd7e
SC
39663 done
39664
39665 if test "x$THREADS_OK" != "xyes"; then
39666 wxUSE_THREADS=no
39667 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39668echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39669 else
9b8888f9 39670 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
a848cd7e
SC
39671 LIBS="$THREADS_LINK $LIBS"
39672
f321ab7f
VS
39673 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39674echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
a848cd7e
SC
39675 flag=no
39676 case "${host}" in
39677 *-aix*)
39678 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39679 flag="-D_THREAD_SAFE"
39680 ;;
39681 *-freebsd*)
39682 flag="-D_THREAD_SAFE"
39683 ;;
39684 *-hp-hpux* )
39685 flag="-D_REENTRANT"
39686 if test "x$GCC" != "xyes"; then
39687 flag="$flag -D_RWSTD_MULTI_THREAD"
39688 fi
39689 ;;
39690 *solaris* | alpha*-osf*)
39691 flag="-D_REENTRANT"
39692 ;;
39693 esac
f321ab7f
VS
39694 echo "$as_me:$LINENO: result: ${flag}" >&5
39695echo "${ECHO_T}${flag}" >&6
a848cd7e 39696 if test "x$flag" != xno; then
9b8888f9 39697 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
a848cd7e
SC
39698 fi
39699
9b8888f9 39700 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
39701 fi
39702 fi
39703
39704 if test "$wxUSE_THREADS" = "yes" ; then
39705
39706for ac_func in thr_setconcurrency
39707do
39708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
39709echo "$as_me:$LINENO: checking for $ac_func" >&5
39710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39711if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
39712 echo $ECHO_N "(cached) $ECHO_C" >&6
39713else
39714 cat >conftest.$ac_ext <<_ACEOF
39715/* confdefs.h. */
39716_ACEOF
39717cat confdefs.h >>conftest.$ac_ext
39718cat >>conftest.$ac_ext <<_ACEOF
39719/* end confdefs.h. */
ac1cb8d3
VS
39720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39722#define $ac_func innocuous_$ac_func
39723
a848cd7e
SC
39724/* System header to define __stub macros and hopefully few prototypes,
39725 which can conflict with char $ac_func (); below.
39726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39727 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39728
a848cd7e
SC
39729#ifdef __STDC__
39730# include <limits.h>
39731#else
39732# include <assert.h>
39733#endif
ac1cb8d3
VS
39734
39735#undef $ac_func
39736
f321ab7f 39737/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
39738#ifdef __cplusplus
39739extern "C"
f321ab7f 39740{
a848cd7e 39741#endif
f321ab7f
VS
39742/* We use char because int might match the return type of a gcc2
39743 builtin and then its argument prototype would still apply. */
a848cd7e
SC
39744char $ac_func ();
39745/* The GNU C library defines this for functions which it implements
39746 to always fail with ENOSYS. Some functions are actually named
39747 something starting with __ and the normal name is an alias. */
f321ab7f 39748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 39749choke me
f321ab7f
VS
39750#else
39751char (*f) () = $ac_func;
39752#endif
39753#ifdef __cplusplus
39754}
a848cd7e
SC
39755#endif
39756
39757int
39758main ()
39759{
f321ab7f 39760return f != $ac_func;
a848cd7e
SC
39761 ;
39762 return 0;
39763}
39764_ACEOF
39765rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
39766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39767 (eval $ac_link) 2>conftest.er1
a848cd7e 39768 ac_status=$?
ac1cb8d3
VS
39769 grep -v '^ *+' conftest.er1 >conftest.err
39770 rm -f conftest.er1
39771 cat conftest.err >&5
a848cd7e
SC
39772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39773 (exit $ac_status); } &&
f321ab7f
VS
39774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39776 (eval $ac_try) 2>&5
ac1cb8d3
VS
39777 ac_status=$?
39778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); }; } &&
39780 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
39781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39782 (eval $ac_try) 2>&5
a848cd7e
SC
39783 ac_status=$?
39784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39785 (exit $ac_status); }; }; then
39786 eval "$as_ac_var=yes"
39787else
39788 echo "$as_me: failed program was:" >&5
39789sed 's/^/| /' conftest.$ac_ext >&5
39790
f321ab7f 39791eval "$as_ac_var=no"
a848cd7e 39792fi
f321ab7f 39793rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 39794 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39795fi
f321ab7f
VS
39796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
39798if test `eval echo '${'$as_ac_var'}'` = yes; then
39799 cat >>confdefs.h <<_ACEOF
39800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39801_ACEOF
39802
39803fi
39804done
39805
39806
f321ab7f
VS
39807 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39808echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
6ebeb4c7
VZ
39809if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39810 echo $ECHO_N "(cached) $ECHO_C" >&6
39811else
39812
39813 cat >conftest.$ac_ext <<_ACEOF
39814/* confdefs.h. */
39815_ACEOF
39816cat confdefs.h >>conftest.$ac_ext
39817cat >>conftest.$ac_ext <<_ACEOF
39818/* end confdefs.h. */
39819#include <pthread.h>
39820 void ThreadCleanupFunc(void *p);
39821
39822int
39823main ()
39824{
39825
39826 void *p;
39827 pthread_cleanup_push(ThreadCleanupFunc, p);
39828 pthread_cleanup_pop(0);
39829
39830 ;
39831 return 0;
39832}
39833_ACEOF
39834rm -f conftest.$ac_objext
f321ab7f
VS
39835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39836 (eval $ac_compile) 2>conftest.er1
6ebeb4c7
VZ
39837 ac_status=$?
39838 grep -v '^ *+' conftest.er1 >conftest.err
39839 rm -f conftest.er1
39840 cat conftest.err >&5
39841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842 (exit $ac_status); } &&
f321ab7f
VS
39843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39845 (eval $ac_try) 2>&5
6ebeb4c7
VZ
39846 ac_status=$?
39847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39848 (exit $ac_status); }; } &&
39849 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
39850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39851 (eval $ac_try) 2>&5
6ebeb4c7
VZ
39852 ac_status=$?
39853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39854 (exit $ac_status); }; }; then
39855
39856 wx_cv_func_pthread_cleanup=yes
39857
39858else
39859 echo "$as_me: failed program was:" >&5
39860sed 's/^/| /' conftest.$ac_ext >&5
39861
39862
39863 wx_cv_func_pthread_cleanup=no
39864
39865
39866fi
f321ab7f 39867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6ebeb4c7
VZ
39868
39869fi
f321ab7f
VS
39870echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39871echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
6ebeb4c7
VZ
39872 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39873 cat >>confdefs.h <<\_ACEOF
39874#define wxHAVE_PTHREAD_CLEANUP 1
39875_ACEOF
39876
39877 fi
39878
a848cd7e
SC
39879
39880for ac_header in sched.h
39881do
39882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
39883if eval "test \"\${$as_ac_Header+set}\" = set"; then
39884 echo "$as_me:$LINENO: checking for $ac_header" >&5
39885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39886if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
39887 echo $ECHO_N "(cached) $ECHO_C" >&6
39888fi
f321ab7f
VS
39889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
39891else
39892 # Is the header compilable?
f321ab7f
VS
39893echo "$as_me:$LINENO: checking $ac_header usability" >&5
39894echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a848cd7e
SC
39895cat >conftest.$ac_ext <<_ACEOF
39896/* confdefs.h. */
39897_ACEOF
39898cat confdefs.h >>conftest.$ac_ext
39899cat >>conftest.$ac_ext <<_ACEOF
39900/* end confdefs.h. */
39901$ac_includes_default
39902#include <$ac_header>
39903_ACEOF
39904rm -f conftest.$ac_objext
f321ab7f
VS
39905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39906 (eval $ac_compile) 2>conftest.er1
a848cd7e 39907 ac_status=$?
ac1cb8d3
VS
39908 grep -v '^ *+' conftest.er1 >conftest.err
39909 rm -f conftest.er1
39910 cat conftest.err >&5
a848cd7e
SC
39911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912 (exit $ac_status); } &&
f321ab7f
VS
39913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39915 (eval $ac_try) 2>&5
ac1cb8d3
VS
39916 ac_status=$?
39917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39918 (exit $ac_status); }; } &&
39919 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
39920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39921 (eval $ac_try) 2>&5
a848cd7e
SC
39922 ac_status=$?
39923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39924 (exit $ac_status); }; }; then
39925 ac_header_compiler=yes
39926else
39927 echo "$as_me: failed program was:" >&5
39928sed 's/^/| /' conftest.$ac_ext >&5
39929
f321ab7f 39930ac_header_compiler=no
a848cd7e 39931fi
f321ab7f
VS
39932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39933echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39934echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
39935
39936# Is the header present?
f321ab7f
VS
39937echo "$as_me:$LINENO: checking $ac_header presence" >&5
39938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a848cd7e
SC
39939cat >conftest.$ac_ext <<_ACEOF
39940/* confdefs.h. */
39941_ACEOF
39942cat confdefs.h >>conftest.$ac_ext
39943cat >>conftest.$ac_ext <<_ACEOF
39944/* end confdefs.h. */
39945#include <$ac_header>
39946_ACEOF
f321ab7f
VS
39947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
39949 ac_status=$?
39950 grep -v '^ *+' conftest.er1 >conftest.err
39951 rm -f conftest.er1
39952 cat conftest.err >&5
39953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); } >/dev/null; then
39955 if test -s conftest.err; then
fd5199d6
VZ
39956 ac_cpp_err=$ac_c_preproc_warn_flag
39957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39958 else
39959 ac_cpp_err=
39960 fi
39961else
39962 ac_cpp_err=yes
39963fi
39964if test -z "$ac_cpp_err"; then
39965 ac_header_preproc=yes
39966else
39967 echo "$as_me: failed program was:" >&5
39968sed 's/^/| /' conftest.$ac_ext >&5
39969
39970 ac_header_preproc=no
39971fi
39972rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
39973echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39974echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
39975
39976# So? What about this header?
fd5199d6 39977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 39978 yes:no: )
a848cd7e
SC
39979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39980echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39982echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39983 ac_header_preproc=yes
a848cd7e 39984 ;;
ac1cb8d3 39985 no:yes:* )
a848cd7e
SC
39986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39987echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39989echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39991echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39993echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39995echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39997echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
39998 (
39999 cat <<\_ASBOX
ac1cb8d3
VS
40000## ----------------------------------------- ##
40001## Report this to wx-dev@lists.wxwidgets.org ##
40002## ----------------------------------------- ##
a848cd7e 40003_ASBOX
f321ab7f
VS
40004 ) |
40005 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
40006 ;;
40007esac
f321ab7f
VS
40008echo "$as_me:$LINENO: checking for $ac_header" >&5
40009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40010if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
40011 echo $ECHO_N "(cached) $ECHO_C" >&6
40012else
ac1cb8d3 40013 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e 40014fi
f321ab7f
VS
40015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
40017
40018fi
40019if test `eval echo '${'$as_ac_Header'}'` = yes; then
40020 cat >>confdefs.h <<_ACEOF
40021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40022_ACEOF
40023
40024fi
40025
40026done
40027
40028 if test "$ac_cv_header_sched_h" = "yes"; then
f321ab7f
VS
40029 echo "$as_me:$LINENO: checking for sched_yield" >&5
40030echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
a848cd7e
SC
40031if test "${ac_cv_func_sched_yield+set}" = set; then
40032 echo $ECHO_N "(cached) $ECHO_C" >&6
40033else
40034 cat >conftest.$ac_ext <<_ACEOF
40035/* confdefs.h. */
40036_ACEOF
40037cat confdefs.h >>conftest.$ac_ext
40038cat >>conftest.$ac_ext <<_ACEOF
40039/* end confdefs.h. */
ac1cb8d3
VS
40040/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
40041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40042#define sched_yield innocuous_sched_yield
40043
a848cd7e
SC
40044/* System header to define __stub macros and hopefully few prototypes,
40045 which can conflict with char sched_yield (); below.
40046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40047 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40048
a848cd7e
SC
40049#ifdef __STDC__
40050# include <limits.h>
40051#else
40052# include <assert.h>
40053#endif
ac1cb8d3
VS
40054
40055#undef sched_yield
40056
f321ab7f 40057/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
40058#ifdef __cplusplus
40059extern "C"
f321ab7f 40060{
a848cd7e 40061#endif
f321ab7f
VS
40062/* We use char because int might match the return type of a gcc2
40063 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40064char sched_yield ();
40065/* The GNU C library defines this for functions which it implements
40066 to always fail with ENOSYS. Some functions are actually named
40067 something starting with __ and the normal name is an alias. */
f321ab7f 40068#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
a848cd7e 40069choke me
f321ab7f
VS
40070#else
40071char (*f) () = sched_yield;
40072#endif
40073#ifdef __cplusplus
40074}
a848cd7e
SC
40075#endif
40076
40077int
40078main ()
40079{
f321ab7f 40080return f != sched_yield;
a848cd7e
SC
40081 ;
40082 return 0;
40083}
40084_ACEOF
40085rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
40086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40087 (eval $ac_link) 2>conftest.er1
a848cd7e 40088 ac_status=$?
ac1cb8d3
VS
40089 grep -v '^ *+' conftest.er1 >conftest.err
40090 rm -f conftest.er1
40091 cat conftest.err >&5
a848cd7e
SC
40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093 (exit $ac_status); } &&
f321ab7f
VS
40094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40096 (eval $ac_try) 2>&5
ac1cb8d3
VS
40097 ac_status=$?
40098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099 (exit $ac_status); }; } &&
40100 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
40101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40102 (eval $ac_try) 2>&5
a848cd7e
SC
40103 ac_status=$?
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); }; }; then
40106 ac_cv_func_sched_yield=yes
40107else
40108 echo "$as_me: failed program was:" >&5
40109sed 's/^/| /' conftest.$ac_ext >&5
40110
f321ab7f 40111ac_cv_func_sched_yield=no
a848cd7e 40112fi
f321ab7f 40113rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 40114 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40115fi
f321ab7f
VS
40116echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40117echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
a848cd7e
SC
40118if test $ac_cv_func_sched_yield = yes; then
40119 cat >>confdefs.h <<\_ACEOF
40120#define HAVE_SCHED_YIELD 1
40121_ACEOF
40122
40123else
40124
f321ab7f
VS
40125 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40126echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
a848cd7e
SC
40127if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40128 echo $ECHO_N "(cached) $ECHO_C" >&6
40129else
40130 ac_check_lib_save_LIBS=$LIBS
40131LIBS="-lposix4 $LIBS"
40132cat >conftest.$ac_ext <<_ACEOF
40133/* confdefs.h. */
40134_ACEOF
40135cat confdefs.h >>conftest.$ac_ext
40136cat >>conftest.$ac_ext <<_ACEOF
40137/* end confdefs.h. */
40138
f321ab7f 40139/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
40140#ifdef __cplusplus
40141extern "C"
40142#endif
f321ab7f
VS
40143/* We use char because int might match the return type of a gcc2
40144 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40145char sched_yield ();
40146int
40147main ()
40148{
f321ab7f 40149sched_yield ();
a848cd7e
SC
40150 ;
40151 return 0;
40152}
40153_ACEOF
40154rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
40155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40156 (eval $ac_link) 2>conftest.er1
a848cd7e 40157 ac_status=$?
ac1cb8d3
VS
40158 grep -v '^ *+' conftest.er1 >conftest.err
40159 rm -f conftest.er1
40160 cat conftest.err >&5
a848cd7e
SC
40161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40162 (exit $ac_status); } &&
f321ab7f
VS
40163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40165 (eval $ac_try) 2>&5
ac1cb8d3
VS
40166 ac_status=$?
40167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40168 (exit $ac_status); }; } &&
40169 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
40170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40171 (eval $ac_try) 2>&5
a848cd7e
SC
40172 ac_status=$?
40173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174 (exit $ac_status); }; }; then
40175 ac_cv_lib_posix4_sched_yield=yes
40176else
40177 echo "$as_me: failed program was:" >&5
40178sed 's/^/| /' conftest.$ac_ext >&5
40179
f321ab7f 40180ac_cv_lib_posix4_sched_yield=no
a848cd7e 40181fi
f321ab7f 40182rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 40183 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40184LIBS=$ac_check_lib_save_LIBS
40185fi
f321ab7f
VS
40186echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40187echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
a848cd7e
SC
40188if test $ac_cv_lib_posix4_sched_yield = yes; then
40189 cat >>confdefs.h <<\_ACEOF
40190#define HAVE_SCHED_YIELD 1
40191_ACEOF
40192 POSIX4_LINK=" -lposix4"
40193else
40194 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40195echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40196
40197fi
40198
40199
40200
40201fi
40202
40203 fi
40204
40205 HAVE_PRIOR_FUNCS=0
f321ab7f
VS
40206 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40207echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
a848cd7e
SC
40208if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40209 echo $ECHO_N "(cached) $ECHO_C" >&6
40210else
40211 cat >conftest.$ac_ext <<_ACEOF
40212/* confdefs.h. */
40213_ACEOF
40214cat confdefs.h >>conftest.$ac_ext
40215cat >>conftest.$ac_ext <<_ACEOF
40216/* end confdefs.h. */
ac1cb8d3
VS
40217/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40219#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40220
a848cd7e
SC
40221/* System header to define __stub macros and hopefully few prototypes,
40222 which can conflict with char pthread_attr_getschedpolicy (); below.
40223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40224 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40225
a848cd7e
SC
40226#ifdef __STDC__
40227# include <limits.h>
40228#else
40229# include <assert.h>
40230#endif
ac1cb8d3
VS
40231
40232#undef pthread_attr_getschedpolicy
40233
f321ab7f 40234/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
40235#ifdef __cplusplus
40236extern "C"
f321ab7f 40237{
a848cd7e 40238#endif
f321ab7f
VS
40239/* We use char because int might match the return type of a gcc2
40240 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40241char pthread_attr_getschedpolicy ();
40242/* The GNU C library defines this for functions which it implements
40243 to always fail with ENOSYS. Some functions are actually named
40244 something starting with __ and the normal name is an alias. */
f321ab7f 40245#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
a848cd7e 40246choke me
f321ab7f
VS
40247#else
40248char (*f) () = pthread_attr_getschedpolicy;
40249#endif
40250#ifdef __cplusplus
40251}
a848cd7e
SC
40252#endif
40253
40254int
40255main ()
40256{
f321ab7f 40257return f != pthread_attr_getschedpolicy;
a848cd7e
SC
40258 ;
40259 return 0;
40260}
40261_ACEOF
40262rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
40263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40264 (eval $ac_link) 2>conftest.er1
a848cd7e 40265 ac_status=$?
ac1cb8d3
VS
40266 grep -v '^ *+' conftest.er1 >conftest.err
40267 rm -f conftest.er1
40268 cat conftest.err >&5
a848cd7e
SC
40269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40270 (exit $ac_status); } &&
f321ab7f
VS
40271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40273 (eval $ac_try) 2>&5
ac1cb8d3
VS
40274 ac_status=$?
40275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40276 (exit $ac_status); }; } &&
40277 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
40278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40279 (eval $ac_try) 2>&5
a848cd7e
SC
40280 ac_status=$?
40281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40282 (exit $ac_status); }; }; then
40283 ac_cv_func_pthread_attr_getschedpolicy=yes
40284else
40285 echo "$as_me: failed program was:" >&5
40286sed 's/^/| /' conftest.$ac_ext >&5
40287
f321ab7f 40288ac_cv_func_pthread_attr_getschedpolicy=no
a848cd7e 40289fi
f321ab7f 40290rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 40291 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40292fi
f321ab7f
VS
40293echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40294echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
a848cd7e 40295if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
f321ab7f
VS
40296 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40297echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
a848cd7e
SC
40298if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40299 echo $ECHO_N "(cached) $ECHO_C" >&6
40300else
40301 cat >conftest.$ac_ext <<_ACEOF
40302/* confdefs.h. */
40303_ACEOF
40304cat confdefs.h >>conftest.$ac_ext
40305cat >>conftest.$ac_ext <<_ACEOF
40306/* end confdefs.h. */
ac1cb8d3
VS
40307/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40309#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40310
a848cd7e
SC
40311/* System header to define __stub macros and hopefully few prototypes,
40312 which can conflict with char pthread_attr_setschedparam (); below.
40313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40314 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40315
a848cd7e
SC
40316#ifdef __STDC__
40317# include <limits.h>
40318#else
40319# include <assert.h>
40320#endif
ac1cb8d3
VS
40321
40322#undef pthread_attr_setschedparam
40323
f321ab7f 40324/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
40325#ifdef __cplusplus
40326extern "C"
f321ab7f 40327{
a848cd7e 40328#endif
f321ab7f
VS
40329/* We use char because int might match the return type of a gcc2
40330 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40331char pthread_attr_setschedparam ();
40332/* The GNU C library defines this for functions which it implements
40333 to always fail with ENOSYS. Some functions are actually named
40334 something starting with __ and the normal name is an alias. */
f321ab7f 40335#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
a848cd7e 40336choke me
f321ab7f
VS
40337#else
40338char (*f) () = pthread_attr_setschedparam;
40339#endif
40340#ifdef __cplusplus
40341}
a848cd7e
SC
40342#endif
40343
40344int
40345main ()
40346{
f321ab7f 40347return f != pthread_attr_setschedparam;
a848cd7e
SC
40348 ;
40349 return 0;
40350}
40351_ACEOF
40352rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
40353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40354 (eval $ac_link) 2>conftest.er1
a848cd7e 40355 ac_status=$?
ac1cb8d3
VS
40356 grep -v '^ *+' conftest.er1 >conftest.err
40357 rm -f conftest.er1
40358 cat conftest.err >&5
a848cd7e
SC
40359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40360 (exit $ac_status); } &&
f321ab7f
VS
40361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40363 (eval $ac_try) 2>&5
ac1cb8d3
VS
40364 ac_status=$?
40365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40366 (exit $ac_status); }; } &&
40367 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
40368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40369 (eval $ac_try) 2>&5
a848cd7e
SC
40370 ac_status=$?
40371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372 (exit $ac_status); }; }; then
40373 ac_cv_func_pthread_attr_setschedparam=yes
40374else
40375 echo "$as_me: failed program was:" >&5
40376sed 's/^/| /' conftest.$ac_ext >&5
40377
f321ab7f 40378ac_cv_func_pthread_attr_setschedparam=no
a848cd7e 40379fi
f321ab7f 40380rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 40381 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40382fi
f321ab7f
VS
40383echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40384echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
a848cd7e 40385if test $ac_cv_func_pthread_attr_setschedparam = yes; then
f321ab7f
VS
40386 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40387echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
a848cd7e
SC
40388if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40389 echo $ECHO_N "(cached) $ECHO_C" >&6
40390else
40391 cat >conftest.$ac_ext <<_ACEOF
40392/* confdefs.h. */
40393_ACEOF
40394cat confdefs.h >>conftest.$ac_ext
40395cat >>conftest.$ac_ext <<_ACEOF
40396/* end confdefs.h. */
ac1cb8d3
VS
40397/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40399#define sched_get_priority_max innocuous_sched_get_priority_max
40400
a848cd7e
SC
40401/* System header to define __stub macros and hopefully few prototypes,
40402 which can conflict with char sched_get_priority_max (); below.
40403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40404 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40405
a848cd7e
SC
40406#ifdef __STDC__
40407# include <limits.h>
40408#else
40409# include <assert.h>
40410#endif
ac1cb8d3
VS
40411
40412#undef sched_get_priority_max
40413
f321ab7f 40414/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
40415#ifdef __cplusplus
40416extern "C"
f321ab7f 40417{
a848cd7e 40418#endif
f321ab7f
VS
40419/* We use char because int might match the return type of a gcc2
40420 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40421char sched_get_priority_max ();
40422/* The GNU C library defines this for functions which it implements
40423 to always fail with ENOSYS. Some functions are actually named
40424 something starting with __ and the normal name is an alias. */
f321ab7f 40425#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
a848cd7e 40426choke me
f321ab7f
VS
40427#else
40428char (*f) () = sched_get_priority_max;
40429#endif
40430#ifdef __cplusplus
40431}
a848cd7e
SC
40432#endif
40433
40434int
40435main ()
40436{
f321ab7f 40437return f != sched_get_priority_max;
a848cd7e
SC
40438 ;
40439 return 0;
40440}
40441_ACEOF
40442rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
40443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40444 (eval $ac_link) 2>conftest.er1
a848cd7e 40445 ac_status=$?
ac1cb8d3
VS
40446 grep -v '^ *+' conftest.er1 >conftest.err
40447 rm -f conftest.er1
40448 cat conftest.err >&5
a848cd7e
SC
40449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40450 (exit $ac_status); } &&
f321ab7f
VS
40451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40453 (eval $ac_try) 2>&5
ac1cb8d3
VS
40454 ac_status=$?
40455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40456 (exit $ac_status); }; } &&
40457 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
40458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40459 (eval $ac_try) 2>&5
a848cd7e
SC
40460 ac_status=$?
40461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462 (exit $ac_status); }; }; then
40463 ac_cv_func_sched_get_priority_max=yes
40464else
40465 echo "$as_me: failed program was:" >&5
40466sed 's/^/| /' conftest.$ac_ext >&5
40467
f321ab7f 40468ac_cv_func_sched_get_priority_max=no
a848cd7e 40469fi
f321ab7f 40470rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 40471 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40472fi
f321ab7f
VS
40473echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40474echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
a848cd7e
SC
40475if test $ac_cv_func_sched_get_priority_max = yes; then
40476 HAVE_PRIOR_FUNCS=1
40477else
f321ab7f
VS
40478 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40479echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
a848cd7e
SC
40480if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40481 echo $ECHO_N "(cached) $ECHO_C" >&6
40482else
40483 ac_check_lib_save_LIBS=$LIBS
40484LIBS="-lposix4 $LIBS"
40485cat >conftest.$ac_ext <<_ACEOF
40486/* confdefs.h. */
40487_ACEOF
40488cat confdefs.h >>conftest.$ac_ext
40489cat >>conftest.$ac_ext <<_ACEOF
40490/* end confdefs.h. */
40491
f321ab7f 40492/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
40493#ifdef __cplusplus
40494extern "C"
40495#endif
f321ab7f
VS
40496/* We use char because int might match the return type of a gcc2
40497 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40498char sched_get_priority_max ();
40499int
40500main ()
40501{
f321ab7f 40502sched_get_priority_max ();
a848cd7e
SC
40503 ;
40504 return 0;
40505}
40506_ACEOF
40507rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
40508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40509 (eval $ac_link) 2>conftest.er1
a848cd7e 40510 ac_status=$?
ac1cb8d3
VS
40511 grep -v '^ *+' conftest.er1 >conftest.err
40512 rm -f conftest.er1
40513 cat conftest.err >&5
a848cd7e
SC
40514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40515 (exit $ac_status); } &&
f321ab7f
VS
40516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40518 (eval $ac_try) 2>&5
ac1cb8d3
VS
40519 ac_status=$?
40520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521 (exit $ac_status); }; } &&
40522 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
40523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40524 (eval $ac_try) 2>&5
a848cd7e
SC
40525 ac_status=$?
40526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40527 (exit $ac_status); }; }; then
40528 ac_cv_lib_posix4_sched_get_priority_max=yes
40529else
40530 echo "$as_me: failed program was:" >&5
40531sed 's/^/| /' conftest.$ac_ext >&5
40532
f321ab7f 40533ac_cv_lib_posix4_sched_get_priority_max=no
a848cd7e 40534fi
f321ab7f 40535rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 40536 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40537LIBS=$ac_check_lib_save_LIBS
40538fi
f321ab7f
VS
40539echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40540echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
a848cd7e
SC
40541if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40542
40543 HAVE_PRIOR_FUNCS=1
40544 POSIX4_LINK=" -lposix4"
40545
40546fi
40547
40548
40549fi
40550
40551
40552fi
40553
40554
40555fi
40556
40557
40558 if test "$HAVE_PRIOR_FUNCS" = 1; then
40559 cat >>confdefs.h <<\_ACEOF
40560#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40561_ACEOF
40562
40563 else
40564 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40565echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40566 fi
40567
f321ab7f
VS
40568 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40569echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
a848cd7e
SC
40570if test "${ac_cv_func_pthread_cancel+set}" = set; then
40571 echo $ECHO_N "(cached) $ECHO_C" >&6
40572else
40573 cat >conftest.$ac_ext <<_ACEOF
40574/* confdefs.h. */
40575_ACEOF
40576cat confdefs.h >>conftest.$ac_ext
40577cat >>conftest.$ac_ext <<_ACEOF
40578/* end confdefs.h. */
ac1cb8d3
VS
40579/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40581#define pthread_cancel innocuous_pthread_cancel
40582
a848cd7e
SC
40583/* System header to define __stub macros and hopefully few prototypes,
40584 which can conflict with char pthread_cancel (); below.
40585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40586 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40587
a848cd7e
SC
40588#ifdef __STDC__
40589# include <limits.h>
40590#else
40591# include <assert.h>
40592#endif
ac1cb8d3
VS
40593
40594#undef pthread_cancel
40595
f321ab7f 40596/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
40597#ifdef __cplusplus
40598extern "C"
f321ab7f 40599{
a848cd7e 40600#endif
f321ab7f
VS
40601/* We use char because int might match the return type of a gcc2
40602 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40603char pthread_cancel ();
40604/* The GNU C library defines this for functions which it implements
40605 to always fail with ENOSYS. Some functions are actually named
40606 something starting with __ and the normal name is an alias. */
f321ab7f 40607#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
a848cd7e 40608choke me
f321ab7f
VS
40609#else
40610char (*f) () = pthread_cancel;
40611#endif
40612#ifdef __cplusplus
40613}
a848cd7e
SC
40614#endif
40615
40616int
40617main ()
40618{
f321ab7f 40619return f != pthread_cancel;
a848cd7e
SC
40620 ;
40621 return 0;
40622}
40623_ACEOF
40624rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
40625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40626 (eval $ac_link) 2>conftest.er1
a848cd7e 40627 ac_status=$?
ac1cb8d3
VS
40628 grep -v '^ *+' conftest.er1 >conftest.err
40629 rm -f conftest.er1
40630 cat conftest.err >&5
a848cd7e
SC
40631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632 (exit $ac_status); } &&
f321ab7f
VS
40633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40635 (eval $ac_try) 2>&5
ac1cb8d3
VS
40636 ac_status=$?
40637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40638 (exit $ac_status); }; } &&
40639 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
40640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40641 (eval $ac_try) 2>&5
a848cd7e
SC
40642 ac_status=$?
40643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); }; }; then
40645 ac_cv_func_pthread_cancel=yes
40646else
40647 echo "$as_me: failed program was:" >&5
40648sed 's/^/| /' conftest.$ac_ext >&5
40649
f321ab7f 40650ac_cv_func_pthread_cancel=no
a848cd7e 40651fi
f321ab7f 40652rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 40653 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40654fi
f321ab7f
VS
40655echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40656echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
a848cd7e
SC
40657if test $ac_cv_func_pthread_cancel = yes; then
40658 cat >>confdefs.h <<\_ACEOF
40659#define HAVE_PTHREAD_CANCEL 1
40660_ACEOF
40661
40662else
40663 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40664echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40665fi
40666
40667
f321ab7f
VS
40668 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40669echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
abc736fd
MW
40670if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40671 echo $ECHO_N "(cached) $ECHO_C" >&6
40672else
40673 cat >conftest.$ac_ext <<_ACEOF
40674/* confdefs.h. */
40675_ACEOF
40676cat confdefs.h >>conftest.$ac_ext
40677cat >>conftest.$ac_ext <<_ACEOF
40678/* end confdefs.h. */
40679/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40681#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40682
40683/* System header to define __stub macros and hopefully few prototypes,
40684 which can conflict with char pthread_attr_setstacksize (); below.
40685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40686 <limits.h> exists even on freestanding compilers. */
40687
40688#ifdef __STDC__
40689# include <limits.h>
40690#else
40691# include <assert.h>
40692#endif
40693
40694#undef pthread_attr_setstacksize
40695
f321ab7f 40696/* Override any gcc2 internal prototype to avoid an error. */
abc736fd
MW
40697#ifdef __cplusplus
40698extern "C"
f321ab7f 40699{
abc736fd 40700#endif
f321ab7f
VS
40701/* We use char because int might match the return type of a gcc2
40702 builtin and then its argument prototype would still apply. */
abc736fd
MW
40703char pthread_attr_setstacksize ();
40704/* The GNU C library defines this for functions which it implements
40705 to always fail with ENOSYS. Some functions are actually named
40706 something starting with __ and the normal name is an alias. */
f321ab7f 40707#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
abc736fd 40708choke me
f321ab7f
VS
40709#else
40710char (*f) () = pthread_attr_setstacksize;
40711#endif
40712#ifdef __cplusplus
40713}
abc736fd
MW
40714#endif
40715
40716int
40717main ()
40718{
f321ab7f 40719return f != pthread_attr_setstacksize;
abc736fd
MW
40720 ;
40721 return 0;
40722}
40723_ACEOF
40724rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
40725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40726 (eval $ac_link) 2>conftest.er1
abc736fd
MW
40727 ac_status=$?
40728 grep -v '^ *+' conftest.er1 >conftest.err
40729 rm -f conftest.er1
40730 cat conftest.err >&5
40731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40732 (exit $ac_status); } &&
f321ab7f
VS
40733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40735 (eval $ac_try) 2>&5
abc736fd
MW
40736 ac_status=$?
40737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738 (exit $ac_status); }; } &&
40739 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
40740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40741 (eval $ac_try) 2>&5
abc736fd
MW
40742 ac_status=$?
40743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744 (exit $ac_status); }; }; then
40745 ac_cv_func_pthread_attr_setstacksize=yes
40746else
40747 echo "$as_me: failed program was:" >&5
40748sed 's/^/| /' conftest.$ac_ext >&5
40749
f321ab7f 40750ac_cv_func_pthread_attr_setstacksize=no
abc736fd 40751fi
f321ab7f 40752rm -f conftest.err conftest.$ac_objext \
abc736fd
MW
40753 conftest$ac_exeext conftest.$ac_ext
40754fi
f321ab7f
VS
40755echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40756echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
abc736fd
MW
40757if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40758 cat >>confdefs.h <<\_ACEOF
40759#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40760_ACEOF
40761
40762fi
40763
a848cd7e
SC
40764
40765
f321ab7f
VS
40766 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40767echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
a848cd7e
SC
40768if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40769 echo $ECHO_N "(cached) $ECHO_C" >&6
40770else
40771
40772 cat >conftest.$ac_ext <<_ACEOF
40773/* confdefs.h. */
40774_ACEOF
40775cat confdefs.h >>conftest.$ac_ext
40776cat >>conftest.$ac_ext <<_ACEOF
40777/* end confdefs.h. */
40778#include <pthread.h>
40779int
40780main ()
40781{
40782
40783 pthread_mutexattr_t attr;
40784 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40785
40786 ;
40787 return 0;
40788}
40789_ACEOF
40790rm -f conftest.$ac_objext
f321ab7f
VS
40791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40792 (eval $ac_compile) 2>conftest.er1
a848cd7e 40793 ac_status=$?
ac1cb8d3
VS
40794 grep -v '^ *+' conftest.er1 >conftest.err
40795 rm -f conftest.er1
40796 cat conftest.err >&5
a848cd7e
SC
40797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40798 (exit $ac_status); } &&
f321ab7f
VS
40799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40801 (eval $ac_try) 2>&5
ac1cb8d3
VS
40802 ac_status=$?
40803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40804 (exit $ac_status); }; } &&
40805 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
40806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40807 (eval $ac_try) 2>&5
a848cd7e
SC
40808 ac_status=$?
40809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810 (exit $ac_status); }; }; then
123dca7d 40811 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40812else
40813 echo "$as_me: failed program was:" >&5
40814sed 's/^/| /' conftest.$ac_ext >&5
40815
f321ab7f 40816wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40817
40818fi
f321ab7f 40819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40820
40821fi
f321ab7f
VS
40822echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40823echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
a848cd7e
SC
40824
40825 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40826 cat >>confdefs.h <<\_ACEOF
40827#define HAVE_PTHREAD_MUTEXATTR_T 1
40828_ACEOF
40829
123dca7d 40830
f321ab7f
VS
40831 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40832echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
123dca7d
VZ
40833if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40834 echo $ECHO_N "(cached) $ECHO_C" >&6
40835else
40836
40837 cat >conftest.$ac_ext <<_ACEOF
40838/* confdefs.h. */
40839_ACEOF
40840cat confdefs.h >>conftest.$ac_ext
40841cat >>conftest.$ac_ext <<_ACEOF
40842/* end confdefs.h. */
40843#include <pthread.h>
40844int
40845main ()
40846{
40847
40848 pthread_mutexattr_t attr;
40849 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40850
40851 ;
40852 return 0;
40853}
40854_ACEOF
40855rm -f conftest.$ac_objext
f321ab7f
VS
40856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40857 (eval $ac_compile) 2>conftest.er1
123dca7d
VZ
40858 ac_status=$?
40859 grep -v '^ *+' conftest.er1 >conftest.err
40860 rm -f conftest.er1
40861 cat conftest.err >&5
40862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40863 (exit $ac_status); } &&
f321ab7f
VS
40864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40866 (eval $ac_try) 2>&5
123dca7d
VZ
40867 ac_status=$?
40868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40869 (exit $ac_status); }; } &&
40870 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
40871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40872 (eval $ac_try) 2>&5
123dca7d
VZ
40873 ac_status=$?
40874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40875 (exit $ac_status); }; }; then
40876 wx_cv_func_pthread_mutexattr_settype_decl=yes
40877else
40878 echo "$as_me: failed program was:" >&5
40879sed 's/^/| /' conftest.$ac_ext >&5
40880
f321ab7f 40881wx_cv_func_pthread_mutexattr_settype_decl=no
123dca7d
VZ
40882
40883fi
f321ab7f 40884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
123dca7d
VZ
40885
40886fi
f321ab7f
VS
40887echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40888echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
123dca7d
VZ
40889 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40890 cat >>confdefs.h <<\_ACEOF
40891#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40892_ACEOF
40893
40894 fi
a848cd7e 40895 else
f321ab7f
VS
40896 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40897echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
a848cd7e
SC
40898if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40899 echo $ECHO_N "(cached) $ECHO_C" >&6
40900else
40901
40902 cat >conftest.$ac_ext <<_ACEOF
40903/* confdefs.h. */
40904_ACEOF
40905cat confdefs.h >>conftest.$ac_ext
40906cat >>conftest.$ac_ext <<_ACEOF
40907/* end confdefs.h. */
40908#include <pthread.h>
40909int
40910main ()
40911{
40912
40913 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40914
40915 ;
40916 return 0;
40917}
40918_ACEOF
40919rm -f conftest.$ac_objext
f321ab7f
VS
40920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40921 (eval $ac_compile) 2>conftest.er1
a848cd7e 40922 ac_status=$?
ac1cb8d3
VS
40923 grep -v '^ *+' conftest.er1 >conftest.err
40924 rm -f conftest.er1
40925 cat conftest.err >&5
a848cd7e
SC
40926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40927 (exit $ac_status); } &&
f321ab7f
VS
40928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40930 (eval $ac_try) 2>&5
ac1cb8d3
VS
40931 ac_status=$?
40932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40933 (exit $ac_status); }; } &&
40934 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
40935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40936 (eval $ac_try) 2>&5
a848cd7e
SC
40937 ac_status=$?
40938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40939 (exit $ac_status); }; }; then
40940
40941 wx_cv_type_pthread_rec_mutex_init=yes
40942
40943else
40944 echo "$as_me: failed program was:" >&5
40945sed 's/^/| /' conftest.$ac_ext >&5
40946
40947
40948 wx_cv_type_pthread_rec_mutex_init=no
40949
40950
40951fi
f321ab7f 40952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40953
40954fi
f321ab7f
VS
40955echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40956echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
a848cd7e
SC
40957 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40958 cat >>confdefs.h <<\_ACEOF
40959#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40960_ACEOF
40961
40962 else
40963 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40964echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40965 fi
40966 fi
40967 fi
40968
40969else
40970 if test "$wxUSE_THREADS" = "yes" ; then
40971 case "${host}" in
40972 *-*-mingw32* )
f321ab7f
VS
40973 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40974echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
a848cd7e
SC
40975if test "${wx_cv_cflags_mthread+set}" = set; then
40976 echo $ECHO_N "(cached) $ECHO_C" >&6
40977else
40978
9b8888f9
VZ
40979 CFLAGS_OLD="$CFLAGS"
40980 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
40981 cat >conftest.$ac_ext <<_ACEOF
40982/* confdefs.h. */
40983_ACEOF
40984cat confdefs.h >>conftest.$ac_ext
40985cat >>conftest.$ac_ext <<_ACEOF
40986/* end confdefs.h. */
40987
40988int
40989main ()
40990{
40991
40992 ;
40993 return 0;
40994}
40995_ACEOF
40996rm -f conftest.$ac_objext
f321ab7f
VS
40997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40998 (eval $ac_compile) 2>conftest.er1
a848cd7e 40999 ac_status=$?
ac1cb8d3
VS
41000 grep -v '^ *+' conftest.er1 >conftest.err
41001 rm -f conftest.er1
41002 cat conftest.err >&5
a848cd7e
SC
41003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004 (exit $ac_status); } &&
f321ab7f
VS
41005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41007 (eval $ac_try) 2>&5
ac1cb8d3
VS
41008 ac_status=$?
41009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41010 (exit $ac_status); }; } &&
41011 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
41012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41013 (eval $ac_try) 2>&5
a848cd7e
SC
41014 ac_status=$?
41015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41016 (exit $ac_status); }; }; then
41017 wx_cv_cflags_mthread=yes
41018else
41019 echo "$as_me: failed program was:" >&5
41020sed 's/^/| /' conftest.$ac_ext >&5
41021
f321ab7f 41022wx_cv_cflags_mthread=no
a848cd7e
SC
41023
41024fi
f321ab7f 41025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41026
41027
41028fi
f321ab7f
VS
41029echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
41030echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
a848cd7e
SC
41031
41032 if test "$wx_cv_cflags_mthread" = "yes"; then
9b8888f9 41033 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
41034 LDFLAGS="$LDFLAGS -mthreads"
41035 else
9b8888f9 41036 CFLAGS="$CFLAGS_OLD"
a848cd7e
SC
41037 fi
41038 ;;
41039 *-pc-os2*emx )
5ff751d6 41040 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
41041 LDFLAGS="$LDFLAGS -Zmt"
41042 ;;
41043 esac
41044 fi
41045fi
41046
f321ab7f
VS
41047echo "$as_me:$LINENO: checking for localtime_r" >&5
41048echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
004ee6da 41049if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
41050 echo $ECHO_N "(cached) $ECHO_C" >&6
41051else
41052 cat >conftest.$ac_ext <<_ACEOF
41053/* confdefs.h. */
41054_ACEOF
41055cat confdefs.h >>conftest.$ac_ext
41056cat >>conftest.$ac_ext <<_ACEOF
41057/* end confdefs.h. */
004ee6da 41058/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 41059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 41060#define localtime_r innocuous_localtime_r
ac1cb8d3 41061
a848cd7e 41062/* System header to define __stub macros and hopefully few prototypes,
004ee6da 41063 which can conflict with char localtime_r (); below.
a848cd7e
SC
41064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41065 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41066
a848cd7e
SC
41067#ifdef __STDC__
41068# include <limits.h>
41069#else
41070# include <assert.h>
41071#endif
ac1cb8d3 41072
004ee6da 41073#undef localtime_r
ac1cb8d3 41074
f321ab7f 41075/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
41076#ifdef __cplusplus
41077extern "C"
f321ab7f 41078{
a848cd7e 41079#endif
f321ab7f
VS
41080/* We use char because int might match the return type of a gcc2
41081 builtin and then its argument prototype would still apply. */
004ee6da 41082char localtime_r ();
a848cd7e
SC
41083/* The GNU C library defines this for functions which it implements
41084 to always fail with ENOSYS. Some functions are actually named
41085 something starting with __ and the normal name is an alias. */
f321ab7f 41086#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e 41087choke me
f321ab7f
VS
41088#else
41089char (*f) () = localtime_r;
41090#endif
41091#ifdef __cplusplus
41092}
a848cd7e
SC
41093#endif
41094
41095int
41096main ()
41097{
f321ab7f 41098return f != localtime_r;
004ee6da
RL
41099 ;
41100 return 0;
41101}
41102_ACEOF
41103rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
41104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41105 (eval $ac_link) 2>conftest.er1
004ee6da
RL
41106 ac_status=$?
41107 grep -v '^ *+' conftest.er1 >conftest.err
41108 rm -f conftest.er1
41109 cat conftest.err >&5
41110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41111 (exit $ac_status); } &&
f321ab7f
VS
41112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41114 (eval $ac_try) 2>&5
004ee6da
RL
41115 ac_status=$?
41116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41117 (exit $ac_status); }; } &&
41118 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
41119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41120 (eval $ac_try) 2>&5
004ee6da
RL
41121 ac_status=$?
41122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41123 (exit $ac_status); }; }; then
41124 ac_cv_func_localtime_r=yes
41125else
41126 echo "$as_me: failed program was:" >&5
41127sed 's/^/| /' conftest.$ac_ext >&5
41128
f321ab7f 41129ac_cv_func_localtime_r=no
004ee6da 41130fi
f321ab7f 41131rm -f conftest.err conftest.$ac_objext \
004ee6da
RL
41132 conftest$ac_exeext conftest.$ac_ext
41133fi
f321ab7f
VS
41134echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
41135echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
004ee6da
RL
41136if test $ac_cv_func_localtime_r = yes; then
41137 cat >>confdefs.h <<\_ACEOF
41138#define HAVE_LOCALTIME_R 1
41139_ACEOF
41140
41141fi
41142
f321ab7f
VS
41143echo "$as_me:$LINENO: checking for gmtime_r" >&5
41144echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
004ee6da
RL
41145if test "${ac_cv_func_gmtime_r+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. */
41154/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
41155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41156#define gmtime_r innocuous_gmtime_r
41157
41158/* System header to define __stub macros and hopefully few prototypes,
41159 which can conflict with char gmtime_r (); below.
41160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41161 <limits.h> exists even on freestanding compilers. */
41162
41163#ifdef __STDC__
41164# include <limits.h>
41165#else
41166# include <assert.h>
41167#endif
41168
41169#undef gmtime_r
41170
f321ab7f 41171/* Override any gcc2 internal prototype to avoid an error. */
004ee6da
RL
41172#ifdef __cplusplus
41173extern "C"
f321ab7f 41174{
004ee6da 41175#endif
f321ab7f
VS
41176/* We use char because int might match the return type of a gcc2
41177 builtin and then its argument prototype would still apply. */
004ee6da
RL
41178char gmtime_r ();
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. */
f321ab7f 41182#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
004ee6da 41183choke me
f321ab7f
VS
41184#else
41185char (*f) () = gmtime_r;
41186#endif
41187#ifdef __cplusplus
41188}
004ee6da
RL
41189#endif
41190
41191int
41192main ()
41193{
f321ab7f 41194return f != gmtime_r;
004ee6da
RL
41195 ;
41196 return 0;
41197}
41198_ACEOF
41199rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
41200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41201 (eval $ac_link) 2>conftest.er1
004ee6da
RL
41202 ac_status=$?
41203 grep -v '^ *+' conftest.er1 >conftest.err
41204 rm -f conftest.er1
41205 cat conftest.err >&5
41206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207 (exit $ac_status); } &&
f321ab7f
VS
41208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41210 (eval $ac_try) 2>&5
004ee6da
RL
41211 ac_status=$?
41212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213 (exit $ac_status); }; } &&
41214 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
41215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41216 (eval $ac_try) 2>&5
004ee6da
RL
41217 ac_status=$?
41218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41219 (exit $ac_status); }; }; then
41220 ac_cv_func_gmtime_r=yes
41221else
41222 echo "$as_me: failed program was:" >&5
41223sed 's/^/| /' conftest.$ac_ext >&5
41224
f321ab7f 41225ac_cv_func_gmtime_r=no
004ee6da 41226fi
f321ab7f 41227rm -f conftest.err conftest.$ac_objext \
004ee6da
RL
41228 conftest$ac_exeext conftest.$ac_ext
41229fi
f321ab7f
VS
41230echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41231echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
004ee6da
RL
41232if test $ac_cv_func_gmtime_r = yes; then
41233 cat >>confdefs.h <<\_ACEOF
41234#define HAVE_GMTIME_R 1
41235_ACEOF
41236
41237fi
41238
f321ab7f
VS
41239echo "$as_me:$LINENO: checking for readdir_r" >&5
41240echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
004ee6da
RL
41241if test "${ac_cv_func_readdir_r+set}" = set; then
41242 echo $ECHO_N "(cached) $ECHO_C" >&6
41243else
41244 cat >conftest.$ac_ext <<_ACEOF
41245/* confdefs.h. */
41246_ACEOF
41247cat confdefs.h >>conftest.$ac_ext
41248cat >>conftest.$ac_ext <<_ACEOF
41249/* end confdefs.h. */
41250/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
41251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41252#define readdir_r innocuous_readdir_r
41253
41254/* System header to define __stub macros and hopefully few prototypes,
41255 which can conflict with char readdir_r (); below.
41256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41257 <limits.h> exists even on freestanding compilers. */
41258
41259#ifdef __STDC__
41260# include <limits.h>
41261#else
41262# include <assert.h>
41263#endif
41264
41265#undef readdir_r
41266
f321ab7f 41267/* Override any gcc2 internal prototype to avoid an error. */
004ee6da
RL
41268#ifdef __cplusplus
41269extern "C"
f321ab7f 41270{
004ee6da 41271#endif
f321ab7f
VS
41272/* We use char because int might match the return type of a gcc2
41273 builtin and then its argument prototype would still apply. */
004ee6da
RL
41274char readdir_r ();
41275/* The GNU C library defines this for functions which it implements
41276 to always fail with ENOSYS. Some functions are actually named
41277 something starting with __ and the normal name is an alias. */
f321ab7f 41278#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
004ee6da 41279choke me
f321ab7f
VS
41280#else
41281char (*f) () = readdir_r;
41282#endif
41283#ifdef __cplusplus
41284}
004ee6da
RL
41285#endif
41286
41287int
41288main ()
41289{
f321ab7f 41290return f != readdir_r;
004ee6da
RL
41291 ;
41292 return 0;
41293}
41294_ACEOF
41295rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
41296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41297 (eval $ac_link) 2>conftest.er1
004ee6da
RL
41298 ac_status=$?
41299 grep -v '^ *+' conftest.er1 >conftest.err
41300 rm -f conftest.er1
41301 cat conftest.err >&5
41302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41303 (exit $ac_status); } &&
f321ab7f
VS
41304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41306 (eval $ac_try) 2>&5
004ee6da
RL
41307 ac_status=$?
41308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41309 (exit $ac_status); }; } &&
41310 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
41311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41312 (eval $ac_try) 2>&5
004ee6da
RL
41313 ac_status=$?
41314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41315 (exit $ac_status); }; }; then
41316 ac_cv_func_readdir_r=yes
41317else
41318 echo "$as_me: failed program was:" >&5
41319sed 's/^/| /' conftest.$ac_ext >&5
41320
f321ab7f 41321ac_cv_func_readdir_r=no
004ee6da 41322fi
f321ab7f 41323rm -f conftest.err conftest.$ac_objext \
004ee6da
RL
41324 conftest$ac_exeext conftest.$ac_ext
41325fi
f321ab7f
VS
41326echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
41327echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
004ee6da
RL
41328if test $ac_cv_func_readdir_r = yes; then
41329 cat >>confdefs.h <<\_ACEOF
41330#define HAVE_READDIR_R 1
41331_ACEOF
41332
41333fi
41334
004ee6da 41335
004ee6da
RL
41336
41337
41338 ac_ext=c
41339ac_cpp='$CPP $CPPFLAGS'
41340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41342ac_compiler_gnu=$ac_cv_c_compiler_gnu
41343
f321ab7f
VS
41344 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41345echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
004ee6da
RL
41346
41347 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
41348 echo $ECHO_N "(cached) $ECHO_C" >&6
41349else
41350
41351
2f6c5bb5 41352################################################################
004ee6da
RL
41353
41354ac_cv_func_which_gethostbyname_r=unknown
41355
41356#
41357# ONE ARGUMENT (sanity check)
41358#
41359
41360# This should fail, as there is no variant of gethostbyname_r() that takes
41361# a single argument. If it actually compiles, then we can assume that
41362# netdb.h is not declaring the function, and the compiler is thereby
41363# assuming an implicit prototype. In which case, we're out of luck.
41364#
41365cat >conftest.$ac_ext <<_ACEOF
41366/* confdefs.h. */
41367_ACEOF
41368cat confdefs.h >>conftest.$ac_ext
41369cat >>conftest.$ac_ext <<_ACEOF
41370/* end confdefs.h. */
41371#include <netdb.h>
41372int
41373main ()
41374{
41375
41376 char *name = "www.gnu.org";
41377 (void)gethostbyname_r(name) /* ; */
41378
41379 ;
41380 return 0;
41381}
41382_ACEOF
41383rm -f conftest.$ac_objext
f321ab7f
VS
41384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41385 (eval $ac_compile) 2>conftest.er1
004ee6da
RL
41386 ac_status=$?
41387 grep -v '^ *+' conftest.er1 >conftest.err
41388 rm -f conftest.er1
41389 cat conftest.err >&5
41390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41391 (exit $ac_status); } &&
f321ab7f
VS
41392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41394 (eval $ac_try) 2>&5
004ee6da
RL
41395 ac_status=$?
41396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41397 (exit $ac_status); }; } &&
41398 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
41399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41400 (eval $ac_try) 2>&5
004ee6da
RL
41401 ac_status=$?
41402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41403 (exit $ac_status); }; }; then
41404 ac_cv_func_which_gethostbyname_r=no
41405else
41406 echo "$as_me: failed program was:" >&5
41407sed 's/^/| /' conftest.$ac_ext >&5
41408
41409fi
f321ab7f 41410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
41411
41412#
41413# SIX ARGUMENTS
41414# (e.g. Linux)
41415#
41416
41417if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41418
41419cat >conftest.$ac_ext <<_ACEOF
41420/* confdefs.h. */
41421_ACEOF
41422cat confdefs.h >>conftest.$ac_ext
41423cat >>conftest.$ac_ext <<_ACEOF
41424/* end confdefs.h. */
41425#include <netdb.h>
41426int
41427main ()
41428{
41429
41430 char *name = "www.gnu.org";
41431 struct hostent ret, *retp;
41432 char buf[1024];
41433 int buflen = 1024;
41434 int my_h_errno;
41435 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41436
41437 ;
41438 return 0;
41439}
41440_ACEOF
41441rm -f conftest.$ac_objext
f321ab7f
VS
41442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41443 (eval $ac_compile) 2>conftest.er1
004ee6da
RL
41444 ac_status=$?
41445 grep -v '^ *+' conftest.er1 >conftest.err
41446 rm -f conftest.er1
41447 cat conftest.err >&5
41448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41449 (exit $ac_status); } &&
f321ab7f
VS
41450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41452 (eval $ac_try) 2>&5
004ee6da
RL
41453 ac_status=$?
41454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41455 (exit $ac_status); }; } &&
41456 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
41457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41458 (eval $ac_try) 2>&5
004ee6da
RL
41459 ac_status=$?
41460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461 (exit $ac_status); }; }; then
41462 ac_cv_func_which_gethostbyname_r=six
41463else
41464 echo "$as_me: failed program was:" >&5
41465sed 's/^/| /' conftest.$ac_ext >&5
41466
41467fi
f321ab7f 41468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
41469
41470fi
41471
41472#
41473# FIVE ARGUMENTS
41474# (e.g. Solaris)
41475#
41476
41477if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41478
41479cat >conftest.$ac_ext <<_ACEOF
41480/* confdefs.h. */
41481_ACEOF
41482cat confdefs.h >>conftest.$ac_ext
41483cat >>conftest.$ac_ext <<_ACEOF
41484/* end confdefs.h. */
41485#include <netdb.h>
41486int
41487main ()
41488{
41489
41490 char *name = "www.gnu.org";
41491 struct hostent ret;
41492 char buf[1024];
41493 int buflen = 1024;
41494 int my_h_errno;
41495 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41496
41497 ;
41498 return 0;
41499}
41500_ACEOF
41501rm -f conftest.$ac_objext
f321ab7f
VS
41502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41503 (eval $ac_compile) 2>conftest.er1
004ee6da
RL
41504 ac_status=$?
41505 grep -v '^ *+' conftest.er1 >conftest.err
41506 rm -f conftest.er1
41507 cat conftest.err >&5
41508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509 (exit $ac_status); } &&
f321ab7f
VS
41510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41512 (eval $ac_try) 2>&5
004ee6da
RL
41513 ac_status=$?
41514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41515 (exit $ac_status); }; } &&
41516 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
41517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41518 (eval $ac_try) 2>&5
004ee6da
RL
41519 ac_status=$?
41520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41521 (exit $ac_status); }; }; then
41522 ac_cv_func_which_gethostbyname_r=five
41523else
41524 echo "$as_me: failed program was:" >&5
41525sed 's/^/| /' conftest.$ac_ext >&5
41526
41527fi
f321ab7f 41528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
41529
41530fi
41531
41532#
41533# THREE ARGUMENTS
41534# (e.g. AIX, HP-UX, Tru64)
41535#
41536
41537if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41538
41539cat >conftest.$ac_ext <<_ACEOF
41540/* confdefs.h. */
41541_ACEOF
41542cat confdefs.h >>conftest.$ac_ext
41543cat >>conftest.$ac_ext <<_ACEOF
41544/* end confdefs.h. */
41545#include <netdb.h>
41546int
41547main ()
41548{
41549
41550 char *name = "www.gnu.org";
41551 struct hostent ret;
41552 struct hostent_data data;
41553 (void)gethostbyname_r(name, &ret, &data) /* ; */
41554
41555 ;
41556 return 0;
41557}
41558_ACEOF
41559rm -f conftest.$ac_objext
f321ab7f
VS
41560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41561 (eval $ac_compile) 2>conftest.er1
004ee6da
RL
41562 ac_status=$?
41563 grep -v '^ *+' conftest.er1 >conftest.err
41564 rm -f conftest.er1
41565 cat conftest.err >&5
41566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567 (exit $ac_status); } &&
f321ab7f
VS
41568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41570 (eval $ac_try) 2>&5
004ee6da
RL
41571 ac_status=$?
41572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41573 (exit $ac_status); }; } &&
41574 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
41575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41576 (eval $ac_try) 2>&5
004ee6da
RL
41577 ac_status=$?
41578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579 (exit $ac_status); }; }; then
41580 ac_cv_func_which_gethostbyname_r=three
41581else
41582 echo "$as_me: failed program was:" >&5
41583sed 's/^/| /' conftest.$ac_ext >&5
41584
41585fi
f321ab7f 41586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
41587
41588fi
41589
2f6c5bb5 41590################################################################
004ee6da
RL
41591
41592
41593fi
41594
41595case "$ac_cv_func_which_gethostbyname_r" in
41596 three)
f321ab7f
VS
41597 echo "$as_me:$LINENO: result: three" >&5
41598echo "${ECHO_T}three" >&6
004ee6da
RL
41599 cat >>confdefs.h <<\_ACEOF
41600#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41601_ACEOF
41602
41603 ;;
41604
41605 five)
f321ab7f
VS
41606 echo "$as_me:$LINENO: result: five" >&5
41607echo "${ECHO_T}five" >&6
004ee6da
RL
41608 cat >>confdefs.h <<\_ACEOF
41609#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41610_ACEOF
41611
41612 ;;
41613
41614 six)
f321ab7f
VS
41615 echo "$as_me:$LINENO: result: six" >&5
41616echo "${ECHO_T}six" >&6
004ee6da
RL
41617 cat >>confdefs.h <<\_ACEOF
41618#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41619_ACEOF
41620
41621 ;;
41622
41623 no)
f321ab7f
VS
41624 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41625echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
004ee6da
RL
41626 ;;
41627
41628 unknown)
f321ab7f
VS
41629 echo "$as_me:$LINENO: result: can't tell" >&5
41630echo "${ECHO_T}can't tell" >&6
004ee6da
RL
41631 ;;
41632
41633 *)
41634 { { echo "$as_me:$LINENO: error: internal error" >&5
41635echo "$as_me: error: internal error" >&2;}
41636 { (exit 1); exit 1; }; }
41637 ;;
41638esac
41639
fd5199d6
VZ
41640ac_ext=c
41641ac_cpp='$CPP $CPPFLAGS'
41642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41644ac_compiler_gnu=$ac_cv_c_compiler_gnu
004ee6da
RL
41645
41646
41647
41648 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
ec3edcc9 41649 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
f321ab7f
VS
41650 echo "$as_me:$LINENO: checking for gethostbyname" >&5
41651echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
004ee6da
RL
41652if test "${ac_cv_func_gethostbyname+set}" = set; then
41653 echo $ECHO_N "(cached) $ECHO_C" >&6
41654else
41655 cat >conftest.$ac_ext <<_ACEOF
41656/* confdefs.h. */
41657_ACEOF
41658cat confdefs.h >>conftest.$ac_ext
41659cat >>conftest.$ac_ext <<_ACEOF
41660/* end confdefs.h. */
41661/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41663#define gethostbyname innocuous_gethostbyname
41664
41665/* System header to define __stub macros and hopefully few prototypes,
41666 which can conflict with char gethostbyname (); below.
41667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41668 <limits.h> exists even on freestanding compilers. */
41669
41670#ifdef __STDC__
41671# include <limits.h>
41672#else
41673# include <assert.h>
41674#endif
41675
41676#undef gethostbyname
41677
f321ab7f 41678/* Override any gcc2 internal prototype to avoid an error. */
004ee6da
RL
41679#ifdef __cplusplus
41680extern "C"
f321ab7f 41681{
004ee6da 41682#endif
f321ab7f
VS
41683/* We use char because int might match the return type of a gcc2
41684 builtin and then its argument prototype would still apply. */
004ee6da
RL
41685char gethostbyname ();
41686/* The GNU C library defines this for functions which it implements
41687 to always fail with ENOSYS. Some functions are actually named
41688 something starting with __ and the normal name is an alias. */
f321ab7f 41689#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
004ee6da 41690choke me
f321ab7f
VS
41691#else
41692char (*f) () = gethostbyname;
41693#endif
41694#ifdef __cplusplus
41695}
004ee6da
RL
41696#endif
41697
41698int
41699main ()
41700{
f321ab7f 41701return f != gethostbyname;
004ee6da
RL
41702 ;
41703 return 0;
41704}
41705_ACEOF
41706rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
41707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41708 (eval $ac_link) 2>conftest.er1
004ee6da
RL
41709 ac_status=$?
41710 grep -v '^ *+' conftest.er1 >conftest.err
41711 rm -f conftest.er1
41712 cat conftest.err >&5
41713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41714 (exit $ac_status); } &&
f321ab7f
VS
41715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41717 (eval $ac_try) 2>&5
004ee6da
RL
41718 ac_status=$?
41719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720 (exit $ac_status); }; } &&
41721 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
41722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41723 (eval $ac_try) 2>&5
004ee6da
RL
41724 ac_status=$?
41725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41726 (exit $ac_status); }; }; then
41727 ac_cv_func_gethostbyname=yes
41728else
41729 echo "$as_me: failed program was:" >&5
41730sed 's/^/| /' conftest.$ac_ext >&5
41731
f321ab7f 41732ac_cv_func_gethostbyname=no
004ee6da 41733fi
f321ab7f 41734rm -f conftest.err conftest.$ac_objext \
004ee6da
RL
41735 conftest$ac_exeext conftest.$ac_ext
41736fi
f321ab7f
VS
41737echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41738echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
004ee6da
RL
41739if test $ac_cv_func_gethostbyname = yes; then
41740 cat >>confdefs.h <<\_ACEOF
41741#define HAVE_GETHOSTBYNAME 1
41742_ACEOF
41743
41744fi
41745
41746 fi
3ecd9f92 41747
f321ab7f
VS
41748echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41749echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
81c330c6 41750if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
41751 echo $ECHO_N "(cached) $ECHO_C" >&6
41752else
3ecd9f92 41753
f321ab7f 41754 ac_ext=cc
fd5199d6
VZ
41755ac_cpp='$CXXCPP $CPPFLAGS'
41756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41759
41760
3ecd9f92 41761 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41762/* confdefs.h. */
41763_ACEOF
41764cat confdefs.h >>conftest.$ac_ext
41765cat >>conftest.$ac_ext <<_ACEOF
41766/* end confdefs.h. */
81c330c6 41767#include <netdb.h>
004ee6da
RL
41768int
41769main ()
41770{
41771
81c330c6
VZ
41772 char *name;
41773 char *proto;
41774 struct servent *se, *res;
41775 char buffer[2048];
41776 int buflen = 2048;
41777 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41778
41779 ;
41780 return 0;
41781}
41782_ACEOF
41783rm -f conftest.$ac_objext
f321ab7f
VS
41784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41785 (eval $ac_compile) 2>conftest.er1
004ee6da
RL
41786 ac_status=$?
41787 grep -v '^ *+' conftest.er1 >conftest.err
41788 rm -f conftest.er1
41789 cat conftest.err >&5
41790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41791 (exit $ac_status); } &&
f321ab7f
VS
41792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41794 (eval $ac_try) 2>&5
004ee6da
RL
41795 ac_status=$?
41796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41797 (exit $ac_status); }; } &&
41798 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
41799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41800 (eval $ac_try) 2>&5
004ee6da
RL
41801 ac_status=$?
41802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41803 (exit $ac_status); }; }; then
81c330c6 41804 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
41805else
41806 echo "$as_me: failed program was:" >&5
41807sed 's/^/| /' conftest.$ac_ext >&5
41808
3ecd9f92 41809
81c330c6 41810 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41811/* confdefs.h. */
41812_ACEOF
41813cat confdefs.h >>conftest.$ac_ext
41814cat >>conftest.$ac_ext <<_ACEOF
41815/* end confdefs.h. */
81c330c6 41816#include <netdb.h>
004ee6da
RL
41817int
41818main ()
41819{
41820
81c330c6
VZ
41821 char *name;
41822 char *proto;
41823 struct servent *se;
41824 char buffer[2048];
41825 int buflen = 2048;
41826 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41827
41828 ;
41829 return 0;
41830}
41831_ACEOF
41832rm -f conftest.$ac_objext
f321ab7f
VS
41833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41834 (eval $ac_compile) 2>conftest.er1
004ee6da
RL
41835 ac_status=$?
41836 grep -v '^ *+' conftest.er1 >conftest.err
41837 rm -f conftest.er1
41838 cat conftest.err >&5
41839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840 (exit $ac_status); } &&
f321ab7f
VS
41841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41843 (eval $ac_try) 2>&5
004ee6da
RL
41844 ac_status=$?
41845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 (exit $ac_status); }; } &&
41847 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
41848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41849 (eval $ac_try) 2>&5
004ee6da
RL
41850 ac_status=$?
41851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41852 (exit $ac_status); }; }; then
81c330c6 41853 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41854else
41855 echo "$as_me: failed program was:" >&5
41856sed 's/^/| /' conftest.$ac_ext >&5
41857
3ecd9f92 41858
81c330c6 41859 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41860/* confdefs.h. */
41861_ACEOF
41862cat confdefs.h >>conftest.$ac_ext
41863cat >>conftest.$ac_ext <<_ACEOF
41864/* end confdefs.h. */
81c330c6 41865#include <netdb.h>
004ee6da
RL
41866int
41867main ()
41868{
41869
81c330c6
VZ
41870 char *name;
41871 char *proto;
41872 struct servent *se;
41873 struct servent_data data;
41874 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41875
41876 ;
41877 return 0;
41878}
41879_ACEOF
41880rm -f conftest.$ac_objext
f321ab7f
VS
41881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41882 (eval $ac_compile) 2>conftest.er1
004ee6da
RL
41883 ac_status=$?
41884 grep -v '^ *+' conftest.er1 >conftest.err
41885 rm -f conftest.er1
41886 cat conftest.err >&5
41887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41888 (exit $ac_status); } &&
f321ab7f
VS
41889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41891 (eval $ac_try) 2>&5
004ee6da
RL
41892 ac_status=$?
41893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41894 (exit $ac_status); }; } &&
41895 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
41896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41897 (eval $ac_try) 2>&5
004ee6da
RL
41898 ac_status=$?
41899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41900 (exit $ac_status); }; }; then
81c330c6 41901 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41902else
41903 echo "$as_me: failed program was:" >&5
41904sed 's/^/| /' conftest.$ac_ext >&5
41905
f321ab7f 41906ac_cv_func_which_getservbyname_r=no
81c330c6 41907
004ee6da 41908fi
f321ab7f 41909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da 41910
3ecd9f92 41911
004ee6da 41912fi
f321ab7f 41913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da 41914
3ecd9f92 41915
004ee6da 41916fi
f321ab7f 41917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
41918 ac_ext=c
41919ac_cpp='$CPP $CPPFLAGS'
41920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41922ac_compiler_gnu=$ac_cv_c_compiler_gnu
41923
3ecd9f92 41924
004ee6da 41925
3ecd9f92 41926fi
f321ab7f
VS
41927echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41928echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41929
41930if test $ac_cv_func_which_getservbyname_r = six; then
41931 cat >>confdefs.h <<\_ACEOF
41932#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41933_ACEOF
41934
41935elif test $ac_cv_func_which_getservbyname_r = five; then
41936 cat >>confdefs.h <<\_ACEOF
41937#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41938_ACEOF
41939
41940elif test $ac_cv_func_which_getservbyname_r = four; then
41941 cat >>confdefs.h <<\_ACEOF
41942#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41943_ACEOF
41944
004ee6da
RL
41945fi
41946
41947
41948 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
ec3edcc9 41949 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
004ee6da
RL
41950
41951for ac_func in getservbyname
41952do
41953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
41954echo "$as_me:$LINENO: checking for $ac_func" >&5
41955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41956if eval "test \"\${$as_ac_var+set}\" = set"; then
004ee6da
RL
41957 echo $ECHO_N "(cached) $ECHO_C" >&6
41958else
41959 cat >conftest.$ac_ext <<_ACEOF
41960/* confdefs.h. */
41961_ACEOF
41962cat confdefs.h >>conftest.$ac_ext
41963cat >>conftest.$ac_ext <<_ACEOF
41964/* end confdefs.h. */
41965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41967#define $ac_func innocuous_$ac_func
41968
41969/* System header to define __stub macros and hopefully few prototypes,
41970 which can conflict with char $ac_func (); below.
41971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41972 <limits.h> exists even on freestanding compilers. */
41973
41974#ifdef __STDC__
41975# include <limits.h>
41976#else
41977# include <assert.h>
41978#endif
41979
41980#undef $ac_func
41981
f321ab7f 41982/* Override any gcc2 internal prototype to avoid an error. */
004ee6da
RL
41983#ifdef __cplusplus
41984extern "C"
f321ab7f 41985{
004ee6da 41986#endif
f321ab7f
VS
41987/* We use char because int might match the return type of a gcc2
41988 builtin and then its argument prototype would still apply. */
004ee6da
RL
41989char $ac_func ();
41990/* The GNU C library defines this for functions which it implements
41991 to always fail with ENOSYS. Some functions are actually named
41992 something starting with __ and the normal name is an alias. */
f321ab7f 41993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
004ee6da 41994choke me
f321ab7f
VS
41995#else
41996char (*f) () = $ac_func;
41997#endif
41998#ifdef __cplusplus
41999}
004ee6da
RL
42000#endif
42001
42002int
42003main ()
42004{
f321ab7f 42005return f != $ac_func;
004ee6da
RL
42006 ;
42007 return 0;
42008}
42009_ACEOF
42010rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
42011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42012 (eval $ac_link) 2>conftest.er1
004ee6da
RL
42013 ac_status=$?
42014 grep -v '^ *+' conftest.er1 >conftest.err
42015 rm -f conftest.er1
42016 cat conftest.err >&5
42017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42018 (exit $ac_status); } &&
f321ab7f
VS
42019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42021 (eval $ac_try) 2>&5
004ee6da
RL
42022 ac_status=$?
42023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42024 (exit $ac_status); }; } &&
42025 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
42026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42027 (eval $ac_try) 2>&5
004ee6da
RL
42028 ac_status=$?
42029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42030 (exit $ac_status); }; }; then
42031 eval "$as_ac_var=yes"
42032else
42033 echo "$as_me: failed program was:" >&5
42034sed 's/^/| /' conftest.$ac_ext >&5
42035
f321ab7f 42036eval "$as_ac_var=no"
004ee6da 42037fi
f321ab7f 42038rm -f conftest.err conftest.$ac_objext \
004ee6da
RL
42039 conftest$ac_exeext conftest.$ac_ext
42040fi
f321ab7f
VS
42041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42042echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
004ee6da
RL
42043if test `eval echo '${'$as_ac_var'}'` = yes; then
42044 cat >>confdefs.h <<_ACEOF
42045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42046_ACEOF
42047 cat >>confdefs.h <<\_ACEOF
42048#define HAVE_GETSERVBYNAME 1
42049_ACEOF
42050
42051fi
42052done
42053
42054 fi
42055
004ee6da
RL
42056if test "$wxUSE_THREADS" = "yes"; then
42057 cat >>confdefs.h <<\_ACEOF
42058#define wxUSE_THREADS 1
42059_ACEOF
42060
42061
42062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42063else
56632e81 42064 if test "$wx_cv_func_strtok_r" = "yes"; then
f321ab7f
VS
42065 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42066echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
004ee6da
RL
42067 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42068 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
f321ab7f
VS
42069 echo "$as_me:$LINENO: result: yes" >&5
42070echo "${ECHO_T}yes" >&6
004ee6da 42071 else
f321ab7f
VS
42072 echo "$as_me:$LINENO: result: no" >&5
42073echo "${ECHO_T}no" >&6
004ee6da
RL
42074 fi
42075 fi
42076fi
42077
42078if test "$WXGTK20" = 1 ; then
42079 cat >>confdefs.h <<_ACEOF
42080#define __WXGTK20__ $WXGTK20
42081_ACEOF
42082
42083 WXGTK12=1
42084fi
42085
42086if test "$WXGTK12" = 1 ; then
42087 cat >>confdefs.h <<_ACEOF
42088#define __WXGTK12__ $WXGTK12
42089_ACEOF
42090
42091fi
42092
42093if test "$WXGTK127" = 1 ; then
42094 cat >>confdefs.h <<_ACEOF
42095#define __WXGTK127__ $WXGTK127
42096_ACEOF
42097
42098fi
42099
42100if test "$WXGPE" = 1 ; then
42101 cat >>confdefs.h <<_ACEOF
42102#define __WXGPE__ $WXGPE
42103_ACEOF
42104
42105fi
42106
42107DEBUG_CFLAGS=
42108if test "$wxUSE_DEBUG_INFO" = "yes" ; then
42109 DEBUG_CFLAGS="-g"
42110 wxUSE_OPTIMISE=no
42111fi
42112
42113if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42114 wxUSE_DEBUG_INFO=yes
42115 if test "$GCC" = yes; then
42116 DEBUG_CFLAGS="-ggdb"
42117 fi
42118fi
42119
42120if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
42121 cat >>confdefs.h <<\_ACEOF
42122#define WXDEBUG 1
42123_ACEOF
42124
42125 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
42126else
42127 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
42128 if test "x$wxGTK_VERSION" = "x1" ; then
42129 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42130 fi
004ee6da
RL
42131 fi
42132fi
42133
42134if test "$wxUSE_MEM_TRACING" = "yes" ; then
42135 cat >>confdefs.h <<\_ACEOF
42136#define wxUSE_MEMORY_TRACING 1
42137_ACEOF
42138
42139 cat >>confdefs.h <<\_ACEOF
42140#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42141_ACEOF
42142
42143 cat >>confdefs.h <<\_ACEOF
42144#define wxUSE_DEBUG_NEW_ALWAYS 1
42145_ACEOF
42146
42147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42148fi
42149
42150if test "$wxUSE_DMALLOC" = "yes" ; then
42151 DMALLOC_LIBS="-ldmallocthcxx"
42152fi
42153
42154PROFILE_FLAGS=
42155if test "$wxUSE_PROFILE" = "yes" ; then
42156 PROFILE_FLAGS=" -pg"
42157fi
42158
42159if test "$GCC" = "yes" ; then
42160 if test "$wxUSE_NO_RTTI" = "yes" ; then
42161 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
42162 fi
42163 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42164 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42165 fi
42166 if test "$wxUSE_PERMISSIVE" = "yes" ; then
42167 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42168 fi
42169
42170 case "${host}" in
42171 powerpc*-*-aix* )
42172 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42173 ;;
42174 *-hppa* )
42175 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42176 ;;
42177 esac
42178fi
42179
42180OPTIMISE_CFLAGS=
42181if test "$wxUSE_OPTIMISE" = "no" ; then
42182 if test "$GCC" = yes ; then
42183 OPTIMISE_CFLAGS="-O0"
42184 fi
42185else
42186 if test "$GCC" = yes ; then
e5efa97e
VZ
42187 case "${host}" in
42188 *-pc-os2_emx | *-pc-os2-emx )
42189 OPTIMISE_CFLAGS="-O2"
42190 ;;
42191 *)
42192 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42193 ;;
42194 esac
004ee6da
RL
42195 else
42196 OPTIMISE_CFLAGS="-O"
42197 fi
42198fi
42199
42200
42201if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
42202 cat >>confdefs.h <<\_ACEOF
42203#define WXWIN_COMPATIBILITY_2_4 1
42204_ACEOF
42205
42206
42207 WXWIN_COMPATIBILITY_2_6="yes"
42208fi
42209
42210if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
42211 cat >>confdefs.h <<\_ACEOF
42212#define WXWIN_COMPATIBILITY_2_6 1
42213_ACEOF
42214
42215fi
42216
42217
42218if test "$wxUSE_GUI" = "yes"; then
42219 cat >>confdefs.h <<\_ACEOF
42220#define wxUSE_GUI 1
42221_ACEOF
42222
42223
42224 fi
42225
42226
42227if test "$wxUSE_UNIX" = "yes"; then
42228 cat >>confdefs.h <<\_ACEOF
42229#define wxUSE_UNIX 1
42230_ACEOF
42231
42232fi
42233
42234
42235if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42236
42237 HAVE_DL_FUNCS=0
42238 HAVE_SHL_FUNCS=0
42239 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42240 if test "$USE_DARWIN" = 1; then
42241 HAVE_DL_FUNCS=1
42242 elif test "$USE_DOS" = 1; then
42243 HAVE_DL_FUNCS=0
42244 else
42245
42246for ac_func in dlopen
42247do
42248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
42249echo "$as_me:$LINENO: checking for $ac_func" >&5
42250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42251if eval "test \"\${$as_ac_var+set}\" = set"; then
004ee6da
RL
42252 echo $ECHO_N "(cached) $ECHO_C" >&6
42253else
42254 cat >conftest.$ac_ext <<_ACEOF
42255/* confdefs.h. */
42256_ACEOF
42257cat confdefs.h >>conftest.$ac_ext
42258cat >>conftest.$ac_ext <<_ACEOF
42259/* end confdefs.h. */
42260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42262#define $ac_func innocuous_$ac_func
42263
42264/* System header to define __stub macros and hopefully few prototypes,
42265 which can conflict with char $ac_func (); below.
42266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42267 <limits.h> exists even on freestanding compilers. */
42268
42269#ifdef __STDC__
42270# include <limits.h>
42271#else
42272# include <assert.h>
42273#endif
42274
42275#undef $ac_func
42276
f321ab7f 42277/* Override any gcc2 internal prototype to avoid an error. */
004ee6da
RL
42278#ifdef __cplusplus
42279extern "C"
f321ab7f 42280{
004ee6da 42281#endif
f321ab7f
VS
42282/* We use char because int might match the return type of a gcc2
42283 builtin and then its argument prototype would still apply. */
004ee6da
RL
42284char $ac_func ();
42285/* The GNU C library defines this for functions which it implements
42286 to always fail with ENOSYS. Some functions are actually named
42287 something starting with __ and the normal name is an alias. */
f321ab7f 42288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
004ee6da 42289choke me
f321ab7f
VS
42290#else
42291char (*f) () = $ac_func;
42292#endif
42293#ifdef __cplusplus
42294}
004ee6da
RL
42295#endif
42296
42297int
42298main ()
42299{
f321ab7f 42300return f != $ac_func;
a848cd7e
SC
42301 ;
42302 return 0;
42303}
42304_ACEOF
42305rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
42306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42307 (eval $ac_link) 2>conftest.er1
a848cd7e 42308 ac_status=$?
ac1cb8d3
VS
42309 grep -v '^ *+' conftest.er1 >conftest.err
42310 rm -f conftest.er1
42311 cat conftest.err >&5
a848cd7e
SC
42312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42313 (exit $ac_status); } &&
f321ab7f
VS
42314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42316 (eval $ac_try) 2>&5
ac1cb8d3
VS
42317 ac_status=$?
42318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42319 (exit $ac_status); }; } &&
42320 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
42321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42322 (eval $ac_try) 2>&5
a848cd7e
SC
42323 ac_status=$?
42324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42325 (exit $ac_status); }; }; then
42326 eval "$as_ac_var=yes"
42327else
42328 echo "$as_me: failed program was:" >&5
42329sed 's/^/| /' conftest.$ac_ext >&5
42330
f321ab7f 42331eval "$as_ac_var=no"
a848cd7e 42332fi
f321ab7f 42333rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 42334 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42335fi
f321ab7f
VS
42336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42337echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
42338if test `eval echo '${'$as_ac_var'}'` = yes; then
42339 cat >>confdefs.h <<_ACEOF
42340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42341_ACEOF
42342
42343 cat >>confdefs.h <<\_ACEOF
42344#define HAVE_DLOPEN 1
42345_ACEOF
42346
42347 HAVE_DL_FUNCS=1
42348
42349else
42350
f321ab7f
VS
42351 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42352echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
a848cd7e
SC
42353if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42354 echo $ECHO_N "(cached) $ECHO_C" >&6
42355else
42356 ac_check_lib_save_LIBS=$LIBS
42357LIBS="-ldl $LIBS"
42358cat >conftest.$ac_ext <<_ACEOF
42359/* confdefs.h. */
42360_ACEOF
42361cat confdefs.h >>conftest.$ac_ext
42362cat >>conftest.$ac_ext <<_ACEOF
42363/* end confdefs.h. */
42364
f321ab7f 42365/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
42366#ifdef __cplusplus
42367extern "C"
42368#endif
f321ab7f
VS
42369/* We use char because int might match the return type of a gcc2
42370 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42371char dlopen ();
42372int
42373main ()
42374{
f321ab7f 42375dlopen ();
a848cd7e
SC
42376 ;
42377 return 0;
42378}
42379_ACEOF
42380rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
42381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42382 (eval $ac_link) 2>conftest.er1
a848cd7e 42383 ac_status=$?
ac1cb8d3
VS
42384 grep -v '^ *+' conftest.er1 >conftest.err
42385 rm -f conftest.er1
42386 cat conftest.err >&5
a848cd7e
SC
42387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42388 (exit $ac_status); } &&
f321ab7f
VS
42389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42391 (eval $ac_try) 2>&5
ac1cb8d3
VS
42392 ac_status=$?
42393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42394 (exit $ac_status); }; } &&
42395 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
42396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42397 (eval $ac_try) 2>&5
a848cd7e
SC
42398 ac_status=$?
42399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42400 (exit $ac_status); }; }; then
42401 ac_cv_lib_dl_dlopen=yes
42402else
42403 echo "$as_me: failed program was:" >&5
42404sed 's/^/| /' conftest.$ac_ext >&5
42405
f321ab7f 42406ac_cv_lib_dl_dlopen=no
a848cd7e 42407fi
f321ab7f 42408rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 42409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42410LIBS=$ac_check_lib_save_LIBS
42411fi
f321ab7f
VS
42412echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42413echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
a848cd7e
SC
42414if test $ac_cv_lib_dl_dlopen = yes; then
42415
42416 cat >>confdefs.h <<\_ACEOF
42417#define HAVE_DLOPEN 1
42418_ACEOF
42419
42420 HAVE_DL_FUNCS=1
42421 DL_LINK=" -ldl$DL_LINK"
42422
42423else
42424
42425
42426for ac_func in shl_load
42427do
42428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
42429echo "$as_me:$LINENO: checking for $ac_func" >&5
42430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42431if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
42432 echo $ECHO_N "(cached) $ECHO_C" >&6
42433else
42434 cat >conftest.$ac_ext <<_ACEOF
42435/* confdefs.h. */
42436_ACEOF
42437cat confdefs.h >>conftest.$ac_ext
42438cat >>conftest.$ac_ext <<_ACEOF
42439/* end confdefs.h. */
ac1cb8d3
VS
42440/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42442#define $ac_func innocuous_$ac_func
42443
a848cd7e
SC
42444/* System header to define __stub macros and hopefully few prototypes,
42445 which can conflict with char $ac_func (); below.
42446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42447 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42448
a848cd7e
SC
42449#ifdef __STDC__
42450# include <limits.h>
42451#else
42452# include <assert.h>
42453#endif
ac1cb8d3
VS
42454
42455#undef $ac_func
42456
f321ab7f 42457/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
42458#ifdef __cplusplus
42459extern "C"
f321ab7f 42460{
a848cd7e 42461#endif
f321ab7f
VS
42462/* We use char because int might match the return type of a gcc2
42463 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42464char $ac_func ();
42465/* The GNU C library defines this for functions which it implements
42466 to always fail with ENOSYS. Some functions are actually named
42467 something starting with __ and the normal name is an alias. */
f321ab7f 42468#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 42469choke me
f321ab7f
VS
42470#else
42471char (*f) () = $ac_func;
42472#endif
42473#ifdef __cplusplus
42474}
a848cd7e
SC
42475#endif
42476
42477int
42478main ()
42479{
f321ab7f 42480return f != $ac_func;
a848cd7e
SC
42481 ;
42482 return 0;
42483}
42484_ACEOF
42485rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
42486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42487 (eval $ac_link) 2>conftest.er1
a848cd7e 42488 ac_status=$?
ac1cb8d3
VS
42489 grep -v '^ *+' conftest.er1 >conftest.err
42490 rm -f conftest.er1
42491 cat conftest.err >&5
a848cd7e
SC
42492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42493 (exit $ac_status); } &&
f321ab7f
VS
42494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42496 (eval $ac_try) 2>&5
ac1cb8d3
VS
42497 ac_status=$?
42498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42499 (exit $ac_status); }; } &&
42500 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
42501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42502 (eval $ac_try) 2>&5
a848cd7e
SC
42503 ac_status=$?
42504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42505 (exit $ac_status); }; }; then
42506 eval "$as_ac_var=yes"
42507else
42508 echo "$as_me: failed program was:" >&5
42509sed 's/^/| /' conftest.$ac_ext >&5
42510
f321ab7f 42511eval "$as_ac_var=no"
a848cd7e 42512fi
f321ab7f 42513rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 42514 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42515fi
f321ab7f
VS
42516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42517echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
42518if test `eval echo '${'$as_ac_var'}'` = yes; then
42519 cat >>confdefs.h <<_ACEOF
42520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42521_ACEOF
42522
42523 cat >>confdefs.h <<\_ACEOF
42524#define HAVE_SHL_LOAD 1
42525_ACEOF
42526
42527 HAVE_SHL_FUNCS=1
42528
42529else
42530
f321ab7f
VS
42531 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42532echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
a848cd7e
SC
42533if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42534 echo $ECHO_N "(cached) $ECHO_C" >&6
42535else
42536 ac_check_lib_save_LIBS=$LIBS
42537LIBS="-lshl_load $LIBS"
42538cat >conftest.$ac_ext <<_ACEOF
42539/* confdefs.h. */
42540_ACEOF
42541cat confdefs.h >>conftest.$ac_ext
42542cat >>conftest.$ac_ext <<_ACEOF
42543/* end confdefs.h. */
42544
f321ab7f 42545/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
42546#ifdef __cplusplus
42547extern "C"
42548#endif
f321ab7f
VS
42549/* We use char because int might match the return type of a gcc2
42550 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42551char dld ();
42552int
42553main ()
42554{
f321ab7f 42555dld ();
a848cd7e
SC
42556 ;
42557 return 0;
42558}
42559_ACEOF
42560rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
42561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42562 (eval $ac_link) 2>conftest.er1
a848cd7e 42563 ac_status=$?
ac1cb8d3
VS
42564 grep -v '^ *+' conftest.er1 >conftest.err
42565 rm -f conftest.er1
42566 cat conftest.err >&5
a848cd7e
SC
42567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42568 (exit $ac_status); } &&
f321ab7f
VS
42569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42571 (eval $ac_try) 2>&5
ac1cb8d3
VS
42572 ac_status=$?
42573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42574 (exit $ac_status); }; } &&
42575 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
42576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42577 (eval $ac_try) 2>&5
a848cd7e
SC
42578 ac_status=$?
42579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580 (exit $ac_status); }; }; then
42581 ac_cv_lib_shl_load_dld=yes
42582else
42583 echo "$as_me: failed program was:" >&5
42584sed 's/^/| /' conftest.$ac_ext >&5
42585
f321ab7f 42586ac_cv_lib_shl_load_dld=no
a848cd7e 42587fi
f321ab7f 42588rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 42589 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42590LIBS=$ac_check_lib_save_LIBS
42591fi
f321ab7f
VS
42592echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42593echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
a848cd7e
SC
42594if test $ac_cv_lib_shl_load_dld = yes; then
42595
42596 HAVE_SHL_FUNCS=1
42597 DL_LINK=" -ldld$DL_LINK"
42598
42599fi
42600
42601
42602fi
42603done
42604
42605
42606fi
42607
42608
42609fi
42610done
42611
42612
42613 if test "$HAVE_DL_FUNCS" = 1; then
42614
42615for ac_func in dlerror
42616do
42617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
42618echo "$as_me:$LINENO: checking for $ac_func" >&5
42619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42620if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
42621 echo $ECHO_N "(cached) $ECHO_C" >&6
42622else
42623 cat >conftest.$ac_ext <<_ACEOF
42624/* confdefs.h. */
42625_ACEOF
42626cat confdefs.h >>conftest.$ac_ext
42627cat >>conftest.$ac_ext <<_ACEOF
42628/* end confdefs.h. */
ac1cb8d3
VS
42629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42631#define $ac_func innocuous_$ac_func
42632
a848cd7e
SC
42633/* System header to define __stub macros and hopefully few prototypes,
42634 which can conflict with char $ac_func (); below.
42635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42636 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42637
a848cd7e
SC
42638#ifdef __STDC__
42639# include <limits.h>
42640#else
42641# include <assert.h>
42642#endif
ac1cb8d3
VS
42643
42644#undef $ac_func
42645
f321ab7f 42646/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
42647#ifdef __cplusplus
42648extern "C"
f321ab7f 42649{
a848cd7e 42650#endif
f321ab7f
VS
42651/* We use char because int might match the return type of a gcc2
42652 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42653char $ac_func ();
42654/* The GNU C library defines this for functions which it implements
42655 to always fail with ENOSYS. Some functions are actually named
42656 something starting with __ and the normal name is an alias. */
f321ab7f 42657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 42658choke me
f321ab7f
VS
42659#else
42660char (*f) () = $ac_func;
42661#endif
42662#ifdef __cplusplus
42663}
a848cd7e
SC
42664#endif
42665
42666int
42667main ()
42668{
f321ab7f 42669return f != $ac_func;
a848cd7e
SC
42670 ;
42671 return 0;
42672}
42673_ACEOF
42674rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
42675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42676 (eval $ac_link) 2>conftest.er1
a848cd7e 42677 ac_status=$?
ac1cb8d3
VS
42678 grep -v '^ *+' conftest.er1 >conftest.err
42679 rm -f conftest.er1
42680 cat conftest.err >&5
a848cd7e
SC
42681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42682 (exit $ac_status); } &&
f321ab7f
VS
42683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42685 (eval $ac_try) 2>&5
ac1cb8d3
VS
42686 ac_status=$?
42687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42688 (exit $ac_status); }; } &&
42689 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
42690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42691 (eval $ac_try) 2>&5
a848cd7e
SC
42692 ac_status=$?
42693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42694 (exit $ac_status); }; }; then
42695 eval "$as_ac_var=yes"
42696else
42697 echo "$as_me: failed program was:" >&5
42698sed 's/^/| /' conftest.$ac_ext >&5
42699
f321ab7f 42700eval "$as_ac_var=no"
a848cd7e 42701fi
f321ab7f 42702rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 42703 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42704fi
f321ab7f
VS
42705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
42707if test `eval echo '${'$as_ac_var'}'` = yes; then
42708 cat >>confdefs.h <<_ACEOF
42709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42710_ACEOF
42711 cat >>confdefs.h <<\_ACEOF
42712#define HAVE_DLERROR 1
42713_ACEOF
42714
42715else
42716
f321ab7f
VS
42717 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42718echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
a848cd7e
SC
42719if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42720 echo $ECHO_N "(cached) $ECHO_C" >&6
42721else
42722 ac_check_lib_save_LIBS=$LIBS
42723LIBS="-ldl $LIBS"
42724cat >conftest.$ac_ext <<_ACEOF
42725/* confdefs.h. */
42726_ACEOF
42727cat confdefs.h >>conftest.$ac_ext
42728cat >>conftest.$ac_ext <<_ACEOF
42729/* end confdefs.h. */
42730
f321ab7f 42731/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
42732#ifdef __cplusplus
42733extern "C"
42734#endif
f321ab7f
VS
42735/* We use char because int might match the return type of a gcc2
42736 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42737char dlerror ();
42738int
42739main ()
42740{
f321ab7f 42741dlerror ();
a848cd7e
SC
42742 ;
42743 return 0;
42744}
42745_ACEOF
42746rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
42747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42748 (eval $ac_link) 2>conftest.er1
a848cd7e 42749 ac_status=$?
ac1cb8d3
VS
42750 grep -v '^ *+' conftest.er1 >conftest.err
42751 rm -f conftest.er1
42752 cat conftest.err >&5
a848cd7e
SC
42753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42754 (exit $ac_status); } &&
f321ab7f
VS
42755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42757 (eval $ac_try) 2>&5
ac1cb8d3
VS
42758 ac_status=$?
42759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42760 (exit $ac_status); }; } &&
42761 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
42762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42763 (eval $ac_try) 2>&5
a848cd7e
SC
42764 ac_status=$?
42765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42766 (exit $ac_status); }; }; then
42767 ac_cv_lib_dl_dlerror=yes
42768else
42769 echo "$as_me: failed program was:" >&5
42770sed 's/^/| /' conftest.$ac_ext >&5
42771
f321ab7f 42772ac_cv_lib_dl_dlerror=no
a848cd7e 42773fi
f321ab7f 42774rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 42775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42776LIBS=$ac_check_lib_save_LIBS
42777fi
f321ab7f
VS
42778echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42779echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
a848cd7e
SC
42780if test $ac_cv_lib_dl_dlerror = yes; then
42781 cat >>confdefs.h <<\_ACEOF
42782#define HAVE_DLERROR 1
42783_ACEOF
42784
42785fi
42786
42787
42788
42789fi
42790done
42791
42792 fi
42793 fi
42794
42795 if test "$HAVE_DL_FUNCS" = 0; then
42796 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42797 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42798 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42799echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42800 wxUSE_DYNAMIC_LOADER=no
42801 wxUSE_DYNLIB_CLASS=no
42802 else
42803 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42804echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42805 fi
42806 fi
42807 fi
42808 fi
42809fi
42810
42811if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42812 cat >>confdefs.h <<\_ACEOF
42813#define wxUSE_DYNAMIC_LOADER 1
42814_ACEOF
42815
42816fi
42817if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42818 cat >>confdefs.h <<\_ACEOF
42819#define wxUSE_DYNLIB_CLASS 1
42820_ACEOF
42821
42822fi
42823
42824
42825
42826if test "$wxUSE_PLUGINS" = "yes" ; then
42827 if test "$wxUSE_SHARED" = "no" ; then
42828 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42829echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42830 wxUSE_PLUGINS=no
42831 fi
42832 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42833 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42834echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42835 wxUSE_PLUGINS=no
42836 fi
42837 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42838 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42839echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42840 wxUSE_PLUGINS=no
42841 fi
42842 if test "$wxUSE_PLUGINS" = "yes" ; then
42843 cat >>confdefs.h <<\_ACEOF
42844#define wxUSE_PLUGINS 1
42845_ACEOF
42846
42847 fi
42848fi
42849
42850
42851if test "$wxUSE_STL" = "yes"; then
42852 cat >>confdefs.h <<\_ACEOF
42853#define wxUSE_STL 1
42854_ACEOF
42855
42856fi
42857
42858if test "$wxUSE_APPLE_IEEE" = "yes"; then
42859 cat >>confdefs.h <<\_ACEOF
42860#define wxUSE_APPLE_IEEE 1
42861_ACEOF
42862
42863fi
42864
42865if test "$wxUSE_TIMER" = "yes"; then
42866 cat >>confdefs.h <<\_ACEOF
42867#define wxUSE_TIMER 1
42868_ACEOF
42869
42870fi
42871
9c112555 42872if test "$USE_UNIX" = "1" ; then
a1b1cf33 42873 if test "$wxUSE_MGL" != 1; then
f321ab7f
VS
42874 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42875echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42876if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42877 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42878else
d12aef51 42879
a1b1cf33 42880 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42881/* confdefs.h. */
42882_ACEOF
42883cat confdefs.h >>conftest.$ac_ext
42884cat >>conftest.$ac_ext <<_ACEOF
42885/* end confdefs.h. */
d12aef51 42886
a1b1cf33
VZ
42887 #include <sys/ioctl.h>
42888 #include <sys/soundcard.h>
d12aef51
VZ
42889
42890int
42891main ()
42892{
42893
a1b1cf33 42894 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42895
42896 ;
42897 return 0;
42898}
a848cd7e 42899_ACEOF
d12aef51 42900rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
42901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42902 (eval $ac_link) 2>conftest.er1
a848cd7e 42903 ac_status=$?
ac1cb8d3
VS
42904 grep -v '^ *+' conftest.er1 >conftest.err
42905 rm -f conftest.er1
42906 cat conftest.err >&5
a848cd7e
SC
42907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908 (exit $ac_status); } &&
f321ab7f
VS
42909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42911 (eval $ac_try) 2>&5
ac1cb8d3
VS
42912 ac_status=$?
42913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914 (exit $ac_status); }; } &&
d12aef51 42915 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
42916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42917 (eval $ac_try) 2>&5
a848cd7e
SC
42918 ac_status=$?
42919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920 (exit $ac_status); }; }; then
d12aef51 42921 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42922else
42923 echo "$as_me: failed program was:" >&5
42924sed 's/^/| /' conftest.$ac_ext >&5
42925
a848cd7e 42926
a1b1cf33
VZ
42927 saveLibs="$LIBS"
42928 LIBS="$saveLibs -lossaudio"
42929 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42930/* confdefs.h. */
42931_ACEOF
42932cat confdefs.h >>conftest.$ac_ext
42933cat >>conftest.$ac_ext <<_ACEOF
42934/* end confdefs.h. */
d12aef51 42935
a1b1cf33
VZ
42936 #include <sys/ioctl.h>
42937 #include <sys/soundcard.h>
d12aef51
VZ
42938
42939int
42940main ()
42941{
42942
a1b1cf33 42943 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42944
42945 ;
42946 return 0;
42947}
a848cd7e 42948_ACEOF
d12aef51 42949rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
42950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42951 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42952 ac_status=$?
42953 grep -v '^ *+' conftest.er1 >conftest.err
42954 rm -f conftest.er1
42955 cat conftest.err >&5
42956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42957 (exit $ac_status); } &&
f321ab7f
VS
42958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42960 (eval $ac_try) 2>&5
d12aef51
VZ
42961 ac_status=$?
42962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42963 (exit $ac_status); }; } &&
42964 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
42965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42966 (eval $ac_try) 2>&5
d12aef51
VZ
42967 ac_status=$?
42968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42969 (exit $ac_status); }; }; then
42970 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42971else
42972 echo "$as_me: failed program was:" >&5
42973sed 's/^/| /' conftest.$ac_ext >&5
42974
a848cd7e 42975
a1b1cf33
VZ
42976 LIBS="$saveLibs"
42977 ac_cv_header_sys_soundcard=no
d12aef51
VZ
42978
42979
a848cd7e 42980fi
f321ab7f 42981rm -f conftest.err conftest.$ac_objext \
d12aef51
VZ
42982 conftest$ac_exeext conftest.$ac_ext
42983
a848cd7e
SC
42984
42985fi
f321ab7f 42986rm -f conftest.err conftest.$ac_objext \
d12aef51 42987 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42988
42989fi
f321ab7f
VS
42990echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42991echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a1b1cf33 42992 fi
a848cd7e 42993
d12aef51
VZ
42994 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42995 cat >>confdefs.h <<\_ACEOF
42996#define HAVE_SYS_SOUNDCARD_H 1
42997_ACEOF
a848cd7e 42998
d12aef51
VZ
42999 else
43000 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
43001 fi
9c112555 43002fi
a1b1cf33 43003
9c112555
MW
43004WITH_PLUGIN_SDL=0
43005if test "$wxUSE_SOUND" = "yes"; then
43006 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
43007 if test "$wxUSE_LIBSDL" != "no"; then
43008
f321ab7f 43009# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
a848cd7e 43010if test "${with_sdl_prefix+set}" = set; then
f321ab7f
VS
43011 withval="$with_sdl_prefix"
43012 sdl_prefix="$withval"
a848cd7e
SC
43013else
43014 sdl_prefix=""
f321ab7f 43015fi;
3f7f284d 43016
f321ab7f 43017# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
a848cd7e 43018if test "${with_sdl_exec_prefix+set}" = set; then
f321ab7f
VS
43019 withval="$with_sdl_exec_prefix"
43020 sdl_exec_prefix="$withval"
a848cd7e
SC
43021else
43022 sdl_exec_prefix=""
f321ab7f
VS
43023fi;
43024# Check whether --enable-sdltest or --disable-sdltest was given.
3f7f284d 43025if test "${enable_sdltest+set}" = set; then
f321ab7f
VS
43026 enableval="$enable_sdltest"
43027
a848cd7e
SC
43028else
43029 enable_sdltest=yes
f321ab7f 43030fi;
a848cd7e
SC
43031
43032 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
43033 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
43034 if test x${SDL_CONFIG+set} != xset ; then
43035 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
43036 fi
a848cd7e
SC
43037 fi
43038 if test x$sdl_prefix != x ; then
3ecd9f92
MW
43039 sdl_args="$sdl_args --prefix=$sdl_prefix"
43040 if test x${SDL_CONFIG+set} != xset ; then
43041 SDL_CONFIG=$sdl_prefix/bin/sdl-config
43042 fi
a848cd7e
SC
43043 fi
43044
3ecd9f92
MW
43045 if test "x$prefix" != xNONE; then
43046 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43047 fi
a848cd7e
SC
43048 # Extract the first word of "sdl-config", so it can be a program name with args.
43049set dummy sdl-config; ac_word=$2
f321ab7f
VS
43050echo "$as_me:$LINENO: checking for $ac_word" >&5
43051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
43052if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43053 echo $ECHO_N "(cached) $ECHO_C" >&6
43054else
43055 case $SDL_CONFIG in
43056 [\\/]* | ?:[\\/]*)
43057 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43058 ;;
43059 *)
43060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43061for as_dir in $PATH
43062do
43063 IFS=$as_save_IFS
43064 test -z "$as_dir" && as_dir=.
43065 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 43066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
43067 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43069 break 2
43070 fi
43071done
43072done
43073
43074 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43075 ;;
43076esac
43077fi
43078SDL_CONFIG=$ac_cv_path_SDL_CONFIG
f321ab7f 43079
a848cd7e 43080if test -n "$SDL_CONFIG"; then
f321ab7f
VS
43081 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
43082echo "${ECHO_T}$SDL_CONFIG" >&6
a848cd7e 43083else
f321ab7f
VS
43084 echo "$as_me:$LINENO: result: no" >&5
43085echo "${ECHO_T}no" >&6
a848cd7e
SC
43086fi
43087
43088 min_sdl_version=1.2.0
f321ab7f
VS
43089 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
43090echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
a848cd7e
SC
43091 no_sdl=""
43092 if test "$SDL_CONFIG" = "no" ; then
43093 no_sdl=yes
43094 else
43095 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
43096 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
43097
43098 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
43099 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43100 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
43101 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43102 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
43103 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43104 if test "x$enable_sdltest" = "xyes" ; then
43105 ac_save_CFLAGS="$CFLAGS"
94acd38e 43106 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
43107 ac_save_LIBS="$LIBS"
43108 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43109 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43110 LIBS="$LIBS $SDL_LIBS"
43111 rm -f conf.sdltest
43112 if test "$cross_compiling" = yes; then
43113 echo $ac_n "cross compiling; assumed OK... $ac_c"
43114else
43115 cat >conftest.$ac_ext <<_ACEOF
43116/* confdefs.h. */
43117_ACEOF
43118cat confdefs.h >>conftest.$ac_ext
43119cat >>conftest.$ac_ext <<_ACEOF
43120/* end confdefs.h. */
43121
43122#include <stdio.h>
43123#include <stdlib.h>
43124#include <string.h>
43125#include "SDL.h"
43126
43127char*
43128my_strdup (char *str)
43129{
43130 char *new_str;
43131
43132 if (str)
43133 {
43134 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
43135 strcpy (new_str, str);
43136 }
43137 else
43138 new_str = NULL;
43139
43140 return new_str;
43141}
43142
43143int main (int argc, char *argv[])
43144{
43145 int major, minor, micro;
43146 char *tmp_version;
43147
43148 /* This hangs on some systems (?)
43149 system ("touch conf.sdltest");
43150 */
43151 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
43152
43153 /* HP/UX 9 (%@#!) writes to sscanf strings */
43154 tmp_version = my_strdup("$min_sdl_version");
43155 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
43156 printf("%s, bad version string\n", "$min_sdl_version");
43157 exit(1);
43158 }
43159
43160 if (($sdl_major_version > major) ||
43161 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
43162 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
43163 {
43164 return 0;
43165 }
43166 else
43167 {
43168 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
43169 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
43170 printf("*** best to upgrade to the required version.\n");
43171 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
43172 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
43173 printf("*** config.cache before re-running configure\n");
43174 return 1;
43175 }
43176}
43177
43178
43179_ACEOF
43180rm -f conftest$ac_exeext
f321ab7f
VS
43181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43182 (eval $ac_link) 2>&5
a848cd7e
SC
43183 ac_status=$?
43184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f321ab7f
VS
43186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43187 (eval $ac_try) 2>&5
a848cd7e
SC
43188 ac_status=$?
43189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43190 (exit $ac_status); }; }; then
43191 :
43192else
43193 echo "$as_me: program exited with status $ac_status" >&5
43194echo "$as_me: failed program was:" >&5
43195sed 's/^/| /' conftest.$ac_ext >&5
43196
43197( exit $ac_status )
43198no_sdl=yes
43199fi
f321ab7f 43200rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43201fi
43202 CFLAGS="$ac_save_CFLAGS"
94acd38e 43203 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43204 LIBS="$ac_save_LIBS"
43205 fi
43206 fi
43207 if test "x$no_sdl" = x ; then
f321ab7f
VS
43208 echo "$as_me:$LINENO: result: yes" >&5
43209echo "${ECHO_T}yes" >&6
a848cd7e
SC
43210
43211 EXTRALIBS_SDL="$SDL_LIBS"
9b8888f9 43212 CFLAGS="$SDL_CFLAGS $CFLAGS"
c92ad099 43213 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
43214 cat >>confdefs.h <<\_ACEOF
43215#define wxUSE_LIBSDL 1
43216_ACEOF
43217
43218
43219 else
f321ab7f
VS
43220 echo "$as_me:$LINENO: result: no" >&5
43221echo "${ECHO_T}no" >&6
a848cd7e
SC
43222 if test "$SDL_CONFIG" = "no" ; then
43223 echo "*** The sdl-config script installed by SDL could not be found"
43224 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43225 echo "*** your path, or set the SDL_CONFIG environment variable to the"
43226 echo "*** full path to sdl-config."
43227 else
43228 if test -f conf.sdltest ; then
43229 :
43230 else
43231 echo "*** Could not run SDL test program, checking why..."
43232 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43233 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43234 LIBS="$LIBS $SDL_LIBS"
43235 cat >conftest.$ac_ext <<_ACEOF
43236/* confdefs.h. */
43237_ACEOF
43238cat confdefs.h >>conftest.$ac_ext
43239cat >>conftest.$ac_ext <<_ACEOF
43240/* end confdefs.h. */
43241
43242#include <stdio.h>
43243#include "SDL.h"
43244
43245int main(int argc, char *argv[])
43246{ return 0; }
43247#undef main
43248#define main K_and_R_C_main
43249
43250int
43251main ()
43252{
43253 return 0;
43254 ;
43255 return 0;
43256}
43257_ACEOF
43258rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
43259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43260 (eval $ac_link) 2>conftest.er1
a848cd7e 43261 ac_status=$?
ac1cb8d3
VS
43262 grep -v '^ *+' conftest.er1 >conftest.err
43263 rm -f conftest.er1
43264 cat conftest.err >&5
a848cd7e
SC
43265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43266 (exit $ac_status); } &&
f321ab7f
VS
43267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43269 (eval $ac_try) 2>&5
ac1cb8d3
VS
43270 ac_status=$?
43271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43272 (exit $ac_status); }; } &&
43273 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
43274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43275 (eval $ac_try) 2>&5
a848cd7e
SC
43276 ac_status=$?
43277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43278 (exit $ac_status); }; }; then
43279 echo "*** The test program compiled, but did not run. This usually means"
43280 echo "*** that the run-time linker is not finding SDL or finding the wrong"
43281 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43282 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43283 echo "*** to the installed location Also, make sure you have run ldconfig if that"
43284 echo "*** is required on your system"
43285 echo "***"
43286 echo "*** If you have an old version installed, it is best to remove it, although"
43287 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43288else
43289 echo "$as_me: failed program was:" >&5
43290sed 's/^/| /' conftest.$ac_ext >&5
43291
f321ab7f 43292 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
43293 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43294 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43295 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43296fi
f321ab7f 43297rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 43298 conftest$ac_exeext conftest.$ac_ext
a848cd7e 43299 CFLAGS="$ac_save_CFLAGS"
94acd38e 43300 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43301 LIBS="$ac_save_LIBS"
43302 fi
43303 fi
43304 SDL_CFLAGS=""
43305 SDL_LIBS=""
43306 wxUSE_LIBSDL="no"
43307 fi
43308
43309
43310 rm -f conf.sdltest
43311
43312 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43313 WITH_PLUGIN_SDL=1
43314 fi
43315 fi
480b9f18
VZ
43316 else
43317 if test "$wxUSE_MGL" = 1; then
43318 { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
43319echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
43320 wxUSE_SOUND="no"
43321 fi
a848cd7e 43322 fi
480b9f18 43323fi
a848cd7e 43324
480b9f18 43325if test "$wxUSE_SOUND" = "yes"; then
a848cd7e
SC
43326 cat >>confdefs.h <<\_ACEOF
43327#define wxUSE_SOUND 1
43328_ACEOF
43329
43330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43331fi
43332
d1c38808 43333if test "$WXGTK20" = 1; then
d6fb5527
VZ
43334
43335
43336if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43337 if test -n "$ac_tool_prefix"; then
43338 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43339set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
f321ab7f
VS
43340echo "$as_me:$LINENO: checking for $ac_word" >&5
43341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d6fb5527
VZ
43342if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43343 echo $ECHO_N "(cached) $ECHO_C" >&6
43344else
43345 case $PKG_CONFIG in
43346 [\\/]* | ?:[\\/]*)
43347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43348 ;;
43349 *)
43350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43351for as_dir in $PATH
43352do
43353 IFS=$as_save_IFS
43354 test -z "$as_dir" && as_dir=.
43355 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 43356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6fb5527
VZ
43357 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43359 break 2
43360 fi
43361done
43362done
43363
43364 ;;
43365esac
43366fi
43367PKG_CONFIG=$ac_cv_path_PKG_CONFIG
f321ab7f 43368
d6fb5527 43369if test -n "$PKG_CONFIG"; then
f321ab7f
VS
43370 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43371echo "${ECHO_T}$PKG_CONFIG" >&6
d6fb5527 43372else
f321ab7f
VS
43373 echo "$as_me:$LINENO: result: no" >&5
43374echo "${ECHO_T}no" >&6
d6fb5527
VZ
43375fi
43376
43377fi
43378if test -z "$ac_cv_path_PKG_CONFIG"; then
43379 ac_pt_PKG_CONFIG=$PKG_CONFIG
43380 # Extract the first word of "pkg-config", so it can be a program name with args.
43381set dummy pkg-config; ac_word=$2
f321ab7f
VS
43382echo "$as_me:$LINENO: checking for $ac_word" >&5
43383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d6fb5527
VZ
43384if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
43385 echo $ECHO_N "(cached) $ECHO_C" >&6
43386else
43387 case $ac_pt_PKG_CONFIG in
43388 [\\/]* | ?:[\\/]*)
43389 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43390 ;;
43391 *)
43392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43393for as_dir in $PATH
43394do
43395 IFS=$as_save_IFS
43396 test -z "$as_dir" && as_dir=.
43397 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 43398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6fb5527
VZ
43399 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43401 break 2
43402 fi
43403done
43404done
43405
43406 ;;
43407esac
43408fi
43409ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
f321ab7f 43410
d6fb5527 43411if test -n "$ac_pt_PKG_CONFIG"; then
f321ab7f
VS
43412 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
43413echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
d6fb5527 43414else
f321ab7f
VS
43415 echo "$as_me:$LINENO: result: no" >&5
43416echo "${ECHO_T}no" >&6
d6fb5527
VZ
43417fi
43418
f321ab7f 43419 PKG_CONFIG=$ac_pt_PKG_CONFIG
d6fb5527
VZ
43420else
43421 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43422fi
43423
43424fi
43425if test -n "$PKG_CONFIG"; then
43426 _pkg_min_version=0.9.0
f321ab7f
VS
43427 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
43428echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
d6fb5527 43429 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
f321ab7f
VS
43430 echo "$as_me:$LINENO: result: yes" >&5
43431echo "${ECHO_T}yes" >&6
d6fb5527 43432 else
f321ab7f
VS
43433 echo "$as_me:$LINENO: result: no" >&5
43434echo "${ECHO_T}no" >&6
d6fb5527
VZ
43435 PKG_CONFIG=""
43436 fi
43437
43438fi
43439
d1c38808
VZ
43440 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43441 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43442
43443
3ecd9f92 43444pkg_failed=no
f321ab7f
VS
43445echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43446echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 43447
3ecd9f92
MW
43448if test -n "$PKG_CONFIG"; then
43449 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43450 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43451 else
43452 if test -n "$PKG_CONFIG" && \
43453 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43454 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43455 ac_status=$?
43456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43457 (exit $ac_status); }; then
43458 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43459else
3ecd9f92
MW
43460 pkg_failed=yes
43461fi
43462 fi
43463else
43464 pkg_failed=untried
d1c38808 43465fi
d1c38808 43466if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43467 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43468 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43469 else
43470 if test -n "$PKG_CONFIG" && \
43471 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43472 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43473 ac_status=$?
43474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43475 (exit $ac_status); }; then
43476 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43477else
3ecd9f92
MW
43478 pkg_failed=yes
43479fi
43480 fi
43481else
43482 pkg_failed=untried
d1c38808
VZ
43483fi
43484
d1c38808 43485
d1c38808 43486
3ecd9f92 43487if test $pkg_failed = yes; then
d1c38808 43488
3ecd9f92
MW
43489if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43490 _pkg_short_errors_supported=yes
43491else
43492 _pkg_short_errors_supported=no
43493fi
43494 if test $_pkg_short_errors_supported = yes; then
43495 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43496 else
43497 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 43498 fi
3ecd9f92
MW
43499 # Put the nasty error message in config.log where it belongs
43500 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
43501
43502
3ecd9f92
MW
43503 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43504echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43505 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
43506
43507
3ecd9f92 43508elif test $pkg_failed = untried; then
d1c38808
VZ
43509
43510 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43511echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43512 wxUSE_LIBGNOMEPRINT="no"
43513
43514
3ecd9f92
MW
43515else
43516 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43517 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
f321ab7f
VS
43518 echo "$as_me:$LINENO: result: yes" >&5
43519echo "${ECHO_T}yes" >&6
d1c38808 43520
9b8888f9 43521 CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
3ecd9f92
MW
43522 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43523 cat >>confdefs.h <<\_ACEOF
43524#define wxUSE_LIBGNOMEPRINT 1
43525_ACEOF
43526
43527
43528fi
d1c38808
VZ
43529 fi
43530 fi
d1c38808 43531
2b850ae1
RR
43532 if test "$wxUSE_MIMETYPE" = "yes" ; then
43533 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43534
43535
3ecd9f92 43536pkg_failed=no
f321ab7f
VS
43537echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43538echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 43539
3ecd9f92
MW
43540if test -n "$PKG_CONFIG"; then
43541 if test -n "$GNOMEVFS_CFLAGS"; then
43542 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43543 else
43544 if test -n "$PKG_CONFIG" && \
43545 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43546 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43547 ac_status=$?
43548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43549 (exit $ac_status); }; then
43550 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43551else
3ecd9f92
MW
43552 pkg_failed=yes
43553fi
43554 fi
43555else
43556 pkg_failed=untried
2b850ae1 43557fi
2b850ae1 43558if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43559 if test -n "$GNOMEVFS_LIBS"; then
43560 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43561 else
43562 if test -n "$PKG_CONFIG" && \
43563 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43564 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43565 ac_status=$?
43566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43567 (exit $ac_status); }; then
43568 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43569else
3ecd9f92
MW
43570 pkg_failed=yes
43571fi
43572 fi
43573else
43574 pkg_failed=untried
2b850ae1
RR
43575fi
43576
2b850ae1 43577
2b850ae1 43578
3ecd9f92 43579if test $pkg_failed = yes; then
2b850ae1 43580
3ecd9f92
MW
43581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43582 _pkg_short_errors_supported=yes
43583else
43584 _pkg_short_errors_supported=no
43585fi
43586 if test $_pkg_short_errors_supported = yes; then
43587 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43588 else
43589 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 43590 fi
3ecd9f92
MW
43591 # Put the nasty error message in config.log where it belongs
43592 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
43593
43594
3ecd9f92
MW
43595 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43596echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43597 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
43598
43599
3ecd9f92 43600elif test $pkg_failed = untried; then
2b850ae1
RR
43601
43602 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43603echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43604 wxUSE_LIBGNOMEVFS="no"
43605
43606
3ecd9f92
MW
43607else
43608 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43609 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
f321ab7f
VS
43610 echo "$as_me:$LINENO: result: yes" >&5
43611echo "${ECHO_T}yes" >&6
2b850ae1 43612
9b8888f9 43613 CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
3ecd9f92
MW
43614 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43615 cat >>confdefs.h <<\_ACEOF
43616#define wxUSE_LIBGNOMEVFS 1
43617_ACEOF
43618
43619
43620fi
2b850ae1
RR
43621 fi
43622 fi
2b850ae1 43623
3565d135
RR
43624 if test "$wxUSE_LIBHILDON" = "yes" ; then
43625
3ecd9f92 43626pkg_failed=no
f321ab7f
VS
43627echo "$as_me:$LINENO: checking for HILDON" >&5
43628echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 43629
3ecd9f92
MW
43630if test -n "$PKG_CONFIG"; then
43631 if test -n "$HILDON_CFLAGS"; then
43632 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43633 else
43634 if test -n "$PKG_CONFIG" && \
43635 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43636 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43637 ac_status=$?
43638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43639 (exit $ac_status); }; then
43640 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43641else
3ecd9f92
MW
43642 pkg_failed=yes
43643fi
43644 fi
43645else
43646 pkg_failed=untried
3565d135 43647fi
3565d135 43648if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43649 if test -n "$HILDON_LIBS"; then
43650 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43651 else
43652 if test -n "$PKG_CONFIG" && \
43653 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43654 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43655 ac_status=$?
43656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43657 (exit $ac_status); }; then
43658 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43659else
3ecd9f92
MW
43660 pkg_failed=yes
43661fi
43662 fi
43663else
43664 pkg_failed=untried
3565d135
RR
43665fi
43666
3565d135 43667
3565d135 43668
3ecd9f92 43669if test $pkg_failed = yes; then
3565d135 43670
3ecd9f92
MW
43671if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43672 _pkg_short_errors_supported=yes
43673else
43674 _pkg_short_errors_supported=no
43675fi
43676 if test $_pkg_short_errors_supported = yes; then
43677 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43678 else
43679 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 43680 fi
3ecd9f92
MW
43681 # Put the nasty error message in config.log where it belongs
43682 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
43683
43684
3ecd9f92
MW
43685 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43686echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43687 wxUSE_LIBHILDON="no"
3565d135 43688
3565d135 43689
3ecd9f92
MW
43690elif test $pkg_failed = untried; then
43691
43692 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43693echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43694 wxUSE_LIBHILDON="no"
43695
43696
43697else
43698 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43699 HILDON_LIBS=$pkg_cv_HILDON_LIBS
f321ab7f
VS
43700 echo "$as_me:$LINENO: result: yes" >&5
43701echo "${ECHO_T}yes" >&6
3565d135
RR
43702
43703 EXTRALIBS_HILDON="$HILDON_LIBS"
9b8888f9 43704 CFLAGS="$CFLAGS $HILDON_CFLAGS"
3565d135
RR
43705 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43706 cat >>confdefs.h <<\_ACEOF
43707#define wxUSE_LIBHILDON 1
43708_ACEOF
43709
43710
3ecd9f92 43711fi
3565d135
RR
43712 fi
43713fi
d1c38808 43714
a848cd7e
SC
43715if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43716 cat >>confdefs.h <<\_ACEOF
43717#define wxUSE_CMDLINE_PARSER 1
43718_ACEOF
43719
43720fi
43721
43722if test "$wxUSE_STOPWATCH" = "yes"; then
43723 cat >>confdefs.h <<\_ACEOF
43724#define wxUSE_STOPWATCH 1
43725_ACEOF
43726
43727fi
43728
43729if test "$wxUSE_DATETIME" = "yes"; then
43730 cat >>confdefs.h <<\_ACEOF
43731#define wxUSE_DATETIME 1
43732_ACEOF
43733
43734fi
43735
43736if test "$wxUSE_FILE" = "yes"; then
43737 cat >>confdefs.h <<\_ACEOF
43738#define wxUSE_FILE 1
43739_ACEOF
43740
43741fi
43742
43743if test "$wxUSE_FFILE" = "yes"; then
43744 cat >>confdefs.h <<\_ACEOF
43745#define wxUSE_FFILE 1
43746_ACEOF
43747
43748fi
43749
9e8e867f 43750if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
26e422a9
MW
43751 if test "$wxUSE_STREAMS" != yes; then
43752 { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43753echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
916af76f 43754 wxUSE_ARCHIVE_STREAMS=no
26e422a9
MW
43755 else
43756 cat >>confdefs.h <<\_ACEOF
9e8e867f 43757#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
43758_ACEOF
43759
26e422a9 43760 fi
81f90336
MW
43761fi
43762
43763if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 43764 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
43765 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43766echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43767 elif test "$wxUSE_ZLIB" = "no"; then
43768 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43769echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43770 else
43771 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43772#define wxUSE_ZIPSTREAM 1
43773_ACEOF
43774
81f90336 43775 fi
a848cd7e
SC
43776fi
43777
26e422a9
MW
43778if test "$wxUSE_TARSTREAM" = "yes"; then
43779 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43780 { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43781echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43782 else
43783 cat >>confdefs.h <<\_ACEOF
43784#define wxUSE_TARSTREAM 1
43785_ACEOF
43786
43787 fi
43788fi
43789
916af76f 43790if test "$wxUSE_FILESYSTEM" = "yes"; then
f8f6c91a 43791 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
916af76f
MW
43792 { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43793echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43794 wxUSE_FILESYSTEM=no
f8f6c91a
MW
43795 else
43796 cat >>confdefs.h <<\_ACEOF
916af76f 43797#define wxUSE_FILESYSTEM 1
f8f6c91a
MW
43798_ACEOF
43799
43800 fi
43801fi
43802
26e422a9 43803if test "$wxUSE_FS_ARCHIVE" = "yes"; then
916af76f
MW
43804 if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43805 { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43806echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
26e422a9
MW
43807 else
43808 cat >>confdefs.h <<\_ACEOF
43809#define wxUSE_FS_ARCHIVE 1
43810_ACEOF
43811
43812 fi
43813fi
43814
916af76f
MW
43815if test "$wxUSE_FS_ZIP" = "yes"; then
43816 if test "$wxUSE_FS_ARCHIVE" != yes; then
43817 { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43818echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43819 else
43820 cat >>confdefs.h <<\_ACEOF
43821#define wxUSE_FS_ZIP 1
43822_ACEOF
43823
43824 fi
43825fi
43826
a848cd7e 43827if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
43828 if test "$USE_UNIX" != 1; then
43829 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43830echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43831 wxUSE_ON_FATAL_EXCEPTION=no
43832 else
43833 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43834#define wxUSE_ON_FATAL_EXCEPTION 1
43835_ACEOF
43836
18228ab4 43837 fi
a848cd7e
SC
43838fi
43839
eaff0f0d
VZ
43840if test "$wxUSE_STACKWALKER" = "yes"; then
43841 cat >>confdefs.h <<\_ACEOF
43842#define wxUSE_STACKWALKER 1
43843_ACEOF
43844
43845fi
43846
36b6448c 43847if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43848 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43849 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43850echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43851 wxUSE_DEBUGREPORT=no
43852 else
43853 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43854#define wxUSE_DEBUGREPORT 1
43855_ACEOF
43856
21dfc162
MW
43857 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43858 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43859 fi
dfe0c803 43860 fi
36b6448c
VZ
43861fi
43862
a848cd7e
SC
43863if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43864 cat >>confdefs.h <<\_ACEOF
43865#define wxUSE_SNGLINST_CHECKER 1
43866_ACEOF
43867
43868fi
43869
43870if test "$wxUSE_BUSYINFO" = "yes"; then
43871 cat >>confdefs.h <<\_ACEOF
43872#define wxUSE_BUSYINFO 1
43873_ACEOF
43874
43875fi
43876
43877if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43878 cat >>confdefs.h <<\_ACEOF
43879#define wxUSE_STD_IOSTREAM 1
43880_ACEOF
43881
43882fi
43883
59746b65
MW
43884if test "$wxUSE_STD_STRING" = "yes"; then
43885 cat >>confdefs.h <<\_ACEOF
43886#define wxUSE_STD_STRING 1
43887_ACEOF
43888
43889fi
43890
07158944
VZ
43891if test "$wxUSE_STDPATHS" = "yes"; then
43892 cat >>confdefs.h <<\_ACEOF
43893#define wxUSE_STDPATHS 1
43894_ACEOF
43895
43896fi
43897
a848cd7e
SC
43898if test "$wxUSE_TEXTBUFFER" = "yes"; then
43899 cat >>confdefs.h <<\_ACEOF
43900#define wxUSE_TEXTBUFFER 1
43901_ACEOF
43902
43903fi
43904
43905if test "$wxUSE_TEXTFILE" = "yes"; then
43906 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43907 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43908echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43909 else
43910 cat >>confdefs.h <<\_ACEOF
43911#define wxUSE_TEXTFILE 1
43912_ACEOF
43913
43914 fi
43915fi
43916
43917if test "$wxUSE_CONFIG" = "yes" ; then
43918 if test "$wxUSE_TEXTFILE" != "yes"; then
43919 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43920echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43921 else
43922 cat >>confdefs.h <<\_ACEOF
43923#define wxUSE_CONFIG 1
89be85c2
VS
43924_ACEOF
43925
43926 cat >>confdefs.h <<\_ACEOF
43927#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43928_ACEOF
43929
43930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43931 fi
43932fi
43933
43934if test "$wxUSE_INTL" = "yes" ; then
43935 if test "$wxUSE_FILE" != "yes"; then
43936 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43937echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43938 else
43939 cat >>confdefs.h <<\_ACEOF
43940#define wxUSE_INTL 1
43941_ACEOF
43942
43943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43944 GUIDIST="$GUIDIST INTL_DIST"
43945 fi
43946fi
43947
43948if test "$wxUSE_LOG" = "yes"; then
43949 cat >>confdefs.h <<\_ACEOF
43950#define wxUSE_LOG 1
43951_ACEOF
43952
43953
43954 if test "$wxUSE_LOGGUI" = "yes"; then
43955 cat >>confdefs.h <<\_ACEOF
43956#define wxUSE_LOGGUI 1
43957_ACEOF
43958
43959 fi
43960
43961 if test "$wxUSE_LOGWINDOW" = "yes"; then
43962 cat >>confdefs.h <<\_ACEOF
43963#define wxUSE_LOGWINDOW 1
43964_ACEOF
43965
43966 fi
43967
43968 if test "$wxUSE_LOGDIALOG" = "yes"; then
43969 cat >>confdefs.h <<\_ACEOF
43970#define wxUSE_LOG_DIALOG 1
43971_ACEOF
43972
43973 fi
0b78747f
MW
43974
43975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43976fi
43977
43978if test "$wxUSE_LONGLONG" = "yes"; then
43979 cat >>confdefs.h <<\_ACEOF
43980#define wxUSE_LONGLONG 1
43981_ACEOF
43982
43983fi
43984
43985if test "$wxUSE_GEOMETRY" = "yes"; then
43986 cat >>confdefs.h <<\_ACEOF
43987#define wxUSE_GEOMETRY 1
43988_ACEOF
43989
43990fi
43991
a848cd7e
SC
43992if test "$wxUSE_STREAMS" = "yes" ; then
43993 cat >>confdefs.h <<\_ACEOF
43994#define wxUSE_STREAMS 1
43995_ACEOF
43996
43997fi
43998
8b6682b9
JS
43999if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
44000 cat >>confdefs.h <<\_ACEOF
44001#define wxUSE_PRINTF_POS_PARAMS 1
44002_ACEOF
44003
44004fi
44005
44006
a848cd7e
SC
44007
44008if test "$wxUSE_DATETIME" = "yes"; then
44009
44010for ac_func in strptime
44011do
44012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
44013echo "$as_me:$LINENO: checking for $ac_func" >&5
44014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44015if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
44016 echo $ECHO_N "(cached) $ECHO_C" >&6
44017else
44018 cat >conftest.$ac_ext <<_ACEOF
44019/* confdefs.h. */
44020_ACEOF
44021cat confdefs.h >>conftest.$ac_ext
44022cat >>conftest.$ac_ext <<_ACEOF
44023/* end confdefs.h. */
ac1cb8d3
VS
44024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44026#define $ac_func innocuous_$ac_func
44027
a848cd7e
SC
44028/* System header to define __stub macros and hopefully few prototypes,
44029 which can conflict with char $ac_func (); below.
44030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44031 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44032
a848cd7e
SC
44033#ifdef __STDC__
44034# include <limits.h>
44035#else
44036# include <assert.h>
44037#endif
ac1cb8d3
VS
44038
44039#undef $ac_func
44040
f321ab7f 44041/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
44042#ifdef __cplusplus
44043extern "C"
f321ab7f 44044{
a848cd7e 44045#endif
f321ab7f
VS
44046/* We use char because int might match the return type of a gcc2
44047 builtin and then its argument prototype would still apply. */
a848cd7e
SC
44048char $ac_func ();
44049/* The GNU C library defines this for functions which it implements
44050 to always fail with ENOSYS. Some functions are actually named
44051 something starting with __ and the normal name is an alias. */
f321ab7f 44052#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 44053choke me
f321ab7f
VS
44054#else
44055char (*f) () = $ac_func;
44056#endif
44057#ifdef __cplusplus
44058}
a848cd7e
SC
44059#endif
44060
44061int
44062main ()
44063{
f321ab7f 44064return f != $ac_func;
a848cd7e
SC
44065 ;
44066 return 0;
44067}
44068_ACEOF
44069rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
44070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44071 (eval $ac_link) 2>conftest.er1
a848cd7e 44072 ac_status=$?
ac1cb8d3
VS
44073 grep -v '^ *+' conftest.er1 >conftest.err
44074 rm -f conftest.er1
44075 cat conftest.err >&5
a848cd7e
SC
44076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44077 (exit $ac_status); } &&
f321ab7f
VS
44078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44080 (eval $ac_try) 2>&5
ac1cb8d3
VS
44081 ac_status=$?
44082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44083 (exit $ac_status); }; } &&
44084 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
44085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44086 (eval $ac_try) 2>&5
a848cd7e
SC
44087 ac_status=$?
44088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44089 (exit $ac_status); }; }; then
44090 eval "$as_ac_var=yes"
44091else
44092 echo "$as_me: failed program was:" >&5
44093sed 's/^/| /' conftest.$ac_ext >&5
44094
f321ab7f 44095eval "$as_ac_var=no"
a848cd7e 44096fi
f321ab7f 44097rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 44098 conftest$ac_exeext conftest.$ac_ext
a848cd7e 44099fi
f321ab7f
VS
44100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
44102if test `eval echo '${'$as_ac_var'}'` = yes; then
44103 cat >>confdefs.h <<_ACEOF
44104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44105_ACEOF
44106
44107fi
44108done
44109
f536f005 44110 if test "$ac_cv_func_strptime" = "yes"; then
f321ab7f
VS
44111 echo "$as_me:$LINENO: checking for strptime declaration" >&5
44112echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
f536f005
VZ
44113if test "${wx_cv_func_strptime_decl+set}" = set; then
44114 echo $ECHO_N "(cached) $ECHO_C" >&6
44115else
44116
f321ab7f 44117 ac_ext=cc
9b8888f9
VZ
44118ac_cpp='$CXXCPP $CPPFLAGS'
44119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44122
f536f005
VZ
44123 cat >conftest.$ac_ext <<_ACEOF
44124/* confdefs.h. */
44125_ACEOF
44126cat confdefs.h >>conftest.$ac_ext
44127cat >>conftest.$ac_ext <<_ACEOF
44128/* end confdefs.h. */
44129
44130 #include <time.h>
44131
44132int
44133main ()
44134{
44135
44136 struct tm t;
44137 strptime("foo", "bar", &t);
44138
44139 ;
44140 return 0;
44141}
44142_ACEOF
44143rm -f conftest.$ac_objext
f321ab7f
VS
44144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44145 (eval $ac_compile) 2>conftest.er1
f536f005
VZ
44146 ac_status=$?
44147 grep -v '^ *+' conftest.er1 >conftest.err
44148 rm -f conftest.er1
44149 cat conftest.err >&5
44150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44151 (exit $ac_status); } &&
f321ab7f
VS
44152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
44153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44154 (eval $ac_try) 2>&5
f536f005
VZ
44155 ac_status=$?
44156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44157 (exit $ac_status); }; } &&
44158 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
44159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44160 (eval $ac_try) 2>&5
f536f005
VZ
44161 ac_status=$?
44162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44163 (exit $ac_status); }; }; then
44164 wx_cv_func_strptime_decl=yes
44165else
44166 echo "$as_me: failed program was:" >&5
44167sed 's/^/| /' conftest.$ac_ext >&5
44168
f321ab7f 44169wx_cv_func_strptime_decl=no
f536f005
VZ
44170
44171fi
f321ab7f 44172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
44173 ac_ext=c
44174ac_cpp='$CPP $CPPFLAGS'
44175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44177ac_compiler_gnu=$ac_cv_c_compiler_gnu
44178
f536f005
VZ
44179
44180
44181fi
f321ab7f
VS
44182echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
44183echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
f536f005
VZ
44184 fi
44185 if test "$wx_cv_func_strptime_decl" = "yes"; then
44186 cat >>confdefs.h <<\_ACEOF
44187#define HAVE_STRPTIME_DECL 1
44188_ACEOF
44189
44190 fi
a848cd7e 44191
f321ab7f
VS
44192 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44193echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
a848cd7e
SC
44194if test "${wx_cv_var_timezone+set}" = set; then
44195 echo $ECHO_N "(cached) $ECHO_C" >&6
44196else
44197
f321ab7f 44198 ac_ext=cc
715d53e4
VZ
44199ac_cpp='$CXXCPP $CPPFLAGS'
44200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44203
a848cd7e
SC
44204 cat >conftest.$ac_ext <<_ACEOF
44205/* confdefs.h. */
44206_ACEOF
44207cat confdefs.h >>conftest.$ac_ext
44208cat >>conftest.$ac_ext <<_ACEOF
44209/* end confdefs.h. */
44210
44211 #include <time.h>
44212
44213int
44214main ()
44215{
44216
44217 int tz;
44218 tz = timezone;
44219
44220 ;
44221 return 0;
44222}
44223_ACEOF
44224rm -f conftest.$ac_objext
f321ab7f
VS
44225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44226 (eval $ac_compile) 2>conftest.er1
a848cd7e 44227 ac_status=$?
ac1cb8d3
VS
44228 grep -v '^ *+' conftest.er1 >conftest.err
44229 rm -f conftest.er1
44230 cat conftest.err >&5
a848cd7e
SC
44231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44232 (exit $ac_status); } &&
f321ab7f
VS
44233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
44234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44235 (eval $ac_try) 2>&5
ac1cb8d3
VS
44236 ac_status=$?
44237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44238 (exit $ac_status); }; } &&
44239 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
44240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44241 (eval $ac_try) 2>&5
a848cd7e
SC
44242 ac_status=$?
44243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44244 (exit $ac_status); }; }; then
44245
44246 wx_cv_var_timezone=timezone
44247
44248else
44249 echo "$as_me: failed program was:" >&5
44250sed 's/^/| /' conftest.$ac_ext >&5
44251
44252
44253 cat >conftest.$ac_ext <<_ACEOF
44254/* confdefs.h. */
44255_ACEOF
44256cat confdefs.h >>conftest.$ac_ext
44257cat >>conftest.$ac_ext <<_ACEOF
44258/* end confdefs.h. */
44259
44260 #include <time.h>
44261
44262int
44263main ()
44264{
44265
44266 int tz;
44267 tz = _timezone;
44268
44269 ;
44270 return 0;
44271}
44272_ACEOF
44273rm -f conftest.$ac_objext
f321ab7f
VS
44274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44275 (eval $ac_compile) 2>conftest.er1
a848cd7e 44276 ac_status=$?
ac1cb8d3
VS
44277 grep -v '^ *+' conftest.er1 >conftest.err
44278 rm -f conftest.er1
44279 cat conftest.err >&5
a848cd7e
SC
44280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44281 (exit $ac_status); } &&
f321ab7f
VS
44282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
44283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44284 (eval $ac_try) 2>&5
ac1cb8d3
VS
44285 ac_status=$?
44286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44287 (exit $ac_status); }; } &&
44288 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
44289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44290 (eval $ac_try) 2>&5
a848cd7e
SC
44291 ac_status=$?
44292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44293 (exit $ac_status); }; }; then
44294
44295 wx_cv_var_timezone=_timezone
44296
44297else
44298 echo "$as_me: failed program was:" >&5
44299sed 's/^/| /' conftest.$ac_ext >&5
44300
44301
44302 cat >conftest.$ac_ext <<_ACEOF
44303/* confdefs.h. */
44304_ACEOF
44305cat confdefs.h >>conftest.$ac_ext
44306cat >>conftest.$ac_ext <<_ACEOF
44307/* end confdefs.h. */
44308
44309 #include <time.h>
44310
44311int
44312main ()
44313{
44314
44315 int tz;
44316 tz = __timezone;
44317
44318 ;
44319 return 0;
44320}
44321_ACEOF
44322rm -f conftest.$ac_objext
f321ab7f
VS
44323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44324 (eval $ac_compile) 2>conftest.er1
a848cd7e 44325 ac_status=$?
ac1cb8d3
VS
44326 grep -v '^ *+' conftest.er1 >conftest.err
44327 rm -f conftest.er1
44328 cat conftest.err >&5
a848cd7e
SC
44329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44330 (exit $ac_status); } &&
f321ab7f
VS
44331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
44332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44333 (eval $ac_try) 2>&5
ac1cb8d3
VS
44334 ac_status=$?
44335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44336 (exit $ac_status); }; } &&
44337 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
44338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44339 (eval $ac_try) 2>&5
a848cd7e
SC
44340 ac_status=$?
44341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44342 (exit $ac_status); }; }; then
44343
44344 wx_cv_var_timezone=__timezone
44345
44346else
44347 echo "$as_me: failed program was:" >&5
44348sed 's/^/| /' conftest.$ac_ext >&5
44349
44350
44351 if test "$USE_DOS" = 0 ; then
44352 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44353echo "$as_me: WARNING: no timezone variable" >&2;}
44354 fi
44355
44356
44357fi
f321ab7f 44358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44359
44360
44361fi
f321ab7f 44362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44363
44364
44365fi
f321ab7f 44366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
715d53e4
VZ
44367 ac_ext=c
44368ac_cpp='$CPP $CPPFLAGS'
44369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44371ac_compiler_gnu=$ac_cv_c_compiler_gnu
44372
a848cd7e
SC
44373
44374
44375fi
f321ab7f
VS
44376echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44377echo "${ECHO_T}$wx_cv_var_timezone" >&6
a848cd7e
SC
44378
44379 if test "x$wx_cv_var_timezone" != x ; then
44380 cat >>confdefs.h <<_ACEOF
44381#define WX_TIMEZONE $wx_cv_var_timezone
44382_ACEOF
44383
44384 fi
44385
44386
44387for ac_func in localtime
44388do
44389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
44390echo "$as_me:$LINENO: checking for $ac_func" >&5
44391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44392if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
44393 echo $ECHO_N "(cached) $ECHO_C" >&6
44394else
44395 cat >conftest.$ac_ext <<_ACEOF
44396/* confdefs.h. */
44397_ACEOF
44398cat confdefs.h >>conftest.$ac_ext
44399cat >>conftest.$ac_ext <<_ACEOF
44400/* end confdefs.h. */
ac1cb8d3
VS
44401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44403#define $ac_func innocuous_$ac_func
44404
a848cd7e
SC
44405/* System header to define __stub macros and hopefully few prototypes,
44406 which can conflict with char $ac_func (); below.
44407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44408 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44409
a848cd7e
SC
44410#ifdef __STDC__
44411# include <limits.h>
44412#else
44413# include <assert.h>
44414#endif
ac1cb8d3
VS
44415
44416#undef $ac_func
44417
f321ab7f 44418/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
44419#ifdef __cplusplus
44420extern "C"
f321ab7f 44421{
a848cd7e 44422#endif
f321ab7f
VS
44423/* We use char because int might match the return type of a gcc2
44424 builtin and then its argument prototype would still apply. */
a848cd7e
SC
44425char $ac_func ();
44426/* The GNU C library defines this for functions which it implements
44427 to always fail with ENOSYS. Some functions are actually named
44428 something starting with __ and the normal name is an alias. */
f321ab7f 44429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 44430choke me
f321ab7f
VS
44431#else
44432char (*f) () = $ac_func;
44433#endif
44434#ifdef __cplusplus
44435}
a848cd7e
SC
44436#endif
44437
44438int
44439main ()
44440{
f321ab7f 44441return f != $ac_func;
a848cd7e
SC
44442 ;
44443 return 0;
44444}
44445_ACEOF
44446rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
44447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44448 (eval $ac_link) 2>conftest.er1
a848cd7e 44449 ac_status=$?
ac1cb8d3
VS
44450 grep -v '^ *+' conftest.er1 >conftest.err
44451 rm -f conftest.er1
44452 cat conftest.err >&5
a848cd7e
SC
44453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44454 (exit $ac_status); } &&
f321ab7f
VS
44455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44457 (eval $ac_try) 2>&5
ac1cb8d3
VS
44458 ac_status=$?
44459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44460 (exit $ac_status); }; } &&
44461 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
44462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44463 (eval $ac_try) 2>&5
a848cd7e
SC
44464 ac_status=$?
44465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44466 (exit $ac_status); }; }; then
44467 eval "$as_ac_var=yes"
44468else
44469 echo "$as_me: failed program was:" >&5
44470sed 's/^/| /' conftest.$ac_ext >&5
44471
f321ab7f 44472eval "$as_ac_var=no"
a848cd7e 44473fi
f321ab7f 44474rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 44475 conftest$ac_exeext conftest.$ac_ext
a848cd7e 44476fi
f321ab7f
VS
44477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
44479if test `eval echo '${'$as_ac_var'}'` = yes; then
44480 cat >>confdefs.h <<_ACEOF
44481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44482_ACEOF
44483
44484fi
44485done
44486
44487
44488 if test "$ac_cv_func_localtime" = "yes"; then
f321ab7f
VS
44489 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44490echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
a848cd7e
SC
44491if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44492 echo $ECHO_N "(cached) $ECHO_C" >&6
44493else
44494
44495 cat >conftest.$ac_ext <<_ACEOF
44496/* confdefs.h. */
44497_ACEOF
44498cat confdefs.h >>conftest.$ac_ext
44499cat >>conftest.$ac_ext <<_ACEOF
44500/* end confdefs.h. */
44501
44502 #include <time.h>
44503
44504int
44505main ()
44506{
44507
44508 struct tm tm;
44509 tm.tm_gmtoff++;
44510
44511 ;
44512 return 0;
44513}
44514_ACEOF
44515rm -f conftest.$ac_objext
f321ab7f
VS
44516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44517 (eval $ac_compile) 2>conftest.er1
a848cd7e 44518 ac_status=$?
ac1cb8d3
VS
44519 grep -v '^ *+' conftest.er1 >conftest.err
44520 rm -f conftest.er1
44521 cat conftest.err >&5
a848cd7e
SC
44522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44523 (exit $ac_status); } &&
f321ab7f
VS
44524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44526 (eval $ac_try) 2>&5
ac1cb8d3
VS
44527 ac_status=$?
44528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44529 (exit $ac_status); }; } &&
44530 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
44531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44532 (eval $ac_try) 2>&5
a848cd7e
SC
44533 ac_status=$?
44534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44535 (exit $ac_status); }; }; then
44536
44537 wx_cv_struct_tm_has_gmtoff=yes
44538
44539else
44540 echo "$as_me: failed program was:" >&5
44541sed 's/^/| /' conftest.$ac_ext >&5
44542
f321ab7f 44543wx_cv_struct_tm_has_gmtoff=no
a848cd7e
SC
44544
44545fi
f321ab7f 44546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44547
44548fi
f321ab7f
VS
44549echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44550echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
a848cd7e
SC
44551 fi
44552
44553 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44554 cat >>confdefs.h <<\_ACEOF
44555#define WX_GMTOFF_IN_TM 1
44556_ACEOF
44557
44558 fi
44559
44560
44561
44562for ac_func in gettimeofday ftime
44563do
44564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f321ab7f
VS
44565echo "$as_me:$LINENO: checking for $ac_func" >&5
44566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44567if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e
SC
44568 echo $ECHO_N "(cached) $ECHO_C" >&6
44569else
44570 cat >conftest.$ac_ext <<_ACEOF
44571/* confdefs.h. */
44572_ACEOF
44573cat confdefs.h >>conftest.$ac_ext
44574cat >>conftest.$ac_ext <<_ACEOF
44575/* end confdefs.h. */
ac1cb8d3
VS
44576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44578#define $ac_func innocuous_$ac_func
44579
a848cd7e
SC
44580/* System header to define __stub macros and hopefully few prototypes,
44581 which can conflict with char $ac_func (); below.
44582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44583 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44584
a848cd7e
SC
44585#ifdef __STDC__
44586# include <limits.h>
44587#else
44588# include <assert.h>
44589#endif
ac1cb8d3
VS
44590
44591#undef $ac_func
44592
f321ab7f 44593/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
44594#ifdef __cplusplus
44595extern "C"
f321ab7f 44596{
a848cd7e 44597#endif
f321ab7f
VS
44598/* We use char because int might match the return type of a gcc2
44599 builtin and then its argument prototype would still apply. */
a848cd7e
SC
44600char $ac_func ();
44601/* The GNU C library defines this for functions which it implements
44602 to always fail with ENOSYS. Some functions are actually named
44603 something starting with __ and the normal name is an alias. */
f321ab7f 44604#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a848cd7e 44605choke me
f321ab7f
VS
44606#else
44607char (*f) () = $ac_func;
44608#endif
44609#ifdef __cplusplus
44610}
a848cd7e
SC
44611#endif
44612
44613int
44614main ()
44615{
f321ab7f 44616return f != $ac_func;
a848cd7e
SC
44617 ;
44618 return 0;
44619}
44620_ACEOF
44621rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
44622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44623 (eval $ac_link) 2>conftest.er1
a848cd7e 44624 ac_status=$?
ac1cb8d3
VS
44625 grep -v '^ *+' conftest.er1 >conftest.err
44626 rm -f conftest.er1
44627 cat conftest.err >&5
a848cd7e
SC
44628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44629 (exit $ac_status); } &&
f321ab7f
VS
44630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44632 (eval $ac_try) 2>&5
ac1cb8d3
VS
44633 ac_status=$?
44634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44635 (exit $ac_status); }; } &&
44636 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
44637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44638 (eval $ac_try) 2>&5
a848cd7e
SC
44639 ac_status=$?
44640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44641 (exit $ac_status); }; }; then
44642 eval "$as_ac_var=yes"
44643else
44644 echo "$as_me: failed program was:" >&5
44645sed 's/^/| /' conftest.$ac_ext >&5
44646
f321ab7f 44647eval "$as_ac_var=no"
a848cd7e 44648fi
f321ab7f 44649rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 44650 conftest$ac_exeext conftest.$ac_ext
a848cd7e 44651fi
f321ab7f
VS
44652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a848cd7e
SC
44654if test `eval echo '${'$as_ac_var'}'` = yes; then
44655 cat >>confdefs.h <<_ACEOF
44656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44657_ACEOF
44658 break
44659fi
44660done
44661
44662
44663 if test "$ac_cv_func_gettimeofday" = "yes"; then
f321ab7f
VS
44664 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44665echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
a848cd7e
SC
44666if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44667 echo $ECHO_N "(cached) $ECHO_C" >&6
44668else
44669
5d7b7554 44670 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
44671/* confdefs.h. */
44672_ACEOF
44673cat confdefs.h >>conftest.$ac_ext
44674cat >>conftest.$ac_ext <<_ACEOF
44675/* end confdefs.h. */
44676
44677 #include <sys/time.h>
44678 #include <unistd.h>
44679
44680int
44681main ()
44682{
44683
44684 struct timeval tv;
44685 gettimeofday(&tv, NULL);
44686
44687 ;
44688 return 0;
44689}
44690_ACEOF
44691rm -f conftest.$ac_objext
f321ab7f
VS
44692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44693 (eval $ac_compile) 2>conftest.er1
a848cd7e 44694 ac_status=$?
ac1cb8d3
VS
44695 grep -v '^ *+' conftest.er1 >conftest.err
44696 rm -f conftest.er1
44697 cat conftest.err >&5
a848cd7e
SC
44698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44699 (exit $ac_status); } &&
f321ab7f
VS
44700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44702 (eval $ac_try) 2>&5
ac1cb8d3
VS
44703 ac_status=$?
44704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44705 (exit $ac_status); }; } &&
44706 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
44707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44708 (eval $ac_try) 2>&5
a848cd7e
SC
44709 ac_status=$?
44710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44711 (exit $ac_status); }; }; then
44712 wx_cv_func_gettimeofday_has_2_args=yes
44713else
44714 echo "$as_me: failed program was:" >&5
44715sed 's/^/| /' conftest.$ac_ext >&5
44716
f321ab7f 44717cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
44718/* confdefs.h. */
44719_ACEOF
44720cat confdefs.h >>conftest.$ac_ext
44721cat >>conftest.$ac_ext <<_ACEOF
44722/* end confdefs.h. */
44723
44724 #include <sys/time.h>
44725 #include <unistd.h>
44726
44727int
44728main ()
44729{
44730
44731 struct timeval tv;
44732 gettimeofday(&tv);
44733
44734 ;
44735 return 0;
44736}
44737_ACEOF
44738rm -f conftest.$ac_objext
f321ab7f
VS
44739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44740 (eval $ac_compile) 2>conftest.er1
a848cd7e 44741 ac_status=$?
ac1cb8d3
VS
44742 grep -v '^ *+' conftest.er1 >conftest.err
44743 rm -f conftest.er1
44744 cat conftest.err >&5
a848cd7e
SC
44745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44746 (exit $ac_status); } &&
f321ab7f
VS
44747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44749 (eval $ac_try) 2>&5
ac1cb8d3
VS
44750 ac_status=$?
44751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44752 (exit $ac_status); }; } &&
44753 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
44754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44755 (eval $ac_try) 2>&5
a848cd7e
SC
44756 ac_status=$?
44757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44758 (exit $ac_status); }; }; then
44759 wx_cv_func_gettimeofday_has_2_args=no
44760else
44761 echo "$as_me: failed program was:" >&5
44762sed 's/^/| /' conftest.$ac_ext >&5
44763
44764
44765 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44766echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44767 wx_cv_func_gettimeofday_has_2_args=unknown
44768
44769
44770fi
f321ab7f 44771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44772
44773fi
f321ab7f 44774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44775
44776fi
f321ab7f
VS
44777echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44778echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
a848cd7e
SC
44779
44780 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44781 cat >>confdefs.h <<\_ACEOF
44782#define WX_GETTIMEOFDAY_NO_TZ 1
44783_ACEOF
44784
44785 fi
44786 fi
44787
44788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44789fi
44790
44791
44792if test "$wxUSE_SOCKETS" = "yes"; then
44793 if test "$wxUSE_MGL" = "1"; then
44794 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44795echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44796 wxUSE_SOCKETS="no"
44797 fi
44798fi
44799
44800if test "$wxUSE_SOCKETS" = "yes"; then
44801 if test "$TOOLKIT" != "MSW"; then
f321ab7f
VS
44802 echo "$as_me:$LINENO: checking for socket" >&5
44803echo $ECHO_N "checking for socket... $ECHO_C" >&6
a848cd7e
SC
44804if test "${ac_cv_func_socket+set}" = set; then
44805 echo $ECHO_N "(cached) $ECHO_C" >&6
44806else
44807 cat >conftest.$ac_ext <<_ACEOF
44808/* confdefs.h. */
44809_ACEOF
44810cat confdefs.h >>conftest.$ac_ext
44811cat >>conftest.$ac_ext <<_ACEOF
44812/* end confdefs.h. */
ac1cb8d3
VS
44813/* Define socket to an innocuous variant, in case <limits.h> declares socket.
44814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44815#define socket innocuous_socket
44816
a848cd7e
SC
44817/* System header to define __stub macros and hopefully few prototypes,
44818 which can conflict with char socket (); below.
44819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44820 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44821
a848cd7e
SC
44822#ifdef __STDC__
44823# include <limits.h>
44824#else
44825# include <assert.h>
44826#endif
ac1cb8d3
VS
44827
44828#undef socket
44829
f321ab7f 44830/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
44831#ifdef __cplusplus
44832extern "C"
f321ab7f 44833{
a848cd7e 44834#endif
f321ab7f
VS
44835/* We use char because int might match the return type of a gcc2
44836 builtin and then its argument prototype would still apply. */
a848cd7e
SC
44837char socket ();
44838/* The GNU C library defines this for functions which it implements
44839 to always fail with ENOSYS. Some functions are actually named
44840 something starting with __ and the normal name is an alias. */
f321ab7f 44841#if defined (__stub_socket) || defined (__stub___socket)
a848cd7e 44842choke me
f321ab7f
VS
44843#else
44844char (*f) () = socket;
44845#endif
44846#ifdef __cplusplus
44847}
a848cd7e
SC
44848#endif
44849
44850int
44851main ()
44852{
f321ab7f 44853return f != socket;
a848cd7e
SC
44854 ;
44855 return 0;
44856}
44857_ACEOF
44858rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
44859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44860 (eval $ac_link) 2>conftest.er1
a848cd7e 44861 ac_status=$?
ac1cb8d3
VS
44862 grep -v '^ *+' conftest.er1 >conftest.err
44863 rm -f conftest.er1
44864 cat conftest.err >&5
a848cd7e
SC
44865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44866 (exit $ac_status); } &&
f321ab7f
VS
44867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44869 (eval $ac_try) 2>&5
ac1cb8d3
VS
44870 ac_status=$?
44871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44872 (exit $ac_status); }; } &&
44873 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
44874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44875 (eval $ac_try) 2>&5
a848cd7e
SC
44876 ac_status=$?
44877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44878 (exit $ac_status); }; }; then
44879 ac_cv_func_socket=yes
44880else
44881 echo "$as_me: failed program was:" >&5
44882sed 's/^/| /' conftest.$ac_ext >&5
44883
f321ab7f 44884ac_cv_func_socket=no
a848cd7e 44885fi
f321ab7f 44886rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 44887 conftest$ac_exeext conftest.$ac_ext
a848cd7e 44888fi
f321ab7f
VS
44889echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44890echo "${ECHO_T}$ac_cv_func_socket" >&6
a848cd7e
SC
44891if test $ac_cv_func_socket = yes; then
44892 :
44893else
44894
f321ab7f
VS
44895 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44896echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
a848cd7e
SC
44897if test "${ac_cv_lib_socket_socket+set}" = set; then
44898 echo $ECHO_N "(cached) $ECHO_C" >&6
44899else
44900 ac_check_lib_save_LIBS=$LIBS
44901LIBS="-lsocket $LIBS"
44902cat >conftest.$ac_ext <<_ACEOF
44903/* confdefs.h. */
44904_ACEOF
44905cat confdefs.h >>conftest.$ac_ext
44906cat >>conftest.$ac_ext <<_ACEOF
44907/* end confdefs.h. */
44908
f321ab7f 44909/* Override any gcc2 internal prototype to avoid an error. */
a848cd7e
SC
44910#ifdef __cplusplus
44911extern "C"
44912#endif
f321ab7f
VS
44913/* We use char because int might match the return type of a gcc2
44914 builtin and then its argument prototype would still apply. */
a848cd7e
SC
44915char socket ();
44916int
44917main ()
44918{
f321ab7f 44919socket ();
a848cd7e
SC
44920 ;
44921 return 0;
44922}
44923_ACEOF
44924rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
44925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44926 (eval $ac_link) 2>conftest.er1
a848cd7e 44927 ac_status=$?
ac1cb8d3
VS
44928 grep -v '^ *+' conftest.er1 >conftest.err
44929 rm -f conftest.er1
44930 cat conftest.err >&5
a848cd7e
SC
44931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44932 (exit $ac_status); } &&
f321ab7f
VS
44933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44935 (eval $ac_try) 2>&5
ac1cb8d3
VS
44936 ac_status=$?
44937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44938 (exit $ac_status); }; } &&
44939 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
44940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44941 (eval $ac_try) 2>&5
a848cd7e
SC
44942 ac_status=$?
44943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44944 (exit $ac_status); }; }; then
44945 ac_cv_lib_socket_socket=yes
44946else
44947 echo "$as_me: failed program was:" >&5
44948sed 's/^/| /' conftest.$ac_ext >&5
44949
f321ab7f 44950ac_cv_lib_socket_socket=no
a848cd7e 44951fi
f321ab7f 44952rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 44953 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44954LIBS=$ac_check_lib_save_LIBS
44955fi
f321ab7f
VS
44956echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44957echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
a848cd7e
SC
44958if test $ac_cv_lib_socket_socket = yes; then
44959 if test "$INET_LINK" != " -lsocket"; then
44960 INET_LINK="$INET_LINK -lsocket"
44961 fi
44962else
44963
44964 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44965echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44966 wxUSE_SOCKETS=no
44967
44968
44969fi
44970
44971
44972
44973fi
44974
44975 fi
44976fi
44977
44978if test "$wxUSE_SOCKETS" = "yes" ; then
44979 if test "$TOOLKIT" != "MSW"; then
f321ab7f
VS
44980 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44981echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
a848cd7e
SC
44982if test "${wx_cv_type_getsockname3+set}" = set; then
44983 echo $ECHO_N "(cached) $ECHO_C" >&6
44984else
44985
f321ab7f 44986 ac_ext=cc
9b8888f9
VZ
44987ac_cpp='$CXXCPP $CPPFLAGS'
44988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44991
a848cd7e
SC
44992 cat >conftest.$ac_ext <<_ACEOF
44993/* confdefs.h. */
44994_ACEOF
44995cat confdefs.h >>conftest.$ac_ext
44996cat >>conftest.$ac_ext <<_ACEOF
44997/* end confdefs.h. */
44998
44999 #include <sys/types.h>
45000 #include <sys/socket.h>
45001
45002int
45003main ()
45004{
45005
45006 socklen_t len;
45007 getsockname(0, 0, &len);
45008
45009 ;
45010 return 0;
45011}
45012_ACEOF
45013rm -f conftest.$ac_objext
f321ab7f
VS
45014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45015 (eval $ac_compile) 2>conftest.er1
a848cd7e 45016 ac_status=$?
ac1cb8d3
VS
45017 grep -v '^ *+' conftest.er1 >conftest.err
45018 rm -f conftest.er1
45019 cat conftest.err >&5
a848cd7e
SC
45020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45021 (exit $ac_status); } &&
f321ab7f
VS
45022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45024 (eval $ac_try) 2>&5
ac1cb8d3
VS
45025 ac_status=$?
45026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45027 (exit $ac_status); }; } &&
45028 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
45029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45030 (eval $ac_try) 2>&5
a848cd7e
SC
45031 ac_status=$?
45032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45033 (exit $ac_status); }; }; then
45034 wx_cv_type_getsockname3=socklen_t
45035else
45036 echo "$as_me: failed program was:" >&5
45037sed 's/^/| /' conftest.$ac_ext >&5
45038
45039
9b8888f9 45040 CFLAGS_OLD="$CFLAGS"
a848cd7e 45041 if test "$GCC" = yes ; then
9b8888f9 45042 CFLAGS="-Werror $CFLAGS"
a848cd7e
SC
45043 fi
45044
45045 cat >conftest.$ac_ext <<_ACEOF
45046/* confdefs.h. */
45047_ACEOF
45048cat confdefs.h >>conftest.$ac_ext
45049cat >>conftest.$ac_ext <<_ACEOF
45050/* end confdefs.h. */
45051
45052 #include <sys/types.h>
45053 #include <sys/socket.h>
45054
45055int
45056main ()
45057{
45058
45059 size_t len;
45060 getsockname(0, 0, &len);
45061
45062 ;
45063 return 0;
45064}
45065_ACEOF
45066rm -f conftest.$ac_objext
f321ab7f
VS
45067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45068 (eval $ac_compile) 2>conftest.er1
a848cd7e 45069 ac_status=$?
ac1cb8d3
VS
45070 grep -v '^ *+' conftest.er1 >conftest.err
45071 rm -f conftest.er1
45072 cat conftest.err >&5
a848cd7e
SC
45073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45074 (exit $ac_status); } &&
f321ab7f
VS
45075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45077 (eval $ac_try) 2>&5
ac1cb8d3
VS
45078 ac_status=$?
45079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45080 (exit $ac_status); }; } &&
45081 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
45082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45083 (eval $ac_try) 2>&5
a848cd7e
SC
45084 ac_status=$?
45085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45086 (exit $ac_status); }; }; then
45087 wx_cv_type_getsockname3=size_t
45088else
45089 echo "$as_me: failed program was:" >&5
45090sed 's/^/| /' conftest.$ac_ext >&5
45091
f321ab7f 45092cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
45093/* confdefs.h. */
45094_ACEOF
45095cat confdefs.h >>conftest.$ac_ext
45096cat >>conftest.$ac_ext <<_ACEOF
45097/* end confdefs.h. */
45098
45099 #include <sys/types.h>
45100 #include <sys/socket.h>
45101
45102int
45103main ()
45104{
45105
45106 int len;
45107 getsockname(0, 0, &len);
45108
45109 ;
45110 return 0;
45111}
45112_ACEOF
45113rm -f conftest.$ac_objext
f321ab7f
VS
45114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45115 (eval $ac_compile) 2>conftest.er1
a848cd7e 45116 ac_status=$?
ac1cb8d3
VS
45117 grep -v '^ *+' conftest.er1 >conftest.err
45118 rm -f conftest.er1
45119 cat conftest.err >&5
a848cd7e
SC
45120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45121 (exit $ac_status); } &&
f321ab7f
VS
45122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45124 (eval $ac_try) 2>&5
ac1cb8d3
VS
45125 ac_status=$?
45126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45127 (exit $ac_status); }; } &&
45128 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
45129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45130 (eval $ac_try) 2>&5
a848cd7e
SC
45131 ac_status=$?
45132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45133 (exit $ac_status); }; }; then
45134 wx_cv_type_getsockname3=int
45135else
45136 echo "$as_me: failed program was:" >&5
45137sed 's/^/| /' conftest.$ac_ext >&5
45138
f321ab7f 45139wx_cv_type_getsockname3=unknown
a848cd7e
SC
45140
45141fi
f321ab7f 45142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45143
45144fi
f321ab7f 45145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45146
9b8888f9 45147 CFLAGS="$CFLAGS_OLD"
a848cd7e
SC
45148
45149
45150fi
f321ab7f 45151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
45152 ac_ext=c
45153ac_cpp='$CPP $CPPFLAGS'
45154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45156ac_compiler_gnu=$ac_cv_c_compiler_gnu
45157
a848cd7e
SC
45158
45159fi
f321ab7f
VS
45160echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
45161echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
a848cd7e
SC
45162
45163 if test "$wx_cv_type_getsockname3" = "unknown"; then
45164 wxUSE_SOCKETS=no
45165 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45166echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45167 else
45168 cat >>confdefs.h <<_ACEOF
9e03e02d 45169#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
45170_ACEOF
45171
45172 fi
f321ab7f
VS
45173 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
45174echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
5b674b9d
DE
45175if test "${wx_cv_type_getsockopt5+set}" = set; then
45176 echo $ECHO_N "(cached) $ECHO_C" >&6
45177else
45178
45179 cat >conftest.$ac_ext <<_ACEOF
45180/* confdefs.h. */
45181_ACEOF
45182cat confdefs.h >>conftest.$ac_ext
45183cat >>conftest.$ac_ext <<_ACEOF
45184/* end confdefs.h. */
45185
45186 #include <sys/types.h>
45187 #include <sys/socket.h>
45188
45189int
45190main ()
45191{
45192
45193 socklen_t len;
45194 getsockopt(0, 0, 0, 0, &len);
45195
45196 ;
45197 return 0;
45198}
45199_ACEOF
45200rm -f conftest.$ac_objext
f321ab7f
VS
45201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45202 (eval $ac_compile) 2>conftest.er1
5b674b9d
DE
45203 ac_status=$?
45204 grep -v '^ *+' conftest.er1 >conftest.err
45205 rm -f conftest.er1
45206 cat conftest.err >&5
45207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45208 (exit $ac_status); } &&
f321ab7f
VS
45209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45211 (eval $ac_try) 2>&5
5b674b9d
DE
45212 ac_status=$?
45213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45214 (exit $ac_status); }; } &&
45215 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
45216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45217 (eval $ac_try) 2>&5
5b674b9d
DE
45218 ac_status=$?
45219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45220 (exit $ac_status); }; }; then
45221 wx_cv_type_getsockopt5=socklen_t
45222else
45223 echo "$as_me: failed program was:" >&5
45224sed 's/^/| /' conftest.$ac_ext >&5
45225
45226
f321ab7f 45227 ac_ext=cc
e43101ee
SN
45228ac_cpp='$CXXCPP $CPPFLAGS'
45229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5b674b9d
DE
45232
45233 cat >conftest.$ac_ext <<_ACEOF
45234/* confdefs.h. */
45235_ACEOF
45236cat confdefs.h >>conftest.$ac_ext
45237cat >>conftest.$ac_ext <<_ACEOF
45238/* end confdefs.h. */
45239
45240 #include <sys/types.h>
45241 #include <sys/socket.h>
45242
45243int
45244main ()
45245{
45246
45247 size_t len;
45248 getsockopt(0, 0, 0, 0, &len);
45249
45250 ;
45251 return 0;
45252}
45253_ACEOF
45254rm -f conftest.$ac_objext
f321ab7f
VS
45255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45256 (eval $ac_compile) 2>conftest.er1
5b674b9d
DE
45257 ac_status=$?
45258 grep -v '^ *+' conftest.er1 >conftest.err
45259 rm -f conftest.er1
45260 cat conftest.err >&5
45261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45262 (exit $ac_status); } &&
f321ab7f
VS
45263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45265 (eval $ac_try) 2>&5
5b674b9d
DE
45266 ac_status=$?
45267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45268 (exit $ac_status); }; } &&
45269 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
45270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45271 (eval $ac_try) 2>&5
5b674b9d
DE
45272 ac_status=$?
45273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45274 (exit $ac_status); }; }; then
45275 wx_cv_type_getsockopt5=size_t
45276else
45277 echo "$as_me: failed program was:" >&5
45278sed 's/^/| /' conftest.$ac_ext >&5
45279
f321ab7f 45280cat >conftest.$ac_ext <<_ACEOF
5b674b9d
DE
45281/* confdefs.h. */
45282_ACEOF
45283cat confdefs.h >>conftest.$ac_ext
45284cat >>conftest.$ac_ext <<_ACEOF
45285/* end confdefs.h. */
45286
45287 #include <sys/types.h>
45288 #include <sys/socket.h>
45289
45290int
45291main ()
45292{
45293
45294 int len;
45295 getsockopt(0, 0, 0, 0, &len);
45296
45297 ;
45298 return 0;
45299}
45300_ACEOF
45301rm -f conftest.$ac_objext
f321ab7f
VS
45302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45303 (eval $ac_compile) 2>conftest.er1
5b674b9d
DE
45304 ac_status=$?
45305 grep -v '^ *+' conftest.er1 >conftest.err
45306 rm -f conftest.er1
45307 cat conftest.err >&5
45308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45309 (exit $ac_status); } &&
f321ab7f
VS
45310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45312 (eval $ac_try) 2>&5
5b674b9d
DE
45313 ac_status=$?
45314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45315 (exit $ac_status); }; } &&
45316 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
45317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45318 (eval $ac_try) 2>&5
5b674b9d
DE
45319 ac_status=$?
45320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45321 (exit $ac_status); }; }; then
45322 wx_cv_type_getsockopt5=int
45323else
45324 echo "$as_me: failed program was:" >&5
45325sed 's/^/| /' conftest.$ac_ext >&5
45326
f321ab7f 45327wx_cv_type_getsockopt5=unknown
5b674b9d
DE
45328
45329fi
f321ab7f 45330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5b674b9d
DE
45331
45332fi
f321ab7f 45333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e43101ee
SN
45334 ac_ext=c
45335ac_cpp='$CPP $CPPFLAGS'
45336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45338ac_compiler_gnu=$ac_cv_c_compiler_gnu
5b674b9d 45339
5b674b9d
DE
45340
45341
45342fi
f321ab7f 45343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5b674b9d
DE
45344
45345fi
f321ab7f
VS
45346echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
45347echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
5b674b9d
DE
45348
45349 if test "$wx_cv_type_getsockopt5" = "unknown"; then
45350 wxUSE_SOCKETS=no
45351 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45352echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45353 else
45354 cat >>confdefs.h <<_ACEOF
45355#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
45356_ACEOF
45357
45358 fi
45359 fi
45360fi
45361
45362if test "$wxUSE_SOCKETS" = "yes" ; then
45363 cat >>confdefs.h <<\_ACEOF
45364#define wxUSE_SOCKETS 1
45365_ACEOF
45366
45367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45368fi
45369
45370if test "$wxUSE_PROTOCOL" = "yes"; then
45371 if test "$wxUSE_SOCKETS" != "yes"; then
45372 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45373echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45374 wxUSE_PROTOCOL=no
45375 fi
45376fi
45377
45378if test "$wxUSE_PROTOCOL" = "yes"; then
45379 cat >>confdefs.h <<\_ACEOF
45380#define wxUSE_PROTOCOL 1
45381_ACEOF
45382
45383
45384 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45385 cat >>confdefs.h <<\_ACEOF
45386#define wxUSE_PROTOCOL_HTTP 1
45387_ACEOF
45388
45389 fi
45390 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45391 cat >>confdefs.h <<\_ACEOF
45392#define wxUSE_PROTOCOL_FTP 1
45393_ACEOF
45394
45395 fi
45396 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45397 cat >>confdefs.h <<\_ACEOF
45398#define wxUSE_PROTOCOL_FILE 1
45399_ACEOF
45400
45401 fi
45402else
45403 if test "$wxUSE_FS_INET" = "yes"; then
45404 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45405echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45406 wxUSE_FS_INET="no"
45407 fi
45408fi
45409
45410if test "$wxUSE_URL" = "yes"; then
45411 if test "$wxUSE_PROTOCOL" != "yes"; then
45412 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45413echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45414 wxUSE_URL=no
45415 fi
45416 if test "$wxUSE_URL" = "yes"; then
45417 cat >>confdefs.h <<\_ACEOF
45418#define wxUSE_URL 1
45419_ACEOF
45420
45421 fi
45422fi
45423
ca5c6ac3
VZ
45424if test "$wxUSE_VARIANT" = "yes"; then
45425 cat >>confdefs.h <<\_ACEOF
45426#define wxUSE_VARIANT 1
45427_ACEOF
45428
45429fi
45430
a848cd7e
SC
45431if test "$wxUSE_FS_INET" = "yes"; then
45432 cat >>confdefs.h <<\_ACEOF
45433#define wxUSE_FS_INET 1
45434_ACEOF
45435
45436fi
45437
45438
ee45c548
MW
45439if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45440 wxUSE_JOYSTICK=no
45441
45442 if test "$TOOLKIT" = "MSW"; then
45443 wxUSE_JOYSTICK=yes
45444
45445 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
45446 if test "$USE_DARWIN" = 1; then
f321ab7f
VS
45447 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45448echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
45449 ac_ext=cc
9b8888f9
VZ
45450ac_cpp='$CXXCPP $CPPFLAGS'
45451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45454
ee45c548
MW
45455 cat >conftest.$ac_ext <<_ACEOF
45456/* confdefs.h. */
45457_ACEOF
45458cat confdefs.h >>conftest.$ac_ext
45459cat >>conftest.$ac_ext <<_ACEOF
45460/* end confdefs.h. */
45461 #include <IOKit/hid/IOHIDLib.h>
45462int
45463main ()
45464{
45465 IOHIDQueueInterface *qi = NULL;
45466 IOHIDCallbackFunction cb = NULL;
45467 qi->setEventCallout(NULL, cb, NULL, NULL);
45468 ;
45469 return 0;
45470}
45471_ACEOF
45472rm -f conftest.$ac_objext
f321ab7f
VS
45473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45474 (eval $ac_compile) 2>conftest.er1
ee45c548
MW
45475 ac_status=$?
45476 grep -v '^ *+' conftest.er1 >conftest.err
45477 rm -f conftest.er1
45478 cat conftest.err >&5
45479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45480 (exit $ac_status); } &&
f321ab7f
VS
45481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45483 (eval $ac_try) 2>&5
ee45c548
MW
45484 ac_status=$?
45485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45486 (exit $ac_status); }; } &&
45487 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
45488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45489 (eval $ac_try) 2>&5
ee45c548
MW
45490 ac_status=$?
45491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45492 (exit $ac_status); }; }; then
45493 wxUSE_JOYSTICK=yes
a848cd7e 45494
ee45c548
MW
45495else
45496 echo "$as_me: failed program was:" >&5
45497sed 's/^/| /' conftest.$ac_ext >&5
45498
45499fi
f321ab7f 45500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
45501 ac_ext=c
45502ac_cpp='$CPP $CPPFLAGS'
45503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45505ac_compiler_gnu=$ac_cv_c_compiler_gnu
45506
f321ab7f
VS
45507 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45508echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
ee45c548
MW
45509 fi
45510
45511 else
b6814e24 45512 if test "$wxUSE_MGL" != "1"; then
f321ab7f
VS
45513 echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
45514echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6
ddbd3cd5 45515if test "${ac_cv_header_linux_joystick_h+set}" = set; then
a848cd7e 45516 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 45517else
ddbd3cd5 45518 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
45519/* confdefs.h. */
45520_ACEOF
45521cat confdefs.h >>conftest.$ac_ext
45522cat >>conftest.$ac_ext <<_ACEOF
45523/* end confdefs.h. */
ddbd3cd5
VZ
45524#include <stdio.h>
45525
45526#include <linux/joystick.h>
a848cd7e
SC
45527_ACEOF
45528rm -f conftest.$ac_objext
f321ab7f
VS
45529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45530 (eval $ac_compile) 2>conftest.er1
a848cd7e 45531 ac_status=$?
ac1cb8d3
VS
45532 grep -v '^ *+' conftest.er1 >conftest.err
45533 rm -f conftest.er1
45534 cat conftest.err >&5
a848cd7e
SC
45535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45536 (exit $ac_status); } &&
f321ab7f
VS
45537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45539 (eval $ac_try) 2>&5
ac1cb8d3
VS
45540 ac_status=$?
45541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45542 (exit $ac_status); }; } &&
45543 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
45544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45545 (eval $ac_try) 2>&5
a848cd7e
SC
45546 ac_status=$?
45547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548 (exit $ac_status); }; }; then
ddbd3cd5 45549 ac_cv_header_linux_joystick_h=yes
a848cd7e
SC
45550else
45551 echo "$as_me: failed program was:" >&5
45552sed 's/^/| /' conftest.$ac_ext >&5
45553
f321ab7f 45554ac_cv_header_linux_joystick_h=no
a848cd7e 45555fi
f321ab7f 45556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45557fi
f321ab7f
VS
45558echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
45559echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6
ddbd3cd5
VZ
45560if test $ac_cv_header_linux_joystick_h = yes; then
45561 wxUSE_JOYSTICK=yes
a848cd7e 45562fi
a848cd7e 45563
a848cd7e 45564
b6814e24 45565 fi
ee45c548 45566 fi
4cb1d3da 45567
ee45c548
MW
45568 if test "$wxUSE_JOYSTICK" = "yes"; then
45569 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45570#define wxUSE_JOYSTICK 1
45571_ACEOF
45572
ee45c548
MW
45573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45574 else
45575 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45576echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
45577 fi
45578fi
45579
45580
45581
45582if test "$wxUSE_FONTMAP" = "yes" ; then
45583 cat >>confdefs.h <<\_ACEOF
45584#define wxUSE_FONTMAP 1
45585_ACEOF
45586
45587fi
45588
45589if test "$wxUSE_UNICODE" = "yes" ; then
45590 cat >>confdefs.h <<\_ACEOF
45591#define wxUSE_UNICODE 1
45592_ACEOF
45593
45594
45595 if test "$USE_WIN32" != 1; then
45596 wxUSE_UNICODE_MSLU=no
45597 fi
45598
45599 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
f321ab7f
VS
45600 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45601echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
a848cd7e
SC
45602if test "${ac_cv_lib_unicows_main+set}" = set; then
45603 echo $ECHO_N "(cached) $ECHO_C" >&6
45604else
45605 ac_check_lib_save_LIBS=$LIBS
45606LIBS="-lunicows $LIBS"
45607cat >conftest.$ac_ext <<_ACEOF
45608/* confdefs.h. */
45609_ACEOF
45610cat confdefs.h >>conftest.$ac_ext
45611cat >>conftest.$ac_ext <<_ACEOF
45612/* end confdefs.h. */
45613
45614
45615int
45616main ()
45617{
f321ab7f 45618main ();
a848cd7e
SC
45619 ;
45620 return 0;
45621}
45622_ACEOF
45623rm -f conftest.$ac_objext conftest$ac_exeext
f321ab7f
VS
45624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45625 (eval $ac_link) 2>conftest.er1
a848cd7e 45626 ac_status=$?
ac1cb8d3
VS
45627 grep -v '^ *+' conftest.er1 >conftest.err
45628 rm -f conftest.er1
45629 cat conftest.err >&5
a848cd7e
SC
45630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45631 (exit $ac_status); } &&
f321ab7f
VS
45632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45634 (eval $ac_try) 2>&5
ac1cb8d3
VS
45635 ac_status=$?
45636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45637 (exit $ac_status); }; } &&
45638 { ac_try='test -s conftest$ac_exeext'
f321ab7f
VS
45639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45640 (eval $ac_try) 2>&5
a848cd7e
SC
45641 ac_status=$?
45642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45643 (exit $ac_status); }; }; then
45644 ac_cv_lib_unicows_main=yes
45645else
45646 echo "$as_me: failed program was:" >&5
45647sed 's/^/| /' conftest.$ac_ext >&5
45648
f321ab7f 45649ac_cv_lib_unicows_main=no
a848cd7e 45650fi
f321ab7f 45651rm -f conftest.err conftest.$ac_objext \
ac1cb8d3 45652 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45653LIBS=$ac_check_lib_save_LIBS
45654fi
f321ab7f
VS
45655echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45656echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
a848cd7e
SC
45657if test $ac_cv_lib_unicows_main = yes; then
45658
45659 cat >>confdefs.h <<\_ACEOF
45660#define wxUSE_UNICODE_MSLU 1
45661_ACEOF
45662
45663
45664else
45665
45666 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45667 Applications will only run on Windows NT/2000/XP!" >&5
45668echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45669 Applications will only run on Windows NT/2000/XP!" >&2;}
45670 wxUSE_UNICODE_MSLU=no
45671
45672fi
45673
45674 fi
45675fi
45676
45677if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45678 cat >>confdefs.h <<\_ACEOF
45679#define wxUSE_EXPERIMENTAL_PRINTF 1
45680_ACEOF
45681
45682fi
45683
45684
45685if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45686 cat >>confdefs.h <<\_ACEOF
45687#define wxUSE_POSTSCRIPT 1
45688_ACEOF
45689
45690fi
45691
45692cat >>confdefs.h <<\_ACEOF
45693#define wxUSE_AFM_FOR_POSTSCRIPT 1
45694_ACEOF
45695
45696
45697cat >>confdefs.h <<\_ACEOF
45698#define wxUSE_NORMALIZED_PS_FONTS 1
45699_ACEOF
45700
45701
45702
45703if test "$wxUSE_CONSTRAINTS" = "yes"; then
45704 cat >>confdefs.h <<\_ACEOF
45705#define wxUSE_CONSTRAINTS 1
45706_ACEOF
45707
45708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45709fi
45710
8a7b1113
VZ
45711if test "$wxUSE_MDI" = "yes"; then
45712 cat >>confdefs.h <<\_ACEOF
45713#define wxUSE_MDI 1
45714_ACEOF
45715
45716
45717 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45718 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45719#define wxUSE_MDI_ARCHITECTURE 1
45720_ACEOF
45721
8a7b1113
VZ
45722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45723 fi
a848cd7e
SC
45724fi
45725
45726if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45727 cat >>confdefs.h <<\_ACEOF
45728#define wxUSE_DOC_VIEW_ARCHITECTURE 1
45729_ACEOF
45730
45731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45732 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45734 fi
45735fi
45736
45737if test "$wxUSE_HELP" = "yes"; then
45738 cat >>confdefs.h <<\_ACEOF
45739#define wxUSE_HELP 1
45740_ACEOF
45741
45742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45743
45744 if test "$wxUSE_MSW" = 1; then
45745 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45746 cat >>confdefs.h <<\_ACEOF
45747#define wxUSE_MS_HTML_HELP 1
45748_ACEOF
45749
45750 fi
45751 fi
45752
45753 if test "$wxUSE_WXHTML_HELP" = "yes"; then
45754 if test "$wxUSE_HTML" = "yes"; then
45755 cat >>confdefs.h <<\_ACEOF
45756#define wxUSE_WXHTML_HELP 1
45757_ACEOF
45758
45759 else
45760 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45761echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45762 wxUSE_WXHTML_HELP=no
45763 fi
45764 fi
45765fi
45766
45767if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45768 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45769 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45770echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45771 else
45772 cat >>confdefs.h <<\_ACEOF
45773#define wxUSE_PRINTING_ARCHITECTURE 1
45774_ACEOF
45775
45776 fi
45777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45778fi
45779
45780if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45781 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45782echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45783 { (exit 1); exit 1; }; }
45784fi
45785
45786
efdf6afe
VZ
45787if test "$wxUSE_METAFILE" = "yes"; then
45788 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45789 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45790echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45791 wxUSE_METAFILE=no
45792 fi
45793fi
45794
45795
a848cd7e
SC
45796if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45797 -o "$wxUSE_CLIPBOARD" = "yes" \
45798 -o "$wxUSE_OLE" = "yes" \
45799 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45800
45801for ac_header in ole2.h
45802do
45803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f321ab7f
VS
45804if eval "test \"\${$as_ac_Header+set}\" = set"; then
45805 echo "$as_me:$LINENO: checking for $ac_header" >&5
45806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45807if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
45808 echo $ECHO_N "(cached) $ECHO_C" >&6
45809fi
f321ab7f
VS
45810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
45812else
45813 # Is the header compilable?
f321ab7f
VS
45814echo "$as_me:$LINENO: checking $ac_header usability" >&5
45815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a848cd7e
SC
45816cat >conftest.$ac_ext <<_ACEOF
45817/* confdefs.h. */
45818_ACEOF
45819cat confdefs.h >>conftest.$ac_ext
45820cat >>conftest.$ac_ext <<_ACEOF
45821/* end confdefs.h. */
45822$ac_includes_default
45823#include <$ac_header>
45824_ACEOF
45825rm -f conftest.$ac_objext
f321ab7f
VS
45826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45827 (eval $ac_compile) 2>conftest.er1
a848cd7e 45828 ac_status=$?
ac1cb8d3
VS
45829 grep -v '^ *+' conftest.er1 >conftest.err
45830 rm -f conftest.er1
45831 cat conftest.err >&5
a848cd7e
SC
45832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45833 (exit $ac_status); } &&
f321ab7f
VS
45834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45836 (eval $ac_try) 2>&5
ac1cb8d3
VS
45837 ac_status=$?
45838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45839 (exit $ac_status); }; } &&
45840 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
45841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45842 (eval $ac_try) 2>&5
a848cd7e
SC
45843 ac_status=$?
45844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45845 (exit $ac_status); }; }; then
45846 ac_header_compiler=yes
45847else
45848 echo "$as_me: failed program was:" >&5
45849sed 's/^/| /' conftest.$ac_ext >&5
45850
f321ab7f 45851ac_header_compiler=no
a848cd7e 45852fi
f321ab7f
VS
45853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45855echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e
SC
45856
45857# Is the header present?
f321ab7f
VS
45858echo "$as_me:$LINENO: checking $ac_header presence" >&5
45859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a848cd7e
SC
45860cat >conftest.$ac_ext <<_ACEOF
45861/* confdefs.h. */
45862_ACEOF
45863cat confdefs.h >>conftest.$ac_ext
45864cat >>conftest.$ac_ext <<_ACEOF
45865/* end confdefs.h. */
45866#include <$ac_header>
45867_ACEOF
f321ab7f
VS
45868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e
SC
45870 ac_status=$?
45871 grep -v '^ *+' conftest.er1 >conftest.err
45872 rm -f conftest.er1
45873 cat conftest.err >&5
45874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45875 (exit $ac_status); } >/dev/null; then
45876 if test -s conftest.err; then
fd5199d6
VZ
45877 ac_cpp_err=$ac_c_preproc_warn_flag
45878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
45879 else
45880 ac_cpp_err=
45881 fi
45882else
45883 ac_cpp_err=yes
45884fi
45885if test -z "$ac_cpp_err"; then
45886 ac_header_preproc=yes
45887else
45888 echo "$as_me: failed program was:" >&5
45889sed 's/^/| /' conftest.$ac_ext >&5
45890
45891 ac_header_preproc=no
45892fi
45893rm -f conftest.err conftest.$ac_ext
f321ab7f
VS
45894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45895echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e
SC
45896
45897# So? What about this header?
fd5199d6 45898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 45899 yes:no: )
a848cd7e
SC
45900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45904 ac_header_preproc=yes
a848cd7e 45905 ;;
ac1cb8d3 45906 no:yes:* )
a848cd7e
SC
45907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45910echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45914echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f321ab7f
VS
45919 (
45920 cat <<\_ASBOX
ac1cb8d3
VS
45921## ----------------------------------------- ##
45922## Report this to wx-dev@lists.wxwidgets.org ##
45923## ----------------------------------------- ##
a848cd7e 45924_ASBOX
f321ab7f
VS
45925 ) |
45926 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e
SC
45927 ;;
45928esac
f321ab7f
VS
45929echo "$as_me:$LINENO: checking for $ac_header" >&5
45930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45931if eval "test \"\${$as_ac_Header+set}\" = set"; then
a848cd7e
SC
45932 echo $ECHO_N "(cached) $ECHO_C" >&6
45933else
ac1cb8d3 45934 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e 45935fi
f321ab7f
VS
45936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e
SC
45938
45939fi
45940if test `eval echo '${'$as_ac_Header'}'` = yes; then
45941 cat >>confdefs.h <<_ACEOF
45942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45943_ACEOF
45944
45945fi
45946
45947done
45948
45949
45950 if test "$ac_cv_header_ole2_h" = "yes" ; then
45951 if test "$GCC" = yes ; then
f321ab7f
VS
45952 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45953echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
a848cd7e
SC
45954 cat >conftest.$ac_ext <<_ACEOF
45955/* confdefs.h. */
45956_ACEOF
45957cat confdefs.h >>conftest.$ac_ext
45958cat >>conftest.$ac_ext <<_ACEOF
45959/* end confdefs.h. */
45960#include <windows.h>
45961 #include <ole2.h>
45962int
45963main ()
45964{
45965
45966 ;
45967 return 0;
45968}
45969_ACEOF
45970rm -f conftest.$ac_objext
f321ab7f
VS
45971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45972 (eval $ac_compile) 2>conftest.er1
a848cd7e 45973 ac_status=$?
ac1cb8d3
VS
45974 grep -v '^ *+' conftest.er1 >conftest.err
45975 rm -f conftest.er1
45976 cat conftest.err >&5
a848cd7e
SC
45977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45978 (exit $ac_status); } &&
f321ab7f
VS
45979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45981 (eval $ac_try) 2>&5
ac1cb8d3
VS
45982 ac_status=$?
45983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45984 (exit $ac_status); }; } &&
45985 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
45986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45987 (eval $ac_try) 2>&5
a848cd7e
SC
45988 ac_status=$?
45989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45990 (exit $ac_status); }; }; then
f321ab7f
VS
45991 echo "$as_me:$LINENO: result: no" >&5
45992echo "${ECHO_T}no" >&6
a848cd7e
SC
45993else
45994 echo "$as_me: failed program was:" >&5
45995sed 's/^/| /' conftest.$ac_ext >&5
45996
f321ab7f
VS
45997echo "$as_me:$LINENO: result: yes" >&5
45998echo "${ECHO_T}yes" >&6
5ff751d6 45999 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 46000fi
f321ab7f 46001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46002 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
46003 if test "$wxUSE_OLE" = "yes" ; then
46004 cat >>confdefs.h <<\_ACEOF
46005#define wxUSE_OLE 1
f43426c1
RD
46006_ACEOF
46007
46008 cat >>confdefs.h <<\_ACEOF
46009#define wxUSE_OLE_AUTOMATION 1
46010_ACEOF
46011
46012 cat >>confdefs.h <<\_ACEOF
46013#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
46014_ACEOF
46015
0b78747f 46016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
46017 fi
46018 fi
46019
46020 if test "$wxUSE_DATAOBJ" = "yes" ; then
46021 cat >>confdefs.h <<\_ACEOF
46022#define wxUSE_DATAOBJ 1
46023_ACEOF
46024
46025 fi
46026 else
46027 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
46028echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
46029
46030 wxUSE_CLIPBOARD=no
46031 wxUSE_DRAG_AND_DROP=no
46032 wxUSE_DATAOBJ=no
46033 wxUSE_OLE=no
46034 fi
46035
46036 if test "$wxUSE_METAFILE" = "yes"; then
46037 cat >>confdefs.h <<\_ACEOF
46038#define wxUSE_METAFILE 1
46039_ACEOF
46040
46041
46042 cat >>confdefs.h <<\_ACEOF
46043#define wxUSE_ENH_METAFILE 1
46044_ACEOF
46045
46046 fi
46047fi
46048
46049if test "$wxUSE_IPC" = "yes"; then
0b78747f 46050 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
46051 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
46052echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 46053 wxUSE_IPC=no
a848cd7e
SC
46054 fi
46055
0b78747f
MW
46056 if test "$wxUSE_IPC" = "yes"; then
46057 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46058#define wxUSE_IPC 1
46059_ACEOF
46060
0b78747f
MW
46061 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46062 fi
a848cd7e
SC
46063fi
46064
eb730a0c 46065if test "$wxUSE_DATAOBJ" = "yes"; then
f321ab7f
VS
46066 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46067 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
46068echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
2113bc77
MW
46069 wxUSE_DATAOBJ=no
46070 else
46071 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
46072#define wxUSE_DATAOBJ 1
46073_ACEOF
46074
2113bc77 46075 fi
eb730a0c
JS
46076else
46077 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
46078echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
46079 wxUSE_CLIPBOARD=no
46080 wxUSE_DRAG_AND_DROP=no
46081fi
46082
a848cd7e 46083if test "$wxUSE_CLIPBOARD" = "yes"; then
f321ab7f
VS
46084 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46085 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
46086echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
a848cd7e
SC
46087 wxUSE_CLIPBOARD=no
46088 fi
46089
46090 if test "$wxUSE_CLIPBOARD" = "yes"; then
46091 cat >>confdefs.h <<\_ACEOF
46092#define wxUSE_CLIPBOARD 1
46093_ACEOF
46094
a848cd7e
SC
46095 fi
46096fi
46097
46098if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
46099 if test "$wxUSE_GTK" = 1; then
46100 if test "$WXGTK12" != 1; then
46101 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
46102echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
46103 wxUSE_DRAG_AND_DROP=no
46104 fi
46105 fi
46106
f321ab7f
VS
46107 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
46108 "$wxUSE_DFB" = 1; then
46109 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
46110echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
a848cd7e
SC
46111 wxUSE_DRAG_AND_DROP=no
46112 fi
46113
46114 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
46115 cat >>confdefs.h <<\_ACEOF
46116#define wxUSE_DRAG_AND_DROP 1
46117_ACEOF
46118
46119 fi
46120
46121fi
46122
46123if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
46124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
46125fi
46126
46127if test "$wxUSE_SPLINES" = "yes" ; then
46128 cat >>confdefs.h <<\_ACEOF
46129#define wxUSE_SPLINES 1
46130_ACEOF
46131
46132fi
46133
fbe2ca43
SN
46134if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
46135 cat >>confdefs.h <<\_ACEOF
46136#define wxUSE_MOUSEWHEEL 1
46137_ACEOF
46138
46139fi
46140
a848cd7e
SC
46141
46142USES_CONTROLS=0
46143if test "$wxUSE_CONTROLS" = "yes"; then
46144 USES_CONTROLS=1
46145fi
46146
46147if test "$wxUSE_ACCEL" = "yes"; then
46148 cat >>confdefs.h <<\_ACEOF
46149#define wxUSE_ACCEL 1
46150_ACEOF
46151
46152 USES_CONTROLS=1
46153fi
46154
7067783d 46155if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
46156 cat >>confdefs.h <<\_ACEOF
46157#define wxUSE_ANIMATIONCTRL 1
46158_ACEOF
46159
46160 USES_CONTROLS=1
46161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
46162fi
46163
a848cd7e
SC
46164if test "$wxUSE_BUTTON" = "yes"; then
46165 cat >>confdefs.h <<\_ACEOF
46166#define wxUSE_BUTTON 1
46167_ACEOF
46168
46169 USES_CONTROLS=1
46170fi
46171
46172if test "$wxUSE_BMPBUTTON" = "yes"; then
46173 cat >>confdefs.h <<\_ACEOF
46174#define wxUSE_BMPBUTTON 1
46175_ACEOF
46176
46177 USES_CONTROLS=1
46178fi
46179
46180if test "$wxUSE_CALCTRL" = "yes"; then
46181 cat >>confdefs.h <<\_ACEOF
46182#define wxUSE_CALENDARCTRL 1
46183_ACEOF
46184
46185 USES_CONTROLS=1
46186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
46187fi
46188
46189if test "$wxUSE_CARET" = "yes"; then
46190 cat >>confdefs.h <<\_ACEOF
46191#define wxUSE_CARET 1
46192_ACEOF
46193
46194 USES_CONTROLS=1
46195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
46196fi
46197
bd915ace
RR
46198if test "$wxUSE_COLLPANE" = "yes"; then
46199 cat >>confdefs.h <<\_ACEOF
46200#define wxUSE_COLLPANE 1
46201_ACEOF
46202
46203 USES_CONTROLS=1
46204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
46205fi
46206
a848cd7e
SC
46207if test "$wxUSE_COMBOBOX" = "yes"; then
46208 cat >>confdefs.h <<\_ACEOF
46209#define wxUSE_COMBOBOX 1
46210_ACEOF
46211
46212 USES_CONTROLS=1
46213fi
46214
a57d600f 46215if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 46216 cat >>confdefs.h <<\_ACEOF
a57d600f 46217#define wxUSE_COMBOCTRL 1
642bcba9
VZ
46218_ACEOF
46219
46220 USES_CONTROLS=1
46221fi
46222
a848cd7e
SC
46223if test "$wxUSE_CHOICE" = "yes"; then
46224 cat >>confdefs.h <<\_ACEOF
46225#define wxUSE_CHOICE 1
46226_ACEOF
46227
46228 USES_CONTROLS=1
46229fi
46230
92bbdbcd
WS
46231if test "$wxUSE_CHOICEBOOK" = "yes"; then
46232 cat >>confdefs.h <<\_ACEOF
46233#define wxUSE_CHOICEBOOK 1
46234_ACEOF
46235
46236 USES_CONTROLS=1
46237fi
46238
a848cd7e
SC
46239if test "$wxUSE_CHECKBOX" = "yes"; then
46240 cat >>confdefs.h <<\_ACEOF
46241#define wxUSE_CHECKBOX 1
46242_ACEOF
46243
46244 USES_CONTROLS=1
46245fi
46246
46247if test "$wxUSE_CHECKLST" = "yes"; then
46248 cat >>confdefs.h <<\_ACEOF
46249#define wxUSE_CHECKLISTBOX 1
46250_ACEOF
46251
46252 USES_CONTROLS=1
46253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
46254fi
46255
e9263684
VZ
46256if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46257 cat >>confdefs.h <<\_ACEOF
46258#define wxUSE_COLOURPICKERCTRL 1
46259_ACEOF
46260
46261 USES_CONTROLS=1
46262fi
46263
da98e9be
VZ
46264if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46265 cat >>confdefs.h <<\_ACEOF
46266#define wxUSE_DATEPICKCTRL 1
46267_ACEOF
46268
46269 USES_CONTROLS=1
46270fi
46271
e9263684
VZ
46272if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
46273 cat >>confdefs.h <<\_ACEOF
46274#define wxUSE_DIRPICKERCTRL 1
46275_ACEOF
46276
46277 USES_CONTROLS=1
46278fi
46279
46280if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
46281 cat >>confdefs.h <<\_ACEOF
46282#define wxUSE_FILEPICKERCTRL 1
46283_ACEOF
46284
46285 USES_CONTROLS=1
46286fi
46287
46288if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
46289 cat >>confdefs.h <<\_ACEOF
46290#define wxUSE_FONTPICKERCTRL 1
46291_ACEOF
46292
46293 USES_CONTROLS=1
46294fi
46295
a848cd7e 46296if test "$wxUSE_DISPLAY" = "yes"; then
f321ab7f
VS
46297 if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
46298 { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
46299echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
46300 wxUSE_DISPLAY=no
46301 else
46302 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46303#define wxUSE_DISPLAY 1
46304_ACEOF
46305
f321ab7f
VS
46306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
46307 fi
a848cd7e
SC
46308fi
46309
88bbc332
RR
46310if test "$wxUSE_DETECT_SM" = "yes"; then
46311 cat >>confdefs.h <<\_ACEOF
46312#define wxUSE_DETECT_SM 1
46313_ACEOF
46314
46315fi
46316
a848cd7e
SC
46317if test "$wxUSE_GAUGE" = "yes"; then
46318 cat >>confdefs.h <<\_ACEOF
46319#define wxUSE_GAUGE 1
46320_ACEOF
46321
46322 USES_CONTROLS=1
46323fi
46324
46325if test "$wxUSE_GRID" = "yes"; then
46326 cat >>confdefs.h <<\_ACEOF
46327#define wxUSE_GRID 1
46328_ACEOF
46329
46330 USES_CONTROLS=1
46331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46332fi
46333
6954625c
VZ
46334if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46335 cat >>confdefs.h <<\_ACEOF
46336#define wxUSE_HYPERLINKCTRL 1
46337_ACEOF
46338
46339 USES_CONTROLS=1
46340fi
46341
95a46303
RR
46342if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46343 cat >>confdefs.h <<\_ACEOF
46344#define wxUSE_BITMAPCOMBOBOX 1
46345_ACEOF
46346
46347 USES_CONTROLS=1
46348fi
46349
20e34ecc
RR
46350if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46351 cat >>confdefs.h <<\_ACEOF
46352#define wxUSE_DATAVIEWCTRL 1
46353_ACEOF
46354
46355 USES_CONTROLS=1
46356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46357fi
46358
a848cd7e
SC
46359if test "$wxUSE_IMAGLIST" = "yes"; then
46360 cat >>confdefs.h <<\_ACEOF
46361#define wxUSE_IMAGLIST 1
46362_ACEOF
46363
46364fi
46365
46366if test "$wxUSE_LISTBOOK" = "yes"; then
46367 cat >>confdefs.h <<\_ACEOF
46368#define wxUSE_LISTBOOK 1
46369_ACEOF
46370
46371 USES_CONTROLS=1
46372fi
46373
46374if test "$wxUSE_LISTBOX" = "yes"; then
46375 cat >>confdefs.h <<\_ACEOF
46376#define wxUSE_LISTBOX 1
46377_ACEOF
46378
46379 USES_CONTROLS=1
0b78747f 46380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
46381fi
46382
46383if test "$wxUSE_LISTCTRL" = "yes"; then
46384 if test "$wxUSE_IMAGLIST" = "yes"; then
46385 cat >>confdefs.h <<\_ACEOF
46386#define wxUSE_LISTCTRL 1
46387_ACEOF
46388
46389 USES_CONTROLS=1
46390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46391 else
46392 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46393echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
46394 fi
46395fi
46396
46397if test "$wxUSE_NOTEBOOK" = "yes"; then
46398 cat >>confdefs.h <<\_ACEOF
46399#define wxUSE_NOTEBOOK 1
46400_ACEOF
46401
46402 USES_CONTROLS=1
46403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46404fi
46405
a57d600f 46406if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 46407 cat >>confdefs.h <<\_ACEOF
a57d600f 46408#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
46409_ACEOF
46410
46411 USES_CONTROLS=1
46412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46413fi
46414
a848cd7e
SC
46415
46416if test "$wxUSE_RADIOBOX" = "yes"; then
46417 cat >>confdefs.h <<\_ACEOF
46418#define wxUSE_RADIOBOX 1
46419_ACEOF
46420
46421 USES_CONTROLS=1
46422fi
46423
46424if test "$wxUSE_RADIOBTN" = "yes"; then
46425 cat >>confdefs.h <<\_ACEOF
46426#define wxUSE_RADIOBTN 1
46427_ACEOF
46428
46429 USES_CONTROLS=1
46430fi
46431
46432if test "$wxUSE_SASH" = "yes"; then
46433 cat >>confdefs.h <<\_ACEOF
46434#define wxUSE_SASH 1
46435_ACEOF
46436
46437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46438fi
46439
46440if test "$wxUSE_SCROLLBAR" = "yes"; then
46441 cat >>confdefs.h <<\_ACEOF
46442#define wxUSE_SCROLLBAR 1
46443_ACEOF
46444
46445 USES_CONTROLS=1
46446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
46447fi
46448
3f7f284d
RD
46449if test "$wxUSE_SEARCHCTRL" = "yes"; then
46450 cat >>confdefs.h <<\_ACEOF
46451#define wxUSE_SEARCHCTRL 1
46452_ACEOF
46453
46454 USES_CONTROLS=1
46455fi
46456
a848cd7e
SC
46457if test "$wxUSE_SLIDER" = "yes"; then
46458 cat >>confdefs.h <<\_ACEOF
46459#define wxUSE_SLIDER 1
46460_ACEOF
46461
46462 USES_CONTROLS=1
46463fi
46464
46465if test "$wxUSE_SPINBTN" = "yes"; then
46466 cat >>confdefs.h <<\_ACEOF
46467#define wxUSE_SPINBTN 1
46468_ACEOF
46469
46470 USES_CONTROLS=1
46471fi
46472
46473if test "$wxUSE_SPINCTRL" = "yes"; then
46474 cat >>confdefs.h <<\_ACEOF
46475#define wxUSE_SPINCTRL 1
46476_ACEOF
46477
46478 USES_CONTROLS=1
46479fi
46480
46481if test "$wxUSE_SPLITTER" = "yes"; then
46482 cat >>confdefs.h <<\_ACEOF
46483#define wxUSE_SPLITTER 1
46484_ACEOF
46485
46486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46487fi
46488
46489if test "$wxUSE_STATBMP" = "yes"; then
46490 cat >>confdefs.h <<\_ACEOF
46491#define wxUSE_STATBMP 1
46492_ACEOF
46493
46494 USES_CONTROLS=1
46495fi
46496
46497if test "$wxUSE_STATBOX" = "yes"; then
46498 cat >>confdefs.h <<\_ACEOF
46499#define wxUSE_STATBOX 1
46500_ACEOF
46501
46502 USES_CONTROLS=1
46503fi
46504
46505if test "$wxUSE_STATTEXT" = "yes"; then
46506 cat >>confdefs.h <<\_ACEOF
46507#define wxUSE_STATTEXT 1
46508_ACEOF
46509
46510 USES_CONTROLS=1
46511fi
46512
46513if test "$wxUSE_STATLINE" = "yes"; then
46514 cat >>confdefs.h <<\_ACEOF
46515#define wxUSE_STATLINE 1
46516_ACEOF
46517
46518 USES_CONTROLS=1
46519fi
46520
46521if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
46522 cat >>confdefs.h <<\_ACEOF
46523#define wxUSE_NATIVE_STATUSBAR 1
46524_ACEOF
46525
a848cd7e
SC
46526 cat >>confdefs.h <<\_ACEOF
46527#define wxUSE_STATUSBAR 1
46528_ACEOF
46529
46530 USES_CONTROLS=1
46531
46532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46533fi
46534
f10e38c4 46535if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
46536 cat >>confdefs.h <<\_ACEOF
46537#define wxUSE_TAB_DIALOG 1
46538_ACEOF
46539
a848cd7e
SC
46540fi
46541
46542if test "$wxUSE_TEXTCTRL" = "yes"; then
46543 cat >>confdefs.h <<\_ACEOF
46544#define wxUSE_TEXTCTRL 1
46545_ACEOF
46546
46547 USES_CONTROLS=1
46548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46549fi
46550
46551if test "$wxUSE_TOGGLEBTN" = "yes"; then
46552 if test "$wxUSE_COCOA" = 1 ; then
46553 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46554echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46555 wxUSE_TOGGLEBTN=no
46556 fi
a848cd7e
SC
46557
46558 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46559 cat >>confdefs.h <<\_ACEOF
46560#define wxUSE_TOGGLEBTN 1
46561_ACEOF
46562
46563 USES_CONTROLS=1
46564 fi
46565fi
46566
a848cd7e
SC
46567if test "$wxUSE_TOOLBAR" = "yes"; then
46568 cat >>confdefs.h <<\_ACEOF
46569#define wxUSE_TOOLBAR 1
46570_ACEOF
46571
46572 USES_CONTROLS=1
46573
452b6243
VS
46574 if test "$wxUSE_UNIVERSAL" = "yes"; then
46575 wxUSE_TOOLBAR_NATIVE="no"
46576 else
46577 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
46578 cat >>confdefs.h <<\_ACEOF
46579#define wxUSE_TOOLBAR_NATIVE 1
46580_ACEOF
46581
a848cd7e
SC
46582 fi
46583
46584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46585fi
46586
46587if test "$wxUSE_TOOLTIPS" = "yes"; then
46588 if test "$wxUSE_MOTIF" = 1; then
46589 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46590echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46591 else
46592 if test "$wxUSE_UNIVERSAL" = "yes"; then
46593 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46594echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46595 else
46596 cat >>confdefs.h <<\_ACEOF
46597#define wxUSE_TOOLTIPS 1
46598_ACEOF
46599
46600 fi
46601 fi
46602fi
46603
0093c2fc
VZ
46604if test "$wxUSE_TREEBOOK" = "yes"; then
46605 cat >>confdefs.h <<\_ACEOF
46606#define wxUSE_TREEBOOK 1
46607_ACEOF
46608
46609 USES_CONTROLS=1
46610fi
46611
5ec3bc43
JS
46612if test "$wxUSE_TOOLBOOK" = "yes"; then
46613 cat >>confdefs.h <<\_ACEOF
46614#define wxUSE_TOOLBOOK 1
46615_ACEOF
46616
46617 USES_CONTROLS=1
46618fi
46619
a848cd7e
SC
46620if test "$wxUSE_TREECTRL" = "yes"; then
46621 if test "$wxUSE_IMAGLIST" = "yes"; then
46622 cat >>confdefs.h <<\_ACEOF
46623#define wxUSE_TREECTRL 1
46624_ACEOF
46625
46626 USES_CONTROLS=1
46627 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46628 else
46629 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46630echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46631 fi
46632fi
46633
46634if test "$wxUSE_POPUPWIN" = "yes"; then
46635 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46636 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46637echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46638 else
46639 if test "$wxUSE_PM" = 1; then
46640 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46641echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46642 else
46643 cat >>confdefs.h <<\_ACEOF
46644#define wxUSE_POPUPWIN 1
46645_ACEOF
46646
0b78747f 46647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
46648
46649 USES_CONTROLS=1
46650 fi
46651 fi
46652fi
46653
0dcd06dd 46654if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
56c6aab7 46655 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
480b9f18 46656 { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
56c6aab7 46657echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
b843b628
MB
46658 else
46659 cat >>confdefs.h <<\_ACEOF
46660#define wxUSE_DIALUP_MANAGER 1
46661_ACEOF
46662
46663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46664 fi
46665fi
46666
a848cd7e
SC
46667if test "$wxUSE_TIPWINDOW" = "yes"; then
46668 if test "$wxUSE_PM" = 1; then
46669 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46670echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46671 else
46672 cat >>confdefs.h <<\_ACEOF
46673#define wxUSE_TIPWINDOW 1
46674_ACEOF
46675
46676 fi
46677fi
46678
46679if test "$USES_CONTROLS" = 1; then
46680 cat >>confdefs.h <<\_ACEOF
46681#define wxUSE_CONTROLS 1
46682_ACEOF
46683
46684fi
46685
46686
46687if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46688 cat >>confdefs.h <<\_ACEOF
46689#define wxUSE_ACCESSIBILITY 1
46690_ACEOF
46691
46692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46693fi
46694
38b4a946
VZ
46695if test "$wxUSE_DC_CACHEING" = "yes"; then
46696 cat >>confdefs.h <<\_ACEOF
46697#define wxUSE_DC_CACHEING 1
46698_ACEOF
46699
46700fi
46701
a848cd7e
SC
46702if test "$wxUSE_DRAGIMAGE" = "yes"; then
46703 cat >>confdefs.h <<\_ACEOF
46704#define wxUSE_DRAGIMAGE 1
46705_ACEOF
46706
46707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46708fi
46709
46710if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
46711 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46712 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46713echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46714 else
46715 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46716#define wxUSE_EXCEPTIONS 1
46717_ACEOF
46718
07bea8f0
VS
46719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46720 fi
a848cd7e
SC
46721fi
46722
46723USE_HTML=0
46724if test "$wxUSE_HTML" = "yes"; then
46725 cat >>confdefs.h <<\_ACEOF
46726#define wxUSE_HTML 1
46727_ACEOF
46728
46729 USE_HTML=1
46730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
46731 if test "$wxUSE_MAC" = 1; then
46732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46733 fi
a848cd7e 46734fi
646b6ec1 46735if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 46736 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 46737 old_CPPFLAGS="$CPPFLAGS"
c92ad099 46738 CPPFLAGS="-x objective-c++ $CPPFLAGS"
f321ab7f
VS
46739 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46740echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
07bea8f0
VS
46741if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46742 echo $ECHO_N "(cached) $ECHO_C" >&6
46743else
46744 cat >conftest.$ac_ext <<_ACEOF
46745/* confdefs.h. */
46746_ACEOF
46747cat confdefs.h >>conftest.$ac_ext
46748cat >>conftest.$ac_ext <<_ACEOF
46749/* end confdefs.h. */
4fd169bd
VZ
46750
46751 #include <Carbon/Carbon.h>
46752 #include <WebKit/WebKit.h>
46753
07bea8f0
VS
46754
46755#include <WebKit/HIWebView.h>
46756_ACEOF
46757rm -f conftest.$ac_objext
f321ab7f
VS
46758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46759 (eval $ac_compile) 2>conftest.er1
07bea8f0
VS
46760 ac_status=$?
46761 grep -v '^ *+' conftest.er1 >conftest.err
46762 rm -f conftest.er1
46763 cat conftest.err >&5
46764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46765 (exit $ac_status); } &&
f321ab7f
VS
46766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46768 (eval $ac_try) 2>&5
07bea8f0
VS
46769 ac_status=$?
46770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46771 (exit $ac_status); }; } &&
46772 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
46773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46774 (eval $ac_try) 2>&5
07bea8f0
VS
46775 ac_status=$?
46776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46777 (exit $ac_status); }; }; then
46778 ac_cv_header_WebKit_HIWebView_h=yes
46779else
46780 echo "$as_me: failed program was:" >&5
46781sed 's/^/| /' conftest.$ac_ext >&5
46782
f321ab7f 46783ac_cv_header_WebKit_HIWebView_h=no
07bea8f0 46784fi
f321ab7f 46785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
07bea8f0 46786fi
f321ab7f
VS
46787echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46788echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
07bea8f0
VS
46789if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46790
46791 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
46792#define wxUSE_WEBKIT 1
46793_ACEOF
46794
07bea8f0
VS
46795 WEBKIT_LINK="-framework WebKit"
46796
46797else
46798
46799 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46800echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46801 wxUSE_WEBKIT=no
46802
646b6ec1
VS
46803fi
46804
07bea8f0
VS
46805
46806 CPPFLAGS="$old_CPPFLAGS"
46807 elif test "$wxUSE_COCOA" = 1; then
46808 cat >>confdefs.h <<\_ACEOF
46809#define wxUSE_WEBKIT 1
46810_ACEOF
46811
46812 else
46813 wxUSE_WEBKIT=no
46814 fi
46815fi
46816
9a8f0513
VS
46817USE_XRC=0
46818if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
46819 if test "$wxUSE_XML" != "yes"; then
46820 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46821echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46822 wxUSE_XRC=no
46823 else
46824 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46825#define wxUSE_XRC 1
46826_ACEOF
46827
d2ebf0b7
VS
46828 USE_XRC=1
46829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46830 fi
9a8f0513 46831fi
07bea8f0 46832
3f60522a
JS
46833USE_AUI=0
46834if test "$wxUSE_AUI" = "yes"; then
46835 cat >>confdefs.h <<\_ACEOF
46836#define wxUSE_AUI 1
46837_ACEOF
46838
46839 USE_AUI=1
46840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46841fi
46842
a848cd7e
SC
46843if test "$wxUSE_MENUS" = "yes"; then
46844 cat >>confdefs.h <<\_ACEOF
46845#define wxUSE_MENUS 1
46846_ACEOF
46847
46848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46849fi
46850
46851if test "$wxUSE_METAFILE" = "yes"; then
46852 cat >>confdefs.h <<\_ACEOF
46853#define wxUSE_METAFILE 1
46854_ACEOF
46855
46856fi
46857
46858if test "$wxUSE_MIMETYPE" = "yes"; then
46859 cat >>confdefs.h <<\_ACEOF
46860#define wxUSE_MIMETYPE 1
46861_ACEOF
46862
46863fi
46864
46865if test "$wxUSE_MINIFRAME" = "yes"; then
46866 cat >>confdefs.h <<\_ACEOF
46867#define wxUSE_MINIFRAME 1
46868_ACEOF
46869
46870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46871fi
46872
46873if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46874 cat >>confdefs.h <<\_ACEOF
46875#define wxUSE_SYSTEM_OPTIONS 1
46876_ACEOF
46877
46878 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46879 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46881 fi
46882fi
46883
46884
46885if test "$wxUSE_VALIDATORS" = "yes"; then
46886 cat >>confdefs.h <<\_ACEOF
46887#define wxUSE_VALIDATORS 1
46888_ACEOF
46889
46890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46891fi
46892
46893if test "$wxUSE_PALETTE" = "yes" ; then
f321ab7f
VS
46894 if test "$wxUSE_DFB" = 1; then
46895 { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46896echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46897 wxUSE_PALETTE=no
46898 else
46899 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46900#define wxUSE_PALETTE 1
46901_ACEOF
46902
f321ab7f 46903 fi
a848cd7e
SC
46904fi
46905
46906if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46907 LIBS=" -lunicows $LIBS"
46908fi
46909
91dea314
MW
46910USE_RICHTEXT=0
46911if test "$wxUSE_RICHTEXT" = "yes"; then
46912 cat >>confdefs.h <<\_ACEOF
46913#define wxUSE_RICHTEXT 1
46914_ACEOF
46915
46916 USE_RICHTEXT=1
46917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46918fi
46919
a848cd7e
SC
46920
46921if test "$wxUSE_IMAGE" = "yes" ; then
46922 cat >>confdefs.h <<\_ACEOF
46923#define wxUSE_IMAGE 1
46924_ACEOF
46925
46926
46927 if test "$wxUSE_GIF" = "yes" ; then
46928 cat >>confdefs.h <<\_ACEOF
46929#define wxUSE_GIF 1
46930_ACEOF
46931
46932 fi
46933
46934 if test "$wxUSE_PCX" = "yes" ; then
46935 cat >>confdefs.h <<\_ACEOF
46936#define wxUSE_PCX 1
46937_ACEOF
46938
46939 fi
46940
bb9e79c0
VZ
46941 if test "$wxUSE_TGA" = "yes" ; then
46942 cat >>confdefs.h <<\_ACEOF
46943#define wxUSE_TGA 1
46944_ACEOF
46945
46946 fi
46947
a848cd7e
SC
46948 if test "$wxUSE_IFF" = "yes" ; then
46949 cat >>confdefs.h <<\_ACEOF
46950#define wxUSE_IFF 1
46951_ACEOF
46952
46953 fi
46954
46955 if test "$wxUSE_PNM" = "yes" ; then
46956 cat >>confdefs.h <<\_ACEOF
46957#define wxUSE_PNM 1
46958_ACEOF
46959
46960 fi
46961
46962 if test "$wxUSE_XPM" = "yes" ; then
46963 cat >>confdefs.h <<\_ACEOF
46964#define wxUSE_XPM 1
46965_ACEOF
46966
46967 fi
46968
46969 if test "$wxUSE_ICO_CUR" = "yes" ; then
46970 cat >>confdefs.h <<\_ACEOF
46971#define wxUSE_ICO_CUR 1
46972_ACEOF
46973
46974 fi
46975fi
46976
46977
319c5ed4
VZ
46978if test "$wxUSE_ABOUTDLG" = "yes"; then
46979 cat >>confdefs.h <<\_ACEOF
46980#define wxUSE_ABOUTDLG 1
46981_ACEOF
46982
46983fi
46984
a848cd7e
SC
46985if test "$wxUSE_CHOICEDLG" = "yes"; then
46986 cat >>confdefs.h <<\_ACEOF
46987#define wxUSE_CHOICEDLG 1
46988_ACEOF
46989
46990fi
46991
46992if test "$wxUSE_COLOURDLG" = "yes"; then
46993 cat >>confdefs.h <<\_ACEOF
46994#define wxUSE_COLOURDLG 1
46995_ACEOF
46996
46997fi
46998
46999if test "$wxUSE_FILEDLG" = "yes"; then
47000 cat >>confdefs.h <<\_ACEOF
47001#define wxUSE_FILEDLG 1
47002_ACEOF
47003
47004fi
47005
47006if test "$wxUSE_FINDREPLDLG" = "yes"; then
47007 cat >>confdefs.h <<\_ACEOF
47008#define wxUSE_FINDREPLDLG 1
47009_ACEOF
47010
47011fi
47012
47013if test "$wxUSE_FONTDLG" = "yes"; then
47014 cat >>confdefs.h <<\_ACEOF
47015#define wxUSE_FONTDLG 1
47016_ACEOF
47017
47018fi
47019
47020if test "$wxUSE_DIRDLG" = "yes"; then
47021 if test "$wxUSE_TREECTRL" != "yes"; then
47022 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
47023echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
47024 else
47025 cat >>confdefs.h <<\_ACEOF
47026#define wxUSE_DIRDLG 1
47027_ACEOF
47028
47029 fi
47030fi
47031
47032if test "$wxUSE_MSGDLG" = "yes"; then
47033 cat >>confdefs.h <<\_ACEOF
47034#define wxUSE_MSGDLG 1
47035_ACEOF
47036
47037fi
47038
47039if test "$wxUSE_NUMBERDLG" = "yes"; then
47040 cat >>confdefs.h <<\_ACEOF
47041#define wxUSE_NUMBERDLG 1
47042_ACEOF
47043
47044fi
47045
47046if test "$wxUSE_PROGRESSDLG" = "yes"; then
47047 if test "$wxUSE_CONSTRAINTS" != "yes"; then
47048 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
47049echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
47050 else
47051 cat >>confdefs.h <<\_ACEOF
47052#define wxUSE_PROGRESSDLG 1
47053_ACEOF
47054
47055 fi
47056fi
47057
47058if test "$wxUSE_SPLASH" = "yes"; then
47059 cat >>confdefs.h <<\_ACEOF
47060#define wxUSE_SPLASH 1
47061_ACEOF
47062
2057db16 47063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
47064fi
47065
47066if test "$wxUSE_STARTUP_TIPS" = "yes"; then
47067 if test "$wxUSE_CONSTRAINTS" != "yes"; then
47068 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
47069echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
47070 else
47071 cat >>confdefs.h <<\_ACEOF
47072#define wxUSE_STARTUP_TIPS 1
47073_ACEOF
47074
47075 fi
47076fi
47077
47078if test "$wxUSE_TEXTDLG" = "yes"; then
47079 cat >>confdefs.h <<\_ACEOF
47080#define wxUSE_TEXTDLG 1
47081_ACEOF
47082
47083fi
47084
47085if test "$wxUSE_WIZARDDLG" = "yes"; then
47086 cat >>confdefs.h <<\_ACEOF
47087#define wxUSE_WIZARDDLG 1
47088_ACEOF
47089
47090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
47091fi
47092
47093
64b75e64
RD
47094if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
47095 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
47096 cat >>confdefs.h <<\_ACEOF
47097#define wxUSE_GRAPHICS_CONTEXT 1
47098_ACEOF
47099
47100 elif test "$wxUSE_GTK" != 1; then
47101 cat >>confdefs.h <<\_ACEOF
47102#define wxUSE_GRAPHICS_CONTEXT 1
47103_ACEOF
47104
47105 else
47106
47107pkg_failed=no
f321ab7f
VS
47108echo "$as_me:$LINENO: checking for CAIRO" >&5
47109echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
64b75e64
RD
47110
47111if test -n "$PKG_CONFIG"; then
47112 if test -n "$CAIRO_CFLAGS"; then
47113 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
47114 else
47115 if test -n "$PKG_CONFIG" && \
47116 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47117 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47118 ac_status=$?
47119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47120 (exit $ac_status); }; then
47121 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
47122else
47123 pkg_failed=yes
47124fi
47125 fi
47126else
47127 pkg_failed=untried
47128fi
47129if test -n "$PKG_CONFIG"; then
47130 if test -n "$CAIRO_LIBS"; then
47131 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
47132 else
47133 if test -n "$PKG_CONFIG" && \
47134 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47135 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47136 ac_status=$?
47137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47138 (exit $ac_status); }; then
47139 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
47140else
47141 pkg_failed=yes
47142fi
47143 fi
47144else
47145 pkg_failed=untried
47146fi
47147
47148
47149
47150if test $pkg_failed = yes; then
47151
47152if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47153 _pkg_short_errors_supported=yes
47154else
47155 _pkg_short_errors_supported=no
47156fi
47157 if test $_pkg_short_errors_supported = yes; then
47158 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
47159 else
47160 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
47161 fi
47162 # Put the nasty error message in config.log where it belongs
47163 echo "$CAIRO_PKG_ERRORS" >&5
47164
ec3edcc9 47165 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
47166echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47167
64b75e64 47168elif test $pkg_failed = untried; then
ec3edcc9 47169 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
47170echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47171
64b75e64
RD
47172else
47173 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
47174 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
f321ab7f
VS
47175 echo "$as_me:$LINENO: result: yes" >&5
47176echo "${ECHO_T}yes" >&6
ec3edcc9 47177 cat >>confdefs.h <<\_ACEOF
64b75e64
RD
47178#define wxUSE_GRAPHICS_CONTEXT 1
47179_ACEOF
47180
64b75e64
RD
47181fi
47182 fi
47183fi
47184
47185
f10e38c4
VZ
47186USE_MEDIA=0
47187
ce756cb0 47188if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
47189 USE_MEDIA=1
47190
ce756cb0 47191 if test "$wxUSE_GTK" = 1; then
c9a66001 47192 wxUSE_GSTREAMER="no"
ce756cb0 47193
f10e38c4
VZ
47194 GST_VERSION_MAJOR=0
47195 GST_VERSION_MINOR=10
2f6c5bb5 47196 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
47197
47198 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 47199
3ecd9f92 47200pkg_failed=no
f321ab7f
VS
47201echo "$as_me:$LINENO: checking for GST" >&5
47202echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 47203
3ecd9f92
MW
47204if test -n "$PKG_CONFIG"; then
47205 if test -n "$GST_CFLAGS"; then
47206 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47207 else
47208 if test -n "$PKG_CONFIG" && \
47209 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47210 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47211 ac_status=$?
47212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47213 (exit $ac_status); }; then
47214 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 47215else
3ecd9f92
MW
47216 pkg_failed=yes
47217fi
47218 fi
47219else
47220 pkg_failed=untried
dae87f93 47221fi
dae87f93 47222if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47223 if test -n "$GST_LIBS"; then
47224 pkg_cv_GST_LIBS="$GST_LIBS"
47225 else
47226 if test -n "$PKG_CONFIG" && \
47227 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47228 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47229 ac_status=$?
47230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47231 (exit $ac_status); }; then
47232 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 47233else
3ecd9f92
MW
47234 pkg_failed=yes
47235fi
47236 fi
47237else
47238 pkg_failed=untried
dae87f93
RN
47239fi
47240
dae87f93 47241
2f6c5bb5 47242
3ecd9f92 47243if test $pkg_failed = yes; then
ce756cb0 47244
3ecd9f92
MW
47245if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47246 _pkg_short_errors_supported=yes
47247else
47248 _pkg_short_errors_supported=no
47249fi
47250 if test $_pkg_short_errors_supported = yes; then
47251 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47252 else
47253 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 47254 fi
3ecd9f92
MW
47255 # Put the nasty error message in config.log where it belongs
47256 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47257
47258
3ecd9f92
MW
47259 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47260echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47261 GST_VERSION_MINOR=8
dae87f93 47262
ce756cb0 47263
3ecd9f92 47264elif test $pkg_failed = untried; then
dae87f93 47265
2f6c5bb5
VZ
47266 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47267echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 47268 GST_VERSION_MINOR=8
dae87f93 47269
2f6c5bb5 47270
3ecd9f92
MW
47271else
47272 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47273 GST_LIBS=$pkg_cv_GST_LIBS
f321ab7f
VS
47274 echo "$as_me:$LINENO: result: yes" >&5
47275echo "${ECHO_T}yes" >&6
3ecd9f92
MW
47276
47277 wxUSE_GSTREAMER="yes"
47278 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 47279
3ecd9f92 47280fi
2f6c5bb5
VZ
47281 else
47282 GST_VERSION_MINOR=8
f10e38c4 47283 fi
dae87f93 47284
2f6c5bb5
VZ
47285 if test $GST_VERSION_MINOR = "8"; then
47286 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 47287
3ecd9f92 47288pkg_failed=no
f321ab7f
VS
47289echo "$as_me:$LINENO: checking for GST" >&5
47290echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 47291
3ecd9f92
MW
47292if test -n "$PKG_CONFIG"; then
47293 if test -n "$GST_CFLAGS"; then
47294 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47295 else
47296 if test -n "$PKG_CONFIG" && \
47297 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47298 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47299 ac_status=$?
47300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47301 (exit $ac_status); }; then
47302 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47303else
3ecd9f92
MW
47304 pkg_failed=yes
47305fi
47306 fi
47307else
47308 pkg_failed=untried
dae87f93 47309fi
f10e38c4 47310if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47311 if test -n "$GST_LIBS"; then
47312 pkg_cv_GST_LIBS="$GST_LIBS"
47313 else
47314 if test -n "$PKG_CONFIG" && \
47315 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47316 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47317 ac_status=$?
47318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47319 (exit $ac_status); }; then
47320 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47321else
3ecd9f92
MW
47322 pkg_failed=yes
47323fi
47324 fi
47325else
47326 pkg_failed=untried
dae87f93
RN
47327fi
47328
ce756cb0 47329
2f6c5bb5 47330
3ecd9f92 47331if test $pkg_failed = yes; then
dae87f93 47332
3ecd9f92
MW
47333if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47334 _pkg_short_errors_supported=yes
47335else
47336 _pkg_short_errors_supported=no
47337fi
47338 if test $_pkg_short_errors_supported = yes; then
47339 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47340 else
47341 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 47342 fi
3ecd9f92
MW
47343 # Put the nasty error message in config.log where it belongs
47344 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47345
47346
3ecd9f92
MW
47347 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47348echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47349
3ecd9f92 47350elif test $pkg_failed = untried; then
ce756cb0 47351
2f6c5bb5
VZ
47352 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47353echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47354
3ecd9f92
MW
47355else
47356 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47357 GST_LIBS=$pkg_cv_GST_LIBS
f321ab7f
VS
47358 echo "$as_me:$LINENO: result: yes" >&5
47359echo "${ECHO_T}yes" >&6
3ecd9f92
MW
47360 wxUSE_GSTREAMER="yes"
47361fi
dae87f93 47362 fi
ce756cb0 47363
f10e38c4 47364
dae87f93 47365 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
47366 case "${host}" in
47367 *-*-solaris2* )
47368 if "$GCC" = yes; then
47369 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
47370 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
47371 fi
47372 esac
47373
47374 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47375 LIBS="$GST_LIBS $LIBS"
47376
dae87f93 47377 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47378#define wxUSE_GSTREAMER 1
47379_ACEOF
47380
2f6c5bb5
VZ
47381 else
47382 USE_MEDIA=0
ce756cb0
RN
47383 fi
47384 fi
2f6c5bb5
VZ
47385
47386 if test $USE_MEDIA = 1; then
47387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47388 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47389#define wxUSE_MEDIACTRL 1
47390_ACEOF
47391
2f6c5bb5 47392 fi
ce756cb0
RN
47393fi
47394
47395
a848cd7e
SC
47396if test "$cross_compiling" = "yes"; then
47397 OSINFO="\"$host\""
47398else
47399 OSINFO=`uname -s -r -m`
47400 OSINFO="\"$OSINFO\""
47401fi
47402
47403cat >>confdefs.h <<_ACEOF
47404#define WXWIN_OS_DESCRIPTION $OSINFO
47405_ACEOF
47406
47407
47408
47409if test "x$prefix" != "xNONE"; then
47410 wxPREFIX=$prefix
47411else
47412 wxPREFIX=$ac_default_prefix
47413fi
47414
47415cat >>confdefs.h <<_ACEOF
47416#define wxINSTALL_PREFIX "$wxPREFIX"
47417_ACEOF
47418
47419
a848cd7e
SC
47420
47421
47422CORE_BASE_LIBS="net base"
47423CORE_GUI_LIBS="adv core"
47424
47425if test "$wxUSE_XML" = "yes" ; then
47426 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
47427fi
47428if test "$wxUSE_ODBC" != "no" ; then
47429 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
47430 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
47431fi
47432if test "$wxUSE_HTML" = "yes" ; then
47433 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
47434fi
61639efb
VZ
47435if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47436 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
47437fi
9a8f0513
VS
47438if test "$wxUSE_XRC" = "yes" ; then
47439 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
47440fi
3f60522a
JS
47441if test "$wxUSE_AUI" = "yes" ; then
47442 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
47443fi
a848cd7e
SC
47444
47445if test "$wxUSE_GUI" != "yes"; then
47446 CORE_GUI_LIBS=""
47447fi
47448
47449
47450
47451
47452
a848cd7e 47453
a848cd7e 47454if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 47455 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
47456 if test "$USE_DARWIN" = 1; then
47457 LDFLAGS="$LDFLAGS -framework QuickTime"
47458 else
47459 LDFLAGS="$LDFLAGS -lQuickTimeLib"
47460 fi
07bea8f0 47461 fi
5dcf30a0 47462 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
47463 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
47464 else
47465 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 47466 fi
a848cd7e
SC
47467fi
47468if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 47469 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
47470 if test "$wxUSE_MEDIACTRL" = "yes"; then
47471 LDFLAGS="$LDFLAGS -framework QuickTime"
47472 fi
a848cd7e 47473fi
19b27e78
MW
47474if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47475 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47476fi
a848cd7e 47477
a848cd7e
SC
47478LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47479
a848cd7e
SC
47480if test "$wxUSE_GUI" = "yes"; then
47481
47482
8bce5cda
MW
47483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47484 dynamic erase event exec font image minimal mobile \
47485 mobile/wxedit mobile/styles propsize render \
9e39d889 47486 rotate shaped vscroll widgets"
a848cd7e
SC
47487
47488 if test "$wxUSE_MONOLITHIC" != "yes"; then
47489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47490 fi
0b78747f 47491 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
47492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47493 if test "$wxUSE_UNIVERSAL" != "yes"; then
47494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47495 fi
47496 fi
47497 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 47499 fi
a848cd7e
SC
47500else
47501 SAMPLES_SUBDIRS="console"
47502fi
47503
47504
48f625bc 47505if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
47506 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
47507elif test "$GCC" = yes ; then
47508 CWARNINGS="-Wall -Wundef"
47509fi
47510
48f625bc 47511if test "x$INTELCXX" = "xyes" ; then
7f47faf4 47512 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
47513elif test "$GXX" = yes ; then
47514 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 47515fi
a848cd7e 47516
a848cd7e 47517
5ff751d6
VZ
47518WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47519WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47520
47521
c92ad099 47522CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
02b05020 47523 -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
47524 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47525 $CPPFLAGS `
5ff751d6 47526
8aeeb05c 47527C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 47528CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 47529CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
47530
47531WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47532
a848cd7e 47533
95986553
DE
47534if test "x$MWCC" = "xyes"; then
47535
47536 CC="$CC -cwd source -I-"
47537 CXX="$CXX -cwd source -I-"
47538fi
47539
a848cd7e 47540
0c3c69fc 47541LIBS=`echo $LIBS`
a848cd7e
SC
47542EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47543EXTRALIBS_XML="$EXPAT_LINK"
47544EXTRALIBS_HTML="$MSPACK_LINK"
47545EXTRALIBS_ODBC="$ODBC_LINK"
47546if test "$wxUSE_GUI" = "yes"; then
2b850ae1 47547 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
47548fi
47549if test "$wxUSE_OPENGL" = "yes"; then
47550 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47551fi
47552
8aeeb05c 47553LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 47554
5ff751d6 47555WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
47556
47557if test "$wxUSE_REGEX" = "builtin" ; then
74802184 47558 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
47559fi
47560if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 47561 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
47562fi
47563if test "$wxUSE_ODBC" = "builtin" ; then
74802184 47564 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
47565fi
47566if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 47567 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
47568fi
47569if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 47570 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
47571fi
47572if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 47573 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
47574fi
47575if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 47576 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
47577fi
47578
47579for i in $wxconfig_3rdparty ; do
5ff751d6 47580 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
47581done
47582
47583
47584if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47585 WXUNIV=1
4353a8df
VZ
47586
47587 case "$wxUNIV_THEMES" in
47588 ''|all)
47589 cat >>confdefs.h <<\_ACEOF
47590#define wxUSE_ALL_THEMES 1
47591_ACEOF
47592
47593 ;;
47594
47595 *)
47596 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
47597 cat >>confdefs.h <<_ACEOF
47598#define wxUSE_THEME_$t 1
47599_ACEOF
47600
47601 done
47602 esac
a848cd7e
SC
47603else
47604 WXUNIV=0
47605fi
47606
47607
47608
47609
47610
47611
47612
47613
47614
47615if test $wxUSE_MONOLITHIC = "yes" ; then
47616 MONOLITHIC=1
47617else
47618 MONOLITHIC=0
47619fi
47620
47621if test $wxUSE_PLUGINS = "yes" ; then
47622 USE_PLUGINS=1
47623else
47624 USE_PLUGINS=0
47625fi
47626
47627if test $wxUSE_ODBC != "no" ; then
47628 USE_ODBC=1
47629else
47630 USE_ODBC=0
47631fi
47632
16358932
VZ
47633if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47634 USE_QA=1
47635else
47636 USE_QA=0
47637fi
47638
a848cd7e
SC
47639if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47640 OFFICIAL_BUILD=1
47641else
47642 OFFICIAL_BUILD=0
47643fi
47644
47645
47646
47647
47648
47649
47650
47651
47652
47653
47654
47655
47656
47657
47658
47659
47660
47661
47662
ceec2216 47663
d1c38808 47664
3565d135 47665
2b850ae1 47666
a848cd7e
SC
47667
47668
47669TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
47670
47671
47672
47673
47674
47675
47676
47677
4d4ff94c
VZ
47678case "$TOOLKIT" in
47679 GTK)
c2e9ada4 47680 TOOLKIT_DESC="GTK+"
4d4ff94c 47681 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
47682 TOOLKIT_DESC="$TOOLKIT_DESC 2"
47683 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47684 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47685 fi
47686 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47687 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47688 fi
47689 if test "$wxUSE_LIBHILDON" = "yes"; then
47690 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47691 fi
47692
47693 if test "$TOOLKIT_EXTRA" != ""; then
47694 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47695 fi
4d4ff94c 47696 fi
9a8f0513 47697 ;;
4d4ff94c 47698
c2e9ada4
VZ
47699 ?*)
47700 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47701 ;;
47702
4d4ff94c 47703 *)
c2e9ada4 47704 TOOLKIT_DESC="base only"
9a8f0513 47705 ;;
4d4ff94c 47706esac
a848cd7e 47707
fb00f58d
JS
47708if test "$wxUSE_WINE" = "yes"; then
47709 BAKEFILE_FORCE_PLATFORM=win32
47710fi
47711
7afc46ab 47712if test "$wxUSE_MAC" = 1 ; then
95768535
MW
47713 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
47714 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
47715 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
47716 else
47717 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
47718 fi
47719 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
47720 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
47721 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
47722 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
47723 bk_use_pch=no
47724 fi
47725 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
47726 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
47727fi
47728
a81d5bb6
MW
47729if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47730then
f321ab7f
VS
47731 echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47732echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
a81d5bb6
MW
47733if test "${wx_cv_gcc_pch_bug+set}" = set; then
47734 echo $ECHO_N "(cached) $ECHO_C" >&6
47735else
47736
6d952fd7
MW
47737 echo '#include <stdio.h>
47738 const wchar_t test_var[] = L"awidetest";' > conftest.h
47739
47740 echo '#include "conftest.h"
47741 int main()
47742 {
be49c6ec 47743 printf("%ls", test_var);
6d952fd7
MW
47744 return 0;
47745 }' > conftest.cpp
47746
47747 wx_cv_gcc_pch_bug="pch not supported"
a81d5bb6 47748
b2983f42 47749 if $CXX conftest.h >/dev/null 2>&1
a81d5bb6 47750 then
6d952fd7 47751 wx_cv_gcc_pch_bug=
a81d5bb6 47752
6c7f5e56 47753 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
a81d5bb6 47754 then
6c7f5e56
MW
47755 if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47756 grep awidetest >/dev/null
6d952fd7
MW
47757 then
47758 wx_cv_gcc_pch_bug=no
47759 else
a81d5bb6 47760 wx_cv_gcc_pch_bug=yes
6d952fd7 47761 fi
a81d5bb6
MW
47762 fi
47763 fi
47764
6c7f5e56 47765 rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
a81d5bb6
MW
47766
47767fi
f321ab7f
VS
47768echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47769echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
a81d5bb6
MW
47770
47771 if test "$wx_cv_gcc_pch_bug" = yes; then
47772 bk_use_pch=no
47773 fi
47774fi
47775
9a8f0513 47776
1e9e8aba
DE
47777
47778
a848cd7e 47779 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
47780 if test "x${host}" = "x" ; then
47781 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47782echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47783 { (exit 1); exit 1; }; }
47784 fi
47785
a848cd7e
SC
47786 BAKEFILE_HOST="${host}"
47787 fi
47788
47789 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47790
47791 if test -n "$ac_tool_prefix"; then
47792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47793set dummy ${ac_tool_prefix}ranlib; ac_word=$2
f321ab7f
VS
47794echo "$as_me:$LINENO: checking for $ac_word" >&5
47795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
47796if test "${ac_cv_prog_RANLIB+set}" = set; then
47797 echo $ECHO_N "(cached) $ECHO_C" >&6
47798else
47799 if test -n "$RANLIB"; then
47800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47801else
47802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47803for as_dir in $PATH
47804do
47805 IFS=$as_save_IFS
47806 test -z "$as_dir" && as_dir=.
47807 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 47808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
47809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47811 break 2
47812 fi
47813done
47814done
47815
47816fi
47817fi
47818RANLIB=$ac_cv_prog_RANLIB
47819if test -n "$RANLIB"; then
f321ab7f
VS
47820 echo "$as_me:$LINENO: result: $RANLIB" >&5
47821echo "${ECHO_T}$RANLIB" >&6
a848cd7e 47822else
f321ab7f
VS
47823 echo "$as_me:$LINENO: result: no" >&5
47824echo "${ECHO_T}no" >&6
a848cd7e
SC
47825fi
47826
47827fi
47828if test -z "$ac_cv_prog_RANLIB"; then
47829 ac_ct_RANLIB=$RANLIB
47830 # Extract the first word of "ranlib", so it can be a program name with args.
47831set dummy ranlib; ac_word=$2
f321ab7f
VS
47832echo "$as_me:$LINENO: checking for $ac_word" >&5
47833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
47834if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47835 echo $ECHO_N "(cached) $ECHO_C" >&6
47836else
47837 if test -n "$ac_ct_RANLIB"; then
47838 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47839else
47840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47841for as_dir in $PATH
47842do
47843 IFS=$as_save_IFS
47844 test -z "$as_dir" && as_dir=.
47845 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 47846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
47847 ac_cv_prog_ac_ct_RANLIB="ranlib"
47848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47849 break 2
47850 fi
47851done
47852done
47853
f321ab7f 47854 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
a848cd7e
SC
47855fi
47856fi
47857ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47858if test -n "$ac_ct_RANLIB"; then
f321ab7f
VS
47859 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47860echo "${ECHO_T}$ac_ct_RANLIB" >&6
a848cd7e 47861else
f321ab7f
VS
47862 echo "$as_me:$LINENO: result: no" >&5
47863echo "${ECHO_T}no" >&6
a848cd7e
SC
47864fi
47865
f321ab7f 47866 RANLIB=$ac_ct_RANLIB
a848cd7e
SC
47867else
47868 RANLIB="$ac_cv_prog_RANLIB"
47869fi
47870
47871 # Find a good install program. We prefer a C program (faster),
47872# so one script is as good as another. But avoid the broken or
47873# incompatible versions:
47874# SysV /etc/install, /usr/sbin/install
47875# SunOS /usr/etc/install
47876# IRIX /sbin/install
47877# AIX /bin/install
47878# AmigaOS /C/install, which installs bootblocks on floppy discs
47879# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47880# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47881# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 47882# OS/2's system install, which has a completely different semantic
a848cd7e 47883# ./install, which can be erroneously created by make from ./install.sh.
f321ab7f
VS
47884echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47885echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
a848cd7e
SC
47886if test -z "$INSTALL"; then
47887if test "${ac_cv_path_install+set}" = set; then
47888 echo $ECHO_N "(cached) $ECHO_C" >&6
47889else
47890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47891for as_dir in $PATH
47892do
47893 IFS=$as_save_IFS
47894 test -z "$as_dir" && as_dir=.
47895 # Account for people who put trailing slashes in PATH elements.
47896case $as_dir/ in
47897 ./ | .// | /cC/* | \
47898 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 47899 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
47900 /usr/ucb/* ) ;;
47901 *)
47902 # OSF1 and SCO ODT 3.0 have their own names for install.
47903 # Don't use installbsd from OSF since it installs stuff as root
47904 # by default.
47905 for ac_prog in ginstall scoinst install; do
47906 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 47907 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ac1cb8d3
VS
47908 if test $ac_prog = install &&
47909 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47910 # AIX install. It has an incompatible calling convention.
47911 :
47912 elif test $ac_prog = install &&
47913 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47914 # program-specific install script used by HP pwplus--don't use.
47915 :
47916 else
47917 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47918 break 3
47919 fi
47920 fi
a848cd7e
SC
47921 done
47922 done
47923 ;;
47924esac
47925done
47926
47927
47928fi
47929 if test "${ac_cv_path_install+set}" = set; then
47930 INSTALL=$ac_cv_path_install
47931 else
f321ab7f
VS
47932 # As a last resort, use the slow shell script. We don't cache a
47933 # path for INSTALL within a source directory, because that will
a848cd7e 47934 # break other packages using the cache if that directory is
f321ab7f 47935 # removed, or if the path is relative.
a848cd7e
SC
47936 INSTALL=$ac_install_sh
47937 fi
47938fi
f321ab7f
VS
47939echo "$as_me:$LINENO: result: $INSTALL" >&5
47940echo "${ECHO_T}$INSTALL" >&6
a848cd7e
SC
47941
47942# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47943# It thinks the first close brace ends the variable substitution.
47944test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47945
47946test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47947
47948test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47949
f321ab7f
VS
47950 echo "$as_me:$LINENO: checking whether ln -s works" >&5
47951echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
a848cd7e
SC
47952LN_S=$as_ln_s
47953if test "$LN_S" = "ln -s"; then
f321ab7f
VS
47954 echo "$as_me:$LINENO: result: yes" >&5
47955echo "${ECHO_T}yes" >&6
a848cd7e 47956else
f321ab7f
VS
47957 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47958echo "${ECHO_T}no, using $LN_S" >&6
a848cd7e
SC
47959fi
47960
47961
f321ab7f
VS
47962 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47963echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
47964set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
47965if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
a848cd7e
SC
47966 echo $ECHO_N "(cached) $ECHO_C" >&6
47967else
47968 cat >conftest.make <<\_ACEOF
47969all:
f321ab7f 47970 @echo 'ac_maketemp="$(MAKE)"'
a848cd7e
SC
47971_ACEOF
47972# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f321ab7f
VS
47973eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47974if test -n "$ac_maketemp"; then
47975 eval ac_cv_prog_make_${ac_make}_set=yes
47976else
47977 eval ac_cv_prog_make_${ac_make}_set=no
47978fi
a848cd7e
SC
47979rm -f conftest.make
47980fi
f321ab7f
VS
47981if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47982 echo "$as_me:$LINENO: result: yes" >&5
47983echo "${ECHO_T}yes" >&6
a848cd7e
SC
47984 SET_MAKE=
47985else
f321ab7f
VS
47986 echo "$as_me:$LINENO: result: no" >&5
47987echo "${ECHO_T}no" >&6
a848cd7e
SC
47988 SET_MAKE="MAKE=${MAKE-make}"
47989fi
47990
47991
47992
a485900c 47993 if test "x$SUNCXX" = "xyes"; then
d083d201 47994 AR=${AR:-"$CXX"}
a485900c 47995
d083d201 47996 AROPTIONS=${AROPTIONS:-"-xar -o"}
a485900c
VZ
47997 else
47998 if test -n "$ac_tool_prefix"; then
a848cd7e
SC
47999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
48000set dummy ${ac_tool_prefix}ar; ac_word=$2
f321ab7f
VS
48001echo "$as_me:$LINENO: checking for $ac_word" >&5
48002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
48003if test "${ac_cv_prog_AR+set}" = set; then
48004 echo $ECHO_N "(cached) $ECHO_C" >&6
48005else
48006 if test -n "$AR"; then
48007 ac_cv_prog_AR="$AR" # Let the user override the test.
48008else
48009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48010for as_dir in $PATH
48011do
48012 IFS=$as_save_IFS
48013 test -z "$as_dir" && as_dir=.
48014 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 48015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
48016 ac_cv_prog_AR="${ac_tool_prefix}ar"
48017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48018 break 2
48019 fi
48020done
48021done
48022
48023fi
48024fi
48025AR=$ac_cv_prog_AR
48026if test -n "$AR"; then
f321ab7f
VS
48027 echo "$as_me:$LINENO: result: $AR" >&5
48028echo "${ECHO_T}$AR" >&6
a848cd7e 48029else
f321ab7f
VS
48030 echo "$as_me:$LINENO: result: no" >&5
48031echo "${ECHO_T}no" >&6
a848cd7e
SC
48032fi
48033
48034fi
48035if test -z "$ac_cv_prog_AR"; then
48036 ac_ct_AR=$AR
48037 # Extract the first word of "ar", so it can be a program name with args.
48038set dummy ar; ac_word=$2
f321ab7f
VS
48039echo "$as_me:$LINENO: checking for $ac_word" >&5
48040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
48041if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
48042 echo $ECHO_N "(cached) $ECHO_C" >&6
48043else
48044 if test -n "$ac_ct_AR"; then
48045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
48046else
48047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48048for as_dir in $PATH
48049do
48050 IFS=$as_save_IFS
48051 test -z "$as_dir" && as_dir=.
48052 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 48053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
48054 ac_cv_prog_ac_ct_AR="ar"
48055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48056 break 2
48057 fi
48058done
48059done
48060
f321ab7f 48061 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
a848cd7e
SC
48062fi
48063fi
48064ac_ct_AR=$ac_cv_prog_ac_ct_AR
48065if test -n "$ac_ct_AR"; then
f321ab7f
VS
48066 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
48067echo "${ECHO_T}$ac_ct_AR" >&6
a848cd7e 48068else
f321ab7f
VS
48069 echo "$as_me:$LINENO: result: no" >&5
48070echo "${ECHO_T}no" >&6
a848cd7e
SC
48071fi
48072
f321ab7f 48073 AR=$ac_ct_AR
a848cd7e
SC
48074else
48075 AR="$ac_cv_prog_AR"
48076fi
48077
a485900c
VZ
48078 AROPTIONS=rcu
48079 fi
48080
48081
a848cd7e
SC
48082 if test -n "$ac_tool_prefix"; then
48083 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
48084set dummy ${ac_tool_prefix}strip; ac_word=$2
f321ab7f
VS
48085echo "$as_me:$LINENO: checking for $ac_word" >&5
48086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
48087if test "${ac_cv_prog_STRIP+set}" = set; then
48088 echo $ECHO_N "(cached) $ECHO_C" >&6
48089else
48090 if test -n "$STRIP"; then
48091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
48092else
48093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48094for as_dir in $PATH
48095do
48096 IFS=$as_save_IFS
48097 test -z "$as_dir" && as_dir=.
48098 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 48099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
48100 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
48101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48102 break 2
48103 fi
48104done
48105done
48106
48107fi
48108fi
48109STRIP=$ac_cv_prog_STRIP
48110if test -n "$STRIP"; then
f321ab7f
VS
48111 echo "$as_me:$LINENO: result: $STRIP" >&5
48112echo "${ECHO_T}$STRIP" >&6
a848cd7e 48113else
f321ab7f
VS
48114 echo "$as_me:$LINENO: result: no" >&5
48115echo "${ECHO_T}no" >&6
a848cd7e
SC
48116fi
48117
48118fi
48119if test -z "$ac_cv_prog_STRIP"; then
48120 ac_ct_STRIP=$STRIP
48121 # Extract the first word of "strip", so it can be a program name with args.
48122set dummy strip; ac_word=$2
f321ab7f
VS
48123echo "$as_me:$LINENO: checking for $ac_word" >&5
48124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
48125if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
48126 echo $ECHO_N "(cached) $ECHO_C" >&6
48127else
48128 if test -n "$ac_ct_STRIP"; then
48129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48130else
48131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48132for as_dir in $PATH
48133do
48134 IFS=$as_save_IFS
48135 test -z "$as_dir" && as_dir=.
48136 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 48137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
48138 ac_cv_prog_ac_ct_STRIP="strip"
48139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48140 break 2
48141 fi
48142done
48143done
48144
f321ab7f 48145 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
a848cd7e
SC
48146fi
48147fi
48148ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48149if test -n "$ac_ct_STRIP"; then
f321ab7f
VS
48150 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
48151echo "${ECHO_T}$ac_ct_STRIP" >&6
a848cd7e 48152else
f321ab7f
VS
48153 echo "$as_me:$LINENO: result: no" >&5
48154echo "${ECHO_T}no" >&6
a848cd7e
SC
48155fi
48156
f321ab7f 48157 STRIP=$ac_ct_STRIP
a848cd7e
SC
48158else
48159 STRIP="$ac_cv_prog_STRIP"
48160fi
48161
48162 if test -n "$ac_tool_prefix"; then
48163 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
48164set dummy ${ac_tool_prefix}nm; ac_word=$2
f321ab7f
VS
48165echo "$as_me:$LINENO: checking for $ac_word" >&5
48166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
48167if test "${ac_cv_prog_NM+set}" = set; then
48168 echo $ECHO_N "(cached) $ECHO_C" >&6
48169else
48170 if test -n "$NM"; then
48171 ac_cv_prog_NM="$NM" # Let the user override the test.
48172else
48173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48174for as_dir in $PATH
48175do
48176 IFS=$as_save_IFS
48177 test -z "$as_dir" && as_dir=.
48178 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 48179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
48180 ac_cv_prog_NM="${ac_tool_prefix}nm"
48181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48182 break 2
48183 fi
48184done
48185done
48186
48187fi
48188fi
48189NM=$ac_cv_prog_NM
48190if test -n "$NM"; then
f321ab7f
VS
48191 echo "$as_me:$LINENO: result: $NM" >&5
48192echo "${ECHO_T}$NM" >&6
a848cd7e 48193else
f321ab7f
VS
48194 echo "$as_me:$LINENO: result: no" >&5
48195echo "${ECHO_T}no" >&6
a848cd7e
SC
48196fi
48197
48198fi
48199if test -z "$ac_cv_prog_NM"; then
48200 ac_ct_NM=$NM
48201 # Extract the first word of "nm", so it can be a program name with args.
48202set dummy nm; ac_word=$2
f321ab7f
VS
48203echo "$as_me:$LINENO: checking for $ac_word" >&5
48204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
48205if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48206 echo $ECHO_N "(cached) $ECHO_C" >&6
48207else
48208 if test -n "$ac_ct_NM"; then
48209 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48210else
48211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48212for as_dir in $PATH
48213do
48214 IFS=$as_save_IFS
48215 test -z "$as_dir" && as_dir=.
48216 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 48217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
48218 ac_cv_prog_ac_ct_NM="nm"
48219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48220 break 2
48221 fi
48222done
48223done
48224
f321ab7f 48225 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
a848cd7e
SC
48226fi
48227fi
48228ac_ct_NM=$ac_cv_prog_ac_ct_NM
48229if test -n "$ac_ct_NM"; then
f321ab7f
VS
48230 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48231echo "${ECHO_T}$ac_ct_NM" >&6
a848cd7e 48232else
f321ab7f
VS
48233 echo "$as_me:$LINENO: result: no" >&5
48234echo "${ECHO_T}no" >&6
a848cd7e
SC
48235fi
48236
f321ab7f 48237 NM=$ac_ct_NM
a848cd7e
SC
48238else
48239 NM="$ac_cv_prog_NM"
48240fi
48241
48242
48243 case ${BAKEFILE_HOST} in
48244 *-hp-hpux* )
1e9e8aba 48245 INSTALL_DIR="mkdir -p"
a848cd7e 48246 ;;
a485900c
VZ
48247 * )
48248 INSTALL_DIR='$(INSTALL) -d'
a848cd7e
SC
48249 ;;
48250 esac
48251
48252
48253 LDFLAGS_GUI=
48254 case ${BAKEFILE_HOST} in
48255 *-*-cygwin* | *-*-mingw32* )
48256 LDFLAGS_GUI="-mwindows"
48257 esac
48258
48259
48260 fi
48261
f321ab7f
VS
48262 echo "$as_me:$LINENO: checking if make is GNU make" >&5
48263echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
a848cd7e
SC
48264if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48265 echo $ECHO_N "(cached) $ECHO_C" >&6
48266else
48267
48268 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48269 egrep -s GNU > /dev/null); then
48270 bakefile_cv_prog_makeisgnu="yes"
48271 else
48272 bakefile_cv_prog_makeisgnu="no"
48273 fi
48274
48275fi
f321ab7f
VS
48276echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48277echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
a848cd7e
SC
48278
48279 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48280 IF_GNU_MAKE=""
48281 else
48282 IF_GNU_MAKE="#"
48283 fi
48284
48285
48286
48287 PLATFORM_UNIX=0
48288 PLATFORM_WIN32=0
48289 PLATFORM_MSDOS=0
48290 PLATFORM_MAC=0
1e9e8aba 48291 PLATFORM_MACOS=0
a848cd7e
SC
48292 PLATFORM_MACOSX=0
48293 PLATFORM_OS2=0
1e9e8aba 48294 PLATFORM_BEOS=0
a848cd7e
SC
48295
48296 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48297 case "${BAKEFILE_HOST}" in
810b94f0 48298 *-*-mingw32* )
a848cd7e
SC
48299 PLATFORM_WIN32=1
48300 ;;
48301 *-pc-msdosdjgpp )
48302 PLATFORM_MSDOS=1
48303 ;;
48304 *-pc-os2_emx | *-pc-os2-emx )
48305 PLATFORM_OS2=1
48306 ;;
47bd5406 48307 *-*-darwin* )
a848cd7e
SC
48308 PLATFORM_MAC=1
48309 PLATFORM_MACOSX=1
48310 ;;
1e9e8aba
DE
48311 *-*-beos* )
48312 PLATFORM_BEOS=1
48313 ;;
48314 powerpc-apple-macos* )
48315 PLATFORM_MAC=1
48316 PLATFORM_MACOS=1
48317 ;;
a848cd7e
SC
48318 * )
48319 PLATFORM_UNIX=1
48320 ;;
48321 esac
48322 else
48323 case "$BAKEFILE_FORCE_PLATFORM" in
48324 win32 )
48325 PLATFORM_WIN32=1
48326 ;;
48327 msdos )
48328 PLATFORM_MSDOS=1
48329 ;;
48330 os2 )
48331 PLATFORM_OS2=1
48332 ;;
48333 darwin )
48334 PLATFORM_MAC=1
48335 PLATFORM_MACOSX=1
48336 ;;
48337 unix )
48338 PLATFORM_UNIX=1
48339 ;;
1e9e8aba
DE
48340 beos )
48341 PLATFORM_BEOS=1
48342 ;;
a848cd7e
SC
48343 * )
48344 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
48345echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
48346 { (exit 1); exit 1; }; }
48347 ;;
48348 esac
48349 fi
48350
48351
48352
48353
48354
48355
48356
48357
48358
1e9e8aba
DE
48359
48360
f321ab7f 48361 # Check whether --enable-omf or --disable-omf was given.
a848cd7e 48362if test "${enable_omf+set}" = set; then
f321ab7f
VS
48363 enableval="$enable_omf"
48364 bk_os2_use_omf="$enableval"
48365fi;
a848cd7e
SC
48366
48367 case "${BAKEFILE_HOST}" in
48368 *-*-darwin* )
47bd5406
VZ
48369 if test "x$GCC" = "xyes"; then
48370 CFLAGS="$CFLAGS -fno-common"
48371 CXXFLAGS="$CXXFLAGS -fno-common"
48372 fi
48373 if test "x$XLCC" = "xyes"; then
48374 CFLAGS="$CFLAGS -qnocommon"
48375 CXXFLAGS="$CXXFLAGS -qnocommon"
48376 fi
a848cd7e
SC
48377 ;;
48378
48379 *-pc-os2_emx | *-pc-os2-emx )
48380 if test "x$bk_os2_use_omf" = "xyes" ; then
48381 AR=emxomfar
48382 RANLIB=:
48383 LDFLAGS="-Zomf $LDFLAGS"
48384 CFLAGS="-Zomf $CFLAGS"
48385 CXXFLAGS="-Zomf $CXXFLAGS"
48386 OS2_LIBEXT="lib"
48387 else
48388 OS2_LIBEXT="a"
48389 fi
48390 ;;
1e9e8aba
DE
48391
48392 i*86-*-beos* )
48393 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48394 ;;
a848cd7e
SC
48395 esac
48396
48397
48398 SO_SUFFIX="so"
48399 SO_SUFFIX_MODULE="so"
48400 EXEEXT=""
48401 LIBPREFIX="lib"
48402 LIBEXT=".a"
48403 DLLPREFIX="lib"
48404 DLLPREFIX_MODULE=""
48405 DLLIMP_SUFFIX=""
810b94f0 48406 dlldir="$libdir"
a848cd7e
SC
48407
48408 case "${BAKEFILE_HOST}" in
48409 *-hp-hpux* )
48410 SO_SUFFIX="sl"
48411 SO_SUFFIX_MODULE="sl"
48412 ;;
48413 *-*-aix* )
48414 SO_SUFFIX="a"
48415 SO_SUFFIX_MODULE="a"
48416 ;;
810b94f0
MW
48417 *-*-cygwin* )
48418 SO_SUFFIX="dll"
48419 SO_SUFFIX_MODULE="dll"
48420 DLLIMP_SUFFIX="dll.a"
48421 EXEEXT=".exe"
48422 DLLPREFIX="cyg"
48423 dlldir="$bindir"
48424 ;;
48425 *-*-mingw32* )
a848cd7e
SC
48426 SO_SUFFIX="dll"
48427 SO_SUFFIX_MODULE="dll"
48428 DLLIMP_SUFFIX="dll.a"
48429 EXEEXT=".exe"
48430 DLLPREFIX=""
810b94f0 48431 dlldir="$bindir"
a848cd7e
SC
48432 ;;
48433 *-pc-msdosdjgpp )
48434 EXEEXT=".exe"
48435 DLLPREFIX=""
810b94f0 48436 dlldir="$bindir"
a848cd7e
SC
48437 ;;
48438 *-pc-os2_emx | *-pc-os2-emx )
48439 SO_SUFFIX="dll"
48440 SO_SUFFIX_MODULE="dll"
48441 DLLIMP_SUFFIX=$OS2_LIBEXT
48442 EXEEXT=".exe"
48443 DLLPREFIX=""
48444 LIBPREFIX=""
48445 LIBEXT=".$OS2_LIBEXT"
810b94f0 48446 dlldir="$bindir"
a848cd7e 48447 ;;
47bd5406 48448 *-*-darwin* )
a848cd7e
SC
48449 SO_SUFFIX="dylib"
48450 SO_SUFFIX_MODULE="bundle"
48451 ;;
48452 esac
48453
48454 if test "x$DLLIMP_SUFFIX" = "x" ; then
48455 DLLIMP_SUFFIX="$SO_SUFFIX"
48456 fi
48457
48458
48459
48460
48461
48462
48463
48464
48465
48466
48467
810b94f0 48468
1e9e8aba
DE
48469 PIC_FLAG=""
48470 if test "x$GCC" = "xyes"; then
a848cd7e
SC
48471 PIC_FLAG="-fPIC"
48472 fi
48473
1e9e8aba
DE
48474 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48475 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 48476 WINDOWS_IMPLIB=0
1e9e8aba 48477
a848cd7e
SC
48478 case "${BAKEFILE_HOST}" in
48479 *-hp-hpux* )
1e9e8aba 48480 if test "x$GCC" != "xyes"; then
a848cd7e
SC
48481 LDFLAGS="$LDFLAGS -L/usr/lib"
48482
48483 SHARED_LD_CC="${CC} -b -o"
48484 SHARED_LD_CXX="${CXX} -b -o"
48485 PIC_FLAG="+Z"
48486 fi
48487 ;;
48488
48489 *-*-linux* )
48490 if test "x$GCC" != "xyes"; then
f321ab7f
VS
48491 echo "$as_me:$LINENO: checking for Intel compiler" >&5
48492echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
a848cd7e
SC
48493if test "${bakefile_cv_prog_icc+set}" = set; then
48494 echo $ECHO_N "(cached) $ECHO_C" >&6
48495else
48496
48497 cat >conftest.$ac_ext <<_ACEOF
48498/* confdefs.h. */
48499_ACEOF
48500cat confdefs.h >>conftest.$ac_ext
48501cat >>conftest.$ac_ext <<_ACEOF
48502/* end confdefs.h. */
48503
48504int
48505main ()
48506{
48507
48508 #ifndef __INTEL_COMPILER
e5efa97e 48509 This is not ICC
a848cd7e
SC
48510 #endif
48511
48512 ;
48513 return 0;
48514}
48515_ACEOF
48516rm -f conftest.$ac_objext
f321ab7f
VS
48517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48518 (eval $ac_compile) 2>conftest.er1
a848cd7e 48519 ac_status=$?
ac1cb8d3
VS
48520 grep -v '^ *+' conftest.er1 >conftest.err
48521 rm -f conftest.er1
48522 cat conftest.err >&5
a848cd7e
SC
48523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48524 (exit $ac_status); } &&
f321ab7f
VS
48525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48527 (eval $ac_try) 2>&5
ac1cb8d3
VS
48528 ac_status=$?
48529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48530 (exit $ac_status); }; } &&
48531 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
48532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48533 (eval $ac_try) 2>&5
a848cd7e
SC
48534 ac_status=$?
48535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48536 (exit $ac_status); }; }; then
48537 bakefile_cv_prog_icc=yes
48538else
48539 echo "$as_me: failed program was:" >&5
48540sed 's/^/| /' conftest.$ac_ext >&5
48541
f321ab7f 48542bakefile_cv_prog_icc=no
a848cd7e
SC
48543
48544fi
f321ab7f 48545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
48546
48547fi
f321ab7f
VS
48548echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
48549echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
a848cd7e
SC
48550 if test "$bakefile_cv_prog_icc" = "yes"; then
48551 PIC_FLAG="-KPIC"
48552 fi
48553 fi
48554 ;;
48555
48556 *-*-solaris2* )
48557 if test "x$GCC" != xyes ; then
48558 SHARED_LD_CC="${CC} -G -o"
48559 SHARED_LD_CXX="${CXX} -G -o"
48560 PIC_FLAG="-KPIC"
48561 fi
48562 ;;
48563
48564 *-*-darwin* )
48565
473276a9
VS
48566D='$'
48567cat <<EOF >shared-ld-sh
a848cd7e
SC
48568#!/bin/sh
48569#-----------------------------------------------------------------------------
48570#-- Name: distrib/mac/shared-ld-sh
48571#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
48572#-- Author: Gilles Depeyrot
48573#-- Copyright: (c) 2002 Gilles Depeyrot
48574#-- Licence: any use permitted
48575#-----------------------------------------------------------------------------
48576
48577verbose=0
48578args=""
48579objects=""
48580linking_flag="-dynamiclib"
810b94f0 48581ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 48582
473276a9
VS
48583while test ${D}# -gt 0; do
48584 case ${D}1 in
a848cd7e
SC
48585
48586 -v)
48587 verbose=1
48588 ;;
48589
48590 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48591 # collect these options and values
473276a9 48592 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
48593 shift
48594 ;;
48595
810b94f0
MW
48596 -s|-Wl,*)
48597 # collect these load args
48598 ldargs="${D}{ldargs} ${D}1"
2113bc77 48599 ;;
810b94f0
MW
48600
48601 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 48602 # collect these options
473276a9 48603 args="${D}{args} ${D}1"
a848cd7e
SC
48604 ;;
48605
48606 -dynamiclib|-bundle)
473276a9 48607 linking_flag="${D}1"
a848cd7e
SC
48608 ;;
48609
48610 -*)
473276a9 48611 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
48612 exit 1
48613 ;;
48614
48615 *.o | *.a | *.dylib)
48616 # collect object files
473276a9 48617 objects="${D}{objects} ${D}1"
a848cd7e
SC
48618 ;;
48619
48620 *)
473276a9 48621 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
48622 exit 1
48623 ;;
48624
48625 esac
48626 shift
48627done
48628
810b94f0
MW
48629status=0
48630
a848cd7e
SC
48631#
48632# Link one module containing all the others
48633#
473276a9 48634if test ${D}{verbose} = 1; then
810b94f0 48635 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 48636fi
810b94f0 48637c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 48638status=${D}?
a848cd7e
SC
48639
48640#
810b94f0
MW
48641# Link the shared library from the single module created, but only if the
48642# previous command didn't fail:
a848cd7e 48643#
810b94f0
MW
48644if test ${D}{status} = 0; then
48645 if test ${D}{verbose} = 1; then
48646 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48647 fi
48648 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48649 status=${D}?
a848cd7e
SC
48650fi
48651
48652#
48653# Remove intermediate module
48654#
473276a9 48655rm -f master.${D}${D}.o
a848cd7e 48656
810b94f0 48657exit ${D}status
a848cd7e 48658EOF
473276a9 48659
583d6b4b
VZ
48660 chmod +x shared-ld-sh
48661
48662 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48663 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
48664
48665
f321ab7f
VS
48666 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48667echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
583d6b4b
VZ
48668if test "${bakefile_cv_gcc31+set}" = set; then
48669 echo $ECHO_N "(cached) $ECHO_C" >&6
48670else
48671
48672 cat >conftest.$ac_ext <<_ACEOF
48673/* confdefs.h. */
48674_ACEOF
48675cat confdefs.h >>conftest.$ac_ext
48676cat >>conftest.$ac_ext <<_ACEOF
48677/* end confdefs.h. */
48678
48679int
48680main ()
48681{
48682
48683 #if (__GNUC__ < 3) || \
48684 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 48685 This is old gcc
583d6b4b 48686 #endif
a848cd7e 48687
583d6b4b
VZ
48688 ;
48689 return 0;
48690}
48691_ACEOF
48692rm -f conftest.$ac_objext
f321ab7f
VS
48693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48694 (eval $ac_compile) 2>conftest.er1
583d6b4b
VZ
48695 ac_status=$?
48696 grep -v '^ *+' conftest.er1 >conftest.err
48697 rm -f conftest.er1
48698 cat conftest.err >&5
48699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48700 (exit $ac_status); } &&
f321ab7f
VS
48701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48703 (eval $ac_try) 2>&5
583d6b4b
VZ
48704 ac_status=$?
48705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48706 (exit $ac_status); }; } &&
48707 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
48708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48709 (eval $ac_try) 2>&5
583d6b4b
VZ
48710 ac_status=$?
48711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48712 (exit $ac_status); }; }; then
48713
48714 bakefile_cv_gcc31=yes
48715
48716else
48717 echo "$as_me: failed program was:" >&5
48718sed 's/^/| /' conftest.$ac_ext >&5
48719
48720
48721 bakefile_cv_gcc31=no
48722
48723
48724fi
f321ab7f 48725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
583d6b4b
VZ
48726
48727fi
f321ab7f
VS
48728echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48729echo "${ECHO_T}$bakefile_cv_gcc31" >&6
583d6b4b 48730 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 48731 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 48732 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
48733 else
48734 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 48735 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
48736 fi
48737
47bd5406
VZ
48738 if test "x$GCC" == "xyes"; then
48739 PIC_FLAG="-dynamic -fPIC"
48740 fi
48741 if test "x$XLCC" = "xyes"; then
48742 PIC_FLAG="-dynamic -DPIC"
48743 fi
a848cd7e
SC
48744 ;;
48745
48746 *-*-aix* )
f6b50c59 48747 if test "x$GCC" = "xyes"; then
583d6b4b 48748 PIC_FLAG=""
f6b50c59 48749
583d6b4b
VZ
48750 case "${BAKEFILE_HOST}" in
48751 *-*-aix5* )
48752 LD_EXPFULL="-Wl,-bexpfull"
48753 ;;
48754 esac
f6b50c59 48755
583d6b4b
VZ
48756 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48757 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48758 else
48759 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e 48760set dummy makeC++SharedLib; ac_word=$2
f321ab7f
VS
48761echo "$as_me:$LINENO: checking for $ac_word" >&5
48762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
48763if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48764 echo $ECHO_N "(cached) $ECHO_C" >&6
48765else
48766 if test -n "$AIX_CXX_LD"; then
48767 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48768else
48769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48770for as_dir in $PATH
48771do
48772 IFS=$as_save_IFS
48773 test -z "$as_dir" && as_dir=.
48774 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 48775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
48776 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48778 break 2
48779 fi
48780done
48781done
48782
48783 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48784fi
48785fi
48786AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48787if test -n "$AIX_CXX_LD"; then
f321ab7f
VS
48788 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48789echo "${ECHO_T}$AIX_CXX_LD" >&6
a848cd7e 48790else
f321ab7f
VS
48791 echo "$as_me:$LINENO: result: no" >&5
48792echo "${ECHO_T}no" >&6
a848cd7e
SC
48793fi
48794
f6b50c59 48795 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
48796 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48797 fi
48798 ;;
48799
48800 *-*-beos* )
1e9e8aba
DE
48801 SHARED_LD_CC="${LD} -nostart -o"
48802 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
48803 ;;
48804
48805 *-*-irix* )
48806 if test "x$GCC" != "xyes"; then
48807 PIC_FLAG="-KPIC"
48808 fi
48809 ;;
48810
48811 *-*-cygwin* | *-*-mingw32* )
48812 PIC_FLAG=""
1e9e8aba
DE
48813 SHARED_LD_CC="\$(CC) -shared -o"
48814 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 48815 WINDOWS_IMPLIB=1
a848cd7e
SC
48816 ;;
48817
48818 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
48819 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48820 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 48821 PIC_FLAG=""
473276a9
VS
48822
48823D='$'
48824cat <<EOF >dllar.sh
48825#!/bin/sh
48826#
48827# dllar - a tool to build both a .dll and an .a file
48828# from a set of object (.o) files for EMX/OS2.
48829#
48830# Written by Andrew Zabolotny, bit@freya.etu.ru
48831# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48832#
48833# This script will accept a set of files on the command line.
48834# All the public symbols from the .o files will be exported into
48835# a .DEF file, then linker will be run (through gcc) against them to
48836# build a shared library consisting of all given .o files. All libraries
48837# (.a) will be first decompressed into component .o files then act as
48838# described above. You can optionally give a description (-d "description")
48839# which will be put into .DLL. To see the list of accepted options (as well
48840# as command-line format) simply run this program without options. The .DLL
48841# is built to be imported by name (there is no guarantee that new versions
48842# of the library you build will have same ordinals for same symbols).
48843#
48844# dllar is free software; you can redistribute it and/or modify
48845# it under the terms of the GNU General Public License as published by
48846# the Free Software Foundation; either version 2, or (at your option)
48847# any later version.
48848#
48849# dllar is distributed in the hope that it will be useful,
48850# but WITHOUT ANY WARRANTY; without even the implied warranty of
48851# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48852# GNU General Public License for more details.
48853#
48854# You should have received a copy of the GNU General Public License
48855# along with dllar; see the file COPYING. If not, write to the Free
48856# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48857# 02111-1307, USA.
48858
48859# To successfuly run this program you will need:
48860# - Current drive should have LFN support (HPFS, ext2, network, etc)
48861# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48862# - gcc
48863# (used to build the .dll)
48864# - emxexp
48865# (used to create .def file from .o files)
48866# - emximp
48867# (used to create .a file from .def file)
48868# - GNU text utilites (cat, sort, uniq)
48869# used to process emxexp output
48870# - GNU file utilities (mv, rm)
48871# - GNU sed
48872# - lxlite (optional, see flag below)
48873# (used for general .dll cleanup)
48874#
48875
48876flag_USE_LXLITE=1;
48877
48878#
48879# helper functions
48880# basnam, variant of basename, which does _not_ remove the path, _iff_
48881# second argument (suffix to remove) is given
48882basnam(){
48883 case ${D}# in
48884 1)
1e9e8aba 48885 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
48886 ;;
48887 2)
48888 echo ${D}1 | sed 's/'${D}2'${D}//'
48889 ;;
48890 *)
48891 echo "error in basnam ${D}*"
48892 exit 8
48893 ;;
48894 esac
48895}
48896
48897# Cleanup temporary files and output
48898CleanUp() {
48899 cd ${D}curDir
48900 for i in ${D}inputFiles ; do
48901 case ${D}i in
48902 *!)
48903 rm -rf \`basnam ${D}i !\`
48904 ;;
48905 *)
48906 ;;
48907 esac
48908 done
48909
48910 # Kill result in case of failure as there is just to many stupid make/nmake
48911 # things out there which doesn't do this.
1e9e8aba 48912 if [ ${D}# -eq 0 ]; then
473276a9
VS
48913 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48914 fi
48915}
48916
48917# Print usage and exit script with rc=1.
48918PrintHelp() {
b1d22ded
DE
48919 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48920 echo ' [-name-mangler-script script.sh]'
48921 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48922 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
48923 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 48924 echo ' [*.o] [*.a]'
473276a9
VS
48925 echo '*> "output_file" should have no extension.'
48926 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
48927 echo ' The import library name is derived from this and is set to "name".a,'
48928 echo ' unless overridden by -import'
48929 echo '*> "importlib_name" should have no extension.'
48930 echo ' If it has the .o, or .a extension, it is automatically removed.'
48931 echo ' This name is used as the import library name and may be longer and'
48932 echo ' more descriptive than the DLL name which has to follow the old '
48933 echo ' 8.3 convention of FAT.'
b1d22ded
DE
48934 echo '*> "script.sh may be given to override the output_file name by a'
48935 echo ' different name. It is mainly useful if the regular make process'
48936 echo ' of some package does not take into account OS/2 restriction of'
48937 echo ' DLL name lengths. It takes the importlib name as input and is'
48938 echo ' supposed to procude a shorter name as output. The script should'
48939 echo ' expect to get importlib_name without extension and should produce'
48940 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
48941 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
48942 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48943 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
48944 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48945 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
48946 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48947 echo ' If the last character of a symbol is "*", all symbols beginning'
48948 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 48949 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 48950 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 48951 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 48952 echo ' C runtime DLLs.'
b1d22ded 48953 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
48954 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48955 echo ' unchanged to GCC at the end of command line.'
48956 echo '*> If you create a DLL from a library and you do not specify -o,'
48957 echo ' the basename for DLL and import library will be set to library name,'
48958 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
48959 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48960 echo ' library will be renamed into gcc_s.a.'
48961 echo '--------'
48962 echo 'Example:'
48963 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48964 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48965 CleanUp
48966 exit 1
48967}
48968
48969# Execute a command.
48970# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48971# @Uses Whatever CleanUp() uses.
48972doCommand() {
48973 echo "${D}*"
48974 eval ${D}*
48975 rcCmd=${D}?
48976
1e9e8aba 48977 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
48978 echo "command failed, exit code="${D}rcCmd
48979 CleanUp
48980 exit ${D}rcCmd
48981 fi
48982}
48983
48984# main routine
48985# setup globals
48986cmdLine=${D}*
48987outFile=""
48988outimpFile=""
48989inputFiles=""
b1d22ded 48990renameScript=""
473276a9
VS
48991description=""
48992CC=gcc.exe
48993CFLAGS="-s -Zcrtdll"
48994EXTRA_CFLAGS=""
48995EXPORT_BY_ORDINALS=0
48996exclude_symbols=""
48997library_flags=""
48998curDir=\`pwd\`
48999curDirS=curDir
49000case ${D}curDirS in
49001*/)
49002 ;;
49003*)
49004 curDirS=${D}{curDirS}"/"
49005 ;;
49006esac
49007# Parse commandline
49008libsToLink=0
b1d22ded 49009omfLinking=0
1e9e8aba 49010while [ ${D}1 ]; do
473276a9
VS
49011 case ${D}1 in
49012 -ord*)
49013 EXPORT_BY_ORDINALS=1;
49014 ;;
49015 -o*)
49016 shift
49017 outFile=${D}1
49018 ;;
49019 -i*)
49020 shift
49021 outimpFile=${D}1
49022 ;;
b1d22ded
DE
49023 -name-mangler-script)
49024 shift
49025 renameScript=${D}1
49026 ;;
473276a9
VS
49027 -d*)
49028 shift
49029 description=${D}1
49030 ;;
49031 -f*)
49032 shift
49033 CFLAGS=${D}1
49034 ;;
49035 -c*)
49036 shift
49037 CC=${D}1
49038 ;;
49039 -h*)
49040 PrintHelp
49041 ;;
49042 -ex*)
49043 shift
49044 exclude_symbols=${D}{exclude_symbols}${D}1" "
49045 ;;
49046 -libf*)
49047 shift
49048 library_flags=${D}{library_flags}${D}1" "
49049 ;;
49050 -nocrt*)
49051 CFLAGS="-s"
49052 ;;
49053 -nolxl*)
49054 flag_USE_LXLITE=0
49055 ;;
49056 -* | /*)
49057 case ${D}1 in
49058 -L* | -l*)
49059 libsToLink=1
49060 ;;
b1d22ded
DE
49061 -Zomf)
49062 omfLinking=1
49063 ;;
473276a9
VS
49064 *)
49065 ;;
49066 esac
49067 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49068 ;;
b1d22ded
DE
49069 *.dll)
49070 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
49071 if [ ${D}omfLinking -eq 1 ]; then
49072 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
49073 else
49074 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
49075 fi
49076 ;;
473276a9
VS
49077 *)
49078 found=0;
1e9e8aba 49079 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
49080 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49081 else
49082 for file in ${D}1 ; do
1e9e8aba 49083 if [ -f ${D}file ]; then
473276a9
VS
49084 inputFiles="${D}{inputFiles} ${D}file"
49085 found=1
49086 fi
49087 done
1e9e8aba 49088 if [ ${D}found -eq 0 ]; then
473276a9
VS
49089 echo "ERROR: No file(s) found: "${D}1
49090 exit 8
49091 fi
49092 fi
49093 ;;
49094 esac
49095 shift
49096done # iterate cmdline words
49097
49098#
1e9e8aba 49099if [ -z "${D}inputFiles" ]; then
473276a9
VS
49100 echo "dllar: no input files"
49101 PrintHelp
49102fi
49103
49104# Now extract all .o files from .a files
49105newInputFiles=""
49106for file in ${D}inputFiles ; do
49107 case ${D}file in
49108 *.a | *.lib)
49109 case ${D}file in
49110 *.a)
49111 suffix=".a"
49112 AR="ar"
49113 ;;
49114 *.lib)
49115 suffix=".lib"
49116 AR="emxomfar"
49117 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
49118 ;;
49119 *)
49120 ;;
49121 esac
49122 dirname=\`basnam ${D}file ${D}suffix\`"_%"
49123 mkdir ${D}dirname
1e9e8aba 49124 if [ ${D}? -ne 0 ]; then
473276a9
VS
49125 echo "Failed to create subdirectory ./${D}dirname"
49126 CleanUp
49127 exit 8;
49128 fi
49129 # Append '!' to indicate archive
49130 newInputFiles="${D}newInputFiles ${D}{dirname}!"
49131 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
49132 cd ${D}curDir
49133 found=0;
49134 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 49135 if [ -f ${D}subfile ]; then
473276a9 49136 found=1
1e9e8aba 49137 if [ -s ${D}subfile ]; then
473276a9
VS
49138 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
49139 newInputFiles="${D}newInputFiles ${D}subfile"
49140 fi
49141 fi
49142 done
1e9e8aba
DE
49143 if [ ${D}found -eq 0 ]; then
49144 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
49145 fi
49146 ;;
49147 *)
49148 newInputFiles="${D}{newInputFiles} ${D}file"
49149 ;;
49150 esac
49151done
49152inputFiles="${D}newInputFiles"
49153
49154# Output filename(s).
49155do_backup=0;
1e9e8aba 49156if [ -z ${D}outFile ]; then
473276a9
VS
49157 do_backup=1;
49158 set outFile ${D}inputFiles; outFile=${D}2
49159fi
49160
49161# If it is an archive, remove the '!' and the '_%' suffixes
49162case ${D}outFile in
49163*_%!)
49164 outFile=\`basnam ${D}outFile _%!\`
49165 ;;
49166*)
49167 ;;
49168esac
49169case ${D}outFile in
49170*.dll)
49171 outFile=\`basnam ${D}outFile .dll\`
49172 ;;
49173*.DLL)
49174 outFile=\`basnam ${D}outFile .DLL\`
49175 ;;
49176*.o)
49177 outFile=\`basnam ${D}outFile .o\`
49178 ;;
49179*.obj)
49180 outFile=\`basnam ${D}outFile .obj\`
49181 ;;
49182*.a)
49183 outFile=\`basnam ${D}outFile .a\`
49184 ;;
49185*.lib)
49186 outFile=\`basnam ${D}outFile .lib\`
49187 ;;
49188*)
49189 ;;
49190esac
49191case ${D}outimpFile in
49192*.a)
49193 outimpFile=\`basnam ${D}outimpFile .a\`
49194 ;;
49195*.lib)
49196 outimpFile=\`basnam ${D}outimpFile .lib\`
49197 ;;
49198*)
49199 ;;
49200esac
1e9e8aba 49201if [ -z ${D}outimpFile ]; then
473276a9
VS
49202 outimpFile=${D}outFile
49203fi
49204defFile="${D}{outFile}.def"
49205arcFile="${D}{outimpFile}.a"
49206arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
49207
49208#create ${D}dllFile as something matching 8.3 restrictions,
49209if [ -z ${D}renameScript ] ; then
49210 dllFile="${D}outFile"
49211else
49212 dllFile=\`${D}renameScript ${D}outimpFile\`
49213fi
473276a9 49214
1e9e8aba
DE
49215if [ ${D}do_backup -ne 0 ] ; then
49216 if [ -f ${D}arcFile ] ; then
473276a9
VS
49217 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49218 fi
1e9e8aba 49219 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
49220 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49221 fi
49222fi
49223
49224# Extract public symbols from all the object files.
49225tmpdefFile=${D}{defFile}_%
49226rm -f ${D}tmpdefFile
49227for file in ${D}inputFiles ; do
49228 case ${D}file in
49229 *!)
49230 ;;
49231 *)
49232 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49233 ;;
49234 esac
49235done
49236
49237# Create the def file.
49238rm -f ${D}defFile
49239echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
49240dllFile="${D}{dllFile}.dll"
49241if [ ! -z ${D}description ]; then
1e9e8aba 49242 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
49243fi
49244echo "EXPORTS" >> ${D}defFile
49245
49246doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49247grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49248
49249# Checks if the export is ok or not.
49250for word in ${D}exclude_symbols; do
49251 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49252 mv ${D}{tmpdefFile}% ${D}tmpdefFile
49253done
49254
49255
1e9e8aba
DE
49256if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49257 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
49258 sed '
49259 N
49260 : loop
1e9e8aba 49261 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
49262 t loop
49263 ' > ${D}{tmpdefFile}%
49264 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49265else
49266 rm -f ${D}{tmpdefFile}%
49267fi
49268cat ${D}tmpdefFile >> ${D}defFile
49269rm -f ${D}tmpdefFile
49270
49271# Do linking, create implib, and apply lxlite.
49272gccCmdl="";
49273for file in ${D}inputFiles ; do
49274 case ${D}file in
49275 *!)
49276 ;;
49277 *)
49278 gccCmdl="${D}gccCmdl ${D}file"
49279 ;;
49280 esac
49281done
49282doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49283touch "${D}{outFile}.dll"
49284
49285doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 49286if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 49287 add_flags="";
1e9e8aba 49288 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
49289 add_flags="-ynd"
49290 fi
49291 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49292fi
49293doCommand "emxomf -s -l ${D}arcFile"
49294
49295# Successful exit.
49296CleanUp 1
49297exit 0
49298EOF
49299
49300 chmod +x dllar.sh
a848cd7e
SC
49301 ;;
49302
1e9e8aba 49303 powerpc-apple-macos* | \
0ad5d837 49304 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a485900c 49305 *-*-mirbsd* | \
a848cd7e
SC
49306 *-*-sunos4* | \
49307 *-*-osf* | \
49308 *-*-dgux5* | \
47a7e797
MW
49309 *-*-sysv5* | \
49310 *-pc-msdosdjgpp )
a848cd7e
SC
49311 ;;
49312
49313 *)
3ecd9f92 49314 esac
a848cd7e 49315
2057db16
VS
49316 if test "x$PIC_FLAG" != "x" ; then
49317 PIC_FLAG="$PIC_FLAG -DPIC"
49318 fi
49319
a848cd7e
SC
49320 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49321 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49322 fi
49323 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49324 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49325 fi
49326
49327
49328
49329
49330
49331
49332
49333
810b94f0 49334
a848cd7e
SC
49335 USE_SOVERSION=0
49336 USE_SOVERLINUX=0
49337 USE_SOVERSOLARIS=0
810b94f0 49338 USE_SOVERCYGWIN=0
a848cd7e
SC
49339 USE_SOSYMLINKS=0
49340 USE_MACVERSION=0
49341 SONAME_FLAG=
49342
49343 case "${BAKEFILE_HOST}" in
0ad5d837 49344 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
49345 SONAME_FLAG="-Wl,-soname,"
49346 USE_SOVERSION=1
49347 USE_SOVERLINUX=1
49348 USE_SOSYMLINKS=1
49349 ;;
49350
a848cd7e
SC
49351 *-*-solaris2* )
49352 SONAME_FLAG="-h "
49353 USE_SOVERSION=1
49354 USE_SOVERSOLARIS=1
49355 USE_SOSYMLINKS=1
49356 ;;
49357
49358 *-*-darwin* )
49359 USE_MACVERSION=1
49360 USE_SOVERSION=1
49361 USE_SOSYMLINKS=1
49362 ;;
810b94f0
MW
49363
49364 *-*-cygwin* )
49365 USE_SOVERSION=1
49366 USE_SOVERCYGWIN=1
49367 ;;
a848cd7e
SC
49368 esac
49369
49370
49371
49372
49373
49374
49375
49376
49377
810b94f0 49378
f321ab7f 49379 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
f10e38c4 49380if test "${enable_dependency_tracking+set}" = set; then
f321ab7f
VS
49381 enableval="$enable_dependency_tracking"
49382 bk_use_trackdeps="$enableval"
49383fi;
f10e38c4 49384
f321ab7f
VS
49385 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49386echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 49387
a485900c 49388 BK_DEPS=""
f10e38c4
VZ
49389 if test "x$bk_use_trackdeps" = "xno" ; then
49390 DEPS_TRACKING=0
f321ab7f
VS
49391 echo "$as_me:$LINENO: result: disabled" >&5
49392echo "${ECHO_T}disabled" >&6
f10e38c4
VZ
49393 else
49394 DEPS_TRACKING=1
49395
49396 if test "x$GCC" = "xyes"; then
49397 DEPSMODE=gcc
49398 case "${BAKEFILE_HOST}" in
49399 *-*-darwin* )
49400 DEPSFLAG="-no-cpp-precomp -MMD"
49401 ;;
49402 * )
49403 DEPSFLAG="-MMD"
49404 ;;
49405 esac
f321ab7f
VS
49406 echo "$as_me:$LINENO: result: gcc" >&5
49407echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
49408 elif test "x$MWCC" = "xyes"; then
49409 DEPSMODE=mwcc
49410 DEPSFLAG="-MM"
f321ab7f
VS
49411 echo "$as_me:$LINENO: result: mwcc" >&5
49412echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
49413 elif test "x$SUNCC" = "xyes"; then
49414 DEPSMODE=unixcc
49415 DEPSFLAG="-xM1"
f321ab7f
VS
49416 echo "$as_me:$LINENO: result: Sun cc" >&5
49417echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
49418 elif test "x$SGICC" = "xyes"; then
49419 DEPSMODE=unixcc
49420 DEPSFLAG="-M"
f321ab7f
VS
49421 echo "$as_me:$LINENO: result: SGI cc" >&5
49422echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
49423 elif test "x$HPCC" = "xyes"; then
49424 DEPSMODE=unixcc
49425 DEPSFLAG="+make"
f321ab7f
VS
49426 echo "$as_me:$LINENO: result: HP cc" >&5
49427echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
49428 elif test "x$COMPAQCC" = "xyes"; then
49429 DEPSMODE=gcc
49430 DEPSFLAG="-MD"
f321ab7f
VS
49431 echo "$as_me:$LINENO: result: Compaq cc" >&5
49432echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
49433 else
49434 DEPS_TRACKING=0
f321ab7f
VS
49435 echo "$as_me:$LINENO: result: none" >&5
49436echo "${ECHO_T}none" >&6
f10e38c4 49437 fi
a848cd7e 49438
f10e38c4 49439 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
49440
49441D='$'
49442cat <<EOF >bk-deps
a848cd7e
SC
49443#!/bin/sh
49444
49445# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49446# script. It is used to track C/C++ files dependencies in portable way.
49447#
49448# Permission is given to use this file in any way.
49449
473276a9 49450DEPSMODE=${DEPSMODE}
a848cd7e 49451DEPSDIR=.deps
0ad5d837 49452DEPSFLAG="${DEPSFLAG}"
a848cd7e 49453
473276a9 49454mkdir -p ${D}DEPSDIR
a848cd7e 49455
473276a9 49456if test ${D}DEPSMODE = gcc ; then
0ad5d837 49457 ${D}* ${D}{DEPSFLAG}
473276a9
VS
49458 status=${D}?
49459 if test ${D}{status} != 0 ; then
49460 exit ${D}{status}
a848cd7e
SC
49461 fi
49462 # move created file to the location we want it in:
473276a9
VS
49463 while test ${D}# -gt 0; do
49464 case "${D}1" in
a848cd7e
SC
49465 -o )
49466 shift
473276a9 49467 objfile=${D}1
a848cd7e
SC
49468 ;;
49469 -* )
49470 ;;
49471 * )
473276a9 49472 srcfile=${D}1
a848cd7e
SC
49473 ;;
49474 esac
49475 shift
49476 done
1e9e8aba
DE
49477 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49478 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
49479 if test -f ${D}depfile ; then
49480 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49481 rm -f ${D}depfile
a848cd7e 49482 else
a1aa0349 49483 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 49484 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
49485 if test ! -f ${D}depfile ; then
49486 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49487 depfile="${D}objfile.d"
49488 fi
473276a9
VS
49489 if test -f ${D}depfile ; then
49490 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49491 rm -f ${D}depfile
a848cd7e
SC
49492 fi
49493 fi
49494 exit 0
81f90336 49495elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 49496 ${D}* || exit ${D}?
81f90336
MW
49497 # Run mwcc again with -MM and redirect into the dep file we want
49498 # NOTE: We can't use shift here because we need ${D}* to be valid
49499 prevarg=
49500 for arg in ${D}* ; do
49501 if test "${D}prevarg" = "-o"; then
49502 objfile=${D}arg
49503 else
49504 case "${D}arg" in
49505 -* )
49506 ;;
49507 * )
49508 srcfile=${D}arg
49509 ;;
49510 esac
49511 fi
49512 prevarg="${D}arg"
49513 done
0ad5d837 49514 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 49515 exit 0
0ad5d837 49516elif test ${D}DEPSMODE = unixcc; then
f6b50c59 49517 ${D}* || exit ${D}?
a9e5b1f0
MW
49518 # Run compiler again with deps flag and redirect into the dep file.
49519 # It doesn't work if the '-o FILE' option is used, but without it the
49520 # dependency file will contain the wrong name for the object. So it is
49521 # removed from the command line, and the dep file is fixed with sed.
49522 cmd=""
49523 while test ${D}# -gt 0; do
49524 case "${D}1" in
49525 -o )
49526 shift
49527 objfile=${D}1
49528 ;;
49529 * )
49530 eval arg${D}#=\\${D}1
49531 cmd="${D}cmd \\${D}arg${D}#"
49532 ;;
49533 esac
49534 shift
49535 done
0ad5d837 49536 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 49537 exit 0
a848cd7e 49538else
473276a9
VS
49539 ${D}*
49540 exit ${D}?
a848cd7e
SC
49541fi
49542EOF
473276a9 49543
f10e38c4 49544 chmod +x bk-deps
a485900c 49545 BK_DEPS="`pwd`/bk-deps"
f10e38c4 49546 fi
a848cd7e
SC
49547 fi
49548
49549
49550
49551
a485900c 49552
a848cd7e
SC
49553 case ${BAKEFILE_HOST} in
49554 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
49555 if test -n "$ac_tool_prefix"; then
49556 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49557set dummy ${ac_tool_prefix}windres; ac_word=$2
f321ab7f
VS
49558echo "$as_me:$LINENO: checking for $ac_word" >&5
49559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6
DE
49560if test "${ac_cv_prog_WINDRES+set}" = set; then
49561 echo $ECHO_N "(cached) $ECHO_C" >&6
49562else
49563 if test -n "$WINDRES"; then
49564 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49565else
49566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49567for as_dir in $PATH
49568do
49569 IFS=$as_save_IFS
49570 test -z "$as_dir" && as_dir=.
49571 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 49572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6
DE
49573 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49575 break 2
49576 fi
49577done
49578done
49579
49580fi
49581fi
49582WINDRES=$ac_cv_prog_WINDRES
49583if test -n "$WINDRES"; then
f321ab7f
VS
49584 echo "$as_me:$LINENO: result: $WINDRES" >&5
49585echo "${ECHO_T}$WINDRES" >&6
8ced02f6 49586else
f321ab7f
VS
49587 echo "$as_me:$LINENO: result: no" >&5
49588echo "${ECHO_T}no" >&6
8ced02f6
DE
49589fi
49590
49591fi
49592if test -z "$ac_cv_prog_WINDRES"; then
49593 ac_ct_WINDRES=$WINDRES
49594 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e 49595set dummy windres; ac_word=$2
f321ab7f
VS
49596echo "$as_me:$LINENO: checking for $ac_word" >&5
49597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49598if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
49599 echo $ECHO_N "(cached) $ECHO_C" >&6
49600else
8ced02f6
DE
49601 if test -n "$ac_ct_WINDRES"; then
49602 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
49603else
49604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49605for as_dir in $PATH
49606do
49607 IFS=$as_save_IFS
49608 test -z "$as_dir" && as_dir=.
49609 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 49610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49611 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
49612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49613 break 2
49614 fi
49615done
49616done
49617
a848cd7e
SC
49618fi
49619fi
8ced02f6
DE
49620ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49621if test -n "$ac_ct_WINDRES"; then
f321ab7f
VS
49622 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49623echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e 49624else
f321ab7f
VS
49625 echo "$as_me:$LINENO: result: no" >&5
49626echo "${ECHO_T}no" >&6
a848cd7e
SC
49627fi
49628
f321ab7f 49629 WINDRES=$ac_ct_WINDRES
8ced02f6
DE
49630else
49631 WINDRES="$ac_cv_prog_WINDRES"
49632fi
49633
a848cd7e
SC
49634 ;;
49635
1e9e8aba 49636 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
49637 # Extract the first word of "Rez", so it can be a program name with args.
49638set dummy Rez; ac_word=$2
f321ab7f
VS
49639echo "$as_me:$LINENO: checking for $ac_word" >&5
49640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49641if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
49642 echo $ECHO_N "(cached) $ECHO_C" >&6
49643else
8ced02f6
DE
49644 if test -n "$REZ"; then
49645 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
49646else
49647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49648for as_dir in $PATH
49649do
49650 IFS=$as_save_IFS
49651 test -z "$as_dir" && as_dir=.
49652 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 49653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49654 ac_cv_prog_REZ="Rez"
a848cd7e
SC
49655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49656 break 2
49657 fi
49658done
49659done
49660
8ced02f6 49661 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
49662fi
49663fi
8ced02f6
DE
49664REZ=$ac_cv_prog_REZ
49665if test -n "$REZ"; then
f321ab7f
VS
49666 echo "$as_me:$LINENO: result: $REZ" >&5
49667echo "${ECHO_T}$REZ" >&6
a848cd7e 49668else
f321ab7f
VS
49669 echo "$as_me:$LINENO: result: no" >&5
49670echo "${ECHO_T}no" >&6
a848cd7e
SC
49671fi
49672
49673 # Extract the first word of "SetFile", so it can be a program name with args.
49674set dummy SetFile; ac_word=$2
f321ab7f
VS
49675echo "$as_me:$LINENO: checking for $ac_word" >&5
49676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
49677if test "${ac_cv_prog_SETFILE+set}" = set; then
49678 echo $ECHO_N "(cached) $ECHO_C" >&6
49679else
49680 if test -n "$SETFILE"; then
49681 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49682else
49683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49684for as_dir in $PATH
49685do
49686 IFS=$as_save_IFS
49687 test -z "$as_dir" && as_dir=.
49688 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 49689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
49690 ac_cv_prog_SETFILE="SetFile"
49691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49692 break 2
49693 fi
49694done
49695done
49696
49697 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49698fi
49699fi
49700SETFILE=$ac_cv_prog_SETFILE
49701if test -n "$SETFILE"; then
f321ab7f
VS
49702 echo "$as_me:$LINENO: result: $SETFILE" >&5
49703echo "${ECHO_T}$SETFILE" >&6
a848cd7e 49704else
f321ab7f
VS
49705 echo "$as_me:$LINENO: result: no" >&5
49706echo "${ECHO_T}no" >&6
a848cd7e
SC
49707fi
49708
49709 ;;
49710 esac
49711
49712
49713
49714
49715
8ced02f6 49716
99a2637b 49717 BAKEFILE_BAKEFILE_M4_VERSION="0.2.1"
a848cd7e 49718
dcc1b6ad 49719
480b9f18 49720BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.1"
a848cd7e 49721
646b6ec1 49722
74b84332 49723
f321ab7f 49724 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
a848cd7e 49725if test "${enable_precomp_headers+set}" = set; then
f321ab7f
VS
49726 enableval="$enable_precomp_headers"
49727 bk_use_pch="$enableval"
49728fi;
a848cd7e
SC
49729
49730 GCC_PCH=0
f10e38c4
VZ
49731 ICC_PCH=0
49732 USE_PCH=0
a485900c 49733 BK_MAKE_PCH=""
a848cd7e 49734
5c60e845
MW
49735 case ${BAKEFILE_HOST} in
49736 *-*-cygwin* )
49737 bk_use_pch="no"
49738 ;;
49739 esac
49740
a848cd7e
SC
49741 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49742 if test "x$GCC" = "xyes"; then
f321ab7f
VS
49743 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49744echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
a848cd7e
SC
49745 cat >conftest.$ac_ext <<_ACEOF
49746/* confdefs.h. */
49747_ACEOF
49748cat confdefs.h >>conftest.$ac_ext
49749cat >>conftest.$ac_ext <<_ACEOF
49750/* end confdefs.h. */
49751
49752int
49753main ()
49754{
49755
49756 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 49757 There is no PCH support
a848cd7e
SC
49758 #endif
49759 #if (__GNUC__ < 3)
e5efa97e 49760 There is no PCH support
a848cd7e
SC
49761 #endif
49762 #if (__GNUC__ == 3) && \
49763 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
49764 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49765 ( defined(__INTEL_COMPILER) )
e5efa97e 49766 There is no PCH support
a848cd7e
SC
49767 #endif
49768
49769 ;
49770 return 0;
49771}
49772_ACEOF
49773rm -f conftest.$ac_objext
f321ab7f
VS
49774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49775 (eval $ac_compile) 2>conftest.er1
a848cd7e 49776 ac_status=$?
ac1cb8d3
VS
49777 grep -v '^ *+' conftest.er1 >conftest.err
49778 rm -f conftest.er1
49779 cat conftest.err >&5
a848cd7e
SC
49780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49781 (exit $ac_status); } &&
f321ab7f
VS
49782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49784 (eval $ac_try) 2>&5
ac1cb8d3
VS
49785 ac_status=$?
49786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49787 (exit $ac_status); }; } &&
49788 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
49789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49790 (eval $ac_try) 2>&5
a848cd7e
SC
49791 ac_status=$?
49792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49793 (exit $ac_status); }; }; then
49794
f321ab7f
VS
49795 echo "$as_me:$LINENO: result: yes" >&5
49796echo "${ECHO_T}yes" >&6
a848cd7e
SC
49797 GCC_PCH=1
49798
49799else
49800 echo "$as_me: failed program was:" >&5
49801sed 's/^/| /' conftest.$ac_ext >&5
49802
49803
f10e38c4
VZ
49804 cat >conftest.$ac_ext <<_ACEOF
49805/* confdefs.h. */
49806_ACEOF
49807cat confdefs.h >>conftest.$ac_ext
49808cat >>conftest.$ac_ext <<_ACEOF
49809/* end confdefs.h. */
49810
49811int
49812main ()
49813{
49814
49815 #if !defined(__INTEL_COMPILER) || \
49816 (__INTEL_COMPILER < 800)
e5efa97e 49817 There is no PCH support
f10e38c4
VZ
49818 #endif
49819
49820 ;
49821 return 0;
49822}
49823_ACEOF
49824rm -f conftest.$ac_objext
f321ab7f
VS
49825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49826 (eval $ac_compile) 2>conftest.er1
f10e38c4
VZ
49827 ac_status=$?
49828 grep -v '^ *+' conftest.er1 >conftest.err
49829 rm -f conftest.er1
49830 cat conftest.err >&5
49831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49832 (exit $ac_status); } &&
f321ab7f
VS
49833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49835 (eval $ac_try) 2>&5
f10e38c4
VZ
49836 ac_status=$?
49837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49838 (exit $ac_status); }; } &&
49839 { ac_try='test -s conftest.$ac_objext'
f321ab7f
VS
49840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49841 (eval $ac_try) 2>&5
f10e38c4
VZ
49842 ac_status=$?
49843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49844 (exit $ac_status); }; }; then
49845
f321ab7f
VS
49846 echo "$as_me:$LINENO: result: yes" >&5
49847echo "${ECHO_T}yes" >&6
f10e38c4
VZ
49848 ICC_PCH=1
49849
49850else
49851 echo "$as_me: failed program was:" >&5
49852sed 's/^/| /' conftest.$ac_ext >&5
49853
49854
f321ab7f
VS
49855 echo "$as_me:$LINENO: result: no" >&5
49856echo "${ECHO_T}no" >&6
a848cd7e
SC
49857
49858fi
f321ab7f 49859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49860
49861fi
f321ab7f 49862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49863 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49864 USE_PCH=1
1e9e8aba
DE
49865
49866D='$'
49867cat <<EOF >bk-make-pch
a848cd7e
SC
49868#!/bin/sh
49869
49870# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49871# script. It is used to generated precompiled headers.
49872#
49873# Permission is given to use this file in any way.
49874
1e9e8aba
DE
49875outfile="${D}{1}"
49876header="${D}{2}"
a848cd7e
SC
49877shift
49878shift
49879
f10e38c4
VZ
49880compiler=""
49881headerfile=""
49882
1e9e8aba 49883while test ${D}{#} -gt 0; do
f10e38c4 49884 add_to_cmdline=1
1e9e8aba 49885 case "${D}{1}" in
a848cd7e 49886 -I* )
1e9e8aba
DE
49887 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49888 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49889 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
49890 fi
49891 ;;
f10e38c4
VZ
49892 -use-pch|-use_pch )
49893 shift
49894 add_to_cmdline=0
49895 ;;
a848cd7e 49896 esac
f10e38c4
VZ
49897 if test ${D}add_to_cmdline = 1 ; then
49898 compiler="${D}{compiler} ${D}{1}"
49899 fi
a848cd7e
SC
49900 shift
49901done
49902
1e9e8aba 49903if test "x${D}{headerfile}" = "x" ; then
f10e38c4 49904 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 49905else
1e9e8aba
DE
49906 if test -f ${D}{outfile} ; then
49907 rm -f ${D}{outfile}
a848cd7e 49908 else
1e9e8aba 49909 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 49910 fi
1e9e8aba 49911 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 49912 mkdir -p .deps
f10e38c4
VZ
49913 if test "x${GCC_PCH}" = "x1" ; then
49914 # can do this because gcc is >= 3.4:
49915 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49916 elif test "x${ICC_PCH}" = "x1" ; then
49917 filename=pch_gen-${D}${D}
49918 file=${D}{filename}.c
49919 dfile=${D}{filename}.d
49920 cat > ${D}file <<EOT
49921#include "${D}header"
49922EOT
49923 # using -MF icc complains about differing command lines in creation/use
49924 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49925 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49926 rm -f ${D}file ${D}dfile ${D}{filename}.o
49927 fi
1e9e8aba 49928 exit ${D}{?}
a848cd7e
SC
49929fi
49930EOF
1e9e8aba 49931
a848cd7e 49932 chmod +x bk-make-pch
a485900c 49933 BK_MAKE_PCH="`pwd`/bk-make-pch"
a848cd7e
SC
49934 fi
49935 fi
49936 fi
49937
49938
49939
f10e38c4 49940
a485900c 49941
a848cd7e
SC
49942 COND_BUILD_DEBUG="#"
49943 if test "x$BUILD" = "xdebug" ; then
49944 COND_BUILD_DEBUG=""
49945 fi
49946
49947 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49948 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49949 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49950 fi
49951
49952 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49953 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49954 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49955 fi
49956
49957 COND_BUILD_DEBUG_UNICODE_0="#"
49958 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49959 COND_BUILD_DEBUG_UNICODE_0=""
49960 fi
49961
49962 COND_BUILD_DEBUG_UNICODE_1="#"
49963 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49964 COND_BUILD_DEBUG_UNICODE_1=""
49965 fi
49966
49967 COND_BUILD_RELEASE="#"
49968 if test "x$BUILD" = "xrelease" ; then
49969 COND_BUILD_RELEASE=""
49970 fi
49971
49972 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49973 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49974 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49975 fi
49976
49977 COND_BUILD_RELEASE_UNICODE_0="#"
49978 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49979 COND_BUILD_RELEASE_UNICODE_0=""
49980 fi
49981
49982 COND_BUILD_RELEASE_UNICODE_1="#"
49983 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49984 COND_BUILD_RELEASE_UNICODE_1=""
49985 fi
49986
49987 COND_DEBUG_FLAG_1="#"
49988 if test "x$DEBUG_FLAG" = "x1" ; then
49989 COND_DEBUG_FLAG_1=""
49990 fi
49991
49992 COND_DEBUG_INFO_0="#"
49993 if test "x$DEBUG_INFO" = "x0" ; then
49994 COND_DEBUG_INFO_0=""
49995 fi
49996
49997 COND_DEBUG_INFO_1="#"
49998 if test "x$DEBUG_INFO" = "x1" ; then
49999 COND_DEBUG_INFO_1=""
50000 fi
50001
50002 COND_DEPS_TRACKING_0="#"
50003 if test "x$DEPS_TRACKING" = "x0" ; then
50004 COND_DEPS_TRACKING_0=""
50005 fi
50006
50007 COND_DEPS_TRACKING_1="#"
50008 if test "x$DEPS_TRACKING" = "x1" ; then
50009 COND_DEPS_TRACKING_1=""
50010 fi
50011
50012 COND_GCC_PCH_1="#"
50013 if test "x$GCC_PCH" = "x1" ; then
50014 COND_GCC_PCH_1=""
50015 fi
50016
f10e38c4
VZ
50017 COND_ICC_PCH_1="#"
50018 if test "x$ICC_PCH" = "x1" ; then
50019 COND_ICC_PCH_1=""
50020 fi
50021
a848cd7e
SC
50022 COND_MONOLITHIC_0="#"
50023 if test "x$MONOLITHIC" = "x0" ; then
50024 COND_MONOLITHIC_0=""
50025 fi
50026
50027 COND_MONOLITHIC_0_SHARED_0="#"
50028 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
50029 COND_MONOLITHIC_0_SHARED_0=""
50030 fi
50031
3f60522a
JS
50032 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
50033 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
50034 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
50035 fi
50036
a848cd7e
SC
50037 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
50038 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
50039 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
50040 fi
50041
90970d69
DE
50042 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
50043 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50044 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
50045 fi
50046
f10e38c4
VZ
50047 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
50048 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50049 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
50050 fi
50051
a848cd7e
SC
50052 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
50053 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
50054 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
50055 fi
50056
6671c68b
VZ
50057 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
50058 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50059 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
50060 fi
50061
a848cd7e
SC
50062 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
50063 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
50064 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
50065 fi
50066
8b6682b9
JS
50067 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
50068 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50069 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
50070 fi
50071
ceec2216
RL
50072 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
50073 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50074 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
50075 fi
50076
a848cd7e
SC
50077 COND_MONOLITHIC_0_SHARED_1="#"
50078 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
50079 COND_MONOLITHIC_0_SHARED_1=""
50080 fi
50081
3f60522a
JS
50082 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
50083 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
50084 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
50085 fi
50086
a848cd7e
SC
50087 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
50088 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
50089 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
50090 fi
50091
90970d69
DE
50092 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
50093 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50094 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
50095 fi
50096
f10e38c4
VZ
50097 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
50098 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50099 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
50100 fi
50101
a848cd7e
SC
50102 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
50103 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
50104 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
50105 fi
50106
6671c68b
VZ
50107 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
50108 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50109 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
50110 fi
50111
a848cd7e
SC
50112 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
50113 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
50114 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
50115 fi
50116
8b6682b9
JS
50117 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
50118 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
50119 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
50120 fi
50121
ceec2216
RL
50122 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
50123 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50124 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
50125 fi
50126
e5efa97e
VZ
50127 COND_MONOLITHIC_0_USE_MEDIA_1="#"
50128 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50129 COND_MONOLITHIC_0_USE_MEDIA_1=""
50130 fi
50131
a848cd7e
SC
50132 COND_MONOLITHIC_0_USE_ODBC_1="#"
50133 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
50134 COND_MONOLITHIC_0_USE_ODBC_1=""
50135 fi
50136
50137 COND_MONOLITHIC_1="#"
50138 if test "x$MONOLITHIC" = "x1" ; then
50139 COND_MONOLITHIC_1=""
50140 fi
50141
50142 COND_MONOLITHIC_1_SHARED_0="#"
50143 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50144 COND_MONOLITHIC_1_SHARED_0=""
50145 fi
50146
50147 COND_MONOLITHIC_1_SHARED_1="#"
50148 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50149 COND_MONOLITHIC_1_SHARED_1=""
50150 fi
50151
50152 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50153 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50154 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50155 fi
50156
50157 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50158 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50159 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50160 fi
50161
eb730a0c
JS
50162 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50163 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50164 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50165 fi
50166
a848cd7e
SC
50167 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50168 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50169 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50170 fi
50171
50172 COND_PLATFORM_MACOSX_1="#"
50173 if test "x$PLATFORM_MACOSX" = "x1" ; then
50174 COND_PLATFORM_MACOSX_1=""
50175 fi
50176
a30f955f
VS
50177 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
50178 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
50179 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
50180 fi
50181
a848cd7e
SC
50182 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
50183 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
50184 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
50185 fi
50186
50187 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
50188 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
50189 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
50190 fi
50191
50192 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
50193 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
50194 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
50195 fi
50196
fc480dc1
DE
50197 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
50198 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50199 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
50200 fi
50201
ebee3cd0
VS
50202 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
50203 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
50204 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
50205 fi
50206
50207 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
50208 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
50209 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
50210 fi
50211
a848cd7e
SC
50212 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50213 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50214 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50215 fi
50216
50217 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50218 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50219 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50220 fi
50221
b48a2016
DE
50222 COND_PLATFORM_MACOS_1="#"
50223 if test "x$PLATFORM_MACOS" = "x1" ; then
50224 COND_PLATFORM_MACOS_1=""
50225 fi
50226
083508af
MW
50227 COND_PLATFORM_MAC_1="#"
50228 if test "x$PLATFORM_MAC" = "x1" ; then
50229 COND_PLATFORM_MAC_1=""
50230 fi
50231
e5efa97e
VZ
50232 COND_PLATFORM_MSDOS_0="#"
50233 if test "x$PLATFORM_MSDOS" = "x0" ; then
50234 COND_PLATFORM_MSDOS_0=""
50235 fi
50236
83d8eb47
MW
50237 COND_PLATFORM_MSDOS_1="#"
50238 if test "x$PLATFORM_MSDOS" = "x1" ; then
50239 COND_PLATFORM_MSDOS_1=""
50240 fi
50241
a848cd7e
SC
50242 COND_PLATFORM_OS2_1="#"
50243 if test "x$PLATFORM_OS2" = "x1" ; then
50244 COND_PLATFORM_OS2_1=""
50245 fi
50246
50247 COND_PLATFORM_UNIX_0="#"
50248 if test "x$PLATFORM_UNIX" = "x0" ; then
50249 COND_PLATFORM_UNIX_0=""
50250 fi
50251
50252 COND_PLATFORM_UNIX_1="#"
50253 if test "x$PLATFORM_UNIX" = "x1" ; then
50254 COND_PLATFORM_UNIX_1=""
50255 fi
50256
3ad202f9
VZ
50257 COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50258 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50259 COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50260 fi
50261
50262 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
50263 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50264 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
50265 fi
50266
a848cd7e
SC
50267 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50268 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50269 COND_PLATFORM_UNIX_1_USE_GUI_1=""
50270 fi
50271
50272 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50273 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50274 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50275 fi
50276
50277 COND_PLATFORM_WIN32_0="#"
50278 if test "x$PLATFORM_WIN32" = "x0" ; then
50279 COND_PLATFORM_WIN32_0=""
50280 fi
50281
50282 COND_PLATFORM_WIN32_1="#"
50283 if test "x$PLATFORM_WIN32" = "x1" ; then
50284 COND_PLATFORM_WIN32_1=""
50285 fi
50286
50287 COND_SHARED_0="#"
50288 if test "x$SHARED" = "x0" ; then
50289 COND_SHARED_0=""
50290 fi
50291
083508af
MW
50292 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50293 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50294 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50295 fi
50296
50297 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50298 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50299 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50300 fi
50301
50302 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50303 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50304 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50305 fi
50306
a848cd7e
SC
50307 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50308 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50309 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50310 fi
50311
50312 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50313 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50314 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50315 fi
50316
50317 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50318 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50319 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50320 fi
50321
50322 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50323 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50324 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50325 fi
50326
083508af
MW
50327 COND_SHARED_0_USE_XRC_1="#"
50328 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50329 COND_SHARED_0_USE_XRC_1=""
50330 fi
50331
a848cd7e
SC
50332 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
50333 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50334 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
50335 fi
50336
50337 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
50338 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
50339 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
50340 fi
50341
50342 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
50343 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50344 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
50345 fi
50346
50347 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
50348 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50349 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
50350 fi
50351
50352 COND_SHARED_1="#"
50353 if test "x$SHARED" = "x1" ; then
50354 COND_SHARED_1=""
50355 fi
50356
50357 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50358 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50359 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50360 fi
50361
083508af
MW
50362 COND_SHARED_1_USE_XRC_1="#"
50363 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50364 COND_SHARED_1_USE_XRC_1=""
50365 fi
50366
a30f955f
VS
50367 COND_TOOLKIT_="#"
50368 if test "x$TOOLKIT" = "x" ; then
50369 COND_TOOLKIT_=""
50370 fi
50371
a848cd7e
SC
50372 COND_TOOLKIT_COCOA="#"
50373 if test "x$TOOLKIT" = "xCOCOA" ; then
50374 COND_TOOLKIT_COCOA=""
50375 fi
50376
a49baeab
DE
50377 COND_TOOLKIT_COCOA_USE_GUI_1="#"
50378 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50379 COND_TOOLKIT_COCOA_USE_GUI_1=""
50380 fi
50381
a848cd7e
SC
50382 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50383 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50384 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50385 fi
50386
b3c86150
VS
50387 COND_TOOLKIT_DFB="#"
50388 if test "x$TOOLKIT" = "xDFB" ; then
50389 COND_TOOLKIT_DFB=""
50390 fi
50391
50392 COND_TOOLKIT_DFB_USE_GUI_1="#"
50393 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50394 COND_TOOLKIT_DFB_USE_GUI_1=""
50395 fi
50396
a848cd7e
SC
50397 COND_TOOLKIT_GTK="#"
50398 if test "x$TOOLKIT" = "xGTK" ; then
50399 COND_TOOLKIT_GTK=""
50400 fi
50401
d044deea
MW
50402 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50403 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50404 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50405 fi
50406
50407 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50408 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50409 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50410 fi
50411
50412 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50413 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50414 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50415 fi
50416
50417 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50418 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50419 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50420 fi
50421
50422 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50423 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50424 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50425 fi
50426
50427 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50428 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50429 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50430 fi
50431
a848cd7e
SC
50432 COND_TOOLKIT_GTK_USE_GUI_1="#"
50433 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50434 COND_TOOLKIT_GTK_USE_GUI_1=""
50435 fi
50436
a848cd7e
SC
50437 COND_TOOLKIT_MAC="#"
50438 if test "x$TOOLKIT" = "xMAC" ; then
50439 COND_TOOLKIT_MAC=""
50440 fi
50441
50442 COND_TOOLKIT_MAC_USE_GUI_1="#"
50443 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50444 COND_TOOLKIT_MAC_USE_GUI_1=""
50445 fi
50446
50447 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
50448 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50449 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
50450 fi
50451
50452 COND_TOOLKIT_MGL="#"
50453 if test "x$TOOLKIT" = "xMGL" ; then
50454 COND_TOOLKIT_MGL=""
50455 fi
50456
50457 COND_TOOLKIT_MGL_USE_GUI_1="#"
50458 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50459 COND_TOOLKIT_MGL_USE_GUI_1=""
50460 fi
50461
50462 COND_TOOLKIT_MOTIF="#"
50463 if test "x$TOOLKIT" = "xMOTIF" ; then
50464 COND_TOOLKIT_MOTIF=""
50465 fi
50466
50467 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50468 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50469 COND_TOOLKIT_MOTIF_USE_GUI_1=""
50470 fi
50471
50472 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50473 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50474 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50475 fi
50476
50477 COND_TOOLKIT_MSW="#"
50478 if test "x$TOOLKIT" = "xMSW" ; then
50479 COND_TOOLKIT_MSW=""
50480 fi
50481
50482 COND_TOOLKIT_MSW_USE_GUI_1="#"
50483 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50484 COND_TOOLKIT_MSW_USE_GUI_1=""
50485 fi
50486
50487 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50488 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50489 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50490 fi
50491
0ee4059d
DE
50492 COND_TOOLKIT_MSW_WXUNIV_0="#"
50493 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50494 COND_TOOLKIT_MSW_WXUNIV_0=""
50495 fi
50496
a848cd7e
SC
50497 COND_TOOLKIT_PM="#"
50498 if test "x$TOOLKIT" = "xPM" ; then
50499 COND_TOOLKIT_PM=""
50500 fi
50501
50502 COND_TOOLKIT_PM_USE_GUI_1="#"
50503 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50504 COND_TOOLKIT_PM_USE_GUI_1=""
50505 fi
50506
50507 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50508 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50509 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50510 fi
50511
3fd9c298
DE
50512 COND_TOOLKIT_WINCE="#"
50513 if test "x$TOOLKIT" = "xWINCE" ; then
50514 COND_TOOLKIT_WINCE=""
50515 fi
50516
50517 COND_TOOLKIT_WINCE_USE_GUI_1="#"
50518 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50519 COND_TOOLKIT_WINCE_USE_GUI_1=""
50520 fi
50521
50522 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50523 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50524 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50525 fi
50526
0ee4059d
DE
50527 COND_TOOLKIT_WINCE_WXUNIV_0="#"
50528 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50529 COND_TOOLKIT_WINCE_WXUNIV_0=""
50530 fi
50531
a848cd7e
SC
50532 COND_TOOLKIT_X11="#"
50533 if test "x$TOOLKIT" = "xX11" ; then
50534 COND_TOOLKIT_X11=""
50535 fi
50536
50537 COND_TOOLKIT_X11_USE_GUI_1="#"
50538 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50539 COND_TOOLKIT_X11_USE_GUI_1=""
50540 fi
50541
50542 COND_UNICODE_1="#"
50543 if test "x$UNICODE" = "x1" ; then
50544 COND_UNICODE_1=""
50545 fi
50546
50547 COND_USE_EXCEPTIONS_0="#"
50548 if test "x$USE_EXCEPTIONS" = "x0" ; then
50549 COND_USE_EXCEPTIONS_0=""
50550 fi
50551
50552 COND_USE_EXCEPTIONS_1="#"
50553 if test "x$USE_EXCEPTIONS" = "x1" ; then
50554 COND_USE_EXCEPTIONS_1=""
50555 fi
50556
50557 COND_USE_GUI_0="#"
50558 if test "x$USE_GUI" = "x0" ; then
50559 COND_USE_GUI_0=""
50560 fi
50561
50562 COND_USE_GUI_1="#"
50563 if test "x$USE_GUI" = "x1" ; then
50564 COND_USE_GUI_1=""
50565 fi
50566
50567 COND_USE_GUI_1_WXUNIV_0="#"
50568 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50569 COND_USE_GUI_1_WXUNIV_0=""
50570 fi
50571
50572 COND_USE_GUI_1_WXUNIV_1="#"
50573 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50574 COND_USE_GUI_1_WXUNIV_1=""
50575 fi
50576
50577 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50578 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50579 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50580 fi
50581
50582 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50583 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50584 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50585 fi
50586
50587 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50588 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50589 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50590 fi
50591
083508af
MW
50592 COND_USE_ODBC_1="#"
50593 if test "x$USE_ODBC" = "x1" ; then
50594 COND_USE_ODBC_1=""
50595 fi
50596
50597 COND_USE_OPENGL_1="#"
50598 if test "x$USE_OPENGL" = "x1" ; then
50599 COND_USE_OPENGL_1=""
50600 fi
50601
f10e38c4
VZ
50602 COND_USE_PCH_1="#"
50603 if test "x$USE_PCH" = "x1" ; then
50604 COND_USE_PCH_1=""
50605 fi
50606
a848cd7e
SC
50607 COND_USE_PLUGINS_0="#"
50608 if test "x$USE_PLUGINS" = "x0" ; then
50609 COND_USE_PLUGINS_0=""
50610 fi
50611
0b78747f
MW
50612 COND_USE_RTTI_0="#"
50613 if test "x$USE_RTTI" = "x0" ; then
50614 COND_USE_RTTI_0=""
50615 fi
50616
50617 COND_USE_RTTI_1="#"
50618 if test "x$USE_RTTI" = "x1" ; then
50619 COND_USE_RTTI_1=""
50620 fi
50621
a848cd7e
SC
50622 COND_USE_SOSYMLINKS_1="#"
50623 if test "x$USE_SOSYMLINKS" = "x1" ; then
50624 COND_USE_SOSYMLINKS_1=""
50625 fi
50626
eb730a0c
JS
50627 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50628 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50629 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50630 fi
50631
a848cd7e
SC
50632 COND_USE_SOVERLINUX_1="#"
50633 if test "x$USE_SOVERLINUX" = "x1" ; then
50634 COND_USE_SOVERLINUX_1=""
50635 fi
50636
50637 COND_USE_SOVERSION_0="#"
50638 if test "x$USE_SOVERSION" = "x0" ; then
50639 COND_USE_SOVERSION_0=""
50640 fi
50641
50642 COND_USE_SOVERSOLARIS_1="#"
50643 if test "x$USE_SOVERSOLARIS" = "x1" ; then
50644 COND_USE_SOVERSOLARIS_1=""
50645 fi
50646
0b78747f
MW
50647 COND_USE_THREADS_0="#"
50648 if test "x$USE_THREADS" = "x0" ; then
50649 COND_USE_THREADS_0=""
50650 fi
50651
50652 COND_USE_THREADS_1="#"
50653 if test "x$USE_THREADS" = "x1" ; then
50654 COND_USE_THREADS_1=""
50655 fi
50656
a13a7f89
RL
50657 COND_USE_XRC_1="#"
50658 if test "x$USE_XRC" = "x1" ; then
50659 COND_USE_XRC_1=""
50660 fi
50661
eb730a0c
JS
50662 COND_WINDOWS_IMPLIB_1="#"
50663 if test "x$WINDOWS_IMPLIB" = "x1" ; then
50664 COND_WINDOWS_IMPLIB_1=""
50665 fi
50666
a848cd7e
SC
50667 COND_WITH_PLUGIN_SDL_1="#"
50668 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50669 COND_WITH_PLUGIN_SDL_1=""
50670 fi
50671
1e6eb025
VZ
50672 COND_WXUNIV_0="#"
50673 if test "x$WXUNIV" = "x0" ; then
50674 COND_WXUNIV_0=""
50675 fi
50676
a848cd7e
SC
50677 COND_WXUNIV_1="#"
50678 if test "x$WXUNIV" = "x1" ; then
50679 COND_WXUNIV_1=""
50680 fi
50681
50682 COND_WXUSE_EXPAT_BUILTIN="#"
50683 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50684 COND_WXUSE_EXPAT_BUILTIN=""
50685 fi
50686
50687 COND_WXUSE_LIBJPEG_BUILTIN="#"
50688 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50689 COND_WXUSE_LIBJPEG_BUILTIN=""
50690 fi
50691
50692 COND_WXUSE_LIBPNG_BUILTIN="#"
50693 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50694 COND_WXUSE_LIBPNG_BUILTIN=""
50695 fi
50696
50697 COND_WXUSE_LIBTIFF_BUILTIN="#"
50698 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50699 COND_WXUSE_LIBTIFF_BUILTIN=""
50700 fi
50701
50702 COND_WXUSE_ODBC_BUILTIN="#"
50703 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50704 COND_WXUSE_ODBC_BUILTIN=""
50705 fi
50706
50707 COND_WXUSE_REGEX_BUILTIN="#"
50708 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50709 COND_WXUSE_REGEX_BUILTIN=""
50710 fi
50711
50712 COND_WXUSE_ZLIB_BUILTIN="#"
50713 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50714 COND_WXUSE_ZLIB_BUILTIN=""
50715 fi
50716
50717
50718
810b94f0
MW
50719 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50720 { { 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
50721echo "$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;}
50722 { (exit 1); exit 1; }; }
50723 fi
50724
2057db16
VS
50725 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50726 { { 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
50727echo "$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;}
50728 { (exit 1); exit 1; }; }
50729 fi
50730
a848cd7e 50731
a81d5bb6
MW
50732if test $GCC_PCH = 1
50733then
50734 if test "$wx_cv_gcc_pch_bug" = yes; then
50735 { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50736echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50737 { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50738echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50739 { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50740echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50741 fi
50742
50743 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
50744fi
50745
7afc46ab
KO
50746
50747if test "$wxUSE_MAC" = 1 ; then
95768535 50748 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
50749 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50750 mv temp bk-deps
50751 chmod +x bk-deps
50752 fi
50753fi
50754
ceec2216
RL
50755if test "$wxUSE_SHARED" = "yes"; then
50756
50757 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50758 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50759
5b674b9d
DE
50760 case "${host}" in
50761 *-pc-os2_emx | *-pc-os2-emx )
50762 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50763 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
ec3edcc9
VZ
50764 cp -p ${srcdir}/src/os2/dllnames.sh .
50765 cp -p ${srcdir}/src/os2/dllar.sh .
5b674b9d
DE
50766 ;;
50767 esac
ceec2216
RL
50768else
50769
50770 EXE_LINKER="$CXX -o"
50771
50772fi
69120ee4
VZ
50773if test "$wxUSE_OMF" = "yes"; then
50774 case "${host}" in
50775 *-pc-os2_emx | *-pc-os2-emx )
50776 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50777 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50778 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50779 ;;
50780 esac
50781fi
a848cd7e 50782
5ff751d6 50783WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
50784
50785SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50786
50787
50788
50789
50790
50791
50792
50793
50794
50795
50796
50797
50798
50799
50800
50801
50802
50803
50804
50805
50806
50807
50808
50809
50810
50811
50812
50813
50814
50815
50816
50817
50818
50819
50820
50821
50822
50823
50824
50825
50826
50827
a848cd7e
SC
50828
50829
50830
50831
50832
50833
50834
50835
50836
50837
50838
50839
a848cd7e
SC
50840
50841
ddd14b14 50842
370d2fd7 50843
8ced02f6 50844
a848cd7e
SC
50845
50846
f321ab7f
VS
50847echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50848echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
50849set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
50850if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
a848cd7e
SC
50851 echo $ECHO_N "(cached) $ECHO_C" >&6
50852else
50853 cat >conftest.make <<\_ACEOF
50854all:
f321ab7f 50855 @echo 'ac_maketemp="$(MAKE)"'
a848cd7e
SC
50856_ACEOF
50857# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f321ab7f
VS
50858eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50859if test -n "$ac_maketemp"; then
50860 eval ac_cv_prog_make_${ac_make}_set=yes
50861else
50862 eval ac_cv_prog_make_${ac_make}_set=no
50863fi
a848cd7e
SC
50864rm -f conftest.make
50865fi
f321ab7f
VS
50866if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50867 echo "$as_me:$LINENO: result: yes" >&5
50868echo "${ECHO_T}yes" >&6
a848cd7e
SC
50869 SET_MAKE=
50870else
f321ab7f
VS
50871 echo "$as_me:$LINENO: result: no" >&5
50872echo "${ECHO_T}no" >&6
a848cd7e
SC
50873 SET_MAKE="MAKE=${MAKE-make}"
50874fi
50875
50876
a848cd7e 50877
f321ab7f 50878 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
ceec2216 50879
a848cd7e 50880
5c60e845 50881if test "$USE_WIN32" = 1; then
f321ab7f 50882 ac_config_commands="$ac_config_commands
5c60e845
MW
50883 rcdefs.h
50884 "
50885
50886fi
50887
f321ab7f 50888 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 50889
a848cd7e 50890
f321ab7f 50891 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 50892
ceec2216 50893
2dbd07cb 50894if test "$wx_cv_version_script" = "yes"; then
f321ab7f 50895 ac_config_files="$ac_config_files version-script"
2dbd07cb
VZ
50896
50897fi
f321ab7f 50898 ac_config_files="$ac_config_files Makefile"
ceec2216
RL
50899
50900
f321ab7f 50901 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
50902
50903
9103d280 50904
1c14217d 50905if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
50906if test "$wxUSE_GUI" = "yes"; then
50907 SUBDIRS="samples demos utils contrib"
50908else SUBDIRS="samples utils"
50909fi
50910
50911
50912
f321ab7f 50913# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
a848cd7e 50914if test "${with_cppunit_prefix+set}" = set; then
f321ab7f
VS
50915 withval="$with_cppunit_prefix"
50916 cppunit_config_prefix="$withval"
a848cd7e
SC
50917else
50918 cppunit_config_prefix=""
f321ab7f 50919fi;
a848cd7e 50920
f321ab7f 50921# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
a848cd7e 50922if test "${with_cppunit_exec_prefix+set}" = set; then
f321ab7f
VS
50923 withval="$with_cppunit_exec_prefix"
50924 cppunit_config_exec_prefix="$withval"
a848cd7e
SC
50925else
50926 cppunit_config_exec_prefix=""
f321ab7f 50927fi;
a848cd7e
SC
50928
50929 if test x$cppunit_config_exec_prefix != x ; then
50930 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50931 if test x${CPPUNIT_CONFIG+set} != xset ; then
50932 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50933 fi
50934 fi
50935 if test x$cppunit_config_prefix != x ; then
50936 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50937 if test x${CPPUNIT_CONFIG+set} != xset ; then
50938 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50939 fi
50940 fi
50941
50942 # Extract the first word of "cppunit-config", so it can be a program name with args.
50943set dummy cppunit-config; ac_word=$2
f321ab7f
VS
50944echo "$as_me:$LINENO: checking for $ac_word" >&5
50945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a848cd7e
SC
50946if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50947 echo $ECHO_N "(cached) $ECHO_C" >&6
50948else
50949 case $CPPUNIT_CONFIG in
50950 [\\/]* | ?:[\\/]*)
50951 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50952 ;;
50953 *)
50954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50955for as_dir in $PATH
50956do
50957 IFS=$as_save_IFS
50958 test -z "$as_dir" && as_dir=.
50959 for ac_exec_ext in '' $ac_executable_extensions; do
f321ab7f 50960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a848cd7e
SC
50961 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50963 break 2
50964 fi
50965done
50966done
50967
50968 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50969 ;;
50970esac
50971fi
50972CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
f321ab7f 50973
a848cd7e 50974if test -n "$CPPUNIT_CONFIG"; then
f321ab7f
VS
50975 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50976echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
a848cd7e 50977else
f321ab7f
VS
50978 echo "$as_me:$LINENO: result: no" >&5
50979echo "${ECHO_T}no" >&6
a848cd7e
SC
50980fi
50981
50982 cppunit_version_min=1.8.0
50983
f321ab7f
VS
50984 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50985echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
a848cd7e
SC
50986 no_cppunit=""
50987 if test "$CPPUNIT_CONFIG" = "no" ; then
f321ab7f
VS
50988 echo "$as_me:$LINENO: result: no" >&5
50989echo "${ECHO_T}no" >&6
a848cd7e
SC
50990 no_cppunit=yes
50991 else
50992 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50993 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50994 cppunit_version=`$CPPUNIT_CONFIG --version`
50995
50996 cppunit_major_version=`echo $cppunit_version | \
50997 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50998 cppunit_minor_version=`echo $cppunit_version | \
50999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51000 cppunit_micro_version=`echo $cppunit_version | \
51001 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51002
51003 cppunit_major_min=`echo $cppunit_version_min | \
51004 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51005 cppunit_minor_min=`echo $cppunit_version_min | \
51006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51007 cppunit_micro_min=`echo $cppunit_version_min | \
51008 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51009
51010 cppunit_version_proper=`expr \
51011 $cppunit_major_version \> $cppunit_major_min \| \
51012 $cppunit_major_version \= $cppunit_major_min \& \
51013 $cppunit_minor_version \> $cppunit_minor_min \| \
51014 $cppunit_major_version \= $cppunit_major_min \& \
51015 $cppunit_minor_version \= $cppunit_minor_min \& \
51016 $cppunit_micro_version \>= $cppunit_micro_min `
51017
51018 if test "$cppunit_version_proper" = "1" ; then
f321ab7f
VS
51019 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
51020echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
a848cd7e 51021 else
f321ab7f
VS
51022 echo "$as_me:$LINENO: result: no" >&5
51023echo "${ECHO_T}no" >&6
a848cd7e
SC
51024 no_cppunit=yes
51025 fi
51026 fi
51027
51028 if test "x$no_cppunit" = x ; then
c2218763 51029 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
51030 else
51031 CPPUNIT_CFLAGS=""
51032 CPPUNIT_LIBS=""
c2218763 51033 :
a848cd7e
SC
51034 fi
51035
51036
51037
51038
51039
74d92aac
VZ
51040if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
51041 DISABLED_CONTRIB="$DISABLED_CONTRIB net"
51042fi
51043
a848cd7e
SC
51044for subdir in `echo $SUBDIRS`; do
51045 if test -d ${srcdir}/${subdir} ; then
51046 if test "$wxUSE_GUI" = "yes"; then
51047 if test ${subdir} = "samples"; then
51048 makefiles="samples/Makefile.in $makefiles"
51049 for sample in `echo $SAMPLES_SUBDIRS`; do
51050 if test -d $srcdir/samples/$sample; then
51051 makefiles="samples/$sample/Makefile.in $makefiles"
51052 fi
51053 done
9c112555
MW
51054 else
51055 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
51056 eval "disabled=\$$disabled_var"
51057 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
252a5022 51058 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
a848cd7e
SC
51059 fi
51060 else if test ${subdir} = "samples"; then
51061 makefiles="samples/Makefile.in samples/console/Makefile.in"
51062 elif test ${subdir} = "utils"; then
6537ccf8
VS
51063 makefiles=""
51064 for util in HelpGen tex2rtf ; do
51065 if test -d $srcdir/utils/$util ; then
51066 makefiles="utils/$util/Makefile.in \
51067 utils/$util/src/Makefile.in \
51068 $makefiles"
51069 fi
51070 done
a848cd7e
SC
51071 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51072 fi
51073 fi
51074
51075 for mkin in $makefiles ; do
51076 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
f321ab7f 51077 ac_config_files="$ac_config_files $mk"
a848cd7e
SC
51078
51079 done
51080 fi
51081done
1c14217d 51082fi
a848cd7e
SC
51083cat >confcache <<\_ACEOF
51084# This file is a shell script that caches the results of configure
51085# tests run on this system so they can be shared between configure
51086# scripts and configure runs, see configure's option --config-cache.
51087# It is not useful on other systems. If it contains results you don't
51088# want to keep, you may remove or edit it.
51089#
51090# config.status only pays attention to the cache file if you give it
51091# the --recheck option to rerun configure.
51092#
51093# `ac_cv_env_foo' variables (set or unset) will be overridden when
51094# loading this file, other *unset* `ac_cv_foo' will be assigned the
51095# following values.
51096
51097_ACEOF
51098
51099# The following way of writing the cache mishandles newlines in values,
51100# but we know of no workaround that is simple, portable, and efficient.
f321ab7f 51101# So, don't put newlines in cache variables' values.
a848cd7e
SC
51102# Ultrix sh set writes to stderr and can't be redirected directly,
51103# and sets the high bit in the cache file unless we assign to the vars.
f321ab7f 51104{
a848cd7e 51105 (set) 2>&1 |
f321ab7f
VS
51106 case `(ac_space=' '; set | grep ac_space) 2>&1` in
51107 *ac_space=\ *)
a848cd7e
SC
51108 # `set' does not quote correctly, so add quotes (double-quote
51109 # substitution turns \\\\ into \\, and sed turns \\ into \).
51110 sed -n \
ac1cb8d3
VS
51111 "s/'/'\\\\''/g;
51112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
f321ab7f 51113 ;;
a848cd7e
SC
51114 *)
51115 # `set' quotes correctly as required by POSIX, so do not add quotes.
f321ab7f
VS
51116 sed -n \
51117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e 51118 ;;
f321ab7f
VS
51119 esac;
51120} |
a848cd7e
SC
51121 sed '
51122 t clear
f321ab7f 51123 : clear
a848cd7e
SC
51124 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51125 t end
f321ab7f
VS
51126 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51127 : end' >>confcache
51128if diff $cache_file confcache >/dev/null 2>&1; then :; else
51129 if test -w $cache_file; then
51130 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
a848cd7e
SC
51131 cat confcache >$cache_file
51132 else
f321ab7f 51133 echo "not updating unwritable cache $cache_file"
a848cd7e
SC
51134 fi
51135fi
51136rm -f confcache
51137
51138test "x$prefix" = xNONE && prefix=$ac_default_prefix
51139# Let make expand exec_prefix.
51140test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51141
f321ab7f
VS
51142# VPATH may cause trouble with some makes, so we remove $(srcdir),
51143# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51144# trailing colons and then remove the whole line if VPATH becomes empty
51145# (actually we leave an empty line to preserve line numbers).
51146if test "x$srcdir" = x.; then
51147 ac_vpsub='/^[ ]*VPATH[ ]*=/{
51148s/:*\$(srcdir):*/:/;
51149s/:*\${srcdir}:*/:/;
51150s/:*@srcdir@:*/:/;
51151s/^\([^=]*=[ ]*\):*/\1/;
51152s/:*$//;
51153s/^[^=]*=[ ]*$//;
51154}'
51155fi
51156
a848cd7e
SC
51157DEFS=-DHAVE_CONFIG_H
51158
51159ac_libobjs=
51160ac_ltlibobjs=
51161for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51162 # 1. Remove the extension, and $U if already installed.
f321ab7f
VS
51163 ac_i=`echo "$ac_i" |
51164 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51165 # 2. Add them.
51166 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51167 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
a848cd7e
SC
51168done
51169LIBOBJS=$ac_libobjs
51170
51171LTLIBOBJS=$ac_ltlibobjs
51172
51173
51174
51175: ${CONFIG_STATUS=./config.status}
51176ac_clean_files_save=$ac_clean_files
51177ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51178{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51179echo "$as_me: creating $CONFIG_STATUS" >&6;}
51180cat >$CONFIG_STATUS <<_ACEOF
51181#! $SHELL
51182# Generated by $as_me.
51183# Run this file to recreate the current configuration.
51184# Compiler output produced by configure, useful for debugging
51185# configure, is in config.log if it exists.
51186
51187debug=false
51188ac_cs_recheck=false
51189ac_cs_silent=false
51190SHELL=\${CONFIG_SHELL-$SHELL}
51191_ACEOF
51192
51193cat >>$CONFIG_STATUS <<\_ACEOF
51194## --------------------- ##
51195## M4sh Initialization. ##
51196## --------------------- ##
51197
51198# Be Bourne compatible
51199if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51200 emulate sh
51201 NULLCMD=:
51202 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51203 # is contrary to our usage. Disable this feature.
51204 alias -g '${1+"$@"}'='"$@"'
f321ab7f
VS
51205elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51206 set -o posix
a848cd7e 51207fi
ac1cb8d3 51208DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
51209
51210# Support unset when possible.
ac1cb8d3 51211if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
51212 as_unset=unset
51213else
51214 as_unset=false
51215fi
51216
51217
51218# Work around bugs in pre-3.0 UWIN ksh.
f321ab7f 51219$as_unset ENV MAIL MAILPATH
a848cd7e
SC
51220PS1='$ '
51221PS2='> '
51222PS4='+ '
51223
51224# NLS nuisances.
51225for as_var in \
51226 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51227 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51228 LC_TELEPHONE LC_TIME
51229do
ac1cb8d3 51230 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
51231 eval $as_var=C; export $as_var
51232 else
f321ab7f 51233 $as_unset $as_var
a848cd7e
SC
51234 fi
51235done
51236
51237# Required to use basename.
f321ab7f 51238if expr a : '\(a\)' >/dev/null 2>&1; then
a848cd7e
SC
51239 as_expr=expr
51240else
51241 as_expr=false
51242fi
51243
f321ab7f 51244if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
a848cd7e
SC
51245 as_basename=basename
51246else
51247 as_basename=false
51248fi
51249
51250
51251# Name of the executable.
f321ab7f 51252as_me=`$as_basename "$0" ||
a848cd7e
SC
51253$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51254 X"$0" : 'X\(//\)$' \| \
f321ab7f
VS
51255 X"$0" : 'X\(/\)$' \| \
51256 . : '\(.\)' 2>/dev/null ||
a848cd7e 51257echo X/"$0" |
f321ab7f
VS
51258 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51259 /^X\/\(\/\/\)$/{ s//\1/; q; }
51260 /^X\/\(\/\).*/{ s//\1/; q; }
51261 s/.*/./; q'`
a848cd7e 51262
a848cd7e 51263
f321ab7f
VS
51264# PATH needs CR, and LINENO needs CR and PATH.
51265# Avoid depending upon Character Ranges.
51266as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51267as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51268as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51269as_cr_digits='0123456789'
51270as_cr_alnum=$as_cr_Letters$as_cr_digits
51271
51272# The user is always right.
51273if test "${PATH_SEPARATOR+set}" != set; then
51274 echo "#! /bin/sh" >conf$$.sh
51275 echo "exit 0" >>conf$$.sh
51276 chmod +x conf$$.sh
51277 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51278 PATH_SEPARATOR=';'
51279 else
51280 PATH_SEPARATOR=:
51281 fi
51282 rm -f conf$$.sh
51283fi
a848cd7e 51284
a848cd7e 51285
a848cd7e
SC
51286 as_lineno_1=$LINENO
51287 as_lineno_2=$LINENO
f321ab7f 51288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
a848cd7e 51289 test "x$as_lineno_1" != "x$as_lineno_2" &&
f321ab7f
VS
51290 test "x$as_lineno_3" = "x$as_lineno_2" || {
51291 # Find who we are. Look in the path if we contain no path at all
51292 # relative or not.
51293 case $0 in
51294 *[\\/]* ) as_myself=$0 ;;
51295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51296for as_dir in $PATH
51297do
51298 IFS=$as_save_IFS
51299 test -z "$as_dir" && as_dir=.
51300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51301done
51302
51303 ;;
51304 esac
51305 # We did not find ourselves, most probably we were run as `sh COMMAND'
51306 # in which case we are not to be found in the path.
51307 if test "x$as_myself" = x; then
51308 as_myself=$0
51309 fi
51310 if test ! -f "$as_myself"; then
51311 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51312echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51313 { (exit 1); exit 1; }; }
51314 fi
51315 case $CONFIG_SHELL in
51316 '')
51317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51318for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51319do
51320 IFS=$as_save_IFS
51321 test -z "$as_dir" && as_dir=.
51322 for as_base in sh bash ksh sh5; do
51323 case $as_dir in
51324 /*)
51325 if ("$as_dir/$as_base" -c '
51326 as_lineno_1=$LINENO
51327 as_lineno_2=$LINENO
51328 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51329 test "x$as_lineno_1" != "x$as_lineno_2" &&
51330 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51331 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51332 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51333 CONFIG_SHELL=$as_dir/$as_base
51334 export CONFIG_SHELL
51335 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51336 fi;;
51337 esac
51338 done
51339done
51340;;
51341 esac
a848cd7e
SC
51342
51343 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51344 # uniformly replaced by the line number. The first 'sed' inserts a
f321ab7f
VS
51345 # line-number line before each line; the second 'sed' does the real
51346 # work. The second script uses 'N' to pair each line-number line
51347 # with the numbered line, and appends trailing '-' during
51348 # substitution so that $LINENO is not a special case at line end.
a848cd7e 51349 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
f321ab7f
VS
51350 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51351 sed '=' <$as_myself |
a848cd7e
SC
51352 sed '
51353 N
f321ab7f
VS
51354 s,$,-,
51355 : loop
51356 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
a848cd7e 51357 t loop
f321ab7f
VS
51358 s,-$,,
51359 s,^['$as_cr_digits']*\n,,
a848cd7e 51360 ' >$as_me.lineno &&
f321ab7f
VS
51361 chmod +x $as_me.lineno ||
51362 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51363echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
a848cd7e
SC
51364 { (exit 1); exit 1; }; }
51365
51366 # Don't try to exec as it changes $[0], causing all sort of problems
51367 # (the dirname of $[0] is not the place where we might find the
f321ab7f
VS
51368 # original and so on. Autoconf is especially sensible to this).
51369 . ./$as_me.lineno
a848cd7e
SC
51370 # Exit status is that of the last command.
51371 exit
51372}
51373
51374
f321ab7f
VS
51375case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51376 *c*,-n*) ECHO_N= ECHO_C='
51377' ECHO_T=' ' ;;
51378 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51379 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
a848cd7e
SC
51380esac
51381
f321ab7f 51382if expr a : '\(a\)' >/dev/null 2>&1; then
a848cd7e
SC
51383 as_expr=expr
51384else
51385 as_expr=false
51386fi
51387
51388rm -f conf$$ conf$$.exe conf$$.file
51389echo >conf$$.file
51390if ln -s conf$$.file conf$$ 2>/dev/null; then
f321ab7f
VS
51391 # We could just check for DJGPP; but this test a) works b) is more generic
51392 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51393 if test -f conf$$.exe; then
51394 # Don't use ln at all; we don't have any links
a848cd7e 51395 as_ln_s='cp -p'
f321ab7f
VS
51396 else
51397 as_ln_s='ln -s'
51398 fi
a848cd7e
SC
51399elif ln conf$$.file conf$$ 2>/dev/null; then
51400 as_ln_s=ln
51401else
51402 as_ln_s='cp -p'
51403fi
f321ab7f 51404rm -f conf$$ conf$$.exe conf$$.file
a848cd7e
SC
51405
51406if mkdir -p . 2>/dev/null; then
51407 as_mkdir_p=:
51408else
ac1cb8d3 51409 test -d ./-p && rmdir ./-p
a848cd7e
SC
51410 as_mkdir_p=false
51411fi
51412
f321ab7f 51413as_executable_p="test -f"
a848cd7e
SC
51414
51415# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 51416as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51417
51418# Sed expression to map a string onto a valid variable name.
ac1cb8d3 51419as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51420
51421
f321ab7f
VS
51422# IFS
51423# We need space, tab and new line, in precisely that order.
51424as_nl='
51425'
51426IFS=" $as_nl"
51427
51428# CDPATH.
51429$as_unset CDPATH
51430
a848cd7e
SC
51431exec 6>&1
51432
f321ab7f 51433# Open the log real soon, to keep \$[0] and so on meaningful, and to
a848cd7e 51434# report actual input values of CONFIG_FILES etc. instead of their
f321ab7f
VS
51435# values after options handling. Logging --version etc. is OK.
51436exec 5>>config.log
51437{
51438 echo
51439 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51440## Running $as_me. ##
51441_ASBOX
51442} >&5
51443cat >&5 <<_CSEOF
51444
4fd169bd 51445This file was extended by wxWidgets $as_me 2.8.1, which was
f321ab7f 51446generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
51447
51448 CONFIG_FILES = $CONFIG_FILES
51449 CONFIG_HEADERS = $CONFIG_HEADERS
51450 CONFIG_LINKS = $CONFIG_LINKS
51451 CONFIG_COMMANDS = $CONFIG_COMMANDS
51452 $ $0 $@
51453
f321ab7f
VS
51454_CSEOF
51455echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51456echo >&5
a848cd7e
SC
51457_ACEOF
51458
51459# Files that config.status was made for.
f321ab7f
VS
51460if test -n "$ac_config_files"; then
51461 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51462fi
a848cd7e 51463
f321ab7f
VS
51464if test -n "$ac_config_headers"; then
51465 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51466fi
51467
51468if test -n "$ac_config_links"; then
51469 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51470fi
51471
51472if test -n "$ac_config_commands"; then
51473 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51474fi
a848cd7e
SC
51475
51476cat >>$CONFIG_STATUS <<\_ACEOF
f321ab7f 51477
a848cd7e
SC
51478ac_cs_usage="\
51479\`$as_me' instantiates files from templates according to the
51480current configuration.
51481
51482Usage: $0 [OPTIONS] [FILE]...
51483
51484 -h, --help print this help, then exit
51485 -V, --version print version number, then exit
51486 -q, --quiet do not print progress messages
51487 -d, --debug don't remove temporary files
51488 --recheck update $as_me by reconfiguring in the same conditions
51489 --file=FILE[:TEMPLATE]
ac1cb8d3 51490 instantiate the configuration file FILE
a848cd7e 51491 --header=FILE[:TEMPLATE]
ac1cb8d3 51492 instantiate the configuration header FILE
a848cd7e
SC
51493
51494Configuration files:
51495$config_files
51496
51497Configuration headers:
51498$config_headers
51499
51500Configuration commands:
51501$config_commands
51502
51503Report bugs to <bug-autoconf@gnu.org>."
3f7f284d 51504_ACEOF
f321ab7f 51505
a848cd7e
SC
51506cat >>$CONFIG_STATUS <<_ACEOF
51507ac_cs_version="\\
4fd169bd 51508wxWidgets config.status 2.8.1
f321ab7f
VS
51509configured by $0, generated by GNU Autoconf 2.59,
51510 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
a848cd7e 51511
f321ab7f 51512Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
51513This config.status script is free software; the Free Software Foundation
51514gives unlimited permission to copy, distribute and modify it."
f321ab7f
VS
51515srcdir=$srcdir
51516INSTALL="$INSTALL"
a848cd7e
SC
51517_ACEOF
51518
51519cat >>$CONFIG_STATUS <<\_ACEOF
51520# If no file are specified by the user, then we need to provide default
51521# value. By we need to know if files were specified by the user.
51522ac_need_defaults=:
51523while test $# != 0
51524do
51525 case $1 in
51526 --*=*)
f321ab7f
VS
51527 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51528 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a848cd7e
SC
51529 ac_shift=:
51530 ;;
f321ab7f 51531 -*)
a848cd7e
SC
51532 ac_option=$1
51533 ac_optarg=$2
51534 ac_shift=shift
51535 ;;
f321ab7f
VS
51536 *) # This is not an option, so the user has probably given explicit
51537 # arguments.
51538 ac_option=$1
51539 ac_need_defaults=false;;
a848cd7e
SC
51540 esac
51541
51542 case $ac_option in
51543 # Handling of the options.
f321ab7f
VS
51544_ACEOF
51545cat >>$CONFIG_STATUS <<\_ACEOF
a848cd7e
SC
51546 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51547 ac_cs_recheck=: ;;
f321ab7f
VS
51548 --version | --vers* | -V )
51549 echo "$ac_cs_version"; exit 0 ;;
51550 --he | --h)
51551 # Conflict between --help and --header
51552 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51553Try \`$0 --help' for more information." >&5
51554echo "$as_me: error: ambiguous option: $1
51555Try \`$0 --help' for more information." >&2;}
51556 { (exit 1); exit 1; }; };;
51557 --help | --hel | -h )
51558 echo "$ac_cs_usage"; exit 0 ;;
51559 --debug | --d* | -d )
a848cd7e
SC
51560 debug=: ;;
51561 --file | --fil | --fi | --f )
51562 $ac_shift
51563 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51564 ac_need_defaults=false;;
51565 --header | --heade | --head | --hea )
51566 $ac_shift
51567 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51568 ac_need_defaults=false;;
51569 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51570 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51571 ac_cs_silent=: ;;
51572
51573 # This is an error.
f321ab7f
VS
51574 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51575Try \`$0 --help' for more information." >&5
51576echo "$as_me: error: unrecognized option: $1
51577Try \`$0 --help' for more information." >&2;}
a848cd7e
SC
51578 { (exit 1); exit 1; }; } ;;
51579
f321ab7f 51580 *) ac_config_targets="$ac_config_targets $1" ;;
a848cd7e
SC
51581
51582 esac
51583 shift
51584done
51585
51586ac_configure_extra_args=
51587
51588if $ac_cs_silent; then
51589 exec 6>/dev/null
51590 ac_configure_extra_args="$ac_configure_extra_args --silent"
51591fi
51592
51593_ACEOF
51594cat >>$CONFIG_STATUS <<_ACEOF
51595if \$ac_cs_recheck; then
f321ab7f
VS
51596 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51597 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a848cd7e
SC
51598fi
51599
51600_ACEOF
51601
51602cat >>$CONFIG_STATUS <<_ACEOF
51603#
f321ab7f 51604# INIT-COMMANDS section.
a848cd7e
SC
51605#
51606
f321ab7f 51607
5c60e845
MW
51608 CPP="$CPP"
51609 infile="$srcdir/include/wx/msw/genrcdefs.h"
51610 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51611
51612
ceec2216
RL
51613 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51614 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51615 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51616 LN_S="${LN_S}"
a848cd7e
SC
51617
51618
51619_ACEOF
51620
3f7f284d 51621
f321ab7f
VS
51622
51623cat >>$CONFIG_STATUS <<\_ACEOF
a848cd7e
SC
51624for ac_config_target in $ac_config_targets
51625do
f321ab7f
VS
51626 case "$ac_config_target" in
51627 # Handling of arguments.
51628 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51629 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51630 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
51631 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51632 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
51633 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51634 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51635 "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
51636 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51637echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51638 { (exit 1); exit 1; }; };;
51639 esac
51640done
51641
51642# If the user did not use the arguments to specify the items to instantiate,
51643# then the envvar interface is used. Set only those that are not.
51644# We use the long form for the default assignment because of an extremely
51645# bizarre bug on SunOS 4.1.3.
51646if $ac_need_defaults; then
51647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51648 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51650fi
51651
51652# Have a temporary directory for convenience. Make it in the build tree
f321ab7f 51653# simply because there is no reason to put it here, and in addition,
a848cd7e 51654# creating and moving files from /tmp can sometimes cause problems.
f321ab7f 51655# Create a temporary directory, and hook for its removal unless debugging.
a848cd7e
SC
51656$debug ||
51657{
f321ab7f 51658 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
a848cd7e
SC
51659 trap '{ (exit 1); exit 1; }' 1 2 13 15
51660}
f321ab7f 51661
a848cd7e
SC
51662# Create a (secure) tmp directory for tmp files.
51663
51664{
f321ab7f 51665 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
a848cd7e
SC
51666 test -n "$tmp" && test -d "$tmp"
51667} ||
51668{
f321ab7f
VS
51669 tmp=./confstat$$-$RANDOM
51670 (umask 077 && mkdir $tmp)
a848cd7e
SC
51671} ||
51672{
51673 echo "$me: cannot create a temporary directory in ." >&2
51674 { (exit 1); exit 1; }
51675}
51676
a848cd7e 51677_ACEOF
3f7f284d 51678
3f7f284d 51679cat >>$CONFIG_STATUS <<_ACEOF
3f7f284d 51680
f321ab7f
VS
51681#
51682# CONFIG_FILES section.
51683#
3f7f284d 51684
f321ab7f
VS
51685# No need to generate the scripts if there are no CONFIG_FILES.
51686# This happens for instance when ./config.status config.h
51687if test -n "\$CONFIG_FILES"; then
51688 # Protect against being on the right side of a sed subst in config.status.
51689 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51690 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51691s,@SHELL@,$SHELL,;t t
51692s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51693s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51694s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51695s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51696s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51697s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51698s,@exec_prefix@,$exec_prefix,;t t
51699s,@prefix@,$prefix,;t t
51700s,@program_transform_name@,$program_transform_name,;t t
51701s,@bindir@,$bindir,;t t
51702s,@sbindir@,$sbindir,;t t
51703s,@libexecdir@,$libexecdir,;t t
51704s,@datadir@,$datadir,;t t
51705s,@sysconfdir@,$sysconfdir,;t t
51706s,@sharedstatedir@,$sharedstatedir,;t t
51707s,@localstatedir@,$localstatedir,;t t
51708s,@libdir@,$libdir,;t t
51709s,@includedir@,$includedir,;t t
51710s,@oldincludedir@,$oldincludedir,;t t
51711s,@infodir@,$infodir,;t t
51712s,@mandir@,$mandir,;t t
51713s,@build_alias@,$build_alias,;t t
51714s,@host_alias@,$host_alias,;t t
51715s,@target_alias@,$target_alias,;t t
51716s,@DEFS@,$DEFS,;t t
51717s,@ECHO_C@,$ECHO_C,;t t
51718s,@ECHO_N@,$ECHO_N,;t t
51719s,@ECHO_T@,$ECHO_T,;t t
51720s,@LIBS@,$LIBS,;t t
51721s,@build@,$build,;t t
51722s,@build_cpu@,$build_cpu,;t t
51723s,@build_vendor@,$build_vendor,;t t
51724s,@build_os@,$build_os,;t t
51725s,@host@,$host,;t t
51726s,@host_cpu@,$host_cpu,;t t
51727s,@host_vendor@,$host_vendor,;t t
51728s,@host_os@,$host_os,;t t
51729s,@target@,$target,;t t
51730s,@target_cpu@,$target_cpu,;t t
51731s,@target_vendor@,$target_vendor,;t t
51732s,@target_os@,$target_os,;t t
51733s,@wx_top_builddir@,$wx_top_builddir,;t t
51734s,@CC@,$CC,;t t
51735s,@CFLAGS@,$CFLAGS,;t t
51736s,@LDFLAGS@,$LDFLAGS,;t t
51737s,@CPPFLAGS@,$CPPFLAGS,;t t
51738s,@ac_ct_CC@,$ac_ct_CC,;t t
51739s,@EXEEXT@,$EXEEXT,;t t
51740s,@OBJEXT@,$OBJEXT,;t t
51741s,@CPP@,$CPP,;t t
51742s,@EGREP@,$EGREP,;t t
51743s,@CXX@,$CXX,;t t
51744s,@CXXFLAGS@,$CXXFLAGS,;t t
51745s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51746s,@RANLIB@,$RANLIB,;t t
51747s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51748s,@AR@,$AR,;t t
51749s,@ac_ct_AR@,$ac_ct_AR,;t t
51750s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51751s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51752s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51753s,@STRIP@,$STRIP,;t t
51754s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51755s,@WINDRES@,$WINDRES,;t t
51756s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
51757s,@DLLTOOL@,$DLLTOOL,;t t
51758s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51759s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51760s,@LN_S@,$LN_S,;t t
51761s,@CXXCPP@,$CXXCPP,;t t
51762s,@subdirs@,$subdirs,;t t
51763s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51764s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51765s,@GTK_LIBS@,$GTK_LIBS,;t t
51766s,@GTK_CONFIG@,$GTK_CONFIG,;t t
51767s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51768s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51769s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
51770s,@X_CFLAGS@,$X_CFLAGS,;t t
51771s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51772s,@X_LIBS@,$X_LIBS,;t t
51773s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51774s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51775s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
51776s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51777s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
51778s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51779s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
51780s,@REZ@,$REZ,;t t
51781s,@DEREZ@,$DEREZ,;t t
51782s,@SETFILE@,$SETFILE,;t t
51783s,@LIBICONV@,$LIBICONV,;t t
51784s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51785s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51786s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51787s,@SDL_LIBS@,$SDL_LIBS,;t t
51788s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51789s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
51790s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51791s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
51792s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51793s,@HILDON_LIBS@,$HILDON_LIBS,;t t
51794s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51795s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
51796s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51797s,@GST_LIBS@,$GST_LIBS,;t t
51798s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51799s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51800s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51801s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51802s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51803s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51804s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51805s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51806s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51807s,@VENDOR@,$VENDOR,;t t
51808s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
51809s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51810s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
51811s,@WXUNIV@,$WXUNIV,;t t
51812s,@MONOLITHIC@,$MONOLITHIC,;t t
51813s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51814s,@EXTRALIBS@,$EXTRALIBS,;t t
51815s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51816s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51817s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51818s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51819s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51820s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51821s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
51822s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
51823s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
51824s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
51825s,@UNICODE@,$UNICODE,;t t
51826s,@BUILD@,$BUILD,;t t
51827s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51828s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
51829s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51830s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51831s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51832s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51833s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51834s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51835s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51836s,@SET_MAKE@,$SET_MAKE,;t t
51837s,@MAKE_SET@,$MAKE_SET,;t t
51838s,@AROPTIONS@,$AROPTIONS,;t t
51839s,@NM@,$NM,;t t
51840s,@ac_ct_NM@,$ac_ct_NM,;t t
51841s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51842s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51843s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51844s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51845s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51846s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
51847s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
51848s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51849s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
51850s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
51851s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51852s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51853s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51854s,@LIBPREFIX@,$LIBPREFIX,;t t
51855s,@LIBEXT@,$LIBEXT,;t t
51856s,@DLLPREFIX@,$DLLPREFIX,;t t
51857s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
51858s,@dlldir@,$dlldir,;t t
51859s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51860s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51861s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51862s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51863s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51864s,@PIC_FLAG@,$PIC_FLAG,;t t
51865s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
51866s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51867s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51868s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
51869s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
51870s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51871s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51872s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51873s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51874s,@BK_DEPS@,$BK_DEPS,;t t
51875s,@GCC_PCH@,$GCC_PCH,;t t
51876s,@ICC_PCH@,$ICC_PCH,;t t
51877s,@BK_MAKE_PCH@,$BK_MAKE_PCH,;t t
51878s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51879s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51880s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51881s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51882s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51883s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51884s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51885s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51886s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51887s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51888s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51889s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51890s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51891s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51892s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
51893s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
51894s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51895s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
51896s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
51897s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
51898s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
51899s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
51900s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
51901s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
51902s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
51903s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
51904s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
51905s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
51906s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
51907s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
51908s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
51909s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
51910s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
51911s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
51912s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
51913s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
51914s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
51915s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
51916s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51917s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51918s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51919s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51920s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51921s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
51922s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
51923s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51924s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
51925s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
51926s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51927s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51928s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
51929s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
51930s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51931s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
51932s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51933s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
51934s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
51935s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
51936s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
51937s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
51938s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51939s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51940s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51941s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL,;t t
51942s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1,;t t
51943s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51944s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51945s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51946s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51947s,@COND_SHARED_0@,$COND_SHARED_0,;t t
51948s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51949s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51950s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
51951s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51952s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51953s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51954s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
51955s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
51956s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51957s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51958s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51959s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51960s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51961s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
51962s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
51963s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
51964s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
51965s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
51966s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
51967s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51968s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
51969s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
51970s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51971s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51972s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51973s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51974s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51975s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
51976s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
51977s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51978s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51979s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51980s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51981s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51982s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51983s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51984s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51985s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51986s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51987s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
51988s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
51989s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51990s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51991s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
51992s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51993s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51994s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
51995s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
51996s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51997s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51998s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51999s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
52000s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
52001s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
52002s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
52003s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
52004s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
52005s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
52006s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
52007s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52008s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
52009s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
52010s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
52011s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
52012s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
52013s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
52014s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
52015s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
52016s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
52017s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
52018s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
52019s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
52020s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
52021s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
52022s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
52023s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
52024s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
52025s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
52026s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
52027s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
52028s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
52029s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
52030s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
52031s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
52032s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
52033s,@SHARED@,$SHARED,;t t
52034s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
52035s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
52036s,@USE_GUI@,$USE_GUI,;t t
52037s,@AFMINSTALL@,$AFMINSTALL,;t t
52038s,@WIN32INSTALL@,$WIN32INSTALL,;t t
52039s,@TOOLKIT@,$TOOLKIT,;t t
52040s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
52041s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
52042s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
52043s,@cross_compiling@,$cross_compiling,;t t
52044s,@WIDGET_SET@,$WIDGET_SET,;t t
52045s,@WX_RELEASE@,$WX_RELEASE,;t t
52046s,@WX_VERSION@,$WX_VERSION,;t t
52047s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
52048s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
52049s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
52050s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
52051s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
52052s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
52053s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
52054s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
52055s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
52056s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
52057s,@EXE_LINKER@,$EXE_LINKER,;t t
52058s,@GUIDIST@,$GUIDIST,;t t
52059s,@DISTDIR@,$DISTDIR,;t t
52060s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
52061s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
52062s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
52063s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
52064s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
52065s,@RESCOMP@,$RESCOMP,;t t
52066s,@RESFLAGS@,$RESFLAGS,;t t
52067s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
52068s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
52069s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
52070s,@LIBWXMACRES@,$LIBWXMACRES,;t t
52071s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
52072s,@MACSETFILE@,$MACSETFILE,;t t
52073s,@GCC@,$GCC,;t t
52074s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
52075s,@LIBOBJS@,$LIBOBJS,;t t
52076s,@LTLIBOBJS@,$LTLIBOBJS,;t t
52077CEOF
52078
52079_ACEOF
52080
52081 cat >>$CONFIG_STATUS <<\_ACEOF
52082 # Split the substitutions into bite-sized pieces for seds with
52083 # small command number limits, like on Digital OSF/1 and HP-UX.
52084 ac_max_sed_lines=48
52085 ac_sed_frag=1 # Number of current file.
52086 ac_beg=1 # First line for current file.
52087 ac_end=$ac_max_sed_lines # Line after last line for current file.
52088 ac_more_lines=:
52089 ac_sed_cmds=
52090 while $ac_more_lines; do
52091 if test $ac_beg -gt 1; then
52092 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52093 else
52094 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52095 fi
52096 if test ! -s $tmp/subs.frag; then
52097 ac_more_lines=false
52098 else
52099 # The purpose of the label and of the branching condition is to
52100 # speed up the sed processing (if there are no `@' at all, there
52101 # is no need to browse any of the substitutions).
52102 # These are the two extra sed commands mentioned above.
52103 (echo ':t
52104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52105 if test -z "$ac_sed_cmds"; then
52106 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52107 else
52108 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52109 fi
52110 ac_sed_frag=`expr $ac_sed_frag + 1`
52111 ac_beg=$ac_end
52112 ac_end=`expr $ac_end + $ac_max_sed_lines`
52113 fi
52114 done
52115 if test -z "$ac_sed_cmds"; then
52116 ac_sed_cmds=cat
3f7f284d 52117 fi
f321ab7f 52118fi # test -n "$CONFIG_FILES"
3f7f284d 52119
3f7f284d 52120_ACEOF
a848cd7e 52121cat >>$CONFIG_STATUS <<\_ACEOF
f321ab7f
VS
52122for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52123 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52124 case $ac_file in
52125 - | *:- | *:-:* ) # input from stdin
52126 cat >$tmp/stdin
52127 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52129 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52131 * ) ac_file_in=$ac_file.in ;;
a848cd7e
SC
52132 esac
52133
f321ab7f
VS
52134 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52135 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
a848cd7e 52136$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52137 X"$ac_file" : 'X\(//\)[^/]' \| \
52138 X"$ac_file" : 'X\(//\)$' \| \
f321ab7f
VS
52139 X"$ac_file" : 'X\(/\)' \| \
52140 . : '\(.\)' 2>/dev/null ||
a848cd7e 52141echo X"$ac_file" |
f321ab7f
VS
52142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52144 /^X\(\/\/\)$/{ s//\1/; q; }
52145 /^X\(\/\).*/{ s//\1/; q; }
52146 s/.*/./; q'`
52147 { if $as_mkdir_p; then
52148 mkdir -p "$ac_dir"
52149 else
52150 as_dir="$ac_dir"
a848cd7e 52151 as_dirs=
f321ab7f
VS
52152 while test ! -d "$as_dir"; do
52153 as_dirs="$as_dir $as_dirs"
52154 as_dir=`(dirname "$as_dir") 2>/dev/null ||
a848cd7e 52155$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52156 X"$as_dir" : 'X\(//\)[^/]' \| \
52157 X"$as_dir" : 'X\(//\)$' \| \
f321ab7f
VS
52158 X"$as_dir" : 'X\(/\)' \| \
52159 . : '\(.\)' 2>/dev/null ||
a848cd7e 52160echo X"$as_dir" |
f321ab7f
VS
52161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52163 /^X\(\/\/\)$/{ s//\1/; q; }
52164 /^X\(\/\).*/{ s//\1/; q; }
52165 s/.*/./; q'`
a848cd7e 52166 done
f321ab7f
VS
52167 test ! -n "$as_dirs" || mkdir $as_dirs
52168 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52169echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
a848cd7e 52170 { (exit 1); exit 1; }; }; }
f321ab7f 52171
a848cd7e
SC
52172 ac_builddir=.
52173
f321ab7f 52174if test "$ac_dir" != .; then
a848cd7e 52175 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
f321ab7f
VS
52176 # A "../" for each directory in $ac_dir_suffix.
52177 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52178else
52179 ac_dir_suffix= ac_top_builddir=
52180fi
a848cd7e
SC
52181
52182case $srcdir in
f321ab7f 52183 .) # No --srcdir option. We are building in place.
a848cd7e 52184 ac_srcdir=.
f321ab7f
VS
52185 if test -z "$ac_top_builddir"; then
52186 ac_top_srcdir=.
52187 else
52188 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52189 fi ;;
52190 [\\/]* | ?:[\\/]* ) # Absolute path.
a848cd7e 52191 ac_srcdir=$srcdir$ac_dir_suffix;
f321ab7f
VS
52192 ac_top_srcdir=$srcdir ;;
52193 *) # Relative path.
52194 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52195 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a848cd7e 52196esac
ac1cb8d3 52197
f321ab7f
VS
52198# Do not use `cd foo && pwd` to compute absolute paths, because
52199# the directories may not exist.
52200case `pwd` in
52201.) ac_abs_builddir="$ac_dir";;
52202*)
52203 case "$ac_dir" in
52204 .) ac_abs_builddir=`pwd`;;
52205 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52206 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52207 esac;;
52208esac
52209case $ac_abs_builddir in
52210.) ac_abs_top_builddir=${ac_top_builddir}.;;
52211*)
52212 case ${ac_top_builddir}. in
52213 .) ac_abs_top_builddir=$ac_abs_builddir;;
52214 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52215 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52216 esac;;
52217esac
52218case $ac_abs_builddir in
52219.) ac_abs_srcdir=$ac_srcdir;;
52220*)
52221 case $ac_srcdir in
52222 .) ac_abs_srcdir=$ac_abs_builddir;;
52223 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52224 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52225 esac;;
52226esac
52227case $ac_abs_builddir in
52228.) ac_abs_top_srcdir=$ac_top_srcdir;;
52229*)
52230 case $ac_top_srcdir in
52231 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52232 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52233 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52234 esac;;
52235esac
a848cd7e
SC
52236
52237
52238 case $INSTALL in
52239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
f321ab7f 52240 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a848cd7e
SC
52241 esac
52242
f321ab7f
VS
52243 # Let's still pretend it is `configure' which instantiates (i.e., don't
52244 # use $as_me), people would be surprised to read:
52245 # /* config.h. Generated by config.status. */
52246 if test x"$ac_file" = x-; then
52247 configure_input=
52248 else
52249 configure_input="$ac_file. "
52250 fi
52251 configure_input=$configure_input"Generated from `echo $ac_file_in |
52252 sed 's,.*/,,'` by configure."
52253
52254 # First look for the input files in the build tree, otherwise in the
52255 # src tree.
52256 ac_file_inputs=`IFS=:
52257 for f in $ac_file_in; do
52258 case $f in
52259 -) echo $tmp/stdin ;;
52260 [\\/$]*)
52261 # Absolute (can't be DOS-style, as IFS=:)
52262 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52263echo "$as_me: error: cannot find input file: $f" >&2;}
52264 { (exit 1); exit 1; }; }
52265 echo "$f";;
52266 *) # Relative
52267 if test -f "$f"; then
52268 # Build tree
52269 echo "$f"
52270 elif test -f "$srcdir/$f"; then
52271 # Source tree
52272 echo "$srcdir/$f"
52273 else
52274 # /dev/null tree
52275 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52276echo "$as_me: error: cannot find input file: $f" >&2;}
52277 { (exit 1); exit 1; }; }
52278 fi;;
52279 esac
52280 done` || { (exit 1); exit 1; }
3f7f284d 52281
f321ab7f
VS
52282 if test x"$ac_file" != x-; then
52283 { echo "$as_me:$LINENO: creating $ac_file" >&5
52284echo "$as_me: creating $ac_file" >&6;}
52285 rm -f "$ac_file"
52286 fi
52287_ACEOF
a848cd7e
SC
52288cat >>$CONFIG_STATUS <<_ACEOF
52289 sed "$ac_vpsub
52290$extrasub
52291_ACEOF
52292cat >>$CONFIG_STATUS <<\_ACEOF
52293:t
52294/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
f321ab7f
VS
52295s,@configure_input@,$configure_input,;t t
52296s,@srcdir@,$ac_srcdir,;t t
52297s,@abs_srcdir@,$ac_abs_srcdir,;t t
52298s,@top_srcdir@,$ac_top_srcdir,;t t
52299s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52300s,@builddir@,$ac_builddir,;t t
52301s,@abs_builddir@,$ac_abs_builddir,;t t
52302s,@top_builddir@,$ac_top_builddir,;t t
52303s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52304s,@INSTALL@,$ac_INSTALL,;t t
52305" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52306 rm -f $tmp/stdin
52307 if test x"$ac_file" != x-; then
52308 mv $tmp/out $ac_file
52309 else
52310 cat $tmp/out
52311 rm -f $tmp/out
52312 fi
52313
52314 # Run the commands associated with the file.
ceec2216 52315 case $ac_file in
f321ab7f
VS
52316 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
52317 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
ceec2216 52318 esac
f321ab7f
VS
52319done
52320_ACEOF
52321cat >>$CONFIG_STATUS <<\_ACEOF
52322
52323#
52324# CONFIG_HEADER section.
52325#
52326
52327# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52328# NAME is the cpp macro being defined and VALUE is the value it is being given.
52329#
52330# ac_d sets the value in "#define NAME VALUE" lines.
52331ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
52332ac_dB='[ ].*$,\1#\2'
a848cd7e 52333ac_dC=' '
f321ab7f
VS
52334ac_dD=',;t'
52335# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52336ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
52337ac_uB='$,\1#\2define\3'
52338ac_uC=' '
52339ac_uD=',;t'
52340
52341for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52343 case $ac_file in
52344 - | *:- | *:-:* ) # input from stdin
52345 cat >$tmp/stdin
52346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52350 * ) ac_file_in=$ac_file.in ;;
52351 esac
52352
52353 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52354echo "$as_me: creating $ac_file" >&6;}
52355
52356 # First look for the input files in the build tree, otherwise in the
52357 # src tree.
52358 ac_file_inputs=`IFS=:
52359 for f in $ac_file_in; do
52360 case $f in
52361 -) echo $tmp/stdin ;;
52362 [\\/$]*)
52363 # Absolute (can't be DOS-style, as IFS=:)
52364 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52365echo "$as_me: error: cannot find input file: $f" >&2;}
52366 { (exit 1); exit 1; }; }
52367 # Do quote $f, to prevent DOS paths from being IFS'd.
52368 echo "$f";;
52369 *) # Relative
52370 if test -f "$f"; then
52371 # Build tree
52372 echo "$f"
52373 elif test -f "$srcdir/$f"; then
52374 # Source tree
52375 echo "$srcdir/$f"
52376 else
52377 # /dev/null tree
52378 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52379echo "$as_me: error: cannot find input file: $f" >&2;}
52380 { (exit 1); exit 1; }; }
52381 fi;;
52382 esac
52383 done` || { (exit 1); exit 1; }
52384 # Remove the trailing spaces.
52385 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
52386
52387_ACEOF
52388
52389# Transform confdefs.h into two sed scripts, `conftest.defines' and
52390# `conftest.undefs', that substitutes the proper values into
52391# config.h.in to produce config.h. The first handles `#define'
52392# templates, and the second `#undef' templates.
52393# And first: Protect against being on the right side of a sed subst in
52394# config.status. Protect against being in an unquoted here document
52395# in config.status.
52396rm -f conftest.defines conftest.undefs
52397# Using a here document instead of a string reduces the quoting nightmare.
52398# Putting comments in sed scripts is not portable.
52399#
52400# `end' is used to avoid that the second main sed command (meant for
52401# 0-ary CPP macros) applies to n-ary macro definitions.
52402# See the Autoconf documentation for `clear'.
52403cat >confdef2sed.sed <<\_ACEOF
52404s/[\\&,]/\\&/g
52405s,[\\$`],\\&,g
52406t clear
52407: clear
52408s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52409t end
52410s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52411: end
52412_ACEOF
52413# If some macros were called several times there might be several times
52414# the same #defines, which is useless. Nevertheless, we may not want to
52415# sort them, since we want the *last* AC-DEFINE to be honored.
52416uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52417sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52418rm -f confdef2sed.sed
52419
52420# This sed command replaces #undef with comments. This is necessary, for
a848cd7e
SC
52421# example, in the case of _POSIX_SOURCE, which is predefined and required
52422# on some systems where configure will not decide to define it.
f321ab7f
VS
52423cat >>conftest.undefs <<\_ACEOF
52424s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52425_ACEOF
52426
52427# Break up conftest.defines because some shells have a limit on the size
52428# of here documents, and old seds have small limits too (100 cmds).
52429echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52430echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52431echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52432echo ' :' >>$CONFIG_STATUS
52433rm -f conftest.tail
52434while grep . conftest.defines >/dev/null
a848cd7e 52435do
f321ab7f
VS
52436 # Write a limited-size here document to $tmp/defines.sed.
52437 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52438 # Speed up: don't consider the non `#define' lines.
52439 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
52440 # Work around the forget-to-reset-the-flag bug.
52441 echo 't clr' >>$CONFIG_STATUS
52442 echo ': clr' >>$CONFIG_STATUS
52443 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
a848cd7e 52444 echo 'CEOF
f321ab7f
VS
52445 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52446 rm -f $tmp/in
52447 mv $tmp/out $tmp/in
52448' >>$CONFIG_STATUS
52449 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
a848cd7e
SC
52450 rm -f conftest.defines
52451 mv conftest.tail conftest.defines
52452done
f321ab7f
VS
52453rm -f conftest.defines
52454echo ' fi # grep' >>$CONFIG_STATUS
52455echo >>$CONFIG_STATUS
52456
52457# Break up conftest.undefs because some shells have a limit on the size
52458# of here documents, and old seds have small limits too (100 cmds).
52459echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52460rm -f conftest.tail
52461while grep . conftest.undefs >/dev/null
52462do
52463 # Write a limited-size here document to $tmp/undefs.sed.
52464 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52465 # Speed up: don't consider the non `#undef'
52466 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
52467 # Work around the forget-to-reset-the-flag bug.
52468 echo 't clr' >>$CONFIG_STATUS
52469 echo ': clr' >>$CONFIG_STATUS
52470 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52471 echo 'CEOF
52472 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52473 rm -f $tmp/in
52474 mv $tmp/out $tmp/in
52475' >>$CONFIG_STATUS
52476 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52477 rm -f conftest.undefs
52478 mv conftest.tail conftest.undefs
52479done
52480rm -f conftest.undefs
a848cd7e
SC
52481
52482cat >>$CONFIG_STATUS <<\_ACEOF
f321ab7f
VS
52483 # Let's still pretend it is `configure' which instantiates (i.e., don't
52484 # use $as_me), people would be surprised to read:
52485 # /* config.h. Generated by config.status. */
52486 if test x"$ac_file" = x-; then
52487 echo "/* Generated by configure. */" >$tmp/config.h
52488 else
52489 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52490 fi
52491 cat $tmp/in >>$tmp/config.h
52492 rm -f $tmp/in
a848cd7e 52493 if test x"$ac_file" != x-; then
f321ab7f 52494 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
a848cd7e
SC
52495 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52496echo "$as_me: $ac_file is unchanged" >&6;}
52497 else
f321ab7f
VS
52498 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52499$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52500 X"$ac_file" : 'X\(//\)[^/]' \| \
52501 X"$ac_file" : 'X\(//\)$' \| \
52502 X"$ac_file" : 'X\(/\)' \| \
52503 . : '\(.\)' 2>/dev/null ||
52504echo X"$ac_file" |
52505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52507 /^X\(\/\/\)$/{ s//\1/; q; }
52508 /^X\(\/\).*/{ s//\1/; q; }
52509 s/.*/./; q'`
52510 { if $as_mkdir_p; then
52511 mkdir -p "$ac_dir"
52512 else
52513 as_dir="$ac_dir"
52514 as_dirs=
52515 while test ! -d "$as_dir"; do
52516 as_dirs="$as_dir $as_dirs"
52517 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52518$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52519 X"$as_dir" : 'X\(//\)[^/]' \| \
52520 X"$as_dir" : 'X\(//\)$' \| \
52521 X"$as_dir" : 'X\(/\)' \| \
52522 . : '\(.\)' 2>/dev/null ||
52523echo X"$as_dir" |
52524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52526 /^X\(\/\/\)$/{ s//\1/; q; }
52527 /^X\(\/\).*/{ s//\1/; q; }
52528 s/.*/./; q'`
52529 done
52530 test ! -n "$as_dirs" || mkdir $as_dirs
52531 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52532echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52533 { (exit 1); exit 1; }; }; }
52534
a848cd7e 52535 rm -f $ac_file
f321ab7f 52536 mv $tmp/config.h $ac_file
a848cd7e
SC
52537 fi
52538 else
f321ab7f
VS
52539 cat $tmp/config.h
52540 rm -f $tmp/config.h
a848cd7e 52541 fi
f321ab7f
VS
52542done
52543_ACEOF
52544cat >>$CONFIG_STATUS <<\_ACEOF
ac1cb8d3 52545
f321ab7f
VS
52546#
52547# CONFIG_COMMANDS section.
52548#
52549for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52550 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52551 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52552 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52553$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52554 X"$ac_dest" : 'X\(//\)[^/]' \| \
52555 X"$ac_dest" : 'X\(//\)$' \| \
52556 X"$ac_dest" : 'X\(/\)' \| \
52557 . : '\(.\)' 2>/dev/null ||
52558echo X"$ac_dest" |
52559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52561 /^X\(\/\/\)$/{ s//\1/; q; }
52562 /^X\(\/\).*/{ s//\1/; q; }
52563 s/.*/./; q'`
52564 { if $as_mkdir_p; then
52565 mkdir -p "$ac_dir"
52566 else
52567 as_dir="$ac_dir"
52568 as_dirs=
52569 while test ! -d "$as_dir"; do
52570 as_dirs="$as_dir $as_dirs"
52571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52572$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52573 X"$as_dir" : 'X\(//\)[^/]' \| \
52574 X"$as_dir" : 'X\(//\)$' \| \
52575 X"$as_dir" : 'X\(/\)' \| \
52576 . : '\(.\)' 2>/dev/null ||
52577echo X"$as_dir" |
52578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52580 /^X\(\/\/\)$/{ s//\1/; q; }
52581 /^X\(\/\).*/{ s//\1/; q; }
52582 s/.*/./; q'`
52583 done
52584 test ! -n "$as_dirs" || mkdir $as_dirs
52585 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52586echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52587 { (exit 1); exit 1; }; }; }
52588
52589 ac_builddir=.
52590
52591if test "$ac_dir" != .; then
52592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52593 # A "../" for each directory in $ac_dir_suffix.
52594 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52595else
52596 ac_dir_suffix= ac_top_builddir=
52597fi
52598
52599case $srcdir in
52600 .) # No --srcdir option. We are building in place.
52601 ac_srcdir=.
52602 if test -z "$ac_top_builddir"; then
52603 ac_top_srcdir=.
52604 else
52605 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52606 fi ;;
52607 [\\/]* | ?:[\\/]* ) # Absolute path.
52608 ac_srcdir=$srcdir$ac_dir_suffix;
52609 ac_top_srcdir=$srcdir ;;
52610 *) # Relative path.
52611 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52612 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52613esac
52614
52615# Do not use `cd foo && pwd` to compute absolute paths, because
52616# the directories may not exist.
52617case `pwd` in
52618.) ac_abs_builddir="$ac_dir";;
52619*)
52620 case "$ac_dir" in
52621 .) ac_abs_builddir=`pwd`;;
52622 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52623 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52624 esac;;
52625esac
52626case $ac_abs_builddir in
52627.) ac_abs_top_builddir=${ac_top_builddir}.;;
52628*)
52629 case ${ac_top_builddir}. in
52630 .) ac_abs_top_builddir=$ac_abs_builddir;;
52631 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52632 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52633 esac;;
52634esac
52635case $ac_abs_builddir in
52636.) ac_abs_srcdir=$ac_srcdir;;
52637*)
52638 case $ac_srcdir in
52639 .) ac_abs_srcdir=$ac_abs_builddir;;
52640 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52641 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52642 esac;;
52643esac
52644case $ac_abs_builddir in
52645.) ac_abs_top_srcdir=$ac_top_srcdir;;
52646*)
52647 case $ac_top_srcdir in
52648 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52649 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52650 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52651 esac;;
52652esac
a848cd7e
SC
52653
52654
f321ab7f
VS
52655 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52656echo "$as_me: executing $ac_dest commands" >&6;}
52657 case $ac_dest in
52658 rcdefs.h )
5c60e845
MW
52659 mkdir -p $outdir &&
52660 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52661 ;;
f321ab7f 52662 wx-config ) rm -f wx-config
ceec2216
RL
52663 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52664 ;;
a848cd7e 52665 esac
f321ab7f
VS
52666done
52667_ACEOF
a848cd7e 52668
f321ab7f 52669cat >>$CONFIG_STATUS <<\_ACEOF
a848cd7e
SC
52670
52671{ (exit 0); exit 0; }
52672_ACEOF
52673chmod +x $CONFIG_STATUS
52674ac_clean_files=$ac_clean_files_save
52675
52676
52677# configure is writing to config.log, and then calls config.status.
52678# config.status does its own redirection, appending to config.log.
52679# Unfortunately, on DOS this fails, as config.log is still kept open
52680# by configure, so config.status won't be able to write to it; its
52681# output is simply discarded. So we exec the FD to /dev/null,
52682# effectively closing config.log, so it can be properly (re)opened and
52683# appended to by config.status. When coming back to configure, we
52684# need to make the FD available again.
52685if test "$no_create" != yes; then
52686 ac_cs_success=:
52687 ac_config_status_args=
52688 test "$silent" = yes &&
52689 ac_config_status_args="$ac_config_status_args --quiet"
52690 exec 5>/dev/null
52691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52692 exec 5>>config.log
52693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52694 # would make configure fail if this is the last instruction.
52695 $ac_cs_success || { (exit 1); exit 1; }
52696fi
52697
52698#
52699# CONFIG_SUBDIRS section.
52700#
52701if test "$no_recursion" != yes; then
52702
52703 # Remove --cache-file and --srcdir arguments so they do not pile up.
52704 ac_sub_configure_args=
52705 ac_prev=
f321ab7f 52706 for ac_arg in $ac_configure_args; do
a848cd7e
SC
52707 if test -n "$ac_prev"; then
52708 ac_prev=
52709 continue
52710 fi
52711 case $ac_arg in
52712 -cache-file | --cache-file | --cache-fil | --cache-fi \
52713 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52714 ac_prev=cache_file ;;
52715 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52716 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52717 | --c=*)
52718 ;;
52719 --config-cache | -C)
52720 ;;
52721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52722 ac_prev=srcdir ;;
52723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52724 ;;
52725 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52726 ac_prev=prefix ;;
52727 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52728 ;;
f321ab7f 52729 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
a848cd7e
SC
52730 esac
52731 done
52732
52733 # Always prepend --prefix to ensure using the same prefix
52734 # in subdir configurations.
f321ab7f 52735 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
a848cd7e
SC
52736
52737 ac_popdir=`pwd`
52738 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52739
52740 # Do not complain, so a configure script can configure whichever
52741 # parts of a large source tree are present.
f321ab7f
VS
52742 test -d $srcdir/$ac_dir || continue
52743
52744 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52745echo "$as_me: configuring in $ac_dir" >&6;}
52746 { if $as_mkdir_p; then
52747 mkdir -p "$ac_dir"
52748 else
52749 as_dir="$ac_dir"
a848cd7e 52750 as_dirs=
f321ab7f
VS
52751 while test ! -d "$as_dir"; do
52752 as_dirs="$as_dir $as_dirs"
52753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
a848cd7e 52754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52755 X"$as_dir" : 'X\(//\)[^/]' \| \
52756 X"$as_dir" : 'X\(//\)$' \| \
f321ab7f
VS
52757 X"$as_dir" : 'X\(/\)' \| \
52758 . : '\(.\)' 2>/dev/null ||
a848cd7e 52759echo X"$as_dir" |
f321ab7f
VS
52760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52762 /^X\(\/\/\)$/{ s//\1/; q; }
52763 /^X\(\/\).*/{ s//\1/; q; }
52764 s/.*/./; q'`
a848cd7e 52765 done
f321ab7f
VS
52766 test ! -n "$as_dirs" || mkdir $as_dirs
52767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52768echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
a848cd7e 52769 { (exit 1); exit 1; }; }; }
f321ab7f 52770
a848cd7e
SC
52771 ac_builddir=.
52772
f321ab7f 52773if test "$ac_dir" != .; then
a848cd7e 52774 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
f321ab7f
VS
52775 # A "../" for each directory in $ac_dir_suffix.
52776 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52777else
52778 ac_dir_suffix= ac_top_builddir=
52779fi
a848cd7e
SC
52780
52781case $srcdir in
f321ab7f 52782 .) # No --srcdir option. We are building in place.
a848cd7e 52783 ac_srcdir=.
f321ab7f
VS
52784 if test -z "$ac_top_builddir"; then
52785 ac_top_srcdir=.
52786 else
52787 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52788 fi ;;
52789 [\\/]* | ?:[\\/]* ) # Absolute path.
a848cd7e 52790 ac_srcdir=$srcdir$ac_dir_suffix;
f321ab7f
VS
52791 ac_top_srcdir=$srcdir ;;
52792 *) # Relative path.
52793 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52794 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52795esac
52796
52797# Do not use `cd foo && pwd` to compute absolute paths, because
52798# the directories may not exist.
52799case `pwd` in
52800.) ac_abs_builddir="$ac_dir";;
52801*)
52802 case "$ac_dir" in
52803 .) ac_abs_builddir=`pwd`;;
52804 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52805 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52806 esac;;
52807esac
52808case $ac_abs_builddir in
52809.) ac_abs_top_builddir=${ac_top_builddir}.;;
52810*)
52811 case ${ac_top_builddir}. in
52812 .) ac_abs_top_builddir=$ac_abs_builddir;;
52813 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52814 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52815 esac;;
52816esac
52817case $ac_abs_builddir in
52818.) ac_abs_srcdir=$ac_srcdir;;
52819*)
52820 case $ac_srcdir in
52821 .) ac_abs_srcdir=$ac_abs_builddir;;
52822 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52823 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52824 esac;;
52825esac
52826case $ac_abs_builddir in
52827.) ac_abs_top_srcdir=$ac_top_srcdir;;
52828*)
52829 case $ac_top_srcdir in
52830 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52831 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52832 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52833 esac;;
ac1cb8d3 52834esac
a848cd7e
SC
52835
52836
f321ab7f 52837 cd $ac_dir
a848cd7e
SC
52838
52839 # Check for guested configure; otherwise get Cygnus style configure.
f321ab7f
VS
52840 if test -f $ac_srcdir/configure.gnu; then
52841 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52842 elif test -f $ac_srcdir/configure; then
52843 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52844 elif test -f $ac_srcdir/configure.in; then
52845 ac_sub_configure=$ac_configure
a848cd7e
SC
52846 else
52847 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52848echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52849 ac_sub_configure=
52850 fi
52851
52852 # The recursion is here.
52853 if test -n "$ac_sub_configure"; then
52854 # Make the cache file name correct relative to the subdirectory.
52855 case $cache_file in
52856 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
f321ab7f
VS
52857 *) # Relative path.
52858 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
52859 esac
52860
f321ab7f
VS
52861 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52862echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
a848cd7e 52863 # The eval makes quoting arguments work.
f321ab7f
VS
52864 eval $ac_sub_configure $ac_sub_configure_args \
52865 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
ac1cb8d3 52866 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
52867echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52868 { (exit 1); exit 1; }; }
52869 fi
52870
bb9e79c0 52871 cd "$ac_popdir"
a848cd7e
SC
52872 done
52873fi
52874
52875
52876echo
77ffb593 52877echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 52878echo ""
c2e9ada4 52879echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 52880echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 52881
77ffb593
JS
52882echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
52883echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
52884echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 52885
77ffb593 52886echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
52887echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
52888echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 52889
77ffb593 52890echo " Which libraries should wxWidgets use?"
a848cd7e
SC
52891echo " jpeg ${wxUSE_LIBJPEG-none}"
52892echo " png ${wxUSE_LIBPNG-none}"
52893echo " regex ${wxUSE_REGEX}"
52894echo " tiff ${wxUSE_LIBTIFF-none}"
52895if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52896echo " xpm ${wxUSE_LIBXPM-none}"
52897fi
52898echo " zlib ${wxUSE_ZLIB}"
52899echo " odbc ${wxUSE_ODBC}"
52900echo " expat ${wxUSE_EXPAT}"
52901echo " libmspack ${wxUSE_LIBMSPACK}"
52902echo " sdl ${wxUSE_LIBSDL}"
52903
52904echo ""
52905